2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for bacula 5.1.14.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME='bacula'
745 PACKAGE_TARNAME='bacula'
746 PACKAGE_VERSION='5.1.14'
747 PACKAGE_STRING='bacula 5.1.14'
750 ac_unique_file="src/version.h"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
764 # ifdef HAVE_STDLIB_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
787 ac_subst_vars='LTLIBOBJS
811 SHARED_CATALOG_TARGETS
891 TRAY_MONITOR_CPPFLAGS
900 INTL_LIBTOOL_SUFFIX_PREFIX
907 BUILD_INCLUDED_LIBINTL
938 HAVE_OPENBSD_OS_FALSE
942 HAVE_FREEBSD_OS_FALSE
954 INCLUDE_UNINSTALL_TARGET
955 INCLUDE_INSTALL_TARGET
959 LIBTOOL_UNINSTALL_TARGET
960 LIBTOOL_INSTALL_TARGET
961 DEFAULT_SHARED_OBJECT_TYPE
1035 LIBBACFIND_LT_RELEASE
1036 LIBBACCATS_LT_RELEASE
1037 LIBBACSQL_LT_RELEASE
1039 LIBBACCFG_LT_RELEASE
1081 program_transform_name
1091 ac_subst_files='MCOMMON'
1093 enable_option_checking
1104 with_libiconv_prefix
1106 with_included_gettext
1145 with_mon_dir_password
1146 with_mon_fd_password
1147 with_mon_sd_password
1172 ac_precious_vars='build_alias
1190 # Initialize some variables set by options.
1192 ac_init_version=false
1193 ac_unrecognized_opts=
1194 ac_unrecognized_sep=
1195 # The variables have the same names as the options, with
1196 # dashes changed to underlines.
1197 cache_file=/dev/null
1204 program_transform_name=s,x,x,
1212 # Installation directory options.
1213 # These are left unexpanded so users can "make install exec_prefix=/foo"
1214 # and all the variables that are supposed to be based on exec_prefix
1215 # by default will actually change.
1216 # Use braces instead of parens because sh, perl, etc. also accept them.
1217 # (The list follows the same order as the GNU Coding Standards.)
1218 bindir='${exec_prefix}/bin'
1219 sbindir='${exec_prefix}/sbin'
1220 libexecdir='${exec_prefix}/libexec'
1221 datarootdir='${prefix}/share'
1222 datadir='${datarootdir}'
1223 sysconfdir='${prefix}/etc'
1224 sharedstatedir='${prefix}/com'
1225 localstatedir='${prefix}/var'
1226 includedir='${prefix}/include'
1227 oldincludedir='/usr/include'
1228 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1229 infodir='${datarootdir}/info'
1234 libdir='${exec_prefix}/lib'
1235 localedir='${datarootdir}/locale'
1236 mandir='${datarootdir}/man'
1242 # If the previous option needs an argument, assign it.
1243 if test -n "$ac_prev"; then
1244 eval $ac_prev=\$ac_option
1250 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1254 # Accept the important Cygnus configure options, so we can diagnose typos.
1256 case $ac_dashdash$ac_option in
1260 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1262 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1263 bindir=$ac_optarg ;;
1265 -build | --build | --buil | --bui | --bu)
1266 ac_prev=build_alias ;;
1267 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1268 build_alias=$ac_optarg ;;
1270 -cache-file | --cache-file | --cache-fil | --cache-fi \
1271 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1272 ac_prev=cache_file ;;
1273 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1274 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1275 cache_file=$ac_optarg ;;
1277 --config-cache | -C)
1278 cache_file=config.cache ;;
1280 -datadir | --datadir | --datadi | --datad)
1282 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1283 datadir=$ac_optarg ;;
1285 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1286 | --dataroo | --dataro | --datar)
1287 ac_prev=datarootdir ;;
1288 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1289 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1290 datarootdir=$ac_optarg ;;
1292 -disable-* | --disable-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "enable_$ac_useropt"
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1307 eval enable_$ac_useropt=no ;;
1309 -docdir | --docdir | --docdi | --doc | --do)
1311 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1312 docdir=$ac_optarg ;;
1314 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1316 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1317 dvidir=$ac_optarg ;;
1319 -enable-* | --enable-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1324 { (exit 1); exit 1; }; }
1325 ac_useropt_orig=$ac_useropt
1326 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327 case $ac_user_opts in
1329 "enable_$ac_useropt"
1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1332 ac_unrecognized_sep=', ';;
1334 eval enable_$ac_useropt=\$ac_optarg ;;
1336 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1337 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1338 | --exec | --exe | --ex)
1339 ac_prev=exec_prefix ;;
1340 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1341 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1342 | --exec=* | --exe=* | --ex=*)
1343 exec_prefix=$ac_optarg ;;
1345 -gas | --gas | --ga | --g)
1346 # Obsolete; use --with-gas.
1349 -help | --help | --hel | --he | -h)
1350 ac_init_help=long ;;
1351 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1352 ac_init_help=recursive ;;
1353 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1354 ac_init_help=short ;;
1356 -host | --host | --hos | --ho)
1357 ac_prev=host_alias ;;
1358 -host=* | --host=* | --hos=* | --ho=*)
1359 host_alias=$ac_optarg ;;
1361 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1363 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1365 htmldir=$ac_optarg ;;
1367 -includedir | --includedir | --includedi | --included | --include \
1368 | --includ | --inclu | --incl | --inc)
1369 ac_prev=includedir ;;
1370 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1371 | --includ=* | --inclu=* | --incl=* | --inc=*)
1372 includedir=$ac_optarg ;;
1374 -infodir | --infodir | --infodi | --infod | --info | --inf)
1376 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1377 infodir=$ac_optarg ;;
1379 -libdir | --libdir | --libdi | --libd)
1381 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1382 libdir=$ac_optarg ;;
1384 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1385 | --libexe | --libex | --libe)
1386 ac_prev=libexecdir ;;
1387 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1388 | --libexe=* | --libex=* | --libe=*)
1389 libexecdir=$ac_optarg ;;
1391 -localedir | --localedir | --localedi | --localed | --locale)
1392 ac_prev=localedir ;;
1393 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1394 localedir=$ac_optarg ;;
1396 -localstatedir | --localstatedir | --localstatedi | --localstated \
1397 | --localstate | --localstat | --localsta | --localst | --locals)
1398 ac_prev=localstatedir ;;
1399 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1400 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1401 localstatedir=$ac_optarg ;;
1403 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1405 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1406 mandir=$ac_optarg ;;
1408 -nfp | --nfp | --nf)
1409 # Obsolete; use --without-fp.
1412 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1413 | --no-cr | --no-c | -n)
1416 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1417 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1420 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1421 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1422 | --oldin | --oldi | --old | --ol | --o)
1423 ac_prev=oldincludedir ;;
1424 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1425 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1426 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1427 oldincludedir=$ac_optarg ;;
1429 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1431 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1432 prefix=$ac_optarg ;;
1434 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1435 | --program-pre | --program-pr | --program-p)
1436 ac_prev=program_prefix ;;
1437 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1438 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1439 program_prefix=$ac_optarg ;;
1441 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1442 | --program-suf | --program-su | --program-s)
1443 ac_prev=program_suffix ;;
1444 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1445 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1446 program_suffix=$ac_optarg ;;
1448 -program-transform-name | --program-transform-name \
1449 | --program-transform-nam | --program-transform-na \
1450 | --program-transform-n | --program-transform- \
1451 | --program-transform | --program-transfor \
1452 | --program-transfo | --program-transf \
1453 | --program-trans | --program-tran \
1454 | --progr-tra | --program-tr | --program-t)
1455 ac_prev=program_transform_name ;;
1456 -program-transform-name=* | --program-transform-name=* \
1457 | --program-transform-nam=* | --program-transform-na=* \
1458 | --program-transform-n=* | --program-transform-=* \
1459 | --program-transform=* | --program-transfor=* \
1460 | --program-transfo=* | --program-transf=* \
1461 | --program-trans=* | --program-tran=* \
1462 | --progr-tra=* | --program-tr=* | --program-t=*)
1463 program_transform_name=$ac_optarg ;;
1465 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1467 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1468 pdfdir=$ac_optarg ;;
1470 -psdir | --psdir | --psdi | --psd | --ps)
1472 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1476 | -silent | --silent | --silen | --sile | --sil)
1479 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1481 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1483 sbindir=$ac_optarg ;;
1485 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1486 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1487 | --sharedst | --shareds | --shared | --share | --shar \
1489 ac_prev=sharedstatedir ;;
1490 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1491 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1492 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1494 sharedstatedir=$ac_optarg ;;
1496 -site | --site | --sit)
1498 -site=* | --site=* | --sit=*)
1501 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1503 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1504 srcdir=$ac_optarg ;;
1506 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1507 | --syscon | --sysco | --sysc | --sys | --sy)
1508 ac_prev=sysconfdir ;;
1509 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1510 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1511 sysconfdir=$ac_optarg ;;
1513 -target | --target | --targe | --targ | --tar | --ta | --t)
1514 ac_prev=target_alias ;;
1515 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1516 target_alias=$ac_optarg ;;
1518 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1521 -version | --version | --versio | --versi | --vers | -V)
1522 ac_init_version=: ;;
1525 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1526 # Reject names that are not valid shell variable names.
1527 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1528 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1529 { (exit 1); exit 1; }; }
1530 ac_useropt_orig=$ac_useropt
1531 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1532 case $ac_user_opts in
1536 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1537 ac_unrecognized_sep=', ';;
1539 eval with_$ac_useropt=\$ac_optarg ;;
1541 -without-* | --without-*)
1542 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1543 # Reject names that are not valid shell variable names.
1544 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1545 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1546 { (exit 1); exit 1; }; }
1547 ac_useropt_orig=$ac_useropt
1548 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1549 case $ac_user_opts in
1553 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1554 ac_unrecognized_sep=', ';;
1556 eval with_$ac_useropt=no ;;
1559 # Obsolete; use --with-x.
1562 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1563 | --x-incl | --x-inc | --x-in | --x-i)
1564 ac_prev=x_includes ;;
1565 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1566 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1567 x_includes=$ac_optarg ;;
1569 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1570 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1571 ac_prev=x_libraries ;;
1572 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1573 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1574 x_libraries=$ac_optarg ;;
1576 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1577 Try \`$0 --help' for more information." >&2
1578 { (exit 1); exit 1; }; }
1582 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1583 # Reject names that are not valid shell variable names.
1584 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1585 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1586 { (exit 1); exit 1; }; }
1587 eval $ac_envvar=\$ac_optarg
1588 export $ac_envvar ;;
1591 # FIXME: should be removed in autoconf 3.0.
1592 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1593 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1594 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1595 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1601 if test -n "$ac_prev"; then
1602 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1603 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1604 { (exit 1); exit 1; }; }
1607 if test -n "$ac_unrecognized_opts"; then
1608 case $enable_option_checking in
1610 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1611 { (exit 1); exit 1; }; } ;;
1612 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1616 # Check all directory arguments for consistency.
1617 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1618 datadir sysconfdir sharedstatedir localstatedir includedir \
1619 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1620 libdir localedir mandir
1622 eval ac_val=\$$ac_var
1623 # Remove trailing slashes.
1626 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1627 eval $ac_var=\$ac_val;;
1629 # Be sure to have absolute directory names.
1631 [\\/$]* | ?:[\\/]* ) continue;;
1632 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1634 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1635 { (exit 1); exit 1; }; }
1638 # There might be people who depend on the old broken behavior: `$host'
1639 # used to hold the argument of --host etc.
1640 # FIXME: To remove some day.
1643 target=$target_alias
1645 # FIXME: To remove some day.
1646 if test "x$host_alias" != x; then
1647 if test "x$build_alias" = x; then
1648 cross_compiling=maybe
1649 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1650 If a cross compiler is detected then cross compile mode will be used." >&2
1651 elif test "x$build_alias" != "x$host_alias"; then
1657 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1659 test "$silent" = yes && exec 6>/dev/null
1662 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1663 ac_ls_di=`ls -di .` &&
1664 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1665 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1666 { (exit 1); exit 1; }; }
1667 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1668 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1669 { (exit 1); exit 1; }; }
1672 # Find the source files, if location was not specified.
1673 if test -z "$srcdir"; then
1674 ac_srcdir_defaulted=yes
1675 # Try the directory containing this script, then the parent directory.
1676 ac_confdir=`$as_dirname -- "$as_myself" ||
1677 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1678 X"$as_myself" : 'X\(//\)[^/]' \| \
1679 X"$as_myself" : 'X\(//\)$' \| \
1680 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1681 $as_echo X"$as_myself" |
1682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1700 if test ! -r "$srcdir/$ac_unique_file"; then
1704 ac_srcdir_defaulted=no
1706 if test ! -r "$srcdir/$ac_unique_file"; then
1707 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1708 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1709 { (exit 1); exit 1; }; }
1711 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1713 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1714 { (exit 1); exit 1; }; }
1716 # When building in place, set srcdir=.
1717 if test "$ac_abs_confdir" = "$ac_pwd"; then
1720 # Remove unnecessary trailing slashes from srcdir.
1721 # Double slashes in file names in object file debugging info
1722 # mess up M-x gdb in Emacs.
1724 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1726 for ac_var in $ac_precious_vars; do
1727 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1728 eval ac_env_${ac_var}_value=\$${ac_var}
1729 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1730 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1734 # Report the --help message.
1736 if test "$ac_init_help" = "long"; then
1737 # Omit some internal or obsolete options to make the list less imposing.
1738 # This message is too long to be a string in the A/UX 3.1 sh.
1740 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1742 Usage: $0 [OPTION]... [VAR=VALUE]...
1744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1745 VAR=VALUE. See below for descriptions of some of the useful variables.
1747 Defaults for the options are specified in brackets.
1750 -h, --help display this help and exit
1751 --help=short display options specific to this package
1752 --help=recursive display the short help of all the included packages
1753 -V, --version display version information and exit
1754 -q, --quiet, --silent do not print \`checking...' messages
1755 --cache-file=FILE cache test results in FILE [disabled]
1756 -C, --config-cache alias for \`--cache-file=config.cache'
1757 -n, --no-create do not create output files
1758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1760 Installation directories:
1761 --prefix=PREFIX install architecture-independent files in PREFIX
1762 [$ac_default_prefix]
1763 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1766 By default, \`make install' will install all the files in
1767 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1768 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1769 for instance \`--prefix=\$HOME'.
1771 For better control, use the options below.
1773 Fine tuning of the installation directories:
1774 --bindir=DIR user executables [EPREFIX/bin]
1775 --sbindir=DIR system admin executables [EPREFIX/sbin]
1776 --libexecdir=DIR program executables [EPREFIX/libexec]
1777 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1778 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1779 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1780 --libdir=DIR object code libraries [EPREFIX/lib]
1781 --includedir=DIR C header files [PREFIX/include]
1782 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1783 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1784 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1785 --infodir=DIR info documentation [DATAROOTDIR/info]
1786 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1787 --mandir=DIR man documentation [DATAROOTDIR/man]
1788 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1789 --htmldir=DIR html documentation [DOCDIR]
1790 --dvidir=DIR dvi documentation [DOCDIR]
1791 --pdfdir=DIR pdf documentation [DOCDIR]
1792 --psdir=DIR ps documentation [DOCDIR]
1798 --x-includes=DIR X include files are in DIR
1799 --x-libraries=DIR X library files are in DIR
1802 --build=BUILD configure for building on BUILD [guessed]
1803 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1807 if test -n "$ac_init_help"; then
1808 case $ac_init_help in
1809 short | recursive ) echo "Configuration of bacula 5.1.14:";;
1814 --disable-option-checking ignore unrecognized --enable/--with options
1815 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1816 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1817 --enable-libtool enable building using GNU libtool [default=yes]
1818 --enable-shared[=PKGS] build shared libraries [default=yes]
1819 --enable-static[=PKGS] build static libraries [default=no]
1820 --enable-fast-install[=PKGS]
1821 optimize for fast installation [default=yes]
1822 --disable-libtool-lock avoid locking (might break parallel builds)
1823 --enable-includes enable installing of include files [default=no]
1824 --disable-nls do not use Native Language Support
1825 --disable-rpath do not hardcode runtime library paths
1826 --enable-gnome enable build of bgnome-console GUI [default=no]
1827 --enable-bat enable build of bat Qt4 GUI [default=no]
1828 --enable-bwx-console enable build of wxWidgets console [default=no]
1829 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1831 --enable-smartalloc enable smartalloc debugging support [default=no]
1832 --enable-lockmgr enable lock manager support [default=no]
1833 --enable-static-tools enable static tape tools [default=no]
1834 --enable-static-fd enable static File daemon [default=no]
1835 --enable-static-sd enable static Storage daemon [default=no]
1836 --enable-static-dir enable static Director [default=no]
1837 --enable-static-cons enable static Console [default=no]
1838 --enable-client-only build client (File daemon) only [default=no]
1839 --enable-build-dird enable building of dird (Director) [default=yes]
1840 --enable-build-stored enable building of stored (Storage daemon)
1842 --disable-conio disable conio support [default=no]
1843 --enable-ipv6 enable ipv6 support [default=yes]
1844 --disable-readline disable readline support [default=yes]
1845 --enable-batch-insert enable the DB batch insert code [default=yes]
1846 --disable-largefile omit support for large files
1847 --disable-acl disable acl support [default=auto]
1848 --disable-xattr disable xattr support [default=auto]
1851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1853 --with-pic try to use only PIC/non-PIC objects [default=use
1855 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1856 --with-gnu-ld assume the C compiler uses GNU ld default=no
1857 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1858 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1859 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1860 --without-libintl-prefix don't search for libintl in includedir and libdir
1861 --with-included-gettext use the GNU gettext library included here
1862 --with-readline[=DIR] specify readline library directory
1863 --with-python[=DIR] Include Python support. DIR is the Python base
1864 install directory, default is to search through a
1865 number of common places for the Python files.
1866 --with-tcp-wrappers[=DIR]
1867 enable tcpwrappers support
1868 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1869 --with-working-dir=PATH specify path of Bacula working directory
1870 --with-archivedir=PATH specify path of SD archive directory
1871 --with-basename=RESNAME specify base resource name for daemons
1872 --with-hostname=RESNAME specify host name for daemons
1873 --with-scriptdir=PATH specify path of Bacula scripts directory
1874 --with-bsrdir=PATH specify path of Bacula bsrs directory
1875 --with-logdir=PATH specify path of Bacula logs directory
1876 --with-plugindir=PATH specify path of Bacula plugins directory
1877 --with-dump-email=EMAIL dump email address
1878 --with-job-email=EMAIL job output email address
1879 --with-smtp-host=HOST SMTP mail host address
1880 --with-pid-dir=PATH specify location of Bacula pid files
1881 --with-subsys-dir=PATH specify location of Bacula subsys file
1882 --with-baseport=PORT specify base port address for daemons
1883 --with-dir-password=PASSWORD
1884 specify Director's password
1885 --with-fd-password=PASSWORD
1886 specify Client's password
1887 --with-sd-password=PASSWORD
1888 specify Storage daemon's password
1889 --with-mon-dir-password=PASSWORD
1890 specify Director's password used by the monitor
1891 --with-mon-fd-password=PASSWORD
1892 specify Client's password used by the monitor
1893 --with-mon-sd-password=PASSWORD
1894 specify Storage daemon's password used by the
1896 --with-db-name=DBNAME specify database name [default=bacula]
1897 --with-db-user=UNAME specify database user [default=bacula]
1898 --with-db-password=PWD specify database password [default=*none*]
1899 --with-db-port=DBPORT specify a database port [default=null]
1900 --with-dir-user=USER specify user for Director daemon
1901 --with-dir-group=GROUP specify group for Director daemon
1902 --with-sd-user=USER specify user for Storage daemon
1903 --with-sd-group=GROUP specify group for Storage daemon
1904 --with-fd-user=USER specify user for File daemon
1905 --with-fd-group=GROUP specify group for File daemon
1906 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1907 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1908 base install directory, [default=/usr/local/pgsql]
1909 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1910 directory, default is to search through a number of
1911 common places for the MySQL files.
1912 --with-embedded-mysql[=DIR]
1913 Include MySQL support. DIR is the MySQL base install
1914 directory, default is to search through a number of
1915 common places for the MySQL files.
1916 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1917 install directory, default is to search through a
1918 number of common places for the SQLite3 files.
1919 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1920 install directory, default is to search through a
1921 number of common places for the Ingres files.
1922 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1923 directory, default is to search through a number of
1924 common places for the DBI files.
1925 --with-dbi-driver[=DRIVER]
1926 Suport for DBI driver. DRIVER is the one DBI driver
1927 like Mysql, Postgresql, others. Default is to not
1928 configure any driver.
1929 --with-x use the X Window System
1931 Some influential environment variables:
1932 CC C compiler command
1933 CFLAGS C compiler flags
1934 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1935 nonstandard directory <lib dir>
1936 LIBS libraries to pass to the linker, e.g. -l<library>
1937 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1938 you have headers in a nonstandard directory <include dir>
1939 CXX C++ compiler command
1940 CXXFLAGS C++ compiler flags
1942 WXCONFIG wx-config command. On some systems, you must set it to
1943 wx-config-2.6 to use wxWidgets 2.6.
1944 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1945 CXXCPP C++ preprocessor
1946 XMKMF Path to xmkmf, Makefile generator for X Window System
1948 Use these variables to override the choices made by `configure' or to help
1949 it to find libraries and programs with nonstandard names/locations.
1955 if test "$ac_init_help" = "recursive"; then
1956 # If there are subdirs, report their specific --help.
1957 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1958 test -d "$ac_dir" ||
1959 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1966 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1967 # A ".." for each directory in $ac_dir_suffix.
1968 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1969 case $ac_top_builddir_sub in
1970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1974 ac_abs_top_builddir=$ac_pwd
1975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1976 # for backward compatibility:
1977 ac_top_builddir=$ac_top_build_prefix
1980 .) # We are building in place.
1982 ac_top_srcdir=$ac_top_builddir_sub
1983 ac_abs_top_srcdir=$ac_pwd ;;
1984 [\\/]* | ?:[\\/]* ) # Absolute name.
1985 ac_srcdir=$srcdir$ac_dir_suffix;
1986 ac_top_srcdir=$srcdir
1987 ac_abs_top_srcdir=$srcdir ;;
1989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1990 ac_top_srcdir=$ac_top_build_prefix$srcdir
1991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1995 cd "$ac_dir" || { ac_status=$?; continue; }
1996 # Check for guested configure.
1997 if test -f "$ac_srcdir/configure.gnu"; then
1999 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2000 elif test -f "$ac_srcdir/configure"; then
2002 $SHELL "$ac_srcdir/configure" --help=recursive
2004 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2006 cd "$ac_pwd" || { ac_status=$?; break; }
2010 test -n "$ac_init_help" && exit $ac_status
2011 if $ac_init_version; then
2013 bacula configure 5.1.14
2014 generated by GNU Autoconf 2.63
2016 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2017 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2018 This configure script is free software; the Free Software Foundation
2019 gives unlimited permission to copy, distribute and modify it.
2023 cat >config.log <<_ACEOF
2024 This file contains any messages produced by compilers while
2025 running configure, to aid debugging if configure makes a mistake.
2027 It was created by bacula $as_me 5.1.14, which was
2028 generated by GNU Autoconf 2.63. Invocation command line was
2040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 $as_echo "PATH: $as_dir"
2080 # Keep a trace of the command line.
2081 # Strip out --no-create and --no-recursion so they do not pile up.
2082 # Strip out --silent because we don't want to record it for future runs.
2083 # Also quote any args containing shell meta-characters.
2084 # Make two passes to allow for proper duplicate-argument suppression.
2088 ac_must_keep_next=false
2094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096 | -silent | --silent | --silen | --sile | --sil)
2099 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2102 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2104 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2105 if test $ac_must_keep_next = true; then
2106 ac_must_keep_next=false # Got value, back to normal.
2109 *=* | --config-cache | -C | -disable-* | --disable-* \
2110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112 | -with-* | --with-* | -without-* | --without-* | --x)
2113 case "$ac_configure_args0 " in
2114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2117 -* ) ac_must_keep_next=true ;;
2120 ac_configure_args="$ac_configure_args '$ac_arg'"
2125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2128 # When interrupted or exit'd, cleanup temporary files, and complete
2129 # config.log. We remove comments because anyway the quotes in there
2130 # would cause problems or look ugly.
2131 # WARNING: Use '\'' to represent an apostrophe within the trap.
2132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133 trap 'exit_status=$?
2134 # Save into config.log some information that might help in debugging.
2139 ## ---------------- ##
2140 ## Cache variables. ##
2141 ## ---------------- ##
2144 # The following way of writing the cache mishandles newlines in values,
2146 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2147 eval ac_val=\$$ac_var
2151 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2152 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2155 _ | IFS | as_nl) ;; #(
2156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2157 *) $as_unset $ac_var ;;
2162 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2163 *${as_nl}ac_space=\ *)
2165 "s/'\''/'\''\\\\'\'''\''/g;
2166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 ## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##
2182 for ac_var in $ac_subst_vars
2184 eval ac_val=\$$ac_var
2186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188 $as_echo "$ac_var='\''$ac_val'\''"
2192 if test -n "$ac_subst_files"; then
2194 ## ------------------- ##
2195 ## File substitutions. ##
2196 ## ------------------- ##
2199 for ac_var in $ac_subst_files
2201 eval ac_val=\$$ac_var
2203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 $as_echo "$ac_var='\''$ac_val'\''"
2210 if test -s confdefs.h; then
2220 test "$ac_signal" != 0 &&
2221 $as_echo "$as_me: caught signal $ac_signal"
2222 $as_echo "$as_me: exit $exit_status"
2224 rm -f core *.core core.conftest.* &&
2225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2228 for ac_signal in 1 2 13 15; do
2229 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234 rm -f -r conftest* confdefs.h
2236 # Predefined preprocessor variables.
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_NAME "$PACKAGE_NAME"
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263 # Let the site file select an alternate cache file if it wants to.
2264 # Prefer an explicitly selected file to automatically selected ones.
2267 if test -n "$CONFIG_SITE"; then
2268 ac_site_file1=$CONFIG_SITE
2269 elif test "x$prefix" != xNONE; then
2270 ac_site_file1=$prefix/share/config.site
2271 ac_site_file2=$prefix/etc/config.site
2273 ac_site_file1=$ac_default_prefix/share/config.site
2274 ac_site_file2=$ac_default_prefix/etc/config.site
2276 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2278 test "x$ac_site_file" = xNONE && continue
2279 if test -r "$ac_site_file"; then
2280 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2281 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2282 sed 's/^/| /' "$ac_site_file" >&5
2287 if test -r "$cache_file"; then
2288 # Some versions of bash will fail to source /dev/null (special
2289 # files actually), so we avoid doing that.
2290 if test -f "$cache_file"; then
2291 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2292 $as_echo "$as_me: loading cache $cache_file" >&6;}
2294 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2295 *) . "./$cache_file";;
2299 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2300 $as_echo "$as_me: creating cache $cache_file" >&6;}
2304 # Check that the precious variables saved in the cache have kept the same
2306 ac_cache_corrupted=false
2307 for ac_var in $ac_precious_vars; do
2308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2309 eval ac_new_set=\$ac_env_${ac_var}_set
2310 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2311 eval ac_new_val=\$ac_env_${ac_var}_value
2312 case $ac_old_set,$ac_new_set in
2314 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2315 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2316 ac_cache_corrupted=: ;;
2318 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2319 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2320 ac_cache_corrupted=: ;;
2323 if test "x$ac_old_val" != "x$ac_new_val"; then
2324 # differences in whitespace do not lead to failure.
2325 ac_old_val_w=`echo x $ac_old_val`
2326 ac_new_val_w=`echo x $ac_new_val`
2327 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2328 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2329 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2330 ac_cache_corrupted=:
2332 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2333 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2334 eval $ac_var=\$ac_old_val
2336 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2337 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2338 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2339 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2342 # Pass precious variables to config.status.
2343 if test "$ac_new_set" = set; then
2345 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2346 *) ac_arg=$ac_var=$ac_new_val ;;
2348 case " $ac_configure_args " in
2349 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2350 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2354 if $ac_cache_corrupted; then
2355 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2358 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2359 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2360 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2361 { (exit 1); exit 1; }; }
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2405 if test -f "$ac_dir/install-sh"; then
2407 ac_install_sh="$ac_aux_dir/install-sh -c"
2409 elif test -f "$ac_dir/install.sh"; then
2411 ac_install_sh="$ac_aux_dir/install.sh -c"
2413 elif test -f "$ac_dir/shtool"; then
2415 ac_install_sh="$ac_aux_dir/shtool install -c"
2419 if test -z "$ac_aux_dir"; then
2420 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2421 $as_echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2422 { (exit 1); exit 1; }; }
2425 # These three variables are undocumented and unsupported,
2426 # and are intended to be withdrawn in a future Autoconf release.
2427 # They can cause serious problems if a builder's source tree is in a directory
2428 # whose full name contains unusual characters.
2429 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2430 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2431 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2434 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2437 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2438 WIN32MAINDIR=${BUILD_DIR}
2439 WIN32TOPDIR=${TOP_DIR}
2446 # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2451 $as_echo_n "(cached) " >&6
2455 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 TRUEPRG=$ac_cv_path_TRUEPRG
2477 if test -n "$TRUEPRG"; then
2478 { $as_echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2479 $as_echo "$TRUEPRG" >&6; }
2481 { $as_echo "$as_me:$LINENO: result: no" >&5
2482 $as_echo "no" >&6; }
2486 test -n "$TRUEPRG" && break
2488 test -n "$TRUEPRG" || TRUEPRG=":"
2490 for ac_prog in false
2492 # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy $ac_prog; ac_word=$2
2494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2497 $as_echo_n "(cached) " >&6
2501 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 FALSEPRG=$ac_cv_path_FALSEPRG
2523 if test -n "$FALSEPRG"; then
2524 { $as_echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2525 $as_echo "$FALSEPRG" >&6; }
2527 { $as_echo "$as_me:$LINENO: result: no" >&5
2528 $as_echo "no" >&6; }
2532 test -n "$FALSEPRG" && break
2534 test -n "$FALSEPRG" || FALSEPRG=":"
2539 if test "x$BACULA" != x; then
2540 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2542 BACULA=${BACULA:-Bacula}
2543 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2544 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2545 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2546 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
2548 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2549 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2550 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2552 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
2553 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
2554 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
2557 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2558 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2560 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
2561 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
2564 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2566 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
2569 echo "configuring for ${BACULA} $VERSION ($DATE)"
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 $as_echo_n "(cached) " >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test -n "$CC"; then
2608 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2609 $as_echo "$CC" >&6; }
2611 { $as_echo "$as_me:$LINENO: result: no" >&5
2612 $as_echo "no" >&6; }
2617 if test -z "$ac_cv_prog_CC"; then
2619 # Extract the first word of "gcc", so it can be a program name with args.
2620 set dummy gcc; ac_word=$2
2621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2624 $as_echo_n "(cached) " >&6
2626 if test -n "$ac_ct_CC"; then
2627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_ac_ct_CC="gcc"
2637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647 if test -n "$ac_ct_CC"; then
2648 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2649 $as_echo "$ac_ct_CC" >&6; }
2651 { $as_echo "$as_me:$LINENO: result: no" >&5
2652 $as_echo "no" >&6; }
2655 if test "x$ac_ct_CC" = x; then
2658 case $cross_compiling:$ac_tool_warned in
2660 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662 ac_tool_warned=yes ;;
2670 if test -z "$CC"; then
2671 if test -n "$ac_tool_prefix"; then
2672 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}cc; ac_word=$2
2674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if test "${ac_cv_prog_CC+set}" = set; then
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_CC="${ac_tool_prefix}cc"
2690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2704 { $as_echo "$as_me:$LINENO: result: no" >&5
2705 $as_echo "no" >&6; }
2711 if test -z "$CC"; then
2712 # Extract the first word of "cc", so it can be a program name with args.
2713 set dummy cc; ac_word=$2
2714 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if test "${ac_cv_prog_CC+set}" = set; then
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2731 ac_prog_rejected=yes
2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 if test $ac_prog_rejected = yes; then
2743 # We found a bogon in the path, so make sure we never use it.
2744 set dummy $ac_cv_prog_CC
2746 if test $# != 0; then
2747 # We chose a different compiler from the bogus one.
2748 # However, it has the same basename, so the bogon will be chosen
2749 # first if we set CC to just the basename; use the full file name.
2751 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2757 if test -n "$CC"; then
2758 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2761 { $as_echo "$as_me:$LINENO: result: no" >&5
2762 $as_echo "no" >&6; }
2767 if test -z "$CC"; then
2768 if test -n "$ac_tool_prefix"; then
2769 for ac_prog in cl.exe
2771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2803 { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2808 test -n "$CC" && break
2811 if test -z "$CC"; then
2813 for ac_prog in cl.exe
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$ac_ct_CC"; then
2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_ac_ct_CC="$ac_prog"
2833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2845 $as_echo "$ac_ct_CC" >&6; }
2847 { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2852 test -n "$ac_ct_CC" && break
2855 if test "x$ac_ct_CC" = x; then
2858 case $cross_compiling:$ac_tool_warned in
2860 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2871 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2874 See \`config.log' for more details." >&5
2875 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2876 See \`config.log' for more details." >&2;}
2877 { (exit 1); exit 1; }; }; }
2879 # Provide some information about the compiler.
2880 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2883 { (ac_try="$ac_compiler --version >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2889 $as_echo "$ac_try_echo") >&5
2890 (eval "$ac_compiler --version >&5") 2>&5
2892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2900 $as_echo "$ac_try_echo") >&5
2901 (eval "$ac_compiler -v >&5") 2>&5
2903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905 { (ac_try="$ac_compiler -V >&5"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2911 $as_echo "$ac_try_echo") >&5
2912 (eval "$ac_compiler -V >&5") 2>&5
2914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2932 ac_clean_files_save=$ac_clean_files
2933 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2934 # Try to create an executable without -o first, disregard a.out.
2935 # It will help us diagnose broken compilers, and finding out an intuition
2937 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2938 $as_echo_n "checking for C compiler default output file name... " >&6; }
2939 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2941 # The possible output files:
2942 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2945 for ac_file in $ac_files
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2949 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2954 if { (ac_try="$ac_link_default"
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2960 $as_echo "$ac_try_echo") >&5
2961 (eval "$ac_link_default") 2>&5
2963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; then
2965 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2966 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2967 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2968 # so that the user can short-circuit this test for compilers unknown to
2970 for ac_file in $ac_files ''
2972 test -f "$ac_file" || continue
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2977 # We found the default executable, but exeext='' is most
2981 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2983 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985 # We set ac_cv_exeext here because the later test for it is not
2986 # safe: cross compilers may not add the suffix if given an `-o'
2987 # argument, so we may need to know it at that point already.
2988 # Even if this section looks crufty: it has the advantage of
2995 test "$ac_cv_exeext" = no && ac_cv_exeext=
3001 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3002 $as_echo "$ac_file" >&6; }
3003 if test -z "$ac_file"; then
3004 $as_echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3010 See \`config.log' for more details." >&5
3011 $as_echo "$as_me: error: C compiler cannot create executables
3012 See \`config.log' for more details." >&2;}
3013 { (exit 77); exit 77; }; }; }
3016 ac_exeext=$ac_cv_exeext
3018 # Check that the compiler produces executables we can run. If not, either
3019 # the compiler is broken, or we cross compile.
3020 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3021 $as_echo_n "checking whether the C compiler works... " >&6; }
3022 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3023 # If not cross compiling, check that we can run a simple program.
3024 if test "$cross_compiling" != yes; then
3025 if { ac_try='./$ac_file'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3031 $as_echo "$ac_try_echo") >&5
3032 (eval "$ac_try") 2>&5
3034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3038 if test "$cross_compiling" = maybe; then
3041 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3044 If you meant to cross compile, use \`--host'.
3045 See \`config.log' for more details." >&5
3046 $as_echo "$as_me: error: cannot run C compiled programs.
3047 If you meant to cross compile, use \`--host'.
3048 See \`config.log' for more details." >&2;}
3049 { (exit 1); exit 1; }; }; }
3053 { $as_echo "$as_me:$LINENO: result: yes" >&5
3054 $as_echo "yes" >&6; }
3056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3057 ac_clean_files=$ac_clean_files_save
3058 # Check that the compiler produces executables we can run. If not, either
3059 # the compiler is broken, or we cross compile.
3060 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3061 $as_echo_n "checking whether we are cross compiling... " >&6; }
3062 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3063 $as_echo "$cross_compiling" >&6; }
3065 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3066 $as_echo_n "checking for suffix of executables... " >&6; }
3067 if { (ac_try="$ac_link"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3073 $as_echo "$ac_try_echo") >&5
3074 (eval "$ac_link") 2>&5
3076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; then
3078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3079 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3080 # work properly (i.e., refer to `conftest.exe'), while it won't with
3082 for ac_file in conftest.exe conftest conftest.*; do
3083 test -f "$ac_file" || continue
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3092 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3095 See \`config.log' for more details." >&5
3096 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&2;}
3098 { (exit 1); exit 1; }; }; }
3101 rm -f conftest$ac_cv_exeext
3102 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3103 $as_echo "$ac_cv_exeext" >&6; }
3105 rm -f conftest.$ac_ext
3106 EXEEXT=$ac_cv_exeext
3108 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3109 $as_echo_n "checking for suffix of object files... " >&6; }
3110 if test "${ac_cv_objext+set}" = set; then
3111 $as_echo_n "(cached) " >&6
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3128 rm -f conftest.o conftest.obj
3129 if { (ac_try="$ac_compile"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3135 $as_echo "$ac_try_echo") >&5
3136 (eval "$ac_compile") 2>&5
3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; then
3140 for ac_file in conftest.o conftest.obj conftest.*; do
3141 test -f "$ac_file" || continue;
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3149 $as_echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3155 See \`config.log' for more details." >&5
3156 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }; }
3161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3163 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3164 $as_echo "$ac_cv_objext" >&6; }
3165 OBJEXT=$ac_cv_objext
3167 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3168 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3170 $as_echo_n "(cached) " >&6
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3197 $as_echo "$ac_try_echo") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } && {
3205 test -z "$ac_c_werror_flag" ||
3206 test ! -s conftest.err
3207 } && test -s conftest.$ac_objext; then
3210 $as_echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3220 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3222 if test $ac_compiler_gnu = yes; then
3227 ac_test_CFLAGS=${CFLAGS+set}
3228 ac_save_CFLAGS=$CFLAGS
3229 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3231 if test "${ac_cv_prog_cc_g+set}" = set; then
3232 $as_echo_n "(cached) " >&6
3234 ac_save_c_werror_flag=$ac_c_werror_flag
3235 ac_c_werror_flag=yes
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299 $as_echo "$ac_try_echo") >&5
3300 (eval "$ac_compile") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } && {
3307 test -z "$ac_c_werror_flag" ||
3308 test ! -s conftest.err
3309 } && test -s conftest.$ac_objext; then
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3332 rm -f conftest.$ac_objext
3333 if { (ac_try="$ac_compile"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && {
3347 test -z "$ac_c_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3367 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 $as_echo "$ac_cv_prog_cc_g" >&6; }
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3378 if test "$GCC" = yes; then
3384 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3386 if test "${ac_cv_prog_cc_c89+set}" = set; then
3387 $as_echo_n "(cached) " >&6
3389 ac_cv_prog_cc_c89=no
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3415 s = g (p, va_arg (v,int));
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430 inside strings and character constants. */
3432 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3448 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451 CC="$ac_save_CC $ac_arg"
3452 rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3459 $as_echo "$ac_try_echo") >&5
3460 (eval "$ac_compile") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } && {
3467 test -z "$ac_c_werror_flag" ||
3468 test ! -s conftest.err
3469 } && test -s conftest.$ac_objext; then
3470 ac_cv_prog_cc_c89=$ac_arg
3472 $as_echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3478 rm -f core conftest.err conftest.$ac_objext
3479 test "x$ac_cv_prog_cc_c89" != "xno" && break
3481 rm -f conftest.$ac_ext
3486 case "x$ac_cv_prog_cc_c89" in
3488 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3489 $as_echo "none needed" >&6; } ;;
3491 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3492 $as_echo "unsupported" >&6; } ;;
3494 CC="$CC $ac_cv_prog_cc_c89"
3495 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3496 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 ac_cpp='$CXXCPP $CPPFLAGS'
3508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3511 if test -z "$CXX"; then
3512 if test -n "$CCC"; then
3515 if test -n "$ac_tool_prefix"; then
3516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CXX+set}" = set; then
3523 $as_echo_n "(cached) " >&6
3525 if test -n "$CXX"; then
3526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 if test -n "$CXX"; then
3547 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3548 $as_echo "$CXX" >&6; }
3550 { $as_echo "$as_me:$LINENO: result: no" >&5
3551 $as_echo "no" >&6; }
3555 test -n "$CXX" && break
3558 if test -z "$CXX"; then
3560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3562 # Extract the first word of "$ac_prog", so it can be a program name with args.
3563 set dummy $ac_prog; ac_word=$2
3564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3567 $as_echo_n "(cached) " >&6
3569 if test -n "$ac_ct_CXX"; then
3570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 ac_cv_prog_ac_ct_CXX="$ac_prog"
3580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3590 if test -n "$ac_ct_CXX"; then
3591 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3592 $as_echo "$ac_ct_CXX" >&6; }
3594 { $as_echo "$as_me:$LINENO: result: no" >&5
3595 $as_echo "no" >&6; }
3599 test -n "$ac_ct_CXX" && break
3602 if test "x$ac_ct_CXX" = x; then
3605 case $cross_compiling:$ac_tool_warned in
3607 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3609 ac_tool_warned=yes ;;
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3621 { (ac_try="$ac_compiler --version >&5"
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3627 $as_echo "$ac_try_echo") >&5
3628 (eval "$ac_compiler --version >&5") 2>&5
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }
3632 { (ac_try="$ac_compiler -v >&5"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638 $as_echo "$ac_try_echo") >&5
3639 (eval "$ac_compiler -v >&5") 2>&5
3641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }
3643 { (ac_try="$ac_compiler -V >&5"
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3649 $as_echo "$ac_try_echo") >&5
3650 (eval "$ac_compiler -V >&5") 2>&5
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }
3655 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3656 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3657 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3658 $as_echo_n "(cached) " >&6
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3678 rm -f conftest.$ac_objext
3679 if { (ac_try="$ac_compile"
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3685 $as_echo "$ac_try_echo") >&5
3686 (eval "$ac_compile") 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && {
3693 test -z "$ac_cxx_werror_flag" ||
3694 test ! -s conftest.err
3695 } && test -s conftest.$ac_objext; then
3698 $as_echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3708 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3709 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3710 if test $ac_compiler_gnu = yes; then
3715 ac_test_CXXFLAGS=${CXXFLAGS+set}
3716 ac_save_CXXFLAGS=$CXXFLAGS
3717 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3718 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3719 if test "${ac_cv_prog_cxx_g+set}" = set; then
3720 $as_echo_n "(cached) " >&6
3722 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3723 ac_cxx_werror_flag=yes
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_cxx_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 ac_cv_prog_cxx_g=yes
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3780 rm -f conftest.$ac_objext
3781 if { (ac_try="$ac_compile"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo") >&5
3788 (eval "$ac_compile") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } && {
3795 test -z "$ac_cxx_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest.$ac_objext; then
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3805 cat >conftest.$ac_ext <<_ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_cxx_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 ac_cv_prog_cxx_g=yes
3840 $as_echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3856 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3857 if test "$ac_test_CXXFLAGS" = set; then
3858 CXXFLAGS=$ac_save_CXXFLAGS
3859 elif test $ac_cv_prog_cxx_g = yes; then
3860 if test "$GXX" = yes; then
3866 if test "$GXX" = yes; then
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 if test "x$CC" != xcc; then
3879 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3880 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3882 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3883 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3885 set dummy $CC; ac_cc=`$as_echo "$2" |
3886 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3887 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3888 $as_echo_n "(cached) " >&6
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3905 # Make sure it works both with $CC and with simple cc.
3906 # We do the test twice because some compilers refuse to overwrite an
3907 # existing .o file with -o, though they will create one.
3908 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3910 if { (case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3915 $as_echo "$ac_try_echo") >&5
3916 (eval "$ac_try") 2>&5
3918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3925 $as_echo "$ac_try_echo") >&5
3926 (eval "$ac_try") 2>&5
3928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); };
3931 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3932 if test "x$CC" != xcc; then
3933 # Test first that cc exists at all.
3934 if { ac_try='cc -c conftest.$ac_ext >&5'
3935 { (case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941 (eval "$ac_try") 2>&5
3943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3947 if { (case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3952 $as_echo "$ac_try_echo") >&5
3953 (eval "$ac_try") 2>&5
3955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3962 $as_echo "$ac_try_echo") >&5
3963 (eval "$ac_try") 2>&5
3965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); };
3971 # cc exists but doesn't like -o.
3972 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3977 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3979 rm -f core conftest*
3982 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3983 { $as_echo "$as_me:$LINENO: result: yes" >&5
3984 $as_echo "yes" >&6; }
3986 { $as_echo "$as_me:$LINENO: result: no" >&5
3987 $as_echo "no" >&6; }
3989 cat >>confdefs.h <<\_ACEOF
3990 #define NO_MINUS_C_MINUS_O 1
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4001 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4002 # On Suns, sometimes $CPP names a directory.
4003 if test -n "$CPP" && test -d "$CPP"; then
4006 if test -z "$CPP"; then
4007 if test "${ac_cv_prog_CPP+set}" = set; then
4008 $as_echo_n "(cached) " >&6
4010 # Double quotes because CPP needs to be expanded
4011 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4014 for ac_c_preproc_warn_flag in '' yes
4016 # Use a header file that comes with gcc, so configuring glibc
4017 # with a fresh cross-compiler works.
4018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4019 # <limits.h> exists even on freestanding compilers.
4020 # On the NeXT, cc -E runs the code through the compiler's parser,
4021 # not just through cpp. "Syntax error" is here to catch this case.
4022 cat >conftest.$ac_ext <<_ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4029 # include <limits.h>
4031 # include <assert.h>
4035 if { (ac_try="$ac_cpp conftest.$ac_ext"
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4041 $as_echo "$ac_try_echo") >&5
4042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4044 grep -v '^ *+' conftest.er1 >conftest.err
4046 cat conftest.err >&5
4047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } >/dev/null && {
4049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4050 test ! -s conftest.err
4054 $as_echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 # Broken: fails on valid input.
4061 rm -f conftest.err conftest.$ac_ext
4063 # OK, works on sane cases. Now check whether nonexistent headers
4064 # can be detected and how.
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 #include <ac_nonexistent.h>
4073 if { (ac_try="$ac_cpp conftest.$ac_ext"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4090 # Broken: success on invalid input.
4093 $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 # Passes both tests.
4101 rm -f conftest.err conftest.$ac_ext
4104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105 rm -f conftest.err conftest.$ac_ext
4106 if $ac_preproc_ok; then
4118 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4119 $as_echo "$CPP" >&6; }
4121 for ac_c_preproc_warn_flag in '' yes
4123 # Use a header file that comes with gcc, so configuring glibc
4124 # with a fresh cross-compiler works.
4125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126 # <limits.h> exists even on freestanding compilers.
4127 # On the NeXT, cc -E runs the code through the compiler's parser,
4128 # not just through cpp. "Syntax error" is here to catch this case.
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4136 # include <limits.h>
4138 # include <assert.h>
4142 if { (ac_try="$ac_cpp conftest.$ac_ext"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null && {
4156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 # Broken: fails on valid input.
4168 rm -f conftest.err conftest.$ac_ext
4170 # OK, works on sane cases. Now check whether nonexistent headers
4171 # can be detected and how.
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 #include <ac_nonexistent.h>
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4197 # Broken: success on invalid input.
4200 $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 # Passes both tests.
4208 rm -f conftest.err conftest.$ac_ext
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then
4216 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4219 See \`config.log' for more details." >&5
4220 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4221 See \`config.log' for more details." >&2;}
4222 { (exit 1); exit 1; }; }; }
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4234 if test "${ac_cv_path_GREP+set}" = set; then
4235 $as_echo_n "(cached) " >&6
4237 if test -z "$GREP"; then
4238 ac_path_GREP_found=false
4239 # Loop through the user's path and test for each of PROGNAME-LIST
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4244 test -z "$as_dir" && as_dir=.
4245 for ac_prog in grep ggrep; do
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4248 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4249 # Check for GNU ac_path_GREP and select it if it is found.
4250 # Check for GNU $ac_path_GREP
4251 case `"$ac_path_GREP" --version 2>&1` in
4253 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4256 $as_echo_n 0123456789 >"conftest.in"
4259 cat "conftest.in" "conftest.in" >"conftest.tmp"
4260 mv "conftest.tmp" "conftest.in"
4261 cp "conftest.in" "conftest.nl"
4262 $as_echo 'GREP' >> "conftest.nl"
4263 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265 ac_count=`expr $ac_count + 1`
4266 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4267 # Best one so far, save it but keep looking for a better one
4268 ac_cv_path_GREP="$ac_path_GREP"
4269 ac_path_GREP_max=$ac_count
4271 # 10*(2^10) chars as input seems more than enough
4272 test $ac_count -gt 10 && break
4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277 $ac_path_GREP_found && break 3
4282 if test -z "$ac_cv_path_GREP"; then
4283 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4284 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4285 { (exit 1); exit 1; }; }
4288 ac_cv_path_GREP=$GREP
4292 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4293 $as_echo "$ac_cv_path_GREP" >&6; }
4294 GREP="$ac_cv_path_GREP"
4297 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4298 $as_echo_n "checking for egrep... " >&6; }
4299 if test "${ac_cv_path_EGREP+set}" = set; then
4300 $as_echo_n "(cached) " >&6
4302 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303 then ac_cv_path_EGREP="$GREP -E"
4305 if test -z "$EGREP"; then
4306 ac_path_EGREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in egrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317 # Check for GNU ac_path_EGREP and select it if it is found.
4318 # Check for GNU $ac_path_EGREP
4319 case `"$ac_path_EGREP" --version 2>&1` in
4321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4324 $as_echo_n 0123456789 >"conftest.in"
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'EGREP' >> "conftest.nl"
4331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 ac_count=`expr $ac_count + 1`
4334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_EGREP="$ac_path_EGREP"
4337 ac_path_EGREP_max=$ac_count
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345 $ac_path_EGREP_found && break 3
4350 if test -z "$ac_cv_path_EGREP"; then
4351 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4352 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4353 { (exit 1); exit 1; }; }
4356 ac_cv_path_EGREP=$EGREP
4361 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4362 $as_echo "$ac_cv_path_EGREP" >&6; }
4363 EGREP="$ac_cv_path_EGREP"
4366 if test $ac_cv_c_compiler_gnu = yes; then
4367 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4368 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4369 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4370 $as_echo_n "(cached) " >&6
4372 ac_pattern="Autoconf.*'x'"
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4383 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4384 ac_cv_prog_gcc_traditional=yes
4386 ac_cv_prog_gcc_traditional=no
4391 if test $ac_cv_prog_gcc_traditional = no; then
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4402 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4403 ac_cv_prog_gcc_traditional=yes
4409 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4410 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4411 if test $ac_cv_prog_gcc_traditional = yes; then
4412 CC="$CC -traditional"
4416 BASECC=`basename $CC`
4418 if test "x$BASECC" = xgcc; then
4419 cat >>confdefs.h <<\_ACEOF
4425 # Extract the first word of "$CXX", so it can be a program name with args.
4426 set dummy $CXX; ac_word=$2
4427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if test "${ac_cv_path_CXX+set}" = set; then
4430 $as_echo_n "(cached) " >&6
4434 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4457 if test -n "$CXX"; then
4458 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4459 $as_echo "$CXX" >&6; }
4461 { $as_echo "$as_me:$LINENO: result: no" >&5
4462 $as_echo "no" >&6; }
4466 if test ! -e $CXX; then
4467 { { $as_echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4468 $as_echo "$as_me: error: Unable to find C++ compiler" >&2;}
4469 { (exit 1); exit 1; }; }
4472 # Find a good install program. We prefer a C program (faster),
4473 # so one script is as good as another. But avoid the broken or
4474 # incompatible versions:
4475 # SysV /etc/install, /usr/sbin/install
4476 # SunOS /usr/etc/install
4477 # IRIX /sbin/install
4479 # AmigaOS /C/install, which installs bootblocks on floppy discs
4480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4483 # OS/2's system install, which has a completely different semantic
4484 # ./install, which can be erroneously created by make from ./install.sh.
4485 # Reject install programs that cannot install multiple files.
4486 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4488 if test -z "$INSTALL"; then
4489 if test "${ac_cv_path_install+set}" = set; then
4490 $as_echo_n "(cached) " >&6
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 # Account for people who put trailing slashes in PATH elements.
4499 ./ | .// | /cC/* | \
4500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4501 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4504 # OSF1 and SCO ODT 3.0 have their own names for install.
4505 # Don't use installbsd from OSF since it installs stuff as root
4507 for ac_prog in ginstall scoinst install; do
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4510 if test $ac_prog = install &&
4511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4512 # AIX install. It has an incompatible calling convention.
4514 elif test $ac_prog = install &&
4515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4516 # program-specific install script used by HP pwplus--don't use.
4519 rm -rf conftest.one conftest.two conftest.dir
4520 echo one > conftest.one
4521 echo two > conftest.two
4523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4524 test -s conftest.one && test -s conftest.two &&
4525 test -s conftest.dir/conftest.one &&
4526 test -s conftest.dir/conftest.two
4528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4541 rm -rf conftest.one conftest.two conftest.dir
4544 if test "${ac_cv_path_install+set}" = set; then
4545 INSTALL=$ac_cv_path_install
4547 # As a last resort, use the slow shell script. Don't cache a
4548 # value for INSTALL within a source directory, because that will
4549 # break other packages using the cache if that directory is
4550 # removed, or if the value is a relative name.
4551 INSTALL=$ac_install_sh
4554 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4555 $as_echo "$INSTALL" >&6; }
4557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4558 # It thinks the first close brace ends the variable substitution.
4559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4565 # Extract the first word of "mv", so it can be a program name with args.
4566 set dummy mv; ac_word=$2
4567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if test "${ac_cv_path_MV+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4574 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4597 if test -n "$MV"; then
4598 { $as_echo "$as_me:$LINENO: result: $MV" >&5
4599 $as_echo "$MV" >&6; }
4601 { $as_echo "$as_me:$LINENO: result: no" >&5
4602 $as_echo "no" >&6; }
4606 # Extract the first word of "rm", so it can be a program name with args.
4607 set dummy rm; ac_word=$2
4608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if test "${ac_cv_path_REMOVE+set}" = set; then
4611 $as_echo_n "(cached) " >&6
4615 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4637 REMOVE=$ac_cv_path_REMOVE
4638 if test -n "$REMOVE"; then
4639 { $as_echo "$as_me:$LINENO: result: $REMOVE" >&5
4640 $as_echo "$REMOVE" >&6; }
4642 { $as_echo "$as_me:$LINENO: result: no" >&5
4643 $as_echo "no" >&6; }
4647 # Extract the first word of "cp", so it can be a program name with args.
4648 set dummy cp; ac_word=$2
4649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_path_CP+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4656 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4679 if test -n "$CP"; then
4680 { $as_echo "$as_me:$LINENO: result: $CP" >&5
4681 $as_echo "$CP" >&6; }
4683 { $as_echo "$as_me:$LINENO: result: no" >&5
4684 $as_echo "no" >&6; }
4688 # Extract the first word of "sed", so it can be a program name with args.
4689 set dummy sed; ac_word=$2
4690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_path_SED+set}" = set; then
4693 $as_echo_n "(cached) " >&6
4697 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4720 if test -n "$SED"; then
4721 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4722 $as_echo "$SED" >&6; }
4724 { $as_echo "$as_me:$LINENO: result: no" >&5
4725 $as_echo "no" >&6; }
4729 # Extract the first word of "echo", so it can be a program name with args.
4730 set dummy echo; ac_word=$2
4731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_path_ECHO+set}" = set; then
4734 $as_echo_n "(cached) " >&6
4738 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4760 ECHO=$ac_cv_path_ECHO
4761 if test -n "$ECHO"; then
4762 { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4763 $as_echo "$ECHO" >&6; }
4765 { $as_echo "$as_me:$LINENO: result: no" >&5
4766 $as_echo "no" >&6; }
4770 # Extract the first word of "cmp", so it can be a program name with args.
4771 set dummy cmp; ac_word=$2
4772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_path_CMP+set}" = set; then
4775 $as_echo_n "(cached) " >&6
4779 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4802 if test -n "$CMP"; then
4803 { $as_echo "$as_me:$LINENO: result: $CMP" >&5
4804 $as_echo "$CMP" >&6; }
4806 { $as_echo "$as_me:$LINENO: result: no" >&5
4807 $as_echo "no" >&6; }
4811 # Extract the first word of "tbl", so it can be a program name with args.
4812 set dummy tbl; ac_word=$2
4813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_path_TBL+set}" = set; then
4816 $as_echo_n "(cached) " >&6
4820 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4843 if test -n "$TBL"; then
4844 { $as_echo "$as_me:$LINENO: result: $TBL" >&5
4845 $as_echo "$TBL" >&6; }
4847 { $as_echo "$as_me:$LINENO: result: no" >&5
4848 $as_echo "no" >&6; }
4852 # Extract the first word of "ar", so it can be a program name with args.
4853 set dummy ar; ac_word=$2
4854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_path_AR+set}" = set; then
4857 $as_echo_n "(cached) " >&6
4861 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4884 if test -n "$AR"; then
4885 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4886 $as_echo "$AR" >&6; }
4888 { $as_echo "$as_me:$LINENO: result: no" >&5
4889 $as_echo "no" >&6; }
4893 # Extract the first word of "openssl", so it can be a program name with args.
4894 set dummy openssl; ac_word=$2
4895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_path_OPENSSL+set}" = set; then
4898 $as_echo_n "(cached) " >&6
4902 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4924 OPENSSL=$ac_cv_path_OPENSSL
4925 if test -n "$OPENSSL"; then
4926 { $as_echo "$as_me:$LINENO: result: $OPENSSL" >&5
4927 $as_echo "$OPENSSL" >&6; }
4929 { $as_echo "$as_me:$LINENO: result: no" >&5
4930 $as_echo "no" >&6; }
4934 # Extract the first word of "mtx", so it can be a program name with args.
4935 set dummy mtx; ac_word=$2
4936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if test "${ac_cv_path_MTX+set}" = set; then
4939 $as_echo_n "(cached) " >&6
4943 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4966 if test -n "$MTX"; then
4967 { $as_echo "$as_me:$LINENO: result: $MTX" >&5
4968 $as_echo "$MTX" >&6; }
4970 { $as_echo "$as_me:$LINENO: result: no" >&5
4971 $as_echo "no" >&6; }
4975 # Extract the first word of "dd", so it can be a program name with args.
4976 set dummy dd; ac_word=$2
4977 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if test "${ac_cv_path_DD+set}" = set; then
4980 $as_echo_n "(cached) " >&6
4984 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5007 if test -n "$DD"; then
5008 { $as_echo "$as_me:$LINENO: result: $DD" >&5
5009 $as_echo "$DD" >&6; }
5011 { $as_echo "$as_me:$LINENO: result: no" >&5
5012 $as_echo "no" >&6; }
5016 # Extract the first word of "mkisofs", so it can be a program name with args.
5017 set dummy mkisofs; ac_word=$2
5018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_path_MKISOFS+set}" = set; then
5021 $as_echo_n "(cached) " >&6
5025 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5047 MKISOFS=$ac_cv_path_MKISOFS
5048 if test -n "$MKISOFS"; then
5049 { $as_echo "$as_me:$LINENO: result: $MKISOFS" >&5
5050 $as_echo "$MKISOFS" >&6; }
5052 { $as_echo "$as_me:$LINENO: result: no" >&5
5053 $as_echo "no" >&6; }
5057 # Extract the first word of "python", so it can be a program name with args.
5058 set dummy python; ac_word=$2
5059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_path_PYTHON+set}" = set; then
5062 $as_echo_n "(cached) " >&6
5066 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5077 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5088 PYTHON=$ac_cv_path_PYTHON
5089 if test -n "$PYTHON"; then
5090 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5091 $as_echo "$PYTHON" >&6; }
5093 { $as_echo "$as_me:$LINENO: result: no" >&5
5094 $as_echo "no" >&6; }
5098 # Extract the first word of "growisofs", so it can be a program name with args.
5099 set dummy growisofs; ac_word=$2
5100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_path_GROWISOFS+set}" = set; then
5103 $as_echo_n "(cached) " >&6
5107 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5129 GROWISOFS=$ac_cv_path_GROWISOFS
5130 if test -n "$GROWISOFS"; then
5131 { $as_echo "$as_me:$LINENO: result: $GROWISOFS" >&5
5132 $as_echo "$GROWISOFS" >&6; }
5134 { $as_echo "$as_me:$LINENO: result: no" >&5
5135 $as_echo "no" >&6; }
5139 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5140 set dummy dvd+rw-mediainfo; ac_word=$2
5141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
5144 $as_echo_n "(cached) " >&6
5146 case $DVDRWMEDIAINFO in
5148 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5170 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5171 if test -n "$DVDRWMEDIAINFO"; then
5172 { $as_echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
5173 $as_echo "$DVDRWMEDIAINFO" >&6; }
5175 { $as_echo "$as_me:$LINENO: result: no" >&5
5176 $as_echo "no" >&6; }
5180 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5181 set dummy dvd+rw-format; ac_word=$2
5182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
5185 $as_echo_n "(cached) " >&6
5187 case $DVDRWFORMAT in
5189 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5211 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5212 if test -n "$DVDRWFORMAT"; then
5213 { $as_echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5214 $as_echo "$DVDRWFORMAT" >&6; }
5216 { $as_echo "$as_me:$LINENO: result: no" >&5
5217 $as_echo "no" >&6; }
5221 # Extract the first word of "pkg-config", so it can be a program name with args.
5222 set dummy pkg-config; ac_word=$2
5223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5226 $as_echo_n "(cached) " >&6
5230 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5252 PKGCONFIG=$ac_cv_path_PKGCONFIG
5253 if test -n "$PKGCONFIG"; then
5254 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5255 $as_echo "$PKGCONFIG" >&6; }
5257 { $as_echo "$as_me:$LINENO: result: no" >&5
5258 $as_echo "no" >&6; }
5262 # Extract the first word of "qmake", so it can be a program name with args.
5263 set dummy qmake; ac_word=$2
5264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if test "${ac_cv_path_QMAKE+set}" = set; then
5267 $as_echo_n "(cached) " >&6
5271 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5293 QMAKE=$ac_cv_path_QMAKE
5294 if test -n "$QMAKE"; then
5295 { $as_echo "$as_me:$LINENO: result: $QMAKE" >&5
5296 $as_echo "$QMAKE" >&6; }
5298 { $as_echo "$as_me:$LINENO: result: no" >&5
5299 $as_echo "no" >&6; }
5303 # Extract the first word of "gmake", so it can be a program name with args.
5304 set dummy gmake; ac_word=$2
5305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_path_GMAKE+set}" = set; then
5308 $as_echo_n "(cached) " >&6
5312 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5334 GMAKE=$ac_cv_path_GMAKE
5335 if test -n "$GMAKE"; then
5336 { $as_echo "$as_me:$LINENO: result: $GMAKE" >&5
5337 $as_echo "$GMAKE" >&6; }
5339 { $as_echo "$as_me:$LINENO: result: no" >&5
5340 $as_echo "no" >&6; }
5345 if test "x$WXCONFIG" = x; then
5348 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5349 set dummy ${WXCONFIG}; ac_word=$2
5350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5353 $as_echo_n "(cached) " >&6
5357 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5379 WXCONFIG=$ac_cv_path_WXCONFIG
5380 if test -n "$WXCONFIG"; then
5381 { $as_echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5382 $as_echo "$WXCONFIG" >&6; }
5384 { $as_echo "$as_me:$LINENO: result: no" >&5
5385 $as_echo "no" >&6; }
5390 # Extract the first word of "cdrecord", so it can be a program name with args.
5391 set dummy cdrecord; ac_word=$2
5392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_path_CDRECORD+set}" = set; then
5395 $as_echo_n "(cached) " >&6
5399 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5421 CDRECORD=$ac_cv_path_CDRECORD
5422 if test -n "$CDRECORD"; then
5423 { $as_echo "$as_me:$LINENO: result: $CDRECORD" >&5
5424 $as_echo "$CDRECORD" >&6; }
5426 { $as_echo "$as_me:$LINENO: result: no" >&5
5427 $as_echo "no" >&6; }
5431 # Extract the first word of "pidof", so it can be a program name with args.
5432 set dummy pidof; ac_word=$2
5433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if test "${ac_cv_path_PIDOF+set}" = set; then
5436 $as_echo_n "(cached) " >&6
5440 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5462 PIDOF=$ac_cv_path_PIDOF
5463 if test -n "$PIDOF"; then
5464 { $as_echo "$as_me:$LINENO: result: $PIDOF" >&5
5465 $as_echo "$PIDOF" >&6; }
5467 { $as_echo "$as_me:$LINENO: result: no" >&5
5468 $as_echo "no" >&6; }
5472 for ac_prog in gawk mawk nawk awk
5474 # Extract the first word of "$ac_prog", so it can be a program name with args.
5475 set dummy $ac_prog; ac_word=$2
5476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if test "${ac_cv_prog_AWK+set}" = set; then
5479 $as_echo_n "(cached) " >&6
5481 if test -n "$AWK"; then
5482 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_prog_AWK="$ac_prog"
5492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 if test -n "$AWK"; then
5503 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5504 $as_echo "$AWK" >&6; }
5506 { $as_echo "$as_me:$LINENO: result: no" >&5
5507 $as_echo "no" >&6; }
5511 test -n "$AWK" && break
5514 # Some AWK programs fail, so test it and warn the user
5515 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5516 { if ((prog == $2) || (("(" prog ")") == $2) ||
5517 (("" prog "") == $2) ||
5518 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5520 { { $as_echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5521 The regex engine of $AWK is too broken to be used you
5522 might want to install GNU AWK.
5523 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5524 $as_echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5525 The regex engine of $AWK is too broken to be used you
5526 might want to install GNU AWK.
5527 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5528 { (exit 1); exit 1; }; }
5531 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5532 set dummy $THE_AWK; ac_word=$2
5533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if test "${ac_cv_path_AWK+set}" = set; then
5536 $as_echo_n "(cached) " >&6
5540 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5563 if test -n "$AWK"; then
5564 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5565 $as_echo "$AWK" >&6; }
5567 { $as_echo "$as_me:$LINENO: result: no" >&5
5568 $as_echo "no" >&6; }
5574 test -n "$ARFLAG" || ARFLAGS="cr"
5586 # Check whether --enable-libtool was given.
5587 if test "${enable_libtool+set}" = set; then
5588 enableval=$enable_libtool;
5589 if test x$enableval = xno; then
5598 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5599 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5604 macro_version='2.2.6'
5605 macro_revision='1.3012'
5619 ltmain="$ac_aux_dir/ltmain.sh"
5621 # Make sure we can run config.sub.
5622 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5623 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5624 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5625 { (exit 1); exit 1; }; }
5627 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5628 $as_echo_n "checking build system type... " >&6; }
5629 if test "${ac_cv_build+set}" = set; then
5630 $as_echo_n "(cached) " >&6
5632 ac_build_alias=$build_alias
5633 test "x$ac_build_alias" = x &&
5634 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5635 test "x$ac_build_alias" = x &&
5636 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5637 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5638 { (exit 1); exit 1; }; }
5639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5640 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5641 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5642 { (exit 1); exit 1; }; }
5645 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5646 $as_echo "$ac_cv_build" >&6; }
5647 case $ac_cv_build in
5649 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5650 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5651 { (exit 1); exit 1; }; };;
5654 ac_save_IFS=$IFS; IFS='-'
5660 # Remember, the first character of IFS is used to create $*,
5661 # except with old shells:
5664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5667 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5668 $as_echo_n "checking host system type... " >&6; }
5669 if test "${ac_cv_host+set}" = set; then
5670 $as_echo_n "(cached) " >&6
5672 if test "x$host_alias" = x; then
5673 ac_cv_host=$ac_cv_build
5675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5676 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5677 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5678 { (exit 1); exit 1; }; }
5682 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5683 $as_echo "$ac_cv_host" >&6; }
5686 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5687 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5688 { (exit 1); exit 1; }; };;
5691 ac_save_IFS=$IFS; IFS='-'
5697 # Remember, the first character of IFS is used to create $*,
5698 # except with old shells:
5701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5704 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5705 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5706 if test "${ac_cv_path_SED+set}" = set; then
5707 $as_echo_n "(cached) " >&6
5709 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5710 for ac_i in 1 2 3 4 5 6 7; do
5711 ac_script="$ac_script$as_nl$ac_script"
5713 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5714 $as_unset ac_script || ac_script=
5715 if test -z "$SED"; then
5716 ac_path_SED_found=false
5717 # Loop through the user's path and test for each of PROGNAME-LIST
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir=.
5723 for ac_prog in sed gsed; do
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5726 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5727 # Check for GNU ac_path_SED and select it if it is found.
5728 # Check for GNU $ac_path_SED
5729 case `"$ac_path_SED" --version 2>&1` in
5731 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5734 $as_echo_n 0123456789 >"conftest.in"
5737 cat "conftest.in" "conftest.in" >"conftest.tmp"
5738 mv "conftest.tmp" "conftest.in"
5739 cp "conftest.in" "conftest.nl"
5740 $as_echo '' >> "conftest.nl"
5741 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5743 ac_count=`expr $ac_count + 1`
5744 if test $ac_count -gt ${ac_path_SED_max-0}; then
5745 # Best one so far, save it but keep looking for a better one
5746 ac_cv_path_SED="$ac_path_SED"
5747 ac_path_SED_max=$ac_count
5749 # 10*(2^10) chars as input seems more than enough
5750 test $ac_count -gt 10 && break
5752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5755 $ac_path_SED_found && break 3
5760 if test -z "$ac_cv_path_SED"; then
5761 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5762 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5763 { (exit 1); exit 1; }; }
5770 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5771 $as_echo "$ac_cv_path_SED" >&6; }
5772 SED="$ac_cv_path_SED"
5775 test -z "$SED" && SED=sed
5776 Xsed="$SED -e 1s/^X//"
5788 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5789 $as_echo_n "checking for fgrep... " >&6; }
5790 if test "${ac_cv_path_FGREP+set}" = set; then
5791 $as_echo_n "(cached) " >&6
5793 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5794 then ac_cv_path_FGREP="$GREP -F"
5796 if test -z "$FGREP"; then
5797 ac_path_FGREP_found=false
5798 # Loop through the user's path and test for each of PROGNAME-LIST
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5803 test -z "$as_dir" && as_dir=.
5804 for ac_prog in fgrep; do
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5807 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5808 # Check for GNU ac_path_FGREP and select it if it is found.
5809 # Check for GNU $ac_path_FGREP
5810 case `"$ac_path_FGREP" --version 2>&1` in
5812 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5815 $as_echo_n 0123456789 >"conftest.in"
5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
5819 mv "conftest.tmp" "conftest.in"
5820 cp "conftest.in" "conftest.nl"
5821 $as_echo 'FGREP' >> "conftest.nl"
5822 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824 ac_count=`expr $ac_count + 1`
5825 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5826 # Best one so far, save it but keep looking for a better one
5827 ac_cv_path_FGREP="$ac_path_FGREP"
5828 ac_path_FGREP_max=$ac_count
5830 # 10*(2^10) chars as input seems more than enough
5831 test $ac_count -gt 10 && break
5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5836 $ac_path_FGREP_found && break 3
5841 if test -z "$ac_cv_path_FGREP"; then
5842 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5843 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5844 { (exit 1); exit 1; }; }
5847 ac_cv_path_FGREP=$FGREP
5852 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5853 $as_echo "$ac_cv_path_FGREP" >&6; }
5854 FGREP="$ac_cv_path_FGREP"
5857 test -z "$GREP" && GREP=grep
5877 # Check whether --with-gnu-ld was given.
5878 if test "${with_gnu_ld+set}" = set; then
5879 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5885 if test "$GCC" = yes; then
5886 # Check if gcc -print-prog-name=ld gives a path.
5887 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5888 $as_echo_n "checking for ld used by $CC... " >&6; }
5891 # gcc leaves a trailing carriage return which upsets mingw
5892 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5894 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5897 # Accept absolute paths.
5899 re_direlt='/[^/][^/]*/\.\./'
5900 # Canonicalize the pathname of ld
5901 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5902 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5903 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5905 test -z "$LD" && LD="$ac_prog"
5908 # If it fails, then pretend we aren't using GCC.
5912 # If it is relative, then search for the first ld in PATH.
5916 elif test "$with_gnu_ld" = yes; then
5917 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5918 $as_echo_n "checking for GNU ld... " >&6; }
5920 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5921 $as_echo_n "checking for non-GNU ld... " >&6; }
5923 if test "${lt_cv_path_LD+set}" = set; then
5924 $as_echo_n "(cached) " >&6
5926 if test -z "$LD"; then
5927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5928 for ac_dir in $PATH; do
5930 test -z "$ac_dir" && ac_dir=.
5931 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5932 lt_cv_path_LD="$ac_dir/$ac_prog"
5933 # Check to see if the program is GNU ld. I'd rather use --version,
5934 # but apparently some variants of GNU ld only accept -v.
5935 # Break only if it was the GNU/non-GNU ld that we prefer.
5936 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5937 *GNU* | *'with BFD'*)
5938 test "$with_gnu_ld" != no && break
5941 test "$with_gnu_ld" != yes && break
5948 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5953 if test -n "$LD"; then
5954 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5955 $as_echo "$LD" >&6; }
5957 { $as_echo "$as_me:$LINENO: result: no" >&5
5958 $as_echo "no" >&6; }
5960 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5961 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5962 { (exit 1); exit 1; }; }
5963 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5964 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5965 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5966 $as_echo_n "(cached) " >&6
5968 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5969 case `$LD -v 2>&1 </dev/null` in
5970 *GNU* | *'with BFD'*)
5971 lt_cv_prog_gnu_ld=yes
5974 lt_cv_prog_gnu_ld=no
5978 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5979 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5980 with_gnu_ld=$lt_cv_prog_gnu_ld
5990 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5991 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5992 if test "${lt_cv_path_NM+set}" = set; then
5993 $as_echo_n "(cached) " >&6
5995 if test -n "$NM"; then
5996 # Let the user override the test.
5999 lt_nm_to_check="${ac_tool_prefix}nm"
6000 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6001 lt_nm_to_check="$lt_nm_to_check nm"
6003 for lt_tmp_nm in $lt_nm_to_check; do
6004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6005 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6007 test -z "$ac_dir" && ac_dir=.
6008 tmp_nm="$ac_dir/$lt_tmp_nm"
6009 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6010 # Check to see if the nm accepts a BSD-compat flag.
6011 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6012 # nm: unknown option "B" ignored
6013 # Tru64's nm complains that /dev/null is an invalid object file
6014 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6015 */dev/null* | *'Invalid file or object type'*)
6016 lt_cv_path_NM="$tmp_nm -B"
6020 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6022 lt_cv_path_NM="$tmp_nm -p"
6026 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6027 continue # so that we can try to find one that supports BSD flags
6036 : ${lt_cv_path_NM=no}
6039 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6040 $as_echo "$lt_cv_path_NM" >&6; }
6041 if test "$lt_cv_path_NM" != "no"; then
6044 # Didn't find any BSD compatible name lister, look for dumpbin.
6045 if test -n "$ac_tool_prefix"; then
6046 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6053 $as_echo_n "(cached) " >&6
6055 if test -n "$DUMPBIN"; then
6056 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 DUMPBIN=$ac_cv_prog_DUMPBIN
6076 if test -n "$DUMPBIN"; then
6077 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6078 $as_echo "$DUMPBIN" >&6; }
6080 { $as_echo "$as_me:$LINENO: result: no" >&5
6081 $as_echo "no" >&6; }
6085 test -n "$DUMPBIN" && break
6088 if test -z "$DUMPBIN"; then
6089 ac_ct_DUMPBIN=$DUMPBIN
6090 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6092 # Extract the first word of "$ac_prog", so it can be a program name with args.
6093 set dummy $ac_prog; ac_word=$2
6094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6097 $as_echo_n "(cached) " >&6
6099 if test -n "$ac_ct_DUMPBIN"; then
6100 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6120 if test -n "$ac_ct_DUMPBIN"; then
6121 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6122 $as_echo "$ac_ct_DUMPBIN" >&6; }
6124 { $as_echo "$as_me:$LINENO: result: no" >&5
6125 $as_echo "no" >&6; }
6129 test -n "$ac_ct_DUMPBIN" && break
6132 if test "x$ac_ct_DUMPBIN" = x; then
6135 case $cross_compiling:$ac_tool_warned in
6137 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139 ac_tool_warned=yes ;;
6141 DUMPBIN=$ac_ct_DUMPBIN
6146 if test "$DUMPBIN" != ":"; then
6150 test -z "$NM" && NM=nm
6157 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6158 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6159 if test "${lt_cv_nm_interface+set}" = set; then
6160 $as_echo_n "(cached) " >&6
6162 lt_cv_nm_interface="BSD nm"
6163 echo "int some_variable = 0;" > conftest.$ac_ext
6164 (eval echo "\"\$as_me:6164: $ac_compile\"" >&5)
6165 (eval "$ac_compile" 2>conftest.err)
6166 cat conftest.err >&5
6167 (eval echo "\"\$as_me:6167: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6168 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6169 cat conftest.err >&5
6170 (eval echo "\"\$as_me:6170: output\"" >&5)
6171 cat conftest.out >&5
6172 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6173 lt_cv_nm_interface="MS dumpbin"
6177 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6178 $as_echo "$lt_cv_nm_interface" >&6; }
6180 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6181 $as_echo_n "checking whether ln -s works... " >&6; }
6183 if test "$LN_S" = "ln -s"; then
6184 { $as_echo "$as_me:$LINENO: result: yes" >&5
6185 $as_echo "yes" >&6; }
6187 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6188 $as_echo "no, using $LN_S" >&6; }
6191 # find the maximum length of command line arguments
6192 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6193 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6194 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6195 $as_echo_n "(cached) " >&6
6202 # On DJGPP, this test can blow up pretty badly due to problems in libc
6203 # (any single argument exceeding 2000 bytes causes a buffer overrun
6204 # during glob expansion). Even if it were fixed, the result of this
6205 # check would be larger than it should be.
6206 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6210 # Under GNU Hurd, this test is not required because there is
6211 # no limit to the length of command line arguments.
6212 # Libtool will interpret -1 as no limit whatsoever
6213 lt_cv_sys_max_cmd_len=-1;
6216 cygwin* | mingw* | cegcc*)
6217 # On Win9x/ME, this test blows up -- it succeeds, but takes
6218 # about 5 minutes as the teststring grows exponentially.
6219 # Worse, since 9x/ME are not pre-emptively multitasking,
6220 # you end up with a "frozen" computer, even though with patience
6221 # the test eventually succeeds (with a max line length of 256k).
6222 # Instead, let's just punt: use the minimum linelength reported by
6223 # all of the supported platforms: 8192 (on NT/2K/XP).
6224 lt_cv_sys_max_cmd_len=8192;
6228 # On AmigaOS with pdksh, this test takes hours, literally.
6229 # So we just punt and use a minimum line length of 8192.
6230 lt_cv_sys_max_cmd_len=8192;
6233 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6234 # This has been around since 386BSD, at least. Likely further.
6235 if test -x /sbin/sysctl; then
6236 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6237 elif test -x /usr/sbin/sysctl; then
6238 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6240 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6242 # And add a safety zone
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6248 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6249 lt_cv_sys_max_cmd_len=196608
6253 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6254 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6255 # nice to cause kernel panics so lets avoid the loop below.
6256 # First set a reasonable default.
6257 lt_cv_sys_max_cmd_len=16384
6259 if test -x /sbin/sysconfig; then
6260 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6261 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6266 lt_cv_sys_max_cmd_len=102400
6268 sysv5* | sco5v6* | sysv4.2uw2*)
6269 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6270 if test -n "$kargmax"; then
6271 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6273 lt_cv_sys_max_cmd_len=32768
6277 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6278 if test -n "$lt_cv_sys_max_cmd_len"; then
6279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6282 # Make teststring a little bigger before we do anything with it.
6283 # a 1K string should be a reasonable start.
6284 for i in 1 2 3 4 5 6 7 8 ; do
6285 teststring=$teststring$teststring
6287 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6288 # If test is not a shell built-in, we'll probably end up computing a
6289 # maximum length that is only half of the actual maximum length, but
6291 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6292 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6293 test $i != 17 # 1/2 MB should be enough
6296 teststring=$teststring$teststring
6298 # Only check the string length outside the loop.
6299 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6301 # Add a significant safety factor because C++ compilers can tack on
6302 # massive amounts of additional arguments before passing them to the
6303 # linker. It appears as though 1/2 is a usable value.
6304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6311 if test -n $lt_cv_sys_max_cmd_len ; then
6312 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6313 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6315 { $as_echo "$as_me:$LINENO: result: none" >&5
6316 $as_echo "none" >&6; }
6318 max_cmd_len=$lt_cv_sys_max_cmd_len
6329 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6330 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6331 # Try some XSI features
6334 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6336 && eval 'test $(( 1 + 1 )) -eq 2 \
6337 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6339 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6340 $as_echo "$xsi_shell" >&6; }
6343 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6344 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6346 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6348 && lt_shell_append=yes
6349 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6350 $as_echo "$lt_shell_append" >&6; }
6353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6363 # test EBCDIC or ASCII
6364 case `echo X|tr X '\101'` in
6365 A) # ASCII based system
6366 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6367 lt_SP2NL='tr \040 \012'
6368 lt_NL2SP='tr \015\012 \040\040'
6370 *) # EBCDIC based system
6371 lt_SP2NL='tr \100 \n'
6372 lt_NL2SP='tr \r\n \100\100'
6384 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6385 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6386 if test "${lt_cv_ld_reload_flag+set}" = set; then
6387 $as_echo_n "(cached) " >&6
6389 lt_cv_ld_reload_flag='-r'
6391 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6392 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6393 reload_flag=$lt_cv_ld_reload_flag
6394 case $reload_flag in
6396 *) reload_flag=" $reload_flag" ;;
6398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6401 if test "$GCC" = yes; then
6402 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6404 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6417 if test -n "$ac_tool_prefix"; then
6418 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6419 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6423 $as_echo_n "(cached) " >&6
6425 if test -n "$OBJDUMP"; then
6426 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 OBJDUMP=$ac_cv_prog_OBJDUMP
6446 if test -n "$OBJDUMP"; then
6447 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6448 $as_echo "$OBJDUMP" >&6; }
6450 { $as_echo "$as_me:$LINENO: result: no" >&5
6451 $as_echo "no" >&6; }
6456 if test -z "$ac_cv_prog_OBJDUMP"; then
6457 ac_ct_OBJDUMP=$OBJDUMP
6458 # Extract the first word of "objdump", so it can be a program name with args.
6459 set dummy objdump; ac_word=$2
6460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6463 $as_echo_n "(cached) " >&6
6465 if test -n "$ac_ct_OBJDUMP"; then
6466 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6486 if test -n "$ac_ct_OBJDUMP"; then
6487 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6488 $as_echo "$ac_ct_OBJDUMP" >&6; }
6490 { $as_echo "$as_me:$LINENO: result: no" >&5
6491 $as_echo "no" >&6; }
6494 if test "x$ac_ct_OBJDUMP" = x; then
6497 case $cross_compiling:$ac_tool_warned in
6499 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6503 OBJDUMP=$ac_ct_OBJDUMP
6506 OBJDUMP="$ac_cv_prog_OBJDUMP"
6509 test -z "$OBJDUMP" && OBJDUMP=objdump
6519 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6520 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6521 if test "${lt_cv_deplibs_check_method+set}" = set; then
6522 $as_echo_n "(cached) " >&6
6524 lt_cv_file_magic_cmd='$MAGIC_CMD'
6525 lt_cv_file_magic_test_file=
6526 lt_cv_deplibs_check_method='unknown'
6527 # Need to set the preceding variable on all platforms that support
6528 # interlibrary dependencies.
6529 # 'none' -- dependencies not supported.
6530 # `unknown' -- same as none, but documents that we really don't know.
6531 # 'pass_all' -- all dependencies passed with no checks.
6532 # 'test_compile' -- check by making test program.
6533 # 'file_magic [[regex]]' -- check by looking for files in library path
6534 # which responds to the $file_magic_cmd with a given extended regex.
6535 # If you have `file' or equivalent on your system and you're not sure
6536 # whether `pass_all' will *always* work, you probably want this one.
6540 lt_cv_deplibs_check_method=pass_all
6544 lt_cv_deplibs_check_method=pass_all
6548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6549 lt_cv_file_magic_cmd='/usr/bin/file -L'
6550 lt_cv_file_magic_test_file=/shlib/libc.so
6554 # func_win32_libid is a shell function defined in ltmain.sh
6555 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6556 lt_cv_file_magic_cmd='func_win32_libid'
6560 # Base MSYS/MinGW do not provide the 'file' command needed by
6561 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6562 # unless we find 'file', for example because we are cross-compiling.
6563 if ( file / ) >/dev/null 2>&1; then
6564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6565 lt_cv_file_magic_cmd='func_win32_libid'
6567 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6568 lt_cv_file_magic_cmd='$OBJDUMP -f'
6573 # use the weaker test based on 'objdump'. See mingw*.
6574 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6575 lt_cv_file_magic_cmd='$OBJDUMP -f'
6578 darwin* | rhapsody*)
6579 lt_cv_deplibs_check_method=pass_all
6582 freebsd* | dragonfly*)
6583 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6586 # Not sure whether the presence of OpenBSD here was a mistake.
6587 # Let's accept both of them until this is cleared up.
6588 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6589 lt_cv_file_magic_cmd=/usr/bin/file
6590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6594 lt_cv_deplibs_check_method=pass_all
6599 lt_cv_deplibs_check_method=pass_all
6602 hpux10.20* | hpux11*)
6603 lt_cv_file_magic_cmd=/usr/bin/file
6606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6607 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6610 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]'
6611 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6614 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6615 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6621 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6625 irix5* | irix6* | nonstopux*)
6627 *-32|*"-32 ") libmagic=32-bit;;
6628 *-n32|*"-n32 ") libmagic=N32;;
6629 *-64|*"-64 ") libmagic=64-bit;;
6630 *) libmagic=never-match;;
6632 lt_cv_deplibs_check_method=pass_all
6635 # This must be Linux ELF.
6636 linux* | k*bsd*-gnu)
6637 lt_cv_deplibs_check_method=pass_all
6641 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6650 lt_cv_file_magic_cmd=/usr/bin/file
6651 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6655 lt_cv_deplibs_check_method=pass_all
6659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6666 osf3* | osf4* | osf5*)
6667 lt_cv_deplibs_check_method=pass_all
6671 lt_cv_deplibs_check_method=pass_all
6675 lt_cv_deplibs_check_method=pass_all
6678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6679 lt_cv_deplibs_check_method=pass_all
6683 case $host_vendor in
6685 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]'
6686 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6689 lt_cv_deplibs_check_method=pass_all
6692 lt_cv_file_magic_cmd='/bin/file'
6693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6696 lt_cv_file_magic_cmd='/bin/file'
6697 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6698 lt_cv_file_magic_test_file=/lib/libc.so
6701 lt_cv_deplibs_check_method=pass_all
6704 lt_cv_deplibs_check_method=pass_all
6710 lt_cv_deplibs_check_method=pass_all
6715 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6716 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6717 file_magic_cmd=$lt_cv_file_magic_cmd
6718 deplibs_check_method=$lt_cv_deplibs_check_method
6719 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}ar; ac_word=$2
6735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_AR+set}" = set; then
6738 $as_echo_n "(cached) " >&6
6740 if test -n "$AR"; then
6741 ac_cv_prog_AR="$AR" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_AR="${ac_tool_prefix}ar"
6751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 if test -n "$AR"; then
6762 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6763 $as_echo "$AR" >&6; }
6765 { $as_echo "$as_me:$LINENO: result: no" >&5
6766 $as_echo "no" >&6; }
6771 if test -z "$ac_cv_prog_AR"; then
6773 # Extract the first word of "ar", so it can be a program name with args.
6774 set dummy ar; ac_word=$2
6775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6778 $as_echo_n "(cached) " >&6
6780 if test -n "$ac_ct_AR"; then
6781 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_ac_ct_AR="ar"
6791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6801 if test -n "$ac_ct_AR"; then
6802 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6803 $as_echo "$ac_ct_AR" >&6; }
6805 { $as_echo "$as_me:$LINENO: result: no" >&5
6806 $as_echo "no" >&6; }
6809 if test "x$ac_ct_AR" = x; then
6812 case $cross_compiling:$ac_tool_warned in
6814 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6824 test -z "$AR" && AR=ar
6825 test -z "$AR_FLAGS" && AR_FLAGS=cru
6837 if test -n "$ac_tool_prefix"; then
6838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}strip; ac_word=$2
6840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_STRIP+set}" = set; then
6843 $as_echo_n "(cached) " >&6
6845 if test -n "$STRIP"; then
6846 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 STRIP=$ac_cv_prog_STRIP
6866 if test -n "$STRIP"; then
6867 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6868 $as_echo "$STRIP" >&6; }
6870 { $as_echo "$as_me:$LINENO: result: no" >&5
6871 $as_echo "no" >&6; }
6876 if test -z "$ac_cv_prog_STRIP"; then
6878 # Extract the first word of "strip", so it can be a program name with args.
6879 set dummy strip; ac_word=$2
6880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6883 $as_echo_n "(cached) " >&6
6885 if test -n "$ac_ct_STRIP"; then
6886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_prog_ac_ct_STRIP="strip"
6896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6906 if test -n "$ac_ct_STRIP"; then
6907 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6908 $as_echo "$ac_ct_STRIP" >&6; }
6910 { $as_echo "$as_me:$LINENO: result: no" >&5
6911 $as_echo "no" >&6; }
6914 if test "x$ac_ct_STRIP" = x; then
6917 case $cross_compiling:$ac_tool_warned in
6919 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6926 STRIP="$ac_cv_prog_STRIP"
6929 test -z "$STRIP" && STRIP=:
6936 if test -n "$ac_tool_prefix"; then
6937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6939 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if test "${ac_cv_prog_RANLIB+set}" = set; then
6942 $as_echo_n "(cached) " >&6
6944 if test -n "$RANLIB"; then
6945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 RANLIB=$ac_cv_prog_RANLIB
6965 if test -n "$RANLIB"; then
6966 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6967 $as_echo "$RANLIB" >&6; }
6969 { $as_echo "$as_me:$LINENO: result: no" >&5
6970 $as_echo "no" >&6; }
6975 if test -z "$ac_cv_prog_RANLIB"; then
6976 ac_ct_RANLIB=$RANLIB
6977 # Extract the first word of "ranlib", so it can be a program name with args.
6978 set dummy ranlib; ac_word=$2
6979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6982 $as_echo_n "(cached) " >&6
6984 if test -n "$ac_ct_RANLIB"; then
6985 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994 ac_cv_prog_ac_ct_RANLIB="ranlib"
6995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7005 if test -n "$ac_ct_RANLIB"; then
7006 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7007 $as_echo "$ac_ct_RANLIB" >&6; }
7009 { $as_echo "$as_me:$LINENO: result: no" >&5
7010 $as_echo "no" >&6; }
7013 if test "x$ac_ct_RANLIB" = x; then
7016 case $cross_compiling:$ac_tool_warned in
7018 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7020 ac_tool_warned=yes ;;
7022 RANLIB=$ac_ct_RANLIB
7025 RANLIB="$ac_cv_prog_RANLIB"
7028 test -z "$RANLIB" && RANLIB=:
7035 # Determine commands to create old-style static archives.
7036 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7037 old_postinstall_cmds='chmod 644 $oldlib'
7038 old_postuninstall_cmds=
7040 if test -n "$RANLIB"; then
7043 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7046 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7049 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7085 # If no C compiler was specified, use CC.
7088 # If no C compiler flags were specified, use CFLAGS.
7089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7091 # Allow CC to be a program name with arguments.
7095 # Check for command to grab the raw symbol name followed by C symbol from nm.
7096 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7097 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7098 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7099 $as_echo_n "(cached) " >&6
7102 # These are sane defaults that work on at least a few old systems.
7103 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7105 # Character class describing NM global symbol codes.
7106 symcode='[BCDEGRST]'
7108 # Regexp to match symbols that can be accessed directly from C.
7109 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7111 # Define system-specific variables.
7116 cygwin* | mingw* | pw32* | cegcc*)
7117 symcode='[ABCDGISTW]'
7120 if test "$host_cpu" = ia64; then
7121 symcode='[ABCDEGRST]'
7125 symcode='[BCDEGRST]'
7128 symcode='[BCDEGQRST]'
7139 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7147 # If we're using GNU nm, then use its standard symbol codes.
7148 case `$NM -V 2>&1` in
7149 *GNU* | *'with BFD'*)
7150 symcode='[ABCDGIRSTW]' ;;
7153 # Transform an extracted symbol line into a proper C declaration.
7154 # Some systems (esp. on ia64) link data and code symbols differently,
7155 # so use this general approach.
7156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7158 # Transform an extracted symbol line into symbol name and symbol address
7159 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7160 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'"
7162 # Handle CRLF in mingw tool chain
7166 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7170 # Try without a prefix underscore, then with it.
7171 for ac_symprfx in "" "_"; do
7173 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7174 symxfrm="\\1 $ac_symprfx\\2 \\2"
7176 # Write the raw and C identifiers.
7177 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7178 # Fake it for dumpbin and say T for any non-static function
7179 # and D for any global variable.
7180 # Also find C++ and __fastcall symbols from MSVC++,
7181 # which start with @ or ?.
7182 lt_cv_sys_global_symbol_pipe="$AWK '"\
7183 " {last_section=section; section=\$ 3};"\
7184 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7185 " \$ 0!~/External *\|/{next};"\
7186 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7187 " {if(hide[section]) next};"\
7188 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7189 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7190 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7191 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7192 " ' prfx=^$ac_symprfx"
7194 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7197 # Check to see that the pipe works correctly.
7201 cat > conftest.$ac_ext <<_LT_EOF
7206 void nm_test_func(void);
7207 void nm_test_func(void){}
7211 int main(){nm_test_var='a';nm_test_func();return(0);}
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>&5
7217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; then
7219 # Now try to grab the symbols.
7221 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7222 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && test -s "$nlist"; then
7226 # Try sorting and uniquifying the output.
7227 if sort "$nlist" | uniq > "$nlist"T; then
7228 mv -f "$nlist"T "$nlist"
7233 # Make sure that we snagged all the symbols we need.
7234 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7235 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7236 cat <<_LT_EOF > conftest.$ac_ext
7242 # Now generate the symbol file.
7243 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7245 cat <<_LT_EOF >> conftest.$ac_ext
7247 /* The mapping between symbol names and symbols. */
7252 lt__PROGRAM__LTX_preloaded_symbols[] =
7254 { "@PROGRAM@", (void *) 0 },
7256 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7257 cat <<\_LT_EOF >> conftest.$ac_ext
7261 /* This works around a problem in FreeBSD linker */
7262 #ifdef FREEBSD_WORKAROUND
7263 static const void *lt_preloaded_setup() {
7264 return lt__PROGRAM__LTX_preloaded_symbols;
7272 # Now try linking the two files.
7273 mv conftest.$ac_objext conftstm.$ac_objext
7274 lt_save_LIBS="$LIBS"
7275 lt_save_CFLAGS="$CFLAGS"
7276 LIBS="conftstm.$ac_objext"
7277 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279 (eval $ac_link) 2>&5
7281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7285 LIBS="$lt_save_LIBS"
7286 CFLAGS="$lt_save_CFLAGS"
7288 echo "cannot find nm_test_func in $nlist" >&5
7291 echo "cannot find nm_test_var in $nlist" >&5
7294 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7297 echo "$progname: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7300 rm -rf conftest* conftst*
7302 # Do not use the global_symbol_pipe unless it works.
7303 if test "$pipe_works" = yes; then
7306 lt_cv_sys_global_symbol_pipe=
7312 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7313 lt_cv_sys_global_symbol_to_cdecl=
7315 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7316 { $as_echo "$as_me:$LINENO: result: failed" >&5
7317 $as_echo "failed" >&6; }
7319 { $as_echo "$as_me:$LINENO: result: ok" >&5
7320 $as_echo "ok" >&6; }
7344 # Check whether --enable-libtool-lock was given.
7345 if test "${enable_libtool_lock+set}" = set; then
7346 enableval=$enable_libtool_lock;
7349 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7351 # Some flags need to be propagated to the compiler or linker for good
7355 # Find out which ABI we are using.
7356 echo 'int i;' > conftest.$ac_ext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358 (eval $ac_compile) 2>&5
7360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; then
7362 case `/usr/bin/file conftest.$ac_objext` in
7374 # Find out which ABI we are using.
7375 echo '#line 7375 "configure"' > conftest.$ac_ext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>&5
7379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; then
7381 if test "$lt_cv_prog_gnu_ld" = yes; then
7382 case `/usr/bin/file conftest.$ac_objext` in
7384 LD="${LD-ld} -melf32bsmip"
7387 LD="${LD-ld} -melf32bmipn32"
7390 LD="${LD-ld} -melf64bmip"
7394 case `/usr/bin/file conftest.$ac_objext` in
7410 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7411 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7412 # Find out which ABI we are using.
7413 echo 'int i;' > conftest.$ac_ext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>&5
7417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; then
7419 case `/usr/bin/file conftest.o` in
7422 x86_64-*kfreebsd*-gnu)
7423 LD="${LD-ld} -m elf_i386_fbsd"
7426 LD="${LD-ld} -m elf_i386"
7428 ppc64-*linux*|powerpc64-*linux*)
7429 LD="${LD-ld} -m elf32ppclinux"
7432 LD="${LD-ld} -m elf_s390"
7435 LD="${LD-ld} -m elf32_sparc"
7441 x86_64-*kfreebsd*-gnu)
7442 LD="${LD-ld} -m elf_x86_64_fbsd"
7445 LD="${LD-ld} -m elf_x86_64"
7447 ppc*-*linux*|powerpc*-*linux*)
7448 LD="${LD-ld} -m elf64ppc"
7450 s390*-*linux*|s390*-*tpf*)
7451 LD="${LD-ld} -m elf64_s390"
7454 LD="${LD-ld} -m elf64_sparc"
7464 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7465 SAVE_CFLAGS="$CFLAGS"
7466 CFLAGS="$CFLAGS -belf"
7467 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7468 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7469 if test "${lt_cv_cc_needs_belf+set}" = set; then
7470 $as_echo_n "(cached) " >&6
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7493 rm -f conftest.$ac_objext conftest$ac_exeext
7494 if { (ac_try="$ac_link"
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7500 $as_echo "$ac_try_echo") >&5
7501 (eval "$ac_link") 2>conftest.er1
7503 grep -v '^ *+' conftest.er1 >conftest.err
7505 cat conftest.err >&5
7506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && {
7508 test -z "$ac_c_werror_flag" ||
7509 test ! -s conftest.err
7510 } && test -s conftest$ac_exeext && {
7511 test "$cross_compiling" = yes ||
7512 $as_test_x conftest$ac_exeext
7514 lt_cv_cc_needs_belf=yes
7516 $as_echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7519 lt_cv_cc_needs_belf=no
7522 rm -rf conftest.dSYM
7523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7524 conftest$ac_exeext conftest.$ac_ext
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7533 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7536 CFLAGS="$SAVE_CFLAGS"
7540 # Find out which ABI we are using.
7541 echo 'int i;' > conftest.$ac_ext
7542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7543 (eval $ac_compile) 2>&5
7545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; then
7547 case `/usr/bin/file conftest.o` in
7549 case $lt_cv_prog_gnu_ld in
7550 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7552 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7564 need_locks="$enable_libtool_lock"
7568 rhapsody* | darwin*)
7569 if test -n "$ac_tool_prefix"; then
7570 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7575 $as_echo_n "(cached) " >&6
7577 if test -n "$DSYMUTIL"; then
7578 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7598 if test -n "$DSYMUTIL"; then
7599 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7600 $as_echo "$DSYMUTIL" >&6; }
7602 { $as_echo "$as_me:$LINENO: result: no" >&5
7603 $as_echo "no" >&6; }
7608 if test -z "$ac_cv_prog_DSYMUTIL"; then
7609 ac_ct_DSYMUTIL=$DSYMUTIL
7610 # Extract the first word of "dsymutil", so it can be a program name with args.
7611 set dummy dsymutil; ac_word=$2
7612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7615 $as_echo_n "(cached) " >&6
7617 if test -n "$ac_ct_DSYMUTIL"; then
7618 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7638 if test -n "$ac_ct_DSYMUTIL"; then
7639 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7640 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7642 { $as_echo "$as_me:$LINENO: result: no" >&5
7643 $as_echo "no" >&6; }
7646 if test "x$ac_ct_DSYMUTIL" = x; then
7649 case $cross_compiling:$ac_tool_warned in
7651 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7655 DSYMUTIL=$ac_ct_DSYMUTIL
7658 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7661 if test -n "$ac_tool_prefix"; then
7662 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7667 $as_echo_n "(cached) " >&6
7669 if test -n "$NMEDIT"; then
7670 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 NMEDIT=$ac_cv_prog_NMEDIT
7690 if test -n "$NMEDIT"; then
7691 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7692 $as_echo "$NMEDIT" >&6; }
7694 { $as_echo "$as_me:$LINENO: result: no" >&5
7695 $as_echo "no" >&6; }
7700 if test -z "$ac_cv_prog_NMEDIT"; then
7701 ac_ct_NMEDIT=$NMEDIT
7702 # Extract the first word of "nmedit", so it can be a program name with args.
7703 set dummy nmedit; ac_word=$2
7704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7707 $as_echo_n "(cached) " >&6
7709 if test -n "$ac_ct_NMEDIT"; then
7710 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7730 if test -n "$ac_ct_NMEDIT"; then
7731 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7732 $as_echo "$ac_ct_NMEDIT" >&6; }
7734 { $as_echo "$as_me:$LINENO: result: no" >&5
7735 $as_echo "no" >&6; }
7738 if test "x$ac_ct_NMEDIT" = x; then
7741 case $cross_compiling:$ac_tool_warned in
7743 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7747 NMEDIT=$ac_ct_NMEDIT
7750 NMEDIT="$ac_cv_prog_NMEDIT"
7753 if test -n "$ac_tool_prefix"; then
7754 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if test "${ac_cv_prog_LIPO+set}" = set; then
7759 $as_echo_n "(cached) " >&6
7761 if test -n "$LIPO"; then
7762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 LIPO=$ac_cv_prog_LIPO
7782 if test -n "$LIPO"; then
7783 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7784 $as_echo "$LIPO" >&6; }
7786 { $as_echo "$as_me:$LINENO: result: no" >&5
7787 $as_echo "no" >&6; }
7792 if test -z "$ac_cv_prog_LIPO"; then
7794 # Extract the first word of "lipo", so it can be a program name with args.
7795 set dummy lipo; ac_word=$2
7796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7799 $as_echo_n "(cached) " >&6
7801 if test -n "$ac_ct_LIPO"; then
7802 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_ac_ct_LIPO="lipo"
7812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7822 if test -n "$ac_ct_LIPO"; then
7823 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7824 $as_echo "$ac_ct_LIPO" >&6; }
7826 { $as_echo "$as_me:$LINENO: result: no" >&5
7827 $as_echo "no" >&6; }
7830 if test "x$ac_ct_LIPO" = x; then
7833 case $cross_compiling:$ac_tool_warned in
7835 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837 ac_tool_warned=yes ;;
7842 LIPO="$ac_cv_prog_LIPO"
7845 if test -n "$ac_tool_prefix"; then
7846 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7847 set dummy ${ac_tool_prefix}otool; ac_word=$2
7848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if test "${ac_cv_prog_OTOOL+set}" = set; then
7851 $as_echo_n "(cached) " >&6
7853 if test -n "$OTOOL"; then
7854 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
7862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 OTOOL=$ac_cv_prog_OTOOL
7874 if test -n "$OTOOL"; then
7875 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7876 $as_echo "$OTOOL" >&6; }
7878 { $as_echo "$as_me:$LINENO: result: no" >&5
7879 $as_echo "no" >&6; }
7884 if test -z "$ac_cv_prog_OTOOL"; then
7886 # Extract the first word of "otool", so it can be a program name with args.
7887 set dummy otool; ac_word=$2
7888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7891 $as_echo_n "(cached) " >&6
7893 if test -n "$ac_ct_OTOOL"; then
7894 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_ac_ct_OTOOL="otool"
7904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7914 if test -n "$ac_ct_OTOOL"; then
7915 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7916 $as_echo "$ac_ct_OTOOL" >&6; }
7918 { $as_echo "$as_me:$LINENO: result: no" >&5
7919 $as_echo "no" >&6; }
7922 if test "x$ac_ct_OTOOL" = x; then
7925 case $cross_compiling:$ac_tool_warned in
7927 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929 ac_tool_warned=yes ;;
7934 OTOOL="$ac_cv_prog_OTOOL"
7937 if test -n "$ac_tool_prefix"; then
7938 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7939 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7943 $as_echo_n "(cached) " >&6
7945 if test -n "$OTOOL64"; then
7946 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 OTOOL64=$ac_cv_prog_OTOOL64
7966 if test -n "$OTOOL64"; then
7967 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7968 $as_echo "$OTOOL64" >&6; }
7970 { $as_echo "$as_me:$LINENO: result: no" >&5
7971 $as_echo "no" >&6; }
7976 if test -z "$ac_cv_prog_OTOOL64"; then
7977 ac_ct_OTOOL64=$OTOOL64
7978 # Extract the first word of "otool64", so it can be a program name with args.
7979 set dummy otool64; ac_word=$2
7980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7983 $as_echo_n "(cached) " >&6
7985 if test -n "$ac_ct_OTOOL64"; then
7986 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_ac_ct_OTOOL64="otool64"
7996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8006 if test -n "$ac_ct_OTOOL64"; then
8007 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8008 $as_echo "$ac_ct_OTOOL64" >&6; }
8010 { $as_echo "$as_me:$LINENO: result: no" >&5
8011 $as_echo "no" >&6; }
8014 if test "x$ac_ct_OTOOL64" = x; then
8017 case $cross_compiling:$ac_tool_warned in
8019 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8023 OTOOL64=$ac_ct_OTOOL64
8026 OTOOL64="$ac_cv_prog_OTOOL64"
8055 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8056 $as_echo_n "checking for -single_module linker flag... " >&6; }
8057 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8058 $as_echo_n "(cached) " >&6
8060 lt_cv_apple_cc_single_mod=no
8061 if test -z "${LT_MULTI_MODULE}"; then
8062 # By default we will add the -single_module flag. You can override
8063 # by either setting the environment variable LT_MULTI_MODULE
8064 # non-empty at configure time, or by adding -multi_module to the
8066 rm -rf libconftest.dylib*
8067 echo "int foo(void){return 1;}" > conftest.c
8068 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8069 -dynamiclib -Wl,-single_module conftest.c" >&5
8070 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8071 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8073 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8074 lt_cv_apple_cc_single_mod=yes
8076 cat conftest.err >&5
8078 rm -rf libconftest.dylib*
8082 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8083 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8084 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8085 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8086 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8087 $as_echo_n "(cached) " >&6
8089 lt_cv_ld_exported_symbols_list=no
8090 save_LDFLAGS=$LDFLAGS
8091 echo "_main" > conftest.sym
8092 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8093 cat >conftest.$ac_ext <<_ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (ac_try="$ac_link"
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8115 $as_echo "$ac_try_echo") >&5
8116 (eval "$ac_link") 2>conftest.er1
8118 grep -v '^ *+' conftest.er1 >conftest.err
8120 cat conftest.err >&5
8121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } && {
8123 test -z "$ac_c_werror_flag" ||
8124 test ! -s conftest.err
8125 } && test -s conftest$ac_exeext && {
8126 test "$cross_compiling" = yes ||
8127 $as_test_x conftest$ac_exeext
8129 lt_cv_ld_exported_symbols_list=yes
8131 $as_echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 lt_cv_ld_exported_symbols_list=no
8137 rm -rf conftest.dSYM
8138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8139 conftest$ac_exeext conftest.$ac_ext
8140 LDFLAGS="$save_LDFLAGS"
8143 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8144 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8146 rhapsody* | darwin1.[012])
8147 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8149 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8150 darwin*) # darwin 5.x on
8151 # if running on 10.5 or later, the deployment target defaults
8152 # to the OS version, if on x86, and 10.4, the deployment
8153 # target defaults to 10.4. Don't you love it?
8154 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8155 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8156 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8158 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8160 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8164 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8165 _lt_dar_single_mod='$single_module'
8167 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8168 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8170 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8172 if test "$DSYMUTIL" != ":"; then
8173 _lt_dsymutil='~$DSYMUTIL $lib || :'
8180 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8181 $as_echo_n "checking for ANSI C header files... " >&6; }
8182 if test "${ac_cv_header_stdc+set}" = set; then
8183 $as_echo_n "(cached) " >&6
8185 cat >conftest.$ac_ext <<_ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8211 $as_echo "$ac_try_echo") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^ *+' conftest.er1 >conftest.err
8216 cat conftest.err >&5
8217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
8222 ac_cv_header_stdc=yes
8224 $as_echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8227 ac_cv_header_stdc=no
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 if test $ac_cv_header_stdc = yes; then
8233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 $EGREP "memchr" >/dev/null 2>&1; then
8247 ac_cv_header_stdc=no
8253 if test $ac_cv_header_stdc = yes; then
8254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8265 $EGREP "free" >/dev/null 2>&1; then
8268 ac_cv_header_stdc=no
8274 if test $ac_cv_header_stdc = yes; then
8275 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8276 if test "$cross_compiling" = yes; then
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8287 #if ((' ' & 0x0FF) == 0x020)
8288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8291 # define ISLOWER(c) \
8292 (('a' <= (c) && (c) <= 'i') \
8293 || ('j' <= (c) && (c) <= 'r') \
8294 || ('s' <= (c) && (c) <= 'z'))
8295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8303 for (i = 0; i < 256; i++)
8304 if (XOR (islower (i), ISLOWER (i))
8305 || toupper (i) != TOUPPER (i))
8310 rm -f conftest$ac_exeext
8311 if { (ac_try="$ac_link"
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8317 $as_echo "$ac_try_echo") >&5
8318 (eval "$ac_link") 2>&5
8320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8322 { (case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8327 $as_echo "$ac_try_echo") >&5
8328 (eval "$ac_try") 2>&5
8330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8334 $as_echo "$as_me: program exited with status $ac_status" >&5
8335 $as_echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8339 ac_cv_header_stdc=no
8341 rm -rf conftest.dSYM
8342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8348 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8349 $as_echo "$ac_cv_header_stdc" >&6; }
8350 if test $ac_cv_header_stdc = yes; then
8352 cat >>confdefs.h <<\_ACEOF
8353 #define STDC_HEADERS 1
8358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8369 inttypes.h stdint.h unistd.h
8371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8372 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8373 $as_echo_n "checking for $ac_header... " >&6; }
8374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8375 $as_echo_n "(cached) " >&6
8377 cat >conftest.$ac_ext <<_ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 $ac_includes_default
8385 #include <$ac_header>
8387 rm -f conftest.$ac_objext
8388 if { (ac_try="$ac_compile"
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394 $as_echo "$ac_try_echo") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 eval "$as_ac_Header=yes"
8407 $as_echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 eval "$as_ac_Header=no"
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 ac_res=`eval 'as_val=${'$as_ac_Header'}
8416 $as_echo "$as_val"'`
8417 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8418 $as_echo "$ac_res" >&6; }
8419 as_val=`eval 'as_val=${'$as_ac_Header'}
8420 $as_echo "$as_val"'`
8421 if test "x$as_val" = x""yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8432 for ac_header in dlfcn.h
8434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8435 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8436 $as_echo_n "checking for $ac_header... " >&6; }
8437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8438 $as_echo_n "(cached) " >&6
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8448 #include <$ac_header>
8450 rm -f conftest.$ac_objext
8451 if { (ac_try="$ac_compile"
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8457 $as_echo "$ac_try_echo") >&5
8458 (eval "$ac_compile") 2>conftest.er1
8460 grep -v '^ *+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && {
8465 test -z "$ac_c_werror_flag" ||
8466 test ! -s conftest.err
8467 } && test -s conftest.$ac_objext; then
8468 eval "$as_ac_Header=yes"
8470 $as_echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 eval "$as_ac_Header=no"
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 ac_res=`eval 'as_val=${'$as_ac_Header'}
8479 $as_echo "$as_val"'`
8480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8481 $as_echo "$ac_res" >&6; }
8482 as_val=`eval 'as_val=${'$as_ac_Header'}
8483 $as_echo "$as_val"'`
8484 if test "x$as_val" = x""yes; then
8485 cat >>confdefs.h <<_ACEOF
8486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8496 ac_cpp='$CXXCPP $CPPFLAGS'
8497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8500 if test -z "$CXX"; then
8501 if test -n "$CCC"; then
8504 if test -n "$ac_tool_prefix"; then
8505 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if test "${ac_cv_prog_CXX+set}" = set; then
8512 $as_echo_n "(cached) " >&6
8514 if test -n "$CXX"; then
8515 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8524 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 if test -n "$CXX"; then
8536 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8537 $as_echo "$CXX" >&6; }
8539 { $as_echo "$as_me:$LINENO: result: no" >&5
8540 $as_echo "no" >&6; }
8544 test -n "$CXX" && break
8547 if test -z "$CXX"; then
8549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8551 # Extract the first word of "$ac_prog", so it can be a program name with args.
8552 set dummy $ac_prog; ac_word=$2
8553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8556 $as_echo_n "(cached) " >&6
8558 if test -n "$ac_ct_CXX"; then
8559 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8568 ac_cv_prog_ac_ct_CXX="$ac_prog"
8569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8579 if test -n "$ac_ct_CXX"; then
8580 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8581 $as_echo "$ac_ct_CXX" >&6; }
8583 { $as_echo "$as_me:$LINENO: result: no" >&5
8584 $as_echo "no" >&6; }
8588 test -n "$ac_ct_CXX" && break
8591 if test "x$ac_ct_CXX" = x; then
8594 case $cross_compiling:$ac_tool_warned in
8596 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8598 ac_tool_warned=yes ;;
8606 # Provide some information about the compiler.
8607 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8610 { (ac_try="$ac_compiler --version >&5"
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8616 $as_echo "$ac_try_echo") >&5
8617 (eval "$ac_compiler --version >&5") 2>&5
8619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }
8621 { (ac_try="$ac_compiler -v >&5"
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8627 $as_echo "$ac_try_echo") >&5
8628 (eval "$ac_compiler -v >&5") 2>&5
8630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }
8632 { (ac_try="$ac_compiler -V >&5"
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8638 $as_echo "$ac_try_echo") >&5
8639 (eval "$ac_compiler -V >&5") 2>&5
8641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }
8644 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8645 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8646 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8647 $as_echo_n "(cached) " >&6
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8674 $as_echo "$ac_try_echo") >&5
8675 (eval "$ac_compile") 2>conftest.er1
8677 grep -v '^ *+' conftest.er1 >conftest.err
8679 cat conftest.err >&5
8680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } && {
8682 test -z "$ac_cxx_werror_flag" ||
8683 test ! -s conftest.err
8684 } && test -s conftest.$ac_objext; then
8687 $as_echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8697 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8698 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8699 if test $ac_compiler_gnu = yes; then
8704 ac_test_CXXFLAGS=${CXXFLAGS+set}
8705 ac_save_CXXFLAGS=$CXXFLAGS
8706 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8707 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8708 if test "${ac_cv_prog_cxx_g+set}" = set; then
8709 $as_echo_n "(cached) " >&6
8711 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8712 ac_cxx_werror_flag=yes
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8730 rm -f conftest.$ac_objext
8731 if { (ac_try="$ac_compile"
8733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734 *) ac_try_echo=$ac_try;;
8736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8737 $as_echo "$ac_try_echo") >&5
8738 (eval "$ac_compile") 2>conftest.er1
8740 grep -v '^ *+' conftest.er1 >conftest.err
8742 cat conftest.err >&5
8743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_cxx_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest.$ac_objext; then
8748 ac_cv_prog_cxx_g=yes
8750 $as_echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8754 cat >conftest.$ac_ext <<_ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8769 rm -f conftest.$ac_objext
8770 if { (ac_try="$ac_compile"
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8776 $as_echo "$ac_try_echo") >&5
8777 (eval "$ac_compile") 2>conftest.er1
8779 grep -v '^ *+' conftest.er1 >conftest.err
8781 cat conftest.err >&5
8782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && {
8784 test -z "$ac_cxx_werror_flag" ||
8785 test ! -s conftest.err
8786 } && test -s conftest.$ac_objext; then
8789 $as_echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8816 $as_echo "$ac_try_echo") >&5
8817 (eval "$ac_compile") 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_cxx_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest.$ac_objext; then
8827 ac_cv_prog_cxx_g=yes
8829 $as_echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8844 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8845 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8846 if test "$ac_test_CXXFLAGS" = set; then
8847 CXXFLAGS=$ac_save_CXXFLAGS
8848 elif test $ac_cv_prog_cxx_g = yes; then
8849 if test "$GXX" = yes; then
8855 if test "$GXX" = yes; then
8862 ac_cpp='$CPP $CPPFLAGS'
8863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8867 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8868 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8869 (test "X$CXX" != "Xg++"))) ; then
8871 ac_cpp='$CXXCPP $CPPFLAGS'
8872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8875 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8876 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8877 if test -z "$CXXCPP"; then
8878 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8879 $as_echo_n "(cached) " >&6
8881 # Double quotes because CXXCPP needs to be expanded
8882 for CXXCPP in "$CXX -E" "/lib/cpp"
8885 for ac_cxx_preproc_warn_flag in '' yes
8887 # Use a header file that comes with gcc, so configuring glibc
8888 # with a fresh cross-compiler works.
8889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8890 # <limits.h> exists even on freestanding compilers.
8891 # On the NeXT, cc -E runs the code through the compiler's parser,
8892 # not just through cpp. "Syntax error" is here to catch this case.
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8900 # include <limits.h>
8902 # include <assert.h>
8906 if { (ac_try="$ac_cpp conftest.$ac_ext"
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8912 $as_echo "$ac_try_echo") >&5
8913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } >/dev/null && {
8920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8921 test ! -s conftest.err
8925 $as_echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 # Broken: fails on valid input.
8932 rm -f conftest.err conftest.$ac_ext
8934 # OK, works on sane cases. Now check whether nonexistent headers
8935 # can be detected and how.
8936 cat >conftest.$ac_ext <<_ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 #include <ac_nonexistent.h>
8944 if { (ac_try="$ac_cpp conftest.$ac_ext"
8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947 *) ac_try_echo=$ac_try;;
8949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8950 $as_echo "$ac_try_echo") >&5
8951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8953 grep -v '^ *+' conftest.er1 >conftest.err
8955 cat conftest.err >&5
8956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } >/dev/null && {
8958 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8959 test ! -s conftest.err
8961 # Broken: success on invalid input.
8964 $as_echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 # Passes both tests.
8972 rm -f conftest.err conftest.$ac_ext
8975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8976 rm -f conftest.err conftest.$ac_ext
8977 if $ac_preproc_ok; then
8982 ac_cv_prog_CXXCPP=$CXXCPP
8985 CXXCPP=$ac_cv_prog_CXXCPP
8987 ac_cv_prog_CXXCPP=$CXXCPP
8989 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8990 $as_echo "$CXXCPP" >&6; }
8992 for ac_cxx_preproc_warn_flag in '' yes
8994 # Use a header file that comes with gcc, so configuring glibc
8995 # with a fresh cross-compiler works.
8996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8997 # <limits.h> exists even on freestanding compilers.
8998 # On the NeXT, cc -E runs the code through the compiler's parser,
8999 # not just through cpp. "Syntax error" is here to catch this case.
9000 cat >conftest.$ac_ext <<_ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9007 # include <limits.h>
9009 # include <assert.h>
9013 if { (ac_try="$ac_cpp conftest.$ac_ext"
9015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016 *) ac_try_echo=$ac_try;;
9018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9019 $as_echo "$ac_try_echo") >&5
9020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } >/dev/null && {
9027 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9028 test ! -s conftest.err
9032 $as_echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 # Broken: fails on valid input.
9039 rm -f conftest.err conftest.$ac_ext
9041 # OK, works on sane cases. Now check whether nonexistent headers
9042 # can be detected and how.
9043 cat >conftest.$ac_ext <<_ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 #include <ac_nonexistent.h>
9051 if { (ac_try="$ac_cpp conftest.$ac_ext"
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9057 $as_echo "$ac_try_echo") >&5
9058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9060 grep -v '^ *+' conftest.er1 >conftest.err
9062 cat conftest.err >&5
9063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } >/dev/null && {
9065 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9066 test ! -s conftest.err
9068 # Broken: success on invalid input.
9071 $as_echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 # Passes both tests.
9079 rm -f conftest.err conftest.$ac_ext
9082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9083 rm -f conftest.err conftest.$ac_ext
9084 if $ac_preproc_ok; then
9087 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9089 _lt_caught_CXX_error=yes; }
9093 ac_cpp='$CPP $CPPFLAGS'
9094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9099 _lt_caught_CXX_error=yes
9107 # Check whether --enable-shared was given.
9108 if test "${enable_shared+set}" = set; then
9109 enableval=$enable_shared; p=${PACKAGE-default}
9111 yes) enable_shared=yes ;;
9112 no) enable_shared=no ;;
9115 # Look at the argument we got. We use all the common list separators.
9116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9117 for pkg in $enableval; do
9119 if test "X$pkg" = "X$p"; then
9136 # Check whether --enable-static was given.
9137 if test "${enable_static+set}" = set; then
9138 enableval=$enable_static; p=${PACKAGE-default}
9140 yes) enable_static=yes ;;
9141 no) enable_static=no ;;
9144 # Look at the argument we got. We use all the common list separators.
9145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9146 for pkg in $enableval; do
9148 if test "X$pkg" = "X$p"; then
9177 # Check whether --with-pic was given.
9178 if test "${with_pic+set}" = set; then
9179 withval=$with_pic; pic_mode="$withval"
9185 test -z "$pic_mode" && pic_mode=default
9193 # Check whether --enable-fast-install was given.
9194 if test "${enable_fast_install+set}" = set; then
9195 enableval=$enable_fast_install; p=${PACKAGE-default}
9197 yes) enable_fast_install=yes ;;
9198 no) enable_fast_install=no ;;
9200 enable_fast_install=no
9201 # Look at the argument we got. We use all the common list separators.
9202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9203 for pkg in $enableval; do
9205 if test "X$pkg" = "X$p"; then
9206 enable_fast_install=yes
9213 enable_fast_install=yes
9226 # This can be used to rebuild libtool when needed
9227 LIBTOOL_DEPS="$ltmain"
9229 # Always use our own libtool.
9230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9256 test -z "$LN_S" && LN_S="ln -s"
9271 if test -n "${ZSH_VERSION+set}" ; then
9272 setopt NO_GLOB_SUBST
9275 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9276 $as_echo_n "checking for objdir... " >&6; }
9277 if test "${lt_cv_objdir+set}" = set; then
9278 $as_echo_n "(cached) " >&6
9280 rm -f .libs 2>/dev/null
9281 mkdir .libs 2>/dev/null
9282 if test -d .libs; then
9285 # MS-DOS does not allow filenames that begin with a dot.
9288 rmdir .libs 2>/dev/null
9290 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9291 $as_echo "$lt_cv_objdir" >&6; }
9292 objdir=$lt_cv_objdir
9298 cat >>confdefs.h <<_ACEOF
9299 #define LT_OBJDIR "$lt_cv_objdir/"
9320 # AIX sometimes has problems with the GCC collect2 program. For some
9321 # reason, if we set the COLLECT_NAMES environment variable, the problems
9322 # vanish in a puff of smoke.
9323 if test "X${COLLECT_NAMES+set}" != Xset; then
9325 export COLLECT_NAMES
9330 # Sed substitution that helps us do robust quoting. It backslashifies
9331 # metacharacters that are still active within double-quoted strings.
9332 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9334 # Same as above, but do not quote variable references.
9335 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9337 # Sed substitution to delay expansion of an escaped shell variable in a
9338 # double_quote_subst'ed string.
9339 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9341 # Sed substitution to delay expansion of an escaped single quote.
9342 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9344 # Sed substitution to avoid accidental globbing in evaled expressions
9345 no_glob_subst='s/\*/\\\*/g'
9349 can_build_shared=yes
9351 # All known linkers require a `.a' archive for static linking (except MSVC,
9352 # which needs '.lib').
9355 with_gnu_ld="$lt_cv_prog_gnu_ld"
9358 old_CFLAGS="$CFLAGS"
9360 # Set sane defaults for various variables
9361 test -z "$CC" && CC=cc
9362 test -z "$LTCC" && LTCC=$CC
9363 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9364 test -z "$LD" && LD=ld
9365 test -z "$ac_objext" && ac_objext=o
9367 for cc_temp in $compiler""; do
9369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9375 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9378 # Only perform the check for file, if the check method requires it
9379 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9380 case $deplibs_check_method in
9382 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9383 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9384 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9386 $as_echo_n "(cached) " >&6
9390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9393 lt_save_MAGIC_CMD="$MAGIC_CMD"
9394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9395 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9396 for ac_dir in $ac_dummy; do
9398 test -z "$ac_dir" && ac_dir=.
9399 if test -f $ac_dir/${ac_tool_prefix}file; then
9400 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9401 if test -n "$file_magic_test_file"; then
9402 case $deplibs_check_method in
9404 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9407 $EGREP "$file_magic_regex" > /dev/null; then
9412 *** Warning: the command libtool uses to detect shared libraries,
9413 *** $file_magic_cmd, produces output that libtool cannot recognize.
9414 *** The result is that libtool may fail to recognize shared libraries
9415 *** as such. This will affect the creation of libtool libraries that
9416 *** depend on shared libraries, but programs linked with such libtool
9417 *** libraries will work regardless of this problem. Nevertheless, you
9418 *** may want to report the problem to your system manager and/or to
9419 *** bug-libtool@gnu.org
9429 MAGIC_CMD="$lt_save_MAGIC_CMD"
9434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9435 if test -n "$MAGIC_CMD"; then
9436 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9437 $as_echo "$MAGIC_CMD" >&6; }
9439 { $as_echo "$as_me:$LINENO: result: no" >&5
9440 $as_echo "no" >&6; }
9447 if test -z "$lt_cv_path_MAGIC_CMD"; then
9448 if test -n "$ac_tool_prefix"; then
9449 { $as_echo "$as_me:$LINENO: checking for file" >&5
9450 $as_echo_n "checking for file... " >&6; }
9451 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9452 $as_echo_n "(cached) " >&6
9456 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9459 lt_save_MAGIC_CMD="$MAGIC_CMD"
9460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9461 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9462 for ac_dir in $ac_dummy; do
9464 test -z "$ac_dir" && ac_dir=.
9465 if test -f $ac_dir/file; then
9466 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9467 if test -n "$file_magic_test_file"; then
9468 case $deplibs_check_method in
9470 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9472 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9473 $EGREP "$file_magic_regex" > /dev/null; then
9478 *** Warning: the command libtool uses to detect shared libraries,
9479 *** $file_magic_cmd, produces output that libtool cannot recognize.
9480 *** The result is that libtool may fail to recognize shared libraries
9481 *** as such. This will affect the creation of libtool libraries that
9482 *** depend on shared libraries, but programs linked with such libtool
9483 *** libraries will work regardless of this problem. Nevertheless, you
9484 *** may want to report the problem to your system manager and/or to
9485 *** bug-libtool@gnu.org
9495 MAGIC_CMD="$lt_save_MAGIC_CMD"
9500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9501 if test -n "$MAGIC_CMD"; then
9502 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9503 $as_echo "$MAGIC_CMD" >&6; }
9505 { $as_echo "$as_me:$LINENO: result: no" >&5
9506 $as_echo "no" >&6; }
9519 # Use C for the default configuration in the libtool script
9523 ac_cpp='$CPP $CPPFLAGS'
9524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9529 # Source file extension for C test sources.
9532 # Object file extension for compiled C test sources.
9536 # Code to be used in simple compile tests
9537 lt_simple_compile_test_code="int some_variable = 0;"
9539 # Code to be used in simple link tests
9540 lt_simple_link_test_code='int main(){return(0);}'
9548 # If no C compiler was specified, use CC.
9551 # If no C compiler flags were specified, use CFLAGS.
9552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9554 # Allow CC to be a program name with arguments.
9557 # Save the default compiler, since it gets overwritten when the other
9558 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9559 compiler_DEFAULT=$CC
9561 # save warnings/boilerplate of simple test code
9562 ac_outfile=conftest.$ac_objext
9563 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9564 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9565 _lt_compiler_boilerplate=`cat conftest.err`
9568 ac_outfile=conftest.$ac_objext
9569 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9570 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9571 _lt_linker_boilerplate=`cat conftest.err`
9576 ## There is no encapsulation within the following macros, do not change
9577 ## the running order or otherwise move them around unless you know exactly
9578 ## what you are doing...
9579 if test -n "$compiler"; then
9581 lt_prog_compiler_no_builtin_flag=
9583 if test "$GCC" = yes; then
9584 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9586 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9587 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9588 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9589 $as_echo_n "(cached) " >&6
9591 lt_cv_prog_compiler_rtti_exceptions=no
9592 ac_outfile=conftest.$ac_objext
9593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9594 lt_compiler_flag="-fno-rtti -fno-exceptions"
9595 # Insert the option either (1) after the last *FLAGS variable, or
9596 # (2) before a word containing "conftest.", or (3) at the end.
9597 # Note that $ac_compile itself does not contain backslashes and begins
9598 # with a dollar sign (not a hyphen), so the echo should work correctly.
9599 # The option is referenced via a variable to avoid confusing sed.
9600 lt_compile=`echo "$ac_compile" | $SED \
9601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603 -e 's:$: $lt_compiler_flag:'`
9604 (eval echo "\"\$as_me:9604: $lt_compile\"" >&5)
9605 (eval "$lt_compile" 2>conftest.err)
9607 cat conftest.err >&5
9608 echo "$as_me:9608: \$? = $ac_status" >&5
9609 if (exit $ac_status) && test -s "$ac_outfile"; then
9610 # The compiler can only warn and ignore the option if not recognized
9611 # So say no if there are warnings other than the usual output.
9612 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9615 lt_cv_prog_compiler_rtti_exceptions=yes
9621 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9622 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9624 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9625 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9637 lt_prog_compiler_wl=
9638 lt_prog_compiler_pic=
9639 lt_prog_compiler_static=
9641 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9642 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9644 if test "$GCC" = yes; then
9645 lt_prog_compiler_wl='-Wl,'
9646 lt_prog_compiler_static='-static'
9650 # All AIX code is PIC.
9651 if test "$host_cpu" = ia64; then
9652 # AIX 5 now supports IA64 processor
9653 lt_prog_compiler_static='-Bstatic'
9660 # see comment about AmigaOS4 .so support
9661 lt_prog_compiler_pic='-fPIC'
9664 # FIXME: we need at least 68020 code to build shared libraries, but
9665 # adding the `-m68020' flag to GCC prevents building anything better,
9667 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9672 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9673 # PIC is the default for these OSes.
9676 mingw* | cygwin* | pw32* | os2* | cegcc*)
9677 # This hack is so that the source file can tell whether it is being
9678 # built for inclusion in a dll (and should export symbols for example).
9679 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9680 # (--disable-auto-import) libraries
9681 lt_prog_compiler_pic='-DDLL_EXPORT'
9684 darwin* | rhapsody*)
9685 # PIC is the default on this platform
9686 # Common symbols not allowed in MH_DYLIB files
9687 lt_prog_compiler_pic='-fno-common'
9691 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9692 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9693 # sets the default TLS model and affects inlining.
9699 lt_prog_compiler_pic='-fPIC'
9705 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9706 # Instead, we relocate shared libraries at runtime.
9710 # Just because we use GCC doesn't mean we suddenly get shared libraries
9711 # on systems that don't support them.
9712 lt_prog_compiler_can_build_shared=no
9717 # QNX uses GNU C++, but need to define -shared option too, otherwise
9719 lt_prog_compiler_pic='-fPIC -shared'
9723 if test -d /usr/nec; then
9724 lt_prog_compiler_pic=-Kconform_pic
9729 lt_prog_compiler_pic='-fPIC'
9733 # PORTME Check for flag to pass linker flags through the system compiler.
9736 lt_prog_compiler_wl='-Wl,'
9737 if test "$host_cpu" = ia64; then
9738 # AIX 5 now supports IA64 processor
9739 lt_prog_compiler_static='-Bstatic'
9741 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9745 mingw* | cygwin* | pw32* | os2* | cegcc*)
9746 # This hack is so that the source file can tell whether it is being
9747 # built for inclusion in a dll (and should export symbols for example).
9748 lt_prog_compiler_pic='-DDLL_EXPORT'
9751 hpux9* | hpux10* | hpux11*)
9752 lt_prog_compiler_wl='-Wl,'
9753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9760 lt_prog_compiler_pic='+Z'
9763 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9764 lt_prog_compiler_static='${wl}-a ${wl}archive'
9767 irix5* | irix6* | nonstopux*)
9768 lt_prog_compiler_wl='-Wl,'
9769 # PIC (with -KPIC) is the default.
9770 lt_prog_compiler_static='-non_shared'
9773 linux* | k*bsd*-gnu)
9774 case $cc_basename in
9775 # old Intel for x86_64 which still supported -KPIC.
9777 lt_prog_compiler_wl='-Wl,'
9778 lt_prog_compiler_pic='-KPIC'
9779 lt_prog_compiler_static='-static'
9781 # icc used to be incompatible with GCC.
9782 # ICC 10 doesn't accept -KPIC any more.
9784 lt_prog_compiler_wl='-Wl,'
9785 lt_prog_compiler_pic='-fPIC'
9786 lt_prog_compiler_static='-static'
9788 # Lahey Fortran 8.1.
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_pic='--shared'
9792 lt_prog_compiler_static='--static'
9794 pgcc* | pgf77* | pgf90* | pgf95*)
9795 # Portland Group compilers (*not* the Pentium gcc compiler,
9796 # which looks to be a dead project)
9797 lt_prog_compiler_wl='-Wl,'
9798 lt_prog_compiler_pic='-fpic'
9799 lt_prog_compiler_static='-Bstatic'
9802 lt_prog_compiler_wl='-Wl,'
9803 # All Alpha code is PIC.
9804 lt_prog_compiler_static='-non_shared'
9807 # IBM XL C 8.0/Fortran 10.1 on PPC
9808 lt_prog_compiler_wl='-Wl,'
9809 lt_prog_compiler_pic='-qpic'
9810 lt_prog_compiler_static='-qstaticlink'
9813 case `$CC -V 2>&1 | sed 5q` in
9816 lt_prog_compiler_pic='-KPIC'
9817 lt_prog_compiler_static='-Bstatic'
9818 lt_prog_compiler_wl='-Wl,'
9821 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9822 lt_prog_compiler_pic='-KPIC'
9823 lt_prog_compiler_static='-Bstatic'
9824 lt_prog_compiler_wl=''
9832 lt_prog_compiler_pic='-KPIC'
9833 lt_prog_compiler_static='-Bstatic'
9837 # QNX uses GNU C++, but need to define -shared option too, otherwise
9839 lt_prog_compiler_pic='-fPIC -shared'
9842 osf3* | osf4* | osf5*)
9843 lt_prog_compiler_wl='-Wl,'
9844 # All OSF/1 code is PIC.
9845 lt_prog_compiler_static='-non_shared'
9849 lt_prog_compiler_static='-non_shared'
9853 lt_prog_compiler_pic='-KPIC'
9854 lt_prog_compiler_static='-Bstatic'
9855 case $cc_basename in
9857 lt_prog_compiler_wl='-Qoption ld ';;
9859 lt_prog_compiler_wl='-Wl,';;
9864 lt_prog_compiler_wl='-Qoption ld '
9865 lt_prog_compiler_pic='-PIC'
9866 lt_prog_compiler_static='-Bstatic'
9869 sysv4 | sysv4.2uw2* | sysv4.3*)
9870 lt_prog_compiler_wl='-Wl,'
9871 lt_prog_compiler_pic='-KPIC'
9872 lt_prog_compiler_static='-Bstatic'
9876 if test -d /usr/nec ;then
9877 lt_prog_compiler_pic='-Kconform_pic'
9878 lt_prog_compiler_static='-Bstatic'
9882 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9883 lt_prog_compiler_wl='-Wl,'
9884 lt_prog_compiler_pic='-KPIC'
9885 lt_prog_compiler_static='-Bstatic'
9889 lt_prog_compiler_wl='-Wl,'
9890 lt_prog_compiler_can_build_shared=no
9894 lt_prog_compiler_pic='-pic'
9895 lt_prog_compiler_static='-Bstatic'
9899 lt_prog_compiler_can_build_shared=no
9905 # For platforms which do not support PIC, -DPIC is meaningless:
9907 lt_prog_compiler_pic=
9910 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9913 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9914 $as_echo "$lt_prog_compiler_pic" >&6; }
9922 # Check to make sure the PIC flag actually works.
9924 if test -n "$lt_prog_compiler_pic"; then
9925 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9926 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9927 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9928 $as_echo_n "(cached) " >&6
9930 lt_cv_prog_compiler_pic_works=no
9931 ac_outfile=conftest.$ac_objext
9932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9933 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9934 # Insert the option either (1) after the last *FLAGS variable, or
9935 # (2) before a word containing "conftest.", or (3) at the end.
9936 # Note that $ac_compile itself does not contain backslashes and begins
9937 # with a dollar sign (not a hyphen), so the echo should work correctly.
9938 # The option is referenced via a variable to avoid confusing sed.
9939 lt_compile=`echo "$ac_compile" | $SED \
9940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9942 -e 's:$: $lt_compiler_flag:'`
9943 (eval echo "\"\$as_me:9943: $lt_compile\"" >&5)
9944 (eval "$lt_compile" 2>conftest.err)
9946 cat conftest.err >&5
9947 echo "$as_me:9947: \$? = $ac_status" >&5
9948 if (exit $ac_status) && test -s "$ac_outfile"; then
9949 # The compiler can only warn and ignore the option if not recognized
9950 # So say no if there are warnings other than the usual output.
9951 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9954 lt_cv_prog_compiler_pic_works=yes
9960 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9961 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9963 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9964 case $lt_prog_compiler_pic in
9966 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9969 lt_prog_compiler_pic=
9970 lt_prog_compiler_can_build_shared=no
9981 # Check to make sure the static flag actually works.
9983 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9984 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9985 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9986 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9987 $as_echo_n "(cached) " >&6
9989 lt_cv_prog_compiler_static_works=no
9990 save_LDFLAGS="$LDFLAGS"
9991 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9992 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9993 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9994 # The linker can only warn and ignore the option if not recognized
9995 # So say no if there are warnings
9996 if test -s conftest.err; then
9997 # Append any errors to the config.log.
9998 cat conftest.err 1>&5
9999 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10001 if diff conftest.exp conftest.er2 >/dev/null; then
10002 lt_cv_prog_compiler_static_works=yes
10005 lt_cv_prog_compiler_static_works=yes
10009 LDFLAGS="$save_LDFLAGS"
10012 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10013 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10015 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10018 lt_prog_compiler_static=
10027 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10028 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10029 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10030 $as_echo_n "(cached) " >&6
10032 lt_cv_prog_compiler_c_o=no
10033 $RM -r conftest 2>/dev/null
10037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10039 lt_compiler_flag="-o out/conftest2.$ac_objext"
10040 # Insert the option either (1) after the last *FLAGS variable, or
10041 # (2) before a word containing "conftest.", or (3) at the end.
10042 # Note that $ac_compile itself does not contain backslashes and begins
10043 # with a dollar sign (not a hyphen), so the echo should work correctly.
10044 lt_compile=`echo "$ac_compile" | $SED \
10045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10047 -e 's:$: $lt_compiler_flag:'`
10048 (eval echo "\"\$as_me:10048: $lt_compile\"" >&5)
10049 (eval "$lt_compile" 2>out/conftest.err)
10051 cat out/conftest.err >&5
10052 echo "$as_me:10052: \$? = $ac_status" >&5
10053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10055 # The compiler can only warn and ignore the option if not recognized
10056 # So say no if there are warnings
10057 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10060 lt_cv_prog_compiler_c_o=yes
10065 # SGI C++ compiler will create directory out/ii_files/ for
10066 # template instantiation
10067 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10068 $RM out/* && rmdir out
10074 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10075 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10082 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10083 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10084 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10085 $as_echo_n "(cached) " >&6
10087 lt_cv_prog_compiler_c_o=no
10088 $RM -r conftest 2>/dev/null
10092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10094 lt_compiler_flag="-o out/conftest2.$ac_objext"
10095 # Insert the option either (1) after the last *FLAGS variable, or
10096 # (2) before a word containing "conftest.", or (3) at the end.
10097 # Note that $ac_compile itself does not contain backslashes and begins
10098 # with a dollar sign (not a hyphen), so the echo should work correctly.
10099 lt_compile=`echo "$ac_compile" | $SED \
10100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10102 -e 's:$: $lt_compiler_flag:'`
10103 (eval echo "\"\$as_me:10103: $lt_compile\"" >&5)
10104 (eval "$lt_compile" 2>out/conftest.err)
10106 cat out/conftest.err >&5
10107 echo "$as_me:10107: \$? = $ac_status" >&5
10108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10110 # The compiler can only warn and ignore the option if not recognized
10111 # So say no if there are warnings
10112 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10115 lt_cv_prog_compiler_c_o=yes
10120 # SGI C++ compiler will create directory out/ii_files/ for
10121 # template instantiation
10122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10123 $RM out/* && rmdir out
10129 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10130 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10135 hard_links="nottested"
10136 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10137 # do not overwrite the value of need_locks provided by the user
10138 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10139 $as_echo_n "checking if we can lock with hard links... " >&6; }
10142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10144 ln conftest.a conftest.b 2>&5 || hard_links=no
10145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10146 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10147 $as_echo "$hard_links" >&6; }
10148 if test "$hard_links" = no; then
10149 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10150 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10162 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10163 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10166 allow_undefined_flag=
10167 always_export_symbols=no
10169 archive_expsym_cmds=
10170 compiler_needs_object=no
10171 enable_shared_with_static_runtimes=no
10172 export_dynamic_flag_spec=
10173 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10174 hardcode_automatic=no
10176 hardcode_direct_absolute=no
10177 hardcode_libdir_flag_spec=
10178 hardcode_libdir_flag_spec_ld=
10179 hardcode_libdir_separator=
10180 hardcode_minus_L=no
10181 hardcode_shlibpath_var=unsupported
10183 link_all_deplibs=unknown
10185 module_expsym_cmds=
10186 old_archive_from_new_cmds=
10187 old_archive_from_expsyms_cmds=
10188 thread_safe_flag_spec=
10189 whole_archive_flag_spec=
10190 # include_expsyms should be a list of space-separated symbols to be *always*
10191 # included in the symbol list
10193 # exclude_expsyms can be an extended regexp of symbols to exclude
10194 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10195 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10196 # as well as any symbol that contains `d'.
10197 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10198 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10199 # platforms (ab)use it in PIC code, but their linkers get confused if
10200 # the symbol is explicitly referenced. Since portable code cannot
10201 # rely on this symbol name, it's probably fine to never include it in
10202 # preloaded symbol tables.
10203 # Exclude shared library initialization/finalization symbols.
10204 extract_expsyms_cmds=
10207 cygwin* | mingw* | pw32* | cegcc*)
10208 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10209 # When not using gcc, we currently assume that we are using
10210 # Microsoft Visual C++.
10211 if test "$GCC" != yes; then
10216 # we just hope/assume this is gcc and not c89 (= MSVC++)
10225 if test "$with_gnu_ld" = yes; then
10226 # If archive_cmds runs LD, not CC, wlarc should be empty
10229 # Set some defaults for GNU ld with shared library support. These
10230 # are reset later if shared libraries are not supported. Putting them
10231 # here allows them to be overridden if necessary.
10232 runpath_var=LD_RUN_PATH
10233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234 export_dynamic_flag_spec='${wl}--export-dynamic'
10235 # ancient GNU ld didn't support --whole-archive et. al.
10236 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10237 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10239 whole_archive_flag_spec=
10241 supports_anon_versioning=no
10242 case `$LD -v 2>&1` in
10243 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10244 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10245 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10246 *\ 2.11.*) ;; # other 2.11 versions
10247 *) supports_anon_versioning=yes ;;
10250 # See if GNU ld supports shared libraries.
10253 # On AIX/PPC, the GNU linker is very broken
10254 if test "$host_cpu" != ia64; then
10258 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10259 *** to be unable to reliably create shared libraries on AIX.
10260 *** Therefore, libtool is disabling shared libraries support. If you
10261 *** really care for shared libraries, you may want to modify your PATH
10262 *** so that a non-GNU linker is found, and then restart.
10271 # see comment about AmigaOS4 .so support
10272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10273 archive_expsym_cmds=''
10276 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)'
10277 hardcode_libdir_flag_spec='-L$libdir'
10278 hardcode_minus_L=yes
10284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285 allow_undefined_flag=unsupported
10286 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10287 # support --undefined. This deserves some investigation. FIXME
10288 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10294 cygwin* | mingw* | pw32* | cegcc*)
10295 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10296 # as there is no search path for DLLs.
10297 hardcode_libdir_flag_spec='-L$libdir'
10298 allow_undefined_flag=unsupported
10299 always_export_symbols=no
10300 enable_shared_with_static_runtimes=yes
10301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10303 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10305 # If the export-symbols file already is a .def file (1st line
10306 # is EXPORTS), use it as is; otherwise, prepend...
10307 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10308 cp $export_symbols $output_objdir/$soname.def;
10310 echo EXPORTS > $output_objdir/$soname.def;
10311 cat $export_symbols >> $output_objdir/$soname.def;
10313 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10321 hardcode_shlibpath_var=no
10322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10323 export_dynamic_flag_spec='${wl}-E'
10324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10325 # Instead, shared libraries are loaded at an image base (0x10000000 by
10326 # default) and relocated if they conflict, which is a slow very memory
10327 # consuming and fragmenting process. To avoid this, we pick a random,
10328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10330 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10331 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'
10334 gnu* | linux* | tpf* | k*bsd*-gnu)
10336 if test "$host_os" = linux-dietlibc; then
10337 case $cc_basename in
10338 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10341 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10342 && test "$tmp_diet" = no
10345 tmp_sharedflag='-shared'
10346 case $cc_basename,$host_cpu in
10347 pgcc*) # Portland Group C compiler
10348 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'
10349 tmp_addflag=' $pic_flag'
10351 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10352 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'
10353 tmp_addflag=' $pic_flag -Mnomain' ;;
10354 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10355 tmp_addflag=' -i_dynamic' ;;
10356 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10357 tmp_addflag=' -i_dynamic -nofor_main' ;;
10358 ifc* | ifort*) # Intel Fortran compiler
10359 tmp_addflag=' -nofor_main' ;;
10360 lf95*) # Lahey Fortran 8.1
10361 whole_archive_flag_spec=
10362 tmp_sharedflag='--shared' ;;
10363 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10364 tmp_sharedflag='-qmkshrobj'
10367 case `$CC -V 2>&1 | sed 5q` in
10368 *Sun\ C*) # Sun C 5.9
10369 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'
10370 compiler_needs_object=yes
10371 tmp_sharedflag='-G' ;;
10372 *Sun\ F*) # Sun Fortran 8.3
10373 tmp_sharedflag='-G' ;;
10375 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10377 if test "x$supports_anon_versioning" = xyes; then
10378 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10379 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10380 echo "local: *; };" >> $output_objdir/$libname.ver~
10381 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10384 case $cc_basename in
10386 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10387 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10388 hardcode_libdir_flag_spec=
10389 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10390 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10391 if test "x$supports_anon_versioning" = xyes; then
10392 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10394 echo "local: *; };" >> $output_objdir/$libname.ver~
10395 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10406 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10415 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10419 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10420 *** create shared libraries on Solaris systems. Therefore, libtool
10421 *** is disabling shared libraries support. We urge you to upgrade GNU
10422 *** binutils to release 2.9.1 or newer. Another option is to modify
10423 *** your PATH or compiler configuration so that the native linker is
10424 *** used, and then restart.
10427 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10436 case `$LD -v 2>&1` in
10437 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10441 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10442 *** reliably create shared libraries on SCO systems. Therefore, libtool
10443 *** is disabling shared libraries support. We urge you to upgrade GNU
10444 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10445 *** your PATH or compiler configuration so that the native linker is
10446 *** used, and then restart.
10451 # For security reasons, it is highly recommended that you always
10452 # use absolute paths for naming shared libraries, and exclude the
10453 # DT_RUNPATH tag from executables and libraries. But doing so
10454 # requires that you compile everything twice, which is a pain.
10455 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10458 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10467 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_direct=yes
10470 hardcode_shlibpath_var=no
10474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10483 if test "$ld_shlibs" = no; then
10485 hardcode_libdir_flag_spec=
10486 export_dynamic_flag_spec=
10487 whole_archive_flag_spec=
10490 # PORTME fill in a description of your system's linker (not GNU ld)
10493 allow_undefined_flag=unsupported
10494 always_export_symbols=yes
10495 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'
10496 # Note: this linker hardcodes the directories in LIBPATH if there
10497 # are no directories specified by -L.
10498 hardcode_minus_L=yes
10499 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10500 # Neither direct hardcoding nor static linking is supported with a
10502 hardcode_direct=unsupported
10507 if test "$host_cpu" = ia64; then
10508 # On IA64, the linker does run time linking by default, so we don't
10509 # have to do anything special.
10510 aix_use_runtimelinking=no
10511 exp_sym_flag='-Bexport'
10514 # If we're using GNU nm, then we don't want the "-C" option.
10515 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10517 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'
10519 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'
10521 aix_use_runtimelinking=no
10523 # Test if we are trying to use run time linking or normal
10524 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10525 # need to do runtime linking.
10526 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10527 for ld_flag in $LDFLAGS; do
10528 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10529 aix_use_runtimelinking=yes
10536 exp_sym_flag='-bexport'
10537 no_entry_flag='-bnoentry'
10540 # When large executables or shared objects are built, AIX ld can
10541 # have problems creating the table of contents. If linking a library
10542 # or program results in "error TOC overflow" add -mminimal-toc to
10543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10547 hardcode_direct=yes
10548 hardcode_direct_absolute=yes
10549 hardcode_libdir_separator=':'
10550 link_all_deplibs=yes
10551 file_list_spec='${wl}-f,'
10553 if test "$GCC" = yes; then
10554 case $host_os in aix4.[012]|aix4.[012].*)
10555 # We only want to do this on AIX 4.2 and lower, the check
10556 # below for broken collect2 doesn't work under 4.3+
10557 collect2name=`${CC} -print-prog-name=collect2`
10558 if test -f "$collect2name" &&
10559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10561 # We have reworked collect2
10564 # We have old collect2
10565 hardcode_direct=unsupported
10566 # It fails to find uninstalled libraries when the uninstalled
10567 # path is not listed in the libpath. Setting hardcode_minus_L
10568 # to unsupported forces relinking
10569 hardcode_minus_L=yes
10570 hardcode_libdir_flag_spec='-L$libdir'
10571 hardcode_libdir_separator=
10575 shared_flag='-shared'
10576 if test "$aix_use_runtimelinking" = yes; then
10577 shared_flag="$shared_flag "'${wl}-G'
10581 if test "$host_cpu" = ia64; then
10582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10583 # chokes on -Wl,-G. The following line is correct:
10586 if test "$aix_use_runtimelinking" = yes; then
10587 shared_flag='${wl}-G'
10589 shared_flag='${wl}-bM:SRE'
10594 export_dynamic_flag_spec='${wl}-bexpall'
10595 # It seems that -bexpall does not export symbols beginning with
10596 # underscore (_), so it is better to generate a list of symbols to export.
10597 always_export_symbols=yes
10598 if test "$aix_use_runtimelinking" = yes; then
10599 # Warning - without using the other runtime loading flags (-brtl),
10600 # -berok will link without error, but may produce a broken library.
10601 allow_undefined_flag='-berok'
10602 # Determine the default libpath from the value encoded in an
10603 # empty executable.
10604 cat >conftest.$ac_ext <<_ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (ac_try="$ac_link"
10621 case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10626 $as_echo "$ac_try_echo") >&5
10627 (eval "$ac_link") 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } && {
10634 test -z "$ac_c_werror_flag" ||
10635 test ! -s conftest.err
10636 } && test -s conftest$ac_exeext && {
10637 test "$cross_compiling" = yes ||
10638 $as_test_x conftest$ac_exeext
10641 lt_aix_libpath_sed='
10642 /Import File Strings/,/^$/ {
10648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10649 # Check for a 64-bit object if we didn't find anything.
10650 if test -z "$aix_libpath"; then
10651 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10654 $as_echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10660 rm -rf conftest.dSYM
10661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10662 conftest$ac_exeext conftest.$ac_ext
10663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10665 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10666 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"
10668 if test "$host_cpu" = ia64; then
10669 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10670 allow_undefined_flag="-z nodefs"
10671 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"
10673 # Determine the default libpath from the value encoded in an
10674 # empty executable.
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (ac_try="$ac_link"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10697 $as_echo "$ac_try_echo") >&5
10698 (eval "$ac_link") 2>conftest.er1
10700 grep -v '^ *+' conftest.er1 >conftest.err
10702 cat conftest.err >&5
10703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } && {
10705 test -z "$ac_c_werror_flag" ||
10706 test ! -s conftest.err
10707 } && test -s conftest$ac_exeext && {
10708 test "$cross_compiling" = yes ||
10709 $as_test_x conftest$ac_exeext
10712 lt_aix_libpath_sed='
10713 /Import File Strings/,/^$/ {
10719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10720 # Check for a 64-bit object if we didn't find anything.
10721 if test -z "$aix_libpath"; then
10722 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10725 $as_echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10731 rm -rf conftest.dSYM
10732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10733 conftest$ac_exeext conftest.$ac_ext
10734 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10736 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10737 # Warning - without using the other run time loading flags,
10738 # -berok will link without error, but may produce a broken library.
10739 no_undefined_flag=' ${wl}-bernotok'
10740 allow_undefined_flag=' ${wl}-berok'
10741 # Exported symbols can be pulled into shared objects from archives
10742 whole_archive_flag_spec='$convenience'
10743 archive_cmds_need_lc=yes
10744 # This is similar to how AIX traditionally builds its shared libraries.
10745 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'
10753 # see comment about AmigaOS4 .so support
10754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10755 archive_expsym_cmds=''
10758 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)'
10759 hardcode_libdir_flag_spec='-L$libdir'
10760 hardcode_minus_L=yes
10766 export_dynamic_flag_spec=-rdynamic
10769 cygwin* | mingw* | pw32* | cegcc*)
10770 # When not using gcc, we currently assume that we are using
10771 # Microsoft Visual C++.
10772 # hardcode_libdir_flag_spec is actually meaningless, as there is
10773 # no search path for DLLs.
10774 hardcode_libdir_flag_spec=' '
10775 allow_undefined_flag=unsupported
10776 # Tell ltmain to make .lib files, not .a files.
10778 # Tell ltmain to make .dll files, not .so files.
10780 # FIXME: Setting linknames here is a bad hack.
10781 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10782 # The linker will automatically build a .lib file if we build a DLL.
10783 old_archive_from_new_cmds='true'
10784 # FIXME: Should let the user specify the lib program.
10785 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10786 fix_srcfile_path='`cygpath -w "$srcfile"`'
10787 enable_shared_with_static_runtimes=yes
10790 darwin* | rhapsody*)
10793 archive_cmds_need_lc=no
10795 hardcode_automatic=yes
10796 hardcode_shlibpath_var=unsupported
10797 whole_archive_flag_spec=''
10798 link_all_deplibs=yes
10799 allow_undefined_flag="$_lt_dar_allow_undefined"
10800 case $cc_basename in
10801 ifort*) _lt_dar_can_shared=yes ;;
10802 *) _lt_dar_can_shared=$GCC ;;
10804 if test "$_lt_dar_can_shared" = "yes"; then
10805 output_verbose_link_cmd=echo
10806 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10807 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10808 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}"
10809 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}"
10818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10819 hardcode_libdir_flag_spec='-L$libdir'
10820 hardcode_shlibpath_var=no
10827 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10828 # support. Future versions do this automatically, but an explicit c++rt0.o
10829 # does not break anything, and helps significantly (at the cost of a little
10832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10833 hardcode_libdir_flag_spec='-R$libdir'
10834 hardcode_direct=yes
10835 hardcode_shlibpath_var=no
10838 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10841 hardcode_direct=yes
10842 hardcode_minus_L=yes
10843 hardcode_shlibpath_var=no
10846 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10847 freebsd* | dragonfly*)
10848 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10849 hardcode_libdir_flag_spec='-R$libdir'
10850 hardcode_direct=yes
10851 hardcode_shlibpath_var=no
10855 if test "$GCC" = yes; then
10856 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'
10858 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'
10860 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10861 hardcode_libdir_separator=:
10862 hardcode_direct=yes
10864 # hardcode_minus_L: Not really in the search PATH,
10865 # but as the default location of the library.
10866 hardcode_minus_L=yes
10867 export_dynamic_flag_spec='${wl}-E'
10871 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10872 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10876 if test "$with_gnu_ld" = no; then
10877 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10878 hardcode_libdir_flag_spec_ld='+b $libdir'
10879 hardcode_libdir_separator=:
10880 hardcode_direct=yes
10881 hardcode_direct_absolute=yes
10882 export_dynamic_flag_spec='${wl}-E'
10883 # hardcode_minus_L: Not really in the search PATH,
10884 # but as the default location of the library.
10885 hardcode_minus_L=yes
10890 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10893 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10899 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10905 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10908 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10911 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10915 if test "$with_gnu_ld" = no; then
10916 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10917 hardcode_libdir_separator=:
10922 hardcode_shlibpath_var=no
10925 hardcode_direct=yes
10926 hardcode_direct_absolute=yes
10927 export_dynamic_flag_spec='${wl}-E'
10929 # hardcode_minus_L: Not really in the search PATH,
10930 # but as the default location of the library.
10931 hardcode_minus_L=yes
10937 irix5* | irix6* | nonstopux*)
10938 if test "$GCC" = yes; then
10939 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'
10940 # Try to use the -exported_symbol ld option, if it does not
10941 # work, assume that -exports_file does not work either and
10942 # implicitly export all symbols.
10943 save_LDFLAGS="$LDFLAGS"
10944 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10945 cat >conftest.$ac_ext <<_ACEOF
10948 rm -f conftest.$ac_objext conftest$ac_exeext
10949 if { (ac_try="$ac_link"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955 $as_echo "$ac_try_echo") >&5
10956 (eval "$ac_link") 2>conftest.er1
10958 grep -v '^ *+' conftest.er1 >conftest.err
10960 cat conftest.err >&5
10961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } && {
10963 test -z "$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 } && test -s conftest$ac_exeext && {
10966 test "$cross_compiling" = yes ||
10967 $as_test_x conftest$ac_exeext
10969 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'
10972 $as_echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10978 rm -rf conftest.dSYM
10979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10980 conftest$ac_exeext conftest.$ac_ext
10981 LDFLAGS="$save_LDFLAGS"
10983 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'
10984 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'
10986 archive_cmds_need_lc='no'
10987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10988 hardcode_libdir_separator=:
10990 link_all_deplibs=yes
10994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10997 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10999 hardcode_libdir_flag_spec='-R$libdir'
11000 hardcode_direct=yes
11001 hardcode_shlibpath_var=no
11005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11006 hardcode_direct=yes
11007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11008 hardcode_libdir_separator=:
11009 hardcode_shlibpath_var=no
11016 if test -f /usr/libexec/ld.so; then
11017 hardcode_direct=yes
11018 hardcode_shlibpath_var=no
11019 hardcode_direct_absolute=yes
11020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11022 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11024 export_dynamic_flag_spec='${wl}-E'
11027 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11029 hardcode_libdir_flag_spec='-R$libdir'
11032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11043 hardcode_libdir_flag_spec='-L$libdir'
11044 hardcode_minus_L=yes
11045 allow_undefined_flag=unsupported
11046 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'
11047 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11051 if test "$GCC" = yes; then
11052 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11053 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'
11055 allow_undefined_flag=' -expect_unresolved \*'
11056 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'
11058 archive_cmds_need_lc='no'
11059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11060 hardcode_libdir_separator=:
11063 osf4* | osf5*) # as osf3* with the addition of -msym flag
11064 if test "$GCC" = yes; then
11065 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11066 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'
11067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11069 allow_undefined_flag=' -expect_unresolved \*'
11070 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'
11071 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~
11072 $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'
11074 # Both c and cxx compiler support -rpath directly
11075 hardcode_libdir_flag_spec='-rpath $libdir'
11077 archive_cmds_need_lc='no'
11078 hardcode_libdir_separator=:
11082 no_undefined_flag=' -z defs'
11083 if test "$GCC" = yes; then
11085 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11087 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11089 case `$CC -V 2>&1` in
11092 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11098 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11099 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11100 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11104 hardcode_libdir_flag_spec='-R$libdir'
11105 hardcode_shlibpath_var=no
11107 solaris2.[0-5] | solaris2.[0-5].*) ;;
11109 # The compiler driver will combine and reorder linker options,
11110 # but understands `-z linker_flag'. GCC discards it without `$wl',
11111 # but is careful enough not to reorder.
11112 # Supported since Solaris 2.6 (maybe 2.5.1?)
11113 if test "$GCC" = yes; then
11114 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11116 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11120 link_all_deplibs=yes
11124 if test "x$host_vendor" = xsequent; then
11125 # Use $CC to link under sequent, because it throws in some extra .o
11126 # files that make .init and .fini sections work.
11127 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11129 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11131 hardcode_libdir_flag_spec='-L$libdir'
11132 hardcode_direct=yes
11133 hardcode_minus_L=yes
11134 hardcode_shlibpath_var=no
11138 case $host_vendor in
11140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11141 hardcode_direct=yes # is this really true???
11144 ## LD is ld it makes a PLAMLIB
11145 ## CC just makes a GrossModule.
11146 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11147 reload_cmds='$CC -r -o $output$reload_objs'
11151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11152 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11155 runpath_var='LD_RUN_PATH'
11156 hardcode_shlibpath_var=no
11160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11161 hardcode_shlibpath_var=no
11162 export_dynamic_flag_spec='-Bexport'
11166 if test -d /usr/nec; then
11167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168 hardcode_shlibpath_var=no
11169 runpath_var=LD_RUN_PATH
11170 hardcode_runpath_var=yes
11175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11176 no_undefined_flag='${wl}-z,text'
11177 archive_cmds_need_lc=no
11178 hardcode_shlibpath_var=no
11179 runpath_var='LD_RUN_PATH'
11181 if test "$GCC" = yes; then
11182 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11183 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11185 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11186 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11190 sysv5* | sco3.2v5* | sco5v6*)
11191 # Note: We can NOT use -z defs as we might desire, because we do not
11192 # link with -lc, and that would cause any symbols used from libc to
11193 # always be unresolved, which means just about no library would
11194 # ever link correctly. If we're not using GNU ld we use -z text
11195 # though, which does catch some bad symbols but isn't as heavy-handed
11197 no_undefined_flag='${wl}-z,text'
11198 allow_undefined_flag='${wl}-z,nodefs'
11199 archive_cmds_need_lc=no
11200 hardcode_shlibpath_var=no
11201 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11202 hardcode_libdir_separator=':'
11203 link_all_deplibs=yes
11204 export_dynamic_flag_spec='${wl}-Bexport'
11205 runpath_var='LD_RUN_PATH'
11207 if test "$GCC" = yes; then
11208 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11209 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11211 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11212 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11218 hardcode_libdir_flag_spec='-L$libdir'
11219 hardcode_shlibpath_var=no
11227 if test x$host_vendor = xsni; then
11229 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11230 export_dynamic_flag_spec='${wl}-Blargedynsym'
11236 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11237 $as_echo "$ld_shlibs" >&6; }
11238 test "$ld_shlibs" = no && can_build_shared=no
11240 with_gnu_ld=$with_gnu_ld
11257 # Do we need to explicitly link libc?
11259 case "x$archive_cmds_need_lc" in
11261 # Assume -lc should be added
11262 archive_cmds_need_lc=yes
11264 if test "$enable_shared" = yes && test "$GCC" = yes; then
11265 case $archive_cmds in
11267 # FIXME: we may have to deal with multi-command sequences.
11270 # Test whether the compiler implicitly links with -lc since on some
11271 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11272 # to ld, don't add -lc before -lgcc.
11273 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11274 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11279 (eval $ac_compile) 2>&5
11281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } 2>conftest.err; then
11285 libobjs=conftest.$ac_objext
11287 wl=$lt_prog_compiler_wl
11288 pic_flag=$lt_prog_compiler_pic
11294 lt_save_allow_undefined_flag=$allow_undefined_flag
11295 allow_undefined_flag=
11296 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11297 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }
11302 archive_cmds_need_lc=no
11304 archive_cmds_need_lc=yes
11306 allow_undefined_flag=$lt_save_allow_undefined_flag
11308 cat conftest.err 1>&5
11311 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11312 $as_echo "$archive_cmds_need_lc" >&6; }
11475 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11476 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11478 if test "$GCC" = yes; then
11480 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11481 *) lt_awk_arg="/^libraries:/" ;;
11483 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11484 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11485 # if the path contains ";" then we assume it to be the separator
11486 # otherwise default to the standard path separator (i.e. ":") - it is
11487 # assumed that no part of a normal pathname contains ";" but that should
11488 # okay in the real world where ";" in dirpaths is itself problematic.
11489 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11491 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11493 # Ok, now we have the path, separated by spaces, we can step through it
11494 # and add multilib dir if necessary.
11495 lt_tmp_lt_search_path_spec=
11496 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11497 for lt_sys_path in $lt_search_path_spec; do
11498 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11499 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11501 test -d "$lt_sys_path" && \
11502 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11505 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11506 BEGIN {RS=" "; FS="/|\n";} {
11509 for (lt_i = NF; lt_i > 0; lt_i--) {
11510 if ($lt_i != "" && $lt_i != ".") {
11511 if ($lt_i == "..") {
11514 if (lt_count == 0) {
11515 lt_foo="/" $lt_i lt_foo;
11522 if (lt_foo != "") { lt_freq[lt_foo]++; }
11523 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11525 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11529 library_names_spec=
11530 libname_spec='lib$name'
11534 postuninstall_cmds=
11538 shlibpath_overrides_runpath=unknown
11540 dynamic_linker="$host_os ld.so"
11541 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11542 need_lib_prefix=unknown
11543 hardcode_into_libs=no
11545 # when you set need_version to no, make sure it does not cause -set_version
11546 # flags to be left without arguments
11547 need_version=unknown
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11553 shlibpath_var=LIBPATH
11555 # AIX 3 has no versioning support, so we append a major version to the name.
11556 soname_spec='${libname}${release}${shared_ext}$major'
11563 hardcode_into_libs=yes
11564 if test "$host_cpu" = ia64; then
11565 # AIX 5 supports IA64
11566 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11567 shlibpath_var=LD_LIBRARY_PATH
11569 # With GCC up to 2.95.x, collect2 would create an import file
11570 # for dependence libraries. The import file would start with
11571 # the line `#! .'. This would cause the generated library to
11572 # depend on `.', always an invalid library. This was fixed in
11573 # development snapshots of GCC prior to 3.0.
11575 aix4 | aix4.[01] | aix4.[01].*)
11576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11578 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11581 can_build_shared=no
11585 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11586 # soname into executable. Probably we can add versioning support to
11587 # collect2, so additional links can be useful in future.
11588 if test "$aix_use_runtimelinking" = yes; then
11589 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11590 # instead of lib<name>.a to let people know that these are not
11591 # typical AIX shared libraries.
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 # We preserve .a as extension for shared libraries through AIX4.2
11595 # and later when we are not doing run time linking.
11596 library_names_spec='${libname}${release}.a $libname.a'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LIBPATH
11606 # Since July 2007 AmigaOS4 officially supports .so libraries.
11607 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11611 library_names_spec='$libname.ixlibrary $libname.a'
11612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11613 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'
11619 library_names_spec='${libname}${shared_ext}'
11620 dynamic_linker="$host_os ld.so"
11621 shlibpath_var=LIBRARY_PATH
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11630 shlibpath_var=LD_LIBRARY_PATH
11631 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11632 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11633 # the default ld.so.conf also contains /usr/contrib/lib and
11634 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11635 # libtool to hard-code these into programs
11638 cygwin* | mingw* | pw32* | cegcc*)
11639 version_type=windows
11644 case $GCC,$host_os in
11645 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11646 library_names_spec='$libname.dll.a'
11647 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11648 postinstall_cmds='base_file=`basename \${file}`~
11649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11650 dldir=$destdir/`dirname \$dlpath`~
11651 test -d \$dldir || mkdir -p \$dldir~
11652 $install_prog $dir/$dlname \$dldir/$dlname~
11653 chmod a+x \$dldir/$dlname~
11654 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11655 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11658 dlpath=$dir/\$dldll~
11660 shlibpath_overrides_runpath=yes
11664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11666 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11669 # MinGW DLLs use traditional 'lib' prefix
11670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11671 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11672 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11673 # It is most probably a Windows format PATH printed by
11674 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11675 # path with ; separators, and with drive letters. We can handle the
11676 # drive letters (cygwin fileutils understands them), so leave them,
11677 # especially as we might pass files found there to a mingw objdump,
11678 # which wouldn't understand a cygwinified path. Ahh.
11679 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11685 # pw32 DLLs use 'pw' prefix rather than 'lib'
11686 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11695 dynamic_linker='Win32 ld.exe'
11696 # FIXME: first we should search . and the directory the executable is in
11700 darwin* | rhapsody*)
11701 dynamic_linker="$host_os dyld"
11702 version_type=darwin
11705 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11706 soname_spec='${libname}${release}${major}$shared_ext'
11707 shlibpath_overrides_runpath=yes
11708 shlibpath_var=DYLD_LIBRARY_PATH
11709 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11711 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11712 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 shlibpath_var=LD_LIBRARY_PATH
11728 freebsd* | dragonfly*)
11729 # DragonFly does not have aout. When/if they implement a new
11730 # versioning mechanism, adjust this.
11731 if test -x /usr/bin/objformat; then
11732 objformat=`/usr/bin/objformat`
11735 freebsd[123]*) objformat=aout ;;
11736 *) objformat=elf ;;
11739 version_type=freebsd-$objformat
11740 case $version_type in
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11751 shlibpath_var=LD_LIBRARY_PATH
11754 shlibpath_overrides_runpath=yes
11756 freebsd3.[01]* | freebsdelf3.[01]*)
11757 shlibpath_overrides_runpath=yes
11758 hardcode_into_libs=yes
11760 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11761 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11762 shlibpath_overrides_runpath=no
11763 hardcode_into_libs=yes
11765 *) # from 4.6 on, and DragonFly
11766 shlibpath_overrides_runpath=yes
11767 hardcode_into_libs=yes
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 hardcode_into_libs=yes
11782 hpux9* | hpux10* | hpux11*)
11783 # Give a soname corresponding to the major version so that dld.sl refuses to
11784 # link against other versions.
11791 hardcode_into_libs=yes
11792 dynamic_linker="$host_os dld.so"
11793 shlibpath_var=LD_LIBRARY_PATH
11794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 if test "X$HPUX_IA64_MODE" = X32; then
11798 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11800 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11806 hardcode_into_libs=yes
11807 dynamic_linker="$host_os dld.sl"
11808 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11817 dynamic_linker="$host_os dld.sl"
11818 shlibpath_var=SHLIB_PATH
11819 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821 soname_spec='${libname}${release}${shared_ext}$major'
11824 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11825 postinstall_cmds='chmod 555 $lib'
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11833 soname_spec='${libname}${release}${shared_ext}$major'
11834 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 shlibpath_overrides_runpath=no
11837 hardcode_into_libs=yes
11840 irix5* | irix6* | nonstopux*)
11842 nonstopux*) version_type=nonstopux ;;
11844 if test "$lt_cv_prog_gnu_ld" = yes; then
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11855 irix5* | nonstopux*)
11856 libsuff= shlibsuff=
11859 case $LD in # libtool.m4 will add one of these switches to LD
11860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11861 libsuff= shlibsuff= libmagic=32-bit;;
11862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11863 libsuff=32 shlibsuff=N32 libmagic=N32;;
11864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11865 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11866 *) libsuff= shlibsuff= libmagic=never-match;;
11870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11871 shlibpath_overrides_runpath=no
11872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11874 hardcode_into_libs=yes
11877 # No shared lib support for Linux oldld, aout, or coff.
11878 linux*oldld* | linux*aout* | linux*coff*)
11882 # This must be Linux ELF.
11883 linux* | k*bsd*-gnu)
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11888 soname_spec='${libname}${release}${shared_ext}$major'
11889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=no
11892 # Some binutils ld are patched to set DT_RUNPATH
11893 save_LDFLAGS=$LDFLAGS
11894 save_libdir=$libdir
11895 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11896 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (ac_try="$ac_link"
11914 case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11919 $as_echo "$ac_try_echo") >&5
11920 (eval "$ac_link") 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest$ac_exeext && {
11930 test "$cross_compiling" = yes ||
11931 $as_test_x conftest$ac_exeext
11933 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11934 shlibpath_overrides_runpath=yes
11938 $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11944 rm -rf conftest.dSYM
11945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946 conftest$ac_exeext conftest.$ac_ext
11947 LDFLAGS=$save_LDFLAGS
11948 libdir=$save_libdir
11950 # This implies no fast_install, which is unacceptable.
11951 # Some rework will be needed to allow for fast_install
11952 # before this can be enabled.
11953 hardcode_into_libs=yes
11955 # Append ld.so.conf contents to the search path
11956 if test -f /etc/ld.so.conf; then
11957 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' ' '`
11958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11961 # We used to test for /lib/ld.so.1 and disable shared libraries on
11962 # powerpc, because MkLinux only supported shared libraries with the
11963 # GNU dynamic linker. Since this was broken with cross compilers,
11964 # most powerpc-linux boxes support dynamic linking these days and
11965 # people can always --disable-shared, the test was removed, and we
11966 # assume the GNU/Linux dynamic linker is in use.
11967 dynamic_linker='GNU/Linux ld.so'
11974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11977 dynamic_linker='NetBSD (a.out) ld.so'
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 dynamic_linker='NetBSD ld.elf_so'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 hardcode_into_libs=yes
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 shlibpath_overrides_runpath=yes
11999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000 soname_spec='${libname}${release}${shared_ext}$major'
12001 shlibpath_var=LD_LIBRARY_PATH
12002 shlibpath_overrides_runpath=no
12003 hardcode_into_libs=yes
12004 dynamic_linker='ldqnx.so'
12009 sys_lib_dlsearch_path_spec="/usr/lib"
12011 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12013 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12014 *) need_version=no ;;
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12018 shlibpath_var=LD_LIBRARY_PATH
12019 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12021 openbsd2.[89] | openbsd2.[89].*)
12022 shlibpath_overrides_runpath=no
12025 shlibpath_overrides_runpath=yes
12029 shlibpath_overrides_runpath=yes
12034 libname_spec='$name'
12037 library_names_spec='$libname${shared_ext} $libname.a'
12038 dynamic_linker='OS/2 ld.exe'
12039 shlibpath_var=LIBPATH
12042 osf3* | osf4* | osf5*)
12046 soname_spec='${libname}${release}${shared_ext}$major'
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=yes
12065 hardcode_into_libs=yes
12066 # ldd complains unless libraries are executable
12067 postinstall_cmds='chmod +x $lib'
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12074 shlibpath_var=LD_LIBRARY_PATH
12075 shlibpath_overrides_runpath=yes
12076 if test "$with_gnu_ld" = yes; then
12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12085 soname_spec='${libname}${release}${shared_ext}$major'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 case $host_vendor in
12089 shlibpath_overrides_runpath=no
12091 runpath_var=LD_RUN_PATH
12099 shlibpath_overrides_runpath=no
12100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12106 if test -d /usr/nec ;then
12108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12109 soname_spec='$libname${shared_ext}.$major'
12110 shlibpath_var=LD_LIBRARY_PATH
12114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12115 version_type=freebsd-elf
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12119 soname_spec='${libname}${release}${shared_ext}$major'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 shlibpath_overrides_runpath=yes
12122 hardcode_into_libs=yes
12123 if test "$with_gnu_ld" = yes; then
12124 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12133 sys_lib_dlsearch_path_spec='/usr/lib'
12137 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=no
12144 hardcode_into_libs=yes
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 shlibpath_var=LD_LIBRARY_PATH
12158 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12159 $as_echo "$dynamic_linker" >&6; }
12160 test "$dynamic_linker" = no && can_build_shared=no
12162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12163 if test "$GCC" = yes; then
12164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12167 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12168 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12170 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12171 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12260 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12261 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12263 if test -n "$hardcode_libdir_flag_spec" ||
12264 test -n "$runpath_var" ||
12265 test "X$hardcode_automatic" = "Xyes" ; then
12267 # We can hardcode non-existent directories.
12268 if test "$hardcode_direct" != no &&
12269 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12270 # have to relink, otherwise we might link with an installed library
12271 # when we should be linking with a yet-to-be-installed one
12272 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12273 test "$hardcode_minus_L" != no; then
12274 # Linking always hardcodes the temporary library directory.
12275 hardcode_action=relink
12277 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12278 hardcode_action=immediate
12281 # We cannot hardcode anything, or else we can only hardcode existing
12283 hardcode_action=unsupported
12285 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12286 $as_echo "$hardcode_action" >&6; }
12288 if test "$hardcode_action" = relink ||
12289 test "$inherit_rpath" = yes; then
12290 # Fast installation is not supported
12291 enable_fast_install=no
12292 elif test "$shlibpath_overrides_runpath" = yes ||
12293 test "$enable_shared" = no; then
12294 # Fast installation is not necessary
12295 enable_fast_install=needless
12303 if test "x$enable_dlopen" != xyes; then
12304 enable_dlopen=unknown
12305 enable_dlopen_self=unknown
12306 enable_dlopen_self_static=unknown
12313 lt_cv_dlopen="load_add_on"
12315 lt_cv_dlopen_self=yes
12318 mingw* | pw32* | cegcc*)
12319 lt_cv_dlopen="LoadLibrary"
12324 lt_cv_dlopen="dlopen"
12329 # if libdl is installed we need to link against it
12330 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12331 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12332 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12333 $as_echo_n "(cached) " >&6
12335 ac_check_lib_save_LIBS=$LIBS
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12366 $as_echo "$ac_try_echo") >&5
12367 (eval "$ac_link") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest$ac_exeext && {
12377 test "$cross_compiling" = yes ||
12378 $as_test_x conftest$ac_exeext
12380 ac_cv_lib_dl_dlopen=yes
12382 $as_echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ac_cv_lib_dl_dlopen=no
12388 rm -rf conftest.dSYM
12389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12390 conftest$ac_exeext conftest.$ac_ext
12391 LIBS=$ac_check_lib_save_LIBS
12393 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12394 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12395 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12399 lt_cv_dlopen="dyld"
12401 lt_cv_dlopen_self=yes
12408 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12409 $as_echo_n "checking for shl_load... " >&6; }
12410 if test "${ac_cv_func_shl_load+set}" = set; then
12411 $as_echo_n "(cached) " >&6
12413 cat >conftest.$ac_ext <<_ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12421 #define shl_load innocuous_shl_load
12423 /* System header to define __stub macros and hopefully few prototypes,
12424 which can conflict with char shl_load (); below.
12425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12426 <limits.h> exists even on freestanding compilers. */
12429 # include <limits.h>
12431 # include <assert.h>
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12443 /* The GNU C library defines this for functions which it implements
12444 to always fail with ENOSYS. Some functions are actually named
12445 something starting with __ and the normal name is an alias. */
12446 #if defined __stub_shl_load || defined __stub___shl_load
12453 return shl_load ();
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (ac_try="$ac_link"
12460 case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12465 $as_echo "$ac_try_echo") >&5
12466 (eval "$ac_link") 2>conftest.er1
12468 grep -v '^ *+' conftest.er1 >conftest.err
12470 cat conftest.err >&5
12471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && {
12473 test -z "$ac_c_werror_flag" ||
12474 test ! -s conftest.err
12475 } && test -s conftest$ac_exeext && {
12476 test "$cross_compiling" = yes ||
12477 $as_test_x conftest$ac_exeext
12479 ac_cv_func_shl_load=yes
12481 $as_echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 ac_cv_func_shl_load=no
12487 rm -rf conftest.dSYM
12488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12489 conftest$ac_exeext conftest.$ac_ext
12491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12492 $as_echo "$ac_cv_func_shl_load" >&6; }
12493 if test "x$ac_cv_func_shl_load" = x""yes; then
12494 lt_cv_dlopen="shl_load"
12496 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12497 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12498 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12499 $as_echo_n "(cached) " >&6
12501 ac_check_lib_save_LIBS=$LIBS
12503 cat >conftest.$ac_ext <<_ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12510 /* Override any GCC internal prototype to avoid an error.
12511 Use char because int might match the return type of a GCC
12512 builtin and then its argument prototype would still apply. */
12520 return shl_load ();
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (ac_try="$ac_link"
12527 case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12532 $as_echo "$ac_try_echo") >&5
12533 (eval "$ac_link") 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } && {
12540 test -z "$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12542 } && test -s conftest$ac_exeext && {
12543 test "$cross_compiling" = yes ||
12544 $as_test_x conftest$ac_exeext
12546 ac_cv_lib_dld_shl_load=yes
12548 $as_echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 ac_cv_lib_dld_shl_load=no
12554 rm -rf conftest.dSYM
12555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12556 conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12560 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12561 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12562 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12564 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12565 $as_echo_n "checking for dlopen... " >&6; }
12566 if test "${ac_cv_func_dlopen+set}" = set; then
12567 $as_echo_n "(cached) " >&6
12569 cat >conftest.$ac_ext <<_ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12575 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12577 #define dlopen innocuous_dlopen
12579 /* System header to define __stub macros and hopefully few prototypes,
12580 which can conflict with char dlopen (); below.
12581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12582 <limits.h> exists even on freestanding compilers. */
12585 # include <limits.h>
12587 # include <assert.h>
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12599 /* The GNU C library defines this for functions which it implements
12600 to always fail with ENOSYS. Some functions are actually named
12601 something starting with __ and the normal name is an alias. */
12602 #if defined __stub_dlopen || defined __stub___dlopen
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12621 $as_echo "$ac_try_echo") >&5
12622 (eval "$ac_link") 2>conftest.er1
12624 grep -v '^ *+' conftest.er1 >conftest.err
12626 cat conftest.err >&5
12627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } && {
12629 test -z "$ac_c_werror_flag" ||
12630 test ! -s conftest.err
12631 } && test -s conftest$ac_exeext && {
12632 test "$cross_compiling" = yes ||
12633 $as_test_x conftest$ac_exeext
12635 ac_cv_func_dlopen=yes
12637 $as_echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 ac_cv_func_dlopen=no
12643 rm -rf conftest.dSYM
12644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12645 conftest$ac_exeext conftest.$ac_ext
12647 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12648 $as_echo "$ac_cv_func_dlopen" >&6; }
12649 if test "x$ac_cv_func_dlopen" = x""yes; then
12650 lt_cv_dlopen="dlopen"
12652 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12653 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12655 $as_echo_n "(cached) " >&6
12657 ac_check_lib_save_LIBS=$LIBS
12659 cat >conftest.$ac_ext <<_ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12666 /* Override any GCC internal prototype to avoid an error.
12667 Use char because int might match the return type of a GCC
12668 builtin and then its argument prototype would still apply. */
12681 rm -f conftest.$ac_objext conftest$ac_exeext
12682 if { (ac_try="$ac_link"
12683 case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12688 $as_echo "$ac_try_echo") >&5
12689 (eval "$ac_link") 2>conftest.er1
12691 grep -v '^ *+' conftest.er1 >conftest.err
12693 cat conftest.err >&5
12694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } && {
12696 test -z "$ac_c_werror_flag" ||
12697 test ! -s conftest.err
12698 } && test -s conftest$ac_exeext && {
12699 test "$cross_compiling" = yes ||
12700 $as_test_x conftest$ac_exeext
12702 ac_cv_lib_dl_dlopen=yes
12704 $as_echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12707 ac_cv_lib_dl_dlopen=no
12710 rm -rf conftest.dSYM
12711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12715 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12716 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12717 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12720 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12721 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12722 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12723 $as_echo_n "(cached) " >&6
12725 ac_check_lib_save_LIBS=$LIBS
12726 LIBS="-lsvld $LIBS"
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12756 $as_echo "$ac_try_echo") >&5
12757 (eval "$ac_link") 2>conftest.er1
12759 grep -v '^ *+' conftest.er1 >conftest.err
12761 cat conftest.err >&5
12762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } && {
12764 test -z "$ac_c_werror_flag" ||
12765 test ! -s conftest.err
12766 } && test -s conftest$ac_exeext && {
12767 test "$cross_compiling" = yes ||
12768 $as_test_x conftest$ac_exeext
12770 ac_cv_lib_svld_dlopen=yes
12772 $as_echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 ac_cv_lib_svld_dlopen=no
12778 rm -rf conftest.dSYM
12779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12784 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12785 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12788 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12789 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12791 $as_echo_n "(cached) " >&6
12793 ac_check_lib_save_LIBS=$LIBS
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12802 /* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */
12812 return dld_link ();
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12824 $as_echo "$ac_try_echo") >&5
12825 (eval "$ac_link") 2>conftest.er1
12827 grep -v '^ *+' conftest.er1 >conftest.err
12829 cat conftest.err >&5
12830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } && {
12832 test -z "$ac_c_werror_flag" ||
12833 test ! -s conftest.err
12834 } && test -s conftest$ac_exeext && {
12835 test "$cross_compiling" = yes ||
12836 $as_test_x conftest$ac_exeext
12838 ac_cv_lib_dld_dld_link=yes
12840 $as_echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12843 ac_cv_lib_dld_dld_link=no
12846 rm -rf conftest.dSYM
12847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12848 conftest$ac_exeext conftest.$ac_ext
12849 LIBS=$ac_check_lib_save_LIBS
12851 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12852 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12853 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12854 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12875 if test "x$lt_cv_dlopen" != xno; then
12881 case $lt_cv_dlopen in
12883 save_CPPFLAGS="$CPPFLAGS"
12884 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12886 save_LDFLAGS="$LDFLAGS"
12887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12890 LIBS="$lt_cv_dlopen_libs $LIBS"
12892 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12893 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12894 if test "${lt_cv_dlopen_self+set}" = set; then
12895 $as_echo_n "(cached) " >&6
12897 if test "$cross_compiling" = yes; then :
12898 lt_cv_dlopen_self=cross
12900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12901 lt_status=$lt_dlunknown
12902 cat > conftest.$ac_ext <<_LT_EOF
12903 #line 12903 "configure"
12904 #include "confdefs.h"
12913 # define LT_DLGLOBAL RTLD_GLOBAL
12916 # define LT_DLGLOBAL DL_GLOBAL
12918 # define LT_DLGLOBAL 0
12922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12923 find out it does not work in some platform. */
12924 #ifndef LT_DLLAZY_OR_NOW
12926 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12929 # define LT_DLLAZY_OR_NOW DL_LAZY
12932 # define LT_DLLAZY_OR_NOW RTLD_NOW
12935 # define LT_DLLAZY_OR_NOW DL_NOW
12937 # define LT_DLLAZY_OR_NOW 0
12944 void fnord() { int i=42;}
12947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12948 int status = $lt_dlunknown;
12952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12953 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12954 /* dlclose (self); */
12962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12963 (eval $ac_link) 2>&5
12965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12967 (./conftest; exit; ) >&5 2>/dev/null
12969 case x$lt_status in
12970 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12971 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12972 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12975 # compilation failed
12976 lt_cv_dlopen_self=no
12983 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12984 $as_echo "$lt_cv_dlopen_self" >&6; }
12986 if test "x$lt_cv_dlopen_self" = xyes; then
12987 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12988 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12989 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12990 if test "${lt_cv_dlopen_self_static+set}" = set; then
12991 $as_echo_n "(cached) " >&6
12993 if test "$cross_compiling" = yes; then :
12994 lt_cv_dlopen_self_static=cross
12996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12997 lt_status=$lt_dlunknown
12998 cat > conftest.$ac_ext <<_LT_EOF
12999 #line 12999 "configure"
13000 #include "confdefs.h"
13009 # define LT_DLGLOBAL RTLD_GLOBAL
13012 # define LT_DLGLOBAL DL_GLOBAL
13014 # define LT_DLGLOBAL 0
13018 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13019 find out it does not work in some platform. */
13020 #ifndef LT_DLLAZY_OR_NOW
13022 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13025 # define LT_DLLAZY_OR_NOW DL_LAZY
13028 # define LT_DLLAZY_OR_NOW RTLD_NOW
13031 # define LT_DLLAZY_OR_NOW DL_NOW
13033 # define LT_DLLAZY_OR_NOW 0
13040 void fnord() { int i=42;}
13043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13044 int status = $lt_dlunknown;
13048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13049 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13050 /* dlclose (self); */
13058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13059 (eval $ac_link) 2>&5
13061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13063 (./conftest; exit; ) >&5 2>/dev/null
13065 case x$lt_status in
13066 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13067 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13068 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13071 # compilation failed
13072 lt_cv_dlopen_self_static=no
13079 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13080 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13083 CPPFLAGS="$save_CPPFLAGS"
13084 LDFLAGS="$save_LDFLAGS"
13089 case $lt_cv_dlopen_self in
13090 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13091 *) enable_dlopen_self=unknown ;;
13094 case $lt_cv_dlopen_self_static in
13095 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13096 *) enable_dlopen_self_static=unknown ;;
13118 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13119 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13120 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13121 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13122 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13123 { $as_echo "$as_me:$LINENO: result: yes" >&5
13124 $as_echo "yes" >&6; }
13126 # FIXME - insert some real tests, host_os isn't really good enough
13129 if test -n "$STRIP" ; then
13130 striplib="$STRIP -x"
13131 old_striplib="$STRIP -S"
13132 { $as_echo "$as_me:$LINENO: result: yes" >&5
13133 $as_echo "yes" >&6; }
13135 { $as_echo "$as_me:$LINENO: result: no" >&5
13136 $as_echo "no" >&6; }
13140 { $as_echo "$as_me:$LINENO: result: no" >&5
13141 $as_echo "no" >&6; }
13157 # Report which library types will actually be built
13158 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13159 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13160 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13161 $as_echo "$can_build_shared" >&6; }
13163 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13164 $as_echo_n "checking whether to build shared libraries... " >&6; }
13165 test "$can_build_shared" = "no" && enable_shared=no
13167 # On AIX, shared libraries and static libraries use the same namespace, and
13168 # are all built from PIC.
13171 test "$enable_shared" = yes && enable_static=no
13172 if test -n "$RANLIB"; then
13173 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13174 postinstall_cmds='$RANLIB $lib'
13179 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13180 test "$enable_shared" = yes && enable_static=no
13184 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13185 $as_echo "$enable_shared" >&6; }
13187 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13188 $as_echo_n "checking whether to build static libraries... " >&6; }
13189 # Make sure either enable_shared or enable_static is yes.
13190 test "$enable_shared" = yes || enable_static=yes
13191 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13192 $as_echo "$enable_static" >&6; }
13199 ac_cpp='$CPP $CPPFLAGS'
13200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13208 ac_cpp='$CXXCPP $CPPFLAGS'
13209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13213 archive_cmds_need_lc_CXX=no
13214 allow_undefined_flag_CXX=
13215 always_export_symbols_CXX=no
13216 archive_expsym_cmds_CXX=
13217 compiler_needs_object_CXX=no
13218 export_dynamic_flag_spec_CXX=
13219 hardcode_direct_CXX=no
13220 hardcode_direct_absolute_CXX=no
13221 hardcode_libdir_flag_spec_CXX=
13222 hardcode_libdir_flag_spec_ld_CXX=
13223 hardcode_libdir_separator_CXX=
13224 hardcode_minus_L_CXX=no
13225 hardcode_shlibpath_var_CXX=unsupported
13226 hardcode_automatic_CXX=no
13227 inherit_rpath_CXX=no
13229 module_expsym_cmds_CXX=
13230 link_all_deplibs_CXX=unknown
13231 old_archive_cmds_CXX=$old_archive_cmds
13232 no_undefined_flag_CXX=
13233 whole_archive_flag_spec_CXX=
13234 enable_shared_with_static_runtimes_CXX=no
13236 # Source file extension for C++ test sources.
13239 # Object file extension for compiled C++ test sources.
13243 # No sense in running all these tests if we already determined that
13244 # the CXX compiler isn't working. Some variables (like enable_shared)
13245 # are currently assumed to apply to all compilers on this platform,
13246 # and will be corrupted by setting them based on a non-working compiler.
13247 if test "$_lt_caught_CXX_error" != yes; then
13248 # Code to be used in simple compile tests
13249 lt_simple_compile_test_code="int some_variable = 0;"
13251 # Code to be used in simple link tests
13252 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13254 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13261 # If no C compiler was specified, use CC.
13264 # If no C compiler flags were specified, use CFLAGS.
13265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13267 # Allow CC to be a program name with arguments.
13271 # save warnings/boilerplate of simple test code
13272 ac_outfile=conftest.$ac_objext
13273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13275 _lt_compiler_boilerplate=`cat conftest.err`
13278 ac_outfile=conftest.$ac_objext
13279 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13281 _lt_linker_boilerplate=`cat conftest.err`
13285 # Allow CC to be a program name with arguments.
13290 lt_save_with_gnu_ld=$with_gnu_ld
13291 lt_save_path_LD=$lt_cv_path_LD
13292 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13293 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13295 $as_unset lt_cv_prog_gnu_ld
13297 if test -n "${lt_cv_path_LDCXX+set}"; then
13298 lt_cv_path_LD=$lt_cv_path_LDCXX
13300 $as_unset lt_cv_path_LD
13302 test -z "${LDCXX+set}" || LD=$LDCXX
13306 for cc_temp in $compiler""; do
13308 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13309 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13314 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13317 if test -n "$compiler"; then
13318 # We don't want -fno-exception when compiling C++ code, so set the
13319 # no_builtin_flag separately
13320 if test "$GXX" = yes; then
13321 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13323 lt_prog_compiler_no_builtin_flag_CXX=
13326 if test "$GXX" = yes; then
13327 # Set up default GNU C++ configuration
13331 # Check whether --with-gnu-ld was given.
13332 if test "${with_gnu_ld+set}" = set; then
13333 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13339 if test "$GCC" = yes; then
13340 # Check if gcc -print-prog-name=ld gives a path.
13341 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13342 $as_echo_n "checking for ld used by $CC... " >&6; }
13345 # gcc leaves a trailing carriage return which upsets mingw
13346 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13348 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13351 # Accept absolute paths.
13353 re_direlt='/[^/][^/]*/\.\./'
13354 # Canonicalize the pathname of ld
13355 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13356 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13357 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13359 test -z "$LD" && LD="$ac_prog"
13362 # If it fails, then pretend we aren't using GCC.
13366 # If it is relative, then search for the first ld in PATH.
13367 with_gnu_ld=unknown
13370 elif test "$with_gnu_ld" = yes; then
13371 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13372 $as_echo_n "checking for GNU ld... " >&6; }
13374 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13375 $as_echo_n "checking for non-GNU ld... " >&6; }
13377 if test "${lt_cv_path_LD+set}" = set; then
13378 $as_echo_n "(cached) " >&6
13380 if test -z "$LD"; then
13381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13382 for ac_dir in $PATH; do
13384 test -z "$ac_dir" && ac_dir=.
13385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13386 lt_cv_path_LD="$ac_dir/$ac_prog"
13387 # Check to see if the program is GNU ld. I'd rather use --version,
13388 # but apparently some variants of GNU ld only accept -v.
13389 # Break only if it was the GNU/non-GNU ld that we prefer.
13390 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13391 *GNU* | *'with BFD'*)
13392 test "$with_gnu_ld" != no && break
13395 test "$with_gnu_ld" != yes && break
13402 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13406 LD="$lt_cv_path_LD"
13407 if test -n "$LD"; then
13408 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13409 $as_echo "$LD" >&6; }
13411 { $as_echo "$as_me:$LINENO: result: no" >&5
13412 $as_echo "no" >&6; }
13414 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13415 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13416 { (exit 1); exit 1; }; }
13417 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13418 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13419 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13420 $as_echo_n "(cached) " >&6
13422 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13423 case `$LD -v 2>&1 </dev/null` in
13424 *GNU* | *'with BFD'*)
13425 lt_cv_prog_gnu_ld=yes
13428 lt_cv_prog_gnu_ld=no
13432 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13433 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13434 with_gnu_ld=$lt_cv_prog_gnu_ld
13442 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13443 # archiving commands below assume that GNU ld is being used.
13444 if test "$with_gnu_ld" = yes; then
13445 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13446 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'
13448 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13451 # If archive_cmds runs LD, not CC, wlarc should be empty
13452 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13453 # investigate it a little bit more. (MM)
13456 # ancient GNU ld didn't support --whole-archive et. al.
13457 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13458 $GREP 'no-whole-archive' > /dev/null; then
13459 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13461 whole_archive_flag_spec_CXX=
13467 # A generic and very simple default shared library creation
13468 # command for GNU C++ for the case where it uses the native
13469 # linker, instead of GNU ld. If possible, this setting should
13470 # overridden to take advantage of the native linker features on
13471 # the platform it is being used on.
13472 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13475 # Commands to make compiler produce verbose output that lists
13476 # what "hidden" libraries, object files and flags are used when
13477 # linking a shared library.
13478 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13486 # PORTME: fill in a description of your system's C++ link characteristics
13487 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13488 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13492 # FIXME: insert proper C++ library support
13496 if test "$host_cpu" = ia64; then
13497 # On IA64, the linker does run time linking by default, so we don't
13498 # have to do anything special.
13499 aix_use_runtimelinking=no
13500 exp_sym_flag='-Bexport'
13503 aix_use_runtimelinking=no
13505 # Test if we are trying to use run time linking or normal
13506 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13507 # need to do runtime linking.
13508 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13509 for ld_flag in $LDFLAGS; do
13512 aix_use_runtimelinking=yes
13520 exp_sym_flag='-bexport'
13521 no_entry_flag='-bnoentry'
13524 # When large executables or shared objects are built, AIX ld can
13525 # have problems creating the table of contents. If linking a library
13526 # or program results in "error TOC overflow" add -mminimal-toc to
13527 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13528 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13530 archive_cmds_CXX=''
13531 hardcode_direct_CXX=yes
13532 hardcode_direct_absolute_CXX=yes
13533 hardcode_libdir_separator_CXX=':'
13534 link_all_deplibs_CXX=yes
13535 file_list_spec_CXX='${wl}-f,'
13537 if test "$GXX" = yes; then
13538 case $host_os in aix4.[012]|aix4.[012].*)
13539 # We only want to do this on AIX 4.2 and lower, the check
13540 # below for broken collect2 doesn't work under 4.3+
13541 collect2name=`${CC} -print-prog-name=collect2`
13542 if test -f "$collect2name" &&
13543 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13545 # We have reworked collect2
13548 # We have old collect2
13549 hardcode_direct_CXX=unsupported
13550 # It fails to find uninstalled libraries when the uninstalled
13551 # path is not listed in the libpath. Setting hardcode_minus_L
13552 # to unsupported forces relinking
13553 hardcode_minus_L_CXX=yes
13554 hardcode_libdir_flag_spec_CXX='-L$libdir'
13555 hardcode_libdir_separator_CXX=
13558 shared_flag='-shared'
13559 if test "$aix_use_runtimelinking" = yes; then
13560 shared_flag="$shared_flag "'${wl}-G'
13564 if test "$host_cpu" = ia64; then
13565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13566 # chokes on -Wl,-G. The following line is correct:
13569 if test "$aix_use_runtimelinking" = yes; then
13570 shared_flag='${wl}-G'
13572 shared_flag='${wl}-bM:SRE'
13577 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13578 # It seems that -bexpall does not export symbols beginning with
13579 # underscore (_), so it is better to generate a list of symbols to
13581 always_export_symbols_CXX=yes
13582 if test "$aix_use_runtimelinking" = yes; then
13583 # Warning - without using the other runtime loading flags (-brtl),
13584 # -berok will link without error, but may produce a broken library.
13585 allow_undefined_flag_CXX='-berok'
13586 # Determine the default libpath from the value encoded in an empty
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (ac_try="$ac_link"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13610 $as_echo "$ac_try_echo") >&5
13611 (eval "$ac_link") 2>conftest.er1
13613 grep -v '^ *+' conftest.er1 >conftest.err
13615 cat conftest.err >&5
13616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && {
13618 test -z "$ac_cxx_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest$ac_exeext && {
13621 test "$cross_compiling" = yes ||
13622 $as_test_x conftest$ac_exeext
13625 lt_aix_libpath_sed='
13626 /Import File Strings/,/^$/ {
13632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13633 # Check for a 64-bit object if we didn't find anything.
13634 if test -z "$aix_libpath"; then
13635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13638 $as_echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13644 rm -rf conftest.dSYM
13645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13646 conftest$ac_exeext conftest.$ac_ext
13647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13649 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13651 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"
13653 if test "$host_cpu" = ia64; then
13654 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13655 allow_undefined_flag_CXX="-z nodefs"
13656 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"
13658 # Determine the default libpath from the value encoded in an
13659 # empty executable.
13660 cat >conftest.$ac_ext <<_ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13675 rm -f conftest.$ac_objext conftest$ac_exeext
13676 if { (ac_try="$ac_link"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13682 $as_echo "$ac_try_echo") >&5
13683 (eval "$ac_link") 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } && {
13690 test -z "$ac_cxx_werror_flag" ||
13691 test ! -s conftest.err
13692 } && test -s conftest$ac_exeext && {
13693 test "$cross_compiling" = yes ||
13694 $as_test_x conftest$ac_exeext
13697 lt_aix_libpath_sed='
13698 /Import File Strings/,/^$/ {
13704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13705 # Check for a 64-bit object if we didn't find anything.
13706 if test -z "$aix_libpath"; then
13707 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13710 $as_echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13716 rm -rf conftest.dSYM
13717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13718 conftest$ac_exeext conftest.$ac_ext
13719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13721 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13722 # Warning - without using the other run time loading flags,
13723 # -berok will link without error, but may produce a broken library.
13724 no_undefined_flag_CXX=' ${wl}-bernotok'
13725 allow_undefined_flag_CXX=' ${wl}-berok'
13726 # Exported symbols can be pulled into shared objects from archives
13727 whole_archive_flag_spec_CXX='$convenience'
13728 archive_cmds_need_lc_CXX=yes
13729 # This is similar to how AIX traditionally builds its shared
13731 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'
13737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13738 allow_undefined_flag_CXX=unsupported
13739 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13740 # support --undefined. This deserves some investigation. FIXME
13741 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13748 case $cc_basename in
13750 # FIXME: insert proper C++ library support
13756 cygwin* | mingw* | pw32* | cegcc*)
13757 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13758 # as there is no search path for DLLs.
13759 hardcode_libdir_flag_spec_CXX='-L$libdir'
13760 allow_undefined_flag_CXX=unsupported
13761 always_export_symbols_CXX=no
13762 enable_shared_with_static_runtimes_CXX=yes
13764 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13765 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'
13766 # If the export-symbols file already is a .def file (1st line
13767 # is EXPORTS), use it as is; otherwise, prepend...
13768 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13769 cp $export_symbols $output_objdir/$soname.def;
13771 echo EXPORTS > $output_objdir/$soname.def;
13772 cat $export_symbols >> $output_objdir/$soname.def;
13774 $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'
13779 darwin* | rhapsody*)
13782 archive_cmds_need_lc_CXX=no
13783 hardcode_direct_CXX=no
13784 hardcode_automatic_CXX=yes
13785 hardcode_shlibpath_var_CXX=unsupported
13786 whole_archive_flag_spec_CXX=''
13787 link_all_deplibs_CXX=yes
13788 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13789 case $cc_basename in
13790 ifort*) _lt_dar_can_shared=yes ;;
13791 *) _lt_dar_can_shared=$GCC ;;
13793 if test "$_lt_dar_can_shared" = "yes"; then
13794 output_verbose_link_cmd=echo
13795 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}"
13796 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13797 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}"
13798 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}"
13799 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13800 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}"
13801 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}"
13811 case $cc_basename in
13813 # FIXME: insert proper C++ library support
13817 # Green Hills C++ Compiler
13818 # FIXME: insert proper C++ library support
13822 # FIXME: insert proper C++ library support
13829 # C++ shared libraries reported to be fairly broken before
13835 archive_cmds_need_lc_CXX=no
13838 freebsd* | dragonfly*)
13839 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13848 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13849 hardcode_libdir_separator_CXX=:
13850 export_dynamic_flag_spec_CXX='${wl}-E'
13851 hardcode_direct_CXX=yes
13852 hardcode_minus_L_CXX=yes # Not in the search PATH,
13853 # but as the default
13854 # location of the library.
13856 case $cc_basename in
13858 # FIXME: insert proper C++ library support
13862 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'
13863 # Commands to make compiler produce verbose output that lists
13864 # what "hidden" libraries, object files and flags are used when
13865 # linking a shared library.
13867 # There doesn't appear to be a way to prevent this compiler from
13868 # explicitly linking system object files so we need to strip them
13869 # from the output so that they don't get included in the library
13871 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'
13874 if test "$GXX" = yes; then
13875 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'
13877 # FIXME: insert proper C++ library support
13885 if test $with_gnu_ld = no; then
13886 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13887 hardcode_libdir_separator_CXX=:
13893 export_dynamic_flag_spec_CXX='${wl}-E'
13899 hardcode_direct_CXX=no
13900 hardcode_shlibpath_var_CXX=no
13903 hardcode_direct_CXX=yes
13904 hardcode_direct_absolute_CXX=yes
13905 hardcode_minus_L_CXX=yes # Not in the search PATH,
13906 # but as the default
13907 # location of the library.
13911 case $cc_basename in
13913 # FIXME: insert proper C++ library support
13919 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13922 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13925 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13928 # Commands to make compiler produce verbose output that lists
13929 # what "hidden" libraries, object files and flags are used when
13930 # linking a shared library.
13932 # There doesn't appear to be a way to prevent this compiler from
13933 # explicitly linking system object files so we need to strip them
13934 # from the output so that they don't get included in the library
13936 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'
13939 if test "$GXX" = yes; then
13940 if test $with_gnu_ld = no; then
13943 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13946 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13949 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'
13954 # FIXME: insert proper C++ library support
13962 hardcode_direct_CXX=no
13963 hardcode_shlibpath_var_CXX=no
13964 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13965 export_dynamic_flag_spec_CXX='${wl}-E'
13966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13967 # Instead, shared libraries are loaded at an image base (0x10000000 by
13968 # default) and relocated if they conflict, which is a slow very memory
13969 # consuming and fragmenting process. To avoid this, we pick a random,
13970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13971 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13972 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'
13973 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'
13976 case $cc_basename in
13979 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'
13981 # Archives containing C++ object files must be created using
13982 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13983 # necessary to make sure instantiated templates are included
13985 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13988 if test "$GXX" = yes; then
13989 if test "$with_gnu_ld" = no; then
13990 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'
13992 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'
13995 link_all_deplibs_CXX=yes
13998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13999 hardcode_libdir_separator_CXX=:
14000 inherit_rpath_CXX=yes
14003 linux* | k*bsd*-gnu)
14004 case $cc_basename in
14006 # Kuck and Associates, Inc. (KAI) C++ Compiler
14008 # KCC will only create a shared library if the output file
14009 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14010 # to its proper name (with version) after linking.
14011 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'
14012 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'
14013 # Commands to make compiler produce verbose output that lists
14014 # what "hidden" libraries, object files and flags are used when
14015 # linking a shared library.
14017 # There doesn't appear to be a way to prevent this compiler from
14018 # explicitly linking system object files so we need to strip them
14019 # from the output so that they don't get included in the library
14021 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'
14023 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14024 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14026 # Archives containing C++ object files must be created using
14027 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14028 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14033 # version 8.0 and above of icpc choke on multiply defined symbols
14034 # if we add $predep_objects and $postdep_objects, however 7.1 and
14035 # earlier do not add the objects themselves.
14036 case `$CC -V 2>&1` in
14038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039 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'
14041 *) # Version 8.0 or newer
14044 ia64*) tmp_idyn=' -i_dynamic';;
14046 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14047 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'
14050 archive_cmds_need_lc_CXX=no
14051 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14053 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14056 # Portland Group C++ compiler
14058 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14059 prelink_cmds_CXX='tpldir=Template.dir~
14061 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14062 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14063 old_archive_cmds_CXX='tpldir=Template.dir~
14065 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14066 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14068 archive_cmds_CXX='tpldir=Template.dir~
14070 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14071 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14072 archive_expsym_cmds_CXX='tpldir=Template.dir~
14074 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14075 $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'
14077 *) # Version 6 will use weak symbols
14078 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14079 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'
14083 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14084 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14085 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'
14089 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14090 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'
14092 runpath_var=LD_RUN_PATH
14093 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14094 hardcode_libdir_separator_CXX=:
14096 # Commands to make compiler produce verbose output that lists
14097 # what "hidden" libraries, object files and flags are used when
14098 # linking a shared library.
14100 # There doesn't appear to be a way to prevent this compiler from
14101 # explicitly linking system object files so we need to strip them
14102 # from the output so that they don't get included in the library
14104 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'
14107 # IBM XL 8.0 on PPC, with GNU ld
14108 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14109 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14110 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14111 if test "x$supports_anon_versioning" = xyes; then
14112 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14113 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14114 echo "local: *; };" >> $output_objdir/$libname.ver~
14115 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14119 case `$CC -V 2>&1 | sed 5q` in
14122 no_undefined_flag_CXX=' -zdefs'
14123 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14124 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'
14125 hardcode_libdir_flag_spec_CXX='-R$libdir'
14126 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'
14127 compiler_needs_object_CXX=yes
14129 # Not sure whether something based on
14130 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14132 output_verbose_link_cmd='echo'
14134 # Archives containing C++ object files must be created using
14135 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14136 # necessary to make sure instantiated templates are included
14138 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14146 # FIXME: insert proper C++ library support
14151 # FIXME: insert proper C++ library support
14156 case $cc_basename in
14158 # FIXME: insert proper C++ library support
14162 # FIXME: insert proper C++ library support
14169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14170 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14172 hardcode_libdir_flag_spec_CXX='-R$libdir'
14173 hardcode_direct_CXX=yes
14174 hardcode_shlibpath_var_CXX=no
14176 # Workaround some broken pre-1.5 toolchains
14177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14185 # C++ shared libraries are fairly broken
14190 if test -f /usr/libexec/ld.so; then
14191 hardcode_direct_CXX=yes
14192 hardcode_shlibpath_var_CXX=no
14193 hardcode_direct_absolute_CXX=yes
14194 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14195 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14197 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14198 export_dynamic_flag_spec_CXX='${wl}-E'
14199 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14201 output_verbose_link_cmd=echo
14207 osf3* | osf4* | osf5*)
14208 case $cc_basename in
14210 # Kuck and Associates, Inc. (KAI) C++ Compiler
14212 # KCC will only create a shared library if the output file
14213 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14214 # to its proper name (with version) after linking.
14215 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'
14217 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14218 hardcode_libdir_separator_CXX=:
14220 # Archives containing C++ object files must be created using
14221 # the KAI C++ compiler.
14223 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14224 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14228 # Rational C++ 2.4.1
14229 # FIXME: insert proper C++ library support
14235 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14236 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'
14237 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14240 allow_undefined_flag_CXX=' -expect_unresolved \*'
14241 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'
14242 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14243 echo "-hidden">> $lib.exp~
14244 $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~
14246 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14250 hardcode_libdir_separator_CXX=:
14252 # Commands to make compiler produce verbose output that lists
14253 # what "hidden" libraries, object files and flags are used when
14254 # linking a shared library.
14256 # There doesn't appear to be a way to prevent this compiler from
14257 # explicitly linking system object files so we need to strip them
14258 # from the output so that they don't get included in the library
14260 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'
14263 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14264 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14267 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'
14270 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'
14274 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14275 hardcode_libdir_separator_CXX=:
14277 # Commands to make compiler produce verbose output that lists
14278 # what "hidden" libraries, object files and flags are used when
14279 # linking a shared library.
14280 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14283 # FIXME: insert proper C++ library support
14291 # FIXME: insert proper C++ library support
14296 case $cc_basename in
14299 # FIXME: insert proper C++ library support
14304 # FIXME: insert proper C++ library support
14308 # FIXME: insert proper C++ library support
14315 case $cc_basename in
14317 # Sun C++ 4.2, 5.x and Centerline C++
14318 archive_cmds_need_lc_CXX=yes
14319 no_undefined_flag_CXX=' -zdefs'
14320 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14321 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14322 $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'
14324 hardcode_libdir_flag_spec_CXX='-R$libdir'
14325 hardcode_shlibpath_var_CXX=no
14327 solaris2.[0-5] | solaris2.[0-5].*) ;;
14329 # The compiler driver will combine and reorder linker options,
14330 # but understands `-z linker_flag'.
14331 # Supported since Solaris 2.6 (maybe 2.5.1?)
14332 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14335 link_all_deplibs_CXX=yes
14337 output_verbose_link_cmd='echo'
14339 # Archives containing C++ object files must be created using
14340 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14341 # necessary to make sure instantiated templates are included
14343 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14346 # Green Hills C++ Compiler
14347 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14349 # The C++ compiler must be used to create the archive.
14350 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14353 # GNU C++ compiler with Solaris linker
14354 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14355 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14356 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14357 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14358 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14359 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14361 # Commands to make compiler produce verbose output that lists
14362 # what "hidden" libraries, object files and flags are used when
14363 # linking a shared library.
14364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14366 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14368 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14369 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14370 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14372 # Commands to make compiler produce verbose output that lists
14373 # what "hidden" libraries, object files and flags are used when
14374 # linking a shared library.
14375 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14378 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14380 solaris2.[0-5] | solaris2.[0-5].*) ;;
14382 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14391 no_undefined_flag_CXX='${wl}-z,text'
14392 archive_cmds_need_lc_CXX=no
14393 hardcode_shlibpath_var_CXX=no
14394 runpath_var='LD_RUN_PATH'
14396 case $cc_basename in
14398 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14399 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14402 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14403 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14408 sysv5* | sco3.2v5* | sco5v6*)
14409 # Note: We can NOT use -z defs as we might desire, because we do not
14410 # link with -lc, and that would cause any symbols used from libc to
14411 # always be unresolved, which means just about no library would
14412 # ever link correctly. If we're not using GNU ld we use -z text
14413 # though, which does catch some bad symbols but isn't as heavy-handed
14415 no_undefined_flag_CXX='${wl}-z,text'
14416 allow_undefined_flag_CXX='${wl}-z,nodefs'
14417 archive_cmds_need_lc_CXX=no
14418 hardcode_shlibpath_var_CXX=no
14419 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14420 hardcode_libdir_separator_CXX=':'
14421 link_all_deplibs_CXX=yes
14422 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14423 runpath_var='LD_RUN_PATH'
14425 case $cc_basename in
14427 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14428 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14431 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14432 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14438 case $cc_basename in
14440 # NonStop-UX NCC 3.20
14441 # FIXME: insert proper C++ library support
14445 # FIXME: insert proper C++ library support
14452 # FIXME: insert proper C++ library support
14457 # FIXME: insert proper C++ library support
14462 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14463 $as_echo "$ld_shlibs_CXX" >&6; }
14464 test "$ld_shlibs_CXX" = no && can_build_shared=no
14470 ## There is no encapsulation within the following macros, do not change
14471 ## the running order or otherwise move them around unless you know exactly
14472 ## what you are doing...
14473 # Dependencies to place before and after the object being linked:
14474 predep_objects_CXX=
14475 postdep_objects_CXX=
14478 compiler_lib_search_path_CXX=
14480 cat > conftest.$ac_ext <<_LT_EOF
14484 Foo (void) { a = 0; }
14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14491 (eval $ac_compile) 2>&5
14493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; then
14495 # Parse the compiler output and extract the necessary
14496 # objects, libraries and library flags.
14498 # Sentinel used to keep track of whether or not we are before
14499 # the conftest object file.
14500 pre_test_object_deps_done=no
14502 for p in `eval "$output_verbose_link_cmd"`; do
14506 # Some compilers place space between "-{L,R}" and the path.
14507 # Remove the space.
14508 if test $p = "-L" ||
14509 test $p = "-R"; then
14516 if test "$pre_test_object_deps_done" = no; then
14519 # Internal compiler library paths should come after those
14520 # provided the user. The postdeps already come after the
14521 # user supplied libs so there is no need to process them.
14522 if test -z "$compiler_lib_search_path_CXX"; then
14523 compiler_lib_search_path_CXX="${prev}${p}"
14525 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14528 # The "-l" case would never come before the object being
14529 # linked, so don't bother handling this case.
14532 if test -z "$postdeps_CXX"; then
14533 postdeps_CXX="${prev}${p}"
14535 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14541 # This assumes that the test object file only shows up
14542 # once in the compiler output.
14543 if test "$p" = "conftest.$objext"; then
14544 pre_test_object_deps_done=yes
14548 if test "$pre_test_object_deps_done" = no; then
14549 if test -z "$predep_objects_CXX"; then
14550 predep_objects_CXX="$p"
14552 predep_objects_CXX="$predep_objects_CXX $p"
14555 if test -z "$postdep_objects_CXX"; then
14556 postdep_objects_CXX="$p"
14558 postdep_objects_CXX="$postdep_objects_CXX $p"
14563 *) ;; # Ignore the rest.
14571 echo "libtool.m4: error: problem compiling CXX test program"
14574 $RM -f confest.$objext
14576 # PORTME: override above test on systems where it is broken
14579 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14580 # hack all around it, let's just trust "g++" to DTRT.
14581 predep_objects_CXX=
14582 postdep_objects_CXX=
14587 case `$CC -V 2>&1 | sed 5q` in
14591 # The more standards-conforming stlport4 library is
14592 # incompatible with the Cstd library. Avoid specifying
14593 # it if it's in CXXFLAGS. Ignore libCrun as
14594 # -library=stlport4 depends on it.
14595 case " $CXX $CXXFLAGS " in
14596 *" -library=stlport4 "*)
14597 solaris_use_stlport4=yes
14601 if test "$solaris_use_stlport4" != yes; then
14602 postdeps_CXX='-library=Cstd -library=Crun'
14609 case $cc_basename in
14611 # The more standards-conforming stlport4 library is
14612 # incompatible with the Cstd library. Avoid specifying
14613 # it if it's in CXXFLAGS. Ignore libCrun as
14614 # -library=stlport4 depends on it.
14615 case " $CXX $CXXFLAGS " in
14616 *" -library=stlport4 "*)
14617 solaris_use_stlport4=yes
14621 # Adding this requires a known-good setup of shared libraries for
14622 # Sun compiler versions before 5.6, else PIC objects from an old
14623 # archive will be linked into the output, leading to subtle bugs.
14624 if test "$solaris_use_stlport4" != yes; then
14625 postdeps_CXX='-library=Cstd -library=Crun'
14633 case " $postdeps_CXX " in
14634 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14636 compiler_lib_search_dirs_CXX=
14637 if test -n "${compiler_lib_search_path_CXX}"; then
14638 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14671 lt_prog_compiler_wl_CXX=
14672 lt_prog_compiler_pic_CXX=
14673 lt_prog_compiler_static_CXX=
14675 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14676 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14678 # C++ specific cases for pic, static, wl, etc.
14679 if test "$GXX" = yes; then
14680 lt_prog_compiler_wl_CXX='-Wl,'
14681 lt_prog_compiler_static_CXX='-static'
14685 # All AIX code is PIC.
14686 if test "$host_cpu" = ia64; then
14687 # AIX 5 now supports IA64 processor
14688 lt_prog_compiler_static_CXX='-Bstatic'
14695 # see comment about AmigaOS4 .so support
14696 lt_prog_compiler_pic_CXX='-fPIC'
14699 # FIXME: we need at least 68020 code to build shared libraries, but
14700 # adding the `-m68020' flag to GCC prevents building anything better,
14702 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14707 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14708 # PIC is the default for these OSes.
14710 mingw* | cygwin* | os2* | pw32* | cegcc*)
14711 # This hack is so that the source file can tell whether it is being
14712 # built for inclusion in a dll (and should export symbols for example).
14713 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14714 # (--disable-auto-import) libraries
14715 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14717 darwin* | rhapsody*)
14718 # PIC is the default on this platform
14719 # Common symbols not allowed in MH_DYLIB files
14720 lt_prog_compiler_pic_CXX='-fno-common'
14723 # DJGPP does not support shared libraries at all
14724 lt_prog_compiler_pic_CXX=
14727 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14728 # Instead, we relocate shared libraries at runtime.
14731 if test -d /usr/nec; then
14732 lt_prog_compiler_pic_CXX=-Kconform_pic
14736 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14737 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14738 # sets the default TLS model and affects inlining.
14743 lt_prog_compiler_pic_CXX='-fPIC'
14748 # QNX uses GNU C++, but need to define -shared option too, otherwise
14749 # it will coredump.
14750 lt_prog_compiler_pic_CXX='-fPIC -shared'
14753 lt_prog_compiler_pic_CXX='-fPIC'
14759 # All AIX code is PIC.
14760 if test "$host_cpu" = ia64; then
14761 # AIX 5 now supports IA64 processor
14762 lt_prog_compiler_static_CXX='-Bstatic'
14764 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14768 case $cc_basename in
14770 # Green Hills C++ Compiler
14771 # _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"
14776 case $cc_basename in
14778 lt_prog_compiler_pic_CXX='-KPIC'
14781 # Green Hills C++ Compiler
14782 lt_prog_compiler_pic_CXX='-pic'
14788 freebsd* | dragonfly*)
14789 # FreeBSD uses GNU C++
14791 hpux9* | hpux10* | hpux11*)
14792 case $cc_basename in
14794 lt_prog_compiler_wl_CXX='-Wl,'
14795 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14796 if test "$host_cpu" != ia64; then
14797 lt_prog_compiler_pic_CXX='+Z'
14801 lt_prog_compiler_wl_CXX='-Wl,'
14802 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14808 lt_prog_compiler_pic_CXX='+Z'
14817 # This is c89, which is MS Visual C++ (no shared libs)
14818 # Anyone wants to do a port?
14820 irix5* | irix6* | nonstopux*)
14821 case $cc_basename in
14823 lt_prog_compiler_wl_CXX='-Wl,'
14824 lt_prog_compiler_static_CXX='-non_shared'
14825 # CC pic flag -KPIC is the default.
14831 linux* | k*bsd*-gnu)
14832 case $cc_basename in
14835 lt_prog_compiler_wl_CXX='--backend -Wl,'
14836 lt_prog_compiler_pic_CXX='-fPIC'
14839 # old Intel C++ for x86_64 which still supported -KPIC.
14840 lt_prog_compiler_wl_CXX='-Wl,'
14841 lt_prog_compiler_pic_CXX='-KPIC'
14842 lt_prog_compiler_static_CXX='-static'
14845 # Intel C++, used to be incompatible with GCC.
14846 # ICC 10 doesn't accept -KPIC any more.
14847 lt_prog_compiler_wl_CXX='-Wl,'
14848 lt_prog_compiler_pic_CXX='-fPIC'
14849 lt_prog_compiler_static_CXX='-static'
14852 # Portland Group C++ compiler
14853 lt_prog_compiler_wl_CXX='-Wl,'
14854 lt_prog_compiler_pic_CXX='-fpic'
14855 lt_prog_compiler_static_CXX='-Bstatic'
14859 # Make sure the PIC flag is empty. It appears that all Alpha
14860 # Linux and Compaq Tru64 Unix objects are PIC.
14861 lt_prog_compiler_pic_CXX=
14862 lt_prog_compiler_static_CXX='-non_shared'
14865 # IBM XL 8.0 on PPC
14866 lt_prog_compiler_wl_CXX='-Wl,'
14867 lt_prog_compiler_pic_CXX='-qpic'
14868 lt_prog_compiler_static_CXX='-qstaticlink'
14871 case `$CC -V 2>&1 | sed 5q` in
14874 lt_prog_compiler_pic_CXX='-KPIC'
14875 lt_prog_compiler_static_CXX='-Bstatic'
14876 lt_prog_compiler_wl_CXX='-Qoption ld '
14887 case $cc_basename in
14889 lt_prog_compiler_pic_CXX='-W c,exportall'
14898 # QNX uses GNU C++, but need to define -shared option too, otherwise
14899 # it will coredump.
14900 lt_prog_compiler_pic_CXX='-fPIC -shared'
14902 osf3* | osf4* | osf5*)
14903 case $cc_basename in
14905 lt_prog_compiler_wl_CXX='--backend -Wl,'
14908 # Rational C++ 2.4.1
14909 lt_prog_compiler_pic_CXX='-pic'
14912 # Digital/Compaq C++
14913 lt_prog_compiler_wl_CXX='-Wl,'
14914 # Make sure the PIC flag is empty. It appears that all Alpha
14915 # Linux and Compaq Tru64 Unix objects are PIC.
14916 lt_prog_compiler_pic_CXX=
14917 lt_prog_compiler_static_CXX='-non_shared'
14926 case $cc_basename in
14928 # Sun C++ 4.2, 5.x and Centerline C++
14929 lt_prog_compiler_pic_CXX='-KPIC'
14930 lt_prog_compiler_static_CXX='-Bstatic'
14931 lt_prog_compiler_wl_CXX='-Qoption ld '
14934 # Green Hills C++ Compiler
14935 lt_prog_compiler_pic_CXX='-PIC'
14942 case $cc_basename in
14945 lt_prog_compiler_pic_CXX='-pic'
14946 lt_prog_compiler_static_CXX='-Bstatic'
14950 lt_prog_compiler_pic_CXX='-pic'
14956 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14957 case $cc_basename in
14959 lt_prog_compiler_wl_CXX='-Wl,'
14960 lt_prog_compiler_pic_CXX='-KPIC'
14961 lt_prog_compiler_static_CXX='-Bstatic'
14966 case $cc_basename in
14968 # NonStop-UX NCC 3.20
14969 lt_prog_compiler_pic_CXX='-KPIC'
14978 lt_prog_compiler_can_build_shared_CXX=no
14984 # For platforms which do not support PIC, -DPIC is meaningless:
14986 lt_prog_compiler_pic_CXX=
14989 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14992 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14993 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14998 # Check to make sure the PIC flag actually works.
15000 if test -n "$lt_prog_compiler_pic_CXX"; then
15001 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15002 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15003 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15004 $as_echo_n "(cached) " >&6
15006 lt_cv_prog_compiler_pic_works_CXX=no
15007 ac_outfile=conftest.$ac_objext
15008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15009 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15010 # Insert the option either (1) after the last *FLAGS variable, or
15011 # (2) before a word containing "conftest.", or (3) at the end.
15012 # Note that $ac_compile itself does not contain backslashes and begins
15013 # with a dollar sign (not a hyphen), so the echo should work correctly.
15014 # The option is referenced via a variable to avoid confusing sed.
15015 lt_compile=`echo "$ac_compile" | $SED \
15016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15018 -e 's:$: $lt_compiler_flag:'`
15019 (eval echo "\"\$as_me:15019: $lt_compile\"" >&5)
15020 (eval "$lt_compile" 2>conftest.err)
15022 cat conftest.err >&5
15023 echo "$as_me:15023: \$? = $ac_status" >&5
15024 if (exit $ac_status) && test -s "$ac_outfile"; then
15025 # The compiler can only warn and ignore the option if not recognized
15026 # So say no if there are warnings other than the usual output.
15027 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15030 lt_cv_prog_compiler_pic_works_CXX=yes
15036 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15037 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15039 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15040 case $lt_prog_compiler_pic_CXX in
15042 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15045 lt_prog_compiler_pic_CXX=
15046 lt_prog_compiler_can_build_shared_CXX=no
15054 # Check to make sure the static flag actually works.
15056 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15057 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15058 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15059 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15060 $as_echo_n "(cached) " >&6
15062 lt_cv_prog_compiler_static_works_CXX=no
15063 save_LDFLAGS="$LDFLAGS"
15064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15067 # The linker can only warn and ignore the option if not recognized
15068 # So say no if there are warnings
15069 if test -s conftest.err; then
15070 # Append any errors to the config.log.
15071 cat conftest.err 1>&5
15072 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15074 if diff conftest.exp conftest.er2 >/dev/null; then
15075 lt_cv_prog_compiler_static_works_CXX=yes
15078 lt_cv_prog_compiler_static_works_CXX=yes
15082 LDFLAGS="$save_LDFLAGS"
15085 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15086 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15088 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15091 lt_prog_compiler_static_CXX=
15097 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15099 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15100 $as_echo_n "(cached) " >&6
15102 lt_cv_prog_compiler_c_o_CXX=no
15103 $RM -r conftest 2>/dev/null
15107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15109 lt_compiler_flag="-o out/conftest2.$ac_objext"
15110 # Insert the option either (1) after the last *FLAGS variable, or
15111 # (2) before a word containing "conftest.", or (3) at the end.
15112 # Note that $ac_compile itself does not contain backslashes and begins
15113 # with a dollar sign (not a hyphen), so the echo should work correctly.
15114 lt_compile=`echo "$ac_compile" | $SED \
15115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15117 -e 's:$: $lt_compiler_flag:'`
15118 (eval echo "\"\$as_me:15118: $lt_compile\"" >&5)
15119 (eval "$lt_compile" 2>out/conftest.err)
15121 cat out/conftest.err >&5
15122 echo "$as_me:15122: \$? = $ac_status" >&5
15123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15125 # The compiler can only warn and ignore the option if not recognized
15126 # So say no if there are warnings
15127 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15130 lt_cv_prog_compiler_c_o_CXX=yes
15135 # SGI C++ compiler will create directory out/ii_files/ for
15136 # template instantiation
15137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15138 $RM out/* && rmdir out
15144 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15145 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15149 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15150 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15151 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15152 $as_echo_n "(cached) " >&6
15154 lt_cv_prog_compiler_c_o_CXX=no
15155 $RM -r conftest 2>/dev/null
15159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15161 lt_compiler_flag="-o out/conftest2.$ac_objext"
15162 # Insert the option either (1) after the last *FLAGS variable, or
15163 # (2) before a word containing "conftest.", or (3) at the end.
15164 # Note that $ac_compile itself does not contain backslashes and begins
15165 # with a dollar sign (not a hyphen), so the echo should work correctly.
15166 lt_compile=`echo "$ac_compile" | $SED \
15167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15169 -e 's:$: $lt_compiler_flag:'`
15170 (eval echo "\"\$as_me:15170: $lt_compile\"" >&5)
15171 (eval "$lt_compile" 2>out/conftest.err)
15173 cat out/conftest.err >&5
15174 echo "$as_me:15174: \$? = $ac_status" >&5
15175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15177 # The compiler can only warn and ignore the option if not recognized
15178 # So say no if there are warnings
15179 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15182 lt_cv_prog_compiler_c_o_CXX=yes
15187 # SGI C++ compiler will create directory out/ii_files/ for
15188 # template instantiation
15189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15190 $RM out/* && rmdir out
15196 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15197 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15202 hard_links="nottested"
15203 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15204 # do not overwrite the value of need_locks provided by the user
15205 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15206 $as_echo_n "checking if we can lock with hard links... " >&6; }
15209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15211 ln conftest.a conftest.b 2>&5 || hard_links=no
15212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15213 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15214 $as_echo "$hard_links" >&6; }
15215 if test "$hard_links" = no; then
15216 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15217 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15226 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15227 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15229 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15232 # If we're using GNU nm, then we don't want the "-C" option.
15233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15234 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15235 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'
15237 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'
15241 export_symbols_cmds_CXX="$ltdll_cmds"
15243 cygwin* | mingw* | cegcc*)
15244 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'
15247 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15250 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15252 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15253 $as_echo "$ld_shlibs_CXX" >&6; }
15254 test "$ld_shlibs_CXX" = no && can_build_shared=no
15256 with_gnu_ld_CXX=$with_gnu_ld
15264 # Do we need to explicitly link libc?
15266 case "x$archive_cmds_need_lc_CXX" in
15268 # Assume -lc should be added
15269 archive_cmds_need_lc_CXX=yes
15271 if test "$enable_shared" = yes && test "$GCC" = yes; then
15272 case $archive_cmds_CXX in
15274 # FIXME: we may have to deal with multi-command sequences.
15277 # Test whether the compiler implicitly links with -lc since on some
15278 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15279 # to ld, don't add -lc before -lgcc.
15280 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15281 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15286 (eval $ac_compile) 2>&5
15288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } 2>conftest.err; then
15292 libobjs=conftest.$ac_objext
15294 wl=$lt_prog_compiler_wl_CXX
15295 pic_flag=$lt_prog_compiler_pic_CXX
15301 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15302 allow_undefined_flag_CXX=
15303 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15304 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }
15309 archive_cmds_need_lc_CXX=no
15311 archive_cmds_need_lc_CXX=yes
15313 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15315 cat conftest.err 1>&5
15318 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15319 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15389 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15392 library_names_spec=
15393 libname_spec='lib$name'
15397 postuninstall_cmds=
15401 shlibpath_overrides_runpath=unknown
15403 dynamic_linker="$host_os ld.so"
15404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15405 need_lib_prefix=unknown
15406 hardcode_into_libs=no
15408 # when you set need_version to no, make sure it does not cause -set_version
15409 # flags to be left without arguments
15410 need_version=unknown
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15416 shlibpath_var=LIBPATH
15418 # AIX 3 has no versioning support, so we append a major version to the name.
15419 soname_spec='${libname}${release}${shared_ext}$major'
15426 hardcode_into_libs=yes
15427 if test "$host_cpu" = ia64; then
15428 # AIX 5 supports IA64
15429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15430 shlibpath_var=LD_LIBRARY_PATH
15432 # With GCC up to 2.95.x, collect2 would create an import file
15433 # for dependence libraries. The import file would start with
15434 # the line `#! .'. This would cause the generated library to
15435 # depend on `.', always an invalid library. This was fixed in
15436 # development snapshots of GCC prior to 3.0.
15438 aix4 | aix4.[01] | aix4.[01].*)
15439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15441 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15444 can_build_shared=no
15448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15449 # soname into executable. Probably we can add versioning support to
15450 # collect2, so additional links can be useful in future.
15451 if test "$aix_use_runtimelinking" = yes; then
15452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15453 # instead of lib<name>.a to let people know that these are not
15454 # typical AIX shared libraries.
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457 # We preserve .a as extension for shared libraries through AIX4.2
15458 # and later when we are not doing run time linking.
15459 library_names_spec='${libname}${release}.a $libname.a'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15462 shlibpath_var=LIBPATH
15469 # Since July 2007 AmigaOS4 officially supports .so libraries.
15470 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 library_names_spec='$libname.ixlibrary $libname.a'
15475 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15476 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'
15482 library_names_spec='${libname}${shared_ext}'
15483 dynamic_linker="$host_os ld.so"
15484 shlibpath_var=LIBRARY_PATH
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15493 shlibpath_var=LD_LIBRARY_PATH
15494 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15495 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15496 # the default ld.so.conf also contains /usr/contrib/lib and
15497 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15498 # libtool to hard-code these into programs
15501 cygwin* | mingw* | pw32* | cegcc*)
15502 version_type=windows
15507 case $GCC,$host_os in
15508 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15509 library_names_spec='$libname.dll.a'
15510 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15511 postinstall_cmds='base_file=`basename \${file}`~
15512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15513 dldir=$destdir/`dirname \$dlpath`~
15514 test -d \$dldir || mkdir -p \$dldir~
15515 $install_prog $dir/$dlname \$dldir/$dlname~
15516 chmod a+x \$dldir/$dlname~
15517 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15518 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15520 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15521 dlpath=$dir/\$dldll~
15523 shlibpath_overrides_runpath=yes
15527 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15528 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15529 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15532 # MinGW DLLs use traditional 'lib' prefix
15533 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15534 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15535 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15536 # It is most probably a Windows format PATH printed by
15537 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15538 # path with ; separators, and with drive letters. We can handle the
15539 # drive letters (cygwin fileutils understands them), so leave them,
15540 # especially as we might pass files found there to a mingw objdump,
15541 # which wouldn't understand a cygwinified path. Ahh.
15542 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15544 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15548 # pw32 DLLs use 'pw' prefix rather than 'lib'
15549 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15555 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15558 dynamic_linker='Win32 ld.exe'
15559 # FIXME: first we should search . and the directory the executable is in
15563 darwin* | rhapsody*)
15564 dynamic_linker="$host_os dyld"
15565 version_type=darwin
15568 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15569 soname_spec='${libname}${release}${major}$shared_ext'
15570 shlibpath_overrides_runpath=yes
15571 shlibpath_var=DYLD_LIBRARY_PATH
15572 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 shlibpath_var=LD_LIBRARY_PATH
15590 freebsd* | dragonfly*)
15591 # DragonFly does not have aout. When/if they implement a new
15592 # versioning mechanism, adjust this.
15593 if test -x /usr/bin/objformat; then
15594 objformat=`/usr/bin/objformat`
15597 freebsd[123]*) objformat=aout ;;
15598 *) objformat=elf ;;
15601 version_type=freebsd-$objformat
15602 case $version_type in
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15613 shlibpath_var=LD_LIBRARY_PATH
15616 shlibpath_overrides_runpath=yes
15618 freebsd3.[01]* | freebsdelf3.[01]*)
15619 shlibpath_overrides_runpath=yes
15620 hardcode_into_libs=yes
15622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15624 shlibpath_overrides_runpath=no
15625 hardcode_into_libs=yes
15627 *) # from 4.6 on, and DragonFly
15628 shlibpath_overrides_runpath=yes
15629 hardcode_into_libs=yes
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 hardcode_into_libs=yes
15644 hpux9* | hpux10* | hpux11*)
15645 # Give a soname corresponding to the major version so that dld.sl refuses to
15646 # link against other versions.
15653 hardcode_into_libs=yes
15654 dynamic_linker="$host_os dld.so"
15655 shlibpath_var=LD_LIBRARY_PATH
15656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 if test "X$HPUX_IA64_MODE" = X32; then
15660 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15662 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15668 hardcode_into_libs=yes
15669 dynamic_linker="$host_os dld.sl"
15670 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15679 dynamic_linker="$host_os dld.sl"
15680 shlibpath_var=SHLIB_PATH
15681 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15686 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15687 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=no
15699 hardcode_into_libs=yes
15702 irix5* | irix6* | nonstopux*)
15704 nonstopux*) version_type=nonstopux ;;
15706 if test "$lt_cv_prog_gnu_ld" = yes; then
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15717 irix5* | nonstopux*)
15718 libsuff= shlibsuff=
15721 case $LD in # libtool.m4 will add one of these switches to LD
15722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15723 libsuff= shlibsuff= libmagic=32-bit;;
15724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15725 libsuff=32 shlibsuff=N32 libmagic=N32;;
15726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15728 *) libsuff= shlibsuff= libmagic=never-match;;
15732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15733 shlibpath_overrides_runpath=no
15734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15736 hardcode_into_libs=yes
15739 # No shared lib support for Linux oldld, aout, or coff.
15740 linux*oldld* | linux*aout* | linux*coff*)
15744 # This must be Linux ELF.
15745 linux* | k*bsd*-gnu)
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 shlibpath_overrides_runpath=no
15754 # Some binutils ld are patched to set DT_RUNPATH
15755 save_LDFLAGS=$LDFLAGS
15756 save_libdir=$libdir
15757 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15758 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15759 cat >conftest.$ac_ext <<_ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (ac_try="$ac_link"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15781 $as_echo "$ac_try_echo") >&5
15782 (eval "$ac_link") 2>conftest.er1
15784 grep -v '^ *+' conftest.er1 >conftest.err
15786 cat conftest.err >&5
15787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } && {
15789 test -z "$ac_cxx_werror_flag" ||
15790 test ! -s conftest.err
15791 } && test -s conftest$ac_exeext && {
15792 test "$cross_compiling" = yes ||
15793 $as_test_x conftest$ac_exeext
15795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15796 shlibpath_overrides_runpath=yes
15800 $as_echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15806 rm -rf conftest.dSYM
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808 conftest$ac_exeext conftest.$ac_ext
15809 LDFLAGS=$save_LDFLAGS
15810 libdir=$save_libdir
15812 # This implies no fast_install, which is unacceptable.
15813 # Some rework will be needed to allow for fast_install
15814 # before this can be enabled.
15815 hardcode_into_libs=yes
15817 # Append ld.so.conf contents to the search path
15818 if test -f /etc/ld.so.conf; then
15819 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' ' '`
15820 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15823 # We used to test for /lib/ld.so.1 and disable shared libraries on
15824 # powerpc, because MkLinux only supported shared libraries with the
15825 # GNU dynamic linker. Since this was broken with cross compilers,
15826 # most powerpc-linux boxes support dynamic linking these days and
15827 # people can always --disable-shared, the test was removed, and we
15828 # assume the GNU/Linux dynamic linker is in use.
15829 dynamic_linker='GNU/Linux ld.so'
15836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15839 dynamic_linker='NetBSD (a.out) ld.so'
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 dynamic_linker='NetBSD ld.elf_so'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 shlibpath_overrides_runpath=yes
15847 hardcode_into_libs=yes
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 shlibpath_overrides_runpath=yes
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862 soname_spec='${libname}${release}${shared_ext}$major'
15863 shlibpath_var=LD_LIBRARY_PATH
15864 shlibpath_overrides_runpath=no
15865 hardcode_into_libs=yes
15866 dynamic_linker='ldqnx.so'
15871 sys_lib_dlsearch_path_spec="/usr/lib"
15873 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15875 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15876 *) need_version=no ;;
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15883 openbsd2.[89] | openbsd2.[89].*)
15884 shlibpath_overrides_runpath=no
15887 shlibpath_overrides_runpath=yes
15891 shlibpath_overrides_runpath=yes
15896 libname_spec='$name'
15899 library_names_spec='$libname${shared_ext} $libname.a'
15900 dynamic_linker='OS/2 ld.exe'
15901 shlibpath_var=LIBPATH
15904 osf3* | osf4* | osf5*)
15908 soname_spec='${libname}${release}${shared_ext}$major'
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 shlibpath_var=LD_LIBRARY_PATH
15911 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15912 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924 soname_spec='${libname}${release}${shared_ext}$major'
15925 shlibpath_var=LD_LIBRARY_PATH
15926 shlibpath_overrides_runpath=yes
15927 hardcode_into_libs=yes
15928 # ldd complains unless libraries are executable
15929 postinstall_cmds='chmod +x $lib'
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 shlibpath_overrides_runpath=yes
15938 if test "$with_gnu_ld" = yes; then
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 case $host_vendor in
15951 shlibpath_overrides_runpath=no
15953 runpath_var=LD_RUN_PATH
15961 shlibpath_overrides_runpath=no
15962 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15968 if test -d /usr/nec ;then
15970 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15971 soname_spec='$libname${shared_ext}.$major'
15972 shlibpath_var=LD_LIBRARY_PATH
15976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15977 version_type=freebsd-elf
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15981 soname_spec='${libname}${release}${shared_ext}$major'
15982 shlibpath_var=LD_LIBRARY_PATH
15983 shlibpath_overrides_runpath=yes
15984 hardcode_into_libs=yes
15985 if test "$with_gnu_ld" = yes; then
15986 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15988 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15991 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15995 sys_lib_dlsearch_path_spec='/usr/lib'
15999 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004 shlibpath_var=LD_LIBRARY_PATH
16005 shlibpath_overrides_runpath=no
16006 hardcode_into_libs=yes
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 shlibpath_var=LD_LIBRARY_PATH
16020 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16021 $as_echo "$dynamic_linker" >&6; }
16022 test "$dynamic_linker" = no && can_build_shared=no
16024 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16025 if test "$GCC" = yes; then
16026 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16029 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16030 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16032 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16033 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16071 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16073 hardcode_action_CXX=
16074 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16075 test -n "$runpath_var_CXX" ||
16076 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16078 # We can hardcode non-existent directories.
16079 if test "$hardcode_direct_CXX" != no &&
16080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16081 # have to relink, otherwise we might link with an installed library
16082 # when we should be linking with a yet-to-be-installed one
16083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16084 test "$hardcode_minus_L_CXX" != no; then
16085 # Linking always hardcodes the temporary library directory.
16086 hardcode_action_CXX=relink
16088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16089 hardcode_action_CXX=immediate
16092 # We cannot hardcode anything, or else we can only hardcode existing
16094 hardcode_action_CXX=unsupported
16096 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16097 $as_echo "$hardcode_action_CXX" >&6; }
16099 if test "$hardcode_action_CXX" = relink ||
16100 test "$inherit_rpath_CXX" = yes; then
16101 # Fast installation is not supported
16102 enable_fast_install=no
16103 elif test "$shlibpath_overrides_runpath" = yes ||
16104 test "$enable_shared" = no; then
16105 # Fast installation is not necessary
16106 enable_fast_install=needless
16115 fi # test -n "$compiler"
16121 with_gnu_ld=$lt_save_with_gnu_ld
16122 lt_cv_path_LDCXX=$lt_cv_path_LD
16123 lt_cv_path_LD=$lt_save_path_LD
16124 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16125 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16126 fi # test "$_lt_caught_CXX_error" != yes
16129 ac_cpp='$CPP $CPPFLAGS'
16130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16146 ac_config_commands="$ac_config_commands libtool"
16151 # Only expand once:
16156 if test x$use_libtool != xno; then
16157 DEFAULT_OBJECT_TYPE=".lo"
16158 DEFAULT_ARCHIVE_TYPE=".la"
16159 DEFAULT_SHARED_OBJECT_TYPE=".la"
16160 LIBTOOL="\$(LIBTOOL)"
16161 LIBTOOL_INSTALL_TARGET="libtool-install"
16162 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16163 LIBTOOL_CLEAN_TARGET="libtool-clean"
16164 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16165 FD_PLUGIN_DIR="src/plugins/fd"
16168 DEFAULT_OBJECT_TYPE=".o"
16169 DEFAULT_ARCHIVE_TYPE=".a"
16170 DEFAULT_SHARED_OBJECT_TYPE=".so"
16171 LIBTOOL="# \$(LIBTOOL)"
16172 LIBTOOL_INSTALL_TARGET=""
16173 LIBTOOL_UNINSTALL_TARGET=""
16174 LIBTOOL_CLEAN_TARGET=""
16175 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16190 # Check whether --enable-includes was given.
16191 if test "${enable_includes+set}" = set; then
16192 enableval=$enable_includes;
16193 if test x$enableval = xyes; then
16194 install_includes=yes
16202 if test x$use_libtool != xno -a x$install_includes = xyes; then
16203 INCLUDE_INSTALL_TARGET="install-includes"
16204 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16206 INCLUDE_INSTALL_TARGET=""
16207 INCLUDE_UNINSTALL_TARGET=""
16213 { $as_echo "$as_me:$LINENO: checking host system type" >&5
16214 $as_echo_n "checking host system type... " >&6; }
16215 if test "${ac_cv_host+set}" = set; then
16216 $as_echo_n "(cached) " >&6
16218 if test "x$host_alias" = x; then
16219 ac_cv_host=$ac_cv_build
16221 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16222 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16223 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16224 { (exit 1); exit 1; }; }
16228 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16229 $as_echo "$ac_cv_host" >&6; }
16230 case $ac_cv_host in
16232 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16233 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
16234 { (exit 1); exit 1; }; };;
16237 ac_save_IFS=$IFS; IFS='-'
16243 # Remember, the first character of IFS is used to create $*,
16244 # except with old shells:
16247 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16251 *cygwin* ) CYGWIN=yes;;
16255 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16261 HAVE_SUN_OS_FALSE='#'
16263 HAVE_SUN_OS_TRUE='#'
16266 cat >>confdefs.h <<\_ACEOF
16267 #define HAVE_SUN_OS 1
16275 HAVE_SUN_OS_FALSE='#'
16277 HAVE_SUN_OS_TRUE='#'
16282 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16288 HAVE_OSF1_OS_FALSE='#'
16290 HAVE_OSF1_OS_TRUE='#'
16291 HAVE_OSF1_OS_FALSE=
16293 cat >>confdefs.h <<\_ACEOF
16294 #define HAVE_OSF1_OS 1
16302 HAVE_OSF1_OS_FALSE='#'
16304 HAVE_OSF1_OS_TRUE='#'
16305 HAVE_OSF1_OS_FALSE=
16309 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16315 HAVE_AIX_OS_FALSE='#'
16317 HAVE_AIX_OS_TRUE='#'
16320 cat >>confdefs.h <<\_ACEOF
16321 #define HAVE_AIX_OS 1
16329 HAVE_AIX_OS_FALSE='#'
16331 HAVE_AIX_OS_TRUE='#'
16336 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16342 HAVE_HPUX_OS_FALSE='#'
16344 HAVE_HPUX_OS_TRUE='#'
16345 HAVE_HPUX_OS_FALSE=
16347 cat >>confdefs.h <<\_ACEOF
16348 #define HAVE_HPUX_OS 1
16356 HAVE_HPUX_OS_FALSE='#'
16358 HAVE_HPUX_OS_TRUE='#'
16359 HAVE_HPUX_OS_FALSE=
16363 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16368 HAVE_LINUX_OS_TRUE=
16369 HAVE_LINUX_OS_FALSE='#'
16371 HAVE_LINUX_OS_TRUE='#'
16372 HAVE_LINUX_OS_FALSE=
16374 cat >>confdefs.h <<\_ACEOF
16375 #define HAVE_LINUX_OS 1
16382 HAVE_LINUX_OS_TRUE=
16383 HAVE_LINUX_OS_FALSE='#'
16385 HAVE_LINUX_OS_TRUE='#'
16386 HAVE_LINUX_OS_FALSE=
16390 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16395 HAVE_FREEBSD_OS_TRUE=
16396 HAVE_FREEBSD_OS_FALSE='#'
16398 HAVE_FREEBSD_OS_TRUE='#'
16399 HAVE_FREEBSD_OS_FALSE=
16401 cat >>confdefs.h <<\_ACEOF
16402 #define HAVE_FREEBSD_OS 1
16409 HAVE_FREEBSD_OS_TRUE=
16410 HAVE_FREEBSD_OS_FALSE='#'
16412 HAVE_FREEBSD_OS_TRUE='#'
16413 HAVE_FREEBSD_OS_FALSE=
16417 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16422 HAVE_NETBSD_OS_TRUE=
16423 HAVE_NETBSD_OS_FALSE='#'
16425 HAVE_NETBSD_OS_TRUE='#'
16426 HAVE_NETBSD_OS_FALSE=
16428 cat >>confdefs.h <<\_ACEOF
16429 #define HAVE_NETBSD_OS 1
16436 HAVE_NETBSD_OS_TRUE=
16437 HAVE_NETBSD_OS_FALSE='#'
16439 HAVE_NETBSD_OS_TRUE='#'
16440 HAVE_NETBSD_OS_FALSE=
16444 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16449 HAVE_OPENBSD_OS_TRUE=
16450 HAVE_OPENBSD_OS_FALSE='#'
16452 HAVE_OPENBSD_OS_TRUE='#'
16453 HAVE_OPENBSD_OS_FALSE=
16455 cat >>confdefs.h <<\_ACEOF
16456 #define HAVE_OPENBSD_OS 1
16463 HAVE_OPENBSD_OS_TRUE=
16464 HAVE_OPENBSD_OS_FALSE='#'
16466 HAVE_OPENBSD_OS_TRUE='#'
16467 HAVE_OPENBSD_OS_FALSE=
16471 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16477 HAVE_BSDI_OS_FALSE='#'
16479 HAVE_BSDI_OS_TRUE='#'
16480 HAVE_BSDI_OS_FALSE=
16482 cat >>confdefs.h <<\_ACEOF
16483 #define HAVE_BSDI_OS 1
16491 HAVE_BSDI_OS_FALSE='#'
16493 HAVE_BSDI_OS_TRUE='#'
16494 HAVE_BSDI_OS_FALSE=
16498 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16504 HAVE_SGI_OS_FALSE='#'
16506 HAVE_SGI_OS_TRUE='#'
16509 cat >>confdefs.h <<\_ACEOF
16510 #define HAVE_SGI_OS 1
16518 HAVE_SGI_OS_FALSE='#'
16520 HAVE_SGI_OS_TRUE='#'
16525 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16531 HAVE_IRIX_OS_FALSE='#'
16533 HAVE_IRIX_OS_TRUE='#'
16534 HAVE_IRIX_OS_FALSE=
16536 cat >>confdefs.h <<\_ACEOF
16537 #define HAVE_IRIX_OS 1
16545 HAVE_IRIX_OS_FALSE='#'
16547 HAVE_IRIX_OS_TRUE='#'
16548 HAVE_IRIX_OS_FALSE=
16552 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16557 HAVE_DARWIN_OS_TRUE=
16558 HAVE_DARWIN_OS_FALSE='#'
16560 HAVE_DARWIN_OS_TRUE='#'
16561 HAVE_DARWIN_OS_FALSE=
16563 cat >>confdefs.h <<\_ACEOF
16564 #define HAVE_DARWIN_OS 1
16571 HAVE_DARWIN_OS_TRUE=
16572 HAVE_DARWIN_OS_FALSE='#'
16574 HAVE_DARWIN_OS_TRUE='#'
16575 HAVE_DARWIN_OS_FALSE=
16580 { $as_echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16581 $as_echo_n "checking for Operating System Distribution... " >&6; }
16582 if test "x$DISTNAME" != "x"
16584 echo "distname set to $DISTNAME"
16585 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16588 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16591 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16594 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16597 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16600 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16603 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16606 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16609 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16612 elif test -f /etc/SuSE-release
16615 elif test -d /etc/SuSEconfig
16618 elif test -f /etc/mandrake-release
16621 elif test -f /etc/whitebox-release
16624 elif test -f /etc/redhat-release
16627 elif test -f /etc/gentoo-release
16630 elif test -f /etc/debian_version
16633 elif test -f /etc/slackware-version
16636 elif test x$host_vendor = xapple
16639 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16642 elif test -f /etc/engarde-version
16645 elif test -f /etc/arch-release
16648 elif test "$CYGWIN" = yes
16651 cat >>confdefs.h <<\_ACEOF
16652 #define HAVE_CYGWIN 1
16658 { $as_echo "$as_me:$LINENO: result: done" >&5
16659 $as_echo "done" >&6; }
16662 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16663 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16665 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16666 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16667 $as_echo_n "(cached) " >&6
16669 cat >conftest.make <<\_ACEOF
16672 @echo '@@@%%%=$(MAKE)=@@@%%%'
16674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16675 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16676 *@@@%%%=?*=@@@%%%*)
16677 eval ac_cv_prog_make_${ac_make}_set=yes;;
16679 eval ac_cv_prog_make_${ac_make}_set=no;;
16681 rm -f conftest.make
16683 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16684 { $as_echo "$as_me:$LINENO: result: yes" >&5
16685 $as_echo "yes" >&6; }
16688 { $as_echo "$as_me:$LINENO: result: no" >&5
16689 $as_echo "no" >&6; }
16690 SET_MAKE="MAKE=${MAKE-make}"
16696 if test -n "$ac_aux_dir"; then
16697 case "$ac_aux_dir" in
16698 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16699 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16702 if test -z "$MKINSTALLDIRS"; then
16703 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16708 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16709 $as_echo_n "checking whether NLS is requested... " >&6; }
16710 # Check whether --enable-nls was given.
16711 if test "${enable_nls+set}" = set; then
16712 enableval=$enable_nls; USE_NLS=$enableval
16717 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16718 $as_echo "$USE_NLS" >&6; }
16725 # Prepare PATH_SEPARATOR.
16726 # The user is always right.
16727 if test "${PATH_SEPARATOR+set}" != set; then
16728 echo "#! /bin/sh" >conf$$.sh
16729 echo "exit 0" >>conf$$.sh
16731 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16739 # Find out how to test for executable files. Don't use a zero-byte file,
16740 # as systems may use methods other than mode bits to determine executability.
16741 cat >conf$$.file <<_ASEOF
16745 chmod +x conf$$.file
16746 if test -x conf$$.file >/dev/null 2>&1; then
16747 ac_executable_p="test -x"
16749 ac_executable_p="test -f"
16753 # Extract the first word of "msgfmt", so it can be a program name with args.
16754 set dummy msgfmt; ac_word=$2
16755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16756 $as_echo_n "checking for $ac_word... " >&6; }
16757 if test "${ac_cv_path_MSGFMT+set}" = set; then
16758 $as_echo_n "(cached) " >&6
16762 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16765 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16766 for ac_dir in $PATH; do
16768 test -z "$ac_dir" && ac_dir=.
16769 for ac_exec_ext in '' $ac_executable_extensions; do
16770 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16771 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16772 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16773 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16774 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16781 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16785 MSGFMT="$ac_cv_path_MSGFMT"
16786 if test "$MSGFMT" != ":"; then
16787 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16788 $as_echo "$MSGFMT" >&6; }
16790 { $as_echo "$as_me:$LINENO: result: no" >&5
16791 $as_echo "no" >&6; }
16794 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16795 set dummy gmsgfmt; ac_word=$2
16796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16797 $as_echo_n "checking for $ac_word... " >&6; }
16798 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16799 $as_echo_n "(cached) " >&6
16803 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16807 for as_dir in $PATH
16810 test -z "$as_dir" && as_dir=.
16811 for ac_exec_ext in '' $ac_executable_extensions; do
16812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16813 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16821 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16825 GMSGFMT=$ac_cv_path_GMSGFMT
16826 if test -n "$GMSGFMT"; then
16827 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16828 $as_echo "$GMSGFMT" >&6; }
16830 { $as_echo "$as_me:$LINENO: result: no" >&5
16831 $as_echo "no" >&6; }
16837 # Prepare PATH_SEPARATOR.
16838 # The user is always right.
16839 if test "${PATH_SEPARATOR+set}" != set; then
16840 echo "#! /bin/sh" >conf$$.sh
16841 echo "exit 0" >>conf$$.sh
16843 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16851 # Find out how to test for executable files. Don't use a zero-byte file,
16852 # as systems may use methods other than mode bits to determine executability.
16853 cat >conf$$.file <<_ASEOF
16857 chmod +x conf$$.file
16858 if test -x conf$$.file >/dev/null 2>&1; then
16859 ac_executable_p="test -x"
16861 ac_executable_p="test -f"
16865 # Extract the first word of "xgettext", so it can be a program name with args.
16866 set dummy xgettext; ac_word=$2
16867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16868 $as_echo_n "checking for $ac_word... " >&6; }
16869 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16870 $as_echo_n "(cached) " >&6
16872 case "$XGETTEXT" in
16874 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16877 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16878 for ac_dir in $PATH; do
16880 test -z "$ac_dir" && ac_dir=.
16881 for ac_exec_ext in '' $ac_executable_extensions; do
16882 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16883 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16884 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16885 (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
16886 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16893 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16897 XGETTEXT="$ac_cv_path_XGETTEXT"
16898 if test "$XGETTEXT" != ":"; then
16899 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16900 $as_echo "$XGETTEXT" >&6; }
16902 { $as_echo "$as_me:$LINENO: result: no" >&5
16903 $as_echo "no" >&6; }
16909 # Prepare PATH_SEPARATOR.
16910 # The user is always right.
16911 if test "${PATH_SEPARATOR+set}" != set; then
16912 echo "#! /bin/sh" >conf$$.sh
16913 echo "exit 0" >>conf$$.sh
16915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16923 # Find out how to test for executable files. Don't use a zero-byte file,
16924 # as systems may use methods other than mode bits to determine executability.
16925 cat >conf$$.file <<_ASEOF
16929 chmod +x conf$$.file
16930 if test -x conf$$.file >/dev/null 2>&1; then
16931 ac_executable_p="test -x"
16933 ac_executable_p="test -f"
16937 # Extract the first word of "msgmerge", so it can be a program name with args.
16938 set dummy msgmerge; ac_word=$2
16939 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16940 $as_echo_n "checking for $ac_word... " >&6; }
16941 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16942 $as_echo_n "(cached) " >&6
16944 case "$MSGMERGE" in
16946 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16949 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16950 for ac_dir in $PATH; do
16952 test -z "$ac_dir" && ac_dir=.
16953 for ac_exec_ext in '' $ac_executable_extensions; do
16954 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16955 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16956 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16957 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16964 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16968 MSGMERGE="$ac_cv_path_MSGMERGE"
16969 if test "$MSGMERGE" != ":"; then
16970 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16971 $as_echo "$MSGMERGE" >&6; }
16973 { $as_echo "$as_me:$LINENO: result: no" >&5
16974 $as_echo "no" >&6; }
16978 if test "$GMSGFMT" != ":"; then
16979 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16980 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16983 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16984 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16985 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16990 if test "$XGETTEXT" != ":"; then
16991 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16992 (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
16995 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16996 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17002 ac_config_commands="$ac_config_commands default-1"
17006 if test "X$prefix" = "XNONE"; then
17007 acl_final_prefix="$ac_default_prefix"
17009 acl_final_prefix="$prefix"
17011 if test "X$exec_prefix" = "XNONE"; then
17012 acl_final_exec_prefix='${prefix}'
17014 acl_final_exec_prefix="$exec_prefix"
17016 acl_save_prefix="$prefix"
17017 prefix="$acl_final_prefix"
17018 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17019 prefix="$acl_save_prefix"
17022 # Check whether --with-gnu-ld was given.
17023 if test "${with_gnu_ld+set}" = set; then
17024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17029 # Prepare PATH_SEPARATOR.
17030 # The user is always right.
17031 if test "${PATH_SEPARATOR+set}" != set; then
17032 echo "#! /bin/sh" >conf$$.sh
17033 echo "exit 0" >>conf$$.sh
17035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17043 if test "$GCC" = yes; then
17044 # Check if gcc -print-prog-name=ld gives a path.
17045 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
17046 $as_echo_n "checking for ld used by GCC... " >&6; }
17049 # gcc leaves a trailing carriage return which upsets mingw
17050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17055 # Accept absolute paths.
17056 [\\/]* | [A-Za-z]:[\\/]*)
17057 re_direlt='/[^/][^/]*/\.\./'
17058 # Canonicalize the path of ld
17059 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17060 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17061 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17063 test -z "$LD" && LD="$ac_prog"
17066 # If it fails, then pretend we aren't using GCC.
17070 # If it is relative, then search for the first ld in PATH.
17071 with_gnu_ld=unknown
17074 elif test "$with_gnu_ld" = yes; then
17075 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
17076 $as_echo_n "checking for GNU ld... " >&6; }
17078 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17079 $as_echo_n "checking for non-GNU ld... " >&6; }
17081 if test "${acl_cv_path_LD+set}" = set; then
17082 $as_echo_n "(cached) " >&6
17084 if test -z "$LD"; then
17085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17086 for ac_dir in $PATH; do
17087 test -z "$ac_dir" && ac_dir=.
17088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17089 acl_cv_path_LD="$ac_dir/$ac_prog"
17090 # Check to see if the program is GNU ld. I'd rather use --version,
17091 # but apparently some GNU ld's only accept -v.
17092 # Break only if it was the GNU/non-GNU ld that we prefer.
17093 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17094 *GNU* | *'with BFD'*)
17095 test "$with_gnu_ld" != no && break ;;
17097 test "$with_gnu_ld" != yes && break ;;
17103 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17107 LD="$acl_cv_path_LD"
17108 if test -n "$LD"; then
17109 { $as_echo "$as_me:$LINENO: result: $LD" >&5
17110 $as_echo "$LD" >&6; }
17112 { $as_echo "$as_me:$LINENO: result: no" >&5
17113 $as_echo "no" >&6; }
17115 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17116 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17117 { (exit 1); exit 1; }; }
17118 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17120 if test "${acl_cv_prog_gnu_ld+set}" = set; then
17121 $as_echo_n "(cached) " >&6
17123 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17124 case `$LD -v 2>&1 </dev/null` in
17125 *GNU* | *'with BFD'*)
17126 acl_cv_prog_gnu_ld=yes ;;
17128 acl_cv_prog_gnu_ld=no ;;
17131 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
17132 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17133 with_gnu_ld=$acl_cv_prog_gnu_ld
17138 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
17139 $as_echo_n "checking for shared library run path origin... " >&6; }
17140 if test "${acl_cv_rpath+set}" = set; then
17141 $as_echo_n "(cached) " >&6
17144 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17145 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17147 rm -f ./conftest.sh
17151 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
17152 $as_echo "$acl_cv_rpath" >&6; }
17154 libext="$acl_cv_libext"
17155 shlibext="$acl_cv_shlibext"
17156 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17157 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17158 hardcode_direct="$acl_cv_hardcode_direct"
17159 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17160 # Check whether --enable-rpath was given.
17161 if test "${enable_rpath+set}" = set; then
17162 enableval=$enable_rpath; :
17176 acl_save_prefix="$prefix"
17177 prefix="$acl_final_prefix"
17178 acl_save_exec_prefix="$exec_prefix"
17179 exec_prefix="$acl_final_exec_prefix"
17181 eval additional_includedir=\"$includedir\"
17182 eval additional_libdir=\"$libdir\"
17184 exec_prefix="$acl_save_exec_prefix"
17185 prefix="$acl_save_prefix"
17188 # Check whether --with-libiconv-prefix was given.
17189 if test "${with_libiconv_prefix+set}" = set; then
17190 withval=$with_libiconv_prefix;
17191 if test "X$withval" = "Xno"; then
17194 if test "X$withval" = "X"; then
17196 acl_save_prefix="$prefix"
17197 prefix="$acl_final_prefix"
17198 acl_save_exec_prefix="$exec_prefix"
17199 exec_prefix="$acl_final_exec_prefix"
17201 eval additional_includedir=\"$includedir\"
17202 eval additional_libdir=\"$libdir\"
17204 exec_prefix="$acl_save_exec_prefix"
17205 prefix="$acl_save_prefix"
17208 additional_includedir="$withval/include"
17209 additional_libdir="$withval/lib"
17220 names_already_handled=
17221 names_next_round='iconv '
17222 while test -n "$names_next_round"; do
17223 names_this_round="$names_next_round"
17225 for name in $names_this_round; do
17227 for n in $names_already_handled; do
17228 if test "$n" = "$name"; then
17229 already_handled=yes
17233 if test -z "$already_handled"; then
17234 names_already_handled="$names_already_handled $name"
17235 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17236 eval value=\"\$HAVE_LIB$uppername\"
17237 if test -n "$value"; then
17238 if test "$value" = yes; then
17239 eval value=\"\$LIB$uppername\"
17240 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17241 eval value=\"\$LTLIB$uppername\"
17242 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17251 if test $use_additional = yes; then
17252 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17253 found_dir="$additional_libdir"
17254 found_so="$additional_libdir/lib$name.$shlibext"
17255 if test -f "$additional_libdir/lib$name.la"; then
17256 found_la="$additional_libdir/lib$name.la"
17259 if test -f "$additional_libdir/lib$name.$libext"; then
17260 found_dir="$additional_libdir"
17261 found_a="$additional_libdir/lib$name.$libext"
17262 if test -f "$additional_libdir/lib$name.la"; then
17263 found_la="$additional_libdir/lib$name.la"
17268 if test "X$found_dir" = "X"; then
17269 for x in $LDFLAGS $LTLIBICONV; do
17271 acl_save_prefix="$prefix"
17272 prefix="$acl_final_prefix"
17273 acl_save_exec_prefix="$exec_prefix"
17274 exec_prefix="$acl_final_exec_prefix"
17276 exec_prefix="$acl_save_exec_prefix"
17277 prefix="$acl_save_prefix"
17281 dir=`echo "X$x" | sed -e 's/^X-L//'`
17282 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17284 found_so="$dir/lib$name.$shlibext"
17285 if test -f "$dir/lib$name.la"; then
17286 found_la="$dir/lib$name.la"
17289 if test -f "$dir/lib$name.$libext"; then
17291 found_a="$dir/lib$name.$libext"
17292 if test -f "$dir/lib$name.la"; then
17293 found_la="$dir/lib$name.la"
17299 if test "X$found_dir" != "X"; then
17304 if test "X$found_dir" != "X"; then
17305 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17306 if test "X$found_so" != "X"; then
17307 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17308 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17311 for x in $ltrpathdirs; do
17312 if test "X$x" = "X$found_dir"; then
17317 if test -z "$haveit"; then
17318 ltrpathdirs="$ltrpathdirs $found_dir"
17320 if test "$hardcode_direct" = yes; then
17321 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17323 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17324 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17326 for x in $rpathdirs; do
17327 if test "X$x" = "X$found_dir"; then
17332 if test -z "$haveit"; then
17333 rpathdirs="$rpathdirs $found_dir"
17337 for x in $LDFLAGS $LIBICONV; do
17339 acl_save_prefix="$prefix"
17340 prefix="$acl_final_prefix"
17341 acl_save_exec_prefix="$exec_prefix"
17342 exec_prefix="$acl_final_exec_prefix"
17344 exec_prefix="$acl_save_exec_prefix"
17345 prefix="$acl_save_prefix"
17347 if test "X$x" = "X-L$found_dir"; then
17352 if test -z "$haveit"; then
17353 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17355 if test "$hardcode_minus_L" != no; then
17356 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17358 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17364 if test "X$found_a" != "X"; then
17365 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17367 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17370 additional_includedir=
17371 case "$found_dir" in
17373 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17374 additional_includedir="$basedir/include"
17377 if test "X$additional_includedir" != "X"; then
17378 if test "X$additional_includedir" != "X/usr/include"; then
17380 if test "X$additional_includedir" = "X/usr/local/include"; then
17381 if test -n "$GCC"; then
17383 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17387 if test -z "$haveit"; then
17388 for x in $CPPFLAGS $INCICONV; do
17390 acl_save_prefix="$prefix"
17391 prefix="$acl_final_prefix"
17392 acl_save_exec_prefix="$exec_prefix"
17393 exec_prefix="$acl_final_exec_prefix"
17395 exec_prefix="$acl_save_exec_prefix"
17396 prefix="$acl_save_prefix"
17398 if test "X$x" = "X-I$additional_includedir"; then
17403 if test -z "$haveit"; then
17404 if test -d "$additional_includedir"; then
17405 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17411 if test -n "$found_la"; then
17412 save_libdir="$libdir"
17413 case "$found_la" in
17414 */* | *\\*) . "$found_la" ;;
17415 *) . "./$found_la" ;;
17417 libdir="$save_libdir"
17418 for dep in $dependency_libs; do
17421 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17422 if test "X$additional_libdir" != "X/usr/lib"; then
17424 if test "X$additional_libdir" = "X/usr/local/lib"; then
17425 if test -n "$GCC"; then
17427 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17431 if test -z "$haveit"; then
17433 for x in $LDFLAGS $LIBICONV; do
17435 acl_save_prefix="$prefix"
17436 prefix="$acl_final_prefix"
17437 acl_save_exec_prefix="$exec_prefix"
17438 exec_prefix="$acl_final_exec_prefix"
17440 exec_prefix="$acl_save_exec_prefix"
17441 prefix="$acl_save_prefix"
17443 if test "X$x" = "X-L$additional_libdir"; then
17448 if test -z "$haveit"; then
17449 if test -d "$additional_libdir"; then
17450 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17454 for x in $LDFLAGS $LTLIBICONV; do
17456 acl_save_prefix="$prefix"
17457 prefix="$acl_final_prefix"
17458 acl_save_exec_prefix="$exec_prefix"
17459 exec_prefix="$acl_final_exec_prefix"
17461 exec_prefix="$acl_save_exec_prefix"
17462 prefix="$acl_save_prefix"
17464 if test "X$x" = "X-L$additional_libdir"; then
17469 if test -z "$haveit"; then
17470 if test -d "$additional_libdir"; then
17471 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17478 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17479 if test "$enable_rpath" != no; then
17481 for x in $rpathdirs; do
17482 if test "X$x" = "X$dir"; then
17487 if test -z "$haveit"; then
17488 rpathdirs="$rpathdirs $dir"
17491 for x in $ltrpathdirs; do
17492 if test "X$x" = "X$dir"; then
17497 if test -z "$haveit"; then
17498 ltrpathdirs="$ltrpathdirs $dir"
17503 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17506 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17509 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17510 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17516 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17517 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17523 if test "X$rpathdirs" != "X"; then
17524 if test -n "$hardcode_libdir_separator"; then
17526 for found_dir in $rpathdirs; do
17527 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17529 acl_save_libdir="$libdir"
17531 eval flag=\"$hardcode_libdir_flag_spec\"
17532 libdir="$acl_save_libdir"
17533 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17535 for found_dir in $rpathdirs; do
17536 acl_save_libdir="$libdir"
17537 libdir="$found_dir"
17538 eval flag=\"$hardcode_libdir_flag_spec\"
17539 libdir="$acl_save_libdir"
17540 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17544 if test "X$ltrpathdirs" != "X"; then
17545 for found_dir in $ltrpathdirs; do
17546 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17567 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17568 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17569 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17570 $as_echo_n "(cached) " >&6
17572 gt_save_CPPFLAGS="$CPPFLAGS"
17573 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17574 gt_save_LIBS="$LIBS"
17575 LIBS="$LIBS -framework CoreFoundation"
17576 cat >conftest.$ac_ext <<_ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 #include <CFPreferences.h>
17586 CFPreferencesCopyAppValue(NULL, NULL)
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17598 $as_echo "$ac_try_echo") >&5
17599 (eval "$ac_link") 2>conftest.er1
17601 grep -v '^ *+' conftest.er1 >conftest.err
17603 cat conftest.err >&5
17604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } && {
17606 test -z "$ac_c_werror_flag" ||
17607 test ! -s conftest.err
17608 } && test -s conftest$ac_exeext && {
17609 test "$cross_compiling" = yes ||
17610 $as_test_x conftest$ac_exeext
17612 gt_cv_func_CFPreferencesCopyAppValue=yes
17614 $as_echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 gt_cv_func_CFPreferencesCopyAppValue=no
17620 rm -rf conftest.dSYM
17621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17622 conftest$ac_exeext conftest.$ac_ext
17623 CPPFLAGS="$gt_save_CPPFLAGS"
17624 LIBS="$gt_save_LIBS"
17626 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17627 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17628 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17630 cat >>confdefs.h <<\_ACEOF
17631 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17635 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17636 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17637 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17638 $as_echo_n "(cached) " >&6
17640 gt_save_CPPFLAGS="$CPPFLAGS"
17641 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17642 gt_save_LIBS="$LIBS"
17643 LIBS="$LIBS -framework CoreFoundation"
17644 cat >conftest.$ac_ext <<_ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17650 #include <CFLocale.h>
17654 CFLocaleCopyCurrent();
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17666 $as_echo "$ac_try_echo") >&5
17667 (eval "$ac_link") 2>conftest.er1
17669 grep -v '^ *+' conftest.er1 >conftest.err
17671 cat conftest.err >&5
17672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } && {
17674 test -z "$ac_c_werror_flag" ||
17675 test ! -s conftest.err
17676 } && test -s conftest$ac_exeext && {
17677 test "$cross_compiling" = yes ||
17678 $as_test_x conftest$ac_exeext
17680 gt_cv_func_CFLocaleCopyCurrent=yes
17682 $as_echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 gt_cv_func_CFLocaleCopyCurrent=no
17688 rm -rf conftest.dSYM
17689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17690 conftest$ac_exeext conftest.$ac_ext
17691 CPPFLAGS="$gt_save_CPPFLAGS"
17692 LIBS="$gt_save_LIBS"
17694 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17695 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17696 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17698 cat >>confdefs.h <<\_ACEOF
17699 #define HAVE_CFLOCALECOPYCURRENT 1
17704 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17705 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17711 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17712 $as_echo_n "checking whether NLS is requested... " >&6; }
17713 # Check whether --enable-nls was given.
17714 if test "${enable_nls+set}" = set; then
17715 enableval=$enable_nls; USE_NLS=$enableval
17720 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17721 $as_echo "$USE_NLS" >&6; }
17730 if test "$USE_NLS" = "yes"; then
17731 gt_use_preinstalled_gnugettext=no
17738 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17739 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17740 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17741 $as_echo_n "(cached) " >&6
17743 cat >conftest.$ac_ext <<_ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 #include <libintl.h>
17750 extern int _nl_msg_cat_cntr;
17751 extern int *_nl_domain_bindings;
17755 bindtextdomain ("", "");
17756 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (ac_try="$ac_link"
17763 case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17768 $as_echo "$ac_try_echo") >&5
17769 (eval "$ac_link") 2>conftest.er1
17771 grep -v '^ *+' conftest.er1 >conftest.err
17773 cat conftest.err >&5
17774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } && {
17776 test -z "$ac_c_werror_flag" ||
17777 test ! -s conftest.err
17778 } && test -s conftest$ac_exeext && {
17779 test "$cross_compiling" = yes ||
17780 $as_test_x conftest$ac_exeext
17782 gt_cv_func_gnugettext1_libc=yes
17784 $as_echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17787 gt_cv_func_gnugettext1_libc=no
17790 rm -rf conftest.dSYM
17791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17792 conftest$ac_exeext conftest.$ac_ext
17794 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17795 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17797 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17803 am_save_CPPFLAGS="$CPPFLAGS"
17805 for element in $INCICONV; do
17807 for x in $CPPFLAGS; do
17809 acl_save_prefix="$prefix"
17810 prefix="$acl_final_prefix"
17811 acl_save_exec_prefix="$exec_prefix"
17812 exec_prefix="$acl_final_exec_prefix"
17814 exec_prefix="$acl_save_exec_prefix"
17815 prefix="$acl_save_prefix"
17817 if test "X$x" = "X$element"; then
17822 if test -z "$haveit"; then
17823 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17828 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
17829 $as_echo_n "checking for iconv... " >&6; }
17830 if test "${am_cv_func_iconv+set}" = set; then
17831 $as_echo_n "(cached) " >&6
17834 am_cv_func_iconv="no, consider installing GNU libiconv"
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 #include <stdlib.h>
17847 iconv_t cd = iconv_open("","");
17848 iconv(cd,NULL,NULL,NULL,NULL);
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (ac_try="$ac_link"
17856 case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17861 $as_echo "$ac_try_echo") >&5
17862 (eval "$ac_link") 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } && {
17869 test -z "$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 } && test -s conftest$ac_exeext && {
17872 test "$cross_compiling" = yes ||
17873 $as_test_x conftest$ac_exeext
17875 am_cv_func_iconv=yes
17877 $as_echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17883 rm -rf conftest.dSYM
17884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885 conftest$ac_exeext conftest.$ac_ext
17886 if test "$am_cv_func_iconv" != yes; then
17887 am_save_LIBS="$LIBS"
17888 LIBS="$LIBS $LIBICONV"
17889 cat >conftest.$ac_ext <<_ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895 #include <stdlib.h>
17900 iconv_t cd = iconv_open("","");
17901 iconv(cd,NULL,NULL,NULL,NULL);
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (ac_try="$ac_link"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17914 $as_echo "$ac_try_echo") >&5
17915 (eval "$ac_link") 2>conftest.er1
17917 grep -v '^ *+' conftest.er1 >conftest.err
17919 cat conftest.err >&5
17920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest$ac_exeext && {
17925 test "$cross_compiling" = yes ||
17926 $as_test_x conftest$ac_exeext
17928 am_cv_lib_iconv=yes
17929 am_cv_func_iconv=yes
17931 $as_echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17937 rm -rf conftest.dSYM
17938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17939 conftest$ac_exeext conftest.$ac_ext
17940 LIBS="$am_save_LIBS"
17944 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17945 $as_echo "$am_cv_func_iconv" >&6; }
17946 if test "$am_cv_func_iconv" = yes; then
17948 cat >>confdefs.h <<\_ACEOF
17949 #define HAVE_ICONV 1
17953 if test "$am_cv_lib_iconv" = yes; then
17954 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17955 $as_echo_n "checking how to link with libiconv... " >&6; }
17956 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
17957 $as_echo "$LIBICONV" >&6; }
17959 CPPFLAGS="$am_save_CPPFLAGS"
17971 acl_save_prefix="$prefix"
17972 prefix="$acl_final_prefix"
17973 acl_save_exec_prefix="$exec_prefix"
17974 exec_prefix="$acl_final_exec_prefix"
17976 eval additional_includedir=\"$includedir\"
17977 eval additional_libdir=\"$libdir\"
17979 exec_prefix="$acl_save_exec_prefix"
17980 prefix="$acl_save_prefix"
17983 # Check whether --with-libintl-prefix was given.
17984 if test "${with_libintl_prefix+set}" = set; then
17985 withval=$with_libintl_prefix;
17986 if test "X$withval" = "Xno"; then
17989 if test "X$withval" = "X"; then
17991 acl_save_prefix="$prefix"
17992 prefix="$acl_final_prefix"
17993 acl_save_exec_prefix="$exec_prefix"
17994 exec_prefix="$acl_final_exec_prefix"
17996 eval additional_includedir=\"$includedir\"
17997 eval additional_libdir=\"$libdir\"
17999 exec_prefix="$acl_save_exec_prefix"
18000 prefix="$acl_save_prefix"
18003 additional_includedir="$withval/include"
18004 additional_libdir="$withval/lib"
18015 names_already_handled=
18016 names_next_round='intl '
18017 while test -n "$names_next_round"; do
18018 names_this_round="$names_next_round"
18020 for name in $names_this_round; do
18022 for n in $names_already_handled; do
18023 if test "$n" = "$name"; then
18024 already_handled=yes
18028 if test -z "$already_handled"; then
18029 names_already_handled="$names_already_handled $name"
18030 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18031 eval value=\"\$HAVE_LIB$uppername\"
18032 if test -n "$value"; then
18033 if test "$value" = yes; then
18034 eval value=\"\$LIB$uppername\"
18035 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18036 eval value=\"\$LTLIB$uppername\"
18037 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18046 if test $use_additional = yes; then
18047 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18048 found_dir="$additional_libdir"
18049 found_so="$additional_libdir/lib$name.$shlibext"
18050 if test -f "$additional_libdir/lib$name.la"; then
18051 found_la="$additional_libdir/lib$name.la"
18054 if test -f "$additional_libdir/lib$name.$libext"; then
18055 found_dir="$additional_libdir"
18056 found_a="$additional_libdir/lib$name.$libext"
18057 if test -f "$additional_libdir/lib$name.la"; then
18058 found_la="$additional_libdir/lib$name.la"
18063 if test "X$found_dir" = "X"; then
18064 for x in $LDFLAGS $LTLIBINTL; do
18066 acl_save_prefix="$prefix"
18067 prefix="$acl_final_prefix"
18068 acl_save_exec_prefix="$exec_prefix"
18069 exec_prefix="$acl_final_exec_prefix"
18071 exec_prefix="$acl_save_exec_prefix"
18072 prefix="$acl_save_prefix"
18076 dir=`echo "X$x" | sed -e 's/^X-L//'`
18077 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18079 found_so="$dir/lib$name.$shlibext"
18080 if test -f "$dir/lib$name.la"; then
18081 found_la="$dir/lib$name.la"
18084 if test -f "$dir/lib$name.$libext"; then
18086 found_a="$dir/lib$name.$libext"
18087 if test -f "$dir/lib$name.la"; then
18088 found_la="$dir/lib$name.la"
18094 if test "X$found_dir" != "X"; then
18099 if test "X$found_dir" != "X"; then
18100 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18101 if test "X$found_so" != "X"; then
18102 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18103 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18106 for x in $ltrpathdirs; do
18107 if test "X$x" = "X$found_dir"; then
18112 if test -z "$haveit"; then
18113 ltrpathdirs="$ltrpathdirs $found_dir"
18115 if test "$hardcode_direct" = yes; then
18116 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18118 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18121 for x in $rpathdirs; do
18122 if test "X$x" = "X$found_dir"; then
18127 if test -z "$haveit"; then
18128 rpathdirs="$rpathdirs $found_dir"
18132 for x in $LDFLAGS $LIBINTL; do
18134 acl_save_prefix="$prefix"
18135 prefix="$acl_final_prefix"
18136 acl_save_exec_prefix="$exec_prefix"
18137 exec_prefix="$acl_final_exec_prefix"
18139 exec_prefix="$acl_save_exec_prefix"
18140 prefix="$acl_save_prefix"
18142 if test "X$x" = "X-L$found_dir"; then
18147 if test -z "$haveit"; then
18148 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18150 if test "$hardcode_minus_L" != no; then
18151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18153 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18159 if test "X$found_a" != "X"; then
18160 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18162 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18165 additional_includedir=
18166 case "$found_dir" in
18168 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18169 additional_includedir="$basedir/include"
18172 if test "X$additional_includedir" != "X"; then
18173 if test "X$additional_includedir" != "X/usr/include"; then
18175 if test "X$additional_includedir" = "X/usr/local/include"; then
18176 if test -n "$GCC"; then
18178 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18182 if test -z "$haveit"; then
18183 for x in $CPPFLAGS $INCINTL; do
18185 acl_save_prefix="$prefix"
18186 prefix="$acl_final_prefix"
18187 acl_save_exec_prefix="$exec_prefix"
18188 exec_prefix="$acl_final_exec_prefix"
18190 exec_prefix="$acl_save_exec_prefix"
18191 prefix="$acl_save_prefix"
18193 if test "X$x" = "X-I$additional_includedir"; then
18198 if test -z "$haveit"; then
18199 if test -d "$additional_includedir"; then
18200 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18206 if test -n "$found_la"; then
18207 save_libdir="$libdir"
18208 case "$found_la" in
18209 */* | *\\*) . "$found_la" ;;
18210 *) . "./$found_la" ;;
18212 libdir="$save_libdir"
18213 for dep in $dependency_libs; do
18216 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18217 if test "X$additional_libdir" != "X/usr/lib"; then
18219 if test "X$additional_libdir" = "X/usr/local/lib"; then
18220 if test -n "$GCC"; then
18222 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18226 if test -z "$haveit"; then
18228 for x in $LDFLAGS $LIBINTL; do
18230 acl_save_prefix="$prefix"
18231 prefix="$acl_final_prefix"
18232 acl_save_exec_prefix="$exec_prefix"
18233 exec_prefix="$acl_final_exec_prefix"
18235 exec_prefix="$acl_save_exec_prefix"
18236 prefix="$acl_save_prefix"
18238 if test "X$x" = "X-L$additional_libdir"; then
18243 if test -z "$haveit"; then
18244 if test -d "$additional_libdir"; then
18245 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18249 for x in $LDFLAGS $LTLIBINTL; do
18251 acl_save_prefix="$prefix"
18252 prefix="$acl_final_prefix"
18253 acl_save_exec_prefix="$exec_prefix"
18254 exec_prefix="$acl_final_exec_prefix"
18256 exec_prefix="$acl_save_exec_prefix"
18257 prefix="$acl_save_prefix"
18259 if test "X$x" = "X-L$additional_libdir"; then
18264 if test -z "$haveit"; then
18265 if test -d "$additional_libdir"; then
18266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18273 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18274 if test "$enable_rpath" != no; then
18276 for x in $rpathdirs; do
18277 if test "X$x" = "X$dir"; then
18282 if test -z "$haveit"; then
18283 rpathdirs="$rpathdirs $dir"
18286 for x in $ltrpathdirs; do
18287 if test "X$x" = "X$dir"; then
18292 if test -z "$haveit"; then
18293 ltrpathdirs="$ltrpathdirs $dir"
18298 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18301 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18304 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18305 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18311 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18312 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18318 if test "X$rpathdirs" != "X"; then
18319 if test -n "$hardcode_libdir_separator"; then
18321 for found_dir in $rpathdirs; do
18322 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18324 acl_save_libdir="$libdir"
18326 eval flag=\"$hardcode_libdir_flag_spec\"
18327 libdir="$acl_save_libdir"
18328 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18330 for found_dir in $rpathdirs; do
18331 acl_save_libdir="$libdir"
18332 libdir="$found_dir"
18333 eval flag=\"$hardcode_libdir_flag_spec\"
18334 libdir="$acl_save_libdir"
18335 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18339 if test "X$ltrpathdirs" != "X"; then
18340 for found_dir in $ltrpathdirs; do
18341 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18345 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18346 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18347 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18348 $as_echo_n "(cached) " >&6
18350 gt_save_CPPFLAGS="$CPPFLAGS"
18351 CPPFLAGS="$CPPFLAGS $INCINTL"
18352 gt_save_LIBS="$LIBS"
18353 LIBS="$LIBS $LIBINTL"
18354 cat >conftest.$ac_ext <<_ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 #include <libintl.h>
18361 extern int _nl_msg_cat_cntr;
18366 const char *_nl_expand_alias (const char *);
18370 bindtextdomain ("", "");
18371 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18376 rm -f conftest.$ac_objext conftest$ac_exeext
18377 if { (ac_try="$ac_link"
18378 case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18383 $as_echo "$ac_try_echo") >&5
18384 (eval "$ac_link") 2>conftest.er1
18386 grep -v '^ *+' conftest.er1 >conftest.err
18388 cat conftest.err >&5
18389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } && {
18391 test -z "$ac_c_werror_flag" ||
18392 test ! -s conftest.err
18393 } && test -s conftest$ac_exeext && {
18394 test "$cross_compiling" = yes ||
18395 $as_test_x conftest$ac_exeext
18397 gt_cv_func_gnugettext1_libintl=yes
18399 $as_echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 gt_cv_func_gnugettext1_libintl=no
18405 rm -rf conftest.dSYM
18406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18407 conftest$ac_exeext conftest.$ac_ext
18408 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18409 LIBS="$LIBS $LIBICONV"
18410 cat >conftest.$ac_ext <<_ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18416 #include <libintl.h>
18417 extern int _nl_msg_cat_cntr;
18422 const char *_nl_expand_alias (const char *);
18426 bindtextdomain ("", "");
18427 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18439 $as_echo "$ac_try_echo") >&5
18440 (eval "$ac_link") 2>conftest.er1
18442 grep -v '^ *+' conftest.er1 >conftest.err
18444 cat conftest.err >&5
18445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } && {
18447 test -z "$ac_c_werror_flag" ||
18448 test ! -s conftest.err
18449 } && test -s conftest$ac_exeext && {
18450 test "$cross_compiling" = yes ||
18451 $as_test_x conftest$ac_exeext
18453 LIBINTL="$LIBINTL $LIBICONV"
18454 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18455 gt_cv_func_gnugettext1_libintl=yes
18458 $as_echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18464 rm -rf conftest.dSYM
18465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466 conftest$ac_exeext conftest.$ac_ext
18468 CPPFLAGS="$gt_save_CPPFLAGS"
18469 LIBS="$gt_save_LIBS"
18471 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18472 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18475 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18476 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18477 && test "$PACKAGE" != gettext-runtime \
18478 && test "$PACKAGE" != gettext-tools; }; then
18479 gt_use_preinstalled_gnugettext=yes
18488 if test -n "$INTL_MACOSX_LIBS"; then
18489 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18490 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18491 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18492 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18496 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18497 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18499 cat >>confdefs.h <<\_ACEOF
18500 #define ENABLE_NLS 1
18508 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
18509 $as_echo_n "checking whether to use NLS... " >&6; }
18510 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
18511 $as_echo "$USE_NLS" >&6; }
18512 if test "$USE_NLS" = "yes"; then
18513 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18514 $as_echo_n "checking where the gettext function comes from... " >&6; }
18515 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18516 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18517 gt_source="external libintl"
18522 gt_source="included intl directory"
18524 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
18525 $as_echo "$gt_source" >&6; }
18528 if test "$USE_NLS" = "yes"; then
18530 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18531 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18532 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
18533 $as_echo_n "checking how to link with libintl... " >&6; }
18534 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
18535 $as_echo "$LIBINTL" >&6; }
18537 for element in $INCINTL; do
18539 for x in $CPPFLAGS; do
18541 acl_save_prefix="$prefix"
18542 prefix="$acl_final_prefix"
18543 acl_save_exec_prefix="$exec_prefix"
18544 exec_prefix="$acl_final_exec_prefix"
18546 exec_prefix="$acl_save_exec_prefix"
18547 prefix="$acl_save_prefix"
18549 if test "X$x" = "X$element"; then
18554 if test -z "$haveit"; then
18555 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE_GETTEXT 1
18567 cat >>confdefs.h <<\_ACEOF
18568 #define HAVE_DCGETTEXT 1
18578 INTLLIBS="$LIBINTL"
18586 os_name=`uname -s 2>/dev/null`
18587 if test x${prefix} = xNONE ; then
18588 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18589 sysconfdir=/etc/bacula
18592 if test `eval echo ${libdir}` = NONE/lib ; then
18595 os_processor=`uname -p 2>/dev/null`
18596 case ${os_processor} in
18611 if test `eval echo ${includedir}` = NONE/include ; then
18612 includedir=/usr/include
18615 if test `eval echo ${datarootdir}` = NONE/share ; then
18616 datarootdir=/usr/share
18621 if test x${exec_prefix} = xNONE ; then
18622 exec_prefix=${prefix}
18625 sysconfdir=`eval echo ${sysconfdir}`
18626 datarootdir=`eval echo ${datarootdir}`
18627 docdir=`eval echo ${docdir}`
18628 htmldir=`eval echo ${htmldir}`
18629 libdir=`eval echo ${libdir}`
18630 includedir=`eval echo ${includedir}`
18631 localedir=`eval echo ${datarootdir}/locale`
18632 cat >>confdefs.h <<_ACEOF
18633 #define SYSCONFDIR "$sysconfdir"
18636 cat >>confdefs.h <<_ACEOF
18637 #define LOCALEDIR "$localedir"
18641 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18642 sbindir=${exec_prefix}/sbin
18644 sbindir=`eval echo ${sbindir}`
18646 if test x$mandir = x'${prefix}/man' ; then
18647 mandir=/usr/share/man
18650 if test x$htmldir = x${docdir} ; then
18651 htmldir=`eval echo ${docdir}bacula/html`
18654 if test x$docdir = x'/usr/share/doc/' ; then
18655 docdir=`eval echo ${docdir}bacula`
18659 for ac_prog in msgfmt
18661 # Extract the first word of "$ac_prog", so it can be a program name with args.
18662 set dummy $ac_prog; ac_word=$2
18663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18664 $as_echo_n "checking for $ac_word... " >&6; }
18665 if test "${ac_cv_path_MSGFMT+set}" = set; then
18666 $as_echo_n "(cached) " >&6
18670 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18674 for as_dir in $PATH
18677 test -z "$as_dir" && as_dir=.
18678 for ac_exec_ext in '' $ac_executable_extensions; do
18679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18680 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18691 MSGFMT=$ac_cv_path_MSGFMT
18692 if test -n "$MSGFMT"; then
18693 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
18694 $as_echo "$MSGFMT" >&6; }
18696 { $as_echo "$as_me:$LINENO: result: no" >&5
18697 $as_echo "no" >&6; }
18701 test -n "$MSGFMT" && break
18703 test -n "$MSGFMT" || MSGFMT="no"
18705 if test "$MSGFMT" = "no"
18707 echo 'msgfmt program not found, disabling NLS !'
18709 USE_INCLUDED_LIBINTL=no
18712 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18713 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18714 if test "${ac_cv_gnu_library_2+set}" = set; then
18715 $as_echo_n "(cached) " >&6
18717 cat >conftest.$ac_ext <<_ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18724 #include <features.h>
18725 #ifdef __GNU_LIBRARY__
18726 #if (__GLIBC__ >= 2)
18732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18733 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18734 ac_cv_gnu_library_2=yes
18736 ac_cv_gnu_library_2=no
18743 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18744 $as_echo "$ac_cv_gnu_library_2" >&6; }
18746 GLIBC2="$ac_cv_gnu_library_2"
18749 if test -n "$ac_tool_prefix"; then
18750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18753 $as_echo_n "checking for $ac_word... " >&6; }
18754 if test "${ac_cv_prog_RANLIB+set}" = set; then
18755 $as_echo_n "(cached) " >&6
18757 if test -n "$RANLIB"; then
18758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18761 for as_dir in $PATH
18764 test -z "$as_dir" && as_dir=.
18765 for ac_exec_ext in '' $ac_executable_extensions; do
18766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18777 RANLIB=$ac_cv_prog_RANLIB
18778 if test -n "$RANLIB"; then
18779 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
18780 $as_echo "$RANLIB" >&6; }
18782 { $as_echo "$as_me:$LINENO: result: no" >&5
18783 $as_echo "no" >&6; }
18788 if test -z "$ac_cv_prog_RANLIB"; then
18789 ac_ct_RANLIB=$RANLIB
18790 # Extract the first word of "ranlib", so it can be a program name with args.
18791 set dummy ranlib; ac_word=$2
18792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18793 $as_echo_n "checking for $ac_word... " >&6; }
18794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18795 $as_echo_n "(cached) " >&6
18797 if test -n "$ac_ct_RANLIB"; then
18798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18801 for as_dir in $PATH
18804 test -z "$as_dir" && as_dir=.
18805 for ac_exec_ext in '' $ac_executable_extensions; do
18806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18807 ac_cv_prog_ac_ct_RANLIB="ranlib"
18808 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18818 if test -n "$ac_ct_RANLIB"; then
18819 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18820 $as_echo "$ac_ct_RANLIB" >&6; }
18822 { $as_echo "$as_me:$LINENO: result: no" >&5
18823 $as_echo "no" >&6; }
18826 if test "x$ac_ct_RANLIB" = x; then
18829 case $cross_compiling:$ac_tool_warned in
18831 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18833 ac_tool_warned=yes ;;
18835 RANLIB=$ac_ct_RANLIB
18838 RANLIB="$ac_cv_prog_RANLIB"
18842 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18843 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18844 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18845 $as_echo_n "(cached) " >&6
18847 ac_check_lib_save_LIBS=$LIBS
18848 LIBS="-lcposix $LIBS"
18849 cat >conftest.$ac_ext <<_ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18856 /* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18866 return strerror ();
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18878 $as_echo "$ac_try_echo") >&5
18879 (eval "$ac_link") 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } && {
18886 test -z "$ac_c_werror_flag" ||
18887 test ! -s conftest.err
18888 } && test -s conftest$ac_exeext && {
18889 test "$cross_compiling" = yes ||
18890 $as_test_x conftest$ac_exeext
18892 ac_cv_lib_cposix_strerror=yes
18894 $as_echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18897 ac_cv_lib_cposix_strerror=no
18900 rm -rf conftest.dSYM
18901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18902 conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18906 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18907 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
18908 LIBS="$LIBS -lcposix"
18913 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18914 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18915 if test "${ac_cv_c_const+set}" = set; then
18916 $as_echo_n "(cached) " >&6
18918 cat >conftest.$ac_ext <<_ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18928 /* FIXME: Include the comments suggested by Paul. */
18929 #ifndef __cplusplus
18930 /* Ultrix mips cc rejects this. */
18931 typedef int charset[2];
18933 /* SunOS 4.1.1 cc rejects this. */
18934 char const *const *pcpcc;
18936 /* NEC SVR4.0.2 mips cc rejects this. */
18937 struct point {int x, y;};
18938 static struct point const zero = {0,0};
18939 /* AIX XL C 1.02.0.0 rejects this.
18940 It does not let you subtract one const X* pointer from another in
18941 an arm of an if-expression whose if-part is not a constant
18943 const char *g = "string";
18944 pcpcc = &g + (g ? g-g : 0);
18945 /* HPUX 7.0 cc rejects these. */
18947 ppc = (char**) pcpcc;
18948 pcpcc = (char const *const *) ppc;
18949 { /* SCO 3.2v4 cc rejects this. */
18951 char const *s = 0 ? (char *) 0 : (char const *) 0;
18956 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18957 int x[] = {25, 17};
18958 const int *foo = &x[0];
18961 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18962 typedef const int *iptr;
18966 { /* AIX XL C 1.02.0.0 rejects this saying
18967 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18968 struct s { int j; const int *ap[3]; };
18969 struct s *b; b->j = 5;
18971 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18972 const int foo = 10;
18973 if (!foo) return 0;
18975 return !cs[0] && !zero.x;
18982 rm -f conftest.$ac_objext
18983 if { (ac_try="$ac_compile"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18989 $as_echo "$ac_try_echo") >&5
18990 (eval "$ac_compile") 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } && {
18997 test -z "$ac_c_werror_flag" ||
18998 test ! -s conftest.err
18999 } && test -s conftest.$ac_objext; then
19002 $as_echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19010 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19011 $as_echo "$ac_cv_c_const" >&6; }
19012 if test $ac_cv_c_const = no; then
19014 cat >>confdefs.h <<\_ACEOF
19021 { $as_echo "$as_me:$LINENO: checking for signed" >&5
19022 $as_echo_n "checking for signed... " >&6; }
19023 if test "${bh_cv_c_signed+set}" = set; then
19024 $as_echo_n "(cached) " >&6
19026 cat >conftest.$ac_ext <<_ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19041 rm -f conftest.$ac_objext
19042 if { (ac_try="$ac_compile"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19048 $as_echo "$ac_try_echo") >&5
19049 (eval "$ac_compile") 2>conftest.er1
19051 grep -v '^ *+' conftest.er1 >conftest.err
19053 cat conftest.err >&5
19054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } && {
19056 test -z "$ac_c_werror_flag" ||
19057 test ! -s conftest.err
19058 } && test -s conftest.$ac_objext; then
19061 $as_echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19069 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
19070 $as_echo "$bh_cv_c_signed" >&6; }
19071 if test $bh_cv_c_signed = no; then
19073 cat >>confdefs.h <<\_ACEOF
19074 #define signed /**/
19079 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19080 $as_echo_n "checking for inline... " >&6; }
19081 if test "${ac_cv_c_inline+set}" = set; then
19082 $as_echo_n "(cached) " >&6
19085 for ac_kw in inline __inline__ __inline; do
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19092 #ifndef __cplusplus
19094 static $ac_kw foo_t static_foo () {return 0; }
19095 $ac_kw foo_t foo () {return 0; }
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19106 $as_echo "$ac_try_echo") >&5
19107 (eval "$ac_compile") 2>conftest.er1
19109 grep -v '^ *+' conftest.er1 >conftest.err
19111 cat conftest.err >&5
19112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } && {
19114 test -z "$ac_c_werror_flag" ||
19115 test ! -s conftest.err
19116 } && test -s conftest.$ac_objext; then
19117 ac_cv_c_inline=$ac_kw
19119 $as_echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 test "$ac_cv_c_inline" != no && break
19130 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19131 $as_echo "$ac_cv_c_inline" >&6; }
19134 case $ac_cv_c_inline in
19137 case $ac_cv_c_inline in
19139 *) ac_val=$ac_cv_c_inline;;
19141 cat >>confdefs.h <<_ACEOF
19142 #ifndef __cplusplus
19143 #define inline $ac_val
19149 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19150 $as_echo_n "checking for off_t... " >&6; }
19151 if test "${ac_cv_type_off_t+set}" = set; then
19152 $as_echo_n "(cached) " >&6
19154 ac_cv_type_off_t=no
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 $ac_includes_default
19165 if (sizeof (off_t))
19171 rm -f conftest.$ac_objext
19172 if { (ac_try="$ac_compile"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19178 $as_echo "$ac_try_echo") >&5
19179 (eval "$ac_compile") 2>conftest.er1
19181 grep -v '^ *+' conftest.er1 >conftest.err
19183 cat conftest.err >&5
19184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } && {
19186 test -z "$ac_c_werror_flag" ||
19187 test ! -s conftest.err
19188 } && test -s conftest.$ac_objext; then
19189 cat >conftest.$ac_ext <<_ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19195 $ac_includes_default
19199 if (sizeof ((off_t)))
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19212 $as_echo "$ac_try_echo") >&5
19213 (eval "$ac_compile") 2>conftest.er1
19215 grep -v '^ *+' conftest.er1 >conftest.err
19217 cat conftest.err >&5
19218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } && {
19220 test -z "$ac_c_werror_flag" ||
19221 test ! -s conftest.err
19222 } && test -s conftest.$ac_objext; then
19225 $as_echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_cv_type_off_t=yes
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 $as_echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19242 $as_echo "$ac_cv_type_off_t" >&6; }
19243 if test "x$ac_cv_type_off_t" = x""yes; then
19247 cat >>confdefs.h <<_ACEOF
19248 #define off_t long int
19253 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19254 $as_echo_n "checking for size_t... " >&6; }
19255 if test "${ac_cv_type_size_t+set}" = set; then
19256 $as_echo_n "(cached) " >&6
19258 ac_cv_type_size_t=no
19259 cat >conftest.$ac_ext <<_ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19265 $ac_includes_default
19269 if (sizeof (size_t))
19275 rm -f conftest.$ac_objext
19276 if { (ac_try="$ac_compile"
19277 case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19282 $as_echo "$ac_try_echo") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19285 grep -v '^ *+' conftest.er1 >conftest.err
19287 cat conftest.err >&5
19288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_c_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest.$ac_objext; then
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 $ac_includes_default
19303 if (sizeof ((size_t)))
19309 rm -f conftest.$ac_objext
19310 if { (ac_try="$ac_compile"
19311 case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19316 $as_echo "$ac_try_echo") >&5
19317 (eval "$ac_compile") 2>conftest.er1
19319 grep -v '^ *+' conftest.er1 >conftest.err
19321 cat conftest.err >&5
19322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } && {
19324 test -z "$ac_c_werror_flag" ||
19325 test ! -s conftest.err
19326 } && test -s conftest.$ac_objext; then
19329 $as_echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ac_cv_type_size_t=yes
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337 $as_echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19346 $as_echo "$ac_cv_type_size_t" >&6; }
19347 if test "x$ac_cv_type_size_t" = x""yes; then
19351 cat >>confdefs.h <<_ACEOF
19352 #define size_t unsigned int
19358 { $as_echo "$as_me:$LINENO: checking for long long" >&5
19359 $as_echo_n "checking for long long... " >&6; }
19360 if test "${ac_cv_type_long_long+set}" = set; then
19361 $as_echo_n "(cached) " >&6
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19369 long long ll = 1LL; int i = 63;
19373 long long llmax = (long long) -1;
19374 return ll << i | ll >> i | llmax / ll | llmax % ll;
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (ac_try="$ac_link"
19381 case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19386 $as_echo "$ac_try_echo") >&5
19387 (eval "$ac_link") 2>conftest.er1
19389 grep -v '^ *+' conftest.er1 >conftest.err
19391 cat conftest.err >&5
19392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } && {
19394 test -z "$ac_c_werror_flag" ||
19395 test ! -s conftest.err
19396 } && test -s conftest$ac_exeext && {
19397 test "$cross_compiling" = yes ||
19398 $as_test_x conftest$ac_exeext
19400 ac_cv_type_long_long=yes
19402 $as_echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19405 ac_cv_type_long_long=no
19408 rm -rf conftest.dSYM
19409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19410 conftest$ac_exeext conftest.$ac_ext
19412 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19413 $as_echo "$ac_cv_type_long_long" >&6; }
19414 if test $ac_cv_type_long_long = yes; then
19416 cat >>confdefs.h <<\_ACEOF
19417 #define HAVE_LONG_LONG 1
19423 { $as_echo "$as_me:$LINENO: checking for long double" >&5
19424 $as_echo_n "checking for long double... " >&6; }
19425 if test "${gt_cv_c_long_double+set}" = set; then
19426 $as_echo_n "(cached) " >&6
19428 if test "$GCC" = yes; then
19429 gt_cv_c_long_double=yes
19431 cat >conftest.$ac_ext <<_ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19438 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19439 long double foo = 0.0;
19440 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19441 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19451 rm -f conftest.$ac_objext
19452 if { (ac_try="$ac_compile"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19458 $as_echo "$ac_try_echo") >&5
19459 (eval "$ac_compile") 2>conftest.er1
19461 grep -v '^ *+' conftest.er1 >conftest.err
19463 cat conftest.err >&5
19464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } && {
19466 test -z "$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 } && test -s conftest.$ac_objext; then
19469 gt_cv_c_long_double=yes
19471 $as_echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 gt_cv_c_long_double=no
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19481 $as_echo "$gt_cv_c_long_double" >&6; }
19482 if test $gt_cv_c_long_double = yes; then
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_LONG_DOUBLE 1
19491 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
19492 $as_echo_n "checking for wchar_t... " >&6; }
19493 if test "${gt_cv_c_wchar_t+set}" = set; then
19494 $as_echo_n "(cached) " >&6
19496 cat >conftest.$ac_ext <<_ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 #include <stddef.h>
19503 wchar_t foo = (wchar_t)'\0';
19512 rm -f conftest.$ac_objext
19513 if { (ac_try="$ac_compile"
19514 case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19519 $as_echo "$ac_try_echo") >&5
19520 (eval "$ac_compile") 2>conftest.er1
19522 grep -v '^ *+' conftest.er1 >conftest.err
19524 cat conftest.err >&5
19525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } && {
19527 test -z "$ac_c_werror_flag" ||
19528 test ! -s conftest.err
19529 } && test -s conftest.$ac_objext; then
19530 gt_cv_c_wchar_t=yes
19532 $as_echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19540 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19541 $as_echo "$gt_cv_c_wchar_t" >&6; }
19542 if test $gt_cv_c_wchar_t = yes; then
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE_WCHAR_T 1
19551 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
19552 $as_echo_n "checking for wint_t... " >&6; }
19553 if test "${gt_cv_c_wint_t+set}" = set; then
19554 $as_echo_n "(cached) " >&6
19556 cat >conftest.$ac_ext <<_ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19563 wint_t foo = (wchar_t)'\0';
19572 rm -f conftest.$ac_objext
19573 if { (ac_try="$ac_compile"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19579 $as_echo "$ac_try_echo") >&5
19580 (eval "$ac_compile") 2>conftest.er1
19582 grep -v '^ *+' conftest.er1 >conftest.err
19584 cat conftest.err >&5
19585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } && {
19587 test -z "$ac_c_werror_flag" ||
19588 test ! -s conftest.err
19589 } && test -s conftest.$ac_objext; then
19592 $as_echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19600 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19601 $as_echo "$gt_cv_c_wint_t" >&6; }
19602 if test $gt_cv_c_wint_t = yes; then
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE_WINT_T 1
19611 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
19612 $as_echo_n "checking for inttypes.h... " >&6; }
19613 if test "${gl_cv_header_inttypes_h+set}" = set; then
19614 $as_echo_n "(cached) " >&6
19616 cat >conftest.$ac_ext <<_ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <sys/types.h>
19623 #include <inttypes.h>
19627 uintmax_t i = (uintmax_t) -1;
19632 rm -f conftest.$ac_objext
19633 if { (ac_try="$ac_compile"
19634 case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19639 $as_echo "$ac_try_echo") >&5
19640 (eval "$ac_compile") 2>conftest.er1
19642 grep -v '^ *+' conftest.er1 >conftest.err
19644 cat conftest.err >&5
19645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } && {
19647 test -z "$ac_c_werror_flag" ||
19648 test ! -s conftest.err
19649 } && test -s conftest.$ac_objext; then
19650 gl_cv_header_inttypes_h=yes
19652 $as_echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 gl_cv_header_inttypes_h=no
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19660 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19661 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19662 if test $gl_cv_header_inttypes_h = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19671 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
19672 $as_echo_n "checking for stdint.h... " >&6; }
19673 if test "${gl_cv_header_stdint_h+set}" = set; then
19674 $as_echo_n "(cached) " >&6
19676 cat >conftest.$ac_ext <<_ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include <sys/types.h>
19683 #include <stdint.h>
19687 uintmax_t i = (uintmax_t) -1;
19692 rm -f conftest.$ac_objext
19693 if { (ac_try="$ac_compile"
19694 case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19699 $as_echo "$ac_try_echo") >&5
19700 (eval "$ac_compile") 2>conftest.er1
19702 grep -v '^ *+' conftest.er1 >conftest.err
19704 cat conftest.err >&5
19705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } && {
19707 test -z "$ac_c_werror_flag" ||
19708 test ! -s conftest.err
19709 } && test -s conftest.$ac_objext; then
19710 gl_cv_header_stdint_h=yes
19712 $as_echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 gl_cv_header_stdint_h=no
19718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19721 $as_echo "$gl_cv_header_stdint_h" >&6; }
19722 if test $gl_cv_header_stdint_h = yes; then
19724 cat >>confdefs.h <<_ACEOF
19725 #define HAVE_STDINT_H_WITH_UINTMAX 1
19733 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
19734 $as_echo_n "checking for intmax_t... " >&6; }
19735 if test "${gt_cv_c_intmax_t+set}" = set; then
19736 $as_echo_n "(cached) " >&6
19738 cat >conftest.$ac_ext <<_ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19745 #include <stddef.h>
19746 #include <stdlib.h>
19747 #if HAVE_STDINT_H_WITH_UINTMAX
19748 #include <stdint.h>
19750 #if HAVE_INTTYPES_H_WITH_UINTMAX
19751 #include <inttypes.h>
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19769 $as_echo "$ac_try_echo") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest.$ac_objext; then
19780 gt_cv_c_intmax_t=yes
19782 $as_echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 gt_cv_c_intmax_t=no
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19791 $as_echo "$gt_cv_c_intmax_t" >&6; }
19792 if test $gt_cv_c_intmax_t = yes; then
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_INTMAX_T 1
19802 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19803 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19804 if test "${gt_cv_func_printf_posix+set}" = set; then
19805 $as_echo_n "(cached) " >&6
19808 if test "$cross_compiling" = yes; then
19810 cat >conftest.$ac_ext <<_ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19817 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19823 $EGREP "notposix" >/dev/null 2>&1; then
19824 gt_cv_func_printf_posix="guessing no"
19826 gt_cv_func_printf_posix="guessing yes"
19832 cat >conftest.$ac_ext <<_ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h. */
19840 #include <string.h>
19841 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19842 dollar expansion (possibly an autoconf bug). */
19843 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19844 static char buf[100];
19847 sprintf (buf, format, 33, 55);
19848 return (strcmp (buf, "55 33") != 0);
19851 rm -f conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19858 $as_echo "$ac_try_echo") >&5
19859 (eval "$ac_link") 2>&5
19861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19863 { (case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19868 $as_echo "$ac_try_echo") >&5
19869 (eval "$ac_try") 2>&5
19871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 gt_cv_func_printf_posix=yes
19875 $as_echo "$as_me: program exited with status $ac_status" >&5
19876 $as_echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ( exit $ac_status )
19880 gt_cv_func_printf_posix=no
19882 rm -rf conftest.dSYM
19883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19889 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19890 $as_echo "$gt_cv_func_printf_posix" >&6; }
19891 case $gt_cv_func_printf_posix in
19894 cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_POSIX_PRINTF 1
19901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19902 # for constant arguments. Useless!
19903 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19904 $as_echo_n "checking for working alloca.h... " >&6; }
19905 if test "${ac_cv_working_alloca_h+set}" = set; then
19906 $as_echo_n "(cached) " >&6
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914 #include <alloca.h>
19918 char *p = (char *) alloca (2 * sizeof (int));
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19931 $as_echo "$ac_try_echo") >&5
19932 (eval "$ac_link") 2>conftest.er1
19934 grep -v '^ *+' conftest.er1 >conftest.err
19936 cat conftest.err >&5
19937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } && {
19939 test -z "$ac_c_werror_flag" ||
19940 test ! -s conftest.err
19941 } && test -s conftest$ac_exeext && {
19942 test "$cross_compiling" = yes ||
19943 $as_test_x conftest$ac_exeext
19945 ac_cv_working_alloca_h=yes
19947 $as_echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_cv_working_alloca_h=no
19953 rm -rf conftest.dSYM
19954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19955 conftest$ac_exeext conftest.$ac_ext
19957 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19958 $as_echo "$ac_cv_working_alloca_h" >&6; }
19959 if test $ac_cv_working_alloca_h = yes; then
19961 cat >>confdefs.h <<\_ACEOF
19962 #define HAVE_ALLOCA_H 1
19967 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19968 $as_echo_n "checking for alloca... " >&6; }
19969 if test "${ac_cv_func_alloca_works+set}" = set; then
19970 $as_echo_n "(cached) " >&6
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19979 # define alloca __builtin_alloca
19982 # include <malloc.h>
19983 # define alloca _alloca
19985 # ifdef HAVE_ALLOCA_H
19986 # include <alloca.h>
19991 # ifndef alloca /* predefined by HP cc +Olibcalls */
20002 char *p = (char *) alloca (1);
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (ac_try="$ac_link"
20010 case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20015 $as_echo "$ac_try_echo") >&5
20016 (eval "$ac_link") 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest$ac_exeext && {
20026 test "$cross_compiling" = yes ||
20027 $as_test_x conftest$ac_exeext
20029 ac_cv_func_alloca_works=yes
20031 $as_echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20034 ac_cv_func_alloca_works=no
20037 rm -rf conftest.dSYM
20038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20039 conftest$ac_exeext conftest.$ac_ext
20041 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20042 $as_echo "$ac_cv_func_alloca_works" >&6; }
20044 if test $ac_cv_func_alloca_works = yes; then
20046 cat >>confdefs.h <<\_ACEOF
20047 #define HAVE_ALLOCA 1
20051 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20052 # that cause trouble. Some versions do not even contain alloca or
20053 # contain a buggy version. If you still want to use their alloca,
20054 # use ar to extract alloca.o from them instead of compiling alloca.c.
20056 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20058 cat >>confdefs.h <<\_ACEOF
20063 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20064 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20065 if test "${ac_cv_os_cray+set}" = set; then
20066 $as_echo_n "(cached) " >&6
20068 cat >conftest.$ac_ext <<_ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 #if defined CRAY && ! defined CRAY2
20081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20082 $EGREP "webecray" >/dev/null 2>&1; then
20090 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20091 $as_echo "$ac_cv_os_cray" >&6; }
20092 if test $ac_cv_os_cray = yes; then
20093 for ac_func in _getb67 GETB67 getb67; do
20094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20095 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20096 $as_echo_n "checking for $ac_func... " >&6; }
20097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20098 $as_echo_n "(cached) " >&6
20100 cat >conftest.$ac_ext <<_ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20108 #define $ac_func innocuous_$ac_func
20110 /* System header to define __stub macros and hopefully few prototypes,
20111 which can conflict with char $ac_func (); below.
20112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20113 <limits.h> exists even on freestanding compilers. */
20116 # include <limits.h>
20118 # include <assert.h>
20123 /* Override any GCC internal prototype to avoid an error.
20124 Use char because int might match the return type of a GCC
20125 builtin and then its argument prototype would still apply. */
20130 /* The GNU C library defines this for functions which it implements
20131 to always fail with ENOSYS. Some functions are actually named
20132 something starting with __ and the normal name is an alias. */
20133 #if defined __stub_$ac_func || defined __stub___$ac_func
20140 return $ac_func ();
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (ac_try="$ac_link"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20152 $as_echo "$ac_try_echo") >&5
20153 (eval "$ac_link") 2>conftest.er1
20155 grep -v '^ *+' conftest.er1 >conftest.err
20157 cat conftest.err >&5
20158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest$ac_exeext && {
20163 test "$cross_compiling" = yes ||
20164 $as_test_x conftest$ac_exeext
20166 eval "$as_ac_var=yes"
20168 $as_echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 eval "$as_ac_var=no"
20174 rm -rf conftest.dSYM
20175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20176 conftest$ac_exeext conftest.$ac_ext
20178 ac_res=`eval 'as_val=${'$as_ac_var'}
20179 $as_echo "$as_val"'`
20180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20181 $as_echo "$ac_res" >&6; }
20182 as_val=`eval 'as_val=${'$as_ac_var'}
20183 $as_echo "$as_val"'`
20184 if test "x$as_val" = x""yes; then
20186 cat >>confdefs.h <<_ACEOF
20187 #define CRAY_STACKSEG_END $ac_func
20196 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20197 $as_echo_n "checking stack direction for C alloca... " >&6; }
20198 if test "${ac_cv_c_stack_direction+set}" = set; then
20199 $as_echo_n "(cached) " >&6
20201 if test "$cross_compiling" = yes; then
20202 ac_cv_c_stack_direction=0
20204 cat >conftest.$ac_ext <<_ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 $ac_includes_default
20212 find_stack_direction ()
20214 static char *addr = 0;
20219 return find_stack_direction ();
20222 return (&dummy > addr) ? 1 : -1;
20228 return find_stack_direction () < 0;
20231 rm -f conftest$ac_exeext
20232 if { (ac_try="$ac_link"
20233 case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20238 $as_echo "$ac_try_echo") >&5
20239 (eval "$ac_link") 2>&5
20241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20248 $as_echo "$ac_try_echo") >&5
20249 (eval "$ac_try") 2>&5
20251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
20253 ac_cv_c_stack_direction=1
20255 $as_echo "$as_me: program exited with status $ac_status" >&5
20256 $as_echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ( exit $ac_status )
20260 ac_cv_c_stack_direction=-1
20262 rm -rf conftest.dSYM
20263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20268 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20269 $as_echo "$ac_cv_c_stack_direction" >&6; }
20271 cat >>confdefs.h <<_ACEOF
20272 #define STACK_DIRECTION $ac_cv_c_stack_direction
20280 for ac_header in stdlib.h unistd.h
20282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20285 $as_echo_n "checking for $ac_header... " >&6; }
20286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20287 $as_echo_n "(cached) " >&6
20289 ac_res=`eval 'as_val=${'$as_ac_Header'}
20290 $as_echo "$as_val"'`
20291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20292 $as_echo "$ac_res" >&6; }
20294 # Is the header compilable?
20295 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20296 $as_echo_n "checking $ac_header usability... " >&6; }
20297 cat >conftest.$ac_ext <<_ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 $ac_includes_default
20304 #include <$ac_header>
20306 rm -f conftest.$ac_objext
20307 if { (ac_try="$ac_compile"
20308 case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20313 $as_echo "$ac_try_echo") >&5
20314 (eval "$ac_compile") 2>conftest.er1
20316 grep -v '^ *+' conftest.er1 >conftest.err
20318 cat conftest.err >&5
20319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && {
20321 test -z "$ac_c_werror_flag" ||
20322 test ! -s conftest.err
20323 } && test -s conftest.$ac_objext; then
20324 ac_header_compiler=yes
20326 $as_echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20329 ac_header_compiler=no
20332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20334 $as_echo "$ac_header_compiler" >&6; }
20336 # Is the header present?
20337 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20338 $as_echo_n "checking $ac_header presence... " >&6; }
20339 cat >conftest.$ac_ext <<_ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <$ac_header>
20347 if { (ac_try="$ac_cpp conftest.$ac_ext"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20353 $as_echo "$ac_try_echo") >&5
20354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20356 grep -v '^ *+' conftest.er1 >conftest.err
20358 cat conftest.err >&5
20359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } >/dev/null && {
20361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20362 test ! -s conftest.err
20364 ac_header_preproc=yes
20366 $as_echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 ac_header_preproc=no
20372 rm -f conftest.err conftest.$ac_ext
20373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20374 $as_echo "$ac_header_preproc" >&6; }
20376 # So? What about this header?
20377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20380 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20383 ac_header_preproc=yes
20386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20387 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20389 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20391 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20393 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20397 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20401 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20402 $as_echo_n "checking for $ac_header... " >&6; }
20403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20404 $as_echo_n "(cached) " >&6
20406 eval "$as_ac_Header=\$ac_header_preproc"
20408 ac_res=`eval 'as_val=${'$as_ac_Header'}
20409 $as_echo "$as_val"'`
20410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20411 $as_echo "$ac_res" >&6; }
20414 as_val=`eval 'as_val=${'$as_ac_Header'}
20415 $as_echo "$as_val"'`
20416 if test "x$as_val" = x""yes; then
20417 cat >>confdefs.h <<_ACEOF
20418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20426 for ac_func in getpagesize
20428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20429 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20430 $as_echo_n "checking for $ac_func... " >&6; }
20431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20432 $as_echo_n "(cached) " >&6
20434 cat >conftest.$ac_ext <<_ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20442 #define $ac_func innocuous_$ac_func
20444 /* System header to define __stub macros and hopefully few prototypes,
20445 which can conflict with char $ac_func (); below.
20446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20447 <limits.h> exists even on freestanding compilers. */
20450 # include <limits.h>
20452 # include <assert.h>
20457 /* Override any GCC internal prototype to avoid an error.
20458 Use char because int might match the return type of a GCC
20459 builtin and then its argument prototype would still apply. */
20464 /* The GNU C library defines this for functions which it implements
20465 to always fail with ENOSYS. Some functions are actually named
20466 something starting with __ and the normal name is an alias. */
20467 #if defined __stub_$ac_func || defined __stub___$ac_func
20474 return $ac_func ();
20479 rm -f conftest.$ac_objext conftest$ac_exeext
20480 if { (ac_try="$ac_link"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20486 $as_echo "$ac_try_echo") >&5
20487 (eval "$ac_link") 2>conftest.er1
20489 grep -v '^ *+' conftest.er1 >conftest.err
20491 cat conftest.err >&5
20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } && {
20494 test -z "$ac_c_werror_flag" ||
20495 test ! -s conftest.err
20496 } && test -s conftest$ac_exeext && {
20497 test "$cross_compiling" = yes ||
20498 $as_test_x conftest$ac_exeext
20500 eval "$as_ac_var=yes"
20502 $as_echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 eval "$as_ac_var=no"
20508 rm -rf conftest.dSYM
20509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20510 conftest$ac_exeext conftest.$ac_ext
20512 ac_res=`eval 'as_val=${'$as_ac_var'}
20513 $as_echo "$as_val"'`
20514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20515 $as_echo "$ac_res" >&6; }
20516 as_val=`eval 'as_val=${'$as_ac_var'}
20517 $as_echo "$as_val"'`
20518 if test "x$as_val" = x""yes; then
20519 cat >>confdefs.h <<_ACEOF
20520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20526 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
20527 $as_echo_n "checking for working mmap... " >&6; }
20528 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20529 $as_echo_n "(cached) " >&6
20531 if test "$cross_compiling" = yes; then
20532 ac_cv_func_mmap_fixed_mapped=no
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 $ac_includes_default
20541 /* malloc might have been renamed as rpl_malloc. */
20544 /* Thanks to Mike Haertel and Jim Avera for this test.
20545 Here is a matrix of mmap possibilities:
20546 mmap private not fixed
20547 mmap private fixed at somewhere currently unmapped
20548 mmap private fixed at somewhere already mapped
20549 mmap shared not fixed
20550 mmap shared fixed at somewhere currently unmapped
20551 mmap shared fixed at somewhere already mapped
20552 For private mappings, we should verify that changes cannot be read()
20553 back from the file, nor mmap's back from the file at a different
20554 address. (There have been systems where private was not correctly
20555 implemented like the infamous i386 svr4.0, and systems where the
20556 VM page cache was not coherent with the file system buffer cache
20557 like early versions of FreeBSD and possibly contemporary NetBSD.)
20558 For shared mappings, we should conversely verify that changes get
20559 propagated back to all the places they're supposed to be.
20561 Grep wants private fixed already mapped.
20562 The main things grep needs to know about mmap are:
20563 * does it exist and is it safe to write into the mmap'd area
20564 * how to use it (BSD variants) */
20567 #include <sys/mman.h>
20569 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20573 /* This mess was copied from the GNU getpagesize.h. */
20574 #ifndef HAVE_GETPAGESIZE
20575 /* Assume that all systems that can run configure have sys/param.h. */
20576 # ifndef HAVE_SYS_PARAM_H
20577 # define HAVE_SYS_PARAM_H 1
20580 # ifdef _SC_PAGESIZE
20581 # define getpagesize() sysconf(_SC_PAGESIZE)
20582 # else /* no _SC_PAGESIZE */
20583 # ifdef HAVE_SYS_PARAM_H
20584 # include <sys/param.h>
20585 # ifdef EXEC_PAGESIZE
20586 # define getpagesize() EXEC_PAGESIZE
20587 # else /* no EXEC_PAGESIZE */
20589 # define getpagesize() NBPG * CLSIZE
20592 # endif /* no CLSIZE */
20593 # else /* no NBPG */
20595 # define getpagesize() NBPC
20596 # else /* no NBPC */
20598 # define getpagesize() PAGESIZE
20599 # endif /* PAGESIZE */
20600 # endif /* no NBPC */
20601 # endif /* no NBPG */
20602 # endif /* no EXEC_PAGESIZE */
20603 # else /* no HAVE_SYS_PARAM_H */
20604 # define getpagesize() 8192 /* punt totally */
20605 # endif /* no HAVE_SYS_PARAM_H */
20606 # endif /* no _SC_PAGESIZE */
20608 #endif /* no HAVE_GETPAGESIZE */
20613 char *data, *data2, *data3;
20617 pagesize = getpagesize ();
20619 /* First, make a file with some known garbage in it. */
20620 data = (char *) malloc (pagesize);
20623 for (i = 0; i < pagesize; ++i)
20624 *(data + i) = rand ();
20626 fd = creat ("conftest.mmap", 0600);
20629 if (write (fd, data, pagesize) != pagesize)
20633 /* Next, try to mmap the file at a fixed address which already has
20634 something else allocated at it. If we can, also make sure that
20635 we see the same garbage. */
20636 fd = open ("conftest.mmap", O_RDWR);
20639 data2 = (char *) malloc (2 * pagesize);
20642 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20643 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20644 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20646 for (i = 0; i < pagesize; ++i)
20647 if (*(data + i) != *(data2 + i))
20650 /* Finally, make sure that changes to the mapped area do not
20651 percolate back to the file as seen by read(). (This is a bug on
20652 some variants of i386 svr4.0.) */
20653 for (i = 0; i < pagesize; ++i)
20654 *(data2 + i) = *(data2 + i) + 1;
20655 data3 = (char *) malloc (pagesize);
20658 if (read (fd, data3, pagesize) != pagesize)
20660 for (i = 0; i < pagesize; ++i)
20661 if (*(data + i) != *(data3 + i))
20667 rm -f conftest$ac_exeext
20668 if { (ac_try="$ac_link"
20669 case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20674 $as_echo "$ac_try_echo") >&5
20675 (eval "$ac_link") 2>&5
20677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20679 { (case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20684 $as_echo "$ac_try_echo") >&5
20685 (eval "$ac_try") 2>&5
20687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_cv_func_mmap_fixed_mapped=yes
20691 $as_echo "$as_me: program exited with status $ac_status" >&5
20692 $as_echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ( exit $ac_status )
20696 ac_cv_func_mmap_fixed_mapped=no
20698 rm -rf conftest.dSYM
20699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20704 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20705 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20706 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20708 cat >>confdefs.h <<\_ACEOF
20709 #define HAVE_MMAP 1
20713 rm -f conftest.mmap
20716 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20717 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20718 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20719 $as_echo_n "(cached) " >&6
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20728 #include <features.h>
20729 #ifdef __GNU_LIBRARY__
20730 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20737 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20738 ac_cv_gnu_library_2_1=yes
20740 ac_cv_gnu_library_2_1=no
20747 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20748 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20750 GLIBC21="$ac_cv_gnu_library_2_1"
20755 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20756 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20757 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20758 $as_echo_n "(cached) " >&6
20761 if test "$cross_compiling" = yes; then
20763 # Guess based on the CPU.
20764 case "$host_cpu" in
20765 alpha* | i3456786 | m68k | s390*)
20766 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20768 gt_cv_int_divbyzero_sigfpe="guessing no";;
20772 cat >conftest.$ac_ext <<_ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20779 #include <stdlib.h>
20780 #include <signal.h>
20784 sigfpe_handler (int sig)
20786 sigfpe_handler (sig) int sig;
20789 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20790 exit (sig != SIGFPE);
20800 signal (SIGFPE, sigfpe_handler);
20801 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20802 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20803 signal (SIGTRAP, sigfpe_handler);
20805 /* Linux/SPARC yields signal SIGILL. */
20806 #if defined (__sparc__) && defined (__linux__)
20807 signal (SIGILL, sigfpe_handler);
20816 rm -f conftest$ac_exeext
20817 if { (ac_try="$ac_link"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20823 $as_echo "$ac_try_echo") >&5
20824 (eval "$ac_link") 2>&5
20826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20828 { (case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20833 $as_echo "$ac_try_echo") >&5
20834 (eval "$ac_try") 2>&5
20836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 gt_cv_int_divbyzero_sigfpe=yes
20840 $as_echo "$as_me: program exited with status $ac_status" >&5
20841 $as_echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20844 ( exit $ac_status )
20845 gt_cv_int_divbyzero_sigfpe=no
20847 rm -rf conftest.dSYM
20848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20854 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20855 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20856 case "$gt_cv_int_divbyzero_sigfpe" in
20861 cat >>confdefs.h <<_ACEOF
20862 #define INTDIV0_RAISES_SIGFPE $value
20867 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20868 $as_echo_n "checking for unsigned long long... " >&6; }
20869 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20870 $as_echo_n "(cached) " >&6
20872 cat >conftest.$ac_ext <<_ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 unsigned long long ull = 1ULL; int i = 63;
20882 unsigned long long ullmax = (unsigned long long) -1;
20883 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20888 rm -f conftest.$ac_objext conftest$ac_exeext
20889 if { (ac_try="$ac_link"
20890 case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20895 $as_echo "$ac_try_echo") >&5
20896 (eval "$ac_link") 2>conftest.er1
20898 grep -v '^ *+' conftest.er1 >conftest.err
20900 cat conftest.err >&5
20901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && {
20903 test -z "$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 } && test -s conftest$ac_exeext && {
20906 test "$cross_compiling" = yes ||
20907 $as_test_x conftest$ac_exeext
20909 ac_cv_type_unsigned_long_long=yes
20911 $as_echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_cv_type_unsigned_long_long=no
20917 rm -rf conftest.dSYM
20918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20919 conftest$ac_exeext conftest.$ac_ext
20921 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20922 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20923 if test $ac_cv_type_unsigned_long_long = yes; then
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_UNSIGNED_LONG_LONG 1
20934 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20936 test $ac_cv_type_unsigned_long_long = yes \
20937 && ac_type='unsigned long long' \
20938 || ac_type='unsigned long'
20940 cat >>confdefs.h <<_ACEOF
20941 #define uintmax_t $ac_type
20946 cat >>confdefs.h <<\_ACEOF
20947 #define HAVE_UINTMAX_T 1
20953 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
20954 $as_echo_n "checking for inttypes.h... " >&6; }
20955 if test "${gt_cv_header_inttypes_h+set}" = set; then
20956 $as_echo_n "(cached) " >&6
20959 cat >conftest.$ac_ext <<_ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 #include <sys/types.h>
20966 #include <inttypes.h>
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20982 $as_echo "$ac_try_echo") >&5
20983 (eval "$ac_compile") 2>conftest.er1
20985 grep -v '^ *+' conftest.er1 >conftest.err
20987 cat conftest.err >&5
20988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest.$ac_objext; then
20993 gt_cv_header_inttypes_h=yes
20995 $as_echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 gt_cv_header_inttypes_h=no
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
21005 $as_echo "$gt_cv_header_inttypes_h" >&6; }
21006 if test $gt_cv_header_inttypes_h = yes; then
21008 cat >>confdefs.h <<_ACEOF
21009 #define HAVE_INTTYPES_H 1
21016 if test $gt_cv_header_inttypes_h = yes; then
21017 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
21018 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
21019 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
21020 $as_echo_n "(cached) " >&6
21023 cat >conftest.$ac_ext <<_ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 #include <inttypes.h>
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21049 $as_echo "$ac_try_echo") >&5
21050 (eval "$ac_compile") 2>conftest.er1
21052 grep -v '^ *+' conftest.er1 >conftest.err
21054 cat conftest.err >&5
21055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } && {
21057 test -z "$ac_c_werror_flag" ||
21058 test ! -s conftest.err
21059 } && test -s conftest.$ac_objext; then
21060 gt_cv_inttypes_pri_broken=no
21062 $as_echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 gt_cv_inttypes_pri_broken=yes
21068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
21072 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21074 if test "$gt_cv_inttypes_pri_broken" = yes; then
21076 cat >>confdefs.h <<_ACEOF
21077 #define PRI_MACROS_BROKEN 1
21084 for ac_header in stdint.h
21086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21089 $as_echo_n "checking for $ac_header... " >&6; }
21090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21091 $as_echo_n "(cached) " >&6
21093 ac_res=`eval 'as_val=${'$as_ac_Header'}
21094 $as_echo "$as_val"'`
21095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21096 $as_echo "$ac_res" >&6; }
21098 # Is the header compilable?
21099 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21100 $as_echo_n "checking $ac_header usability... " >&6; }
21101 cat >conftest.$ac_ext <<_ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21107 $ac_includes_default
21108 #include <$ac_header>
21110 rm -f conftest.$ac_objext
21111 if { (ac_try="$ac_compile"
21112 case "(($ac_try" in
21113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114 *) ac_try_echo=$ac_try;;
21116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21117 $as_echo "$ac_try_echo") >&5
21118 (eval "$ac_compile") 2>conftest.er1
21120 grep -v '^ *+' conftest.er1 >conftest.err
21122 cat conftest.err >&5
21123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && {
21125 test -z "$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 } && test -s conftest.$ac_objext; then
21128 ac_header_compiler=yes
21130 $as_echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ac_header_compiler=no
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21138 $as_echo "$ac_header_compiler" >&6; }
21140 # Is the header present?
21141 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21142 $as_echo_n "checking $ac_header presence... " >&6; }
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <$ac_header>
21151 if { (ac_try="$ac_cpp conftest.$ac_ext"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21157 $as_echo "$ac_try_echo") >&5
21158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21160 grep -v '^ *+' conftest.er1 >conftest.err
21162 cat conftest.err >&5
21163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } >/dev/null && {
21165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21166 test ! -s conftest.err
21168 ac_header_preproc=yes
21170 $as_echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_header_preproc=no
21176 rm -f conftest.err conftest.$ac_ext
21177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21178 $as_echo "$ac_header_preproc" >&6; }
21180 # So? What about this header?
21181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21184 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21187 ac_header_preproc=yes
21190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21191 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21193 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21195 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21197 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21201 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21205 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21206 $as_echo_n "checking for $ac_header... " >&6; }
21207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21208 $as_echo_n "(cached) " >&6
21210 eval "$as_ac_Header=\$ac_header_preproc"
21212 ac_res=`eval 'as_val=${'$as_ac_Header'}
21213 $as_echo "$as_val"'`
21214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21215 $as_echo "$ac_res" >&6; }
21218 as_val=`eval 'as_val=${'$as_ac_Header'}
21219 $as_echo "$as_val"'`
21220 if test "x$as_val" = x""yes; then
21221 cat >>confdefs.h <<_ACEOF
21222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21229 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
21230 $as_echo_n "checking for SIZE_MAX... " >&6; }
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21239 #include <limits.h>
21241 #include <stdint.h>
21248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21249 $EGREP "Found it" >/dev/null 2>&1; then
21254 if test -z "$result"; then
21255 if test "$cross_compiling" = yes; then
21256 # Depending upon the size, compute the lo and hi bounds.
21257 cat >conftest.$ac_ext <<_ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 #include <stddef.h>
21267 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
21274 rm -f conftest.$ac_objext
21275 if { (ac_try="$ac_compile"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21281 $as_echo "$ac_try_echo") >&5
21282 (eval "$ac_compile") 2>conftest.er1
21284 grep -v '^ *+' conftest.er1 >conftest.err
21286 cat conftest.err >&5
21287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } && {
21289 test -z "$ac_c_werror_flag" ||
21290 test ! -s conftest.err
21291 } && test -s conftest.$ac_objext; then
21294 cat >conftest.$ac_ext <<_ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 #include <stddef.h>
21304 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21311 rm -f conftest.$ac_objext
21312 if { (ac_try="$ac_compile"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21318 $as_echo "$ac_try_echo") >&5
21319 (eval "$ac_compile") 2>conftest.er1
21321 grep -v '^ *+' conftest.er1 >conftest.err
21323 cat conftest.err >&5
21324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } && {
21326 test -z "$ac_c_werror_flag" ||
21327 test ! -s conftest.err
21328 } && test -s conftest.$ac_objext; then
21329 ac_hi=$ac_mid; break
21331 $as_echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_lo=`expr $ac_mid + 1`
21335 if test $ac_lo -le $ac_mid; then
21339 ac_mid=`expr 2 '*' $ac_mid + 1`
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345 $as_echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 cat >conftest.$ac_ext <<_ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 #include <stddef.h>
21358 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
21365 rm -f conftest.$ac_objext
21366 if { (ac_try="$ac_compile"
21367 case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21372 $as_echo "$ac_try_echo") >&5
21373 (eval "$ac_compile") 2>conftest.er1
21375 grep -v '^ *+' conftest.er1 >conftest.err
21377 cat conftest.err >&5
21378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } && {
21380 test -z "$ac_c_werror_flag" ||
21381 test ! -s conftest.err
21382 } && test -s conftest.$ac_objext; then
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 #include <stddef.h>
21395 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21409 $as_echo "$ac_try_echo") >&5
21410 (eval "$ac_compile") 2>conftest.er1
21412 grep -v '^ *+' conftest.er1 >conftest.err
21414 cat conftest.err >&5
21415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && {
21417 test -z "$ac_c_werror_flag" ||
21418 test ! -s conftest.err
21419 } && test -s conftest.$ac_objext; then
21420 ac_lo=$ac_mid; break
21422 $as_echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21425 ac_hi=`expr '(' $ac_mid ')' - 1`
21426 if test $ac_mid -le $ac_hi; then
21430 ac_mid=`expr 2 '*' $ac_mid`
21433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21436 $as_echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 # Binary search between lo and hi bounds.
21447 while test "x$ac_lo" != "x$ac_hi"; do
21448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21449 cat >conftest.$ac_ext <<_ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21455 #include <stddef.h>
21459 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21466 rm -f conftest.$ac_objext
21467 if { (ac_try="$ac_compile"
21468 case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21473 $as_echo "$ac_try_echo") >&5
21474 (eval "$ac_compile") 2>conftest.er1
21476 grep -v '^ *+' conftest.er1 >conftest.err
21478 cat conftest.err >&5
21479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && {
21481 test -z "$ac_c_werror_flag" ||
21482 test ! -s conftest.err
21483 } && test -s conftest.$ac_objext; then
21486 $as_echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21489 ac_lo=`expr '(' $ac_mid ')' + 1`
21492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21495 ?*) res_hi=$ac_lo;;
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 #include <stddef.h>
21506 static long int longval () { return ~(size_t)0 / 10; }
21507 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21509 #include <stdlib.h>
21514 FILE *f = fopen ("conftest.val", "w");
21517 if ((~(size_t)0 / 10) < 0)
21519 long int i = longval ();
21520 if (i != (~(size_t)0 / 10))
21522 fprintf (f, "%ld", i);
21526 unsigned long int i = ulongval ();
21527 if (i != (~(size_t)0 / 10))
21529 fprintf (f, "%lu", i);
21531 /* Do not output a trailing newline, as this causes \r\n confusion
21532 on some platforms. */
21533 return ferror (f) || fclose (f) != 0;
21539 rm -f conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21546 $as_echo "$ac_try_echo") >&5
21547 (eval "$ac_link") 2>&5
21549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21551 { (case "(($ac_try" in
21552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553 *) ac_try_echo=$ac_try;;
21555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21556 $as_echo "$ac_try_echo") >&5
21557 (eval "$ac_try") 2>&5
21559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 res_hi=`cat conftest.val`
21563 $as_echo "$as_me: program exited with status $ac_status" >&5
21564 $as_echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ( exit $ac_status )
21570 rm -rf conftest.dSYM
21571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21575 if test "$cross_compiling" = yes; then
21576 # Depending upon the size, compute the lo and hi bounds.
21577 cat >conftest.$ac_ext <<_ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 #include <stddef.h>
21587 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21601 $as_echo "$ac_try_echo") >&5
21602 (eval "$ac_compile") 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest.$ac_objext; then
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 #include <stddef.h>
21624 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21631 rm -f conftest.$ac_objext
21632 if { (ac_try="$ac_compile"
21633 case "(($ac_try" in
21634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635 *) ac_try_echo=$ac_try;;
21637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21638 $as_echo "$ac_try_echo") >&5
21639 (eval "$ac_compile") 2>conftest.er1
21641 grep -v '^ *+' conftest.er1 >conftest.err
21643 cat conftest.err >&5
21644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } && {
21646 test -z "$ac_c_werror_flag" ||
21647 test ! -s conftest.err
21648 } && test -s conftest.$ac_objext; then
21649 ac_hi=$ac_mid; break
21651 $as_echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 ac_lo=`expr $ac_mid + 1`
21655 if test $ac_lo -le $ac_mid; then
21659 ac_mid=`expr 2 '*' $ac_mid + 1`
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 $as_echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 #include <stddef.h>
21678 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21692 $as_echo "$ac_try_echo") >&5
21693 (eval "$ac_compile") 2>conftest.er1
21695 grep -v '^ *+' conftest.er1 >conftest.err
21697 cat conftest.err >&5
21698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && {
21700 test -z "$ac_c_werror_flag" ||
21701 test ! -s conftest.err
21702 } && test -s conftest.$ac_objext; then
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <stddef.h>
21715 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21722 rm -f conftest.$ac_objext
21723 if { (ac_try="$ac_compile"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21729 $as_echo "$ac_try_echo") >&5
21730 (eval "$ac_compile") 2>conftest.er1
21732 grep -v '^ *+' conftest.er1 >conftest.err
21734 cat conftest.err >&5
21735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } && {
21737 test -z "$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21739 } && test -s conftest.$ac_objext; then
21740 ac_lo=$ac_mid; break
21742 $as_echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_hi=`expr '(' $ac_mid ')' - 1`
21746 if test $ac_mid -le $ac_hi; then
21750 ac_mid=`expr 2 '*' $ac_mid`
21753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756 $as_echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21766 # Binary search between lo and hi bounds.
21767 while test "x$ac_lo" != "x$ac_hi"; do
21768 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21769 cat >conftest.$ac_ext <<_ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21775 #include <stddef.h>
21779 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21793 $as_echo "$ac_try_echo") >&5
21794 (eval "$ac_compile") 2>conftest.er1
21796 grep -v '^ *+' conftest.er1 >conftest.err
21798 cat conftest.err >&5
21799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } && {
21801 test -z "$ac_c_werror_flag" ||
21802 test ! -s conftest.err
21803 } && test -s conftest.$ac_objext; then
21806 $as_echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_lo=`expr '(' $ac_mid ')' + 1`
21812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815 ?*) res_lo=$ac_lo;;
21819 cat >conftest.$ac_ext <<_ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 #include <stddef.h>
21826 static long int longval () { return ~(size_t)0 % 10; }
21827 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21829 #include <stdlib.h>
21834 FILE *f = fopen ("conftest.val", "w");
21837 if ((~(size_t)0 % 10) < 0)
21839 long int i = longval ();
21840 if (i != (~(size_t)0 % 10))
21842 fprintf (f, "%ld", i);
21846 unsigned long int i = ulongval ();
21847 if (i != (~(size_t)0 % 10))
21849 fprintf (f, "%lu", i);
21851 /* Do not output a trailing newline, as this causes \r\n confusion
21852 on some platforms. */
21853 return ferror (f) || fclose (f) != 0;
21859 rm -f conftest$ac_exeext
21860 if { (ac_try="$ac_link"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21866 $as_echo "$ac_try_echo") >&5
21867 (eval "$ac_link") 2>&5
21869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21871 { (case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21876 $as_echo "$ac_try_echo") >&5
21877 (eval "$ac_try") 2>&5
21879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 res_lo=`cat conftest.val`
21883 $as_echo "$as_me: program exited with status $ac_status" >&5
21884 $as_echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21887 ( exit $ac_status )
21890 rm -rf conftest.dSYM
21891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21895 if test "$cross_compiling" = yes; then
21896 # Depending upon the size, compute the lo and hi bounds.
21897 cat >conftest.$ac_ext <<_ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 #include <stddef.h>
21907 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21914 rm -f conftest.$ac_objext
21915 if { (ac_try="$ac_compile"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21921 $as_echo "$ac_try_echo") >&5
21922 (eval "$ac_compile") 2>conftest.er1
21924 grep -v '^ *+' conftest.er1 >conftest.err
21926 cat conftest.err >&5
21927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } && {
21929 test -z "$ac_c_werror_flag" ||
21930 test ! -s conftest.err
21931 } && test -s conftest.$ac_objext; then
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 #include <stddef.h>
21944 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21951 rm -f conftest.$ac_objext
21952 if { (ac_try="$ac_compile"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21958 $as_echo "$ac_try_echo") >&5
21959 (eval "$ac_compile") 2>conftest.er1
21961 grep -v '^ *+' conftest.er1 >conftest.err
21963 cat conftest.err >&5
21964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } && {
21966 test -z "$ac_c_werror_flag" ||
21967 test ! -s conftest.err
21968 } && test -s conftest.$ac_objext; then
21969 ac_hi=$ac_mid; break
21971 $as_echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21974 ac_lo=`expr $ac_mid + 1`
21975 if test $ac_lo -le $ac_mid; then
21979 ac_mid=`expr 2 '*' $ac_mid + 1`
21982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21985 $as_echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 cat >conftest.$ac_ext <<_ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 #include <stddef.h>
21998 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22012 $as_echo "$ac_try_echo") >&5
22013 (eval "$ac_compile") 2>conftest.er1
22015 grep -v '^ *+' conftest.er1 >conftest.err
22017 cat conftest.err >&5
22018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } && {
22020 test -z "$ac_c_werror_flag" ||
22021 test ! -s conftest.err
22022 } && test -s conftest.$ac_objext; then
22025 cat >conftest.$ac_ext <<_ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h. */
22031 #include <stddef.h>
22035 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22042 rm -f conftest.$ac_objext
22043 if { (ac_try="$ac_compile"
22044 case "(($ac_try" in
22045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046 *) ac_try_echo=$ac_try;;
22048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22049 $as_echo "$ac_try_echo") >&5
22050 (eval "$ac_compile") 2>conftest.er1
22052 grep -v '^ *+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && {
22057 test -z "$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 } && test -s conftest.$ac_objext; then
22060 ac_lo=$ac_mid; break
22062 $as_echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_hi=`expr '(' $ac_mid ')' - 1`
22066 if test $ac_mid -le $ac_hi; then
22070 ac_mid=`expr 2 '*' $ac_mid`
22073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076 $as_echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086 # Binary search between lo and hi bounds.
22087 while test "x$ac_lo" != "x$ac_hi"; do
22088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22089 cat >conftest.$ac_ext <<_ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h. */
22095 #include <stddef.h>
22099 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22113 $as_echo "$ac_try_echo") >&5
22114 (eval "$ac_compile") 2>conftest.er1
22116 grep -v '^ *+' conftest.er1 >conftest.err
22118 cat conftest.err >&5
22119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } && {
22121 test -z "$ac_c_werror_flag" ||
22122 test ! -s conftest.err
22123 } && test -s conftest.$ac_objext; then
22126 $as_echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 ac_lo=`expr '(' $ac_mid ')' + 1`
22132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 ?*) fits_in_uint=$ac_lo;;
22139 cat >conftest.$ac_ext <<_ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 #include <stddef.h>
22146 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22147 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22149 #include <stdlib.h>
22154 FILE *f = fopen ("conftest.val", "w");
22157 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22159 long int i = longval ();
22160 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22162 fprintf (f, "%ld", i);
22166 unsigned long int i = ulongval ();
22167 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22169 fprintf (f, "%lu", i);
22171 /* Do not output a trailing newline, as this causes \r\n confusion
22172 on some platforms. */
22173 return ferror (f) || fclose (f) != 0;
22179 rm -f conftest$ac_exeext
22180 if { (ac_try="$ac_link"
22181 case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22186 $as_echo "$ac_try_echo") >&5
22187 (eval "$ac_link") 2>&5
22189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22191 { (case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22196 $as_echo "$ac_try_echo") >&5
22197 (eval "$ac_try") 2>&5
22199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; }; then
22201 fits_in_uint=`cat conftest.val`
22203 $as_echo "$as_me: program exited with status $ac_status" >&5
22204 $as_echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22207 ( exit $ac_status )
22210 rm -rf conftest.dSYM
22211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22215 if test "$fits_in_uint" = 1; then
22216 cat >conftest.$ac_ext <<_ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22222 #include <stddef.h>
22224 extern unsigned long foo;
22234 rm -f conftest.$ac_objext
22235 if { (ac_try="$ac_compile"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242 (eval "$ac_compile") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest.$ac_objext; then
22254 $as_echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 if test -z "$result"; then
22263 if test "$fits_in_uint" = 1; then
22264 result="$res_hi$res_lo"U
22266 result="$res_hi$res_lo"UL
22269 result='~(size_t)0'
22272 { $as_echo "$as_me:$LINENO: result: $result" >&5
22273 $as_echo "$result" >&6; }
22274 if test "$result" != yes; then
22276 cat >>confdefs.h <<_ACEOF
22277 #define SIZE_MAX $result
22286 for ac_header in stdint.h
22288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22291 $as_echo_n "checking for $ac_header... " >&6; }
22292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22293 $as_echo_n "(cached) " >&6
22295 ac_res=`eval 'as_val=${'$as_ac_Header'}
22296 $as_echo "$as_val"'`
22297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22298 $as_echo "$ac_res" >&6; }
22300 # Is the header compilable?
22301 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22302 $as_echo_n "checking $ac_header usability... " >&6; }
22303 cat >conftest.$ac_ext <<_ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22310 #include <$ac_header>
22312 rm -f conftest.$ac_objext
22313 if { (ac_try="$ac_compile"
22314 case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22319 $as_echo "$ac_try_echo") >&5
22320 (eval "$ac_compile") 2>conftest.er1
22322 grep -v '^ *+' conftest.er1 >conftest.err
22324 cat conftest.err >&5
22325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } && {
22327 test -z "$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 } && test -s conftest.$ac_objext; then
22330 ac_header_compiler=yes
22332 $as_echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22335 ac_header_compiler=no
22338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22339 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22340 $as_echo "$ac_header_compiler" >&6; }
22342 # Is the header present?
22343 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22344 $as_echo_n "checking $ac_header presence... " >&6; }
22345 cat >conftest.$ac_ext <<_ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h. */
22351 #include <$ac_header>
22353 if { (ac_try="$ac_cpp conftest.$ac_ext"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22359 $as_echo "$ac_try_echo") >&5
22360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22362 grep -v '^ *+' conftest.er1 >conftest.err
22364 cat conftest.err >&5
22365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } >/dev/null && {
22367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22368 test ! -s conftest.err
22370 ac_header_preproc=yes
22372 $as_echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22375 ac_header_preproc=no
22378 rm -f conftest.err conftest.$ac_ext
22379 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22380 $as_echo "$ac_header_preproc" >&6; }
22382 # So? What about this header?
22383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22386 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22388 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22389 ac_header_preproc=yes
22392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22393 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22395 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22397 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22399 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22401 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22403 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22407 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22408 $as_echo_n "checking for $ac_header... " >&6; }
22409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22410 $as_echo_n "(cached) " >&6
22412 eval "$as_ac_Header=\$ac_header_preproc"
22414 ac_res=`eval 'as_val=${'$as_ac_Header'}
22415 $as_echo "$as_val"'`
22416 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22417 $as_echo "$ac_res" >&6; }
22420 as_val=`eval 'as_val=${'$as_ac_Header'}
22421 $as_echo "$as_val"'`
22422 if test "x$as_val" = x""yes; then
22423 cat >>confdefs.h <<_ACEOF
22424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22438 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22439 $as_echo_n "checking for ptrdiff_t... " >&6; }
22440 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22441 $as_echo_n "(cached) " >&6
22443 ac_cv_type_ptrdiff_t=no
22444 cat >conftest.$ac_ext <<_ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22450 $ac_includes_default
22454 if (sizeof (ptrdiff_t))
22460 rm -f conftest.$ac_objext
22461 if { (ac_try="$ac_compile"
22462 case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22467 $as_echo "$ac_try_echo") >&5
22468 (eval "$ac_compile") 2>conftest.er1
22470 grep -v '^ *+' conftest.er1 >conftest.err
22472 cat conftest.err >&5
22473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest.$ac_objext; then
22478 cat >conftest.$ac_ext <<_ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 $ac_includes_default
22488 if (sizeof ((ptrdiff_t)))
22494 rm -f conftest.$ac_objext
22495 if { (ac_try="$ac_compile"
22496 case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22501 $as_echo "$ac_try_echo") >&5
22502 (eval "$ac_compile") 2>conftest.er1
22504 grep -v '^ *+' conftest.er1 >conftest.err
22506 cat conftest.err >&5
22507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } && {
22509 test -z "$ac_c_werror_flag" ||
22510 test ! -s conftest.err
22511 } && test -s conftest.$ac_objext; then
22514 $as_echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22517 ac_cv_type_ptrdiff_t=yes
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522 $as_echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22531 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
22532 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
22536 cat >>confdefs.h <<\_ACEOF
22537 #define ptrdiff_t long
22553 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22554 stdlib.h string.h unistd.h sys/param.h
22556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22559 $as_echo_n "checking for $ac_header... " >&6; }
22560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22561 $as_echo_n "(cached) " >&6
22563 ac_res=`eval 'as_val=${'$as_ac_Header'}
22564 $as_echo "$as_val"'`
22565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22566 $as_echo "$ac_res" >&6; }
22568 # Is the header compilable?
22569 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22570 $as_echo_n "checking $ac_header usability... " >&6; }
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 $ac_includes_default
22578 #include <$ac_header>
22580 rm -f conftest.$ac_objext
22581 if { (ac_try="$ac_compile"
22582 case "(($ac_try" in
22583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22584 *) ac_try_echo=$ac_try;;
22586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22587 $as_echo "$ac_try_echo") >&5
22588 (eval "$ac_compile") 2>conftest.er1
22590 grep -v '^ *+' conftest.er1 >conftest.err
22592 cat conftest.err >&5
22593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } && {
22595 test -z "$ac_c_werror_flag" ||
22596 test ! -s conftest.err
22597 } && test -s conftest.$ac_objext; then
22598 ac_header_compiler=yes
22600 $as_echo "$as_me: failed program was:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22603 ac_header_compiler=no
22606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22608 $as_echo "$ac_header_compiler" >&6; }
22610 # Is the header present?
22611 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22612 $as_echo_n "checking $ac_header presence... " >&6; }
22613 cat >conftest.$ac_ext <<_ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h. */
22619 #include <$ac_header>
22621 if { (ac_try="$ac_cpp conftest.$ac_ext"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22627 $as_echo "$ac_try_echo") >&5
22628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22630 grep -v '^ *+' conftest.er1 >conftest.err
22632 cat conftest.err >&5
22633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } >/dev/null && {
22635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22638 ac_header_preproc=yes
22640 $as_echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 ac_header_preproc=no
22646 rm -f conftest.err conftest.$ac_ext
22647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22648 $as_echo "$ac_header_preproc" >&6; }
22650 # So? What about this header?
22651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22654 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22657 ac_header_preproc=yes
22660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22661 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22663 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22665 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22667 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22671 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22676 $as_echo_n "checking for $ac_header... " >&6; }
22677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22678 $as_echo_n "(cached) " >&6
22680 eval "$as_ac_Header=\$ac_header_preproc"
22682 ac_res=`eval 'as_val=${'$as_ac_Header'}
22683 $as_echo "$as_val"'`
22684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22685 $as_echo "$ac_res" >&6; }
22688 as_val=`eval 'as_val=${'$as_ac_Header'}
22689 $as_echo "$as_val"'`
22690 if test "x$as_val" = x""yes; then
22691 cat >>confdefs.h <<_ACEOF
22692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22722 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22723 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22724 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22728 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22729 $as_echo_n "checking for $ac_func... " >&6; }
22730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22731 $as_echo_n "(cached) " >&6
22733 cat >conftest.$ac_ext <<_ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h. */
22739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22741 #define $ac_func innocuous_$ac_func
22743 /* System header to define __stub macros and hopefully few prototypes,
22744 which can conflict with char $ac_func (); below.
22745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22746 <limits.h> exists even on freestanding compilers. */
22749 # include <limits.h>
22751 # include <assert.h>
22756 /* Override any GCC internal prototype to avoid an error.
22757 Use char because int might match the return type of a GCC
22758 builtin and then its argument prototype would still apply. */
22763 /* The GNU C library defines this for functions which it implements
22764 to always fail with ENOSYS. Some functions are actually named
22765 something starting with __ and the normal name is an alias. */
22766 #if defined __stub_$ac_func || defined __stub___$ac_func
22773 return $ac_func ();
22778 rm -f conftest.$ac_objext conftest$ac_exeext
22779 if { (ac_try="$ac_link"
22780 case "(($ac_try" in
22781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22782 *) ac_try_echo=$ac_try;;
22784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22785 $as_echo "$ac_try_echo") >&5
22786 (eval "$ac_link") 2>conftest.er1
22788 grep -v '^ *+' conftest.er1 >conftest.err
22790 cat conftest.err >&5
22791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && {
22793 test -z "$ac_c_werror_flag" ||
22794 test ! -s conftest.err
22795 } && test -s conftest$ac_exeext && {
22796 test "$cross_compiling" = yes ||
22797 $as_test_x conftest$ac_exeext
22799 eval "$as_ac_var=yes"
22801 $as_echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 eval "$as_ac_var=no"
22807 rm -rf conftest.dSYM
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809 conftest$ac_exeext conftest.$ac_ext
22811 ac_res=`eval 'as_val=${'$as_ac_var'}
22812 $as_echo "$as_val"'`
22813 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22814 $as_echo "$ac_res" >&6; }
22815 as_val=`eval 'as_val=${'$as_ac_var'}
22816 $as_echo "$as_val"'`
22817 if test "x$as_val" = x""yes; then
22818 cat >>confdefs.h <<_ACEOF
22819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22827 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22828 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22829 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22830 $as_echo_n "(cached) " >&6
22832 cat >conftest.$ac_ext <<_ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22844 char *p = (char *) _snprintf;
22851 rm -f conftest.$ac_objext
22852 if { (ac_try="$ac_compile"
22853 case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22858 $as_echo "$ac_try_echo") >&5
22859 (eval "$ac_compile") 2>conftest.er1
22861 grep -v '^ *+' conftest.er1 >conftest.err
22863 cat conftest.err >&5
22864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } && {
22866 test -z "$ac_c_werror_flag" ||
22867 test ! -s conftest.err
22868 } && test -s conftest.$ac_objext; then
22869 ac_cv_have_decl__snprintf=yes
22871 $as_echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22874 ac_cv_have_decl__snprintf=no
22877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22879 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22880 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22881 if test $ac_cv_have_decl__snprintf = yes; then
22887 cat >>confdefs.h <<_ACEOF
22888 #define HAVE_DECL__SNPRINTF $gt_value
22893 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22894 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
22895 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22896 $as_echo_n "(cached) " >&6
22898 cat >conftest.$ac_ext <<_ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h. */
22910 char *p = (char *) _snwprintf;
22917 rm -f conftest.$ac_objext
22918 if { (ac_try="$ac_compile"
22919 case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22924 $as_echo "$ac_try_echo") >&5
22925 (eval "$ac_compile") 2>conftest.er1
22927 grep -v '^ *+' conftest.er1 >conftest.err
22929 cat conftest.err >&5
22930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && {
22932 test -z "$ac_c_werror_flag" ||
22933 test ! -s conftest.err
22934 } && test -s conftest.$ac_objext; then
22935 ac_cv_have_decl__snwprintf=yes
22937 $as_echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 ac_cv_have_decl__snwprintf=no
22943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22945 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22946 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
22947 if test $ac_cv_have_decl__snwprintf = yes; then
22953 cat >>confdefs.h <<_ACEOF
22954 #define HAVE_DECL__SNWPRINTF $gt_value
22960 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22961 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
22962 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22963 $as_echo_n "(cached) " >&6
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22976 #ifndef feof_unlocked
22977 char *p = (char *) feof_unlocked;
22984 rm -f conftest.$ac_objext
22985 if { (ac_try="$ac_compile"
22986 case "(($ac_try" in
22987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988 *) ac_try_echo=$ac_try;;
22990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22991 $as_echo "$ac_try_echo") >&5
22992 (eval "$ac_compile") 2>conftest.er1
22994 grep -v '^ *+' conftest.er1 >conftest.err
22996 cat conftest.err >&5
22997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } && {
22999 test -z "$ac_c_werror_flag" ||
23000 test ! -s conftest.err
23001 } && test -s conftest.$ac_objext; then
23002 ac_cv_have_decl_feof_unlocked=yes
23004 $as_echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23007 ac_cv_have_decl_feof_unlocked=no
23010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23012 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
23013 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
23014 if test $ac_cv_have_decl_feof_unlocked = yes; then
23020 cat >>confdefs.h <<_ACEOF
23021 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
23026 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23027 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
23028 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23029 $as_echo_n "(cached) " >&6
23031 cat >conftest.$ac_ext <<_ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23042 #ifndef fgets_unlocked
23043 char *p = (char *) fgets_unlocked;
23050 rm -f conftest.$ac_objext
23051 if { (ac_try="$ac_compile"
23052 case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23057 $as_echo "$ac_try_echo") >&5
23058 (eval "$ac_compile") 2>conftest.er1
23060 grep -v '^ *+' conftest.er1 >conftest.err
23062 cat conftest.err >&5
23063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && {
23065 test -z "$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 } && test -s conftest.$ac_objext; then
23068 ac_cv_have_decl_fgets_unlocked=yes
23070 $as_echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23073 ac_cv_have_decl_fgets_unlocked=no
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23079 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
23080 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23086 cat >>confdefs.h <<_ACEOF
23087 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
23092 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23093 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
23094 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23095 $as_echo_n "(cached) " >&6
23097 cat >conftest.$ac_ext <<_ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23108 #ifndef getc_unlocked
23109 char *p = (char *) getc_unlocked;
23116 rm -f conftest.$ac_objext
23117 if { (ac_try="$ac_compile"
23118 case "(($ac_try" in
23119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120 *) ac_try_echo=$ac_try;;
23122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23123 $as_echo "$ac_try_echo") >&5
23124 (eval "$ac_compile") 2>conftest.er1
23126 grep -v '^ *+' conftest.er1 >conftest.err
23128 cat conftest.err >&5
23129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && {
23131 test -z "$ac_c_werror_flag" ||
23132 test ! -s conftest.err
23133 } && test -s conftest.$ac_objext; then
23134 ac_cv_have_decl_getc_unlocked=yes
23136 $as_echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ac_cv_have_decl_getc_unlocked=no
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23145 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
23146 if test $ac_cv_have_decl_getc_unlocked = yes; then
23152 cat >>confdefs.h <<_ACEOF
23153 #define HAVE_DECL_GETC_UNLOCKED $gt_value
23158 case $gt_cv_func_printf_posix in
23159 *yes) HAVE_POSIX_PRINTF=1 ;;
23160 *) HAVE_POSIX_PRINTF=0 ;;
23163 if test "$ac_cv_func_asprintf" = yes; then
23169 if test "$ac_cv_func_snprintf" = yes; then
23175 if test "$ac_cv_func_wprintf" = yes; then
23187 am_save_CPPFLAGS="$CPPFLAGS"
23189 for element in $INCICONV; do
23191 for x in $CPPFLAGS; do
23193 acl_save_prefix="$prefix"
23194 prefix="$acl_final_prefix"
23195 acl_save_exec_prefix="$exec_prefix"
23196 exec_prefix="$acl_final_exec_prefix"
23198 exec_prefix="$acl_save_exec_prefix"
23199 prefix="$acl_save_prefix"
23201 if test "X$x" = "X$element"; then
23206 if test -z "$haveit"; then
23207 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23212 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
23213 $as_echo_n "checking for iconv... " >&6; }
23214 if test "${am_cv_func_iconv+set}" = set; then
23215 $as_echo_n "(cached) " >&6
23218 am_cv_func_iconv="no, consider installing GNU libiconv"
23220 cat >conftest.$ac_ext <<_ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 #include <stdlib.h>
23231 iconv_t cd = iconv_open("","");
23232 iconv(cd,NULL,NULL,NULL,NULL);
23238 rm -f conftest.$ac_objext conftest$ac_exeext
23239 if { (ac_try="$ac_link"
23240 case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23245 $as_echo "$ac_try_echo") >&5
23246 (eval "$ac_link") 2>conftest.er1
23248 grep -v '^ *+' conftest.er1 >conftest.err
23250 cat conftest.err >&5
23251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); } && {
23253 test -z "$ac_c_werror_flag" ||
23254 test ! -s conftest.err
23255 } && test -s conftest$ac_exeext && {
23256 test "$cross_compiling" = yes ||
23257 $as_test_x conftest$ac_exeext
23259 am_cv_func_iconv=yes
23261 $as_echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23267 rm -rf conftest.dSYM
23268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23269 conftest$ac_exeext conftest.$ac_ext
23270 if test "$am_cv_func_iconv" != yes; then
23271 am_save_LIBS="$LIBS"
23272 LIBS="$LIBS $LIBICONV"
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23279 #include <stdlib.h>
23284 iconv_t cd = iconv_open("","");
23285 iconv(cd,NULL,NULL,NULL,NULL);
23291 rm -f conftest.$ac_objext conftest$ac_exeext
23292 if { (ac_try="$ac_link"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23298 $as_echo "$ac_try_echo") >&5
23299 (eval "$ac_link") 2>conftest.er1
23301 grep -v '^ *+' conftest.er1 >conftest.err
23303 cat conftest.err >&5
23304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } && {
23306 test -z "$ac_c_werror_flag" ||
23307 test ! -s conftest.err
23308 } && test -s conftest$ac_exeext && {
23309 test "$cross_compiling" = yes ||
23310 $as_test_x conftest$ac_exeext
23312 am_cv_lib_iconv=yes
23313 am_cv_func_iconv=yes
23315 $as_echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23321 rm -rf conftest.dSYM
23322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23323 conftest$ac_exeext conftest.$ac_ext
23324 LIBS="$am_save_LIBS"
23328 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23329 $as_echo "$am_cv_func_iconv" >&6; }
23330 if test "$am_cv_func_iconv" = yes; then
23332 cat >>confdefs.h <<\_ACEOF
23333 #define HAVE_ICONV 1
23337 if test "$am_cv_lib_iconv" = yes; then
23338 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23339 $as_echo_n "checking how to link with libiconv... " >&6; }
23340 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
23341 $as_echo "$LIBICONV" >&6; }
23343 CPPFLAGS="$am_save_CPPFLAGS"
23350 if test "$am_cv_func_iconv" = yes; then
23351 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
23352 $as_echo_n "checking for iconv declaration... " >&6; }
23353 if test "${am_cv_proto_iconv+set}" = set; then
23354 $as_echo_n "(cached) " >&6
23357 cat >conftest.$ac_ext <<_ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h. */
23364 #include <stdlib.h>
23370 #if defined(__STDC__) || defined(__cplusplus)
23371 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23384 rm -f conftest.$ac_objext
23385 if { (ac_try="$ac_compile"
23386 case "(($ac_try" in
23387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388 *) ac_try_echo=$ac_try;;
23390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23391 $as_echo "$ac_try_echo") >&5
23392 (eval "$ac_compile") 2>conftest.er1
23394 grep -v '^ *+' conftest.er1 >conftest.err
23396 cat conftest.err >&5
23397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest.$ac_objext; then
23402 am_cv_proto_iconv_arg1=""
23404 $as_echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 am_cv_proto_iconv_arg1="const"
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411 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);"
23414 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23415 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
23416 }$am_cv_proto_iconv" >&5
23418 }$am_cv_proto_iconv" >&6; }
23420 cat >>confdefs.h <<_ACEOF
23421 #define ICONV_CONST $am_cv_proto_iconv_arg1
23427 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23428 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23429 if test "${am_cv_langinfo_codeset+set}" = set; then
23430 $as_echo_n "(cached) " >&6
23432 cat >conftest.$ac_ext <<_ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h. */
23438 #include <langinfo.h>
23442 char* cs = nl_langinfo(CODESET);
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 if { (ac_try="$ac_link"
23449 case "(($ac_try" in
23450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451 *) ac_try_echo=$ac_try;;
23453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23454 $as_echo "$ac_try_echo") >&5
23455 (eval "$ac_link") 2>conftest.er1
23457 grep -v '^ *+' conftest.er1 >conftest.err
23459 cat conftest.err >&5
23460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } && {
23462 test -z "$ac_c_werror_flag" ||
23463 test ! -s conftest.err
23464 } && test -s conftest$ac_exeext && {
23465 test "$cross_compiling" = yes ||
23466 $as_test_x conftest$ac_exeext
23468 am_cv_langinfo_codeset=yes
23470 $as_echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23473 am_cv_langinfo_codeset=no
23476 rm -rf conftest.dSYM
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23478 conftest$ac_exeext conftest.$ac_ext
23481 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
23482 $as_echo "$am_cv_langinfo_codeset" >&6; }
23483 if test $am_cv_langinfo_codeset = yes; then
23485 cat >>confdefs.h <<\_ACEOF
23486 #define HAVE_LANGINFO_CODESET 1
23491 if test $ac_cv_header_locale_h = yes; then
23493 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23494 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23495 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
23496 $as_echo_n "(cached) " >&6
23498 cat >conftest.$ac_ext <<_ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23504 #include <locale.h>
23513 rm -f conftest.$ac_objext conftest$ac_exeext
23514 if { (ac_try="$ac_link"
23515 case "(($ac_try" in
23516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517 *) ac_try_echo=$ac_try;;
23519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23520 $as_echo "$ac_try_echo") >&5
23521 (eval "$ac_link") 2>conftest.er1
23523 grep -v '^ *+' conftest.er1 >conftest.err
23525 cat conftest.err >&5
23526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } && {
23528 test -z "$ac_c_werror_flag" ||
23529 test ! -s conftest.err
23530 } && test -s conftest$ac_exeext && {
23531 test "$cross_compiling" = yes ||
23532 $as_test_x conftest$ac_exeext
23534 gt_cv_val_LC_MESSAGES=yes
23536 $as_echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23539 gt_cv_val_LC_MESSAGES=no
23542 rm -rf conftest.dSYM
23543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23544 conftest$ac_exeext conftest.$ac_ext
23546 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23547 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
23548 if test $gt_cv_val_LC_MESSAGES = yes; then
23550 cat >>confdefs.h <<\_ACEOF
23551 #define HAVE_LC_MESSAGES 1
23558 if test -n "$INTL_MACOSX_LIBS"; then
23559 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23562 for ac_prog in bison
23564 # Extract the first word of "$ac_prog", so it can be a program name with args.
23565 set dummy $ac_prog; ac_word=$2
23566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23567 $as_echo_n "checking for $ac_word... " >&6; }
23568 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23569 $as_echo_n "(cached) " >&6
23571 if test -n "$INTLBISON"; then
23572 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23575 for as_dir in $PATH
23578 test -z "$as_dir" && as_dir=.
23579 for ac_exec_ext in '' $ac_executable_extensions; do
23580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23581 ac_cv_prog_INTLBISON="$ac_prog"
23582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23591 INTLBISON=$ac_cv_prog_INTLBISON
23592 if test -n "$INTLBISON"; then
23593 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
23594 $as_echo "$INTLBISON" >&6; }
23596 { $as_echo "$as_me:$LINENO: result: no" >&5
23597 $as_echo "no" >&6; }
23601 test -n "$INTLBISON" && break
23604 if test -z "$INTLBISON"; then
23607 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
23608 $as_echo_n "checking version of bison... " >&6; }
23609 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23610 case $ac_prog_version in
23611 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23612 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23613 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23614 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23616 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23617 $as_echo "$ac_prog_version" >&6; }
23619 if test $ac_verc_fail = yes; then
23638 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23639 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23640 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23641 $as_echo_n "(cached) " >&6
23643 gt_save_CPPFLAGS="$CPPFLAGS"
23644 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23645 gt_save_LIBS="$LIBS"
23646 LIBS="$LIBS -framework CoreFoundation"
23647 cat >conftest.$ac_ext <<_ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653 #include <CFPreferences.h>
23657 CFPreferencesCopyAppValue(NULL, NULL)
23662 rm -f conftest.$ac_objext conftest$ac_exeext
23663 if { (ac_try="$ac_link"
23664 case "(($ac_try" in
23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666 *) ac_try_echo=$ac_try;;
23668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23669 $as_echo "$ac_try_echo") >&5
23670 (eval "$ac_link") 2>conftest.er1
23672 grep -v '^ *+' conftest.er1 >conftest.err
23674 cat conftest.err >&5
23675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest$ac_exeext && {
23680 test "$cross_compiling" = yes ||
23681 $as_test_x conftest$ac_exeext
23683 gt_cv_func_CFPreferencesCopyAppValue=yes
23685 $as_echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 gt_cv_func_CFPreferencesCopyAppValue=no
23691 rm -rf conftest.dSYM
23692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23693 conftest$ac_exeext conftest.$ac_ext
23694 CPPFLAGS="$gt_save_CPPFLAGS"
23695 LIBS="$gt_save_LIBS"
23697 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23698 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23699 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23701 cat >>confdefs.h <<\_ACEOF
23702 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23706 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23707 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
23708 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23709 $as_echo_n "(cached) " >&6
23711 gt_save_CPPFLAGS="$CPPFLAGS"
23712 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23713 gt_save_LIBS="$LIBS"
23714 LIBS="$LIBS -framework CoreFoundation"
23715 cat >conftest.$ac_ext <<_ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h. */
23721 #include <CFLocale.h>
23725 CFLocaleCopyCurrent();
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (ac_try="$ac_link"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23737 $as_echo "$ac_try_echo") >&5
23738 (eval "$ac_link") 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } && {
23745 test -z "$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 } && test -s conftest$ac_exeext && {
23748 test "$cross_compiling" = yes ||
23749 $as_test_x conftest$ac_exeext
23751 gt_cv_func_CFLocaleCopyCurrent=yes
23753 $as_echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.$ac_ext >&5
23756 gt_cv_func_CFLocaleCopyCurrent=no
23759 rm -rf conftest.dSYM
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761 conftest$ac_exeext conftest.$ac_ext
23762 CPPFLAGS="$gt_save_CPPFLAGS"
23763 LIBS="$gt_save_LIBS"
23765 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23766 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23767 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23769 cat >>confdefs.h <<\_ACEOF
23770 #define HAVE_CFLOCALECOPYCURRENT 1
23775 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23776 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23782 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23783 $as_echo_n "checking whether NLS is requested... " >&6; }
23784 # Check whether --enable-nls was given.
23785 if test "${enable_nls+set}" = set; then
23786 enableval=$enable_nls; USE_NLS=$enableval
23791 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
23792 $as_echo "$USE_NLS" >&6; }
23797 BUILD_INCLUDED_LIBINTL=no
23798 USE_INCLUDED_LIBINTL=no
23804 if test "$USE_NLS" = "yes"; then
23805 gt_use_preinstalled_gnugettext=no
23807 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23808 $as_echo_n "checking whether included gettext is requested... " >&6; }
23810 # Check whether --with-included-gettext was given.
23811 if test "${with_included_gettext+set}" = set; then
23812 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23814 nls_cv_force_use_gnu_gettext=no
23817 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23818 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
23820 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23821 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23828 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23829 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23830 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23831 $as_echo_n "(cached) " >&6
23833 cat >conftest.$ac_ext <<_ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23839 #include <libintl.h>
23840 extern int _nl_msg_cat_cntr;
23841 extern int *_nl_domain_bindings;
23845 bindtextdomain ("", "");
23846 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23851 rm -f conftest.$ac_objext conftest$ac_exeext
23852 if { (ac_try="$ac_link"
23853 case "(($ac_try" in
23854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23858 $as_echo "$ac_try_echo") >&5
23859 (eval "$ac_link") 2>conftest.er1
23861 grep -v '^ *+' conftest.er1 >conftest.err
23863 cat conftest.err >&5
23864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); } && {
23866 test -z "$ac_c_werror_flag" ||
23867 test ! -s conftest.err
23868 } && test -s conftest$ac_exeext && {
23869 test "$cross_compiling" = yes ||
23870 $as_test_x conftest$ac_exeext
23872 gt_cv_func_gnugettext1_libc=yes
23874 $as_echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23877 gt_cv_func_gnugettext1_libc=no
23880 rm -rf conftest.dSYM
23881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23882 conftest$ac_exeext conftest.$ac_ext
23884 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23885 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
23887 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23893 acl_save_prefix="$prefix"
23894 prefix="$acl_final_prefix"
23895 acl_save_exec_prefix="$exec_prefix"
23896 exec_prefix="$acl_final_exec_prefix"
23898 eval additional_includedir=\"$includedir\"
23899 eval additional_libdir=\"$libdir\"
23901 exec_prefix="$acl_save_exec_prefix"
23902 prefix="$acl_save_prefix"
23905 # Check whether --with-libintl-prefix was given.
23906 if test "${with_libintl_prefix+set}" = set; then
23907 withval=$with_libintl_prefix;
23908 if test "X$withval" = "Xno"; then
23911 if test "X$withval" = "X"; then
23913 acl_save_prefix="$prefix"
23914 prefix="$acl_final_prefix"
23915 acl_save_exec_prefix="$exec_prefix"
23916 exec_prefix="$acl_final_exec_prefix"
23918 eval additional_includedir=\"$includedir\"
23919 eval additional_libdir=\"$libdir\"
23921 exec_prefix="$acl_save_exec_prefix"
23922 prefix="$acl_save_prefix"
23925 additional_includedir="$withval/include"
23926 additional_libdir="$withval/lib"
23937 names_already_handled=
23938 names_next_round='intl '
23939 while test -n "$names_next_round"; do
23940 names_this_round="$names_next_round"
23942 for name in $names_this_round; do
23944 for n in $names_already_handled; do
23945 if test "$n" = "$name"; then
23946 already_handled=yes
23950 if test -z "$already_handled"; then
23951 names_already_handled="$names_already_handled $name"
23952 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23953 eval value=\"\$HAVE_LIB$uppername\"
23954 if test -n "$value"; then
23955 if test "$value" = yes; then
23956 eval value=\"\$LIB$uppername\"
23957 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23958 eval value=\"\$LTLIB$uppername\"
23959 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23968 if test $use_additional = yes; then
23969 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23970 found_dir="$additional_libdir"
23971 found_so="$additional_libdir/lib$name.$shlibext"
23972 if test -f "$additional_libdir/lib$name.la"; then
23973 found_la="$additional_libdir/lib$name.la"
23976 if test -f "$additional_libdir/lib$name.$libext"; then
23977 found_dir="$additional_libdir"
23978 found_a="$additional_libdir/lib$name.$libext"
23979 if test -f "$additional_libdir/lib$name.la"; then
23980 found_la="$additional_libdir/lib$name.la"
23985 if test "X$found_dir" = "X"; then
23986 for x in $LDFLAGS $LTLIBINTL; do
23988 acl_save_prefix="$prefix"
23989 prefix="$acl_final_prefix"
23990 acl_save_exec_prefix="$exec_prefix"
23991 exec_prefix="$acl_final_exec_prefix"
23993 exec_prefix="$acl_save_exec_prefix"
23994 prefix="$acl_save_prefix"
23998 dir=`echo "X$x" | sed -e 's/^X-L//'`
23999 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24001 found_so="$dir/lib$name.$shlibext"
24002 if test -f "$dir/lib$name.la"; then
24003 found_la="$dir/lib$name.la"
24006 if test -f "$dir/lib$name.$libext"; then
24008 found_a="$dir/lib$name.$libext"
24009 if test -f "$dir/lib$name.la"; then
24010 found_la="$dir/lib$name.la"
24016 if test "X$found_dir" != "X"; then
24021 if test "X$found_dir" != "X"; then
24022 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24023 if test "X$found_so" != "X"; then
24024 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24025 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24028 for x in $ltrpathdirs; do
24029 if test "X$x" = "X$found_dir"; then
24034 if test -z "$haveit"; then
24035 ltrpathdirs="$ltrpathdirs $found_dir"
24037 if test "$hardcode_direct" = yes; then
24038 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24040 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24041 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24043 for x in $rpathdirs; do
24044 if test "X$x" = "X$found_dir"; then
24049 if test -z "$haveit"; then
24050 rpathdirs="$rpathdirs $found_dir"
24054 for x in $LDFLAGS $LIBINTL; do
24056 acl_save_prefix="$prefix"
24057 prefix="$acl_final_prefix"
24058 acl_save_exec_prefix="$exec_prefix"
24059 exec_prefix="$acl_final_exec_prefix"
24061 exec_prefix="$acl_save_exec_prefix"
24062 prefix="$acl_save_prefix"
24064 if test "X$x" = "X-L$found_dir"; then
24069 if test -z "$haveit"; then
24070 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24072 if test "$hardcode_minus_L" != no; then
24073 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24075 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24081 if test "X$found_a" != "X"; then
24082 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24084 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24087 additional_includedir=
24088 case "$found_dir" in
24090 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24091 additional_includedir="$basedir/include"
24094 if test "X$additional_includedir" != "X"; then
24095 if test "X$additional_includedir" != "X/usr/include"; then
24097 if test "X$additional_includedir" = "X/usr/local/include"; then
24098 if test -n "$GCC"; then
24100 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24104 if test -z "$haveit"; then
24105 for x in $CPPFLAGS $INCINTL; do
24107 acl_save_prefix="$prefix"
24108 prefix="$acl_final_prefix"
24109 acl_save_exec_prefix="$exec_prefix"
24110 exec_prefix="$acl_final_exec_prefix"
24112 exec_prefix="$acl_save_exec_prefix"
24113 prefix="$acl_save_prefix"
24115 if test "X$x" = "X-I$additional_includedir"; then
24120 if test -z "$haveit"; then
24121 if test -d "$additional_includedir"; then
24122 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24128 if test -n "$found_la"; then
24129 save_libdir="$libdir"
24130 case "$found_la" in
24131 */* | *\\*) . "$found_la" ;;
24132 *) . "./$found_la" ;;
24134 libdir="$save_libdir"
24135 for dep in $dependency_libs; do
24138 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24139 if test "X$additional_libdir" != "X/usr/lib"; then
24141 if test "X$additional_libdir" = "X/usr/local/lib"; then
24142 if test -n "$GCC"; then
24144 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24148 if test -z "$haveit"; then
24150 for x in $LDFLAGS $LIBINTL; do
24152 acl_save_prefix="$prefix"
24153 prefix="$acl_final_prefix"
24154 acl_save_exec_prefix="$exec_prefix"
24155 exec_prefix="$acl_final_exec_prefix"
24157 exec_prefix="$acl_save_exec_prefix"
24158 prefix="$acl_save_prefix"
24160 if test "X$x" = "X-L$additional_libdir"; then
24165 if test -z "$haveit"; then
24166 if test -d "$additional_libdir"; then
24167 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24171 for x in $LDFLAGS $LTLIBINTL; do
24173 acl_save_prefix="$prefix"
24174 prefix="$acl_final_prefix"
24175 acl_save_exec_prefix="$exec_prefix"
24176 exec_prefix="$acl_final_exec_prefix"
24178 exec_prefix="$acl_save_exec_prefix"
24179 prefix="$acl_save_prefix"
24181 if test "X$x" = "X-L$additional_libdir"; then
24186 if test -z "$haveit"; then
24187 if test -d "$additional_libdir"; then
24188 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24195 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24196 if test "$enable_rpath" != no; then
24198 for x in $rpathdirs; do
24199 if test "X$x" = "X$dir"; then
24204 if test -z "$haveit"; then
24205 rpathdirs="$rpathdirs $dir"
24208 for x in $ltrpathdirs; do
24209 if test "X$x" = "X$dir"; then
24214 if test -z "$haveit"; then
24215 ltrpathdirs="$ltrpathdirs $dir"
24220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24223 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24226 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24227 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24233 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24234 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24240 if test "X$rpathdirs" != "X"; then
24241 if test -n "$hardcode_libdir_separator"; then
24243 for found_dir in $rpathdirs; do
24244 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24246 acl_save_libdir="$libdir"
24248 eval flag=\"$hardcode_libdir_flag_spec\"
24249 libdir="$acl_save_libdir"
24250 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24252 for found_dir in $rpathdirs; do
24253 acl_save_libdir="$libdir"
24254 libdir="$found_dir"
24255 eval flag=\"$hardcode_libdir_flag_spec\"
24256 libdir="$acl_save_libdir"
24257 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24261 if test "X$ltrpathdirs" != "X"; then
24262 for found_dir in $ltrpathdirs; do
24263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24267 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24268 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24269 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
24270 $as_echo_n "(cached) " >&6
24272 gt_save_CPPFLAGS="$CPPFLAGS"
24273 CPPFLAGS="$CPPFLAGS $INCINTL"
24274 gt_save_LIBS="$LIBS"
24275 LIBS="$LIBS $LIBINTL"
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24282 #include <libintl.h>
24283 extern int _nl_msg_cat_cntr;
24288 const char *_nl_expand_alias (const char *);
24292 bindtextdomain ("", "");
24293 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24298 rm -f conftest.$ac_objext conftest$ac_exeext
24299 if { (ac_try="$ac_link"
24300 case "(($ac_try" in
24301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302 *) ac_try_echo=$ac_try;;
24304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24305 $as_echo "$ac_try_echo") >&5
24306 (eval "$ac_link") 2>conftest.er1
24308 grep -v '^ *+' conftest.er1 >conftest.err
24310 cat conftest.err >&5
24311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); } && {
24313 test -z "$ac_c_werror_flag" ||
24314 test ! -s conftest.err
24315 } && test -s conftest$ac_exeext && {
24316 test "$cross_compiling" = yes ||
24317 $as_test_x conftest$ac_exeext
24319 gt_cv_func_gnugettext1_libintl=yes
24321 $as_echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24324 gt_cv_func_gnugettext1_libintl=no
24327 rm -rf conftest.dSYM
24328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24329 conftest$ac_exeext conftest.$ac_ext
24330 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
24331 LIBS="$LIBS $LIBICONV"
24332 cat >conftest.$ac_ext <<_ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 #include <libintl.h>
24339 extern int _nl_msg_cat_cntr;
24344 const char *_nl_expand_alias (const char *);
24348 bindtextdomain ("", "");
24349 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24354 rm -f conftest.$ac_objext conftest$ac_exeext
24355 if { (ac_try="$ac_link"
24356 case "(($ac_try" in
24357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358 *) ac_try_echo=$ac_try;;
24360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24361 $as_echo "$ac_try_echo") >&5
24362 (eval "$ac_link") 2>conftest.er1
24364 grep -v '^ *+' conftest.er1 >conftest.err
24366 cat conftest.err >&5
24367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); } && {
24369 test -z "$ac_c_werror_flag" ||
24370 test ! -s conftest.err
24371 } && test -s conftest$ac_exeext && {
24372 test "$cross_compiling" = yes ||
24373 $as_test_x conftest$ac_exeext
24375 LIBINTL="$LIBINTL $LIBICONV"
24376 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24377 gt_cv_func_gnugettext1_libintl=yes
24380 $as_echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24386 rm -rf conftest.dSYM
24387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24388 conftest$ac_exeext conftest.$ac_ext
24390 CPPFLAGS="$gt_save_CPPFLAGS"
24391 LIBS="$gt_save_LIBS"
24393 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
24394 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
24397 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
24398 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
24399 && test "$PACKAGE" != gettext-runtime \
24400 && test "$PACKAGE" != gettext-tools; }; then
24401 gt_use_preinstalled_gnugettext=yes
24409 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
24410 nls_cv_use_gnu_gettext=yes
24414 if test "$nls_cv_use_gnu_gettext" = "yes"; then
24415 BUILD_INCLUDED_LIBINTL=yes
24416 USE_INCLUDED_LIBINTL=yes
24417 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
24418 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
24419 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
24423 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24424 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24429 if test -n "$INTL_MACOSX_LIBS"; then
24430 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24431 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24432 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24433 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24437 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24438 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24440 cat >>confdefs.h <<\_ACEOF
24441 #define ENABLE_NLS 1
24449 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
24450 $as_echo_n "checking whether to use NLS... " >&6; }
24451 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
24452 $as_echo "$USE_NLS" >&6; }
24453 if test "$USE_NLS" = "yes"; then
24454 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
24455 $as_echo_n "checking where the gettext function comes from... " >&6; }
24456 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24457 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24458 gt_source="external libintl"
24463 gt_source="included intl directory"
24465 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
24466 $as_echo "$gt_source" >&6; }
24469 if test "$USE_NLS" = "yes"; then
24471 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24472 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24473 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
24474 $as_echo_n "checking how to link with libintl... " >&6; }
24475 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
24476 $as_echo "$LIBINTL" >&6; }
24478 for element in $INCINTL; do
24480 for x in $CPPFLAGS; do
24482 acl_save_prefix="$prefix"
24483 prefix="$acl_final_prefix"
24484 acl_save_exec_prefix="$exec_prefix"
24485 exec_prefix="$acl_final_exec_prefix"
24487 exec_prefix="$acl_save_exec_prefix"
24488 prefix="$acl_save_prefix"
24490 if test "X$x" = "X$element"; then
24495 if test -z "$haveit"; then
24496 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_GETTEXT 1
24508 cat >>confdefs.h <<\_ACEOF
24509 #define HAVE_DCGETTEXT 1
24518 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
24519 BUILD_INCLUDED_LIBINTL=yes
24526 nls_cv_header_intl=
24527 nls_cv_header_libgt=
24539 if test "$USE_INCLUDED_LIBINTL" = yes; then
24540 INTLOBJS="\$(GETTOBJS)"
24544 INTL_LIBTOOL_SUFFIX_PREFIX=
24548 INTLLIBS="$LIBINTL"
24557 support_smartalloc=yes
24558 support_readline=yes
24562 support_wx_console=no
24563 support_tray_monitor=no
24568 support_static_tools=no
24569 support_static_fd=no
24570 support_static_sd=no
24571 support_static_dir=no
24572 support_static_cons=no
24574 build_client_only=no
24581 # Check whether --enable-gnome was given.
24582 if test "${enable_gnome+set}" = set; then
24583 enableval=$enable_gnome;
24584 if test x$enableval = xyes; then
24593 if test x$support_gnome = xyes; then
24594 { { $as_echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24595 $as_echo "$as_me: error: bgnome-console no longer supported" >&2;}
24596 { (exit 1); exit 1; }; }
24597 { { $as_echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24598 $as_echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24599 { (exit 1); exit 1; }; }
24601 # AC_SUBST(GNOME_DIR)
24603 # Check whether --enable-bat was given.
24604 if test "${enable_bat+set}" = set; then
24605 enableval=$enable_bat;
24606 if test x$enableval = xyes; then
24608 cat >>confdefs.h <<\_ACEOF
24620 if test x$support_bat = xyes; then
24621 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24623 if test $pkg = 0; then
24624 BAT_DIR=src/qt-console
24626 { { $as_echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24627 $as_echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24628 { (exit 1); exit 1; }; }
24646 # Check whether --enable-bwx-console was given.
24647 if test "${enable_bwx_console+set}" = set; then
24648 enableval=$enable_bwx_console;
24649 if test x$enableval = xyes; then
24650 support_wx_console=yes
24658 if test x$support_wx_console = xyes; then
24659 abc=`$WXCONFIG $WXFLAGS --cppflags`
24661 if test $pkg = 0; then
24662 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24663 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24664 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24668 WX_DIR="src/wx-console"
24671 echo "wx-config program not found. bwx-console disabled."
24673 support_wx_console=no
24678 # Check whether --enable-tray-monitor was given.
24679 if test "${enable_tray_monitor+set}" = set; then
24680 enableval=$enable_tray_monitor;
24681 if test x$enableval = xyes; then
24682 support_tray_monitor=yes
24690 if test x$support_tray_monitor = xyes; then
24691 abc=`$PKGCONFIG --exists gtk+-2.0`
24693 if test $pkg = 0; then
24694 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24695 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24698 TRAY_MONITOR_DIR=src/tray-monitor
24699 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24701 if test $pkg = 0; then
24703 cat >>confdefs.h <<\_ACEOF
24704 #define HAVE_GTK_2_4 1
24712 # Check whether --enable-smartalloc was given.
24713 if test "${enable_smartalloc+set}" = set; then
24714 enableval=$enable_smartalloc;
24715 if test x$enableval = xno; then
24716 support_smartalloc=no
24723 if test x$support_smartalloc = xyes; then
24725 cat >>confdefs.h <<\_ACEOF
24726 #define SMARTALLOC 1
24731 # Check whether --enable-lockmgr was given.
24732 if test "${enable_lockmgr+set}" = set; then
24733 enableval=$enable_lockmgr;
24734 if test x$enableval = xyes; then
24735 support_lockmgr=yes
24742 if test x$support_lockmgr = xyes; then
24744 cat >>confdefs.h <<\_ACEOF
24745 #define _USE_LOCKMGR 1
24751 # Check whether --enable-static-tools was given.
24752 if test "${enable_static_tools+set}" = set; then
24753 enableval=$enable_static_tools;
24754 if test x$enableval = xyes; then
24755 if test x$use_libtool = xyes; then
24756 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24757 please rerun configure with --disable-libtool" >&5
24758 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24759 please rerun configure with --disable-libtool" >&2;}
24760 { (exit 1); exit 1; }; }
24762 support_static_tools=yes
24770 if test x$support_static_tools = xyes; then
24771 TTOOL_LDFLAGS="-static"
24775 # Check whether --enable-static-fd was given.
24776 if test "${enable_static_fd+set}" = set; then
24777 enableval=$enable_static_fd;
24778 if test x$enableval = xyes; then
24779 if test x$use_libtool = xyes; then
24780 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24781 please rerun configure with --disable-libtool" >&5
24782 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24783 please rerun configure with --disable-libtool" >&2;}
24784 { (exit 1); exit 1; }; }
24786 support_static_fd=yes
24794 if test x$support_static_fd = xyes; then
24795 STATIC_FD="static-bacula-fd"
24799 # Check whether --enable-static-sd was given.
24800 if test "${enable_static_sd+set}" = set; then
24801 enableval=$enable_static_sd;
24802 if test x$enableval = xyes; then
24803 if test x$use_libtool = xyes; then
24804 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24805 please rerun configure with --disable-libtool" >&5
24806 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24807 please rerun configure with --disable-libtool" >&2;}
24808 { (exit 1); exit 1; }; }
24810 support_static_sd=yes
24818 if test x$support_static_sd = xyes; then
24819 STATIC_SD="static-bacula-sd"
24823 # Check whether --enable-static-dir was given.
24824 if test "${enable_static_dir+set}" = set; then
24825 enableval=$enable_static_dir;
24826 if test x$enableval = xyes; then
24827 if test x$use_libtool = xyes; then
24828 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24829 please rerun configure with --disable-libtool" >&5
24830 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24831 please rerun configure with --disable-libtool" >&2;}
24832 { (exit 1); exit 1; }; }
24834 support_static_dir=yes
24842 if test x$support_static_dir = xyes; then
24843 STATIC_DIR="static-bacula-dir"
24847 # Check whether --enable-static-cons was given.
24848 if test "${enable_static_cons+set}" = set; then
24849 enableval=$enable_static_cons;
24850 if test x$enableval = xyes; then
24851 if test x$use_libtool = xyes; then
24852 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24853 please rerun configure with --disable-libtool" >&5
24854 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24855 please rerun configure with --disable-libtool" >&2;}
24856 { (exit 1); exit 1; }; }
24858 support_static_cons=yes
24868 if test x$support_static_cons = xyes; then
24869 STATIC_CONS="static-bconsole"
24870 STATIC_GNOME_CONS="static-bgnome-console"
24871 STATIC_WX_CONS="static-bwx-console"
24877 # Check whether --enable-client-only was given.
24878 if test "${enable_client_only+set}" = set; then
24879 enableval=$enable_client_only;
24880 if test x$enableval = xyes; then
24881 build_client_only=yes
24889 if test x$build_client_only = xno; then
24896 # Check whether --enable-build-dird was given.
24897 if test "${enable_build_dird+set}" = set; then
24898 enableval=$enable_build_dird;
24899 if test x$enableval = xno; then
24906 if test x$build_dird = xyes; then
24907 DIRD_DIR="src/dird"
24908 DIR_TOOLS="DIRTOOLS"
24911 DIR_TOOLS="NODIRTOOLS"
24916 # Check whether --enable-build-stored was given.
24917 if test "${enable_build_stored+set}" = set; then
24918 enableval=$enable_build_stored;
24919 if test x$enableval = xno; then
24926 if test x$build_stored = xyes; then
24927 STORED_DIR="src/stored"
24933 # Check whether --enable-conio was given.
24934 if test "${enable_conio+set}" = set; then
24935 enableval=$enable_conio;
24936 if test x$enableval = xno; then
24946 # Check whether --enable-ipv6 was given.
24947 if test "${enable_ipv6+set}" = set; then
24948 enableval=$enable_ipv6;
24949 if test x$enableval = xno; then
24957 if test x$support_ipv6 = xyes; then
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 #include <sys/types.h>
24965 #include <sys/socket.h>
24966 #include <netinet/in.h>
24970 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24975 rm -f conftest.$ac_objext conftest$ac_exeext
24976 if { (ac_try="$ac_link"
24977 case "(($ac_try" in
24978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979 *) ac_try_echo=$ac_try;;
24981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24982 $as_echo "$ac_try_echo") >&5
24983 (eval "$ac_link") 2>conftest.er1
24985 grep -v '^ *+' conftest.er1 >conftest.err
24987 cat conftest.err >&5
24988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); } && {
24990 test -z "$ac_c_werror_flag" ||
24991 test ! -s conftest.err
24992 } && test -s conftest$ac_exeext && {
24993 test "$cross_compiling" = yes ||
24994 $as_test_x conftest$ac_exeext
24998 $as_echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25004 rm -rf conftest.dSYM
25005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25006 conftest$ac_exeext conftest.$ac_ext
25009 if test x$support_ipv6 = xyes; then
25011 cat >>confdefs.h <<\_ACEOF
25012 #define HAVE_IPV6 1
25018 if test "${ac_cv_header_curses_h+set}" = set; then
25019 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25020 $as_echo_n "checking for curses.h... " >&6; }
25021 if test "${ac_cv_header_curses_h+set}" = set; then
25022 $as_echo_n "(cached) " >&6
25024 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25025 $as_echo "$ac_cv_header_curses_h" >&6; }
25027 # Is the header compilable?
25028 { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
25029 $as_echo_n "checking curses.h usability... " >&6; }
25030 cat >conftest.$ac_ext <<_ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25036 $ac_includes_default
25037 #include <curses.h>
25039 rm -f conftest.$ac_objext
25040 if { (ac_try="$ac_compile"
25041 case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25046 $as_echo "$ac_try_echo") >&5
25047 (eval "$ac_compile") 2>conftest.er1
25049 grep -v '^ *+' conftest.er1 >conftest.err
25051 cat conftest.err >&5
25052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } && {
25054 test -z "$ac_c_werror_flag" ||
25055 test ! -s conftest.err
25056 } && test -s conftest.$ac_objext; then
25057 ac_header_compiler=yes
25059 $as_echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25062 ac_header_compiler=no
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25067 $as_echo "$ac_header_compiler" >&6; }
25069 # Is the header present?
25070 { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
25071 $as_echo_n "checking curses.h presence... " >&6; }
25072 cat >conftest.$ac_ext <<_ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h. */
25078 #include <curses.h>
25080 if { (ac_try="$ac_cpp conftest.$ac_ext"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25086 $as_echo "$ac_try_echo") >&5
25087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25089 grep -v '^ *+' conftest.er1 >conftest.err
25091 cat conftest.err >&5
25092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } >/dev/null && {
25094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25095 test ! -s conftest.err
25097 ac_header_preproc=yes
25099 $as_echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25102 ac_header_preproc=no
25105 rm -f conftest.err conftest.$ac_ext
25106 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25107 $as_echo "$ac_header_preproc" >&6; }
25109 # So? What about this header?
25110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25112 { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
25113 $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25114 { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
25115 $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
25116 ac_header_preproc=yes
25119 { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
25120 $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
25121 { $as_echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
25122 $as_echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
25123 { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
25124 $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
25125 { $as_echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
25126 $as_echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
25127 { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
25128 $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
25129 { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
25130 $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
25134 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25135 $as_echo_n "checking for curses.h... " >&6; }
25136 if test "${ac_cv_header_curses_h+set}" = set; then
25137 $as_echo_n "(cached) " >&6
25139 ac_cv_header_curses_h=$ac_header_preproc
25141 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25142 $as_echo "$ac_cv_header_curses_h" >&6; }
25145 if test "x$ac_cv_header_curses_h" = x""yes; then
25147 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
25148 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
25149 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
25150 $as_echo_n "(cached) " >&6
25152 ac_check_lib_save_LIBS=$LIBS
25153 LIBS="-ltinfo $LIBS"
25154 cat >conftest.$ac_ext <<_ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h. */
25161 /* Override any GCC internal prototype to avoid an error.
25162 Use char because int might match the return type of a GCC
25163 builtin and then its argument prototype would still apply. */
25176 rm -f conftest.$ac_objext conftest$ac_exeext
25177 if { (ac_try="$ac_link"
25178 case "(($ac_try" in
25179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180 *) ac_try_echo=$ac_try;;
25182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25183 $as_echo "$ac_try_echo") >&5
25184 (eval "$ac_link") 2>conftest.er1
25186 grep -v '^ *+' conftest.er1 >conftest.err
25188 cat conftest.err >&5
25189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } && {
25191 test -z "$ac_c_werror_flag" ||
25192 test ! -s conftest.err
25193 } && test -s conftest$ac_exeext && {
25194 test "$cross_compiling" = yes ||
25195 $as_test_x conftest$ac_exeext
25197 ac_cv_lib_tinfo_tgetent=yes
25199 $as_echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25202 ac_cv_lib_tinfo_tgetent=no
25205 rm -rf conftest.dSYM
25206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25207 conftest$ac_exeext conftest.$ac_ext
25208 LIBS=$ac_check_lib_save_LIBS
25210 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
25211 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
25212 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
25216 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
25217 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
25218 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
25219 $as_echo_n "(cached) " >&6
25221 ac_check_lib_save_LIBS=$LIBS
25222 LIBS="-lncurses $LIBS"
25223 cat >conftest.$ac_ext <<_ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25230 /* Override any GCC internal prototype to avoid an error.
25231 Use char because int might match the return type of a GCC
25232 builtin and then its argument prototype would still apply. */
25245 rm -f conftest.$ac_objext conftest$ac_exeext
25246 if { (ac_try="$ac_link"
25247 case "(($ac_try" in
25248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25249 *) ac_try_echo=$ac_try;;
25251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25252 $as_echo "$ac_try_echo") >&5
25253 (eval "$ac_link") 2>conftest.er1
25255 grep -v '^ *+' conftest.er1 >conftest.err
25257 cat conftest.err >&5
25258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); } && {
25260 test -z "$ac_c_werror_flag" ||
25261 test ! -s conftest.err
25262 } && test -s conftest$ac_exeext && {
25263 test "$cross_compiling" = yes ||
25264 $as_test_x conftest$ac_exeext
25266 ac_cv_lib_ncurses_tgetent=yes
25268 $as_echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25271 ac_cv_lib_ncurses_tgetent=no
25274 rm -rf conftest.dSYM
25275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25276 conftest$ac_exeext conftest.$ac_ext
25277 LIBS=$ac_check_lib_save_LIBS
25279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
25280 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
25281 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
25282 TERM_LIB="-lncurses"
25285 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
25286 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
25287 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
25288 $as_echo_n "(cached) " >&6
25290 ac_check_lib_save_LIBS=$LIBS
25291 LIBS="-ltermcap $LIBS"
25292 cat >conftest.$ac_ext <<_ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25299 /* Override any GCC internal prototype to avoid an error.
25300 Use char because int might match the return type of a GCC
25301 builtin and then its argument prototype would still apply. */
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (ac_try="$ac_link"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25321 $as_echo "$ac_try_echo") >&5
25322 (eval "$ac_link") 2>conftest.er1
25324 grep -v '^ *+' conftest.er1 >conftest.err
25326 cat conftest.err >&5
25327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } && {
25329 test -z "$ac_c_werror_flag" ||
25330 test ! -s conftest.err
25331 } && test -s conftest$ac_exeext && {
25332 test "$cross_compiling" = yes ||
25333 $as_test_x conftest$ac_exeext
25335 ac_cv_lib_termcap_tgetent=yes
25337 $as_echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25340 ac_cv_lib_termcap_tgetent=no
25343 rm -rf conftest.dSYM
25344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25345 conftest$ac_exeext conftest.$ac_ext
25346 LIBS=$ac_check_lib_save_LIBS
25348 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
25349 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
25350 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
25351 TERM_LIB="-ltermcap"
25363 for ac_header in curses.h
25365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25368 $as_echo_n "checking for $ac_header... " >&6; }
25369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25370 $as_echo_n "(cached) " >&6
25372 ac_res=`eval 'as_val=${'$as_ac_Header'}
25373 $as_echo "$as_val"'`
25374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25375 $as_echo "$ac_res" >&6; }
25377 # Is the header compilable?
25378 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25379 $as_echo_n "checking $ac_header usability... " >&6; }
25380 cat >conftest.$ac_ext <<_ACEOF
25383 cat confdefs.h >>conftest.$ac_ext
25384 cat >>conftest.$ac_ext <<_ACEOF
25385 /* end confdefs.h. */
25386 $ac_includes_default
25387 #include <$ac_header>
25389 rm -f conftest.$ac_objext
25390 if { (ac_try="$ac_compile"
25391 case "(($ac_try" in
25392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393 *) ac_try_echo=$ac_try;;
25395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25396 $as_echo "$ac_try_echo") >&5
25397 (eval "$ac_compile") 2>conftest.er1
25399 grep -v '^ *+' conftest.er1 >conftest.err
25401 cat conftest.err >&5
25402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && {
25404 test -z "$ac_c_werror_flag" ||
25405 test ! -s conftest.err
25406 } && test -s conftest.$ac_objext; then
25407 ac_header_compiler=yes
25409 $as_echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25412 ac_header_compiler=no
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25417 $as_echo "$ac_header_compiler" >&6; }
25419 # Is the header present?
25420 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25421 $as_echo_n "checking $ac_header presence... " >&6; }
25422 cat >conftest.$ac_ext <<_ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25428 #include <$ac_header>
25430 if { (ac_try="$ac_cpp conftest.$ac_ext"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25436 $as_echo "$ac_try_echo") >&5
25437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25439 grep -v '^ *+' conftest.er1 >conftest.err
25441 cat conftest.err >&5
25442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); } >/dev/null && {
25444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25445 test ! -s conftest.err
25447 ac_header_preproc=yes
25449 $as_echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25452 ac_header_preproc=no
25455 rm -f conftest.err conftest.$ac_ext
25456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25457 $as_echo "$ac_header_preproc" >&6; }
25459 # So? What about this header?
25460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25463 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25466 ac_header_preproc=yes
25469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25470 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25472 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25474 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25476 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25478 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25480 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25485 $as_echo_n "checking for $ac_header... " >&6; }
25486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25487 $as_echo_n "(cached) " >&6
25489 eval "$as_ac_Header=\$ac_header_preproc"
25491 ac_res=`eval 'as_val=${'$as_ac_Header'}
25492 $as_echo "$as_val"'`
25493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25494 $as_echo "$ac_res" >&6; }
25497 as_val=`eval 'as_val=${'$as_ac_Header'}
25498 $as_echo "$as_val"'`
25499 if test "x$as_val" = x""yes; then
25500 cat >>confdefs.h <<_ACEOF
25501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25508 if test "${ac_cv_header_term_h+set}" = set; then
25509 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25510 $as_echo_n "checking for term.h... " >&6; }
25511 if test "${ac_cv_header_term_h+set}" = set; then
25512 $as_echo_n "(cached) " >&6
25514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25515 $as_echo "$ac_cv_header_term_h" >&6; }
25517 # Is the header compilable?
25518 { $as_echo "$as_me:$LINENO: checking term.h usability" >&5
25519 $as_echo_n "checking term.h usability... " >&6; }
25520 cat >conftest.$ac_ext <<_ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h. */
25526 $ac_includes_default
25529 rm -f conftest.$ac_objext
25530 if { (ac_try="$ac_compile"
25531 case "(($ac_try" in
25532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25533 *) ac_try_echo=$ac_try;;
25535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25536 $as_echo "$ac_try_echo") >&5
25537 (eval "$ac_compile") 2>conftest.er1
25539 grep -v '^ *+' conftest.er1 >conftest.err
25541 cat conftest.err >&5
25542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); } && {
25544 test -z "$ac_c_werror_flag" ||
25545 test ! -s conftest.err
25546 } && test -s conftest.$ac_objext; then
25547 ac_header_compiler=yes
25549 $as_echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25552 ac_header_compiler=no
25555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25557 $as_echo "$ac_header_compiler" >&6; }
25559 # Is the header present?
25560 { $as_echo "$as_me:$LINENO: checking term.h presence" >&5
25561 $as_echo_n "checking term.h presence... " >&6; }
25562 cat >conftest.$ac_ext <<_ACEOF
25565 cat confdefs.h >>conftest.$ac_ext
25566 cat >>conftest.$ac_ext <<_ACEOF
25567 /* end confdefs.h. */
25570 if { (ac_try="$ac_cpp conftest.$ac_ext"
25571 case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25576 $as_echo "$ac_try_echo") >&5
25577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25579 grep -v '^ *+' conftest.er1 >conftest.err
25581 cat conftest.err >&5
25582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } >/dev/null && {
25584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25585 test ! -s conftest.err
25587 ac_header_preproc=yes
25589 $as_echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25592 ac_header_preproc=no
25595 rm -f conftest.err conftest.$ac_ext
25596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25597 $as_echo "$ac_header_preproc" >&6; }
25599 # So? What about this header?
25600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25602 { $as_echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
25603 $as_echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25604 { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
25605 $as_echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
25606 ac_header_preproc=yes
25609 { $as_echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
25610 $as_echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
25611 { $as_echo "$as_me:$LINENO: WARNING: term.h: check for missing prerequisite headers?" >&5
25612 $as_echo "$as_me: WARNING: term.h: check for missing prerequisite headers?" >&2;}
25613 { $as_echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
25614 $as_echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
25615 { $as_echo "$as_me:$LINENO: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&5
25616 $as_echo "$as_me: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&2;}
25617 { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
25618 $as_echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
25619 { $as_echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
25620 $as_echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
25624 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25625 $as_echo_n "checking for term.h... " >&6; }
25626 if test "${ac_cv_header_term_h+set}" = set; then
25627 $as_echo_n "(cached) " >&6
25629 ac_cv_header_term_h=$ac_header_preproc
25631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25632 $as_echo "$ac_cv_header_term_h" >&6; }
25635 if test "x$ac_cv_header_term_h" = x""yes; then
25636 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25637 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
25638 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25639 $as_echo_n "(cached) " >&6
25641 ac_check_lib_save_LIBS=$LIBS
25642 LIBS="-lcurses $LIBS"
25643 cat >conftest.$ac_ext <<_ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h. */
25650 /* Override any GCC internal prototype to avoid an error.
25651 Use char because int might match the return type of a GCC
25652 builtin and then its argument prototype would still apply. */
25665 rm -f conftest.$ac_objext conftest$ac_exeext
25666 if { (ac_try="$ac_link"
25667 case "(($ac_try" in
25668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25669 *) ac_try_echo=$ac_try;;
25671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25672 $as_echo "$ac_try_echo") >&5
25673 (eval "$ac_link") 2>conftest.er1
25675 grep -v '^ *+' conftest.er1 >conftest.err
25677 cat conftest.err >&5
25678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } && {
25680 test -z "$ac_c_werror_flag" ||
25681 test ! -s conftest.err
25682 } && test -s conftest$ac_exeext && {
25683 test "$cross_compiling" = yes ||
25684 $as_test_x conftest$ac_exeext
25686 ac_cv_lib_curses_tgetent=yes
25688 $as_echo "$as_me: failed program was:" >&5
25689 sed 's/^/| /' conftest.$ac_ext >&5
25691 ac_cv_lib_curses_tgetent=no
25694 rm -rf conftest.dSYM
25695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25696 conftest$ac_exeext conftest.$ac_ext
25697 LIBS=$ac_check_lib_save_LIBS
25699 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25700 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
25701 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
25702 TERM_LIB="-lcurses"
25716 if test x$support_conio = xyes; then
25717 if test x$TERM_LIB != x; then
25718 CONS_LIBS=$TERM_LIB
25722 support_readline=no
25724 cat >>confdefs.h <<\_ACEOF
25725 #define HAVE_CONIO 1
25729 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25734 # Check whether --enable-readline was given.
25735 if test "${enable_readline+set}" = set; then
25736 enableval=$enable_readline;
25737 if test x$enableval = xno; then
25738 support_readline=no
25744 if test x$TERM_LIB = x ; then
25745 support_readline=no
25750 if test x$support_readline = xyes; then
25752 # Check whether --with-readline was given.
25753 if test "${with_readline+set}" = set; then
25754 withval=$with_readline;
25755 case "$with_readline" in
25760 if test -f ${with_readline}/readline.h; then
25761 CONS_INC="-I${with_readline}"
25762 CONS_LDFLAGS="-L$with_readline"
25763 elif test -f ${with_readline}/include/readline/readline.h; then
25764 CONS_INC="-I${with_readline}/include/readline"
25765 CONS_LDFLAGS="-L${with_readline}/lib"
25766 with_readline="${with_readline}/include/readline"
25768 with_readline="/usr/include/readline"
25771 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25773 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25774 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25776 $as_echo_n "(cached) " >&6
25778 ac_res=`eval 'as_val=${'$as_ac_Header'}
25779 $as_echo "$as_val"'`
25780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25781 $as_echo "$ac_res" >&6; }
25783 # Is the header compilable?
25784 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25785 $as_echo_n "checking ${with_readline}/readline.h usability... " >&6; }
25786 cat >conftest.$ac_ext <<_ACEOF
25789 cat confdefs.h >>conftest.$ac_ext
25790 cat >>conftest.$ac_ext <<_ACEOF
25791 /* end confdefs.h. */
25792 $ac_includes_default
25793 #include <${with_readline}/readline.h>
25795 rm -f conftest.$ac_objext
25796 if { (ac_try="$ac_compile"
25797 case "(($ac_try" in
25798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25799 *) ac_try_echo=$ac_try;;
25801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25802 $as_echo "$ac_try_echo") >&5
25803 (eval "$ac_compile") 2>conftest.er1
25805 grep -v '^ *+' conftest.er1 >conftest.err
25807 cat conftest.err >&5
25808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } && {
25810 test -z "$ac_c_werror_flag" ||
25811 test ! -s conftest.err
25812 } && test -s conftest.$ac_objext; then
25813 ac_header_compiler=yes
25815 $as_echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818 ac_header_compiler=no
25821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25823 $as_echo "$ac_header_compiler" >&6; }
25825 # Is the header present?
25826 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25827 $as_echo_n "checking ${with_readline}/readline.h presence... " >&6; }
25828 cat >conftest.$ac_ext <<_ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25834 #include <${with_readline}/readline.h>
25836 if { (ac_try="$ac_cpp conftest.$ac_ext"
25837 case "(($ac_try" in
25838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25839 *) ac_try_echo=$ac_try;;
25841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25842 $as_echo "$ac_try_echo") >&5
25843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25845 grep -v '^ *+' conftest.er1 >conftest.err
25847 cat conftest.err >&5
25848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); } >/dev/null && {
25850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25851 test ! -s conftest.err
25853 ac_header_preproc=yes
25855 $as_echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25858 ac_header_preproc=no
25861 rm -f conftest.err conftest.$ac_ext
25862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25863 $as_echo "$ac_header_preproc" >&6; }
25865 # So? What about this header?
25866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25868 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25869 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25870 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25871 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25872 ac_header_preproc=yes
25875 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25876 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25877 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25878 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25879 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25880 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25881 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25882 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25883 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25884 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25885 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25886 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25890 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25891 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25893 $as_echo_n "(cached) " >&6
25895 eval "$as_ac_Header=\$ac_header_preproc"
25897 ac_res=`eval 'as_val=${'$as_ac_Header'}
25898 $as_echo "$as_val"'`
25899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25900 $as_echo "$ac_res" >&6; }
25903 as_val=`eval 'as_val=${'$as_ac_Header'}
25904 $as_echo "$as_val"'`
25905 if test "x$as_val" = x""yes; then
25908 cat >>confdefs.h <<\_ACEOF
25909 #define HAVE_READLINE 1
25912 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25918 echo "readline.h not found. readline turned off ..."
25930 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25931 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25932 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25933 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25934 $as_echo_n "(cached) " >&6
25936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25937 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25939 # Is the header compilable?
25940 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25941 $as_echo_n "checking /usr/include/readline/readline.h usability... " >&6; }
25942 cat >conftest.$ac_ext <<_ACEOF
25945 cat confdefs.h >>conftest.$ac_ext
25946 cat >>conftest.$ac_ext <<_ACEOF
25947 /* end confdefs.h. */
25948 $ac_includes_default
25949 #include </usr/include/readline/readline.h>
25951 rm -f conftest.$ac_objext
25952 if { (ac_try="$ac_compile"
25953 case "(($ac_try" in
25954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955 *) ac_try_echo=$ac_try;;
25957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25958 $as_echo "$ac_try_echo") >&5
25959 (eval "$ac_compile") 2>conftest.er1
25961 grep -v '^ *+' conftest.er1 >conftest.err
25963 cat conftest.err >&5
25964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); } && {
25966 test -z "$ac_c_werror_flag" ||
25967 test ! -s conftest.err
25968 } && test -s conftest.$ac_objext; then
25969 ac_header_compiler=yes
25971 $as_echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25974 ac_header_compiler=no
25977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25978 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25979 $as_echo "$ac_header_compiler" >&6; }
25981 # Is the header present?
25982 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25983 $as_echo_n "checking /usr/include/readline/readline.h presence... " >&6; }
25984 cat >conftest.$ac_ext <<_ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h. */
25990 #include </usr/include/readline/readline.h>
25992 if { (ac_try="$ac_cpp conftest.$ac_ext"
25993 case "(($ac_try" in
25994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995 *) ac_try_echo=$ac_try;;
25997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25998 $as_echo "$ac_try_echo") >&5
25999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26001 grep -v '^ *+' conftest.er1 >conftest.err
26003 cat conftest.err >&5
26004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } >/dev/null && {
26006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26007 test ! -s conftest.err
26009 ac_header_preproc=yes
26011 $as_echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26014 ac_header_preproc=no
26017 rm -f conftest.err conftest.$ac_ext
26018 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26019 $as_echo "$ac_header_preproc" >&6; }
26021 # So? What about this header?
26022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26024 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
26025 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26026 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
26027 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
26028 ac_header_preproc=yes
26031 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
26032 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
26033 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
26034 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
26035 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
26036 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
26037 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
26038 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
26039 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
26040 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
26041 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
26042 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
26046 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
26047 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
26048 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
26049 $as_echo_n "(cached) " >&6
26051 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
26053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
26054 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
26057 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then
26060 cat >>confdefs.h <<\_ACEOF
26061 #define HAVE_READLINE 1
26065 CONS_INC="-I/usr/include/readline"
26066 CONS_LIBS="-lreadline $TERM_LIB"
26070 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
26071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26072 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
26073 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
26074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26075 $as_echo_n "(cached) " >&6
26077 ac_res=`eval 'as_val=${'$as_ac_Header'}
26078 $as_echo "$as_val"'`
26079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26080 $as_echo "$ac_res" >&6; }
26082 # Is the header compilable?
26083 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
26084 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h usability... " >&6; }
26085 cat >conftest.$ac_ext <<_ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h. */
26091 $ac_includes_default
26092 #include <${TOP_DIR}/depkgs/readline/readline.h>
26094 rm -f conftest.$ac_objext
26095 if { (ac_try="$ac_compile"
26096 case "(($ac_try" in
26097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098 *) ac_try_echo=$ac_try;;
26100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26101 $as_echo "$ac_try_echo") >&5
26102 (eval "$ac_compile") 2>conftest.er1
26104 grep -v '^ *+' conftest.er1 >conftest.err
26106 cat conftest.err >&5
26107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } && {
26109 test -z "$ac_c_werror_flag" ||
26110 test ! -s conftest.err
26111 } && test -s conftest.$ac_objext; then
26112 ac_header_compiler=yes
26114 $as_echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26117 ac_header_compiler=no
26120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26121 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26122 $as_echo "$ac_header_compiler" >&6; }
26124 # Is the header present?
26125 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
26126 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h presence... " >&6; }
26127 cat >conftest.$ac_ext <<_ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h. */
26133 #include <${TOP_DIR}/depkgs/readline/readline.h>
26135 if { (ac_try="$ac_cpp conftest.$ac_ext"
26136 case "(($ac_try" in
26137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138 *) ac_try_echo=$ac_try;;
26140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26141 $as_echo "$ac_try_echo") >&5
26142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26144 grep -v '^ *+' conftest.er1 >conftest.err
26146 cat conftest.err >&5
26147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); } >/dev/null && {
26149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26150 test ! -s conftest.err
26152 ac_header_preproc=yes
26154 $as_echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26157 ac_header_preproc=no
26160 rm -f conftest.err conftest.$ac_ext
26161 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26162 $as_echo "$ac_header_preproc" >&6; }
26164 # So? What about this header?
26165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26167 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
26168 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26169 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
26170 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
26171 ac_header_preproc=yes
26174 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
26175 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
26176 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
26177 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
26178 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
26179 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
26180 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
26181 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
26182 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
26183 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
26184 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
26185 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
26189 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
26190 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
26191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26192 $as_echo_n "(cached) " >&6
26194 eval "$as_ac_Header=\$ac_header_preproc"
26196 ac_res=`eval 'as_val=${'$as_ac_Header'}
26197 $as_echo "$as_val"'`
26198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26199 $as_echo "$ac_res" >&6; }
26202 as_val=`eval 'as_val=${'$as_ac_Header'}
26203 $as_echo "$as_val"'`
26204 if test "x$as_val" = x""yes; then
26207 cat >>confdefs.h <<\_ACEOF
26208 #define HAVE_READLINE 1
26212 CONS_INC="-I${TOP_DIR}/depkgs/readline"
26213 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
26214 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
26215 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
26220 echo "readline.h not found. readline turned off ..."
26247 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26248 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26249 if test "${ac_cv_header_stat_broken+set}" = set; then
26250 $as_echo_n "(cached) " >&6
26252 cat >conftest.$ac_ext <<_ACEOF
26255 cat confdefs.h >>conftest.$ac_ext
26256 cat >>conftest.$ac_ext <<_ACEOF
26257 /* end confdefs.h. */
26258 #include <sys/types.h>
26259 #include <sys/stat.h>
26261 #if defined S_ISBLK && defined S_IFDIR
26262 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26265 #if defined S_ISBLK && defined S_IFCHR
26266 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26269 #if defined S_ISLNK && defined S_IFREG
26270 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26273 #if defined S_ISSOCK && defined S_IFREG
26274 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26278 rm -f conftest.$ac_objext
26279 if { (ac_try="$ac_compile"
26280 case "(($ac_try" in
26281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282 *) ac_try_echo=$ac_try;;
26284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26285 $as_echo "$ac_try_echo") >&5
26286 (eval "$ac_compile") 2>conftest.er1
26288 grep -v '^ *+' conftest.er1 >conftest.err
26290 cat conftest.err >&5
26291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); } && {
26293 test -z "$ac_c_werror_flag" ||
26294 test ! -s conftest.err
26295 } && test -s conftest.$ac_objext; then
26296 ac_cv_header_stat_broken=no
26298 $as_echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26301 ac_cv_header_stat_broken=yes
26304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26306 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26307 $as_echo "$ac_cv_header_stat_broken" >&6; }
26308 if test $ac_cv_header_stat_broken = yes; then
26310 cat >>confdefs.h <<\_ACEOF
26311 #define STAT_MACROS_BROKEN 1
26321 ac_header_dirent=no
26322 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26323 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26324 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26325 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26327 $as_echo_n "(cached) " >&6
26329 cat >conftest.$ac_ext <<_ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h. */
26335 #include <sys/types.h>
26347 rm -f conftest.$ac_objext
26348 if { (ac_try="$ac_compile"
26349 case "(($ac_try" in
26350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26351 *) ac_try_echo=$ac_try;;
26353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26354 $as_echo "$ac_try_echo") >&5
26355 (eval "$ac_compile") 2>conftest.er1
26357 grep -v '^ *+' conftest.er1 >conftest.err
26359 cat conftest.err >&5
26360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); } && {
26362 test -z "$ac_c_werror_flag" ||
26363 test ! -s conftest.err
26364 } && test -s conftest.$ac_objext; then
26365 eval "$as_ac_Header=yes"
26367 $as_echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26370 eval "$as_ac_Header=no"
26373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26375 ac_res=`eval 'as_val=${'$as_ac_Header'}
26376 $as_echo "$as_val"'`
26377 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26378 $as_echo "$ac_res" >&6; }
26379 as_val=`eval 'as_val=${'$as_ac_Header'}
26380 $as_echo "$as_val"'`
26381 if test "x$as_val" = x""yes; then
26382 cat >>confdefs.h <<_ACEOF
26383 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26386 ac_header_dirent=$ac_hdr; break
26390 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26391 if test $ac_header_dirent = dirent.h; then
26392 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26393 $as_echo_n "checking for library containing opendir... " >&6; }
26394 if test "${ac_cv_search_opendir+set}" = set; then
26395 $as_echo_n "(cached) " >&6
26397 ac_func_search_save_LIBS=$LIBS
26398 cat >conftest.$ac_ext <<_ACEOF
26401 cat confdefs.h >>conftest.$ac_ext
26402 cat >>conftest.$ac_ext <<_ACEOF
26403 /* end confdefs.h. */
26405 /* Override any GCC internal prototype to avoid an error.
26406 Use char because int might match the return type of a GCC
26407 builtin and then its argument prototype would still apply. */
26420 for ac_lib in '' dir; do
26421 if test -z "$ac_lib"; then
26422 ac_res="none required"
26425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26427 rm -f conftest.$ac_objext conftest$ac_exeext
26428 if { (ac_try="$ac_link"
26429 case "(($ac_try" in
26430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26431 *) ac_try_echo=$ac_try;;
26433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26434 $as_echo "$ac_try_echo") >&5
26435 (eval "$ac_link") 2>conftest.er1
26437 grep -v '^ *+' conftest.er1 >conftest.err
26439 cat conftest.err >&5
26440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); } && {
26442 test -z "$ac_c_werror_flag" ||
26443 test ! -s conftest.err
26444 } && test -s conftest$ac_exeext && {
26445 test "$cross_compiling" = yes ||
26446 $as_test_x conftest$ac_exeext
26448 ac_cv_search_opendir=$ac_res
26450 $as_echo "$as_me: failed program was:" >&5
26451 sed 's/^/| /' conftest.$ac_ext >&5
26456 rm -rf conftest.dSYM
26457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26459 if test "${ac_cv_search_opendir+set}" = set; then
26463 if test "${ac_cv_search_opendir+set}" = set; then
26466 ac_cv_search_opendir=no
26468 rm conftest.$ac_ext
26469 LIBS=$ac_func_search_save_LIBS
26471 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26472 $as_echo "$ac_cv_search_opendir" >&6; }
26473 ac_res=$ac_cv_search_opendir
26474 if test "$ac_res" != no; then
26475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26480 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26481 $as_echo_n "checking for library containing opendir... " >&6; }
26482 if test "${ac_cv_search_opendir+set}" = set; then
26483 $as_echo_n "(cached) " >&6
26485 ac_func_search_save_LIBS=$LIBS
26486 cat >conftest.$ac_ext <<_ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h. */
26493 /* Override any GCC internal prototype to avoid an error.
26494 Use char because int might match the return type of a GCC
26495 builtin and then its argument prototype would still apply. */
26508 for ac_lib in '' x; do
26509 if test -z "$ac_lib"; then
26510 ac_res="none required"
26513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26515 rm -f conftest.$ac_objext conftest$ac_exeext
26516 if { (ac_try="$ac_link"
26517 case "(($ac_try" in
26518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26519 *) ac_try_echo=$ac_try;;
26521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26522 $as_echo "$ac_try_echo") >&5
26523 (eval "$ac_link") 2>conftest.er1
26525 grep -v '^ *+' conftest.er1 >conftest.err
26527 cat conftest.err >&5
26528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); } && {
26530 test -z "$ac_c_werror_flag" ||
26531 test ! -s conftest.err
26532 } && test -s conftest$ac_exeext && {
26533 test "$cross_compiling" = yes ||
26534 $as_test_x conftest$ac_exeext
26536 ac_cv_search_opendir=$ac_res
26538 $as_echo "$as_me: failed program was:" >&5
26539 sed 's/^/| /' conftest.$ac_ext >&5
26544 rm -rf conftest.dSYM
26545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26547 if test "${ac_cv_search_opendir+set}" = set; then
26551 if test "${ac_cv_search_opendir+set}" = set; then
26554 ac_cv_search_opendir=no
26556 rm conftest.$ac_ext
26557 LIBS=$ac_func_search_save_LIBS
26559 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26560 $as_echo "$ac_cv_search_opendir" >&6; }
26561 ac_res=$ac_cv_search_opendir
26562 if test "$ac_res" != no; then
26563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26576 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
26578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26579 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26580 $as_echo_n "checking for $ac_func... " >&6; }
26581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26582 $as_echo_n "(cached) " >&6
26584 cat >conftest.$ac_ext <<_ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h. */
26590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26592 #define $ac_func innocuous_$ac_func
26594 /* System header to define __stub macros and hopefully few prototypes,
26595 which can conflict with char $ac_func (); below.
26596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26597 <limits.h> exists even on freestanding compilers. */
26600 # include <limits.h>
26602 # include <assert.h>
26607 /* Override any GCC internal prototype to avoid an error.
26608 Use char because int might match the return type of a GCC
26609 builtin and then its argument prototype would still apply. */
26614 /* The GNU C library defines this for functions which it implements
26615 to always fail with ENOSYS. Some functions are actually named
26616 something starting with __ and the normal name is an alias. */
26617 #if defined __stub_$ac_func || defined __stub___$ac_func
26624 return $ac_func ();
26629 rm -f conftest.$ac_objext conftest$ac_exeext
26630 if { (ac_try="$ac_link"
26631 case "(($ac_try" in
26632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26633 *) ac_try_echo=$ac_try;;
26635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26636 $as_echo "$ac_try_echo") >&5
26637 (eval "$ac_link") 2>conftest.er1
26639 grep -v '^ *+' conftest.er1 >conftest.err
26641 cat conftest.err >&5
26642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643 (exit $ac_status); } && {
26644 test -z "$ac_c_werror_flag" ||
26645 test ! -s conftest.err
26646 } && test -s conftest$ac_exeext && {
26647 test "$cross_compiling" = yes ||
26648 $as_test_x conftest$ac_exeext
26650 eval "$as_ac_var=yes"
26652 $as_echo "$as_me: failed program was:" >&5
26653 sed 's/^/| /' conftest.$ac_ext >&5
26655 eval "$as_ac_var=no"
26658 rm -rf conftest.dSYM
26659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26660 conftest$ac_exeext conftest.$ac_ext
26662 ac_res=`eval 'as_val=${'$as_ac_var'}
26663 $as_echo "$as_val"'`
26664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26665 $as_echo "$ac_res" >&6; }
26666 as_val=`eval 'as_val=${'$as_ac_var'}
26667 $as_echo "$as_val"'`
26668 if test "x$as_val" = x""yes; then
26669 cat >>confdefs.h <<_ACEOF
26670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26678 for ac_func in nanosleep nl_langinfo
26680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26682 $as_echo_n "checking for $ac_func... " >&6; }
26683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26684 $as_echo_n "(cached) " >&6
26686 cat >conftest.$ac_ext <<_ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h. */
26692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26694 #define $ac_func innocuous_$ac_func
26696 /* System header to define __stub macros and hopefully few prototypes,
26697 which can conflict with char $ac_func (); below.
26698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26699 <limits.h> exists even on freestanding compilers. */
26702 # include <limits.h>
26704 # include <assert.h>
26709 /* Override any GCC internal prototype to avoid an error.
26710 Use char because int might match the return type of a GCC
26711 builtin and then its argument prototype would still apply. */
26716 /* The GNU C library defines this for functions which it implements
26717 to always fail with ENOSYS. Some functions are actually named
26718 something starting with __ and the normal name is an alias. */
26719 #if defined __stub_$ac_func || defined __stub___$ac_func
26726 return $ac_func ();
26731 rm -f conftest.$ac_objext conftest$ac_exeext
26732 if { (ac_try="$ac_link"
26733 case "(($ac_try" in
26734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26735 *) ac_try_echo=$ac_try;;
26737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26738 $as_echo "$ac_try_echo") >&5
26739 (eval "$ac_link") 2>conftest.er1
26741 grep -v '^ *+' conftest.er1 >conftest.err
26743 cat conftest.err >&5
26744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } && {
26746 test -z "$ac_c_werror_flag" ||
26747 test ! -s conftest.err
26748 } && test -s conftest$ac_exeext && {
26749 test "$cross_compiling" = yes ||
26750 $as_test_x conftest$ac_exeext
26752 eval "$as_ac_var=yes"
26754 $as_echo "$as_me: failed program was:" >&5
26755 sed 's/^/| /' conftest.$ac_ext >&5
26757 eval "$as_ac_var=no"
26760 rm -rf conftest.dSYM
26761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26762 conftest$ac_exeext conftest.$ac_ext
26764 ac_res=`eval 'as_val=${'$as_ac_var'}
26765 $as_echo "$as_val"'`
26766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26767 $as_echo "$ac_res" >&6; }
26768 as_val=`eval 'as_val=${'$as_ac_var'}
26769 $as_echo "$as_val"'`
26770 if test "x$as_val" = x""yes; then
26771 cat >>confdefs.h <<_ACEOF
26772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26779 for ac_header in varargs.h
26781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26783 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26784 $as_echo_n "checking for $ac_header... " >&6; }
26785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26786 $as_echo_n "(cached) " >&6
26788 ac_res=`eval 'as_val=${'$as_ac_Header'}
26789 $as_echo "$as_val"'`
26790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26791 $as_echo "$ac_res" >&6; }
26793 # Is the header compilable?
26794 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26795 $as_echo_n "checking $ac_header usability... " >&6; }
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26802 $ac_includes_default
26803 #include <$ac_header>
26805 rm -f conftest.$ac_objext
26806 if { (ac_try="$ac_compile"
26807 case "(($ac_try" in
26808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809 *) ac_try_echo=$ac_try;;
26811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26812 $as_echo "$ac_try_echo") >&5
26813 (eval "$ac_compile") 2>conftest.er1
26815 grep -v '^ *+' conftest.er1 >conftest.err
26817 cat conftest.err >&5
26818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); } && {
26820 test -z "$ac_c_werror_flag" ||
26821 test ! -s conftest.err
26822 } && test -s conftest.$ac_objext; then
26823 ac_header_compiler=yes
26825 $as_echo "$as_me: failed program was:" >&5
26826 sed 's/^/| /' conftest.$ac_ext >&5
26828 ac_header_compiler=no
26831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26832 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26833 $as_echo "$ac_header_compiler" >&6; }
26835 # Is the header present?
26836 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26837 $as_echo_n "checking $ac_header presence... " >&6; }
26838 cat >conftest.$ac_ext <<_ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26844 #include <$ac_header>
26846 if { (ac_try="$ac_cpp conftest.$ac_ext"
26847 case "(($ac_try" in
26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849 *) ac_try_echo=$ac_try;;
26851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26852 $as_echo "$ac_try_echo") >&5
26853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26855 grep -v '^ *+' conftest.er1 >conftest.err
26857 cat conftest.err >&5
26858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); } >/dev/null && {
26860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26861 test ! -s conftest.err
26863 ac_header_preproc=yes
26865 $as_echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26868 ac_header_preproc=no
26871 rm -f conftest.err conftest.$ac_ext
26872 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26873 $as_echo "$ac_header_preproc" >&6; }
26875 # So? What about this header?
26876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26879 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26882 ac_header_preproc=yes
26885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26886 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26888 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26890 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26892 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26894 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26896 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26901 $as_echo_n "checking for $ac_header... " >&6; }
26902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26903 $as_echo_n "(cached) " >&6
26905 eval "$as_ac_Header=\$ac_header_preproc"
26907 ac_res=`eval 'as_val=${'$as_ac_Header'}
26908 $as_echo "$as_val"'`
26909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26910 $as_echo "$ac_res" >&6; }
26913 as_val=`eval 'as_val=${'$as_ac_Header'}
26914 $as_echo "$as_val"'`
26915 if test "x$as_val" = x""yes; then
26916 cat >>confdefs.h <<_ACEOF
26917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26926 { $as_echo "$as_me:$LINENO: checking for Python support" >&5
26927 $as_echo_n "checking for Python support... " >&6; }
26929 # Check whether --with-python was given.
26930 if test "${with_python+set}" = set; then
26931 withval=$with_python;
26934 if test "$withval" != "no"; then
26935 if test "$withval" = "yes"; then
26936 if test -e /usr/bin/python-config ; then
26937 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26938 PYTHON_LIBS=`/usr/bin/python-config --libs`
26940 for python_root in /usr /usr/local /usr/sfw; do
26941 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26942 if test -f $python_root/include/${ver}/Python.h; then
26943 PYTHON_INCDIR=-I$python_root/include/${ver}
26944 if test -d $python_root/lib64/${ver}/config; then
26945 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26947 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26954 if test x$PYTHON_INCDIR = x; then
26955 if test -f $prefix/include/Python.h; then
26956 PYTHON_INCDIR=-I$prefix/include
26957 if test -d $prefix/lib64/config; then
26958 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26960 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26963 { $as_echo "$as_me:$LINENO: result: no" >&5
26964 $as_echo "no" >&6; }
26965 { { $as_echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26966 $as_echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26967 { (exit 1); exit 1; }; }
26972 if test -e $withval/bin/python-config ; then
26973 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26974 PYTHON_LIBS=`$withval/bin/python-config --libs`
26975 elif test -f $withval/Python.h; then
26976 PYTHON_INCDIR=-I$withval
26977 PYTHON_LIBS="-L$withval/config -lpython"
26978 elif test -f $withval/include/Python.h; then
26979 PYTHON_INCDIR=-I$withval/include
26980 if test -d $withval/lib64/config; then
26981 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26983 PYTHON_LIBS="-L$withval/lib/config -lpython"
26985 elif test -f $withval/include/python/Python.h; then
26986 PYTHON_INCDIR=-I$withval/include/python
26987 if test -d $withval/lib64/python/config; then
26988 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26990 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26993 { $as_echo "$as_me:$LINENO: result: no" >&5
26994 $as_echo "no" >&6; }
26995 { { $as_echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26996 $as_echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26997 { (exit 1); exit 1; }; }
27001 cat >>confdefs.h <<\_ACEOF
27002 #define HAVE_PYTHON 1
27005 { $as_echo "$as_me:$LINENO: result: yes" >&5
27006 $as_echo "yes" >&6; }
27008 { $as_echo "$as_me:$LINENO: checking for more Python libs" >&5
27009 $as_echo "$as_me: checking for more Python libs" >&6;}
27010 saved_LIBS="$LIBS"; LIBS=
27011 { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
27012 $as_echo_n "checking for library containing shm_open... " >&6; }
27013 if test "${ac_cv_search_shm_open+set}" = set; then
27014 $as_echo_n "(cached) " >&6
27016 ac_func_search_save_LIBS=$LIBS
27017 cat >conftest.$ac_ext <<_ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27024 /* Override any GCC internal prototype to avoid an error.
27025 Use char because int might match the return type of a GCC
27026 builtin and then its argument prototype would still apply. */
27034 return shm_open ();
27039 for ac_lib in '' rt; do
27040 if test -z "$ac_lib"; then
27041 ac_res="none required"
27044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27046 rm -f conftest.$ac_objext conftest$ac_exeext
27047 if { (ac_try="$ac_link"
27048 case "(($ac_try" in
27049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050 *) ac_try_echo=$ac_try;;
27052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27053 $as_echo "$ac_try_echo") >&5
27054 (eval "$ac_link") 2>conftest.er1
27056 grep -v '^ *+' conftest.er1 >conftest.err
27058 cat conftest.err >&5
27059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } && {
27061 test -z "$ac_c_werror_flag" ||
27062 test ! -s conftest.err
27063 } && test -s conftest$ac_exeext && {
27064 test "$cross_compiling" = yes ||
27065 $as_test_x conftest$ac_exeext
27067 ac_cv_search_shm_open=$ac_res
27069 $as_echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27075 rm -rf conftest.dSYM
27076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27078 if test "${ac_cv_search_shm_open+set}" = set; then
27082 if test "${ac_cv_search_shm_open+set}" = set; then
27085 ac_cv_search_shm_open=no
27087 rm conftest.$ac_ext
27088 LIBS=$ac_func_search_save_LIBS
27090 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
27091 $as_echo "$ac_cv_search_shm_open" >&6; }
27092 ac_res=$ac_cv_search_shm_open
27093 if test "$ac_res" != no; then
27094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27099 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27100 $as_echo_n "checking for openpty in -lutil... " >&6; }
27101 if test "${ac_cv_lib_util_openpty+set}" = set; then
27102 $as_echo_n "(cached) " >&6
27104 ac_check_lib_save_LIBS=$LIBS
27105 LIBS="-lutil $LIBS"
27106 cat >conftest.$ac_ext <<_ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h. */
27113 /* Override any GCC internal prototype to avoid an error.
27114 Use char because int might match the return type of a GCC
27115 builtin and then its argument prototype would still apply. */
27128 rm -f conftest.$ac_objext conftest$ac_exeext
27129 if { (ac_try="$ac_link"
27130 case "(($ac_try" in
27131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132 *) ac_try_echo=$ac_try;;
27134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27135 $as_echo "$ac_try_echo") >&5
27136 (eval "$ac_link") 2>conftest.er1
27138 grep -v '^ *+' conftest.er1 >conftest.err
27140 cat conftest.err >&5
27141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); } && {
27143 test -z "$ac_c_werror_flag" ||
27144 test ! -s conftest.err
27145 } && test -s conftest$ac_exeext && {
27146 test "$cross_compiling" = yes ||
27147 $as_test_x conftest$ac_exeext
27149 ac_cv_lib_util_openpty=yes
27151 $as_echo "$as_me: failed program was:" >&5
27152 sed 's/^/| /' conftest.$ac_ext >&5
27154 ac_cv_lib_util_openpty=no
27157 rm -rf conftest.dSYM
27158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27159 conftest$ac_exeext conftest.$ac_ext
27160 LIBS=$ac_check_lib_save_LIBS
27162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27163 $as_echo "$ac_cv_lib_util_openpty" >&6; }
27164 if test "x$ac_cv_lib_util_openpty" = x""yes; then
27165 cat >>confdefs.h <<_ACEOF
27166 #define HAVE_LIBUTIL 1
27169 LIBS="-lutil $LIBS"
27173 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
27176 { $as_echo "$as_me:$LINENO: result: no" >&5
27177 $as_echo "no" >&6; }
27182 { $as_echo "$as_me:$LINENO: result: no" >&5
27183 $as_echo "no" >&6; }
27191 { $as_echo "$as_me:$LINENO: checking for socket" >&5
27192 $as_echo_n "checking for socket... " >&6; }
27193 if test "${ac_cv_func_socket+set}" = set; then
27194 $as_echo_n "(cached) " >&6
27196 cat >conftest.$ac_ext <<_ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27202 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
27203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27204 #define socket innocuous_socket
27206 /* System header to define __stub macros and hopefully few prototypes,
27207 which can conflict with char socket (); below.
27208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27209 <limits.h> exists even on freestanding compilers. */
27212 # include <limits.h>
27214 # include <assert.h>
27219 /* Override any GCC internal prototype to avoid an error.
27220 Use char because int might match the return type of a GCC
27221 builtin and then its argument prototype would still apply. */
27226 /* The GNU C library defines this for functions which it implements
27227 to always fail with ENOSYS. Some functions are actually named
27228 something starting with __ and the normal name is an alias. */
27229 #if defined __stub_socket || defined __stub___socket
27241 rm -f conftest.$ac_objext conftest$ac_exeext
27242 if { (ac_try="$ac_link"
27243 case "(($ac_try" in
27244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245 *) ac_try_echo=$ac_try;;
27247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27248 $as_echo "$ac_try_echo") >&5
27249 (eval "$ac_link") 2>conftest.er1
27251 grep -v '^ *+' conftest.er1 >conftest.err
27253 cat conftest.err >&5
27254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); } && {
27256 test -z "$ac_c_werror_flag" ||
27257 test ! -s conftest.err
27258 } && test -s conftest$ac_exeext && {
27259 test "$cross_compiling" = yes ||
27260 $as_test_x conftest$ac_exeext
27262 ac_cv_func_socket=yes
27264 $as_echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27267 ac_cv_func_socket=no
27270 rm -rf conftest.dSYM
27271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27272 conftest$ac_exeext conftest.$ac_ext
27274 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27275 $as_echo "$ac_cv_func_socket" >&6; }
27276 if test "x$ac_cv_func_socket" = x""yes; then
27277 { $as_echo "$as_me:$LINENO: result: using libc's socket" >&5
27278 $as_echo "using libc's socket" >&6; }
27281 { $as_echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
27282 $as_echo_n "checking for socket in -lxnet... " >&6; }
27283 if test "${ac_cv_lib_xnet_socket+set}" = set; then
27284 $as_echo_n "(cached) " >&6
27286 ac_check_lib_save_LIBS=$LIBS
27287 LIBS="-lxnet $LIBS"
27288 cat >conftest.$ac_ext <<_ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h. */
27295 /* Override any GCC internal prototype to avoid an error.
27296 Use char because int might match the return type of a GCC
27297 builtin and then its argument prototype would still apply. */
27310 rm -f conftest.$ac_objext conftest$ac_exeext
27311 if { (ac_try="$ac_link"
27312 case "(($ac_try" in
27313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314 *) ac_try_echo=$ac_try;;
27316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27317 $as_echo "$ac_try_echo") >&5
27318 (eval "$ac_link") 2>conftest.er1
27320 grep -v '^ *+' conftest.er1 >conftest.err
27322 cat conftest.err >&5
27323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } && {
27325 test -z "$ac_c_werror_flag" ||
27326 test ! -s conftest.err
27327 } && test -s conftest$ac_exeext && {
27328 test "$cross_compiling" = yes ||
27329 $as_test_x conftest$ac_exeext
27331 ac_cv_lib_xnet_socket=yes
27333 $as_echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27336 ac_cv_lib_xnet_socket=no
27339 rm -rf conftest.dSYM
27340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27341 conftest$ac_exeext conftest.$ac_ext
27342 LIBS=$ac_check_lib_save_LIBS
27344 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
27345 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
27346 if test "x$ac_cv_lib_xnet_socket" = x""yes; then
27347 cat >>confdefs.h <<_ACEOF
27348 #define HAVE_LIBXNET 1
27351 LIBS="-lxnet $LIBS"
27356 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27357 $as_echo_n "checking for socket in -lsocket... " >&6; }
27358 if test "${ac_cv_lib_socket_socket+set}" = set; then
27359 $as_echo_n "(cached) " >&6
27361 ac_check_lib_save_LIBS=$LIBS
27362 LIBS="-lsocket $LIBS"
27363 cat >conftest.$ac_ext <<_ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h. */
27370 /* Override any GCC internal prototype to avoid an error.
27371 Use char because int might match the return type of a GCC
27372 builtin and then its argument prototype would still apply. */
27385 rm -f conftest.$ac_objext conftest$ac_exeext
27386 if { (ac_try="$ac_link"
27387 case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27392 $as_echo "$ac_try_echo") >&5
27393 (eval "$ac_link") 2>conftest.er1
27395 grep -v '^ *+' conftest.er1 >conftest.err
27397 cat conftest.err >&5
27398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); } && {
27400 test -z "$ac_c_werror_flag" ||
27401 test ! -s conftest.err
27402 } && test -s conftest$ac_exeext && {
27403 test "$cross_compiling" = yes ||
27404 $as_test_x conftest$ac_exeext
27406 ac_cv_lib_socket_socket=yes
27408 $as_echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27411 ac_cv_lib_socket_socket=no
27414 rm -rf conftest.dSYM
27415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27416 conftest$ac_exeext conftest.$ac_ext
27417 LIBS=$ac_check_lib_save_LIBS
27419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27420 $as_echo "$ac_cv_lib_socket_socket" >&6; }
27421 if test "x$ac_cv_lib_socket_socket" = x""yes; then
27422 cat >>confdefs.h <<_ACEOF
27423 #define HAVE_LIBSOCKET 1
27426 LIBS="-lsocket $LIBS"
27431 { $as_echo "$as_me:$LINENO: checking for socket in -linet" >&5
27432 $as_echo_n "checking for socket in -linet... " >&6; }
27433 if test "${ac_cv_lib_inet_socket+set}" = set; then
27434 $as_echo_n "(cached) " >&6
27436 ac_check_lib_save_LIBS=$LIBS
27437 LIBS="-linet $LIBS"
27438 cat >conftest.$ac_ext <<_ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h. */
27445 /* Override any GCC internal prototype to avoid an error.
27446 Use char because int might match the return type of a GCC
27447 builtin and then its argument prototype would still apply. */
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (ac_try="$ac_link"
27462 case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27467 $as_echo "$ac_try_echo") >&5
27468 (eval "$ac_link") 2>conftest.er1
27470 grep -v '^ *+' conftest.er1 >conftest.err
27472 cat conftest.err >&5
27473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } && {
27475 test -z "$ac_c_werror_flag" ||
27476 test ! -s conftest.err
27477 } && test -s conftest$ac_exeext && {
27478 test "$cross_compiling" = yes ||
27479 $as_test_x conftest$ac_exeext
27481 ac_cv_lib_inet_socket=yes
27483 $as_echo "$as_me: failed program was:" >&5
27484 sed 's/^/| /' conftest.$ac_ext >&5
27486 ac_cv_lib_inet_socket=no
27489 rm -rf conftest.dSYM
27490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27491 conftest$ac_exeext conftest.$ac_ext
27492 LIBS=$ac_check_lib_save_LIBS
27494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
27495 $as_echo "$ac_cv_lib_inet_socket" >&6; }
27496 if test "x$ac_cv_lib_inet_socket" = x""yes; then
27497 cat >>confdefs.h <<_ACEOF
27498 #define HAVE_LIBINET 1
27501 LIBS="-linet $LIBS"
27511 # Check whether --with-tcp-wrappers was given.
27512 if test "${with_tcp_wrappers+set}" = set; then
27513 withval=$with_tcp_wrappers;
27514 if test "x$withval" != "xno" ; then
27516 LIBS="$saved_LIBS -lwrap"
27517 { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
27518 $as_echo_n "checking for library containing nanosleep... " >&6; }
27519 if test "${ac_cv_search_nanosleep+set}" = set; then
27520 $as_echo_n "(cached) " >&6
27522 ac_func_search_save_LIBS=$LIBS
27523 cat >conftest.$ac_ext <<_ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h. */
27530 /* Override any GCC internal prototype to avoid an error.
27531 Use char because int might match the return type of a GCC
27532 builtin and then its argument prototype would still apply. */
27540 return nanosleep ();
27545 for ac_lib in '' rt; do
27546 if test -z "$ac_lib"; then
27547 ac_res="none required"
27550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27552 rm -f conftest.$ac_objext conftest$ac_exeext
27553 if { (ac_try="$ac_link"
27554 case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27559 $as_echo "$ac_try_echo") >&5
27560 (eval "$ac_link") 2>conftest.er1
27562 grep -v '^ *+' conftest.er1 >conftest.err
27564 cat conftest.err >&5
27565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } && {
27567 test -z "$ac_c_werror_flag" ||
27568 test ! -s conftest.err
27569 } && test -s conftest$ac_exeext && {
27570 test "$cross_compiling" = yes ||
27571 $as_test_x conftest$ac_exeext
27573 ac_cv_search_nanosleep=$ac_res
27575 $as_echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27581 rm -rf conftest.dSYM
27582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27584 if test "${ac_cv_search_nanosleep+set}" = set; then
27588 if test "${ac_cv_search_nanosleep+set}" = set; then
27591 ac_cv_search_nanosleep=no
27593 rm conftest.$ac_ext
27594 LIBS=$ac_func_search_save_LIBS
27596 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
27597 $as_echo "$ac_cv_search_nanosleep" >&6; }
27598 ac_res=$ac_cv_search_nanosleep
27599 if test "$ac_res" != no; then
27600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27604 { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
27605 $as_echo_n "checking for libwrap... " >&6; }
27606 cat >conftest.$ac_ext <<_ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h. */
27613 #include <sys/types.h>
27615 int deny_severity = 0;
27616 int allow_severity = 0;
27617 struct request_info *req;
27629 rm -f conftest.$ac_objext conftest$ac_exeext
27630 if { (ac_try="$ac_link"
27631 case "(($ac_try" in
27632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27633 *) ac_try_echo=$ac_try;;
27635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27636 $as_echo "$ac_try_echo") >&5
27637 (eval "$ac_link") 2>conftest.er1
27639 grep -v '^ *+' conftest.er1 >conftest.err
27641 cat conftest.err >&5
27642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); } && {
27644 test -z "$ac_c_werror_flag" ||
27645 test ! -s conftest.err
27646 } && test -s conftest$ac_exeext && {
27647 test "$cross_compiling" = yes ||
27648 $as_test_x conftest$ac_exeext
27651 { $as_echo "$as_me:$LINENO: result: yes" >&5
27652 $as_echo "yes" >&6; }
27654 cat >>confdefs.h <<\_ACEOF
27655 #define HAVE_LIBWRAP 1
27663 $as_echo "$as_me: failed program was:" >&5
27664 sed 's/^/| /' conftest.$ac_ext >&5
27667 LIBS="$saved_LIBS -lwrap -lnsl"
27668 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
27669 cat >conftest.$ac_ext <<_ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h. */
27676 #include <sys/types.h>
27678 int deny_severity = 0;
27679 int allow_severity = 0;
27680 struct request_info *req;
27692 rm -f conftest.$ac_objext conftest$ac_exeext
27693 if { (ac_try="$ac_link"
27694 case "(($ac_try" in
27695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27696 *) ac_try_echo=$ac_try;;
27698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27699 $as_echo "$ac_try_echo") >&5
27700 (eval "$ac_link") 2>conftest.er1
27702 grep -v '^ *+' conftest.er1 >conftest.err
27704 cat conftest.err >&5
27705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); } && {
27707 test -z "$ac_c_werror_flag" ||
27708 test ! -s conftest.err
27709 } && test -s conftest$ac_exeext && {
27710 test "$cross_compiling" = yes ||
27711 $as_test_x conftest$ac_exeext
27714 { $as_echo "$as_me:$LINENO: result: yes" >&5
27715 $as_echo "yes" >&6; }
27717 cat >>confdefs.h <<\_ACEOF
27718 #define HAVE_LIBWRAP 1
27726 $as_echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27730 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27731 $as_echo "$as_me: error: *** libwrap missing" >&2;}
27732 { (exit 1); exit 1; }; }
27737 rm -rf conftest.dSYM
27738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27739 conftest$ac_exeext conftest.$ac_ext
27744 rm -rf conftest.dSYM
27745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27746 conftest$ac_exeext conftest.$ac_ext
27753 { $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
27754 $as_echo_n "checking for OpenSSL... " >&6; }
27756 # Check whether --with-openssl was given.
27757 if test "${with_openssl+set}" = set; then
27758 withval=$with_openssl;
27759 with_openssl_directory=${withval}
27765 if test "x$with_openssl_directory" != "xno"; then
27766 OPENSSL_LIBS="-lssl -lcrypto"
27769 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27771 # Make sure the $with_openssl_directory also makes sense
27773 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27774 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27775 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27779 saved_LIBS="${LIBS}"
27780 saved_CFLAGS="${CFLAGS}"
27781 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27782 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27784 cat >conftest.$ac_ext <<_ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h. */
27791 #include <openssl/ssl.h>
27797 CRYPTO_set_id_callback(NULL);
27803 rm -f conftest.$ac_objext conftest$ac_exeext
27804 if { (ac_try="$ac_link"
27805 case "(($ac_try" in
27806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807 *) ac_try_echo=$ac_try;;
27809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27810 $as_echo "$ac_try_echo") >&5
27811 (eval "$ac_link") 2>conftest.er1
27813 grep -v '^ *+' conftest.er1 >conftest.err
27815 cat conftest.err >&5
27816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); } && {
27818 test -z "$ac_c_werror_flag" ||
27819 test ! -s conftest.err
27820 } && test -s conftest$ac_exeext && {
27821 test "$cross_compiling" = yes ||
27822 $as_test_x conftest$ac_exeext
27826 support_crypto="yes"
27829 $as_echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27834 support_crypto="no"
27839 rm -rf conftest.dSYM
27840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27841 conftest$ac_exeext conftest.$ac_ext
27843 cat >conftest.$ac_ext <<_ACEOF
27846 cat confdefs.h >>conftest.$ac_ext
27847 cat >>conftest.$ac_ext <<_ACEOF
27848 /* end confdefs.h. */
27850 #include <openssl/evp.h>
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (ac_try="$ac_link"
27864 case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27869 $as_echo "$ac_try_echo") >&5
27870 (eval "$ac_link") 2>conftest.er1
27872 grep -v '^ *+' conftest.er1 >conftest.err
27874 cat conftest.err >&5
27875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } && {
27877 test -z "$ac_c_werror_flag" ||
27878 test ! -s conftest.err
27879 } && test -s conftest$ac_exeext && {
27880 test "$cross_compiling" = yes ||
27881 $as_test_x conftest$ac_exeext
27884 ac_cv_openssl_sha2="yes"
27887 $as_echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27891 ac_cv_openssl_sha2="no"
27896 rm -rf conftest.dSYM
27897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27898 conftest$ac_exeext conftest.$ac_ext
27900 cat >conftest.$ac_ext <<_ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h. */
27907 #include <openssl/evp.h>
27919 rm -f conftest.$ac_objext conftest$ac_exeext
27920 if { (ac_try="$ac_link"
27921 case "(($ac_try" in
27922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27923 *) ac_try_echo=$ac_try;;
27925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27926 $as_echo "$ac_try_echo") >&5
27927 (eval "$ac_link") 2>conftest.er1
27929 grep -v '^ *+' conftest.er1 >conftest.err
27931 cat conftest.err >&5
27932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); } && {
27934 test -z "$ac_c_werror_flag" ||
27935 test ! -s conftest.err
27936 } && test -s conftest$ac_exeext && {
27937 test "$cross_compiling" = yes ||
27938 $as_test_x conftest$ac_exeext
27941 ac_cv_openssl_export="no"
27944 $as_echo "$as_me: failed program was:" >&5
27945 sed 's/^/| /' conftest.$ac_ext >&5
27948 ac_cv_openssl_export="yes"
27953 rm -rf conftest.dSYM
27954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27955 conftest$ac_exeext conftest.$ac_ext
27957 if test "$support_tls" = "yes"; then
27959 cat >>confdefs.h <<\_ACEOF
27960 #define HAVE_OPENSSL 1
27964 cat >>confdefs.h <<\_ACEOF
27969 cat >>confdefs.h <<\_ACEOF
27970 #define HAVE_CRYPTO 1
27975 if test "$ac_cv_openssl_sha2" = "yes"; then
27977 cat >>confdefs.h <<\_ACEOF
27978 #define HAVE_SHA2 1
27983 if test "$ac_cv_openssl_export" = "yes"; then
27985 cat >>confdefs.h <<\_ACEOF
27986 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27991 if test "$support_crypto" = "yes"; then
27992 { $as_echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
27993 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
27994 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then
27995 $as_echo_n "(cached) " >&6
27997 ac_check_lib_save_LIBS=$LIBS
27998 LIBS="-lcrypto $LIBS"
27999 cat >conftest.$ac_ext <<_ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h. */
28006 /* Override any GCC internal prototype to avoid an error.
28007 Use char because int might match the return type of a GCC
28008 builtin and then its argument prototype would still apply. */
28012 char EVP_PKEY_encrypt_old ();
28016 return EVP_PKEY_encrypt_old ();
28021 rm -f conftest.$ac_objext conftest$ac_exeext
28022 if { (ac_try="$ac_link"
28023 case "(($ac_try" in
28024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025 *) ac_try_echo=$ac_try;;
28027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28028 $as_echo "$ac_try_echo") >&5
28029 (eval "$ac_link") 2>conftest.er1
28031 grep -v '^ *+' conftest.er1 >conftest.err
28033 cat conftest.err >&5
28034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); } && {
28036 test -z "$ac_c_werror_flag" ||
28037 test ! -s conftest.err
28038 } && test -s conftest$ac_exeext && {
28039 test "$cross_compiling" = yes ||
28040 $as_test_x conftest$ac_exeext
28042 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
28044 $as_echo "$as_me: failed program was:" >&5
28045 sed 's/^/| /' conftest.$ac_ext >&5
28047 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
28050 rm -rf conftest.dSYM
28051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28052 conftest$ac_exeext conftest.$ac_ext
28053 LIBS=$ac_check_lib_save_LIBS
28055 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
28056 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
28057 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then
28059 cat >>confdefs.h <<\_ACEOF
28060 #define HAVE_OPENSSLv1 1
28067 LIBS="${saved_LIBS}"
28068 CFLAGS="${saved_CFLAGS}"
28071 support_crypto="no"
28075 { $as_echo "$as_me:$LINENO: result: $support_tls" >&5
28076 $as_echo "$support_tls" >&6; }
28078 if test "$support_tls" = "no"; then
28082 if test "$support_crypto" = "no"; then
28090 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
28091 $as_echo_n "checking for library containing dlopen... " >&6; }
28092 if test "${ac_cv_search_dlopen+set}" = set; then
28093 $as_echo_n "(cached) " >&6
28095 ac_func_search_save_LIBS=$LIBS
28096 cat >conftest.$ac_ext <<_ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h. */
28103 /* Override any GCC internal prototype to avoid an error.
28104 Use char because int might match the return type of a GCC
28105 builtin and then its argument prototype would still apply. */
28118 for ac_lib in '' dl; do
28119 if test -z "$ac_lib"; then
28120 ac_res="none required"
28123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28125 rm -f conftest.$ac_objext conftest$ac_exeext
28126 if { (ac_try="$ac_link"
28127 case "(($ac_try" in
28128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28129 *) ac_try_echo=$ac_try;;
28131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28132 $as_echo "$ac_try_echo") >&5
28133 (eval "$ac_link") 2>conftest.er1
28135 grep -v '^ *+' conftest.er1 >conftest.err
28137 cat conftest.err >&5
28138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } && {
28140 test -z "$ac_c_werror_flag" ||
28141 test ! -s conftest.err
28142 } && test -s conftest$ac_exeext && {
28143 test "$cross_compiling" = yes ||
28144 $as_test_x conftest$ac_exeext
28146 ac_cv_search_dlopen=$ac_res
28148 $as_echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28154 rm -rf conftest.dSYM
28155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28157 if test "${ac_cv_search_dlopen+set}" = set; then
28161 if test "${ac_cv_search_dlopen+set}" = set; then
28164 ac_cv_search_dlopen=no
28166 rm conftest.$ac_ext
28167 LIBS=$ac_func_search_save_LIBS
28169 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
28170 $as_echo "$ac_cv_search_dlopen" >&6; }
28171 ac_res=$ac_cv_search_dlopen
28172 if test "$ac_res" != no; then
28173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28178 working_dir=`eval echo ${prefix}/var/bacula/working`
28180 # Check whether --with-working-dir was given.
28181 if test "${with_working_dir+set}" = set; then
28182 withval=$with_working_dir;
28183 if test "x$withval" != "xno" ; then
28184 working_dir=$withval
28195 # Check whether --with-archivedir was given.
28196 if test "${with_archivedir+set}" = set; then
28197 withval=$with_archivedir;
28198 if test "x$withval" != "xno" ; then
28199 archivedir=$withval
28208 basename=`hostname`
28210 # Check whether --with-basename was given.
28211 if test "${with_basename+set}" = set; then
28212 withval=$with_basename;
28213 if test "x$withval" != "xno" ; then
28223 hostname=`uname -n | cut -d '.' -f 1`
28224 if test x${hostname} = x ; then
28225 hostname="localhost"
28228 # Check whether --with-hostname was given.
28229 if test "${with_hostname+set}" = set; then
28230 withval=$with_hostname;
28231 if test "x$withval" != "xno" ; then
28242 scriptdir=`eval echo ${sysconfdir}`
28244 # Check whether --with-scriptdir was given.
28245 if test "${with_scriptdir+set}" = set; then
28246 withval=$with_scriptdir;
28247 if test "x$withval" != "xno" ; then
28260 # Check whether --with-bsrdir was given.
28261 if test "${with_bsrdir+set}" = set; then
28262 withval=$with_bsrdir;
28263 if test "x$withval" != "xno" ; then
28275 # Check whether --with-logdir was given.
28276 if test "${with_logdir+set}" = set; then
28277 withval=$with_logdir;
28278 if test "x$withval" != "xno" ; then
28289 # ------------------------------------------
28290 # Where to place plugindir (plugin files)
28291 # ------------------------------------------
28292 plugindir=`eval echo ${libdir}`
28294 # Check whether --with-plugindir was given.
28295 if test "${with_plugindir+set}" = set; then
28296 withval=$with_plugindir;
28297 if test "x$withval" != "xno" ; then
28307 dump_email=root@localhost
28309 # Check whether --with-dump-email was given.
28310 if test "${with_dump_email+set}" = set; then
28311 withval=$with_dump_email;
28312 if test "x$withval" != "xno" ; then
28313 dump_email=$withval
28322 job_email=root@localhost
28324 # Check whether --with-job-email was given.
28325 if test "${with_job_email+set}" = set; then
28326 withval=$with_job_email;
28327 if test "x$withval" != "xno" ; then
28337 smtp_host=localhost
28339 # Check whether --with-smtp_host was given.
28340 if test "${with_smtp_host+set}" = set; then
28341 withval=$with_smtp_host;
28342 if test "x$withval" != "xno" ; then
28354 # Check whether --with-pid-dir was given.
28355 if test "${with_pid_dir+set}" = set; then
28356 withval=$with_pid_dir;
28357 if test "x$withval" != "xno" ; then
28365 cat >>confdefs.h <<_ACEOF
28366 #define _PATH_BACULA_PIDDIR "$piddir"
28371 subsysdir=/var/run/subsys
28372 if test -d /var/run/subsys; then
28373 subsysdir=/var/run/subsys
28374 elif test -d /var/lock/subsys; then
28375 subsysdir=/var/lock/subsys
28377 subsysdir=/var/run/subsys
28380 # Check whether --with-subsys-dir was given.
28381 if test "${with_subsys_dir+set}" = set; then
28382 withval=$with_subsys_dir;
28383 if test "x$withval" != "xno" ; then
28395 # Check whether --with-baseport was given.
28396 if test "${with_baseport+set}" = set; then
28397 withval=$with_baseport;
28398 if test "x$withval" != "xno" ; then
28407 dir_port=`expr $baseport`
28408 fd_port=`expr $baseport + 1`
28409 sd_port=`expr $fd_port + 1`
28417 # Check whether --with-dir-password was given.
28418 if test "${with_dir_password+set}" = set; then
28419 withval=$with_dir_password;
28420 if test "x$withval" != "xno" ; then
28421 dir_password=$withval
28428 if test "x$dir_password" = "x" ; then
28429 if test "x$OPENSSL" = "xnone" ; then
28430 key=`autoconf/randpass 33`
28432 key=`openssl rand -base64 33`
28439 # Check whether --with-fd-password was given.
28440 if test "${with_fd_password+set}" = set; then
28441 withval=$with_fd_password;
28442 if test "x$withval" != "xno" ; then
28443 fd_password=$withval
28450 if test "x$fd_password" = "x" ; then
28451 if test "x$OPENSSL" = "xnone" ; then
28452 key=`autoconf/randpass 37`
28454 key=`openssl rand -base64 33`
28461 # Check whether --with-sd-password was given.
28462 if test "${with_sd_password+set}" = set; then
28463 withval=$with_sd_password;
28464 if test "x$withval" != "xno" ; then
28465 sd_password=$withval
28472 if test "x$sd_password" = "x" ; then
28473 if test "x$OPENSSL" = "xnone" ; then
28474 key=`autoconf/randpass 41`
28476 key=`openssl rand -base64 33`
28483 # Check whether --with-mon-dir-password was given.
28484 if test "${with_mon_dir_password+set}" = set; then
28485 withval=$with_mon_dir_password;
28486 if test "x$withval" != "xno" ; then
28487 mon_dir_password=$withval
28494 if test "x$mon_dir_password" = "x" ; then
28495 if test "x$OPENSSL" = "xnone" ; then
28496 key=`autoconf/randpass 33`
28498 key=`openssl rand -base64 33`
28500 mon_dir_password=$key
28505 # Check whether --with-mon-fd-password was given.
28506 if test "${with_mon_fd_password+set}" = set; then
28507 withval=$with_mon_fd_password;
28508 if test "x$withval" != "xno" ; then
28509 mon_fd_password=$withval
28516 if test "x$mon_fd_password" = "x" ; then
28517 if test "x$OPENSSL" = "xnone" ; then
28518 key=`autoconf/randpass 37`
28520 key=`openssl rand -base64 33`
28522 mon_fd_password=$key
28527 # Check whether --with-mon-sd-password was given.
28528 if test "${with_mon_sd_password+set}" = set; then
28529 withval=$with_mon_sd_password;
28530 if test "x$withval" != "xno" ; then
28531 mon_sd_password=$withval
28538 if test "x$mon_sd_password" = "x" ; then
28539 if test "x$OPENSSL" = "xnone" ; then
28540 key=`autoconf/randpass 41`
28542 key=`openssl rand -base64 33`
28544 mon_sd_password=$key
28556 # Check whether --with-db_name was given.
28557 if test "${with_db_name+set}" = set; then
28558 withval=$with_db_name;
28559 if test "x$withval" != "x" ; then
28570 # Check whether --with-db_user was given.
28571 if test "${with_db_user+set}" = set; then
28572 withval=$with_db_user;
28573 if test "x$withval" != "x" ; then
28584 # Check whether --with-db_password was given.
28585 if test "${with_db_password+set}" = set; then
28586 withval=$with_db_password;
28587 if test "x$withval" != "x" ; then
28588 db_password=$withval
28598 # Check whether --with-db_port was given.
28599 if test "${with_db_port+set}" = set; then
28600 withval=$with_db_port;
28601 if test "x$withval" != "x" ; then
28611 # Handle users and groups for each daemon
28615 # Check whether --with-dir_user was given.
28616 if test "${with_dir_user+set}" = set; then
28617 withval=$with_dir_user;
28618 if test "x$withval" != "x" ; then
28628 # Check whether --with-dir_group was given.
28629 if test "${with_dir_group+set}" = set; then
28630 withval=$with_dir_group;
28631 if test "x$withval" != "x" ; then
28641 # Check whether --with-sd_user was given.
28642 if test "${with_sd_user+set}" = set; then
28643 withval=$with_sd_user;
28644 if test "x$withval" != "x" ; then
28654 # Check whether --with-sd_group was given.
28655 if test "${with_sd_group+set}" = set; then
28656 withval=$with_sd_group;
28657 if test "x$withval" != "x" ; then
28667 # Check whether --with-fd_user was given.
28668 if test "${with_fd_user+set}" = set; then
28669 withval=$with_fd_user;
28670 if test "x$withval" != "x" ; then
28680 # Check whether --with-fd_group was given.
28681 if test "${with_fd_group+set}" = set; then
28682 withval=$with_fd_group;
28683 if test "x$withval" != "x" ; then
28700 # Check whether --with-sbin-perm was given.
28701 if test "${with_sbin_perm+set}" = set; then
28702 withval=$with_sbin_perm;
28703 if test "x$withval" != "x" ; then
28714 { $as_echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
28715 $as_echo_n "checking for PostgreSQL support... " >&6; }
28717 # Check whether --with-postgresql was given.
28718 if test "${with_postgresql+set}" = set; then
28719 withval=$with_postgresql;
28720 if test "$withval" != "no"; then
28721 if test "$withval" = "yes"; then
28722 PG_CONFIG=`which pg_config`
28723 if test -n "$PG_CONFIG"; then
28724 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
28725 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
28726 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
28727 elif test -f /usr/local/include/libpq-fe.h; then
28728 POSTGRESQL_INCDIR=/usr/local/include
28729 if test -d /usr/local/lib64; then
28730 POSTGRESQL_LIBDIR=/usr/local/lib64
28732 POSTGRESQL_LIBDIR=/usr/local/lib
28734 POSTGRESQL_BINDIR=/usr/local/bin
28735 elif test -f /usr/include/libpq-fe.h; then
28736 POSTGRESQL_INCDIR=/usr/include
28737 if test -d /usr/lib64; then
28738 POSTGRESQL_LIBDIR=/usr/lib64
28740 POSTGRESQL_LIBDIR=/usr/lib
28742 POSTGRESQL_BINDIR=/usr/bin
28743 elif test -f /usr/include/pgsql/libpq-fe.h; then
28744 POSTGRESQL_INCDIR=/usr/include/pgsql
28745 if test -d /usr/lib64/pgsql; then
28746 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28748 POSTGRESQL_LIBDIR=/usr/lib/pgsql
28750 POSTGRESQL_BINDIR=/usr/bin
28751 elif test -f /usr/include/postgresql/libpq-fe.h; then
28752 POSTGRESQL_INCDIR=/usr/include/postgresql
28753 if test -d /usr/lib64/postgresql; then
28754 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28756 POSTGRESQL_LIBDIR=/usr/lib/postgresql
28758 POSTGRESQL_BINDIR=/usr/bin
28760 { $as_echo "$as_me:$LINENO: result: no" >&5
28761 $as_echo "no" >&6; }
28762 { { $as_echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28763 $as_echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28764 { (exit 1); exit 1; }; }
28766 elif test -f $withval/include/libpq-fe.h; then
28767 POSTGRESQL_INCDIR=$withval/include
28768 POSTGRESQL_LIBDIR=$withval/lib
28769 POSTGRESQL_BINDIR=$withval/bin
28770 elif test -f $withval/include/postgresql/libpq-fe.h; then
28771 POSTGRESQL_INCDIR=$withval/include/postgresql
28772 if test -d $withval/lib64; then
28773 POSTGRESQL_LIBDIR=$withval/lib64
28775 POSTGRESQL_LIBDIR=$withval/lib
28777 POSTGRESQL_BINDIR=$withval/bin
28779 { $as_echo "$as_me:$LINENO: result: no" >&5
28780 $as_echo "no" >&6; }
28781 { { $as_echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28782 $as_echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28783 { (exit 1); exit 1; }; }
28786 cat >>confdefs.h <<\_ACEOF
28787 #define HAVE_POSTGRESQL 1
28790 { $as_echo "$as_me:$LINENO: result: yes" >&5
28791 $as_echo "yes" >&6; }
28793 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
28794 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
28795 { $as_echo "$as_me:$LINENO: checking for crypt" >&5
28796 $as_echo_n "checking for crypt... " >&6; }
28797 if test "${ac_cv_func_crypt+set}" = set; then
28798 $as_echo_n "(cached) " >&6
28800 cat >conftest.$ac_ext <<_ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h. */
28806 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28808 #define crypt innocuous_crypt
28810 /* System header to define __stub macros and hopefully few prototypes,
28811 which can conflict with char crypt (); below.
28812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28813 <limits.h> exists even on freestanding compilers. */
28816 # include <limits.h>
28818 # include <assert.h>
28823 /* Override any GCC internal prototype to avoid an error.
28824 Use char because int might match the return type of a GCC
28825 builtin and then its argument prototype would still apply. */
28830 /* The GNU C library defines this for functions which it implements
28831 to always fail with ENOSYS. Some functions are actually named
28832 something starting with __ and the normal name is an alias. */
28833 #if defined __stub_crypt || defined __stub___crypt
28845 rm -f conftest.$ac_objext conftest$ac_exeext
28846 if { (ac_try="$ac_link"
28847 case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28852 $as_echo "$ac_try_echo") >&5
28853 (eval "$ac_link") 2>conftest.er1
28855 grep -v '^ *+' conftest.er1 >conftest.err
28857 cat conftest.err >&5
28858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } && {
28860 test -z "$ac_c_werror_flag" ||
28861 test ! -s conftest.err
28862 } && test -s conftest$ac_exeext && {
28863 test "$cross_compiling" = yes ||
28864 $as_test_x conftest$ac_exeext
28866 ac_cv_func_crypt=yes
28868 $as_echo "$as_me: failed program was:" >&5
28869 sed 's/^/| /' conftest.$ac_ext >&5
28871 ac_cv_func_crypt=no
28874 rm -rf conftest.dSYM
28875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28876 conftest$ac_exeext conftest.$ac_ext
28878 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28879 $as_echo "$ac_cv_func_crypt" >&6; }
28880 if test "x$ac_cv_func_crypt" = x""yes; then
28883 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28884 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
28885 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28886 $as_echo_n "(cached) " >&6
28888 ac_check_lib_save_LIBS=$LIBS
28889 LIBS="-lcrypt $LIBS"
28890 cat >conftest.$ac_ext <<_ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h. */
28897 /* Override any GCC internal prototype to avoid an error.
28898 Use char because int might match the return type of a GCC
28899 builtin and then its argument prototype would still apply. */
28912 rm -f conftest.$ac_objext conftest$ac_exeext
28913 if { (ac_try="$ac_link"
28914 case "(($ac_try" in
28915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916 *) ac_try_echo=$ac_try;;
28918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28919 $as_echo "$ac_try_echo") >&5
28920 (eval "$ac_link") 2>conftest.er1
28922 grep -v '^ *+' conftest.er1 >conftest.err
28924 cat conftest.err >&5
28925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); } && {
28927 test -z "$ac_c_werror_flag" ||
28928 test ! -s conftest.err
28929 } && test -s conftest$ac_exeext && {
28930 test "$cross_compiling" = yes ||
28931 $as_test_x conftest$ac_exeext
28933 ac_cv_lib_crypt_crypt=yes
28935 $as_echo "$as_me: failed program was:" >&5
28936 sed 's/^/| /' conftest.$ac_ext >&5
28938 ac_cv_lib_crypt_crypt=no
28941 rm -rf conftest.dSYM
28942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28943 conftest$ac_exeext conftest.$ac_ext
28944 LIBS=$ac_check_lib_save_LIBS
28946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28947 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
28948 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
28949 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
28954 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28955 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
28957 if test -z "${db_backends}"; then
28958 db_backends="PostgreSQL"
28960 db_backends="${db_backends} PostgreSQL"
28962 if test -z "${DB_BACKENDS}"; then
28963 DB_BACKENDS="postgresql"
28965 DB_BACKENDS="${DB_BACKENDS} postgresql"
28968 { $as_echo "$as_me:$LINENO: result: no" >&5
28969 $as_echo "no" >&6; }
28974 { $as_echo "$as_me:$LINENO: result: no" >&5
28975 $as_echo "no" >&6; }
28986 { $as_echo "$as_me:$LINENO: checking for MySQL support" >&5
28987 $as_echo_n "checking for MySQL support... " >&6; }
28989 # Check whether --with-mysql was given.
28990 if test "${with_mysql+set}" = set; then
28991 withval=$with_mysql;
28992 if test "$withval" != "no"; then
28993 if test "$withval" = "yes"; then
28994 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28995 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28996 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28997 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28998 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29000 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29002 MYSQL_BINDIR=/usr/local/mysql/bin
29003 elif test -f /usr/include/mysql/mysql.h; then
29004 MYSQL_INCDIR=/usr/include/mysql
29005 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
29006 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
29007 MYSQL_LIBDIR=/usr/lib64/mysql
29008 elif test -f /usr/lib64/libmysqlclient_r.a \
29009 -o -f /usr/lib64/libmysqlclient_r.so; then
29010 MYSQL_LIBDIR=/usr/lib64
29011 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
29012 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
29013 MYSQL_LIBDIR=/usr/lib/mysql
29015 MYSQL_LIBDIR=/usr/lib
29017 MYSQL_BINDIR=/usr/bin
29018 elif test -f /usr/include/mysql.h; then
29019 MYSQL_INCDIR=/usr/include
29020 if test -f /usr/lib64/libmysqlclient_r.a \
29021 -o -f /usr/lib64/libmysqlclient_r.so; then
29022 MYSQL_LIBDIR=/usr/lib64
29024 MYSQL_LIBDIR=/usr/lib
29026 MYSQL_BINDIR=/usr/bin
29027 elif test -f /usr/local/include/mysql/mysql.h; then
29028 MYSQL_INCDIR=/usr/local/include/mysql
29029 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
29030 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
29031 MYSQL_LIBDIR=/usr/local/lib64/mysql
29033 MYSQL_LIBDIR=/usr/local/lib/mysql
29035 MYSQL_BINDIR=/usr/local/bin
29036 elif test -f /usr/local/include/mysql.h; then
29037 MYSQL_INCDIR=/usr/local/include
29038 if test -f /usr/local/lib64/libmysqlclient_r.a \
29039 -o -f /usr/local/lib64/libmysqlclient_r.so; then
29040 MYSQL_LIBDIR=/usr/local/lib64
29042 MYSQL_LIBDIR=/usr/local/lib
29044 MYSQL_BINDIR=/usr/local/bin
29046 { $as_echo "$as_me:$LINENO: result: no" >&5
29047 $as_echo "no" >&6; }
29048 { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
29049 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
29050 { (exit 1); exit 1; }; }
29053 if test -f $withval/include/mysql/mysql.h; then
29054 MYSQL_INCDIR=$withval/include/mysql
29055 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
29056 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
29057 MYSQL_LIBDIR=$withval/lib64/mysql
29058 elif test -f $withval/lib64/libmysqlclient_r.a \
29059 -o -f $withval/lib64/libmysqlclient_r.so; then
29060 MYSQL_LIBDIR=$withval/lib64
29061 elif test -f $withval/lib/libmysqlclient_r.a \
29062 -o -f $withval/lib/libmysqlclient_r.so; then
29063 MYSQL_LIBDIR=$withval/lib
29065 MYSQL_LIBDIR=$withval/lib/mysql
29067 MYSQL_BINDIR=$withval/bin
29068 elif test -f $withval/include/mysql.h; then
29069 MYSQL_INCDIR=$withval/include
29070 if test -f $withval/lib64/libmysqlclient_r.a \
29071 -o -f $withval/lib64/libmysqlclient_r.so; then
29072 MYSQL_LIBDIR=$withval/lib64
29074 MYSQL_LIBDIR=$withval/lib
29076 MYSQL_BINDIR=$withval/bin
29078 { $as_echo "$as_me:$LINENO: result: no" >&5
29079 $as_echo "no" >&6; }
29080 { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
29081 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
29082 { (exit 1); exit 1; }; }
29085 MYSQL_INCLUDE=-I$MYSQL_INCDIR
29086 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
29087 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
29088 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
29090 cat >>confdefs.h <<\_ACEOF
29091 #define HAVE_THREAD_SAFE_MYSQL 1
29094 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
29096 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
29099 cat >>confdefs.h <<\_ACEOF
29100 #define HAVE_MYSQL 1
29103 { $as_echo "$as_me:$LINENO: result: yes" >&5
29104 $as_echo "yes" >&6; }
29106 if test -z "${db_backends}" ; then
29107 db_backends="MySQL"
29109 db_backends="${db_backends} MySQL"
29111 if test -z "${DB_BACKENDS}" ; then
29112 DB_BACKENDS="mysql"
29114 DB_BACKENDS="${DB_BACKENDS} mysql"
29117 { $as_echo "$as_me:$LINENO: result: no" >&5
29118 $as_echo "no" >&6; }
29126 # Check whether --with-embedded-mysql was given.
29127 if test "${with_embedded_mysql+set}" = set; then
29128 withval=$with_embedded_mysql;
29129 if test "$withval" != "no"; then
29130 if test "$withval" = "yes"; then
29131 if test -f /usr/local/mysql/include/mysql/mysql.h; then
29132 MYSQL_INCDIR=/usr/local/mysql/include/mysql
29133 if test -d /usr/local/mysql/lib64/mysql; then
29134 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29136 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29138 MYSQL_BINDIR=/usr/local/mysql/bin
29139 elif test -f /usr/include/mysql/mysql.h; then
29140 MYSQL_INCDIR=/usr/include/mysql
29141 if test -d /usr/lib64/mysql; then
29142 MYSQL_LIBDIR=/usr/lib64/mysql
29144 MYSQL_LIBDIR=/usr/lib/mysql
29146 MYSQL_BINDIR=/usr/bin
29147 elif test -f /usr/include/mysql.h; then
29148 MYSQL_INCDIR=/usr/include
29149 if test -d /usr/lib64; then
29150 MYSQL_LIBDIR=/usr/lib64
29152 MYSQL_LIBDIR=/usr/lib
29154 MYSQL_BINDIR=/usr/bin
29155 elif test -f /usr/local/include/mysql/mysql.h; then
29156 MYSQL_INCDIR=/usr/local/include/mysql
29157 if test -d /usr/local/lib64/mysql; then
29158 MYSQL_LIBDIR=/usr/local/lib64/mysql
29160 MYSQL_LIBDIR=/usr/local/lib/mysql
29162 MYSQL_BINDIR=/usr/local/bin
29163 elif test -f /usr/local/include/mysql.h; then
29164 MYSQL_INCDIR=/usr/local/include
29165 if test -d /usr/local/lib64; then
29166 MYSQL_LIBDIR=/usr/local/lib64
29168 MYSQL_LIBDIR=/usr/local/lib
29170 MYSQL_BINDIR=/usr/local/bin
29172 { $as_echo "$as_me:$LINENO: result: no" >&5
29173 $as_echo "no" >&6; }
29174 { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
29175 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
29176 { (exit 1); exit 1; }; }
29179 if test -f $withval/include/mysql/mysql.h; then
29180 MYSQL_INCDIR=$withval/include/mysql
29181 if test -d $withval/lib64/mysql; then
29182 MYSQL_LIBDIR=$withval/lib64/mysql
29184 MYSQL_LIBDIR=$withval/lib/mysql
29186 MYSQL_BINDIR=$withval/bin
29187 elif test -f $withval/include/mysql.h; then
29188 MYSQL_INCDIR=$withval/include
29189 if test -d $withval/lib64; then
29190 MYSQL_LIBDIR=$withval/lib64
29192 MYSQL_LIBDIR=$withval/lib
29194 MYSQL_BINDIR=$withval/bin
29196 { $as_echo "$as_me:$LINENO: result: no" >&5
29197 $as_echo "no" >&6; }
29198 { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
29199 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
29200 { (exit 1); exit 1; }; }
29203 MYSQL_INCLUDE=-I$MYSQL_INCDIR
29204 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
29205 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
29206 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
29209 cat >>confdefs.h <<\_ACEOF
29210 #define HAVE_MYSQL 1
29214 cat >>confdefs.h <<\_ACEOF
29215 #define HAVE_EMBEDDED_MYSQL 1
29218 { $as_echo "$as_me:$LINENO: result: yes" >&5
29219 $as_echo "yes" >&6; }
29221 if test -z "${db_backends}"; then
29222 db_backends="MySQL"
29224 db_backends="${db_backends} MySQL"
29226 if test -z "${DB_BACKENDS}"; then
29227 DB_BACKENDS="mysql"
29229 DB_BACKENDS="${DB_BACKENDS} mysql"
29232 { $as_echo "$as_me:$LINENO: result: no" >&5
29233 $as_echo "no" >&6; }
29247 { $as_echo "$as_me:$LINENO: checking for SQLite3 support" >&5
29248 $as_echo_n "checking for SQLite3 support... " >&6; }
29250 # Check whether --with-sqlite3 was given.
29251 if test "${with_sqlite3+set}" = set; then
29252 withval=$with_sqlite3;
29253 if test "$withval" != "no"; then
29254 if test "$withval" = "yes"; then
29255 if test -f /usr/local/include/sqlite3.h; then
29256 SQLITE_INCDIR=/usr/local/include
29257 if test -d /usr/local/lib64; then
29258 SQLITE_LIBDIR=/usr/local/lib64
29260 SQLITE_LIBDIR=/usr/local/lib
29262 SQLITE_BINDIR=/usr/local/bin
29263 elif test -f /usr/include/sqlite3.h; then
29264 SQLITE_INCDIR=/usr/include
29265 if test -d /usr/lib64; then
29266 SQLITE_LIBDIR=/usr/lib64
29268 SQLITE_LIBDIR=/usr/lib
29270 SQLITE_BINDIR=/usr/bin
29271 elif test -f $prefix/include/sqlite3.h; then
29272 SQLITE_INCDIR=$prefix/include
29273 if test -d $prefix/lib64; then
29274 SQLITE_LIBDIR=$prefix/lib64
29276 SQLITE_LIBDIR=$prefix/lib
29278 SQLITE_BINDIR=$prefix/bin
29280 { $as_echo "$as_me:$LINENO: result: no" >&5
29281 $as_echo "no" >&6; }
29282 { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
29283 $as_echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
29284 { (exit 1); exit 1; }; }
29287 if test -f $withval/sqlite3.h; then
29288 SQLITE_INCDIR=$withval
29289 SQLITE_LIBDIR=$withval
29290 SQLITE_BINDIR=$withval
29291 elif test -f $withval/include/sqlite3.h; then
29292 SQLITE_INCDIR=$withval/include
29293 if test -d $withval/lib64; then
29294 SQLITE_LIBDIR=$withval/lib64
29296 SQLITE_LIBDIR=$withval/lib
29298 SQLITE_BINDIR=$withval/bin
29300 { $as_echo "$as_me:$LINENO: result: no" >&5
29301 $as_echo "no" >&6; }
29302 { { $as_echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
29303 $as_echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
29304 { (exit 1); exit 1; }; }
29307 SQLITE_INCLUDE=-I$SQLITE_INCDIR
29308 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
29309 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
29310 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
29313 cat >>confdefs.h <<\_ACEOF
29314 #define HAVE_SQLITE3 1
29317 { $as_echo "$as_me:$LINENO: result: yes" >&5
29318 $as_echo "yes" >&6; }
29320 if test -z "${db_backends}"; then
29321 db_backends="SQLite3"
29323 db_backends="${db_backends} SQLite3"
29325 if test -z "${DB_BACKENDS}"; then
29326 DB_BACKENDS="sqlite3"
29328 DB_BACKENDS="${DB_BACKENDS} sqlite3"
29331 { $as_echo "$as_me:$LINENO: result: no" >&5
29332 $as_echo "no" >&6; }
29337 { $as_echo "$as_me:$LINENO: result: no" >&5
29338 $as_echo "no" >&6; }
29349 { $as_echo "$as_me:$LINENO: checking for Ingres support" >&5
29350 $as_echo_n "checking for Ingres support... " >&6; }
29352 # Check whether --with-ingres was given.
29353 if test "${with_ingres+set}" = set; then
29354 withval=$with_ingres;
29355 if test "$withval" != "no"; then
29356 if test "$withval" = "yes"; then
29357 if test -f ${II_SYSTEM}/files/eqdefc.h; then
29358 INGRES_INCDIR=${II_SYSTEM}/files
29359 INGRES_LIBDIR=${II_SYSTEM}/lib
29360 INGRES_BINDIR=${II_SYSTEM}/bin
29361 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
29362 INGRES_INCDIR=${II_SYSTEM}/ingres/files
29363 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
29364 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
29366 { $as_echo "$as_me:$LINENO: result: no" >&5
29367 $as_echo "no" >&6; }
29368 { { $as_echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
29369 $as_echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
29370 { (exit 1); exit 1; }; }
29373 if test -f $withval/files/eqdefc.h; then
29374 INGRES_INCDIR=$withval/files
29375 INGRES_LIBDIR=$withval/lib
29376 INGRES_BINDIR=$withval/bin
29378 { $as_echo "$as_me:$LINENO: result: no" >&5
29379 $as_echo "no" >&6; }
29380 { { $as_echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
29381 $as_echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
29382 { (exit 1); exit 1; }; }
29385 INGRES_INCLUDE=-I$INGRES_INCDIR
29386 INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
29387 DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
29389 cat >>confdefs.h <<\_ACEOF
29390 #define HAVE_INGRES 1
29393 { $as_echo "$as_me:$LINENO: result: yes" >&5
29394 $as_echo "yes" >&6; }
29396 if test -z "${db_backends}"; then
29397 db_backends="Ingres"
29399 db_backends="${db_backends} Ingres"
29401 if test -z "${DB_BACKENDS}"; then
29402 DB_BACKENDS="ingres"
29404 DB_BACKENDS="${DB_BACKENDS} ingres"
29407 { $as_echo "$as_me:$LINENO: result: no" >&5
29408 $as_echo "no" >&6; }
29413 { $as_echo "$as_me:$LINENO: result: no" >&5
29414 $as_echo "no" >&6; }
29425 { $as_echo "$as_me:$LINENO: checking for DBI support" >&5
29426 $as_echo_n "checking for DBI support... " >&6; }
29428 # Check whether --with-dbi was given.
29429 if test "${with_dbi+set}" = set; then
29431 if test "$withval" != "no"; then
29432 if test "$withval" = "yes"; then
29433 if test -f /usr/local/include/dbi/dbi.h; then
29434 DBI_INCDIR=/usr/local/dbi/include
29435 if test -d /usr/local/lib64; then
29436 DBI_LIBDIR=/usr/local/lib64
29438 DBI_LIBDIR=/usr/local/lib
29440 DBI_BINDIR=/usr/local/bin
29441 elif test -f /usr/include/dbi/dbi.h; then
29442 DBI_INCDIR=/usr/include
29443 if test -d /usr/lib64; then
29444 DBI_LIBDIR=/usr/lib64
29446 DBI_LIBDIR=/usr/lib
29448 DBI_BINDIR=/usr/bin
29449 elif test -f $prefix/include/dbi/dbi.h; then
29450 DBI_INCDIR=$prefix/include
29451 if test -d $prefix/lib64; then
29452 DBI_LIBDIR=$prefix/lib64
29454 DBI_LIBDIR=$prefix/lib
29456 DBI_BINDIR=$prefix/bin
29458 { $as_echo "$as_me:$LINENO: result: no" >&5
29459 $as_echo "no" >&6; }
29460 { { $as_echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
29461 $as_echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
29462 { (exit 1); exit 1; }; }
29464 if test -d /usr/local/lib/dbd; then
29465 DRIVERDIR=/usr/local/lib/dbd
29466 if test -d /usr/local/lib64/dbd; then
29467 DRIVERDIR=/usr/local/lib64/dbd
29469 DRIVERDIR=/usr/local/lib/dbd
29471 elif test -d /usr/lib/dbd; then
29472 DRIVERDIR=/usr/lib/dbd
29473 if test -d /usr/lib64/dbd; then
29474 DRIVERDIR=/usr/lib64/dbd
29476 DRIVERDIR=/usr/lib/dbd
29478 elif test -d $prefix/lib/dbd; then
29479 if test -d $prefix/lib64/dbd; then
29480 DRIVERDIR=$prefix/lib64/dbd
29482 DRIVERDIR=$prefix/lib/dbd
29484 elif test -d /usr/local/lib64/dbd; then
29485 DRIVERDIR=/usr/local/lib64/dbd
29486 elif test -d /usr/lib64/dbd; then
29487 DRIVERDIR=/usr/lib64/dbd
29488 elif test -d $prefix/lib64/dbd; then
29489 DRIVERDIR=$prefix/lib64/dbd
29491 { $as_echo "$as_me:$LINENO: result: no" >&5
29492 $as_echo "no" >&6; }
29493 { { $as_echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
29494 $as_echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
29495 { (exit 1); exit 1; }; }
29498 if test -f $withval/dbi.h; then
29499 DBI_INCDIR=$withval
29500 DBI_LIBDIR=$withval
29501 DBI_BINDIR=$withval
29502 elif test -f $withval/include/dbi/dbi.h; then
29503 DBI_INCDIR=$withval/include
29504 if test -d $withval/lib64; then
29505 DBI_LIBDIR=$withval/lib64
29507 DBI_LIBDIR=$withval/lib
29509 DBI_BINDIR=$withval/bin
29511 { $as_echo "$as_me:$LINENO: result: no" >&5
29512 $as_echo "no" >&6; }
29513 { { $as_echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
29514 $as_echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
29515 { (exit 1); exit 1; }; }
29517 if test -d $withval/dbd; then
29518 DRIVERDIR=$withval/dbd
29519 elif test -d $withval/lib/; then
29520 if test -d $withval/lib64/dbd; then
29521 DRIVERDIR=$withval/lib64/dbd
29523 DRIVERDIR=$withval/lib/dbd
29525 elif test -d $withval/lib64/dbd; then
29526 DRIVERDIR=$withval/lib64/dbd
29528 { $as_echo "$as_me:$LINENO: result: no" >&5
29529 $as_echo "no" >&6; }
29530 { { $as_echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
29531 $as_echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
29532 { (exit 1); exit 1; }; }
29535 DBI_INCLUDE=-I$DBI_INCDIR
29536 DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
29537 DBI_LIB=$DBI_LIBDIR/libdbi.a
29538 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
29539 DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
29542 cat >>confdefs.h <<\_ACEOF
29546 { $as_echo "$as_me:$LINENO: result: yes" >&5
29547 $as_echo "yes" >&6; }
29549 if test -z "${db_backends}"; then
29552 db_backends="${db_backends} DBI"
29554 if test -z "${DB_BACKENDS}" ; then
29557 DB_BACKENDS="${DB_BACKENDS} dbi"
29562 { $as_echo "$as_me:$LINENO: result: no" >&5
29563 $as_echo "no" >&6; }
29568 { $as_echo "$as_me:$LINENO: result: no" >&5
29569 $as_echo "no" >&6; }
29584 { $as_echo "$as_me:$LINENO: checking for DBI drivers support" >&5
29585 $as_echo_n "checking for DBI drivers support... " >&6; }
29587 # Check whether --with-dbi-driver was given.
29588 if test "${with_dbi_driver+set}" = set; then
29589 withval=$with_dbi_driver;
29590 if test "$withval" != "no"; then
29594 if test -f /usr/local/mysql/bin/mysql; then
29595 SQL_BINDIR=/usr/local/mysql/bin
29596 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
29597 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
29598 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29600 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29602 elif test -f /usr/bin/mysql; then
29603 SQL_BINDIR=/usr/bin
29604 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
29605 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
29606 MYSQL_LIBDIR=/usr/lib64/mysql
29607 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
29608 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
29609 MYSQL_LIBDIR=/usr/lib/mysql
29611 MYSQL_LIBDIR=/usr/lib
29613 elif test -f /usr/local/bin/mysql; then
29614 SQL_BINDIR=/usr/local/bin
29615 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
29616 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
29617 MYSQL_LIBDIR=/usr/local/lib64/mysql
29618 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
29619 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
29620 MYSQL_LIBDIR=/usr/local/lib/mysql
29622 MYSQL_LIBDIR=/usr/local/lib
29624 elif test -f $withval/bin/mysql; then
29625 SQL_BINDIR=$withval/bin
29626 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
29627 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
29628 MYSQL_LIBDIR=$withval/lib64/mysql
29629 elif test -f $withval/lib64/libmysqlclient_r.a \
29630 -o -f $withval/lib64/libmysqlclient_r.so; then
29631 MYSQL_LIBDIR=$withval/lib64
29632 elif test -f $withval/lib/libmysqlclient_r.a \
29633 -o -f $withval/lib/libmysqlclient_r.so; then
29634 MYSQL_LIBDIR=$withval/lib/
29636 MYSQL_LIBDIR=$withval/lib/mysql
29639 { $as_echo "$as_me:$LINENO: result: no" >&5
29640 $as_echo "no" >&6; }
29641 { { $as_echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
29642 $as_echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
29643 { (exit 1); exit 1; }; }
29645 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
29646 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
29648 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
29652 db_prog="postgresql"
29653 PG_CONFIG=`which pg_config`
29654 if test -n "$PG_CONFIG"; then
29655 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
29656 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
29657 elif test -f /usr/local/bin/psql; then
29658 POSTGRESQL_BINDIR=/usr/local/bin
29659 if test -d /usr/local/lib64; then
29660 POSTGRESQL_LIBDIR=/usr/local/lib64
29662 POSTGRESQL_LIBDIR=/usr/local/lib
29664 elif test -f /usr/bin/psql; then
29665 POSTGRESQL_BINDIR=/usr/local/bin
29666 if test -d /usr/lib64/postgresql; then
29667 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
29668 elif test -d /usr/lib/postgresql; then
29669 POSTGRESQL_LIBDIR=/usr/lib/postgresql
29670 elif test -d /usr/lib64; then
29671 POSTGRESQL_LIBDIR=/usr/lib64
29673 POSTGRESQL_LIBDIR=/usr/lib
29675 elif test -f $withval/bin/psql; then
29676 POSTGRESQL_BINDIR=$withval/bin
29677 if test -d $withval/lib64; then
29678 POSTGRESQL_LIBDIR=$withval/lib64
29680 POSTGRESQL_LIBDIR=$withval/lib
29683 { $as_echo "$as_me:$LINENO: result: no" >&5
29684 $as_echo "no" >&6; }
29685 { { $as_echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
29686 $as_echo "$as_me: error: Unable to find psql in standard locations" >&2;}
29687 { (exit 1); exit 1; }; }
29689 if test -f $POSTGRESQL_LIBDIR/libpq.so; then
29690 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
29692 DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
29697 if test -f /usr/local/bin/sqlite3; then
29698 SQLITE_BINDIR=/usr/local/bin
29699 if test -d /usr/local/lib64; then
29700 SQLITE_LIBDIR=/usr/local/lib64
29702 SQLITE_LIBDIR=/usr/local/lib
29704 elif test -f /usr/bin/sqlite3; then
29705 SQLITE_BINDIR=/usr/bin
29706 if test -d /usr/lib64; then
29707 SQLITE_LIBDIR=/usr/lib64
29709 SQLITE_LIBDIR=/usr/lib
29711 elif test -f $withval/bin/sqlite3; then
29712 SQLITE_BINDIR=$withval/bin
29713 if test -d $withval/lib64; then
29714 SQLITE_LIBDIR=$withval/lib64
29716 SQLITE_LIBDIR=$withval/lib
29719 { $as_echo "$as_me:$LINENO: result: no" >&5
29720 $as_echo "no" >&6; }
29721 { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29722 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29723 { (exit 1); exit 1; }; }
29725 if test -f $SQLITE_LIBDIR/libsqlite3.so; then
29726 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
29728 DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
29732 { $as_echo "$as_me:$LINENO: result: no" >&5
29733 $as_echo "no" >&6; }
29734 { { $as_echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
29735 $as_echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29736 { (exit 1); exit 1; }; }
29740 { $as_echo "$as_me:$LINENO: result: yes" >&5
29741 $as_echo "yes" >&6; }
29744 { $as_echo "$as_me:$LINENO: result: no" >&5
29745 $as_echo "no" >&6; }
29750 { $as_echo "$as_me:$LINENO: result: no" >&5
29751 $as_echo "no" >&6; }
29764 if test "x${db_backends}" = "x" ; then
29767 echo "You have not specified either --enable-client-only or one of the"
29768 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
29769 echo "This is not permitted. Please reconfigure."
29771 echo "Aborting the configuration ..."
29777 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
29779 DEFAULT_DB_TYPE="${DB_BACKENDS}"
29780 if test x$use_libtool = xno; then
29781 SHARED_CATALOG_TARGETS=""
29783 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
29787 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
29789 if test x$use_libtool = xno; then
29792 echo "You have specified two or more of the"
29793 echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
29794 echo "This is not permitted when not using libtool Please reconfigure."
29796 echo "Aborting the configuration ..."
29802 SHARED_CATALOG_TARGETS=""
29803 for db_type in ${DB_BACKENDS}
29805 if test -z "${SHARED_CATALOG_TARGETS}"; then
29806 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
29808 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
29814 if test x$use_libtool = xyes; then
29823 support_batch_insert=yes
29824 # Check whether --enable-batch-insert was given.
29825 if test "${enable_batch_insert+set}" = set; then
29826 enableval=$enable_batch_insert;
29827 if test x$enableval = xno; then
29828 support_batch_insert=no
29835 if test x$support_batch_insert = xyes; then
29837 cat >>confdefs.h <<\_ACEOF
29838 #define USE_BATCH_FILE_INSERT 1
29843 if test ! -z "$MYSQL_LIB"; then
29844 { $as_echo "$as_me:$LINENO: checking for mysql_thread_safe in -lmysql_r" >&5
29845 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
29846 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then
29847 $as_echo_n "(cached) " >&6
29849 ac_check_lib_save_LIBS=$LIBS
29850 LIBS="-lmysql_r $LIBS"
29851 cat >conftest.$ac_ext <<_ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h. */
29858 /* Override any GCC internal prototype to avoid an error.
29859 Use char because int might match the return type of a GCC
29860 builtin and then its argument prototype would still apply. */
29864 char mysql_thread_safe ();
29868 return mysql_thread_safe ();
29873 rm -f conftest.$ac_objext conftest$ac_exeext
29874 if { (ac_try="$ac_link"
29875 case "(($ac_try" in
29876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877 *) ac_try_echo=$ac_try;;
29879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29880 $as_echo "$ac_try_echo") >&5
29881 (eval "$ac_link") 2>conftest.er1
29883 grep -v '^ *+' conftest.er1 >conftest.err
29885 cat conftest.err >&5
29886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); } && {
29888 test -z "$ac_c_werror_flag" ||
29889 test ! -s conftest.err
29890 } && test -s conftest$ac_exeext && {
29891 test "$cross_compiling" = yes ||
29892 $as_test_x conftest$ac_exeext
29894 ac_cv_lib_mysql_r_mysql_thread_safe=yes
29896 $as_echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29899 ac_cv_lib_mysql_r_mysql_thread_safe=no
29902 rm -rf conftest.dSYM
29903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29904 conftest$ac_exeext conftest.$ac_ext
29905 LIBS=$ac_check_lib_save_LIBS
29907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
29908 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
29909 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then
29911 cat >>confdefs.h <<\_ACEOF
29912 #define HAVE_MYSQL_THREAD_SAFE 1
29919 if test ! -z "SQLITE_LIB"; then
29920 { $as_echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29921 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
29922 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29923 $as_echo_n "(cached) " >&6
29925 ac_check_lib_save_LIBS=$LIBS
29926 LIBS="-lsqlite3 $LIBS"
29927 cat >conftest.$ac_ext <<_ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h. */
29934 /* Override any GCC internal prototype to avoid an error.
29935 Use char because int might match the return type of a GCC
29936 builtin and then its argument prototype would still apply. */
29940 char sqlite3_threadsafe ();
29944 return sqlite3_threadsafe ();
29949 rm -f conftest.$ac_objext conftest$ac_exeext
29950 if { (ac_try="$ac_link"
29951 case "(($ac_try" in
29952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29953 *) ac_try_echo=$ac_try;;
29955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29956 $as_echo "$ac_try_echo") >&5
29957 (eval "$ac_link") 2>conftest.er1
29959 grep -v '^ *+' conftest.er1 >conftest.err
29961 cat conftest.err >&5
29962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); } && {
29964 test -z "$ac_c_werror_flag" ||
29965 test ! -s conftest.err
29966 } && test -s conftest$ac_exeext && {
29967 test "$cross_compiling" = yes ||
29968 $as_test_x conftest$ac_exeext
29970 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29972 $as_echo "$as_me: failed program was:" >&5
29973 sed 's/^/| /' conftest.$ac_ext >&5
29975 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29978 rm -rf conftest.dSYM
29979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29980 conftest$ac_exeext conftest.$ac_ext
29981 LIBS=$ac_check_lib_save_LIBS
29983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29984 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29985 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then
29987 cat >>confdefs.h <<\_ACEOF
29988 #define HAVE_SQLITE3_THREADSAFE 1
29995 if test ! -z "$POSTGRESQL_LIB"; then
29996 saved_LIBS="${LIBS}"
29997 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
29999 { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
30000 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
30001 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
30002 $as_echo_n "(cached) " >&6
30004 ac_check_lib_save_LIBS=$LIBS
30006 cat >conftest.$ac_ext <<_ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h. */
30013 /* Override any GCC internal prototype to avoid an error.
30014 Use char because int might match the return type of a GCC
30015 builtin and then its argument prototype would still apply. */
30019 char PQisthreadsafe ();
30023 return PQisthreadsafe ();
30028 rm -f conftest.$ac_objext conftest$ac_exeext
30029 if { (ac_try="$ac_link"
30030 case "(($ac_try" in
30031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032 *) ac_try_echo=$ac_try;;
30034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30035 $as_echo "$ac_try_echo") >&5
30036 (eval "$ac_link") 2>conftest.er1
30038 grep -v '^ *+' conftest.er1 >conftest.err
30040 cat conftest.err >&5
30041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); } && {
30043 test -z "$ac_c_werror_flag" ||
30044 test ! -s conftest.err
30045 } && test -s conftest$ac_exeext && {
30046 test "$cross_compiling" = yes ||
30047 $as_test_x conftest$ac_exeext
30049 ac_cv_lib_pq_PQisthreadsafe=yes
30051 $as_echo "$as_me: failed program was:" >&5
30052 sed 's/^/| /' conftest.$ac_ext >&5
30054 ac_cv_lib_pq_PQisthreadsafe=no
30057 rm -rf conftest.dSYM
30058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30059 conftest$ac_exeext conftest.$ac_ext
30060 LIBS=$ac_check_lib_save_LIBS
30062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
30063 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
30064 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
30066 cat >>confdefs.h <<\_ACEOF
30067 #define HAVE_PQISTHREADSAFE 1
30072 { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
30073 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
30074 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
30075 $as_echo_n "(cached) " >&6
30077 ac_check_lib_save_LIBS=$LIBS
30079 cat >conftest.$ac_ext <<_ACEOF
30082 cat confdefs.h >>conftest.$ac_ext
30083 cat >>conftest.$ac_ext <<_ACEOF
30084 /* end confdefs.h. */
30086 /* Override any GCC internal prototype to avoid an error.
30087 Use char because int might match the return type of a GCC
30088 builtin and then its argument prototype would still apply. */
30092 char PQputCopyData ();
30096 return PQputCopyData ();
30101 rm -f conftest.$ac_objext conftest$ac_exeext
30102 if { (ac_try="$ac_link"
30103 case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30108 $as_echo "$ac_try_echo") >&5
30109 (eval "$ac_link") 2>conftest.er1
30111 grep -v '^ *+' conftest.er1 >conftest.err
30113 cat conftest.err >&5
30114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); } && {
30116 test -z "$ac_c_werror_flag" ||
30117 test ! -s conftest.err
30118 } && test -s conftest$ac_exeext && {
30119 test "$cross_compiling" = yes ||
30120 $as_test_x conftest$ac_exeext
30122 ac_cv_lib_pq_PQputCopyData=yes
30124 $as_echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30127 ac_cv_lib_pq_PQputCopyData=no
30130 rm -rf conftest.dSYM
30131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30132 conftest$ac_exeext conftest.$ac_ext
30133 LIBS=$ac_check_lib_save_LIBS
30135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
30136 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
30137 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
30139 cat >>confdefs.h <<\_ACEOF
30140 #define HAVE_PQ_COPY 1
30145 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
30146 if test $support_batch_insert = yes ; then
30148 cat >>confdefs.h <<\_ACEOF
30149 #define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1
30155 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
30157 echo "WARNING: Your PostgreSQL client library is too old to detect "
30158 echo "if it was compiled with --enable-thread-safety, consider to "
30159 echo "upgrade it in order to avoid problems with Batch insert mode"
30163 LIBS="${saved_LIBS}"
30166 if test ! -z "$DBI_LIBS"; then
30167 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
30169 if test $DB_PROG = postgresql; then
30170 { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
30171 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
30172 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
30173 $as_echo_n "(cached) " >&6
30175 ac_check_lib_save_LIBS=$LIBS
30177 cat >conftest.$ac_ext <<_ACEOF
30180 cat confdefs.h >>conftest.$ac_ext
30181 cat >>conftest.$ac_ext <<_ACEOF
30182 /* end confdefs.h. */
30184 /* Override any GCC internal prototype to avoid an error.
30185 Use char because int might match the return type of a GCC
30186 builtin and then its argument prototype would still apply. */
30190 char PQisthreadsafe ();
30194 return PQisthreadsafe ();
30199 rm -f conftest.$ac_objext conftest$ac_exeext
30200 if { (ac_try="$ac_link"
30201 case "(($ac_try" in
30202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203 *) ac_try_echo=$ac_try;;
30205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30206 $as_echo "$ac_try_echo") >&5
30207 (eval "$ac_link") 2>conftest.er1
30209 grep -v '^ *+' conftest.er1 >conftest.err
30211 cat conftest.err >&5
30212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); } && {
30214 test -z "$ac_c_werror_flag" ||
30215 test ! -s conftest.err
30216 } && test -s conftest$ac_exeext && {
30217 test "$cross_compiling" = yes ||
30218 $as_test_x conftest$ac_exeext
30220 ac_cv_lib_pq_PQisthreadsafe=yes
30222 $as_echo "$as_me: failed program was:" >&5
30223 sed 's/^/| /' conftest.$ac_ext >&5
30225 ac_cv_lib_pq_PQisthreadsafe=no
30228 rm -rf conftest.dSYM
30229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30230 conftest$ac_exeext conftest.$ac_ext
30231 LIBS=$ac_check_lib_save_LIBS
30233 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
30234 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
30235 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
30236 cat >>confdefs.h <<\_ACEOF
30237 #define HAVE_PQISTHREADSAFE 1
30242 { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
30243 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
30244 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
30245 $as_echo_n "(cached) " >&6
30247 ac_check_lib_save_LIBS=$LIBS
30249 cat >conftest.$ac_ext <<_ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h. */
30256 /* Override any GCC internal prototype to avoid an error.
30257 Use char because int might match the return type of a GCC
30258 builtin and then its argument prototype would still apply. */
30262 char PQputCopyData ();
30266 return PQputCopyData ();
30271 rm -f conftest.$ac_objext conftest$ac_exeext
30272 if { (ac_try="$ac_link"
30273 case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30278 $as_echo "$ac_try_echo") >&5
30279 (eval "$ac_link") 2>conftest.er1
30281 grep -v '^ *+' conftest.er1 >conftest.err
30283 cat conftest.err >&5
30284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); } && {
30286 test -z "$ac_c_werror_flag" ||
30287 test ! -s conftest.err
30288 } && test -s conftest$ac_exeext && {
30289 test "$cross_compiling" = yes ||
30290 $as_test_x conftest$ac_exeext
30292 ac_cv_lib_pq_PQputCopyData=yes
30294 $as_echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.$ac_ext >&5
30297 ac_cv_lib_pq_PQputCopyData=no
30300 rm -rf conftest.dSYM
30301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30302 conftest$ac_exeext conftest.$ac_ext
30303 LIBS=$ac_check_lib_save_LIBS
30305 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
30306 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
30307 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
30308 cat >>confdefs.h <<\_ACEOF
30309 #define HAVE_PQ_COPY 1
30314 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
30316 if test $pkg = 0; then
30317 if test $support_batch_insert = yes ; then
30319 cat >>confdefs.h <<\_ACEOF
30320 #define HAVE_DBI_BATCH_FILE_INSERT 1
30332 cat >>confdefs.h <<\_ACEOF
30333 #define PROTOTYPES 1
30337 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
30338 if test -z "$CCOPTS"; then
30339 CCOPTS='-g -O2 -Wall'
30346 largefile_support="no"
30348 # Check whether --enable-largefile was given.
30349 if test "${enable_largefile+set}" = set; then
30350 enableval=$enable_largefile;
30353 if test "$enable_largefile" != no; then
30354 if test -n "$ac_tool_prefix"; then
30355 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
30356 set dummy ${ac_tool_prefix}getconf; ac_word=$2
30357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30358 $as_echo_n "checking for $ac_word... " >&6; }
30359 if test "${ac_cv_prog_GETCONF+set}" = set; then
30360 $as_echo_n "(cached) " >&6
30362 if test -n "$GETCONF"; then
30363 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
30365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30366 for as_dir in $PATH
30369 test -z "$as_dir" && as_dir=.
30370 for ac_exec_ext in '' $ac_executable_extensions; do
30371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30372 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
30373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30382 GETCONF=$ac_cv_prog_GETCONF
30383 if test -n "$GETCONF"; then
30384 { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
30385 $as_echo "$GETCONF" >&6; }
30387 { $as_echo "$as_me:$LINENO: result: no" >&5
30388 $as_echo "no" >&6; }
30393 if test -z "$ac_cv_prog_GETCONF"; then
30394 ac_ct_GETCONF=$GETCONF
30395 # Extract the first word of "getconf", so it can be a program name with args.
30396 set dummy getconf; ac_word=$2
30397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30398 $as_echo_n "checking for $ac_word... " >&6; }
30399 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
30400 $as_echo_n "(cached) " >&6
30402 if test -n "$ac_ct_GETCONF"; then
30403 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
30405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30406 for as_dir in $PATH
30409 test -z "$as_dir" && as_dir=.
30410 for ac_exec_ext in '' $ac_executable_extensions; do
30411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30412 ac_cv_prog_ac_ct_GETCONF="getconf"
30413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30422 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
30423 if test -n "$ac_ct_GETCONF"; then
30424 { $as_echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
30425 $as_echo "$ac_ct_GETCONF" >&6; }
30427 { $as_echo "$as_me:$LINENO: result: no" >&5
30428 $as_echo "no" >&6; }
30431 if test "x$ac_ct_GETCONF" = x; then
30434 case $cross_compiling:$ac_tool_warned in
30436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30438 ac_tool_warned=yes ;;
30440 GETCONF=$ac_ct_GETCONF
30443 GETCONF="$ac_cv_prog_GETCONF"
30446 { $as_echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
30447 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
30448 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
30449 $as_echo_n "(cached) " >&6
30451 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
30452 ac_cv_sys_largefile_CFLAGS=no
30454 # IRIX 6.2 and later require cc -n32.
30455 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
30456 if test "$GCC" != yes; then
30457 ac_cv_sys_largefile_CFLAGS=-n32
30460 CC="$CC $ac_cv_sys_largefile_CFLAGS"
30461 cat >conftest.$ac_ext <<_ACEOF
30464 cat confdefs.h >>conftest.$ac_ext
30465 cat >>conftest.$ac_ext <<_ACEOF
30466 /* end confdefs.h. */
30476 rm -f conftest.$ac_objext conftest$ac_exeext
30477 if { (ac_try="$ac_link"
30478 case "(($ac_try" in
30479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30480 *) ac_try_echo=$ac_try;;
30482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30483 $as_echo "$ac_try_echo") >&5
30484 (eval "$ac_link") 2>conftest.er1
30486 grep -v '^ *+' conftest.er1 >conftest.err
30488 cat conftest.err >&5
30489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); } && {
30491 test -z "$ac_c_werror_flag" ||
30492 test ! -s conftest.err
30493 } && test -s conftest$ac_exeext && {
30494 test "$cross_compiling" = yes ||
30495 $as_test_x conftest$ac_exeext
30499 $as_echo "$as_me: failed program was:" >&5
30500 sed 's/^/| /' conftest.$ac_ext >&5
30502 ac_cv_sys_largefile_CFLAGS=no
30505 rm -rf conftest.dSYM
30506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30507 conftest$ac_exeext conftest.$ac_ext
30512 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
30513 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
30514 { $as_echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
30515 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
30516 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
30517 $as_echo_n "(cached) " >&6
30519 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
30520 ac_cv_sys_largefile_LDFLAGS=no
30524 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
30525 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
30526 { $as_echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
30527 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
30528 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
30529 $as_echo_n "(cached) " >&6
30531 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
30532 ac_cv_sys_largefile_LIBS=no
30536 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
30537 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
30539 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30542 -D_FILE_OFFSET_BITS=*) ;;
30543 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
30544 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
30549 case "$CPPFLAGS" in
30550 '') CPPFLAGS="$ac_flag" ;;
30551 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
30559 '') CFLAGS="$ac_flag" ;;
30560 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
30565 case "$ac_cv_sys_largefile_LDFLAGS" in
30569 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
30570 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
30573 case "$ac_cv_sys_largefile_LIBS" in
30577 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
30578 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
30581 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
30582 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
30583 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30584 $as_echo_n "(cached) " >&6
30586 ac_cv_sys_file_offset_bits=no
30587 ac_cv_sys_file_offset_bits=64
30588 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30590 -D_FILE_OFFSET_BITS)
30591 ac_cv_sys_file_offset_bits=1 ;;
30592 -D_FILE_OFFSET_BITS=*)
30593 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30598 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
30600 if test "$ac_cv_sys_file_offset_bits" != no; then
30602 cat >>confdefs.h <<_ACEOF
30603 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30607 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
30608 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
30609 if test "${ac_cv_sys_largefile_source+set}" = set; then
30610 $as_echo_n "(cached) " >&6
30612 ac_cv_sys_largefile_source=no
30613 ac_cv_sys_largefile_source=1
30614 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30616 -D_LARGEFILE_SOURCE)
30617 ac_cv_sys_largefile_source=1 ;;
30618 -D_LARGEFILE_SOURCE=*)
30619 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30624 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
30625 $as_echo "$ac_cv_sys_largefile_source" >&6; }
30626 if test "$ac_cv_sys_largefile_source" != no; then
30628 cat >>confdefs.h <<_ACEOF
30629 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
30633 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
30634 $as_echo_n "checking for _LARGE_FILES... " >&6; }
30635 if test "${ac_cv_sys_large_files+set}" = set; then
30636 $as_echo_n "(cached) " >&6
30638 ac_cv_sys_large_files=no
30639 ac_cv_sys_large_files=1
30640 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30643 ac_cv_sys_large_files=1 ;;
30645 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30650 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30651 $as_echo "$ac_cv_sys_large_files" >&6; }
30652 if test "$ac_cv_sys_large_files" != no; then
30654 cat >>confdefs.h <<_ACEOF
30655 #define _LARGE_FILES $ac_cv_sys_large_files
30662 { $as_echo "$as_me:$LINENO: checking for X" >&5
30663 $as_echo_n "checking for X... " >&6; }
30666 # Check whether --with-x was given.
30667 if test "${with_x+set}" = set; then
30671 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30672 if test "x$with_x" = xno; then
30673 # The user explicitly disabled X.
30676 case $x_includes,$x_libraries in #(
30677 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
30678 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
30679 { (exit 1); exit 1; }; };; #(
30680 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30681 $as_echo_n "(cached) " >&6
30683 # One or both of the vars are not set, and there is no cached value.
30684 ac_x_includes=no ac_x_libraries=no
30685 rm -f -r conftest.dir
30686 if mkdir conftest.dir; then
30688 cat >Imakefile <<'_ACEOF'
30690 @echo incroot='${INCROOT}'
30692 @echo usrlibdir='${USRLIBDIR}'
30694 @echo libdir='${LIBDIR}'
30696 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30697 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30698 for ac_var in incroot usrlibdir libdir; do
30699 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30701 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30702 for ac_extension in a so sl dylib la dll; do
30703 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30704 test -f "$ac_im_libdir/libX11.$ac_extension"; then
30705 ac_im_usrlibdir=$ac_im_libdir; break
30708 # Screen out bogus values from the imake configuration. They are
30709 # bogus both because they are the default anyway, and because
30710 # using them would break gcc on systems where it needs fixed includes.
30711 case $ac_im_incroot in
30712 /usr/include) ac_x_includes= ;;
30713 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30715 case $ac_im_usrlibdir in
30716 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30717 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30721 rm -f -r conftest.dir
30724 # Standard set of common directories for X headers.
30725 # Check X11 before X11Rn because it is often a symlink to the current release.
30737 /usr/local/X11/include
30738 /usr/local/X11R6/include
30739 /usr/local/X11R5/include
30740 /usr/local/X11R4/include
30742 /usr/local/include/X11
30743 /usr/local/include/X11R6
30744 /usr/local/include/X11R5
30745 /usr/local/include/X11R4
30749 /usr/XFree86/include/X11
30753 /usr/unsupported/include
30754 /usr/athena/include
30755 /usr/local/x11r5/include
30756 /usr/lpp/Xamples/include
30758 /usr/openwin/include
30759 /usr/openwin/share/include'
30761 if test "$ac_x_includes" = no; then
30762 # Guess where to find include files, by looking for Xlib.h.
30763 # First, try using that file with no special directory specified.
30764 cat >conftest.$ac_ext <<_ACEOF
30767 cat confdefs.h >>conftest.$ac_ext
30768 cat >>conftest.$ac_ext <<_ACEOF
30769 /* end confdefs.h. */
30770 #include <X11/Xlib.h>
30772 if { (ac_try="$ac_cpp conftest.$ac_ext"
30773 case "(($ac_try" in
30774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775 *) ac_try_echo=$ac_try;;
30777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30778 $as_echo "$ac_try_echo") >&5
30779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30781 grep -v '^ *+' conftest.er1 >conftest.err
30783 cat conftest.err >&5
30784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } >/dev/null && {
30786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30787 test ! -s conftest.err
30789 # We can compile using X headers with no special include directory.
30792 $as_echo "$as_me: failed program was:" >&5
30793 sed 's/^/| /' conftest.$ac_ext >&5
30795 for ac_dir in $ac_x_header_dirs; do
30796 if test -r "$ac_dir/X11/Xlib.h"; then
30797 ac_x_includes=$ac_dir
30803 rm -f conftest.err conftest.$ac_ext
30804 fi # $ac_x_includes = no
30806 if test "$ac_x_libraries" = no; then
30807 # Check for the libraries.
30808 # See if we find them without any special options.
30809 # Don't add to $LIBS permanently.
30812 cat >conftest.$ac_ext <<_ACEOF
30815 cat confdefs.h >>conftest.$ac_ext
30816 cat >>conftest.$ac_ext <<_ACEOF
30817 /* end confdefs.h. */
30818 #include <X11/Xlib.h>
30827 rm -f conftest.$ac_objext conftest$ac_exeext
30828 if { (ac_try="$ac_link"
30829 case "(($ac_try" in
30830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831 *) ac_try_echo=$ac_try;;
30833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30834 $as_echo "$ac_try_echo") >&5
30835 (eval "$ac_link") 2>conftest.er1
30837 grep -v '^ *+' conftest.er1 >conftest.err
30839 cat conftest.err >&5
30840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); } && {
30842 test -z "$ac_c_werror_flag" ||
30843 test ! -s conftest.err
30844 } && test -s conftest$ac_exeext && {
30845 test "$cross_compiling" = yes ||
30846 $as_test_x conftest$ac_exeext
30849 # We can link X programs with no special library path.
30852 $as_echo "$as_me: failed program was:" >&5
30853 sed 's/^/| /' conftest.$ac_ext >&5
30856 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30858 # Don't even attempt the hair of trying to link an X program!
30859 for ac_extension in a so sl dylib la dll; do
30860 if test -r "$ac_dir/libX11.$ac_extension"; then
30861 ac_x_libraries=$ac_dir
30868 rm -rf conftest.dSYM
30869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30870 conftest$ac_exeext conftest.$ac_ext
30871 fi # $ac_x_libraries = no
30873 case $ac_x_includes,$ac_x_libraries in #(
30874 no,* | *,no | *\'*)
30875 # Didn't find X, or a directory has "'" in its name.
30876 ac_cv_have_x="have_x=no";; #(
30878 # Record where we found X for the cache.
30879 ac_cv_have_x="have_x=yes\
30880 ac_x_includes='$ac_x_includes'\
30881 ac_x_libraries='$ac_x_libraries'"
30887 eval "$ac_cv_have_x"
30890 if test "$have_x" != yes; then
30891 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
30892 $as_echo "$have_x" >&6; }
30895 # If each of the values was on the command line, it overrides each guess.
30896 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30897 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30898 # Update the cache value to reflect the command line values.
30899 ac_cv_have_x="have_x=yes\
30900 ac_x_includes='$x_includes'\
30901 ac_x_libraries='$x_libraries'"
30902 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30903 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
30906 if test "$no_x" = yes; then
30907 # Not all programs may use this symbol, but it does not hurt to define it.
30909 cat >>confdefs.h <<\_ACEOF
30910 #define X_DISPLAY_MISSING 1
30913 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30915 if test -n "$x_includes"; then
30916 X_CFLAGS="$X_CFLAGS -I$x_includes"
30919 # It would also be nice to do this for all -L options, not just this one.
30920 if test -n "$x_libraries"; then
30921 X_LIBS="$X_LIBS -L$x_libraries"
30922 # For Solaris; some versions of Sun CC require a space after -R and
30923 # others require no space. Words are not sufficient . . . .
30924 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30925 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
30926 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30927 ac_xsave_c_werror_flag=$ac_c_werror_flag
30928 ac_c_werror_flag=yes
30929 cat >conftest.$ac_ext <<_ACEOF
30932 cat confdefs.h >>conftest.$ac_ext
30933 cat >>conftest.$ac_ext <<_ACEOF
30934 /* end confdefs.h. */
30944 rm -f conftest.$ac_objext conftest$ac_exeext
30945 if { (ac_try="$ac_link"
30946 case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30951 $as_echo "$ac_try_echo") >&5
30952 (eval "$ac_link") 2>conftest.er1
30954 grep -v '^ *+' conftest.er1 >conftest.err
30956 cat conftest.err >&5
30957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } && {
30959 test -z "$ac_c_werror_flag" ||
30960 test ! -s conftest.err
30961 } && test -s conftest$ac_exeext && {
30962 test "$cross_compiling" = yes ||
30963 $as_test_x conftest$ac_exeext
30965 { $as_echo "$as_me:$LINENO: result: no" >&5
30966 $as_echo "no" >&6; }
30967 X_LIBS="$X_LIBS -R$x_libraries"
30969 $as_echo "$as_me: failed program was:" >&5
30970 sed 's/^/| /' conftest.$ac_ext >&5
30972 LIBS="$ac_xsave_LIBS -R $x_libraries"
30973 cat >conftest.$ac_ext <<_ACEOF
30976 cat confdefs.h >>conftest.$ac_ext
30977 cat >>conftest.$ac_ext <<_ACEOF
30978 /* end confdefs.h. */
30988 rm -f conftest.$ac_objext conftest$ac_exeext
30989 if { (ac_try="$ac_link"
30990 case "(($ac_try" in
30991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30992 *) ac_try_echo=$ac_try;;
30994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30995 $as_echo "$ac_try_echo") >&5
30996 (eval "$ac_link") 2>conftest.er1
30998 grep -v '^ *+' conftest.er1 >conftest.err
31000 cat conftest.err >&5
31001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } && {
31003 test -z "$ac_c_werror_flag" ||
31004 test ! -s conftest.err
31005 } && test -s conftest$ac_exeext && {
31006 test "$cross_compiling" = yes ||
31007 $as_test_x conftest$ac_exeext
31009 { $as_echo "$as_me:$LINENO: result: yes" >&5
31010 $as_echo "yes" >&6; }
31011 X_LIBS="$X_LIBS -R $x_libraries"
31013 $as_echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31016 { $as_echo "$as_me:$LINENO: result: neither works" >&5
31017 $as_echo "neither works" >&6; }
31020 rm -rf conftest.dSYM
31021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31022 conftest$ac_exeext conftest.$ac_ext
31025 rm -rf conftest.dSYM
31026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31027 conftest$ac_exeext conftest.$ac_ext
31028 ac_c_werror_flag=$ac_xsave_c_werror_flag
31029 LIBS=$ac_xsave_LIBS
31032 # Check for system-dependent libraries X programs must link with.
31033 # Do this before checking for the system-independent R6 libraries
31034 # (-lICE), since we may need -lsocket or whatever for X linking.
31036 if test "$ISC" = yes; then
31037 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31039 # Martyn Johnson says this is needed for Ultrix, if the X
31040 # libraries were built with DECnet support. And Karl Berry says
31041 # the Alpha needs dnet_stub (dnet does not exist).
31042 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31043 cat >conftest.$ac_ext <<_ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h. */
31050 /* Override any GCC internal prototype to avoid an error.
31051 Use char because int might match the return type of a GCC
31052 builtin and then its argument prototype would still apply. */
31056 char XOpenDisplay ();
31060 return XOpenDisplay ();
31065 rm -f conftest.$ac_objext conftest$ac_exeext
31066 if { (ac_try="$ac_link"
31067 case "(($ac_try" in
31068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31069 *) ac_try_echo=$ac_try;;
31071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31072 $as_echo "$ac_try_echo") >&5
31073 (eval "$ac_link") 2>conftest.er1
31075 grep -v '^ *+' conftest.er1 >conftest.err
31077 cat conftest.err >&5
31078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); } && {
31080 test -z "$ac_c_werror_flag" ||
31081 test ! -s conftest.err
31082 } && test -s conftest$ac_exeext && {
31083 test "$cross_compiling" = yes ||
31084 $as_test_x conftest$ac_exeext
31088 $as_echo "$as_me: failed program was:" >&5
31089 sed 's/^/| /' conftest.$ac_ext >&5
31091 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31092 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
31093 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
31094 $as_echo_n "(cached) " >&6
31096 ac_check_lib_save_LIBS=$LIBS
31097 LIBS="-ldnet $LIBS"
31098 cat >conftest.$ac_ext <<_ACEOF
31101 cat confdefs.h >>conftest.$ac_ext
31102 cat >>conftest.$ac_ext <<_ACEOF
31103 /* end confdefs.h. */
31105 /* Override any GCC internal prototype to avoid an error.
31106 Use char because int might match the return type of a GCC
31107 builtin and then its argument prototype would still apply. */
31115 return dnet_ntoa ();
31120 rm -f conftest.$ac_objext conftest$ac_exeext
31121 if { (ac_try="$ac_link"
31122 case "(($ac_try" in
31123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124 *) ac_try_echo=$ac_try;;
31126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31127 $as_echo "$ac_try_echo") >&5
31128 (eval "$ac_link") 2>conftest.er1
31130 grep -v '^ *+' conftest.er1 >conftest.err
31132 cat conftest.err >&5
31133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } && {
31135 test -z "$ac_c_werror_flag" ||
31136 test ! -s conftest.err
31137 } && test -s conftest$ac_exeext && {
31138 test "$cross_compiling" = yes ||
31139 $as_test_x conftest$ac_exeext
31141 ac_cv_lib_dnet_dnet_ntoa=yes
31143 $as_echo "$as_me: failed program was:" >&5
31144 sed 's/^/| /' conftest.$ac_ext >&5
31146 ac_cv_lib_dnet_dnet_ntoa=no
31149 rm -rf conftest.dSYM
31150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31151 conftest$ac_exeext conftest.$ac_ext
31152 LIBS=$ac_check_lib_save_LIBS
31154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31155 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
31156 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
31157 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31160 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
31161 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
31162 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
31163 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
31164 $as_echo_n "(cached) " >&6
31166 ac_check_lib_save_LIBS=$LIBS
31167 LIBS="-ldnet_stub $LIBS"
31168 cat >conftest.$ac_ext <<_ACEOF
31171 cat confdefs.h >>conftest.$ac_ext
31172 cat >>conftest.$ac_ext <<_ACEOF
31173 /* end confdefs.h. */
31175 /* Override any GCC internal prototype to avoid an error.
31176 Use char because int might match the return type of a GCC
31177 builtin and then its argument prototype would still apply. */
31185 return dnet_ntoa ();
31190 rm -f conftest.$ac_objext conftest$ac_exeext
31191 if { (ac_try="$ac_link"
31192 case "(($ac_try" in
31193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31194 *) ac_try_echo=$ac_try;;
31196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31197 $as_echo "$ac_try_echo") >&5
31198 (eval "$ac_link") 2>conftest.er1
31200 grep -v '^ *+' conftest.er1 >conftest.err
31202 cat conftest.err >&5
31203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31204 (exit $ac_status); } && {
31205 test -z "$ac_c_werror_flag" ||
31206 test ! -s conftest.err
31207 } && test -s conftest$ac_exeext && {
31208 test "$cross_compiling" = yes ||
31209 $as_test_x conftest$ac_exeext
31211 ac_cv_lib_dnet_stub_dnet_ntoa=yes
31213 $as_echo "$as_me: failed program was:" >&5
31214 sed 's/^/| /' conftest.$ac_ext >&5
31216 ac_cv_lib_dnet_stub_dnet_ntoa=no
31219 rm -rf conftest.dSYM
31220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31221 conftest$ac_exeext conftest.$ac_ext
31222 LIBS=$ac_check_lib_save_LIBS
31224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31225 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31226 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
31227 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31233 rm -rf conftest.dSYM
31234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31235 conftest$ac_exeext conftest.$ac_ext
31236 LIBS="$ac_xsave_LIBS"
31238 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31239 # to get the SysV transport functions.
31240 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31242 # The nsl library prevents programs from opening the X display
31243 # on Irix 5.2, according to T.E. Dickey.
31244 # The functions gethostbyname, getservbyname, and inet_addr are
31245 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31246 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
31247 $as_echo_n "checking for gethostbyname... " >&6; }
31248 if test "${ac_cv_func_gethostbyname+set}" = set; then
31249 $as_echo_n "(cached) " >&6
31251 cat >conftest.$ac_ext <<_ACEOF
31254 cat confdefs.h >>conftest.$ac_ext
31255 cat >>conftest.$ac_ext <<_ACEOF
31256 /* end confdefs.h. */
31257 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31259 #define gethostbyname innocuous_gethostbyname
31261 /* System header to define __stub macros and hopefully few prototypes,
31262 which can conflict with char gethostbyname (); below.
31263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31264 <limits.h> exists even on freestanding compilers. */
31267 # include <limits.h>
31269 # include <assert.h>
31272 #undef gethostbyname
31274 /* Override any GCC internal prototype to avoid an error.
31275 Use char because int might match the return type of a GCC
31276 builtin and then its argument prototype would still apply. */
31280 char gethostbyname ();
31281 /* The GNU C library defines this for functions which it implements
31282 to always fail with ENOSYS. Some functions are actually named
31283 something starting with __ and the normal name is an alias. */
31284 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31291 return gethostbyname ();
31296 rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (ac_try="$ac_link"
31298 case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31303 $as_echo "$ac_try_echo") >&5
31304 (eval "$ac_link") 2>conftest.er1
31306 grep -v '^ *+' conftest.er1 >conftest.err
31308 cat conftest.err >&5
31309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); } && {
31311 test -z "$ac_c_werror_flag" ||
31312 test ! -s conftest.err
31313 } && test -s conftest$ac_exeext && {
31314 test "$cross_compiling" = yes ||
31315 $as_test_x conftest$ac_exeext
31317 ac_cv_func_gethostbyname=yes
31319 $as_echo "$as_me: failed program was:" >&5
31320 sed 's/^/| /' conftest.$ac_ext >&5
31322 ac_cv_func_gethostbyname=no
31325 rm -rf conftest.dSYM
31326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31327 conftest$ac_exeext conftest.$ac_ext
31329 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31330 $as_echo "$ac_cv_func_gethostbyname" >&6; }
31332 if test $ac_cv_func_gethostbyname = no; then
31333 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31334 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
31335 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31336 $as_echo_n "(cached) " >&6
31338 ac_check_lib_save_LIBS=$LIBS
31340 cat >conftest.$ac_ext <<_ACEOF
31343 cat confdefs.h >>conftest.$ac_ext
31344 cat >>conftest.$ac_ext <<_ACEOF
31345 /* end confdefs.h. */
31347 /* Override any GCC internal prototype to avoid an error.
31348 Use char because int might match the return type of a GCC
31349 builtin and then its argument prototype would still apply. */
31353 char gethostbyname ();
31357 return gethostbyname ();
31362 rm -f conftest.$ac_objext conftest$ac_exeext
31363 if { (ac_try="$ac_link"
31364 case "(($ac_try" in
31365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366 *) ac_try_echo=$ac_try;;
31368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31369 $as_echo "$ac_try_echo") >&5
31370 (eval "$ac_link") 2>conftest.er1
31372 grep -v '^ *+' conftest.er1 >conftest.err
31374 cat conftest.err >&5
31375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } && {
31377 test -z "$ac_c_werror_flag" ||
31378 test ! -s conftest.err
31379 } && test -s conftest$ac_exeext && {
31380 test "$cross_compiling" = yes ||
31381 $as_test_x conftest$ac_exeext
31383 ac_cv_lib_nsl_gethostbyname=yes
31385 $as_echo "$as_me: failed program was:" >&5
31386 sed 's/^/| /' conftest.$ac_ext >&5
31388 ac_cv_lib_nsl_gethostbyname=no
31391 rm -rf conftest.dSYM
31392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31393 conftest$ac_exeext conftest.$ac_ext
31394 LIBS=$ac_check_lib_save_LIBS
31396 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31397 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
31398 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
31399 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31402 if test $ac_cv_lib_nsl_gethostbyname = no; then
31403 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31404 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
31405 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31406 $as_echo_n "(cached) " >&6
31408 ac_check_lib_save_LIBS=$LIBS
31410 cat >conftest.$ac_ext <<_ACEOF
31413 cat confdefs.h >>conftest.$ac_ext
31414 cat >>conftest.$ac_ext <<_ACEOF
31415 /* end confdefs.h. */
31417 /* Override any GCC internal prototype to avoid an error.
31418 Use char because int might match the return type of a GCC
31419 builtin and then its argument prototype would still apply. */
31423 char gethostbyname ();
31427 return gethostbyname ();
31432 rm -f conftest.$ac_objext conftest$ac_exeext
31433 if { (ac_try="$ac_link"
31434 case "(($ac_try" in
31435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31436 *) ac_try_echo=$ac_try;;
31438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31439 $as_echo "$ac_try_echo") >&5
31440 (eval "$ac_link") 2>conftest.er1
31442 grep -v '^ *+' conftest.er1 >conftest.err
31444 cat conftest.err >&5
31445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); } && {
31447 test -z "$ac_c_werror_flag" ||
31448 test ! -s conftest.err
31449 } && test -s conftest$ac_exeext && {
31450 test "$cross_compiling" = yes ||
31451 $as_test_x conftest$ac_exeext
31453 ac_cv_lib_bsd_gethostbyname=yes
31455 $as_echo "$as_me: failed program was:" >&5
31456 sed 's/^/| /' conftest.$ac_ext >&5
31458 ac_cv_lib_bsd_gethostbyname=no
31461 rm -rf conftest.dSYM
31462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31463 conftest$ac_exeext conftest.$ac_ext
31464 LIBS=$ac_check_lib_save_LIBS
31466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31467 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
31468 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
31469 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31475 # lieder@skyler.mavd.honeywell.com says without -lsocket,
31476 # socket/setsockopt and other routines are undefined under SCO ODT
31477 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
31478 # on later versions), says Simon Leinen: it contains gethostby*
31479 # variants that don't use the name server (or something). -lsocket
31480 # must be given before -lnsl if both are needed. We assume that
31481 # if connect needs -lnsl, so does gethostbyname.
31482 { $as_echo "$as_me:$LINENO: checking for connect" >&5
31483 $as_echo_n "checking for connect... " >&6; }
31484 if test "${ac_cv_func_connect+set}" = set; then
31485 $as_echo_n "(cached) " >&6
31487 cat >conftest.$ac_ext <<_ACEOF
31490 cat confdefs.h >>conftest.$ac_ext
31491 cat >>conftest.$ac_ext <<_ACEOF
31492 /* end confdefs.h. */
31493 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31495 #define connect innocuous_connect
31497 /* System header to define __stub macros and hopefully few prototypes,
31498 which can conflict with char connect (); below.
31499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31500 <limits.h> exists even on freestanding compilers. */
31503 # include <limits.h>
31505 # include <assert.h>
31510 /* Override any GCC internal prototype to avoid an error.
31511 Use char because int might match the return type of a GCC
31512 builtin and then its argument prototype would still apply. */
31517 /* The GNU C library defines this for functions which it implements
31518 to always fail with ENOSYS. Some functions are actually named
31519 something starting with __ and the normal name is an alias. */
31520 #if defined __stub_connect || defined __stub___connect
31532 rm -f conftest.$ac_objext conftest$ac_exeext
31533 if { (ac_try="$ac_link"
31534 case "(($ac_try" in
31535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31536 *) ac_try_echo=$ac_try;;
31538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31539 $as_echo "$ac_try_echo") >&5
31540 (eval "$ac_link") 2>conftest.er1
31542 grep -v '^ *+' conftest.er1 >conftest.err
31544 cat conftest.err >&5
31545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); } && {
31547 test -z "$ac_c_werror_flag" ||
31548 test ! -s conftest.err
31549 } && test -s conftest$ac_exeext && {
31550 test "$cross_compiling" = yes ||
31551 $as_test_x conftest$ac_exeext
31553 ac_cv_func_connect=yes
31555 $as_echo "$as_me: failed program was:" >&5
31556 sed 's/^/| /' conftest.$ac_ext >&5
31558 ac_cv_func_connect=no
31561 rm -rf conftest.dSYM
31562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31563 conftest$ac_exeext conftest.$ac_ext
31565 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31566 $as_echo "$ac_cv_func_connect" >&6; }
31568 if test $ac_cv_func_connect = no; then
31569 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31570 $as_echo_n "checking for connect in -lsocket... " >&6; }
31571 if test "${ac_cv_lib_socket_connect+set}" = set; then
31572 $as_echo_n "(cached) " >&6
31574 ac_check_lib_save_LIBS=$LIBS
31575 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31576 cat >conftest.$ac_ext <<_ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h. */
31583 /* Override any GCC internal prototype to avoid an error.
31584 Use char because int might match the return type of a GCC
31585 builtin and then its argument prototype would still apply. */
31598 rm -f conftest.$ac_objext conftest$ac_exeext
31599 if { (ac_try="$ac_link"
31600 case "(($ac_try" in
31601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31602 *) ac_try_echo=$ac_try;;
31604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31605 $as_echo "$ac_try_echo") >&5
31606 (eval "$ac_link") 2>conftest.er1
31608 grep -v '^ *+' conftest.er1 >conftest.err
31610 cat conftest.err >&5
31611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); } && {
31613 test -z "$ac_c_werror_flag" ||
31614 test ! -s conftest.err
31615 } && test -s conftest$ac_exeext && {
31616 test "$cross_compiling" = yes ||
31617 $as_test_x conftest$ac_exeext
31619 ac_cv_lib_socket_connect=yes
31621 $as_echo "$as_me: failed program was:" >&5
31622 sed 's/^/| /' conftest.$ac_ext >&5
31624 ac_cv_lib_socket_connect=no
31627 rm -rf conftest.dSYM
31628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31629 conftest$ac_exeext conftest.$ac_ext
31630 LIBS=$ac_check_lib_save_LIBS
31632 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31633 $as_echo "$ac_cv_lib_socket_connect" >&6; }
31634 if test "x$ac_cv_lib_socket_connect" = x""yes; then
31635 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31640 # Guillermo Gomez says -lposix is necessary on A/UX.
31641 { $as_echo "$as_me:$LINENO: checking for remove" >&5
31642 $as_echo_n "checking for remove... " >&6; }
31643 if test "${ac_cv_func_remove+set}" = set; then
31644 $as_echo_n "(cached) " >&6
31646 cat >conftest.$ac_ext <<_ACEOF
31649 cat confdefs.h >>conftest.$ac_ext
31650 cat >>conftest.$ac_ext <<_ACEOF
31651 /* end confdefs.h. */
31652 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31654 #define remove innocuous_remove
31656 /* System header to define __stub macros and hopefully few prototypes,
31657 which can conflict with char remove (); below.
31658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31659 <limits.h> exists even on freestanding compilers. */
31662 # include <limits.h>
31664 # include <assert.h>
31669 /* Override any GCC internal prototype to avoid an error.
31670 Use char because int might match the return type of a GCC
31671 builtin and then its argument prototype would still apply. */
31676 /* The GNU C library defines this for functions which it implements
31677 to always fail with ENOSYS. Some functions are actually named
31678 something starting with __ and the normal name is an alias. */
31679 #if defined __stub_remove || defined __stub___remove
31691 rm -f conftest.$ac_objext conftest$ac_exeext
31692 if { (ac_try="$ac_link"
31693 case "(($ac_try" in
31694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695 *) ac_try_echo=$ac_try;;
31697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31698 $as_echo "$ac_try_echo") >&5
31699 (eval "$ac_link") 2>conftest.er1
31701 grep -v '^ *+' conftest.er1 >conftest.err
31703 cat conftest.err >&5
31704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); } && {
31706 test -z "$ac_c_werror_flag" ||
31707 test ! -s conftest.err
31708 } && test -s conftest$ac_exeext && {
31709 test "$cross_compiling" = yes ||
31710 $as_test_x conftest$ac_exeext
31712 ac_cv_func_remove=yes
31714 $as_echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31717 ac_cv_func_remove=no
31720 rm -rf conftest.dSYM
31721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31722 conftest$ac_exeext conftest.$ac_ext
31724 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31725 $as_echo "$ac_cv_func_remove" >&6; }
31727 if test $ac_cv_func_remove = no; then
31728 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31729 $as_echo_n "checking for remove in -lposix... " >&6; }
31730 if test "${ac_cv_lib_posix_remove+set}" = set; then
31731 $as_echo_n "(cached) " >&6
31733 ac_check_lib_save_LIBS=$LIBS
31734 LIBS="-lposix $LIBS"
31735 cat >conftest.$ac_ext <<_ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h. */
31742 /* Override any GCC internal prototype to avoid an error.
31743 Use char because int might match the return type of a GCC
31744 builtin and then its argument prototype would still apply. */
31757 rm -f conftest.$ac_objext conftest$ac_exeext
31758 if { (ac_try="$ac_link"
31759 case "(($ac_try" in
31760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31761 *) ac_try_echo=$ac_try;;
31763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31764 $as_echo "$ac_try_echo") >&5
31765 (eval "$ac_link") 2>conftest.er1
31767 grep -v '^ *+' conftest.er1 >conftest.err
31769 cat conftest.err >&5
31770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); } && {
31772 test -z "$ac_c_werror_flag" ||
31773 test ! -s conftest.err
31774 } && test -s conftest$ac_exeext && {
31775 test "$cross_compiling" = yes ||
31776 $as_test_x conftest$ac_exeext
31778 ac_cv_lib_posix_remove=yes
31780 $as_echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31783 ac_cv_lib_posix_remove=no
31786 rm -rf conftest.dSYM
31787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31788 conftest$ac_exeext conftest.$ac_ext
31789 LIBS=$ac_check_lib_save_LIBS
31791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31792 $as_echo "$ac_cv_lib_posix_remove" >&6; }
31793 if test "x$ac_cv_lib_posix_remove" = x""yes; then
31794 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31799 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31800 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
31801 $as_echo_n "checking for shmat... " >&6; }
31802 if test "${ac_cv_func_shmat+set}" = set; then
31803 $as_echo_n "(cached) " >&6
31805 cat >conftest.$ac_ext <<_ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h. */
31811 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31813 #define shmat innocuous_shmat
31815 /* System header to define __stub macros and hopefully few prototypes,
31816 which can conflict with char shmat (); below.
31817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31818 <limits.h> exists even on freestanding compilers. */
31821 # include <limits.h>
31823 # include <assert.h>
31828 /* Override any GCC internal prototype to avoid an error.
31829 Use char because int might match the return type of a GCC
31830 builtin and then its argument prototype would still apply. */
31835 /* The GNU C library defines this for functions which it implements
31836 to always fail with ENOSYS. Some functions are actually named
31837 something starting with __ and the normal name is an alias. */
31838 #if defined __stub_shmat || defined __stub___shmat
31850 rm -f conftest.$ac_objext conftest$ac_exeext
31851 if { (ac_try="$ac_link"
31852 case "(($ac_try" in
31853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854 *) ac_try_echo=$ac_try;;
31856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31857 $as_echo "$ac_try_echo") >&5
31858 (eval "$ac_link") 2>conftest.er1
31860 grep -v '^ *+' conftest.er1 >conftest.err
31862 cat conftest.err >&5
31863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); } && {
31865 test -z "$ac_c_werror_flag" ||
31866 test ! -s conftest.err
31867 } && test -s conftest$ac_exeext && {
31868 test "$cross_compiling" = yes ||
31869 $as_test_x conftest$ac_exeext
31871 ac_cv_func_shmat=yes
31873 $as_echo "$as_me: failed program was:" >&5
31874 sed 's/^/| /' conftest.$ac_ext >&5
31876 ac_cv_func_shmat=no
31879 rm -rf conftest.dSYM
31880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31881 conftest$ac_exeext conftest.$ac_ext
31883 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31884 $as_echo "$ac_cv_func_shmat" >&6; }
31886 if test $ac_cv_func_shmat = no; then
31887 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31888 $as_echo_n "checking for shmat in -lipc... " >&6; }
31889 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31890 $as_echo_n "(cached) " >&6
31892 ac_check_lib_save_LIBS=$LIBS
31894 cat >conftest.$ac_ext <<_ACEOF
31897 cat confdefs.h >>conftest.$ac_ext
31898 cat >>conftest.$ac_ext <<_ACEOF
31899 /* end confdefs.h. */
31901 /* Override any GCC internal prototype to avoid an error.
31902 Use char because int might match the return type of a GCC
31903 builtin and then its argument prototype would still apply. */
31916 rm -f conftest.$ac_objext conftest$ac_exeext
31917 if { (ac_try="$ac_link"
31918 case "(($ac_try" in
31919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920 *) ac_try_echo=$ac_try;;
31922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31923 $as_echo "$ac_try_echo") >&5
31924 (eval "$ac_link") 2>conftest.er1
31926 grep -v '^ *+' conftest.er1 >conftest.err
31928 cat conftest.err >&5
31929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); } && {
31931 test -z "$ac_c_werror_flag" ||
31932 test ! -s conftest.err
31933 } && test -s conftest$ac_exeext && {
31934 test "$cross_compiling" = yes ||
31935 $as_test_x conftest$ac_exeext
31937 ac_cv_lib_ipc_shmat=yes
31939 $as_echo "$as_me: failed program was:" >&5
31940 sed 's/^/| /' conftest.$ac_ext >&5
31942 ac_cv_lib_ipc_shmat=no
31945 rm -rf conftest.dSYM
31946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31947 conftest$ac_exeext conftest.$ac_ext
31948 LIBS=$ac_check_lib_save_LIBS
31950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31951 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
31952 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
31953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31959 # Check for libraries that X11R6 Xt/Xaw programs need.
31960 ac_save_LDFLAGS=$LDFLAGS
31961 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31962 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31963 # check for ICE first), but we must link in the order -lSM -lICE or
31964 # we get undefined symbols. So assume we have SM if we have ICE.
31965 # These have to be linked with before -lX11, unlike the other
31966 # libraries we check for below, so use a different variable.
31967 # John Interrante, Karl Berry
31968 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31969 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
31970 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31971 $as_echo_n "(cached) " >&6
31973 ac_check_lib_save_LIBS=$LIBS
31974 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31975 cat >conftest.$ac_ext <<_ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h. */
31982 /* Override any GCC internal prototype to avoid an error.
31983 Use char because int might match the return type of a GCC
31984 builtin and then its argument prototype would still apply. */
31988 char IceConnectionNumber ();
31992 return IceConnectionNumber ();
31997 rm -f conftest.$ac_objext conftest$ac_exeext
31998 if { (ac_try="$ac_link"
31999 case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32004 $as_echo "$ac_try_echo") >&5
32005 (eval "$ac_link") 2>conftest.er1
32007 grep -v '^ *+' conftest.er1 >conftest.err
32009 cat conftest.err >&5
32010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); } && {
32012 test -z "$ac_c_werror_flag" ||
32013 test ! -s conftest.err
32014 } && test -s conftest$ac_exeext && {
32015 test "$cross_compiling" = yes ||
32016 $as_test_x conftest$ac_exeext
32018 ac_cv_lib_ICE_IceConnectionNumber=yes
32020 $as_echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32023 ac_cv_lib_ICE_IceConnectionNumber=no
32026 rm -rf conftest.dSYM
32027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32028 conftest$ac_exeext conftest.$ac_ext
32029 LIBS=$ac_check_lib_save_LIBS
32031 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32032 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
32033 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
32034 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32037 LDFLAGS=$ac_save_LDFLAGS
32103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32106 $as_echo_n "checking for $ac_header... " >&6; }
32107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32108 $as_echo_n "(cached) " >&6
32110 ac_res=`eval 'as_val=${'$as_ac_Header'}
32111 $as_echo "$as_val"'`
32112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32113 $as_echo "$ac_res" >&6; }
32115 # Is the header compilable?
32116 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32117 $as_echo_n "checking $ac_header usability... " >&6; }
32118 cat >conftest.$ac_ext <<_ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h. */
32124 $ac_includes_default
32125 #include <$ac_header>
32127 rm -f conftest.$ac_objext
32128 if { (ac_try="$ac_compile"
32129 case "(($ac_try" in
32130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131 *) ac_try_echo=$ac_try;;
32133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32134 $as_echo "$ac_try_echo") >&5
32135 (eval "$ac_compile") 2>conftest.er1
32137 grep -v '^ *+' conftest.er1 >conftest.err
32139 cat conftest.err >&5
32140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); } && {
32142 test -z "$ac_c_werror_flag" ||
32143 test ! -s conftest.err
32144 } && test -s conftest.$ac_objext; then
32145 ac_header_compiler=yes
32147 $as_echo "$as_me: failed program was:" >&5
32148 sed 's/^/| /' conftest.$ac_ext >&5
32150 ac_header_compiler=no
32153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32155 $as_echo "$ac_header_compiler" >&6; }
32157 # Is the header present?
32158 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32159 $as_echo_n "checking $ac_header presence... " >&6; }
32160 cat >conftest.$ac_ext <<_ACEOF
32163 cat confdefs.h >>conftest.$ac_ext
32164 cat >>conftest.$ac_ext <<_ACEOF
32165 /* end confdefs.h. */
32166 #include <$ac_header>
32168 if { (ac_try="$ac_cpp conftest.$ac_ext"
32169 case "(($ac_try" in
32170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32171 *) ac_try_echo=$ac_try;;
32173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32174 $as_echo "$ac_try_echo") >&5
32175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32177 grep -v '^ *+' conftest.er1 >conftest.err
32179 cat conftest.err >&5
32180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } >/dev/null && {
32182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32183 test ! -s conftest.err
32185 ac_header_preproc=yes
32187 $as_echo "$as_me: failed program was:" >&5
32188 sed 's/^/| /' conftest.$ac_ext >&5
32190 ac_header_preproc=no
32193 rm -f conftest.err conftest.$ac_ext
32194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32195 $as_echo "$ac_header_preproc" >&6; }
32197 # So? What about this header?
32198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32201 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32204 ac_header_preproc=yes
32207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32208 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32210 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32212 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32214 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32218 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32223 $as_echo_n "checking for $ac_header... " >&6; }
32224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32225 $as_echo_n "(cached) " >&6
32227 eval "$as_ac_Header=\$ac_header_preproc"
32229 ac_res=`eval 'as_val=${'$as_ac_Header'}
32230 $as_echo "$as_val"'`
32231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32232 $as_echo "$ac_res" >&6; }
32235 as_val=`eval 'as_val=${'$as_ac_Header'}
32236 $as_echo "$as_val"'`
32237 if test "x$as_val" = x""yes; then
32238 cat >>confdefs.h <<_ACEOF
32239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32246 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32247 $as_echo_n "checking for ANSI C header files... " >&6; }
32248 if test "${ac_cv_header_stdc+set}" = set; then
32249 $as_echo_n "(cached) " >&6
32251 cat >conftest.$ac_ext <<_ACEOF
32254 cat confdefs.h >>conftest.$ac_ext
32255 cat >>conftest.$ac_ext <<_ACEOF
32256 /* end confdefs.h. */
32257 #include <stdlib.h>
32258 #include <stdarg.h>
32259 #include <string.h>
32270 rm -f conftest.$ac_objext
32271 if { (ac_try="$ac_compile"
32272 case "(($ac_try" in
32273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274 *) ac_try_echo=$ac_try;;
32276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32277 $as_echo "$ac_try_echo") >&5
32278 (eval "$ac_compile") 2>conftest.er1
32280 grep -v '^ *+' conftest.er1 >conftest.err
32282 cat conftest.err >&5
32283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); } && {
32285 test -z "$ac_c_werror_flag" ||
32286 test ! -s conftest.err
32287 } && test -s conftest.$ac_objext; then
32288 ac_cv_header_stdc=yes
32290 $as_echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32293 ac_cv_header_stdc=no
32296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32298 if test $ac_cv_header_stdc = yes; then
32299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32300 cat >conftest.$ac_ext <<_ACEOF
32303 cat confdefs.h >>conftest.$ac_ext
32304 cat >>conftest.$ac_ext <<_ACEOF
32305 /* end confdefs.h. */
32306 #include <string.h>
32309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32310 $EGREP "memchr" >/dev/null 2>&1; then
32313 ac_cv_header_stdc=no
32319 if test $ac_cv_header_stdc = yes; then
32320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32321 cat >conftest.$ac_ext <<_ACEOF
32324 cat confdefs.h >>conftest.$ac_ext
32325 cat >>conftest.$ac_ext <<_ACEOF
32326 /* end confdefs.h. */
32327 #include <stdlib.h>
32330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32331 $EGREP "free" >/dev/null 2>&1; then
32334 ac_cv_header_stdc=no
32340 if test $ac_cv_header_stdc = yes; then
32341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32342 if test "$cross_compiling" = yes; then
32345 cat >conftest.$ac_ext <<_ACEOF
32348 cat confdefs.h >>conftest.$ac_ext
32349 cat >>conftest.$ac_ext <<_ACEOF
32350 /* end confdefs.h. */
32352 #include <stdlib.h>
32353 #if ((' ' & 0x0FF) == 0x020)
32354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32357 # define ISLOWER(c) \
32358 (('a' <= (c) && (c) <= 'i') \
32359 || ('j' <= (c) && (c) <= 'r') \
32360 || ('s' <= (c) && (c) <= 'z'))
32361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32369 for (i = 0; i < 256; i++)
32370 if (XOR (islower (i), ISLOWER (i))
32371 || toupper (i) != TOUPPER (i))
32376 rm -f conftest$ac_exeext
32377 if { (ac_try="$ac_link"
32378 case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32383 $as_echo "$ac_try_echo") >&5
32384 (eval "$ac_link") 2>&5
32386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32388 { (case "(($ac_try" in
32389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390 *) ac_try_echo=$ac_try;;
32392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32393 $as_echo "$ac_try_echo") >&5
32394 (eval "$ac_try") 2>&5
32396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; }; then
32400 $as_echo "$as_me: program exited with status $ac_status" >&5
32401 $as_echo "$as_me: failed program was:" >&5
32402 sed 's/^/| /' conftest.$ac_ext >&5
32404 ( exit $ac_status )
32405 ac_cv_header_stdc=no
32407 rm -rf conftest.dSYM
32408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32415 $as_echo "$ac_cv_header_stdc" >&6; }
32416 if test $ac_cv_header_stdc = yes; then
32418 cat >>confdefs.h <<\_ACEOF
32419 #define STDC_HEADERS 1
32424 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
32425 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
32426 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
32427 $as_echo_n "(cached) " >&6
32429 cat >conftest.$ac_ext <<_ACEOF
32432 cat confdefs.h >>conftest.$ac_ext
32433 cat >>conftest.$ac_ext <<_ACEOF
32434 /* end confdefs.h. */
32435 #include <sys/types.h>
32439 return makedev(0, 0);
32444 rm -f conftest.$ac_objext conftest$ac_exeext
32445 if { (ac_try="$ac_link"
32446 case "(($ac_try" in
32447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32448 *) ac_try_echo=$ac_try;;
32450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32451 $as_echo "$ac_try_echo") >&5
32452 (eval "$ac_link") 2>conftest.er1
32454 grep -v '^ *+' conftest.er1 >conftest.err
32456 cat conftest.err >&5
32457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); } && {
32459 test -z "$ac_c_werror_flag" ||
32460 test ! -s conftest.err
32461 } && test -s conftest$ac_exeext && {
32462 test "$cross_compiling" = yes ||
32463 $as_test_x conftest$ac_exeext
32465 ac_cv_header_sys_types_h_makedev=yes
32467 $as_echo "$as_me: failed program was:" >&5
32468 sed 's/^/| /' conftest.$ac_ext >&5
32470 ac_cv_header_sys_types_h_makedev=no
32473 rm -rf conftest.dSYM
32474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32475 conftest$ac_exeext conftest.$ac_ext
32478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
32479 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
32481 if test $ac_cv_header_sys_types_h_makedev = no; then
32482 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32483 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32484 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32485 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32486 $as_echo_n "(cached) " >&6
32488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32489 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32491 # Is the header compilable?
32492 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
32493 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
32494 cat >conftest.$ac_ext <<_ACEOF
32497 cat confdefs.h >>conftest.$ac_ext
32498 cat >>conftest.$ac_ext <<_ACEOF
32499 /* end confdefs.h. */
32500 $ac_includes_default
32501 #include <sys/mkdev.h>
32503 rm -f conftest.$ac_objext
32504 if { (ac_try="$ac_compile"
32505 case "(($ac_try" in
32506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32507 *) ac_try_echo=$ac_try;;
32509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32510 $as_echo "$ac_try_echo") >&5
32511 (eval "$ac_compile") 2>conftest.er1
32513 grep -v '^ *+' conftest.er1 >conftest.err
32515 cat conftest.err >&5
32516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); } && {
32518 test -z "$ac_c_werror_flag" ||
32519 test ! -s conftest.err
32520 } && test -s conftest.$ac_objext; then
32521 ac_header_compiler=yes
32523 $as_echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32526 ac_header_compiler=no
32529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32531 $as_echo "$ac_header_compiler" >&6; }
32533 # Is the header present?
32534 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
32535 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
32536 cat >conftest.$ac_ext <<_ACEOF
32539 cat confdefs.h >>conftest.$ac_ext
32540 cat >>conftest.$ac_ext <<_ACEOF
32541 /* end confdefs.h. */
32542 #include <sys/mkdev.h>
32544 if { (ac_try="$ac_cpp conftest.$ac_ext"
32545 case "(($ac_try" in
32546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547 *) ac_try_echo=$ac_try;;
32549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32550 $as_echo "$ac_try_echo") >&5
32551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32553 grep -v '^ *+' conftest.er1 >conftest.err
32555 cat conftest.err >&5
32556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); } >/dev/null && {
32558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32559 test ! -s conftest.err
32561 ac_header_preproc=yes
32563 $as_echo "$as_me: failed program was:" >&5
32564 sed 's/^/| /' conftest.$ac_ext >&5
32566 ac_header_preproc=no
32569 rm -f conftest.err conftest.$ac_ext
32570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32571 $as_echo "$ac_header_preproc" >&6; }
32573 # So? What about this header?
32574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32576 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32577 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32578 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
32579 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
32580 ac_header_preproc=yes
32583 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
32584 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
32585 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
32586 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
32587 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
32588 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
32589 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
32590 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
32591 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
32592 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
32593 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
32594 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
32598 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32599 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32600 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32601 $as_echo_n "(cached) " >&6
32603 ac_cv_header_sys_mkdev_h=$ac_header_preproc
32605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32606 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32609 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
32611 cat >>confdefs.h <<\_ACEOF
32612 #define MAJOR_IN_MKDEV 1
32619 if test $ac_cv_header_sys_mkdev_h = no; then
32620 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32621 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32622 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32623 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32624 $as_echo_n "(cached) " >&6
32626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32627 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32629 # Is the header compilable?
32630 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
32631 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
32632 cat >conftest.$ac_ext <<_ACEOF
32635 cat confdefs.h >>conftest.$ac_ext
32636 cat >>conftest.$ac_ext <<_ACEOF
32637 /* end confdefs.h. */
32638 $ac_includes_default
32639 #include <sys/sysmacros.h>
32641 rm -f conftest.$ac_objext
32642 if { (ac_try="$ac_compile"
32643 case "(($ac_try" in
32644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32645 *) ac_try_echo=$ac_try;;
32647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32648 $as_echo "$ac_try_echo") >&5
32649 (eval "$ac_compile") 2>conftest.er1
32651 grep -v '^ *+' conftest.er1 >conftest.err
32653 cat conftest.err >&5
32654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); } && {
32656 test -z "$ac_c_werror_flag" ||
32657 test ! -s conftest.err
32658 } && test -s conftest.$ac_objext; then
32659 ac_header_compiler=yes
32661 $as_echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32664 ac_header_compiler=no
32667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32668 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32669 $as_echo "$ac_header_compiler" >&6; }
32671 # Is the header present?
32672 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
32673 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
32674 cat >conftest.$ac_ext <<_ACEOF
32677 cat confdefs.h >>conftest.$ac_ext
32678 cat >>conftest.$ac_ext <<_ACEOF
32679 /* end confdefs.h. */
32680 #include <sys/sysmacros.h>
32682 if { (ac_try="$ac_cpp conftest.$ac_ext"
32683 case "(($ac_try" in
32684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685 *) ac_try_echo=$ac_try;;
32687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32688 $as_echo "$ac_try_echo") >&5
32689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32691 grep -v '^ *+' conftest.er1 >conftest.err
32693 cat conftest.err >&5
32694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } >/dev/null && {
32696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32697 test ! -s conftest.err
32699 ac_header_preproc=yes
32701 $as_echo "$as_me: failed program was:" >&5
32702 sed 's/^/| /' conftest.$ac_ext >&5
32704 ac_header_preproc=no
32707 rm -f conftest.err conftest.$ac_ext
32708 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32709 $as_echo "$ac_header_preproc" >&6; }
32711 # So? What about this header?
32712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32714 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
32715 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32716 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
32717 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
32718 ac_header_preproc=yes
32721 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
32722 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
32723 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
32724 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
32725 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
32726 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
32727 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
32728 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
32729 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
32730 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
32731 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
32732 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
32736 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32737 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32738 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32739 $as_echo_n "(cached) " >&6
32741 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
32743 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32744 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32747 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
32749 cat >>confdefs.h <<\_ACEOF
32750 #define MAJOR_IN_SYSMACROS 1
32764 ac_header_dirent=no
32765 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
32766 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
32767 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
32768 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
32769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32770 $as_echo_n "(cached) " >&6
32772 cat >conftest.$ac_ext <<_ACEOF
32775 cat confdefs.h >>conftest.$ac_ext
32776 cat >>conftest.$ac_ext <<_ACEOF
32777 /* end confdefs.h. */
32778 #include <sys/types.h>
32790 rm -f conftest.$ac_objext
32791 if { (ac_try="$ac_compile"
32792 case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32797 $as_echo "$ac_try_echo") >&5
32798 (eval "$ac_compile") 2>conftest.er1
32800 grep -v '^ *+' conftest.er1 >conftest.err
32802 cat conftest.err >&5
32803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); } && {
32805 test -z "$ac_c_werror_flag" ||
32806 test ! -s conftest.err
32807 } && test -s conftest.$ac_objext; then
32808 eval "$as_ac_Header=yes"
32810 $as_echo "$as_me: failed program was:" >&5
32811 sed 's/^/| /' conftest.$ac_ext >&5
32813 eval "$as_ac_Header=no"
32816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32818 ac_res=`eval 'as_val=${'$as_ac_Header'}
32819 $as_echo "$as_val"'`
32820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32821 $as_echo "$ac_res" >&6; }
32822 as_val=`eval 'as_val=${'$as_ac_Header'}
32823 $as_echo "$as_val"'`
32824 if test "x$as_val" = x""yes; then
32825 cat >>confdefs.h <<_ACEOF
32826 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
32829 ac_header_dirent=$ac_hdr; break
32833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
32834 if test $ac_header_dirent = dirent.h; then
32835 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32836 $as_echo_n "checking for library containing opendir... " >&6; }
32837 if test "${ac_cv_search_opendir+set}" = set; then
32838 $as_echo_n "(cached) " >&6
32840 ac_func_search_save_LIBS=$LIBS
32841 cat >conftest.$ac_ext <<_ACEOF
32844 cat confdefs.h >>conftest.$ac_ext
32845 cat >>conftest.$ac_ext <<_ACEOF
32846 /* end confdefs.h. */
32848 /* Override any GCC internal prototype to avoid an error.
32849 Use char because int might match the return type of a GCC
32850 builtin and then its argument prototype would still apply. */
32863 for ac_lib in '' dir; do
32864 if test -z "$ac_lib"; then
32865 ac_res="none required"
32868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32870 rm -f conftest.$ac_objext conftest$ac_exeext
32871 if { (ac_try="$ac_link"
32872 case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32877 $as_echo "$ac_try_echo") >&5
32878 (eval "$ac_link") 2>conftest.er1
32880 grep -v '^ *+' conftest.er1 >conftest.err
32882 cat conftest.err >&5
32883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } && {
32885 test -z "$ac_c_werror_flag" ||
32886 test ! -s conftest.err
32887 } && test -s conftest$ac_exeext && {
32888 test "$cross_compiling" = yes ||
32889 $as_test_x conftest$ac_exeext
32891 ac_cv_search_opendir=$ac_res
32893 $as_echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32899 rm -rf conftest.dSYM
32900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32902 if test "${ac_cv_search_opendir+set}" = set; then
32906 if test "${ac_cv_search_opendir+set}" = set; then
32909 ac_cv_search_opendir=no
32911 rm conftest.$ac_ext
32912 LIBS=$ac_func_search_save_LIBS
32914 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32915 $as_echo "$ac_cv_search_opendir" >&6; }
32916 ac_res=$ac_cv_search_opendir
32917 if test "$ac_res" != no; then
32918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32923 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32924 $as_echo_n "checking for library containing opendir... " >&6; }
32925 if test "${ac_cv_search_opendir+set}" = set; then
32926 $as_echo_n "(cached) " >&6
32928 ac_func_search_save_LIBS=$LIBS
32929 cat >conftest.$ac_ext <<_ACEOF
32932 cat confdefs.h >>conftest.$ac_ext
32933 cat >>conftest.$ac_ext <<_ACEOF
32934 /* end confdefs.h. */
32936 /* Override any GCC internal prototype to avoid an error.
32937 Use char because int might match the return type of a GCC
32938 builtin and then its argument prototype would still apply. */
32951 for ac_lib in '' x; do
32952 if test -z "$ac_lib"; then
32953 ac_res="none required"
32956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32958 rm -f conftest.$ac_objext conftest$ac_exeext
32959 if { (ac_try="$ac_link"
32960 case "(($ac_try" in
32961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32962 *) ac_try_echo=$ac_try;;
32964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32965 $as_echo "$ac_try_echo") >&5
32966 (eval "$ac_link") 2>conftest.er1
32968 grep -v '^ *+' conftest.er1 >conftest.err
32970 cat conftest.err >&5
32971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); } && {
32973 test -z "$ac_c_werror_flag" ||
32974 test ! -s conftest.err
32975 } && test -s conftest$ac_exeext && {
32976 test "$cross_compiling" = yes ||
32977 $as_test_x conftest$ac_exeext
32979 ac_cv_search_opendir=$ac_res
32981 $as_echo "$as_me: failed program was:" >&5
32982 sed 's/^/| /' conftest.$ac_ext >&5
32987 rm -rf conftest.dSYM
32988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32990 if test "${ac_cv_search_opendir+set}" = set; then
32994 if test "${ac_cv_search_opendir+set}" = set; then
32997 ac_cv_search_opendir=no
32999 rm conftest.$ac_ext
33000 LIBS=$ac_func_search_save_LIBS
33002 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
33003 $as_echo "$ac_cv_search_opendir" >&6; }
33004 ac_res=$ac_cv_search_opendir
33005 if test "$ac_res" != no; then
33006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33012 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
33013 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
33014 if test "${ac_cv_header_stat_broken+set}" = set; then
33015 $as_echo_n "(cached) " >&6
33017 cat >conftest.$ac_ext <<_ACEOF
33020 cat confdefs.h >>conftest.$ac_ext
33021 cat >>conftest.$ac_ext <<_ACEOF
33022 /* end confdefs.h. */
33023 #include <sys/types.h>
33024 #include <sys/stat.h>
33026 #if defined S_ISBLK && defined S_IFDIR
33027 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
33030 #if defined S_ISBLK && defined S_IFCHR
33031 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
33034 #if defined S_ISLNK && defined S_IFREG
33035 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
33038 #if defined S_ISSOCK && defined S_IFREG
33039 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
33043 rm -f conftest.$ac_objext
33044 if { (ac_try="$ac_compile"
33045 case "(($ac_try" in
33046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047 *) ac_try_echo=$ac_try;;
33049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33050 $as_echo "$ac_try_echo") >&5
33051 (eval "$ac_compile") 2>conftest.er1
33053 grep -v '^ *+' conftest.er1 >conftest.err
33055 cat conftest.err >&5
33056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); } && {
33058 test -z "$ac_c_werror_flag" ||
33059 test ! -s conftest.err
33060 } && test -s conftest.$ac_objext; then
33061 ac_cv_header_stat_broken=no
33063 $as_echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33066 ac_cv_header_stat_broken=yes
33069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
33072 $as_echo "$ac_cv_header_stat_broken" >&6; }
33073 if test $ac_cv_header_stat_broken = yes; then
33075 cat >>confdefs.h <<\_ACEOF
33076 #define STAT_MACROS_BROKEN 1
33081 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
33082 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
33083 if test "${ac_cv_header_sys_wait_h+set}" = set; then
33084 $as_echo_n "(cached) " >&6
33086 cat >conftest.$ac_ext <<_ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h. */
33092 #include <sys/types.h>
33093 #include <sys/wait.h>
33094 #ifndef WEXITSTATUS
33095 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
33098 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
33106 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
33111 rm -f conftest.$ac_objext
33112 if { (ac_try="$ac_compile"
33113 case "(($ac_try" in
33114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115 *) ac_try_echo=$ac_try;;
33117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33118 $as_echo "$ac_try_echo") >&5
33119 (eval "$ac_compile") 2>conftest.er1
33121 grep -v '^ *+' conftest.er1 >conftest.err
33123 cat conftest.err >&5
33124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); } && {
33126 test -z "$ac_c_werror_flag" ||
33127 test ! -s conftest.err
33128 } && test -s conftest.$ac_objext; then
33129 ac_cv_header_sys_wait_h=yes
33131 $as_echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33134 ac_cv_header_sys_wait_h=no
33137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33139 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
33140 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
33141 if test $ac_cv_header_sys_wait_h = yes; then
33143 cat >>confdefs.h <<\_ACEOF
33144 #define HAVE_SYS_WAIT_H 1
33149 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
33150 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
33151 if test "${ac_cv_header_time+set}" = set; then
33152 $as_echo_n "(cached) " >&6
33154 cat >conftest.$ac_ext <<_ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h. */
33160 #include <sys/types.h>
33161 #include <sys/time.h>
33167 if ((struct tm *) 0)
33173 rm -f conftest.$ac_objext
33174 if { (ac_try="$ac_compile"
33175 case "(($ac_try" in
33176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33177 *) ac_try_echo=$ac_try;;
33179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33180 $as_echo "$ac_try_echo") >&5
33181 (eval "$ac_compile") 2>conftest.er1
33183 grep -v '^ *+' conftest.er1 >conftest.err
33185 cat conftest.err >&5
33186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); } && {
33188 test -z "$ac_c_werror_flag" ||
33189 test ! -s conftest.err
33190 } && test -s conftest.$ac_objext; then
33191 ac_cv_header_time=yes
33193 $as_echo "$as_me: failed program was:" >&5
33194 sed 's/^/| /' conftest.$ac_ext >&5
33196 ac_cv_header_time=no
33199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33201 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
33202 $as_echo "$ac_cv_header_time" >&6; }
33203 if test $ac_cv_header_time = yes; then
33205 cat >>confdefs.h <<\_ACEOF
33206 #define TIME_WITH_SYS_TIME 1
33211 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33212 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
33213 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33214 $as_echo_n "(cached) " >&6
33216 cat >conftest.$ac_ext <<_ACEOF
33219 cat confdefs.h >>conftest.$ac_ext
33220 cat >>conftest.$ac_ext <<_ACEOF
33221 /* end confdefs.h. */
33222 $ac_includes_default
33226 static struct stat ac_aggr;
33227 if (ac_aggr.st_blksize)
33233 rm -f conftest.$ac_objext
33234 if { (ac_try="$ac_compile"
33235 case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33240 $as_echo "$ac_try_echo") >&5
33241 (eval "$ac_compile") 2>conftest.er1
33243 grep -v '^ *+' conftest.er1 >conftest.err
33245 cat conftest.err >&5
33246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); } && {
33248 test -z "$ac_c_werror_flag" ||
33249 test ! -s conftest.err
33250 } && test -s conftest.$ac_objext; then
33251 ac_cv_member_struct_stat_st_blksize=yes
33253 $as_echo "$as_me: failed program was:" >&5
33254 sed 's/^/| /' conftest.$ac_ext >&5
33256 cat >conftest.$ac_ext <<_ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h. */
33262 $ac_includes_default
33266 static struct stat ac_aggr;
33267 if (sizeof ac_aggr.st_blksize)
33273 rm -f conftest.$ac_objext
33274 if { (ac_try="$ac_compile"
33275 case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33280 $as_echo "$ac_try_echo") >&5
33281 (eval "$ac_compile") 2>conftest.er1
33283 grep -v '^ *+' conftest.er1 >conftest.err
33285 cat conftest.err >&5
33286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); } && {
33288 test -z "$ac_c_werror_flag" ||
33289 test ! -s conftest.err
33290 } && test -s conftest.$ac_objext; then
33291 ac_cv_member_struct_stat_st_blksize=yes
33293 $as_echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33296 ac_cv_member_struct_stat_st_blksize=no
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33304 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33305 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
33306 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
33308 cat >>confdefs.h <<_ACEOF
33309 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33313 cat >>confdefs.h <<\_ACEOF
33314 #define HAVE_ST_BLKSIZE 1
33320 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33321 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
33322 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33323 $as_echo_n "(cached) " >&6
33325 cat >conftest.$ac_ext <<_ACEOF
33328 cat confdefs.h >>conftest.$ac_ext
33329 cat >>conftest.$ac_ext <<_ACEOF
33330 /* end confdefs.h. */
33331 $ac_includes_default
33335 static struct stat ac_aggr;
33336 if (ac_aggr.st_blocks)
33342 rm -f conftest.$ac_objext
33343 if { (ac_try="$ac_compile"
33344 case "(($ac_try" in
33345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33346 *) ac_try_echo=$ac_try;;
33348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33349 $as_echo "$ac_try_echo") >&5
33350 (eval "$ac_compile") 2>conftest.er1
33352 grep -v '^ *+' conftest.er1 >conftest.err
33354 cat conftest.err >&5
33355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } && {
33357 test -z "$ac_c_werror_flag" ||
33358 test ! -s conftest.err
33359 } && test -s conftest.$ac_objext; then
33360 ac_cv_member_struct_stat_st_blocks=yes
33362 $as_echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33365 cat >conftest.$ac_ext <<_ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h. */
33371 $ac_includes_default
33375 static struct stat ac_aggr;
33376 if (sizeof ac_aggr.st_blocks)
33382 rm -f conftest.$ac_objext
33383 if { (ac_try="$ac_compile"
33384 case "(($ac_try" in
33385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386 *) ac_try_echo=$ac_try;;
33388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33389 $as_echo "$ac_try_echo") >&5
33390 (eval "$ac_compile") 2>conftest.er1
33392 grep -v '^ *+' conftest.er1 >conftest.err
33394 cat conftest.err >&5
33395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); } && {
33397 test -z "$ac_c_werror_flag" ||
33398 test ! -s conftest.err
33399 } && test -s conftest.$ac_objext; then
33400 ac_cv_member_struct_stat_st_blocks=yes
33402 $as_echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33405 ac_cv_member_struct_stat_st_blocks=no
33408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33413 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33414 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
33415 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
33417 cat >>confdefs.h <<_ACEOF
33418 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33422 cat >>confdefs.h <<\_ACEOF
33423 #define HAVE_ST_BLOCKS 1
33427 case " $LIBOBJS " in
33428 *" fileblocks.$ac_objext "* ) ;;
33429 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33436 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33437 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
33438 if test "${ac_cv_struct_tm+set}" = set; then
33439 $as_echo_n "(cached) " >&6
33441 cat >conftest.$ac_ext <<_ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h. */
33447 #include <sys/types.h>
33454 int *p = &tm.tm_sec;
33460 rm -f conftest.$ac_objext
33461 if { (ac_try="$ac_compile"
33462 case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33467 $as_echo "$ac_try_echo") >&5
33468 (eval "$ac_compile") 2>conftest.er1
33470 grep -v '^ *+' conftest.er1 >conftest.err
33472 cat conftest.err >&5
33473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } && {
33475 test -z "$ac_c_werror_flag" ||
33476 test ! -s conftest.err
33477 } && test -s conftest.$ac_objext; then
33478 ac_cv_struct_tm=time.h
33480 $as_echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33483 ac_cv_struct_tm=sys/time.h
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33488 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33489 $as_echo "$ac_cv_struct_tm" >&6; }
33490 if test $ac_cv_struct_tm = sys/time.h; then
33492 cat >>confdefs.h <<\_ACEOF
33493 #define TM_IN_SYS_TIME 1
33498 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
33499 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
33500 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
33501 $as_echo_n "(cached) " >&6
33503 cat >conftest.$ac_ext <<_ACEOF
33506 cat confdefs.h >>conftest.$ac_ext
33507 cat >>conftest.$ac_ext <<_ACEOF
33508 /* end confdefs.h. */
33509 #include <sys/types.h>
33510 #include <$ac_cv_struct_tm>
33516 static struct tm ac_aggr;
33517 if (ac_aggr.tm_zone)
33523 rm -f conftest.$ac_objext
33524 if { (ac_try="$ac_compile"
33525 case "(($ac_try" in
33526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33527 *) ac_try_echo=$ac_try;;
33529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33530 $as_echo "$ac_try_echo") >&5
33531 (eval "$ac_compile") 2>conftest.er1
33533 grep -v '^ *+' conftest.er1 >conftest.err
33535 cat conftest.err >&5
33536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); } && {
33538 test -z "$ac_c_werror_flag" ||
33539 test ! -s conftest.err
33540 } && test -s conftest.$ac_objext; then
33541 ac_cv_member_struct_tm_tm_zone=yes
33543 $as_echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33546 cat >conftest.$ac_ext <<_ACEOF
33549 cat confdefs.h >>conftest.$ac_ext
33550 cat >>conftest.$ac_ext <<_ACEOF
33551 /* end confdefs.h. */
33552 #include <sys/types.h>
33553 #include <$ac_cv_struct_tm>
33559 static struct tm ac_aggr;
33560 if (sizeof ac_aggr.tm_zone)
33566 rm -f conftest.$ac_objext
33567 if { (ac_try="$ac_compile"
33568 case "(($ac_try" in
33569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33570 *) ac_try_echo=$ac_try;;
33572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33573 $as_echo "$ac_try_echo") >&5
33574 (eval "$ac_compile") 2>conftest.er1
33576 grep -v '^ *+' conftest.er1 >conftest.err
33578 cat conftest.err >&5
33579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); } && {
33581 test -z "$ac_c_werror_flag" ||
33582 test ! -s conftest.err
33583 } && test -s conftest.$ac_objext; then
33584 ac_cv_member_struct_tm_tm_zone=yes
33586 $as_echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33589 ac_cv_member_struct_tm_tm_zone=no
33592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33597 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
33598 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
33599 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
33601 cat >>confdefs.h <<_ACEOF
33602 #define HAVE_STRUCT_TM_TM_ZONE 1
33608 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
33610 cat >>confdefs.h <<\_ACEOF
33611 #define HAVE_TM_ZONE 1
33615 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
33616 $as_echo_n "checking whether tzname is declared... " >&6; }
33617 if test "${ac_cv_have_decl_tzname+set}" = set; then
33618 $as_echo_n "(cached) " >&6
33620 cat >conftest.$ac_ext <<_ACEOF
33623 cat confdefs.h >>conftest.$ac_ext
33624 cat >>conftest.$ac_ext <<_ACEOF
33625 /* end confdefs.h. */
33639 rm -f conftest.$ac_objext
33640 if { (ac_try="$ac_compile"
33641 case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33646 $as_echo "$ac_try_echo") >&5
33647 (eval "$ac_compile") 2>conftest.er1
33649 grep -v '^ *+' conftest.er1 >conftest.err
33651 cat conftest.err >&5
33652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } && {
33654 test -z "$ac_c_werror_flag" ||
33655 test ! -s conftest.err
33656 } && test -s conftest.$ac_objext; then
33657 ac_cv_have_decl_tzname=yes
33659 $as_echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33662 ac_cv_have_decl_tzname=no
33665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33667 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
33668 $as_echo "$ac_cv_have_decl_tzname" >&6; }
33669 if test "x$ac_cv_have_decl_tzname" = x""yes; then
33671 cat >>confdefs.h <<_ACEOF
33672 #define HAVE_DECL_TZNAME 1
33677 cat >>confdefs.h <<_ACEOF
33678 #define HAVE_DECL_TZNAME 0
33685 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
33686 $as_echo_n "checking for tzname... " >&6; }
33687 if test "${ac_cv_var_tzname+set}" = set; then
33688 $as_echo_n "(cached) " >&6
33690 cat >conftest.$ac_ext <<_ACEOF
33693 cat confdefs.h >>conftest.$ac_ext
33694 cat >>conftest.$ac_ext <<_ACEOF
33695 /* end confdefs.h. */
33697 #if !HAVE_DECL_TZNAME
33698 extern char *tzname[];
33704 return tzname[0][0];
33709 rm -f conftest.$ac_objext conftest$ac_exeext
33710 if { (ac_try="$ac_link"
33711 case "(($ac_try" in
33712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33713 *) ac_try_echo=$ac_try;;
33715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33716 $as_echo "$ac_try_echo") >&5
33717 (eval "$ac_link") 2>conftest.er1
33719 grep -v '^ *+' conftest.er1 >conftest.err
33721 cat conftest.err >&5
33722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723 (exit $ac_status); } && {
33724 test -z "$ac_c_werror_flag" ||
33725 test ! -s conftest.err
33726 } && test -s conftest$ac_exeext && {
33727 test "$cross_compiling" = yes ||
33728 $as_test_x conftest$ac_exeext
33730 ac_cv_var_tzname=yes
33732 $as_echo "$as_me: failed program was:" >&5
33733 sed 's/^/| /' conftest.$ac_ext >&5
33735 ac_cv_var_tzname=no
33738 rm -rf conftest.dSYM
33739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33740 conftest$ac_exeext conftest.$ac_ext
33742 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
33743 $as_echo "$ac_cv_var_tzname" >&6; }
33744 if test $ac_cv_var_tzname = yes; then
33746 cat >>confdefs.h <<\_ACEOF
33747 #define HAVE_TZNAME 1
33754 { $as_echo "$as_me:$LINENO: checking for utime.h" >&5
33755 $as_echo_n "checking for utime.h... " >&6; }
33756 if test "${ba_cv_header_utime_h+set}" = set; then
33757 $as_echo_n "(cached) " >&6
33760 cat >conftest.$ac_ext <<_ACEOF
33763 cat confdefs.h >>conftest.$ac_ext
33764 cat >>conftest.$ac_ext <<_ACEOF
33765 /* end confdefs.h. */
33767 #include <sys/types.h>
33780 rm -f conftest.$ac_objext
33781 if { (ac_try="$ac_compile"
33782 case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33787 $as_echo "$ac_try_echo") >&5
33788 (eval "$ac_compile") 2>conftest.er1
33790 grep -v '^ *+' conftest.er1 >conftest.err
33792 cat conftest.err >&5
33793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } && {
33795 test -z "$ac_c_werror_flag" ||
33796 test ! -s conftest.err
33797 } && test -s conftest.$ac_objext; then
33799 ba_cv_header_utime_h=yes
33802 $as_echo "$as_me: failed program was:" >&5
33803 sed 's/^/| /' conftest.$ac_ext >&5
33806 ba_cv_header_utime_h=no
33811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33815 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
33816 $as_echo "$ba_cv_header_utime_h" >&6; }
33817 test $ba_cv_header_utime_h = yes &&
33818 cat >>confdefs.h <<\_ACEOF
33819 #define HAVE_UTIME_H 1
33823 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
33824 $as_echo_n "checking for socklen_t... " >&6; }
33825 if test "${ba_cv_header_socklen_t+set}" = set; then
33826 $as_echo_n "(cached) " >&6
33829 cat >conftest.$ac_ext <<_ACEOF
33832 cat confdefs.h >>conftest.$ac_ext
33833 cat >>conftest.$ac_ext <<_ACEOF
33834 /* end confdefs.h. */
33836 #include <sys/types.h>
33837 #include <sys/socket.h>
33849 rm -f conftest.$ac_objext
33850 if { (ac_try="$ac_compile"
33851 case "(($ac_try" in
33852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33853 *) ac_try_echo=$ac_try;;
33855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33856 $as_echo "$ac_try_echo") >&5
33857 (eval "$ac_compile") 2>conftest.er1
33859 grep -v '^ *+' conftest.er1 >conftest.err
33861 cat conftest.err >&5
33862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863 (exit $ac_status); } && {
33864 test -z "$ac_c_werror_flag" ||
33865 test ! -s conftest.err
33866 } && test -s conftest.$ac_objext; then
33868 ba_cv_header_socklen_t=yes
33871 $as_echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33875 ba_cv_header_socklen_t=no
33880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33884 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
33885 $as_echo "$ba_cv_header_socklen_t" >&6; }
33886 test $ba_cv_header_socklen_t = yes &&
33887 cat >>confdefs.h <<\_ACEOF
33888 #define HAVE_SOCKLEN_T 1
33893 ac_cpp='$CXXCPP $CPPFLAGS'
33894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33898 { $as_echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
33899 $as_echo_n "checking for ioctl_req_t... " >&6; }
33900 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
33901 $as_echo_n "(cached) " >&6
33904 cat >conftest.$ac_ext <<_ACEOF
33907 cat confdefs.h >>conftest.$ac_ext
33908 cat >>conftest.$ac_ext <<_ACEOF
33909 /* end confdefs.h. */
33911 #include <unistd.h>
33912 #include <sys/types.h>
33913 #include <sys/ioctl.h>
33919 int (*d_ioctl)(int fd, unsigned long int request, ...);
33926 rm -f conftest.$ac_objext
33927 if { (ac_try="$ac_compile"
33928 case "(($ac_try" in
33929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930 *) ac_try_echo=$ac_try;;
33932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33933 $as_echo "$ac_try_echo") >&5
33934 (eval "$ac_compile") 2>conftest.er1
33936 grep -v '^ *+' conftest.er1 >conftest.err
33938 cat conftest.err >&5
33939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940 (exit $ac_status); } && {
33941 test -z "$ac_cxx_werror_flag" ||
33942 test ! -s conftest.err
33943 } && test -s conftest.$ac_objext; then
33945 ba_cv_header_ioctl_req_t=yes
33948 $as_echo "$as_me: failed program was:" >&5
33949 sed 's/^/| /' conftest.$ac_ext >&5
33952 ba_cv_header_ioctl_req_t=no
33957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33961 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
33962 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
33963 test $ba_cv_header_ioctl_req_t = yes &&
33964 cat >>confdefs.h <<\_ACEOF
33965 #define HAVE_IOCTL_ULINT_REQUEST 1
33970 ac_cpp='$CPP $CPPFLAGS'
33971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33977 ac_cpp='$CXXCPP $CPPFLAGS'
33978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33982 { $as_echo "$as_me:$LINENO: checking for typeof" >&5
33983 $as_echo_n "checking for typeof... " >&6; }
33984 if test "${ba_cv_have_typeof+set}" = set; then
33985 $as_echo_n "(cached) " >&6
33988 if test "$cross_compiling" = yes; then
33990 ba_cv_have_typeof=no
33994 cat >conftest.$ac_ext <<_ACEOF
33997 cat confdefs.h >>conftest.$ac_ext
33998 cat >>conftest.$ac_ext <<_ACEOF
33999 /* end confdefs.h. */
34001 main(){char *a = 0; a = (typeof a)a;}
34004 rm -f conftest$ac_exeext
34005 if { (ac_try="$ac_link"
34006 case "(($ac_try" in
34007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34008 *) ac_try_echo=$ac_try;;
34010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34011 $as_echo "$ac_try_echo") >&5
34012 (eval "$ac_link") 2>&5
34014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34016 { (case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34021 $as_echo "$ac_try_echo") >&5
34022 (eval "$ac_try") 2>&5
34024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; }; then
34027 ba_cv_have_typeof=yes
34030 $as_echo "$as_me: program exited with status $ac_status" >&5
34031 $as_echo "$as_me: failed program was:" >&5
34032 sed 's/^/| /' conftest.$ac_ext >&5
34034 ( exit $ac_status )
34036 ba_cv_have_typeof=no
34039 rm -rf conftest.dSYM
34040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34047 { $as_echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
34048 $as_echo "$ba_cv_have_typeof" >&6; }
34049 test $ba_cv_have_typeof = yes &&
34050 cat >>confdefs.h <<\_ACEOF
34051 #define HAVE_TYPEOF 1
34055 ac_cpp='$CPP $CPPFLAGS'
34056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34061 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34062 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
34063 if test "${ac_cv_c_const+set}" = set; then
34064 $as_echo_n "(cached) " >&6
34066 cat >conftest.$ac_ext <<_ACEOF
34069 cat confdefs.h >>conftest.$ac_ext
34070 cat >>conftest.$ac_ext <<_ACEOF
34071 /* end confdefs.h. */
34076 /* FIXME: Include the comments suggested by Paul. */
34077 #ifndef __cplusplus
34078 /* Ultrix mips cc rejects this. */
34079 typedef int charset[2];
34081 /* SunOS 4.1.1 cc rejects this. */
34082 char const *const *pcpcc;
34084 /* NEC SVR4.0.2 mips cc rejects this. */
34085 struct point {int x, y;};
34086 static struct point const zero = {0,0};
34087 /* AIX XL C 1.02.0.0 rejects this.
34088 It does not let you subtract one const X* pointer from another in
34089 an arm of an if-expression whose if-part is not a constant
34091 const char *g = "string";
34092 pcpcc = &g + (g ? g-g : 0);
34093 /* HPUX 7.0 cc rejects these. */
34095 ppc = (char**) pcpcc;
34096 pcpcc = (char const *const *) ppc;
34097 { /* SCO 3.2v4 cc rejects this. */
34099 char const *s = 0 ? (char *) 0 : (char const *) 0;
34104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34105 int x[] = {25, 17};
34106 const int *foo = &x[0];
34109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34110 typedef const int *iptr;
34114 { /* AIX XL C 1.02.0.0 rejects this saying
34115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34116 struct s { int j; const int *ap[3]; };
34117 struct s *b; b->j = 5;
34119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34120 const int foo = 10;
34121 if (!foo) return 0;
34123 return !cs[0] && !zero.x;
34130 rm -f conftest.$ac_objext
34131 if { (ac_try="$ac_compile"
34132 case "(($ac_try" in
34133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34134 *) ac_try_echo=$ac_try;;
34136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34137 $as_echo "$ac_try_echo") >&5
34138 (eval "$ac_compile") 2>conftest.er1
34140 grep -v '^ *+' conftest.er1 >conftest.err
34142 cat conftest.err >&5
34143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); } && {
34145 test -z "$ac_c_werror_flag" ||
34146 test ! -s conftest.err
34147 } && test -s conftest.$ac_objext; then
34150 $as_echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34158 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34159 $as_echo "$ac_cv_c_const" >&6; }
34160 if test $ac_cv_c_const = no; then
34162 cat >>confdefs.h <<\_ACEOF
34170 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34171 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
34172 if test "${ac_cv_c_bigendian+set}" = set; then
34173 $as_echo_n "(cached) " >&6
34175 ac_cv_c_bigendian=unknown
34176 # See if we're dealing with a universal compiler.
34177 cat >conftest.$ac_ext <<_ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h. */
34183 #ifndef __APPLE_CC__
34184 not a universal capable compiler
34189 rm -f conftest.$ac_objext
34190 if { (ac_try="$ac_compile"
34191 case "(($ac_try" in
34192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34193 *) ac_try_echo=$ac_try;;
34195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34196 $as_echo "$ac_try_echo") >&5
34197 (eval "$ac_compile") 2>conftest.er1
34199 grep -v '^ *+' conftest.er1 >conftest.err
34201 cat conftest.err >&5
34202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); } && {
34204 test -z "$ac_c_werror_flag" ||
34205 test ! -s conftest.err
34206 } && test -s conftest.$ac_objext; then
34208 # Check for potential -arch flags. It is not universal unless
34209 # there are some -arch flags. Note that *ppc* also matches
34210 # ppc64. This check is also rather less than ideal.
34211 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
34212 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
34215 $as_echo "$as_me: failed program was:" >&5
34216 sed 's/^/| /' conftest.$ac_ext >&5
34221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34222 if test $ac_cv_c_bigendian = unknown; then
34223 # See if sys/param.h defines the BYTE_ORDER macro.
34224 cat >conftest.$ac_ext <<_ACEOF
34227 cat confdefs.h >>conftest.$ac_ext
34228 cat >>conftest.$ac_ext <<_ACEOF
34229 /* end confdefs.h. */
34230 #include <sys/types.h>
34231 #include <sys/param.h>
34236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
34237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
34239 bogus endian macros
34246 rm -f conftest.$ac_objext
34247 if { (ac_try="$ac_compile"
34248 case "(($ac_try" in
34249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34250 *) ac_try_echo=$ac_try;;
34252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34253 $as_echo "$ac_try_echo") >&5
34254 (eval "$ac_compile") 2>conftest.er1
34256 grep -v '^ *+' conftest.er1 >conftest.err
34258 cat conftest.err >&5
34259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260 (exit $ac_status); } && {
34261 test -z "$ac_c_werror_flag" ||
34262 test ! -s conftest.err
34263 } && test -s conftest.$ac_objext; then
34264 # It does; now see whether it defined to BIG_ENDIAN or not.
34265 cat >conftest.$ac_ext <<_ACEOF
34268 cat confdefs.h >>conftest.$ac_ext
34269 cat >>conftest.$ac_ext <<_ACEOF
34270 /* end confdefs.h. */
34271 #include <sys/types.h>
34272 #include <sys/param.h>
34277 #if BYTE_ORDER != BIG_ENDIAN
34285 rm -f conftest.$ac_objext
34286 if { (ac_try="$ac_compile"
34287 case "(($ac_try" in
34288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34289 *) ac_try_echo=$ac_try;;
34291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34292 $as_echo "$ac_try_echo") >&5
34293 (eval "$ac_compile") 2>conftest.er1
34295 grep -v '^ *+' conftest.er1 >conftest.err
34297 cat conftest.err >&5
34298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299 (exit $ac_status); } && {
34300 test -z "$ac_c_werror_flag" ||
34301 test ! -s conftest.err
34302 } && test -s conftest.$ac_objext; then
34303 ac_cv_c_bigendian=yes
34305 $as_echo "$as_me: failed program was:" >&5
34306 sed 's/^/| /' conftest.$ac_ext >&5
34308 ac_cv_c_bigendian=no
34311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34313 $as_echo "$as_me: failed program was:" >&5
34314 sed 's/^/| /' conftest.$ac_ext >&5
34319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34321 if test $ac_cv_c_bigendian = unknown; then
34322 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
34323 cat >conftest.$ac_ext <<_ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h. */
34329 #include <limits.h>
34334 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
34335 bogus endian macros
34342 rm -f conftest.$ac_objext
34343 if { (ac_try="$ac_compile"
34344 case "(($ac_try" in
34345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34346 *) ac_try_echo=$ac_try;;
34348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34349 $as_echo "$ac_try_echo") >&5
34350 (eval "$ac_compile") 2>conftest.er1
34352 grep -v '^ *+' conftest.er1 >conftest.err
34354 cat conftest.err >&5
34355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356 (exit $ac_status); } && {
34357 test -z "$ac_c_werror_flag" ||
34358 test ! -s conftest.err
34359 } && test -s conftest.$ac_objext; then
34360 # It does; now see whether it defined to _BIG_ENDIAN or not.
34361 cat >conftest.$ac_ext <<_ACEOF
34364 cat confdefs.h >>conftest.$ac_ext
34365 cat >>conftest.$ac_ext <<_ACEOF
34366 /* end confdefs.h. */
34367 #include <limits.h>
34372 #ifndef _BIG_ENDIAN
34380 rm -f conftest.$ac_objext
34381 if { (ac_try="$ac_compile"
34382 case "(($ac_try" in
34383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34384 *) ac_try_echo=$ac_try;;
34386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34387 $as_echo "$ac_try_echo") >&5
34388 (eval "$ac_compile") 2>conftest.er1
34390 grep -v '^ *+' conftest.er1 >conftest.err
34392 cat conftest.err >&5
34393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); } && {
34395 test -z "$ac_c_werror_flag" ||
34396 test ! -s conftest.err
34397 } && test -s conftest.$ac_objext; then
34398 ac_cv_c_bigendian=yes
34400 $as_echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34403 ac_cv_c_bigendian=no
34406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34408 $as_echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34416 if test $ac_cv_c_bigendian = unknown; then
34417 # Compile a test program.
34418 if test "$cross_compiling" = yes; then
34419 # Try to guess by grepping values from an object file.
34420 cat >conftest.$ac_ext <<_ACEOF
34423 cat confdefs.h >>conftest.$ac_ext
34424 cat >>conftest.$ac_ext <<_ACEOF
34425 /* end confdefs.h. */
34426 short int ascii_mm[] =
34427 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34428 short int ascii_ii[] =
34429 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34430 int use_ascii (int i) {
34431 return ascii_mm[i] + ascii_ii[i];
34433 short int ebcdic_ii[] =
34434 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34435 short int ebcdic_mm[] =
34436 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34437 int use_ebcdic (int i) {
34438 return ebcdic_mm[i] + ebcdic_ii[i];
34445 return use_ascii (foo) == use_ebcdic (foo);
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34457 $as_echo "$ac_try_echo") >&5
34458 (eval "$ac_compile") 2>conftest.er1
34460 grep -v '^ *+' conftest.er1 >conftest.err
34462 cat conftest.err >&5
34463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); } && {
34465 test -z "$ac_c_werror_flag" ||
34466 test ! -s conftest.err
34467 } && test -s conftest.$ac_objext; then
34468 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
34469 ac_cv_c_bigendian=yes
34471 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34472 if test "$ac_cv_c_bigendian" = unknown; then
34473 ac_cv_c_bigendian=no
34475 # finding both strings is unlikely to happen, but who knows?
34476 ac_cv_c_bigendian=unknown
34480 $as_echo "$as_me: failed program was:" >&5
34481 sed 's/^/| /' conftest.$ac_ext >&5
34486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34488 cat >conftest.$ac_ext <<_ACEOF
34491 cat confdefs.h >>conftest.$ac_ext
34492 cat >>conftest.$ac_ext <<_ACEOF
34493 /* end confdefs.h. */
34494 $ac_includes_default
34499 /* Are we little or big endian? From Harbison&Steele. */
34503 char c[sizeof (long int)];
34506 return u.c[sizeof (long int) - 1] == 1;
34512 rm -f conftest$ac_exeext
34513 if { (ac_try="$ac_link"
34514 case "(($ac_try" in
34515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34516 *) ac_try_echo=$ac_try;;
34518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34519 $as_echo "$ac_try_echo") >&5
34520 (eval "$ac_link") 2>&5
34522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34524 { (case "(($ac_try" in
34525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526 *) ac_try_echo=$ac_try;;
34528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34529 $as_echo "$ac_try_echo") >&5
34530 (eval "$ac_try") 2>&5
34532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); }; }; then
34534 ac_cv_c_bigendian=no
34536 $as_echo "$as_me: program exited with status $ac_status" >&5
34537 $as_echo "$as_me: failed program was:" >&5
34538 sed 's/^/| /' conftest.$ac_ext >&5
34540 ( exit $ac_status )
34541 ac_cv_c_bigendian=yes
34543 rm -rf conftest.dSYM
34544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34550 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34551 $as_echo "$ac_cv_c_bigendian" >&6; }
34552 case $ac_cv_c_bigendian in #(
34555 cat >>confdefs.h <<\_ACEOF
34556 #define HAVE_BIG_ENDIAN 1
34561 cat >>confdefs.h <<\_ACEOF
34562 #define HAVE_LITTLE_ENDIAN 1
34567 cat >>confdefs.h <<\_ACEOF
34568 #define AC_APPLE_UNIVERSAL_BUILD 1
34573 { { $as_echo "$as_me:$LINENO: error: unknown endianness
34574 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34575 $as_echo "$as_me: error: unknown endianness
34576 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34577 { (exit 1); exit 1; }; } ;;
34581 { $as_echo "$as_me:$LINENO: checking how to get filesystem type" >&5
34582 $as_echo_n "checking how to get filesystem type... " >&6; }
34584 # The order of these tests is important.
34585 cat >conftest.$ac_ext <<_ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h. */
34592 #include <sys/statvfs.h>
34593 #include <sys/fstyp.h>
34596 if { (ac_try="$ac_cpp conftest.$ac_ext"
34597 case "(($ac_try" in
34598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34599 *) ac_try_echo=$ac_try;;
34601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34602 $as_echo "$ac_try_echo") >&5
34603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34605 grep -v '^ *+' conftest.er1 >conftest.err
34607 cat conftest.err >&5
34608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); } >/dev/null && {
34610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34611 test ! -s conftest.err
34613 cat >>confdefs.h <<\_ACEOF
34614 #define FSTYPE_STATVFS 1
34619 $as_echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.$ac_ext >&5
34625 rm -f conftest.err conftest.$ac_ext
34626 if test $fstype = no; then
34627 cat >conftest.$ac_ext <<_ACEOF
34630 cat confdefs.h >>conftest.$ac_ext
34631 cat >>conftest.$ac_ext <<_ACEOF
34632 /* end confdefs.h. */
34634 #include <sys/statfs.h>
34635 #include <sys/fstyp.h>
34638 if { (ac_try="$ac_cpp conftest.$ac_ext"
34639 case "(($ac_try" in
34640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34641 *) ac_try_echo=$ac_try;;
34643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34644 $as_echo "$ac_try_echo") >&5
34645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34647 grep -v '^ *+' conftest.er1 >conftest.err
34649 cat conftest.err >&5
34650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); } >/dev/null && {
34652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34653 test ! -s conftest.err
34655 cat >>confdefs.h <<\_ACEOF
34656 #define FSTYPE_USG_STATFS 1
34661 $as_echo "$as_me: failed program was:" >&5
34662 sed 's/^/| /' conftest.$ac_ext >&5
34667 rm -f conftest.err conftest.$ac_ext
34669 if test $fstype = no; then
34670 cat >conftest.$ac_ext <<_ACEOF
34673 cat confdefs.h >>conftest.$ac_ext
34674 cat >>conftest.$ac_ext <<_ACEOF
34675 /* end confdefs.h. */
34677 #include <sys/statfs.h>
34678 #include <sys/vmount.h>
34681 if { (ac_try="$ac_cpp conftest.$ac_ext"
34682 case "(($ac_try" in
34683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34684 *) ac_try_echo=$ac_try;;
34686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34687 $as_echo "$ac_try_echo") >&5
34688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34690 grep -v '^ *+' conftest.er1 >conftest.err
34692 cat conftest.err >&5
34693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); } >/dev/null && {
34695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34696 test ! -s conftest.err
34698 cat >>confdefs.h <<\_ACEOF
34699 #define FSTYPE_AIX_STATFS 1
34704 $as_echo "$as_me: failed program was:" >&5
34705 sed 's/^/| /' conftest.$ac_ext >&5
34710 rm -f conftest.err conftest.$ac_ext
34712 if test $fstype = no; then
34713 cat >conftest.$ac_ext <<_ACEOF
34716 cat confdefs.h >>conftest.$ac_ext
34717 cat >>conftest.$ac_ext <<_ACEOF
34718 /* end confdefs.h. */
34720 #include <mntent.h>
34723 if { (ac_try="$ac_cpp conftest.$ac_ext"
34724 case "(($ac_try" in
34725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34726 *) ac_try_echo=$ac_try;;
34728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34729 $as_echo "$ac_try_echo") >&5
34730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34732 grep -v '^ *+' conftest.er1 >conftest.err
34734 cat conftest.err >&5
34735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736 (exit $ac_status); } >/dev/null && {
34737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34738 test ! -s conftest.err
34740 cat >>confdefs.h <<\_ACEOF
34741 #define FSTYPE_MNTENT 1
34746 $as_echo "$as_me: failed program was:" >&5
34747 sed 's/^/| /' conftest.$ac_ext >&5
34752 rm -f conftest.err conftest.$ac_ext
34754 if test $fstype = no; then
34755 cat >conftest.$ac_ext <<_ACEOF
34758 cat confdefs.h >>conftest.$ac_ext
34759 cat >>conftest.$ac_ext <<_ACEOF
34760 /* end confdefs.h. */
34761 #include <sys/mount.h>
34764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34765 $EGREP "f_type;" >/dev/null 2>&1; then
34766 cat >>confdefs.h <<\_ACEOF
34767 #define FSTYPE_STATFS 1
34774 if test $fstype = no; then
34775 cat >conftest.$ac_ext <<_ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h. */
34782 #include <sys/mount.h>
34783 #include <sys/fs_types.h>
34786 if { (ac_try="$ac_cpp conftest.$ac_ext"
34787 case "(($ac_try" in
34788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34789 *) ac_try_echo=$ac_try;;
34791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34792 $as_echo "$ac_try_echo") >&5
34793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34795 grep -v '^ *+' conftest.er1 >conftest.err
34797 cat conftest.err >&5
34798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); } >/dev/null && {
34800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34801 test ! -s conftest.err
34803 cat >>confdefs.h <<\_ACEOF
34804 #define FSTYPE_GETMNT 1
34809 $as_echo "$as_me: failed program was:" >&5
34810 sed 's/^/| /' conftest.$ac_ext >&5
34815 rm -f conftest.err conftest.$ac_ext
34817 { $as_echo "$as_me:$LINENO: result: $fstype" >&5
34818 $as_echo "$fstype" >&6; }
34820 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34821 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34822 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34823 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34824 $as_echo_n "(cached) " >&6
34826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34827 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34829 # Is the header compilable?
34830 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
34831 $as_echo_n "checking sys/statvfs.h usability... " >&6; }
34832 cat >conftest.$ac_ext <<_ACEOF
34835 cat confdefs.h >>conftest.$ac_ext
34836 cat >>conftest.$ac_ext <<_ACEOF
34837 /* end confdefs.h. */
34838 $ac_includes_default
34839 #include <sys/statvfs.h>
34841 rm -f conftest.$ac_objext
34842 if { (ac_try="$ac_compile"
34843 case "(($ac_try" in
34844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34845 *) ac_try_echo=$ac_try;;
34847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34848 $as_echo "$ac_try_echo") >&5
34849 (eval "$ac_compile") 2>conftest.er1
34851 grep -v '^ *+' conftest.er1 >conftest.err
34853 cat conftest.err >&5
34854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855 (exit $ac_status); } && {
34856 test -z "$ac_c_werror_flag" ||
34857 test ! -s conftest.err
34858 } && test -s conftest.$ac_objext; then
34859 ac_header_compiler=yes
34861 $as_echo "$as_me: failed program was:" >&5
34862 sed 's/^/| /' conftest.$ac_ext >&5
34864 ac_header_compiler=no
34867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34869 $as_echo "$ac_header_compiler" >&6; }
34871 # Is the header present?
34872 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
34873 $as_echo_n "checking sys/statvfs.h presence... " >&6; }
34874 cat >conftest.$ac_ext <<_ACEOF
34877 cat confdefs.h >>conftest.$ac_ext
34878 cat >>conftest.$ac_ext <<_ACEOF
34879 /* end confdefs.h. */
34880 #include <sys/statvfs.h>
34882 if { (ac_try="$ac_cpp conftest.$ac_ext"
34883 case "(($ac_try" in
34884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34885 *) ac_try_echo=$ac_try;;
34887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34888 $as_echo "$ac_try_echo") >&5
34889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34891 grep -v '^ *+' conftest.er1 >conftest.err
34893 cat conftest.err >&5
34894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); } >/dev/null && {
34896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34897 test ! -s conftest.err
34899 ac_header_preproc=yes
34901 $as_echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34904 ac_header_preproc=no
34907 rm -f conftest.err conftest.$ac_ext
34908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34909 $as_echo "$ac_header_preproc" >&6; }
34911 # So? What about this header?
34912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34914 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34915 $as_echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34916 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
34917 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
34918 ac_header_preproc=yes
34921 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
34922 $as_echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
34923 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
34924 $as_echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
34925 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
34926 $as_echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
34927 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
34928 $as_echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
34929 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
34930 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
34931 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
34932 $as_echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
34936 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34937 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34938 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34939 $as_echo_n "(cached) " >&6
34941 ac_cv_header_sys_statvfs_h=$ac_header_preproc
34943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34944 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34947 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then
34949 cat >>confdefs.h <<\_ACEOF
34950 #define HAVE_SYS_STATVFS_H 1
34958 ac_cpp='$CXXCPP $CPPFLAGS'
34959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34966 for ac_header in cxxabi.h execinfo.h
34968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34971 $as_echo_n "checking for $ac_header... " >&6; }
34972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34973 $as_echo_n "(cached) " >&6
34975 ac_res=`eval 'as_val=${'$as_ac_Header'}
34976 $as_echo "$as_val"'`
34977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34978 $as_echo "$ac_res" >&6; }
34980 # Is the header compilable?
34981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34982 $as_echo_n "checking $ac_header usability... " >&6; }
34983 cat >conftest.$ac_ext <<_ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h. */
34989 $ac_includes_default
34990 #include <$ac_header>
34992 rm -f conftest.$ac_objext
34993 if { (ac_try="$ac_compile"
34994 case "(($ac_try" in
34995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34996 *) ac_try_echo=$ac_try;;
34998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34999 $as_echo "$ac_try_echo") >&5
35000 (eval "$ac_compile") 2>conftest.er1
35002 grep -v '^ *+' conftest.er1 >conftest.err
35004 cat conftest.err >&5
35005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006 (exit $ac_status); } && {
35007 test -z "$ac_cxx_werror_flag" ||
35008 test ! -s conftest.err
35009 } && test -s conftest.$ac_objext; then
35010 ac_header_compiler=yes
35012 $as_echo "$as_me: failed program was:" >&5
35013 sed 's/^/| /' conftest.$ac_ext >&5
35015 ac_header_compiler=no
35018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35020 $as_echo "$ac_header_compiler" >&6; }
35022 # Is the header present?
35023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35024 $as_echo_n "checking $ac_header presence... " >&6; }
35025 cat >conftest.$ac_ext <<_ACEOF
35028 cat confdefs.h >>conftest.$ac_ext
35029 cat >>conftest.$ac_ext <<_ACEOF
35030 /* end confdefs.h. */
35031 #include <$ac_header>
35033 if { (ac_try="$ac_cpp conftest.$ac_ext"
35034 case "(($ac_try" in
35035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35036 *) ac_try_echo=$ac_try;;
35038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35039 $as_echo "$ac_try_echo") >&5
35040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35042 grep -v '^ *+' conftest.er1 >conftest.err
35044 cat conftest.err >&5
35045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); } >/dev/null && {
35047 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
35048 test ! -s conftest.err
35050 ac_header_preproc=yes
35052 $as_echo "$as_me: failed program was:" >&5
35053 sed 's/^/| /' conftest.$ac_ext >&5
35055 ac_header_preproc=no
35058 rm -f conftest.err conftest.$ac_ext
35059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35060 $as_echo "$ac_header_preproc" >&6; }
35062 # So? What about this header?
35063 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
35065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35069 ac_header_preproc=yes
35072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35075 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35079 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35088 $as_echo_n "checking for $ac_header... " >&6; }
35089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35090 $as_echo_n "(cached) " >&6
35092 eval "$as_ac_Header=\$ac_header_preproc"
35094 ac_res=`eval 'as_val=${'$as_ac_Header'}
35095 $as_echo "$as_val"'`
35096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35097 $as_echo "$ac_res" >&6; }
35100 as_val=`eval 'as_val=${'$as_ac_Header'}
35101 $as_echo "$as_val"'`
35102 if test "x$as_val" = x""yes; then
35103 cat >>confdefs.h <<_ACEOF
35104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35107 cat >>confdefs.h <<\_ACEOF
35108 #define HAVE_BACKTRACE 1
35116 ac_cpp='$CPP $CPPFLAGS'
35117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35122 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
35123 $as_echo_n "checking return type of signal handlers... " >&6; }
35124 if test "${ac_cv_type_signal+set}" = set; then
35125 $as_echo_n "(cached) " >&6
35127 cat >conftest.$ac_ext <<_ACEOF
35130 cat confdefs.h >>conftest.$ac_ext
35131 cat >>conftest.$ac_ext <<_ACEOF
35132 /* end confdefs.h. */
35133 #include <sys/types.h>
35134 #include <signal.h>
35139 return *(signal (0, 0)) (0) == 1;
35144 rm -f conftest.$ac_objext
35145 if { (ac_try="$ac_compile"
35146 case "(($ac_try" in
35147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35148 *) ac_try_echo=$ac_try;;
35150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35151 $as_echo "$ac_try_echo") >&5
35152 (eval "$ac_compile") 2>conftest.er1
35154 grep -v '^ *+' conftest.er1 >conftest.err
35156 cat conftest.err >&5
35157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); } && {
35159 test -z "$ac_c_werror_flag" ||
35160 test ! -s conftest.err
35161 } && test -s conftest.$ac_objext; then
35162 ac_cv_type_signal=int
35164 $as_echo "$as_me: failed program was:" >&5
35165 sed 's/^/| /' conftest.$ac_ext >&5
35167 ac_cv_type_signal=void
35170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35172 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
35173 $as_echo "$ac_cv_type_signal" >&6; }
35175 cat >>confdefs.h <<_ACEOF
35176 #define RETSIGTYPE $ac_cv_type_signal
35181 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
35182 $as_echo_n "checking for type of signal functions... " >&6; }
35183 if test "${bash_cv_signal_vintage+set}" = set; then
35184 $as_echo_n "(cached) " >&6
35187 cat >conftest.$ac_ext <<_ACEOF
35190 cat confdefs.h >>conftest.$ac_ext
35191 cat >>conftest.$ac_ext <<_ACEOF
35192 /* end confdefs.h. */
35193 #include <signal.h>
35199 struct sigaction sa;
35200 sigemptyset(&ss); sigsuspend(&ss);
35201 sigaction(SIGINT, &sa, (struct sigaction *) 0);
35202 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
35208 rm -f conftest.$ac_objext conftest$ac_exeext
35209 if { (ac_try="$ac_link"
35210 case "(($ac_try" in
35211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35212 *) ac_try_echo=$ac_try;;
35214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35215 $as_echo "$ac_try_echo") >&5
35216 (eval "$ac_link") 2>conftest.er1
35218 grep -v '^ *+' conftest.er1 >conftest.err
35220 cat conftest.err >&5
35221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222 (exit $ac_status); } && {
35223 test -z "$ac_c_werror_flag" ||
35224 test ! -s conftest.err
35225 } && test -s conftest$ac_exeext && {
35226 test "$cross_compiling" = yes ||
35227 $as_test_x conftest$ac_exeext
35229 bash_cv_signal_vintage="posix"
35231 $as_echo "$as_me: failed program was:" >&5
35232 sed 's/^/| /' conftest.$ac_ext >&5
35235 cat >conftest.$ac_ext <<_ACEOF
35238 cat confdefs.h >>conftest.$ac_ext
35239 cat >>conftest.$ac_ext <<_ACEOF
35240 /* end confdefs.h. */
35241 #include <signal.h>
35246 int mask = sigmask(SIGINT);
35247 sigsetmask(mask); sigblock(mask); sigpause(mask);
35253 rm -f conftest.$ac_objext conftest$ac_exeext
35254 if { (ac_try="$ac_link"
35255 case "(($ac_try" in
35256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35257 *) ac_try_echo=$ac_try;;
35259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35260 $as_echo "$ac_try_echo") >&5
35261 (eval "$ac_link") 2>conftest.er1
35263 grep -v '^ *+' conftest.er1 >conftest.err
35265 cat conftest.err >&5
35266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267 (exit $ac_status); } && {
35268 test -z "$ac_c_werror_flag" ||
35269 test ! -s conftest.err
35270 } && test -s conftest$ac_exeext && {
35271 test "$cross_compiling" = yes ||
35272 $as_test_x conftest$ac_exeext
35274 bash_cv_signal_vintage="4.2bsd"
35276 $as_echo "$as_me: failed program was:" >&5
35277 sed 's/^/| /' conftest.$ac_ext >&5
35280 cat >conftest.$ac_ext <<_ACEOF
35283 cat confdefs.h >>conftest.$ac_ext
35284 cat >>conftest.$ac_ext <<_ACEOF
35285 /* end confdefs.h. */
35287 #include <signal.h>
35288 RETSIGTYPE foo() { }
35293 int mask = sigmask(SIGINT);
35294 sigset(SIGINT, foo); sigrelse(SIGINT);
35295 sighold(SIGINT); sigpause(SIGINT);
35301 rm -f conftest.$ac_objext conftest$ac_exeext
35302 if { (ac_try="$ac_link"
35303 case "(($ac_try" in
35304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35305 *) ac_try_echo=$ac_try;;
35307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35308 $as_echo "$ac_try_echo") >&5
35309 (eval "$ac_link") 2>conftest.er1
35311 grep -v '^ *+' conftest.er1 >conftest.err
35313 cat conftest.err >&5
35314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); } && {
35316 test -z "$ac_c_werror_flag" ||
35317 test ! -s conftest.err
35318 } && test -s conftest$ac_exeext && {
35319 test "$cross_compiling" = yes ||
35320 $as_test_x conftest$ac_exeext
35322 bash_cv_signal_vintage="svr3"
35324 $as_echo "$as_me: failed program was:" >&5
35325 sed 's/^/| /' conftest.$ac_ext >&5
35327 bash_cv_signal_vintage="v7"
35331 rm -rf conftest.dSYM
35332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35333 conftest$ac_exeext conftest.$ac_ext
35337 rm -rf conftest.dSYM
35338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35339 conftest$ac_exeext conftest.$ac_ext
35343 rm -rf conftest.dSYM
35344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35345 conftest$ac_exeext conftest.$ac_ext
35349 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
35350 $as_echo "$bash_cv_signal_vintage" >&6; }
35351 if test "$bash_cv_signal_vintage" = "posix"; then
35352 cat >>confdefs.h <<\_ACEOF
35353 #define HAVE_POSIX_SIGNALS 1
35356 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
35357 cat >>confdefs.h <<\_ACEOF
35358 #define HAVE_BSD_SIGNALS 1
35361 elif test "$bash_cv_signal_vintage" = "svr3"; then
35362 cat >>confdefs.h <<\_ACEOF
35363 #define HAVE_USG_SIGHOLD 1
35368 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
35369 $as_echo_n "checking for mode_t... " >&6; }
35370 if test "${ac_cv_type_mode_t+set}" = set; then
35371 $as_echo_n "(cached) " >&6
35373 ac_cv_type_mode_t=no
35374 cat >conftest.$ac_ext <<_ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h. */
35380 $ac_includes_default
35384 if (sizeof (mode_t))
35390 rm -f conftest.$ac_objext
35391 if { (ac_try="$ac_compile"
35392 case "(($ac_try" in
35393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35394 *) ac_try_echo=$ac_try;;
35396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35397 $as_echo "$ac_try_echo") >&5
35398 (eval "$ac_compile") 2>conftest.er1
35400 grep -v '^ *+' conftest.er1 >conftest.err
35402 cat conftest.err >&5
35403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404 (exit $ac_status); } && {
35405 test -z "$ac_c_werror_flag" ||
35406 test ! -s conftest.err
35407 } && test -s conftest.$ac_objext; then
35408 cat >conftest.$ac_ext <<_ACEOF
35411 cat confdefs.h >>conftest.$ac_ext
35412 cat >>conftest.$ac_ext <<_ACEOF
35413 /* end confdefs.h. */
35414 $ac_includes_default
35418 if (sizeof ((mode_t)))
35424 rm -f conftest.$ac_objext
35425 if { (ac_try="$ac_compile"
35426 case "(($ac_try" in
35427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35428 *) ac_try_echo=$ac_try;;
35430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35431 $as_echo "$ac_try_echo") >&5
35432 (eval "$ac_compile") 2>conftest.er1
35434 grep -v '^ *+' conftest.er1 >conftest.err
35436 cat conftest.err >&5
35437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); } && {
35439 test -z "$ac_c_werror_flag" ||
35440 test ! -s conftest.err
35441 } && test -s conftest.$ac_objext; then
35444 $as_echo "$as_me: failed program was:" >&5
35445 sed 's/^/| /' conftest.$ac_ext >&5
35447 ac_cv_type_mode_t=yes
35450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35452 $as_echo "$as_me: failed program was:" >&5
35453 sed 's/^/| /' conftest.$ac_ext >&5
35458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35460 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35461 $as_echo "$ac_cv_type_mode_t" >&6; }
35462 if test "x$ac_cv_type_mode_t" = x""yes; then
35466 cat >>confdefs.h <<_ACEOF
35472 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
35473 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
35474 if test "${ac_cv_type_uid_t+set}" = set; then
35475 $as_echo_n "(cached) " >&6
35477 cat >conftest.$ac_ext <<_ACEOF
35480 cat confdefs.h >>conftest.$ac_ext
35481 cat >>conftest.$ac_ext <<_ACEOF
35482 /* end confdefs.h. */
35483 #include <sys/types.h>
35486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35487 $EGREP "uid_t" >/dev/null 2>&1; then
35488 ac_cv_type_uid_t=yes
35490 ac_cv_type_uid_t=no
35495 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
35496 $as_echo "$ac_cv_type_uid_t" >&6; }
35497 if test $ac_cv_type_uid_t = no; then
35499 cat >>confdefs.h <<\_ACEOF
35504 cat >>confdefs.h <<\_ACEOF
35510 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
35511 $as_echo_n "checking for size_t... " >&6; }
35512 if test "${ac_cv_type_size_t+set}" = set; then
35513 $as_echo_n "(cached) " >&6
35515 ac_cv_type_size_t=no
35516 cat >conftest.$ac_ext <<_ACEOF
35519 cat confdefs.h >>conftest.$ac_ext
35520 cat >>conftest.$ac_ext <<_ACEOF
35521 /* end confdefs.h. */
35522 $ac_includes_default
35526 if (sizeof (size_t))
35532 rm -f conftest.$ac_objext
35533 if { (ac_try="$ac_compile"
35534 case "(($ac_try" in
35535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35536 *) ac_try_echo=$ac_try;;
35538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35539 $as_echo "$ac_try_echo") >&5
35540 (eval "$ac_compile") 2>conftest.er1
35542 grep -v '^ *+' conftest.er1 >conftest.err
35544 cat conftest.err >&5
35545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546 (exit $ac_status); } && {
35547 test -z "$ac_c_werror_flag" ||
35548 test ! -s conftest.err
35549 } && test -s conftest.$ac_objext; then
35550 cat >conftest.$ac_ext <<_ACEOF
35553 cat confdefs.h >>conftest.$ac_ext
35554 cat >>conftest.$ac_ext <<_ACEOF
35555 /* end confdefs.h. */
35556 $ac_includes_default
35560 if (sizeof ((size_t)))
35566 rm -f conftest.$ac_objext
35567 if { (ac_try="$ac_compile"
35568 case "(($ac_try" in
35569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570 *) ac_try_echo=$ac_try;;
35572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35573 $as_echo "$ac_try_echo") >&5
35574 (eval "$ac_compile") 2>conftest.er1
35576 grep -v '^ *+' conftest.er1 >conftest.err
35578 cat conftest.err >&5
35579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); } && {
35581 test -z "$ac_c_werror_flag" ||
35582 test ! -s conftest.err
35583 } && test -s conftest.$ac_objext; then
35586 $as_echo "$as_me: failed program was:" >&5
35587 sed 's/^/| /' conftest.$ac_ext >&5
35589 ac_cv_type_size_t=yes
35592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35594 $as_echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35602 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35603 $as_echo "$ac_cv_type_size_t" >&6; }
35604 if test "x$ac_cv_type_size_t" = x""yes; then
35608 cat >>confdefs.h <<_ACEOF
35609 #define size_t unsigned int
35614 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
35615 $as_echo_n "checking for pid_t... " >&6; }
35616 if test "${ac_cv_type_pid_t+set}" = set; then
35617 $as_echo_n "(cached) " >&6
35619 ac_cv_type_pid_t=no
35620 cat >conftest.$ac_ext <<_ACEOF
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h. */
35626 $ac_includes_default
35630 if (sizeof (pid_t))
35636 rm -f conftest.$ac_objext
35637 if { (ac_try="$ac_compile"
35638 case "(($ac_try" in
35639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35640 *) ac_try_echo=$ac_try;;
35642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35643 $as_echo "$ac_try_echo") >&5
35644 (eval "$ac_compile") 2>conftest.er1
35646 grep -v '^ *+' conftest.er1 >conftest.err
35648 cat conftest.err >&5
35649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); } && {
35651 test -z "$ac_c_werror_flag" ||
35652 test ! -s conftest.err
35653 } && test -s conftest.$ac_objext; then
35654 cat >conftest.$ac_ext <<_ACEOF
35657 cat confdefs.h >>conftest.$ac_ext
35658 cat >>conftest.$ac_ext <<_ACEOF
35659 /* end confdefs.h. */
35660 $ac_includes_default
35664 if (sizeof ((pid_t)))
35670 rm -f conftest.$ac_objext
35671 if { (ac_try="$ac_compile"
35672 case "(($ac_try" in
35673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35674 *) ac_try_echo=$ac_try;;
35676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35677 $as_echo "$ac_try_echo") >&5
35678 (eval "$ac_compile") 2>conftest.er1
35680 grep -v '^ *+' conftest.er1 >conftest.err
35682 cat conftest.err >&5
35683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684 (exit $ac_status); } && {
35685 test -z "$ac_c_werror_flag" ||
35686 test ! -s conftest.err
35687 } && test -s conftest.$ac_objext; then
35690 $as_echo "$as_me: failed program was:" >&5
35691 sed 's/^/| /' conftest.$ac_ext >&5
35693 ac_cv_type_pid_t=yes
35696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35698 $as_echo "$as_me: failed program was:" >&5
35699 sed 's/^/| /' conftest.$ac_ext >&5
35704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35706 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
35707 $as_echo "$ac_cv_type_pid_t" >&6; }
35708 if test "x$ac_cv_type_pid_t" = x""yes; then
35712 cat >>confdefs.h <<_ACEOF
35718 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
35719 $as_echo_n "checking for off_t... " >&6; }
35720 if test "${ac_cv_type_off_t+set}" = set; then
35721 $as_echo_n "(cached) " >&6
35723 ac_cv_type_off_t=no
35724 cat >conftest.$ac_ext <<_ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h. */
35730 $ac_includes_default
35734 if (sizeof (off_t))
35740 rm -f conftest.$ac_objext
35741 if { (ac_try="$ac_compile"
35742 case "(($ac_try" in
35743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35744 *) ac_try_echo=$ac_try;;
35746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35747 $as_echo "$ac_try_echo") >&5
35748 (eval "$ac_compile") 2>conftest.er1
35750 grep -v '^ *+' conftest.er1 >conftest.err
35752 cat conftest.err >&5
35753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); } && {
35755 test -z "$ac_c_werror_flag" ||
35756 test ! -s conftest.err
35757 } && test -s conftest.$ac_objext; then
35758 cat >conftest.$ac_ext <<_ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h. */
35764 $ac_includes_default
35768 if (sizeof ((off_t)))
35774 rm -f conftest.$ac_objext
35775 if { (ac_try="$ac_compile"
35776 case "(($ac_try" in
35777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35778 *) ac_try_echo=$ac_try;;
35780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35781 $as_echo "$ac_try_echo") >&5
35782 (eval "$ac_compile") 2>conftest.er1
35784 grep -v '^ *+' conftest.er1 >conftest.err
35786 cat conftest.err >&5
35787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); } && {
35789 test -z "$ac_c_werror_flag" ||
35790 test ! -s conftest.err
35791 } && test -s conftest.$ac_objext; then
35794 $as_echo "$as_me: failed program was:" >&5
35795 sed 's/^/| /' conftest.$ac_ext >&5
35797 ac_cv_type_off_t=yes
35800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35802 $as_echo "$as_me: failed program was:" >&5
35803 sed 's/^/| /' conftest.$ac_ext >&5
35808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35810 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35811 $as_echo "$ac_cv_type_off_t" >&6; }
35812 if test "x$ac_cv_type_off_t" = x""yes; then
35816 cat >>confdefs.h <<_ACEOF
35817 #define off_t long int
35823 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
35824 $as_echo_n "checking for intptr_t... " >&6; }
35825 if test "${ac_cv_type_intptr_t+set}" = set; then
35826 $as_echo_n "(cached) " >&6
35828 ac_cv_type_intptr_t=no
35829 cat >conftest.$ac_ext <<_ACEOF
35832 cat confdefs.h >>conftest.$ac_ext
35833 cat >>conftest.$ac_ext <<_ACEOF
35834 /* end confdefs.h. */
35835 $ac_includes_default
35839 if (sizeof (intptr_t))
35845 rm -f conftest.$ac_objext
35846 if { (ac_try="$ac_compile"
35847 case "(($ac_try" in
35848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35849 *) ac_try_echo=$ac_try;;
35851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35852 $as_echo "$ac_try_echo") >&5
35853 (eval "$ac_compile") 2>conftest.er1
35855 grep -v '^ *+' conftest.er1 >conftest.err
35857 cat conftest.err >&5
35858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859 (exit $ac_status); } && {
35860 test -z "$ac_c_werror_flag" ||
35861 test ! -s conftest.err
35862 } && test -s conftest.$ac_objext; then
35863 cat >conftest.$ac_ext <<_ACEOF
35866 cat confdefs.h >>conftest.$ac_ext
35867 cat >>conftest.$ac_ext <<_ACEOF
35868 /* end confdefs.h. */
35869 $ac_includes_default
35873 if (sizeof ((intptr_t)))
35879 rm -f conftest.$ac_objext
35880 if { (ac_try="$ac_compile"
35881 case "(($ac_try" in
35882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35883 *) ac_try_echo=$ac_try;;
35885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35886 $as_echo "$ac_try_echo") >&5
35887 (eval "$ac_compile") 2>conftest.er1
35889 grep -v '^ *+' conftest.er1 >conftest.err
35891 cat conftest.err >&5
35892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); } && {
35894 test -z "$ac_c_werror_flag" ||
35895 test ! -s conftest.err
35896 } && test -s conftest.$ac_objext; then
35899 $as_echo "$as_me: failed program was:" >&5
35900 sed 's/^/| /' conftest.$ac_ext >&5
35902 ac_cv_type_intptr_t=yes
35905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35907 $as_echo "$as_me: failed program was:" >&5
35908 sed 's/^/| /' conftest.$ac_ext >&5
35913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35915 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
35916 $as_echo "$ac_cv_type_intptr_t" >&6; }
35917 if test "x$ac_cv_type_intptr_t" = x""yes; then
35919 cat >>confdefs.h <<\_ACEOF
35920 #define HAVE_INTPTR_T 1
35924 for ac_type in 'int' 'long int' 'long long int'; do
35925 cat >conftest.$ac_ext <<_ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h. */
35931 $ac_includes_default
35935 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35942 rm -f conftest.$ac_objext
35943 if { (ac_try="$ac_compile"
35944 case "(($ac_try" in
35945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35946 *) ac_try_echo=$ac_try;;
35948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35949 $as_echo "$ac_try_echo") >&5
35950 (eval "$ac_compile") 2>conftest.er1
35952 grep -v '^ *+' conftest.er1 >conftest.err
35954 cat conftest.err >&5
35955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); } && {
35957 test -z "$ac_c_werror_flag" ||
35958 test ! -s conftest.err
35959 } && test -s conftest.$ac_objext; then
35961 cat >>confdefs.h <<_ACEOF
35962 #define intptr_t $ac_type
35967 $as_echo "$as_me: failed program was:" >&5
35968 sed 's/^/| /' conftest.$ac_ext >&5
35973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974 test -z "$ac_type" && break
35980 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
35981 $as_echo_n "checking for uintptr_t... " >&6; }
35982 if test "${ac_cv_type_uintptr_t+set}" = set; then
35983 $as_echo_n "(cached) " >&6
35985 ac_cv_type_uintptr_t=no
35986 cat >conftest.$ac_ext <<_ACEOF
35989 cat confdefs.h >>conftest.$ac_ext
35990 cat >>conftest.$ac_ext <<_ACEOF
35991 /* end confdefs.h. */
35992 $ac_includes_default
35996 if (sizeof (uintptr_t))
36002 rm -f conftest.$ac_objext
36003 if { (ac_try="$ac_compile"
36004 case "(($ac_try" in
36005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36006 *) ac_try_echo=$ac_try;;
36008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36009 $as_echo "$ac_try_echo") >&5
36010 (eval "$ac_compile") 2>conftest.er1
36012 grep -v '^ *+' conftest.er1 >conftest.err
36014 cat conftest.err >&5
36015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016 (exit $ac_status); } && {
36017 test -z "$ac_c_werror_flag" ||
36018 test ! -s conftest.err
36019 } && test -s conftest.$ac_objext; then
36020 cat >conftest.$ac_ext <<_ACEOF
36023 cat confdefs.h >>conftest.$ac_ext
36024 cat >>conftest.$ac_ext <<_ACEOF
36025 /* end confdefs.h. */
36026 $ac_includes_default
36030 if (sizeof ((uintptr_t)))
36036 rm -f conftest.$ac_objext
36037 if { (ac_try="$ac_compile"
36038 case "(($ac_try" in
36039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36040 *) ac_try_echo=$ac_try;;
36042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36043 $as_echo "$ac_try_echo") >&5
36044 (eval "$ac_compile") 2>conftest.er1
36046 grep -v '^ *+' conftest.er1 >conftest.err
36048 cat conftest.err >&5
36049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); } && {
36051 test -z "$ac_c_werror_flag" ||
36052 test ! -s conftest.err
36053 } && test -s conftest.$ac_objext; then
36056 $as_echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36059 ac_cv_type_uintptr_t=yes
36062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36064 $as_echo "$as_me: failed program was:" >&5
36065 sed 's/^/| /' conftest.$ac_ext >&5
36070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36072 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
36073 $as_echo "$ac_cv_type_uintptr_t" >&6; }
36074 if test "x$ac_cv_type_uintptr_t" = x""yes; then
36076 cat >>confdefs.h <<\_ACEOF
36077 #define HAVE_UINTPTR_T 1
36081 for ac_type in 'unsigned int' 'unsigned long int' \
36082 'unsigned long long int'; do
36083 cat >conftest.$ac_ext <<_ACEOF
36086 cat confdefs.h >>conftest.$ac_ext
36087 cat >>conftest.$ac_ext <<_ACEOF
36088 /* end confdefs.h. */
36089 $ac_includes_default
36093 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
36100 rm -f conftest.$ac_objext
36101 if { (ac_try="$ac_compile"
36102 case "(($ac_try" in
36103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36104 *) ac_try_echo=$ac_try;;
36106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36107 $as_echo "$ac_try_echo") >&5
36108 (eval "$ac_compile") 2>conftest.er1
36110 grep -v '^ *+' conftest.er1 >conftest.err
36112 cat conftest.err >&5
36113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36114 (exit $ac_status); } && {
36115 test -z "$ac_c_werror_flag" ||
36116 test ! -s conftest.err
36117 } && test -s conftest.$ac_objext; then
36119 cat >>confdefs.h <<_ACEOF
36120 #define uintptr_t $ac_type
36125 $as_echo "$as_me: failed program was:" >&5
36126 sed 's/^/| /' conftest.$ac_ext >&5
36131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36132 test -z "$ac_type" && break
36137 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
36138 $as_echo_n "checking for ino_t... " >&6; }
36139 if test "${ac_cv_type_ino_t+set}" = set; then
36140 $as_echo_n "(cached) " >&6
36142 ac_cv_type_ino_t=no
36143 cat >conftest.$ac_ext <<_ACEOF
36146 cat confdefs.h >>conftest.$ac_ext
36147 cat >>conftest.$ac_ext <<_ACEOF
36148 /* end confdefs.h. */
36149 $ac_includes_default
36153 if (sizeof (ino_t))
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36166 $as_echo "$ac_try_echo") >&5
36167 (eval "$ac_compile") 2>conftest.er1
36169 grep -v '^ *+' conftest.er1 >conftest.err
36171 cat conftest.err >&5
36172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); } && {
36174 test -z "$ac_c_werror_flag" ||
36175 test ! -s conftest.err
36176 } && test -s conftest.$ac_objext; then
36177 cat >conftest.$ac_ext <<_ACEOF
36180 cat confdefs.h >>conftest.$ac_ext
36181 cat >>conftest.$ac_ext <<_ACEOF
36182 /* end confdefs.h. */
36183 $ac_includes_default
36187 if (sizeof ((ino_t)))
36193 rm -f conftest.$ac_objext
36194 if { (ac_try="$ac_compile"
36195 case "(($ac_try" in
36196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36197 *) ac_try_echo=$ac_try;;
36199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36200 $as_echo "$ac_try_echo") >&5
36201 (eval "$ac_compile") 2>conftest.er1
36203 grep -v '^ *+' conftest.er1 >conftest.err
36205 cat conftest.err >&5
36206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36207 (exit $ac_status); } && {
36208 test -z "$ac_c_werror_flag" ||
36209 test ! -s conftest.err
36210 } && test -s conftest.$ac_objext; then
36213 $as_echo "$as_me: failed program was:" >&5
36214 sed 's/^/| /' conftest.$ac_ext >&5
36216 ac_cv_type_ino_t=yes
36219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36221 $as_echo "$as_me: failed program was:" >&5
36222 sed 's/^/| /' conftest.$ac_ext >&5
36227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36229 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
36230 $as_echo "$ac_cv_type_ino_t" >&6; }
36231 if test "x$ac_cv_type_ino_t" = x""yes; then
36235 cat >>confdefs.h <<_ACEOF
36236 #define ino_t unsigned long
36241 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
36242 $as_echo_n "checking for dev_t... " >&6; }
36243 if test "${ac_cv_type_dev_t+set}" = set; then
36244 $as_echo_n "(cached) " >&6
36246 ac_cv_type_dev_t=no
36247 cat >conftest.$ac_ext <<_ACEOF
36250 cat confdefs.h >>conftest.$ac_ext
36251 cat >>conftest.$ac_ext <<_ACEOF
36252 /* end confdefs.h. */
36253 $ac_includes_default
36257 if (sizeof (dev_t))
36263 rm -f conftest.$ac_objext
36264 if { (ac_try="$ac_compile"
36265 case "(($ac_try" in
36266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36267 *) ac_try_echo=$ac_try;;
36269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36270 $as_echo "$ac_try_echo") >&5
36271 (eval "$ac_compile") 2>conftest.er1
36273 grep -v '^ *+' conftest.er1 >conftest.err
36275 cat conftest.err >&5
36276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); } && {
36278 test -z "$ac_c_werror_flag" ||
36279 test ! -s conftest.err
36280 } && test -s conftest.$ac_objext; then
36281 cat >conftest.$ac_ext <<_ACEOF
36284 cat confdefs.h >>conftest.$ac_ext
36285 cat >>conftest.$ac_ext <<_ACEOF
36286 /* end confdefs.h. */
36287 $ac_includes_default
36291 if (sizeof ((dev_t)))
36297 rm -f conftest.$ac_objext
36298 if { (ac_try="$ac_compile"
36299 case "(($ac_try" in
36300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301 *) ac_try_echo=$ac_try;;
36303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36304 $as_echo "$ac_try_echo") >&5
36305 (eval "$ac_compile") 2>conftest.er1
36307 grep -v '^ *+' conftest.er1 >conftest.err
36309 cat conftest.err >&5
36310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36311 (exit $ac_status); } && {
36312 test -z "$ac_c_werror_flag" ||
36313 test ! -s conftest.err
36314 } && test -s conftest.$ac_objext; then
36317 $as_echo "$as_me: failed program was:" >&5
36318 sed 's/^/| /' conftest.$ac_ext >&5
36320 ac_cv_type_dev_t=yes
36323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36325 $as_echo "$as_me: failed program was:" >&5
36326 sed 's/^/| /' conftest.$ac_ext >&5
36331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36333 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
36334 $as_echo "$ac_cv_type_dev_t" >&6; }
36335 if test "x$ac_cv_type_dev_t" = x""yes; then
36339 cat >>confdefs.h <<_ACEOF
36340 #define dev_t unsigned long
36345 { $as_echo "$as_me:$LINENO: checking for daddr_t" >&5
36346 $as_echo_n "checking for daddr_t... " >&6; }
36347 if test "${ac_cv_type_daddr_t+set}" = set; then
36348 $as_echo_n "(cached) " >&6
36350 ac_cv_type_daddr_t=no
36351 cat >conftest.$ac_ext <<_ACEOF
36354 cat confdefs.h >>conftest.$ac_ext
36355 cat >>conftest.$ac_ext <<_ACEOF
36356 /* end confdefs.h. */
36357 $ac_includes_default
36361 if (sizeof (daddr_t))
36367 rm -f conftest.$ac_objext
36368 if { (ac_try="$ac_compile"
36369 case "(($ac_try" in
36370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371 *) ac_try_echo=$ac_try;;
36373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36374 $as_echo "$ac_try_echo") >&5
36375 (eval "$ac_compile") 2>conftest.er1
36377 grep -v '^ *+' conftest.er1 >conftest.err
36379 cat conftest.err >&5
36380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); } && {
36382 test -z "$ac_c_werror_flag" ||
36383 test ! -s conftest.err
36384 } && test -s conftest.$ac_objext; then
36385 cat >conftest.$ac_ext <<_ACEOF
36388 cat confdefs.h >>conftest.$ac_ext
36389 cat >>conftest.$ac_ext <<_ACEOF
36390 /* end confdefs.h. */
36391 $ac_includes_default
36395 if (sizeof ((daddr_t)))
36401 rm -f conftest.$ac_objext
36402 if { (ac_try="$ac_compile"
36403 case "(($ac_try" in
36404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36405 *) ac_try_echo=$ac_try;;
36407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36408 $as_echo "$ac_try_echo") >&5
36409 (eval "$ac_compile") 2>conftest.er1
36411 grep -v '^ *+' conftest.er1 >conftest.err
36413 cat conftest.err >&5
36414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); } && {
36416 test -z "$ac_c_werror_flag" ||
36417 test ! -s conftest.err
36418 } && test -s conftest.$ac_objext; then
36421 $as_echo "$as_me: failed program was:" >&5
36422 sed 's/^/| /' conftest.$ac_ext >&5
36424 ac_cv_type_daddr_t=yes
36427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36429 $as_echo "$as_me: failed program was:" >&5
36430 sed 's/^/| /' conftest.$ac_ext >&5
36435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36437 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
36438 $as_echo "$ac_cv_type_daddr_t" >&6; }
36439 if test "x$ac_cv_type_daddr_t" = x""yes; then
36443 cat >>confdefs.h <<_ACEOF
36444 #define daddr_t long
36449 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
36450 $as_echo_n "checking for major_t... " >&6; }
36451 if test "${ac_cv_type_major_t+set}" = set; then
36452 $as_echo_n "(cached) " >&6
36454 ac_cv_type_major_t=no
36455 cat >conftest.$ac_ext <<_ACEOF
36458 cat confdefs.h >>conftest.$ac_ext
36459 cat >>conftest.$ac_ext <<_ACEOF
36460 /* end confdefs.h. */
36461 $ac_includes_default
36465 if (sizeof (major_t))
36471 rm -f conftest.$ac_objext
36472 if { (ac_try="$ac_compile"
36473 case "(($ac_try" in
36474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36475 *) ac_try_echo=$ac_try;;
36477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36478 $as_echo "$ac_try_echo") >&5
36479 (eval "$ac_compile") 2>conftest.er1
36481 grep -v '^ *+' conftest.er1 >conftest.err
36483 cat conftest.err >&5
36484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36485 (exit $ac_status); } && {
36486 test -z "$ac_c_werror_flag" ||
36487 test ! -s conftest.err
36488 } && test -s conftest.$ac_objext; then
36489 cat >conftest.$ac_ext <<_ACEOF
36492 cat confdefs.h >>conftest.$ac_ext
36493 cat >>conftest.$ac_ext <<_ACEOF
36494 /* end confdefs.h. */
36495 $ac_includes_default
36499 if (sizeof ((major_t)))
36505 rm -f conftest.$ac_objext
36506 if { (ac_try="$ac_compile"
36507 case "(($ac_try" in
36508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36509 *) ac_try_echo=$ac_try;;
36511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36512 $as_echo "$ac_try_echo") >&5
36513 (eval "$ac_compile") 2>conftest.er1
36515 grep -v '^ *+' conftest.er1 >conftest.err
36517 cat conftest.err >&5
36518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 (exit $ac_status); } && {
36520 test -z "$ac_c_werror_flag" ||
36521 test ! -s conftest.err
36522 } && test -s conftest.$ac_objext; then
36525 $as_echo "$as_me: failed program was:" >&5
36526 sed 's/^/| /' conftest.$ac_ext >&5
36528 ac_cv_type_major_t=yes
36531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36533 $as_echo "$as_me: failed program was:" >&5
36534 sed 's/^/| /' conftest.$ac_ext >&5
36539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36541 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
36542 $as_echo "$ac_cv_type_major_t" >&6; }
36543 if test "x$ac_cv_type_major_t" = x""yes; then
36547 cat >>confdefs.h <<_ACEOF
36548 #define major_t int
36553 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
36554 $as_echo_n "checking for minor_t... " >&6; }
36555 if test "${ac_cv_type_minor_t+set}" = set; then
36556 $as_echo_n "(cached) " >&6
36558 ac_cv_type_minor_t=no
36559 cat >conftest.$ac_ext <<_ACEOF
36562 cat confdefs.h >>conftest.$ac_ext
36563 cat >>conftest.$ac_ext <<_ACEOF
36564 /* end confdefs.h. */
36565 $ac_includes_default
36569 if (sizeof (minor_t))
36575 rm -f conftest.$ac_objext
36576 if { (ac_try="$ac_compile"
36577 case "(($ac_try" in
36578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36579 *) ac_try_echo=$ac_try;;
36581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36582 $as_echo "$ac_try_echo") >&5
36583 (eval "$ac_compile") 2>conftest.er1
36585 grep -v '^ *+' conftest.er1 >conftest.err
36587 cat conftest.err >&5
36588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589 (exit $ac_status); } && {
36590 test -z "$ac_c_werror_flag" ||
36591 test ! -s conftest.err
36592 } && test -s conftest.$ac_objext; then
36593 cat >conftest.$ac_ext <<_ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h. */
36599 $ac_includes_default
36603 if (sizeof ((minor_t)))
36609 rm -f conftest.$ac_objext
36610 if { (ac_try="$ac_compile"
36611 case "(($ac_try" in
36612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36613 *) ac_try_echo=$ac_try;;
36615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36616 $as_echo "$ac_try_echo") >&5
36617 (eval "$ac_compile") 2>conftest.er1
36619 grep -v '^ *+' conftest.er1 >conftest.err
36621 cat conftest.err >&5
36622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); } && {
36624 test -z "$ac_c_werror_flag" ||
36625 test ! -s conftest.err
36626 } && test -s conftest.$ac_objext; then
36629 $as_echo "$as_me: failed program was:" >&5
36630 sed 's/^/| /' conftest.$ac_ext >&5
36632 ac_cv_type_minor_t=yes
36635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36637 $as_echo "$as_me: failed program was:" >&5
36638 sed 's/^/| /' conftest.$ac_ext >&5
36643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36645 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
36646 $as_echo "$ac_cv_type_minor_t" >&6; }
36647 if test "x$ac_cv_type_minor_t" = x""yes; then
36651 cat >>confdefs.h <<_ACEOF
36652 #define minor_t int
36657 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
36658 $as_echo_n "checking for ssize_t... " >&6; }
36659 if test "${ac_cv_type_ssize_t+set}" = set; then
36660 $as_echo_n "(cached) " >&6
36662 ac_cv_type_ssize_t=no
36663 cat >conftest.$ac_ext <<_ACEOF
36666 cat confdefs.h >>conftest.$ac_ext
36667 cat >>conftest.$ac_ext <<_ACEOF
36668 /* end confdefs.h. */
36669 $ac_includes_default
36673 if (sizeof (ssize_t))
36679 rm -f conftest.$ac_objext
36680 if { (ac_try="$ac_compile"
36681 case "(($ac_try" in
36682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36683 *) ac_try_echo=$ac_try;;
36685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36686 $as_echo "$ac_try_echo") >&5
36687 (eval "$ac_compile") 2>conftest.er1
36689 grep -v '^ *+' conftest.er1 >conftest.err
36691 cat conftest.err >&5
36692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693 (exit $ac_status); } && {
36694 test -z "$ac_c_werror_flag" ||
36695 test ! -s conftest.err
36696 } && test -s conftest.$ac_objext; then
36697 cat >conftest.$ac_ext <<_ACEOF
36700 cat confdefs.h >>conftest.$ac_ext
36701 cat >>conftest.$ac_ext <<_ACEOF
36702 /* end confdefs.h. */
36703 $ac_includes_default
36707 if (sizeof ((ssize_t)))
36713 rm -f conftest.$ac_objext
36714 if { (ac_try="$ac_compile"
36715 case "(($ac_try" in
36716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36717 *) ac_try_echo=$ac_try;;
36719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36720 $as_echo "$ac_try_echo") >&5
36721 (eval "$ac_compile") 2>conftest.er1
36723 grep -v '^ *+' conftest.er1 >conftest.err
36725 cat conftest.err >&5
36726 $as_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 $as_echo "$as_me: failed program was:" >&5
36734 sed 's/^/| /' conftest.$ac_ext >&5
36736 ac_cv_type_ssize_t=yes
36739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36741 $as_echo "$as_me: failed program was:" >&5
36742 sed 's/^/| /' conftest.$ac_ext >&5
36747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36749 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36750 $as_echo "$ac_cv_type_ssize_t" >&6; }
36751 if test "x$ac_cv_type_ssize_t" = x""yes; then
36755 cat >>confdefs.h <<_ACEOF
36756 #define ssize_t int
36761 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
36762 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
36763 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
36764 $as_echo_n "(cached) " >&6
36766 cat >conftest.$ac_ext <<_ACEOF
36769 cat confdefs.h >>conftest.$ac_ext
36770 cat >>conftest.$ac_ext <<_ACEOF
36771 /* end confdefs.h. */
36772 $ac_includes_default
36776 static struct stat ac_aggr;
36777 if (ac_aggr.st_blocks)
36783 rm -f conftest.$ac_objext
36784 if { (ac_try="$ac_compile"
36785 case "(($ac_try" in
36786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36787 *) ac_try_echo=$ac_try;;
36789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36790 $as_echo "$ac_try_echo") >&5
36791 (eval "$ac_compile") 2>conftest.er1
36793 grep -v '^ *+' conftest.er1 >conftest.err
36795 cat conftest.err >&5
36796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797 (exit $ac_status); } && {
36798 test -z "$ac_c_werror_flag" ||
36799 test ! -s conftest.err
36800 } && test -s conftest.$ac_objext; then
36801 ac_cv_member_struct_stat_st_blocks=yes
36803 $as_echo "$as_me: failed program was:" >&5
36804 sed 's/^/| /' conftest.$ac_ext >&5
36806 cat >conftest.$ac_ext <<_ACEOF
36809 cat confdefs.h >>conftest.$ac_ext
36810 cat >>conftest.$ac_ext <<_ACEOF
36811 /* end confdefs.h. */
36812 $ac_includes_default
36816 static struct stat ac_aggr;
36817 if (sizeof ac_aggr.st_blocks)
36823 rm -f conftest.$ac_objext
36824 if { (ac_try="$ac_compile"
36825 case "(($ac_try" in
36826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36827 *) ac_try_echo=$ac_try;;
36829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36830 $as_echo "$ac_try_echo") >&5
36831 (eval "$ac_compile") 2>conftest.er1
36833 grep -v '^ *+' conftest.er1 >conftest.err
36835 cat conftest.err >&5
36836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837 (exit $ac_status); } && {
36838 test -z "$ac_c_werror_flag" ||
36839 test ! -s conftest.err
36840 } && test -s conftest.$ac_objext; then
36841 ac_cv_member_struct_stat_st_blocks=yes
36843 $as_echo "$as_me: failed program was:" >&5
36844 sed 's/^/| /' conftest.$ac_ext >&5
36846 ac_cv_member_struct_stat_st_blocks=no
36849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36854 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
36855 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
36856 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
36858 cat >>confdefs.h <<_ACEOF
36859 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
36863 cat >>confdefs.h <<\_ACEOF
36864 #define HAVE_ST_BLOCKS 1
36868 case " $LIBOBJS " in
36869 *" fileblocks.$ac_objext "* ) ;;
36870 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
36877 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
36878 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
36879 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
36880 $as_echo_n "(cached) " >&6
36882 cat >conftest.$ac_ext <<_ACEOF
36885 cat confdefs.h >>conftest.$ac_ext
36886 cat >>conftest.$ac_ext <<_ACEOF
36887 /* end confdefs.h. */
36888 $ac_includes_default
36892 static struct stat ac_aggr;
36893 if (ac_aggr.st_rdev)
36899 rm -f conftest.$ac_objext
36900 if { (ac_try="$ac_compile"
36901 case "(($ac_try" in
36902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36903 *) ac_try_echo=$ac_try;;
36905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36906 $as_echo "$ac_try_echo") >&5
36907 (eval "$ac_compile") 2>conftest.er1
36909 grep -v '^ *+' conftest.er1 >conftest.err
36911 cat conftest.err >&5
36912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36913 (exit $ac_status); } && {
36914 test -z "$ac_c_werror_flag" ||
36915 test ! -s conftest.err
36916 } && test -s conftest.$ac_objext; then
36917 ac_cv_member_struct_stat_st_rdev=yes
36919 $as_echo "$as_me: failed program was:" >&5
36920 sed 's/^/| /' conftest.$ac_ext >&5
36922 cat >conftest.$ac_ext <<_ACEOF
36925 cat confdefs.h >>conftest.$ac_ext
36926 cat >>conftest.$ac_ext <<_ACEOF
36927 /* end confdefs.h. */
36928 $ac_includes_default
36932 static struct stat ac_aggr;
36933 if (sizeof ac_aggr.st_rdev)
36939 rm -f conftest.$ac_objext
36940 if { (ac_try="$ac_compile"
36941 case "(($ac_try" in
36942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36943 *) ac_try_echo=$ac_try;;
36945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36946 $as_echo "$ac_try_echo") >&5
36947 (eval "$ac_compile") 2>conftest.er1
36949 grep -v '^ *+' conftest.er1 >conftest.err
36951 cat conftest.err >&5
36952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); } && {
36954 test -z "$ac_c_werror_flag" ||
36955 test ! -s conftest.err
36956 } && test -s conftest.$ac_objext; then
36957 ac_cv_member_struct_stat_st_rdev=yes
36959 $as_echo "$as_me: failed program was:" >&5
36960 sed 's/^/| /' conftest.$ac_ext >&5
36962 ac_cv_member_struct_stat_st_rdev=no
36965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36970 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
36971 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
36972 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
36974 cat >>confdefs.h <<_ACEOF
36975 #define HAVE_STRUCT_STAT_ST_RDEV 1
36979 cat >>confdefs.h <<\_ACEOF
36980 #define HAVE_ST_RDEV 1
36986 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
36987 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
36988 if test "${ac_cv_struct_tm+set}" = set; then
36989 $as_echo_n "(cached) " >&6
36991 cat >conftest.$ac_ext <<_ACEOF
36994 cat confdefs.h >>conftest.$ac_ext
36995 cat >>conftest.$ac_ext <<_ACEOF
36996 /* end confdefs.h. */
36997 #include <sys/types.h>
37004 int *p = &tm.tm_sec;
37010 rm -f conftest.$ac_objext
37011 if { (ac_try="$ac_compile"
37012 case "(($ac_try" in
37013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37014 *) ac_try_echo=$ac_try;;
37016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37017 $as_echo "$ac_try_echo") >&5
37018 (eval "$ac_compile") 2>conftest.er1
37020 grep -v '^ *+' conftest.er1 >conftest.err
37022 cat conftest.err >&5
37023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024 (exit $ac_status); } && {
37025 test -z "$ac_c_werror_flag" ||
37026 test ! -s conftest.err
37027 } && test -s conftest.$ac_objext; then
37028 ac_cv_struct_tm=time.h
37030 $as_echo "$as_me: failed program was:" >&5
37031 sed 's/^/| /' conftest.$ac_ext >&5
37033 ac_cv_struct_tm=sys/time.h
37036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37038 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37039 $as_echo "$ac_cv_struct_tm" >&6; }
37040 if test $ac_cv_struct_tm = sys/time.h; then
37042 cat >>confdefs.h <<\_ACEOF
37043 #define TM_IN_SYS_TIME 1
37048 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
37049 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
37050 if test "${ac_cv_c_const+set}" = set; then
37051 $as_echo_n "(cached) " >&6
37053 cat >conftest.$ac_ext <<_ACEOF
37056 cat confdefs.h >>conftest.$ac_ext
37057 cat >>conftest.$ac_ext <<_ACEOF
37058 /* end confdefs.h. */
37063 /* FIXME: Include the comments suggested by Paul. */
37064 #ifndef __cplusplus
37065 /* Ultrix mips cc rejects this. */
37066 typedef int charset[2];
37068 /* SunOS 4.1.1 cc rejects this. */
37069 char const *const *pcpcc;
37071 /* NEC SVR4.0.2 mips cc rejects this. */
37072 struct point {int x, y;};
37073 static struct point const zero = {0,0};
37074 /* AIX XL C 1.02.0.0 rejects this.
37075 It does not let you subtract one const X* pointer from another in
37076 an arm of an if-expression whose if-part is not a constant
37078 const char *g = "string";
37079 pcpcc = &g + (g ? g-g : 0);
37080 /* HPUX 7.0 cc rejects these. */
37082 ppc = (char**) pcpcc;
37083 pcpcc = (char const *const *) ppc;
37084 { /* SCO 3.2v4 cc rejects this. */
37086 char const *s = 0 ? (char *) 0 : (char const *) 0;
37091 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
37092 int x[] = {25, 17};
37093 const int *foo = &x[0];
37096 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
37097 typedef const int *iptr;
37101 { /* AIX XL C 1.02.0.0 rejects this saying
37102 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
37103 struct s { int j; const int *ap[3]; };
37104 struct s *b; b->j = 5;
37106 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
37107 const int foo = 10;
37108 if (!foo) return 0;
37110 return !cs[0] && !zero.x;
37117 rm -f conftest.$ac_objext
37118 if { (ac_try="$ac_compile"
37119 case "(($ac_try" in
37120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121 *) ac_try_echo=$ac_try;;
37123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37124 $as_echo "$ac_try_echo") >&5
37125 (eval "$ac_compile") 2>conftest.er1
37127 grep -v '^ *+' conftest.er1 >conftest.err
37129 cat conftest.err >&5
37130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37131 (exit $ac_status); } && {
37132 test -z "$ac_c_werror_flag" ||
37133 test ! -s conftest.err
37134 } && test -s conftest.$ac_objext; then
37137 $as_echo "$as_me: failed program was:" >&5
37138 sed 's/^/| /' conftest.$ac_ext >&5
37143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37145 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
37146 $as_echo "$ac_cv_c_const" >&6; }
37147 if test $ac_cv_c_const = no; then
37149 cat >>confdefs.h <<\_ACEOF
37156 # The cast to long int works around a bug in the HP C Compiler
37157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37159 # This bug is HP SR number 8606223364.
37160 { $as_echo "$as_me:$LINENO: checking size of char" >&5
37161 $as_echo_n "checking size of char... " >&6; }
37162 if test "${ac_cv_sizeof_char+set}" = set; then
37163 $as_echo_n "(cached) " >&6
37165 if test "$cross_compiling" = yes; then
37166 # Depending upon the size, compute the lo and hi bounds.
37167 cat >conftest.$ac_ext <<_ACEOF
37170 cat confdefs.h >>conftest.$ac_ext
37171 cat >>conftest.$ac_ext <<_ACEOF
37172 /* end confdefs.h. */
37173 $ac_includes_default
37177 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
37184 rm -f conftest.$ac_objext
37185 if { (ac_try="$ac_compile"
37186 case "(($ac_try" in
37187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37188 *) ac_try_echo=$ac_try;;
37190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37191 $as_echo "$ac_try_echo") >&5
37192 (eval "$ac_compile") 2>conftest.er1
37194 grep -v '^ *+' conftest.er1 >conftest.err
37196 cat conftest.err >&5
37197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198 (exit $ac_status); } && {
37199 test -z "$ac_c_werror_flag" ||
37200 test ! -s conftest.err
37201 } && test -s conftest.$ac_objext; then
37204 cat >conftest.$ac_ext <<_ACEOF
37207 cat confdefs.h >>conftest.$ac_ext
37208 cat >>conftest.$ac_ext <<_ACEOF
37209 /* end confdefs.h. */
37210 $ac_includes_default
37214 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
37221 rm -f conftest.$ac_objext
37222 if { (ac_try="$ac_compile"
37223 case "(($ac_try" in
37224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37225 *) ac_try_echo=$ac_try;;
37227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37228 $as_echo "$ac_try_echo") >&5
37229 (eval "$ac_compile") 2>conftest.er1
37231 grep -v '^ *+' conftest.er1 >conftest.err
37233 cat conftest.err >&5
37234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235 (exit $ac_status); } && {
37236 test -z "$ac_c_werror_flag" ||
37237 test ! -s conftest.err
37238 } && test -s conftest.$ac_objext; then
37239 ac_hi=$ac_mid; break
37241 $as_echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37244 ac_lo=`expr $ac_mid + 1`
37245 if test $ac_lo -le $ac_mid; then
37249 ac_mid=`expr 2 '*' $ac_mid + 1`
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37255 $as_echo "$as_me: failed program was:" >&5
37256 sed 's/^/| /' conftest.$ac_ext >&5
37258 cat >conftest.$ac_ext <<_ACEOF
37261 cat confdefs.h >>conftest.$ac_ext
37262 cat >>conftest.$ac_ext <<_ACEOF
37263 /* end confdefs.h. */
37264 $ac_includes_default
37268 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
37275 rm -f conftest.$ac_objext
37276 if { (ac_try="$ac_compile"
37277 case "(($ac_try" in
37278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37279 *) ac_try_echo=$ac_try;;
37281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37282 $as_echo "$ac_try_echo") >&5
37283 (eval "$ac_compile") 2>conftest.er1
37285 grep -v '^ *+' conftest.er1 >conftest.err
37287 cat conftest.err >&5
37288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289 (exit $ac_status); } && {
37290 test -z "$ac_c_werror_flag" ||
37291 test ! -s conftest.err
37292 } && test -s conftest.$ac_objext; then
37295 cat >conftest.$ac_ext <<_ACEOF
37298 cat confdefs.h >>conftest.$ac_ext
37299 cat >>conftest.$ac_ext <<_ACEOF
37300 /* end confdefs.h. */
37301 $ac_includes_default
37305 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
37312 rm -f conftest.$ac_objext
37313 if { (ac_try="$ac_compile"
37314 case "(($ac_try" in
37315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37316 *) ac_try_echo=$ac_try;;
37318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37319 $as_echo "$ac_try_echo") >&5
37320 (eval "$ac_compile") 2>conftest.er1
37322 grep -v '^ *+' conftest.er1 >conftest.err
37324 cat conftest.err >&5
37325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); } && {
37327 test -z "$ac_c_werror_flag" ||
37328 test ! -s conftest.err
37329 } && test -s conftest.$ac_objext; then
37330 ac_lo=$ac_mid; break
37332 $as_echo "$as_me: failed program was:" >&5
37333 sed 's/^/| /' conftest.$ac_ext >&5
37335 ac_hi=`expr '(' $ac_mid ')' - 1`
37336 if test $ac_mid -le $ac_hi; then
37340 ac_mid=`expr 2 '*' $ac_mid`
37343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37346 $as_echo "$as_me: failed program was:" >&5
37347 sed 's/^/| /' conftest.$ac_ext >&5
37352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37356 # Binary search between lo and hi bounds.
37357 while test "x$ac_lo" != "x$ac_hi"; do
37358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37359 cat >conftest.$ac_ext <<_ACEOF
37362 cat confdefs.h >>conftest.$ac_ext
37363 cat >>conftest.$ac_ext <<_ACEOF
37364 /* end confdefs.h. */
37365 $ac_includes_default
37369 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37383 $as_echo "$ac_try_echo") >&5
37384 (eval "$ac_compile") 2>conftest.er1
37386 grep -v '^ *+' conftest.er1 >conftest.err
37388 cat conftest.err >&5
37389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 (exit $ac_status); } && {
37391 test -z "$ac_c_werror_flag" ||
37392 test ! -s conftest.err
37393 } && test -s conftest.$ac_objext; then
37396 $as_echo "$as_me: failed program was:" >&5
37397 sed 's/^/| /' conftest.$ac_ext >&5
37399 ac_lo=`expr '(' $ac_mid ')' + 1`
37402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37405 ?*) ac_cv_sizeof_char=$ac_lo;;
37406 '') if test "$ac_cv_type_char" = yes; then
37407 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37409 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
37410 See \`config.log' for more details." >&5
37411 $as_echo "$as_me: error: cannot compute sizeof (char)
37412 See \`config.log' for more details." >&2;}
37413 { (exit 77); exit 77; }; }; }
37415 ac_cv_sizeof_char=0
37419 cat >conftest.$ac_ext <<_ACEOF
37422 cat confdefs.h >>conftest.$ac_ext
37423 cat >>conftest.$ac_ext <<_ACEOF
37424 /* end confdefs.h. */
37425 $ac_includes_default
37426 static long int longval () { return (long int) (sizeof (char)); }
37427 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
37429 #include <stdlib.h>
37434 FILE *f = fopen ("conftest.val", "w");
37437 if (((long int) (sizeof (char))) < 0)
37439 long int i = longval ();
37440 if (i != ((long int) (sizeof (char))))
37442 fprintf (f, "%ld", i);
37446 unsigned long int i = ulongval ();
37447 if (i != ((long int) (sizeof (char))))
37449 fprintf (f, "%lu", i);
37451 /* Do not output a trailing newline, as this causes \r\n confusion
37452 on some platforms. */
37453 return ferror (f) || fclose (f) != 0;
37459 rm -f conftest$ac_exeext
37460 if { (ac_try="$ac_link"
37461 case "(($ac_try" in
37462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37463 *) ac_try_echo=$ac_try;;
37465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37466 $as_echo "$ac_try_echo") >&5
37467 (eval "$ac_link") 2>&5
37469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37471 { (case "(($ac_try" in
37472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37473 *) ac_try_echo=$ac_try;;
37475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37476 $as_echo "$ac_try_echo") >&5
37477 (eval "$ac_try") 2>&5
37479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); }; }; then
37481 ac_cv_sizeof_char=`cat conftest.val`
37483 $as_echo "$as_me: program exited with status $ac_status" >&5
37484 $as_echo "$as_me: failed program was:" >&5
37485 sed 's/^/| /' conftest.$ac_ext >&5
37487 ( exit $ac_status )
37488 if test "$ac_cv_type_char" = yes; then
37489 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37491 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
37492 See \`config.log' for more details." >&5
37493 $as_echo "$as_me: error: cannot compute sizeof (char)
37494 See \`config.log' for more details." >&2;}
37495 { (exit 77); exit 77; }; }; }
37497 ac_cv_sizeof_char=0
37500 rm -rf conftest.dSYM
37501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37505 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
37506 $as_echo "$ac_cv_sizeof_char" >&6; }
37510 cat >>confdefs.h <<_ACEOF
37511 #define SIZEOF_CHAR $ac_cv_sizeof_char
37515 # The cast to long int works around a bug in the HP C Compiler
37516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37518 # This bug is HP SR number 8606223364.
37519 { $as_echo "$as_me:$LINENO: checking size of short int" >&5
37520 $as_echo_n "checking size of short int... " >&6; }
37521 if test "${ac_cv_sizeof_short_int+set}" = set; then
37522 $as_echo_n "(cached) " >&6
37524 if test "$cross_compiling" = yes; then
37525 # Depending upon the size, compute the lo and hi bounds.
37526 cat >conftest.$ac_ext <<_ACEOF
37529 cat confdefs.h >>conftest.$ac_ext
37530 cat >>conftest.$ac_ext <<_ACEOF
37531 /* end confdefs.h. */
37532 $ac_includes_default
37536 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)];
37543 rm -f conftest.$ac_objext
37544 if { (ac_try="$ac_compile"
37545 case "(($ac_try" in
37546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37547 *) ac_try_echo=$ac_try;;
37549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37550 $as_echo "$ac_try_echo") >&5
37551 (eval "$ac_compile") 2>conftest.er1
37553 grep -v '^ *+' conftest.er1 >conftest.err
37555 cat conftest.err >&5
37556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); } && {
37558 test -z "$ac_c_werror_flag" ||
37559 test ! -s conftest.err
37560 } && test -s conftest.$ac_objext; then
37563 cat >conftest.$ac_ext <<_ACEOF
37566 cat confdefs.h >>conftest.$ac_ext
37567 cat >>conftest.$ac_ext <<_ACEOF
37568 /* end confdefs.h. */
37569 $ac_includes_default
37573 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
37580 rm -f conftest.$ac_objext
37581 if { (ac_try="$ac_compile"
37582 case "(($ac_try" in
37583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37584 *) ac_try_echo=$ac_try;;
37586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37587 $as_echo "$ac_try_echo") >&5
37588 (eval "$ac_compile") 2>conftest.er1
37590 grep -v '^ *+' conftest.er1 >conftest.err
37592 cat conftest.err >&5
37593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594 (exit $ac_status); } && {
37595 test -z "$ac_c_werror_flag" ||
37596 test ! -s conftest.err
37597 } && test -s conftest.$ac_objext; then
37598 ac_hi=$ac_mid; break
37600 $as_echo "$as_me: failed program was:" >&5
37601 sed 's/^/| /' conftest.$ac_ext >&5
37603 ac_lo=`expr $ac_mid + 1`
37604 if test $ac_lo -le $ac_mid; then
37608 ac_mid=`expr 2 '*' $ac_mid + 1`
37611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37614 $as_echo "$as_me: failed program was:" >&5
37615 sed 's/^/| /' conftest.$ac_ext >&5
37617 cat >conftest.$ac_ext <<_ACEOF
37620 cat confdefs.h >>conftest.$ac_ext
37621 cat >>conftest.$ac_ext <<_ACEOF
37622 /* end confdefs.h. */
37623 $ac_includes_default
37627 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)];
37634 rm -f conftest.$ac_objext
37635 if { (ac_try="$ac_compile"
37636 case "(($ac_try" in
37637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638 *) ac_try_echo=$ac_try;;
37640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37641 $as_echo "$ac_try_echo") >&5
37642 (eval "$ac_compile") 2>conftest.er1
37644 grep -v '^ *+' conftest.er1 >conftest.err
37646 cat conftest.err >&5
37647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648 (exit $ac_status); } && {
37649 test -z "$ac_c_werror_flag" ||
37650 test ! -s conftest.err
37651 } && test -s conftest.$ac_objext; then
37654 cat >conftest.$ac_ext <<_ACEOF
37657 cat confdefs.h >>conftest.$ac_ext
37658 cat >>conftest.$ac_ext <<_ACEOF
37659 /* end confdefs.h. */
37660 $ac_includes_default
37664 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)];
37671 rm -f conftest.$ac_objext
37672 if { (ac_try="$ac_compile"
37673 case "(($ac_try" in
37674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37675 *) ac_try_echo=$ac_try;;
37677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37678 $as_echo "$ac_try_echo") >&5
37679 (eval "$ac_compile") 2>conftest.er1
37681 grep -v '^ *+' conftest.er1 >conftest.err
37683 cat conftest.err >&5
37684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); } && {
37686 test -z "$ac_c_werror_flag" ||
37687 test ! -s conftest.err
37688 } && test -s conftest.$ac_objext; then
37689 ac_lo=$ac_mid; break
37691 $as_echo "$as_me: failed program was:" >&5
37692 sed 's/^/| /' conftest.$ac_ext >&5
37694 ac_hi=`expr '(' $ac_mid ')' - 1`
37695 if test $ac_mid -le $ac_hi; then
37699 ac_mid=`expr 2 '*' $ac_mid`
37702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37705 $as_echo "$as_me: failed program was:" >&5
37706 sed 's/^/| /' conftest.$ac_ext >&5
37711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37715 # Binary search between lo and hi bounds.
37716 while test "x$ac_lo" != "x$ac_hi"; do
37717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37718 cat >conftest.$ac_ext <<_ACEOF
37721 cat confdefs.h >>conftest.$ac_ext
37722 cat >>conftest.$ac_ext <<_ACEOF
37723 /* end confdefs.h. */
37724 $ac_includes_default
37728 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
37735 rm -f conftest.$ac_objext
37736 if { (ac_try="$ac_compile"
37737 case "(($ac_try" in
37738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37739 *) ac_try_echo=$ac_try;;
37741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37742 $as_echo "$ac_try_echo") >&5
37743 (eval "$ac_compile") 2>conftest.er1
37745 grep -v '^ *+' conftest.er1 >conftest.err
37747 cat conftest.err >&5
37748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749 (exit $ac_status); } && {
37750 test -z "$ac_c_werror_flag" ||
37751 test ! -s conftest.err
37752 } && test -s conftest.$ac_objext; then
37755 $as_echo "$as_me: failed program was:" >&5
37756 sed 's/^/| /' conftest.$ac_ext >&5
37758 ac_lo=`expr '(' $ac_mid ')' + 1`
37761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37764 ?*) ac_cv_sizeof_short_int=$ac_lo;;
37765 '') if test "$ac_cv_type_short_int" = yes; then
37766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37768 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37769 See \`config.log' for more details." >&5
37770 $as_echo "$as_me: error: cannot compute sizeof (short int)
37771 See \`config.log' for more details." >&2;}
37772 { (exit 77); exit 77; }; }; }
37774 ac_cv_sizeof_short_int=0
37778 cat >conftest.$ac_ext <<_ACEOF
37781 cat confdefs.h >>conftest.$ac_ext
37782 cat >>conftest.$ac_ext <<_ACEOF
37783 /* end confdefs.h. */
37784 $ac_includes_default
37785 static long int longval () { return (long int) (sizeof (short int)); }
37786 static unsigned long int ulongval () { return (long int) (sizeof (short int)); }
37788 #include <stdlib.h>
37793 FILE *f = fopen ("conftest.val", "w");
37796 if (((long int) (sizeof (short int))) < 0)
37798 long int i = longval ();
37799 if (i != ((long int) (sizeof (short int))))
37801 fprintf (f, "%ld", i);
37805 unsigned long int i = ulongval ();
37806 if (i != ((long int) (sizeof (short int))))
37808 fprintf (f, "%lu", i);
37810 /* Do not output a trailing newline, as this causes \r\n confusion
37811 on some platforms. */
37812 return ferror (f) || fclose (f) != 0;
37818 rm -f conftest$ac_exeext
37819 if { (ac_try="$ac_link"
37820 case "(($ac_try" in
37821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37822 *) ac_try_echo=$ac_try;;
37824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37825 $as_echo "$ac_try_echo") >&5
37826 (eval "$ac_link") 2>&5
37828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37830 { (case "(($ac_try" in
37831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37832 *) ac_try_echo=$ac_try;;
37834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37835 $as_echo "$ac_try_echo") >&5
37836 (eval "$ac_try") 2>&5
37838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839 (exit $ac_status); }; }; then
37840 ac_cv_sizeof_short_int=`cat conftest.val`
37842 $as_echo "$as_me: program exited with status $ac_status" >&5
37843 $as_echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37846 ( exit $ac_status )
37847 if test "$ac_cv_type_short_int" = yes; then
37848 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37850 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37851 See \`config.log' for more details." >&5
37852 $as_echo "$as_me: error: cannot compute sizeof (short int)
37853 See \`config.log' for more details." >&2;}
37854 { (exit 77); exit 77; }; }; }
37856 ac_cv_sizeof_short_int=0
37859 rm -rf conftest.dSYM
37860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37864 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
37865 $as_echo "$ac_cv_sizeof_short_int" >&6; }
37869 cat >>confdefs.h <<_ACEOF
37870 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
37874 # The cast to long int works around a bug in the HP C Compiler
37875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37877 # This bug is HP SR number 8606223364.
37878 { $as_echo "$as_me:$LINENO: checking size of int" >&5
37879 $as_echo_n "checking size of int... " >&6; }
37880 if test "${ac_cv_sizeof_int+set}" = set; then
37881 $as_echo_n "(cached) " >&6
37883 if test "$cross_compiling" = yes; then
37884 # Depending upon the size, compute the lo and hi bounds.
37885 cat >conftest.$ac_ext <<_ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h. */
37891 $ac_includes_default
37895 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
37902 rm -f conftest.$ac_objext
37903 if { (ac_try="$ac_compile"
37904 case "(($ac_try" in
37905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37906 *) ac_try_echo=$ac_try;;
37908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37909 $as_echo "$ac_try_echo") >&5
37910 (eval "$ac_compile") 2>conftest.er1
37912 grep -v '^ *+' conftest.er1 >conftest.err
37914 cat conftest.err >&5
37915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916 (exit $ac_status); } && {
37917 test -z "$ac_c_werror_flag" ||
37918 test ! -s conftest.err
37919 } && test -s conftest.$ac_objext; then
37922 cat >conftest.$ac_ext <<_ACEOF
37925 cat confdefs.h >>conftest.$ac_ext
37926 cat >>conftest.$ac_ext <<_ACEOF
37927 /* end confdefs.h. */
37928 $ac_includes_default
37932 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37939 rm -f conftest.$ac_objext
37940 if { (ac_try="$ac_compile"
37941 case "(($ac_try" in
37942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37943 *) ac_try_echo=$ac_try;;
37945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37946 $as_echo "$ac_try_echo") >&5
37947 (eval "$ac_compile") 2>conftest.er1
37949 grep -v '^ *+' conftest.er1 >conftest.err
37951 cat conftest.err >&5
37952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); } && {
37954 test -z "$ac_c_werror_flag" ||
37955 test ! -s conftest.err
37956 } && test -s conftest.$ac_objext; then
37957 ac_hi=$ac_mid; break
37959 $as_echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37962 ac_lo=`expr $ac_mid + 1`
37963 if test $ac_lo -le $ac_mid; then
37967 ac_mid=`expr 2 '*' $ac_mid + 1`
37970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37973 $as_echo "$as_me: failed program was:" >&5
37974 sed 's/^/| /' conftest.$ac_ext >&5
37976 cat >conftest.$ac_ext <<_ACEOF
37979 cat confdefs.h >>conftest.$ac_ext
37980 cat >>conftest.$ac_ext <<_ACEOF
37981 /* end confdefs.h. */
37982 $ac_includes_default
37986 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
37993 rm -f conftest.$ac_objext
37994 if { (ac_try="$ac_compile"
37995 case "(($ac_try" in
37996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37997 *) ac_try_echo=$ac_try;;
37999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38000 $as_echo "$ac_try_echo") >&5
38001 (eval "$ac_compile") 2>conftest.er1
38003 grep -v '^ *+' conftest.er1 >conftest.err
38005 cat conftest.err >&5
38006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007 (exit $ac_status); } && {
38008 test -z "$ac_c_werror_flag" ||
38009 test ! -s conftest.err
38010 } && test -s conftest.$ac_objext; then
38013 cat >conftest.$ac_ext <<_ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h. */
38019 $ac_includes_default
38023 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
38030 rm -f conftest.$ac_objext
38031 if { (ac_try="$ac_compile"
38032 case "(($ac_try" in
38033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38034 *) ac_try_echo=$ac_try;;
38036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38037 $as_echo "$ac_try_echo") >&5
38038 (eval "$ac_compile") 2>conftest.er1
38040 grep -v '^ *+' conftest.er1 >conftest.err
38042 cat conftest.err >&5
38043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044 (exit $ac_status); } && {
38045 test -z "$ac_c_werror_flag" ||
38046 test ! -s conftest.err
38047 } && test -s conftest.$ac_objext; then
38048 ac_lo=$ac_mid; break
38050 $as_echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38053 ac_hi=`expr '(' $ac_mid ')' - 1`
38054 if test $ac_mid -le $ac_hi; then
38058 ac_mid=`expr 2 '*' $ac_mid`
38061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38064 $as_echo "$as_me: failed program was:" >&5
38065 sed 's/^/| /' conftest.$ac_ext >&5
38070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38074 # Binary search between lo and hi bounds.
38075 while test "x$ac_lo" != "x$ac_hi"; do
38076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38077 cat >conftest.$ac_ext <<_ACEOF
38080 cat confdefs.h >>conftest.$ac_ext
38081 cat >>conftest.$ac_ext <<_ACEOF
38082 /* end confdefs.h. */
38083 $ac_includes_default
38087 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
38094 rm -f conftest.$ac_objext
38095 if { (ac_try="$ac_compile"
38096 case "(($ac_try" in
38097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38098 *) ac_try_echo=$ac_try;;
38100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38101 $as_echo "$ac_try_echo") >&5
38102 (eval "$ac_compile") 2>conftest.er1
38104 grep -v '^ *+' conftest.er1 >conftest.err
38106 cat conftest.err >&5
38107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); } && {
38109 test -z "$ac_c_werror_flag" ||
38110 test ! -s conftest.err
38111 } && test -s conftest.$ac_objext; then
38114 $as_echo "$as_me: failed program was:" >&5
38115 sed 's/^/| /' conftest.$ac_ext >&5
38117 ac_lo=`expr '(' $ac_mid ')' + 1`
38120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38123 ?*) ac_cv_sizeof_int=$ac_lo;;
38124 '') if test "$ac_cv_type_int" = yes; then
38125 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38127 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
38128 See \`config.log' for more details." >&5
38129 $as_echo "$as_me: error: cannot compute sizeof (int)
38130 See \`config.log' for more details." >&2;}
38131 { (exit 77); exit 77; }; }; }
38137 cat >conftest.$ac_ext <<_ACEOF
38140 cat confdefs.h >>conftest.$ac_ext
38141 cat >>conftest.$ac_ext <<_ACEOF
38142 /* end confdefs.h. */
38143 $ac_includes_default
38144 static long int longval () { return (long int) (sizeof (int)); }
38145 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
38147 #include <stdlib.h>
38152 FILE *f = fopen ("conftest.val", "w");
38155 if (((long int) (sizeof (int))) < 0)
38157 long int i = longval ();
38158 if (i != ((long int) (sizeof (int))))
38160 fprintf (f, "%ld", i);
38164 unsigned long int i = ulongval ();
38165 if (i != ((long int) (sizeof (int))))
38167 fprintf (f, "%lu", i);
38169 /* Do not output a trailing newline, as this causes \r\n confusion
38170 on some platforms. */
38171 return ferror (f) || fclose (f) != 0;
38177 rm -f conftest$ac_exeext
38178 if { (ac_try="$ac_link"
38179 case "(($ac_try" in
38180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38181 *) ac_try_echo=$ac_try;;
38183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38184 $as_echo "$ac_try_echo") >&5
38185 (eval "$ac_link") 2>&5
38187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38189 { (case "(($ac_try" in
38190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38191 *) ac_try_echo=$ac_try;;
38193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38194 $as_echo "$ac_try_echo") >&5
38195 (eval "$ac_try") 2>&5
38197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198 (exit $ac_status); }; }; then
38199 ac_cv_sizeof_int=`cat conftest.val`
38201 $as_echo "$as_me: program exited with status $ac_status" >&5
38202 $as_echo "$as_me: failed program was:" >&5
38203 sed 's/^/| /' conftest.$ac_ext >&5
38205 ( exit $ac_status )
38206 if test "$ac_cv_type_int" = yes; then
38207 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38209 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
38210 See \`config.log' for more details." >&5
38211 $as_echo "$as_me: error: cannot compute sizeof (int)
38212 See \`config.log' for more details." >&2;}
38213 { (exit 77); exit 77; }; }; }
38218 rm -rf conftest.dSYM
38219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38223 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
38224 $as_echo "$ac_cv_sizeof_int" >&6; }
38228 cat >>confdefs.h <<_ACEOF
38229 #define SIZEOF_INT $ac_cv_sizeof_int
38233 # The cast to long int works around a bug in the HP C Compiler
38234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38236 # This bug is HP SR number 8606223364.
38237 { $as_echo "$as_me:$LINENO: checking size of long int" >&5
38238 $as_echo_n "checking size of long int... " >&6; }
38239 if test "${ac_cv_sizeof_long_int+set}" = set; then
38240 $as_echo_n "(cached) " >&6
38242 if test "$cross_compiling" = yes; then
38243 # Depending upon the size, compute the lo and hi bounds.
38244 cat >conftest.$ac_ext <<_ACEOF
38247 cat confdefs.h >>conftest.$ac_ext
38248 cat >>conftest.$ac_ext <<_ACEOF
38249 /* end confdefs.h. */
38250 $ac_includes_default
38254 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)];
38261 rm -f conftest.$ac_objext
38262 if { (ac_try="$ac_compile"
38263 case "(($ac_try" in
38264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38265 *) ac_try_echo=$ac_try;;
38267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38268 $as_echo "$ac_try_echo") >&5
38269 (eval "$ac_compile") 2>conftest.er1
38271 grep -v '^ *+' conftest.er1 >conftest.err
38273 cat conftest.err >&5
38274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275 (exit $ac_status); } && {
38276 test -z "$ac_c_werror_flag" ||
38277 test ! -s conftest.err
38278 } && test -s conftest.$ac_objext; then
38281 cat >conftest.$ac_ext <<_ACEOF
38284 cat confdefs.h >>conftest.$ac_ext
38285 cat >>conftest.$ac_ext <<_ACEOF
38286 /* end confdefs.h. */
38287 $ac_includes_default
38291 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
38298 rm -f conftest.$ac_objext
38299 if { (ac_try="$ac_compile"
38300 case "(($ac_try" in
38301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38302 *) ac_try_echo=$ac_try;;
38304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38305 $as_echo "$ac_try_echo") >&5
38306 (eval "$ac_compile") 2>conftest.er1
38308 grep -v '^ *+' conftest.er1 >conftest.err
38310 cat conftest.err >&5
38311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38312 (exit $ac_status); } && {
38313 test -z "$ac_c_werror_flag" ||
38314 test ! -s conftest.err
38315 } && test -s conftest.$ac_objext; then
38316 ac_hi=$ac_mid; break
38318 $as_echo "$as_me: failed program was:" >&5
38319 sed 's/^/| /' conftest.$ac_ext >&5
38321 ac_lo=`expr $ac_mid + 1`
38322 if test $ac_lo -le $ac_mid; then
38326 ac_mid=`expr 2 '*' $ac_mid + 1`
38329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38332 $as_echo "$as_me: failed program was:" >&5
38333 sed 's/^/| /' conftest.$ac_ext >&5
38335 cat >conftest.$ac_ext <<_ACEOF
38338 cat confdefs.h >>conftest.$ac_ext
38339 cat >>conftest.$ac_ext <<_ACEOF
38340 /* end confdefs.h. */
38341 $ac_includes_default
38345 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)];
38352 rm -f conftest.$ac_objext
38353 if { (ac_try="$ac_compile"
38354 case "(($ac_try" in
38355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38356 *) ac_try_echo=$ac_try;;
38358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38359 $as_echo "$ac_try_echo") >&5
38360 (eval "$ac_compile") 2>conftest.er1
38362 grep -v '^ *+' conftest.er1 >conftest.err
38364 cat conftest.err >&5
38365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); } && {
38367 test -z "$ac_c_werror_flag" ||
38368 test ! -s conftest.err
38369 } && test -s conftest.$ac_objext; then
38372 cat >conftest.$ac_ext <<_ACEOF
38375 cat confdefs.h >>conftest.$ac_ext
38376 cat >>conftest.$ac_ext <<_ACEOF
38377 /* end confdefs.h. */
38378 $ac_includes_default
38382 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)];
38389 rm -f conftest.$ac_objext
38390 if { (ac_try="$ac_compile"
38391 case "(($ac_try" in
38392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38393 *) ac_try_echo=$ac_try;;
38395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38396 $as_echo "$ac_try_echo") >&5
38397 (eval "$ac_compile") 2>conftest.er1
38399 grep -v '^ *+' conftest.er1 >conftest.err
38401 cat conftest.err >&5
38402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403 (exit $ac_status); } && {
38404 test -z "$ac_c_werror_flag" ||
38405 test ! -s conftest.err
38406 } && test -s conftest.$ac_objext; then
38407 ac_lo=$ac_mid; break
38409 $as_echo "$as_me: failed program was:" >&5
38410 sed 's/^/| /' conftest.$ac_ext >&5
38412 ac_hi=`expr '(' $ac_mid ')' - 1`
38413 if test $ac_mid -le $ac_hi; then
38417 ac_mid=`expr 2 '*' $ac_mid`
38420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38423 $as_echo "$as_me: failed program was:" >&5
38424 sed 's/^/| /' conftest.$ac_ext >&5
38429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38433 # Binary search between lo and hi bounds.
38434 while test "x$ac_lo" != "x$ac_hi"; do
38435 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38436 cat >conftest.$ac_ext <<_ACEOF
38439 cat confdefs.h >>conftest.$ac_ext
38440 cat >>conftest.$ac_ext <<_ACEOF
38441 /* end confdefs.h. */
38442 $ac_includes_default
38446 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
38453 rm -f conftest.$ac_objext
38454 if { (ac_try="$ac_compile"
38455 case "(($ac_try" in
38456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38457 *) ac_try_echo=$ac_try;;
38459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38460 $as_echo "$ac_try_echo") >&5
38461 (eval "$ac_compile") 2>conftest.er1
38463 grep -v '^ *+' conftest.er1 >conftest.err
38465 cat conftest.err >&5
38466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38467 (exit $ac_status); } && {
38468 test -z "$ac_c_werror_flag" ||
38469 test ! -s conftest.err
38470 } && test -s conftest.$ac_objext; then
38473 $as_echo "$as_me: failed program was:" >&5
38474 sed 's/^/| /' conftest.$ac_ext >&5
38476 ac_lo=`expr '(' $ac_mid ')' + 1`
38479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38482 ?*) ac_cv_sizeof_long_int=$ac_lo;;
38483 '') if test "$ac_cv_type_long_int" = yes; then
38484 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38486 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
38487 See \`config.log' for more details." >&5
38488 $as_echo "$as_me: error: cannot compute sizeof (long int)
38489 See \`config.log' for more details." >&2;}
38490 { (exit 77); exit 77; }; }; }
38492 ac_cv_sizeof_long_int=0
38496 cat >conftest.$ac_ext <<_ACEOF
38499 cat confdefs.h >>conftest.$ac_ext
38500 cat >>conftest.$ac_ext <<_ACEOF
38501 /* end confdefs.h. */
38502 $ac_includes_default
38503 static long int longval () { return (long int) (sizeof (long int)); }
38504 static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
38506 #include <stdlib.h>
38511 FILE *f = fopen ("conftest.val", "w");
38514 if (((long int) (sizeof (long int))) < 0)
38516 long int i = longval ();
38517 if (i != ((long int) (sizeof (long int))))
38519 fprintf (f, "%ld", i);
38523 unsigned long int i = ulongval ();
38524 if (i != ((long int) (sizeof (long int))))
38526 fprintf (f, "%lu", i);
38528 /* Do not output a trailing newline, as this causes \r\n confusion
38529 on some platforms. */
38530 return ferror (f) || fclose (f) != 0;
38536 rm -f conftest$ac_exeext
38537 if { (ac_try="$ac_link"
38538 case "(($ac_try" in
38539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38540 *) ac_try_echo=$ac_try;;
38542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38543 $as_echo "$ac_try_echo") >&5
38544 (eval "$ac_link") 2>&5
38546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38548 { (case "(($ac_try" in
38549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38550 *) ac_try_echo=$ac_try;;
38552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38553 $as_echo "$ac_try_echo") >&5
38554 (eval "$ac_try") 2>&5
38556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38557 (exit $ac_status); }; }; then
38558 ac_cv_sizeof_long_int=`cat conftest.val`
38560 $as_echo "$as_me: program exited with status $ac_status" >&5
38561 $as_echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38564 ( exit $ac_status )
38565 if test "$ac_cv_type_long_int" = yes; then
38566 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38568 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
38569 See \`config.log' for more details." >&5
38570 $as_echo "$as_me: error: cannot compute sizeof (long int)
38571 See \`config.log' for more details." >&2;}
38572 { (exit 77); exit 77; }; }; }
38574 ac_cv_sizeof_long_int=0
38577 rm -rf conftest.dSYM
38578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38582 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
38583 $as_echo "$ac_cv_sizeof_long_int" >&6; }
38587 cat >>confdefs.h <<_ACEOF
38588 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
38592 # The cast to long int works around a bug in the HP C Compiler
38593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38595 # This bug is HP SR number 8606223364.
38596 { $as_echo "$as_me:$LINENO: checking size of long long int" >&5
38597 $as_echo_n "checking size of long long int... " >&6; }
38598 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
38599 $as_echo_n "(cached) " >&6
38601 if test "$cross_compiling" = yes; then
38602 # Depending upon the size, compute the lo and hi bounds.
38603 cat >conftest.$ac_ext <<_ACEOF
38606 cat confdefs.h >>conftest.$ac_ext
38607 cat >>conftest.$ac_ext <<_ACEOF
38608 /* end confdefs.h. */
38609 $ac_includes_default
38613 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)];
38620 rm -f conftest.$ac_objext
38621 if { (ac_try="$ac_compile"
38622 case "(($ac_try" in
38623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38624 *) ac_try_echo=$ac_try;;
38626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38627 $as_echo "$ac_try_echo") >&5
38628 (eval "$ac_compile") 2>conftest.er1
38630 grep -v '^ *+' conftest.er1 >conftest.err
38632 cat conftest.err >&5
38633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38634 (exit $ac_status); } && {
38635 test -z "$ac_c_werror_flag" ||
38636 test ! -s conftest.err
38637 } && test -s conftest.$ac_objext; then
38640 cat >conftest.$ac_ext <<_ACEOF
38643 cat confdefs.h >>conftest.$ac_ext
38644 cat >>conftest.$ac_ext <<_ACEOF
38645 /* end confdefs.h. */
38646 $ac_includes_default
38650 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
38657 rm -f conftest.$ac_objext
38658 if { (ac_try="$ac_compile"
38659 case "(($ac_try" in
38660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38661 *) ac_try_echo=$ac_try;;
38663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38664 $as_echo "$ac_try_echo") >&5
38665 (eval "$ac_compile") 2>conftest.er1
38667 grep -v '^ *+' conftest.er1 >conftest.err
38669 cat conftest.err >&5
38670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); } && {
38672 test -z "$ac_c_werror_flag" ||
38673 test ! -s conftest.err
38674 } && test -s conftest.$ac_objext; then
38675 ac_hi=$ac_mid; break
38677 $as_echo "$as_me: failed program was:" >&5
38678 sed 's/^/| /' conftest.$ac_ext >&5
38680 ac_lo=`expr $ac_mid + 1`
38681 if test $ac_lo -le $ac_mid; then
38685 ac_mid=`expr 2 '*' $ac_mid + 1`
38688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38691 $as_echo "$as_me: failed program was:" >&5
38692 sed 's/^/| /' conftest.$ac_ext >&5
38694 cat >conftest.$ac_ext <<_ACEOF
38697 cat confdefs.h >>conftest.$ac_ext
38698 cat >>conftest.$ac_ext <<_ACEOF
38699 /* end confdefs.h. */
38700 $ac_includes_default
38704 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)];
38711 rm -f conftest.$ac_objext
38712 if { (ac_try="$ac_compile"
38713 case "(($ac_try" in
38714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38715 *) ac_try_echo=$ac_try;;
38717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38718 $as_echo "$ac_try_echo") >&5
38719 (eval "$ac_compile") 2>conftest.er1
38721 grep -v '^ *+' conftest.er1 >conftest.err
38723 cat conftest.err >&5
38724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); } && {
38726 test -z "$ac_c_werror_flag" ||
38727 test ! -s conftest.err
38728 } && test -s conftest.$ac_objext; then
38731 cat >conftest.$ac_ext <<_ACEOF
38734 cat confdefs.h >>conftest.$ac_ext
38735 cat >>conftest.$ac_ext <<_ACEOF
38736 /* end confdefs.h. */
38737 $ac_includes_default
38741 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)];
38748 rm -f conftest.$ac_objext
38749 if { (ac_try="$ac_compile"
38750 case "(($ac_try" in
38751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38752 *) ac_try_echo=$ac_try;;
38754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38755 $as_echo "$ac_try_echo") >&5
38756 (eval "$ac_compile") 2>conftest.er1
38758 grep -v '^ *+' conftest.er1 >conftest.err
38760 cat conftest.err >&5
38761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762 (exit $ac_status); } && {
38763 test -z "$ac_c_werror_flag" ||
38764 test ! -s conftest.err
38765 } && test -s conftest.$ac_objext; then
38766 ac_lo=$ac_mid; break
38768 $as_echo "$as_me: failed program was:" >&5
38769 sed 's/^/| /' conftest.$ac_ext >&5
38771 ac_hi=`expr '(' $ac_mid ')' - 1`
38772 if test $ac_mid -le $ac_hi; then
38776 ac_mid=`expr 2 '*' $ac_mid`
38779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38782 $as_echo "$as_me: failed program was:" >&5
38783 sed 's/^/| /' conftest.$ac_ext >&5
38788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38792 # Binary search between lo and hi bounds.
38793 while test "x$ac_lo" != "x$ac_hi"; do
38794 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38795 cat >conftest.$ac_ext <<_ACEOF
38798 cat confdefs.h >>conftest.$ac_ext
38799 cat >>conftest.$ac_ext <<_ACEOF
38800 /* end confdefs.h. */
38801 $ac_includes_default
38805 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
38812 rm -f conftest.$ac_objext
38813 if { (ac_try="$ac_compile"
38814 case "(($ac_try" in
38815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38816 *) ac_try_echo=$ac_try;;
38818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38819 $as_echo "$ac_try_echo") >&5
38820 (eval "$ac_compile") 2>conftest.er1
38822 grep -v '^ *+' conftest.er1 >conftest.err
38824 cat conftest.err >&5
38825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38826 (exit $ac_status); } && {
38827 test -z "$ac_c_werror_flag" ||
38828 test ! -s conftest.err
38829 } && test -s conftest.$ac_objext; then
38832 $as_echo "$as_me: failed program was:" >&5
38833 sed 's/^/| /' conftest.$ac_ext >&5
38835 ac_lo=`expr '(' $ac_mid ')' + 1`
38838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38841 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
38842 '') if test "$ac_cv_type_long_long_int" = yes; then
38843 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38845 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38846 See \`config.log' for more details." >&5
38847 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38848 See \`config.log' for more details." >&2;}
38849 { (exit 77); exit 77; }; }; }
38851 ac_cv_sizeof_long_long_int=0
38855 cat >conftest.$ac_ext <<_ACEOF
38858 cat confdefs.h >>conftest.$ac_ext
38859 cat >>conftest.$ac_ext <<_ACEOF
38860 /* end confdefs.h. */
38861 $ac_includes_default
38862 static long int longval () { return (long int) (sizeof (long long int)); }
38863 static unsigned long int ulongval () { return (long int) (sizeof (long long int)); }
38865 #include <stdlib.h>
38870 FILE *f = fopen ("conftest.val", "w");
38873 if (((long int) (sizeof (long long int))) < 0)
38875 long int i = longval ();
38876 if (i != ((long int) (sizeof (long long int))))
38878 fprintf (f, "%ld", i);
38882 unsigned long int i = ulongval ();
38883 if (i != ((long int) (sizeof (long long int))))
38885 fprintf (f, "%lu", i);
38887 /* Do not output a trailing newline, as this causes \r\n confusion
38888 on some platforms. */
38889 return ferror (f) || fclose (f) != 0;
38895 rm -f conftest$ac_exeext
38896 if { (ac_try="$ac_link"
38897 case "(($ac_try" in
38898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38899 *) ac_try_echo=$ac_try;;
38901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38902 $as_echo "$ac_try_echo") >&5
38903 (eval "$ac_link") 2>&5
38905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38907 { (case "(($ac_try" in
38908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38909 *) ac_try_echo=$ac_try;;
38911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38912 $as_echo "$ac_try_echo") >&5
38913 (eval "$ac_try") 2>&5
38915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38916 (exit $ac_status); }; }; then
38917 ac_cv_sizeof_long_long_int=`cat conftest.val`
38919 $as_echo "$as_me: program exited with status $ac_status" >&5
38920 $as_echo "$as_me: failed program was:" >&5
38921 sed 's/^/| /' conftest.$ac_ext >&5
38923 ( exit $ac_status )
38924 if test "$ac_cv_type_long_long_int" = yes; then
38925 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38927 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38928 See \`config.log' for more details." >&5
38929 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38930 See \`config.log' for more details." >&2;}
38931 { (exit 77); exit 77; }; }; }
38933 ac_cv_sizeof_long_long_int=0
38936 rm -rf conftest.dSYM
38937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38941 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
38942 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
38946 cat >>confdefs.h <<_ACEOF
38947 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
38951 # The cast to long int works around a bug in the HP C Compiler
38952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38954 # This bug is HP SR number 8606223364.
38955 { $as_echo "$as_me:$LINENO: checking size of int *" >&5
38956 $as_echo_n "checking size of int *... " >&6; }
38957 if test "${ac_cv_sizeof_int_p+set}" = set; then
38958 $as_echo_n "(cached) " >&6
38960 if test "$cross_compiling" = yes; then
38961 # Depending upon the size, compute the lo and hi bounds.
38962 cat >conftest.$ac_ext <<_ACEOF
38965 cat confdefs.h >>conftest.$ac_ext
38966 cat >>conftest.$ac_ext <<_ACEOF
38967 /* end confdefs.h. */
38968 $ac_includes_default
38972 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= 0)];
38979 rm -f conftest.$ac_objext
38980 if { (ac_try="$ac_compile"
38981 case "(($ac_try" in
38982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38983 *) ac_try_echo=$ac_try;;
38985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38986 $as_echo "$ac_try_echo") >&5
38987 (eval "$ac_compile") 2>conftest.er1
38989 grep -v '^ *+' conftest.er1 >conftest.err
38991 cat conftest.err >&5
38992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38993 (exit $ac_status); } && {
38994 test -z "$ac_c_werror_flag" ||
38995 test ! -s conftest.err
38996 } && test -s conftest.$ac_objext; then
38999 cat >conftest.$ac_ext <<_ACEOF
39002 cat confdefs.h >>conftest.$ac_ext
39003 cat >>conftest.$ac_ext <<_ACEOF
39004 /* end confdefs.h. */
39005 $ac_includes_default
39009 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
39016 rm -f conftest.$ac_objext
39017 if { (ac_try="$ac_compile"
39018 case "(($ac_try" in
39019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39020 *) ac_try_echo=$ac_try;;
39022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39023 $as_echo "$ac_try_echo") >&5
39024 (eval "$ac_compile") 2>conftest.er1
39026 grep -v '^ *+' conftest.er1 >conftest.err
39028 cat conftest.err >&5
39029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39030 (exit $ac_status); } && {
39031 test -z "$ac_c_werror_flag" ||
39032 test ! -s conftest.err
39033 } && test -s conftest.$ac_objext; then
39034 ac_hi=$ac_mid; break
39036 $as_echo "$as_me: failed program was:" >&5
39037 sed 's/^/| /' conftest.$ac_ext >&5
39039 ac_lo=`expr $ac_mid + 1`
39040 if test $ac_lo -le $ac_mid; then
39044 ac_mid=`expr 2 '*' $ac_mid + 1`
39047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39050 $as_echo "$as_me: failed program was:" >&5
39051 sed 's/^/| /' conftest.$ac_ext >&5
39053 cat >conftest.$ac_ext <<_ACEOF
39056 cat confdefs.h >>conftest.$ac_ext
39057 cat >>conftest.$ac_ext <<_ACEOF
39058 /* end confdefs.h. */
39059 $ac_includes_default
39063 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) < 0)];
39070 rm -f conftest.$ac_objext
39071 if { (ac_try="$ac_compile"
39072 case "(($ac_try" in
39073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39074 *) ac_try_echo=$ac_try;;
39076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39077 $as_echo "$ac_try_echo") >&5
39078 (eval "$ac_compile") 2>conftest.er1
39080 grep -v '^ *+' conftest.er1 >conftest.err
39082 cat conftest.err >&5
39083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 (exit $ac_status); } && {
39085 test -z "$ac_c_werror_flag" ||
39086 test ! -s conftest.err
39087 } && test -s conftest.$ac_objext; then
39090 cat >conftest.$ac_ext <<_ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h. */
39096 $ac_includes_default
39100 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= $ac_mid)];
39107 rm -f conftest.$ac_objext
39108 if { (ac_try="$ac_compile"
39109 case "(($ac_try" in
39110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39111 *) ac_try_echo=$ac_try;;
39113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39114 $as_echo "$ac_try_echo") >&5
39115 (eval "$ac_compile") 2>conftest.er1
39117 grep -v '^ *+' conftest.er1 >conftest.err
39119 cat conftest.err >&5
39120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); } && {
39122 test -z "$ac_c_werror_flag" ||
39123 test ! -s conftest.err
39124 } && test -s conftest.$ac_objext; then
39125 ac_lo=$ac_mid; break
39127 $as_echo "$as_me: failed program was:" >&5
39128 sed 's/^/| /' conftest.$ac_ext >&5
39130 ac_hi=`expr '(' $ac_mid ')' - 1`
39131 if test $ac_mid -le $ac_hi; then
39135 ac_mid=`expr 2 '*' $ac_mid`
39138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39141 $as_echo "$as_me: failed program was:" >&5
39142 sed 's/^/| /' conftest.$ac_ext >&5
39147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39151 # Binary search between lo and hi bounds.
39152 while test "x$ac_lo" != "x$ac_hi"; do
39153 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39154 cat >conftest.$ac_ext <<_ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h. */
39160 $ac_includes_default
39164 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
39171 rm -f conftest.$ac_objext
39172 if { (ac_try="$ac_compile"
39173 case "(($ac_try" in
39174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39175 *) ac_try_echo=$ac_try;;
39177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39178 $as_echo "$ac_try_echo") >&5
39179 (eval "$ac_compile") 2>conftest.er1
39181 grep -v '^ *+' conftest.er1 >conftest.err
39183 cat conftest.err >&5
39184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); } && {
39186 test -z "$ac_c_werror_flag" ||
39187 test ! -s conftest.err
39188 } && test -s conftest.$ac_objext; then
39191 $as_echo "$as_me: failed program was:" >&5
39192 sed 's/^/| /' conftest.$ac_ext >&5
39194 ac_lo=`expr '(' $ac_mid ')' + 1`
39197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39200 ?*) ac_cv_sizeof_int_p=$ac_lo;;
39201 '') if test "$ac_cv_type_int_p" = yes; then
39202 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
39203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39204 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
39205 See \`config.log' for more details." >&5
39206 $as_echo "$as_me: error: cannot compute sizeof (int *)
39207 See \`config.log' for more details." >&2;}
39208 { (exit 77); exit 77; }; }; }
39210 ac_cv_sizeof_int_p=0
39214 cat >conftest.$ac_ext <<_ACEOF
39217 cat confdefs.h >>conftest.$ac_ext
39218 cat >>conftest.$ac_ext <<_ACEOF
39219 /* end confdefs.h. */
39220 $ac_includes_default
39221 static long int longval () { return (long int) (sizeof (int *)); }
39222 static unsigned long int ulongval () { return (long int) (sizeof (int *)); }
39224 #include <stdlib.h>
39229 FILE *f = fopen ("conftest.val", "w");
39232 if (((long int) (sizeof (int *))) < 0)
39234 long int i = longval ();
39235 if (i != ((long int) (sizeof (int *))))
39237 fprintf (f, "%ld", i);
39241 unsigned long int i = ulongval ();
39242 if (i != ((long int) (sizeof (int *))))
39244 fprintf (f, "%lu", i);
39246 /* Do not output a trailing newline, as this causes \r\n confusion
39247 on some platforms. */
39248 return ferror (f) || fclose (f) != 0;
39254 rm -f conftest$ac_exeext
39255 if { (ac_try="$ac_link"
39256 case "(($ac_try" in
39257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39258 *) ac_try_echo=$ac_try;;
39260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39261 $as_echo "$ac_try_echo") >&5
39262 (eval "$ac_link") 2>&5
39264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39266 { (case "(($ac_try" in
39267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268 *) ac_try_echo=$ac_try;;
39270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39271 $as_echo "$ac_try_echo") >&5
39272 (eval "$ac_try") 2>&5
39274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275 (exit $ac_status); }; }; then
39276 ac_cv_sizeof_int_p=`cat conftest.val`
39278 $as_echo "$as_me: program exited with status $ac_status" >&5
39279 $as_echo "$as_me: failed program was:" >&5
39280 sed 's/^/| /' conftest.$ac_ext >&5
39282 ( exit $ac_status )
39283 if test "$ac_cv_type_int_p" = yes; then
39284 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
39285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39286 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
39287 See \`config.log' for more details." >&5
39288 $as_echo "$as_me: error: cannot compute sizeof (int *)
39289 See \`config.log' for more details." >&2;}
39290 { (exit 77); exit 77; }; }; }
39292 ac_cv_sizeof_int_p=0
39295 rm -rf conftest.dSYM
39296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39300 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
39301 $as_echo "$ac_cv_sizeof_int_p" >&6; }
39305 cat >>confdefs.h <<_ACEOF
39306 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
39311 { $as_echo "$as_me:$LINENO: checking for u_int type" >&5
39312 $as_echo_n "checking for u_int type... " >&6; }
39313 if test "${ac_cv_have_u_int+set}" = set; then
39314 $as_echo_n "(cached) " >&6
39317 cat >conftest.$ac_ext <<_ACEOF
39320 cat confdefs.h >>conftest.$ac_ext
39321 cat >>conftest.$ac_ext <<_ACEOF
39322 /* end confdefs.h. */
39324 #include <sys/types.h>
39336 rm -f conftest.$ac_objext
39337 if { (ac_try="$ac_compile"
39338 case "(($ac_try" in
39339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39340 *) ac_try_echo=$ac_try;;
39342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39343 $as_echo "$ac_try_echo") >&5
39344 (eval "$ac_compile") 2>conftest.er1
39346 grep -v '^ *+' conftest.er1 >conftest.err
39348 cat conftest.err >&5
39349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350 (exit $ac_status); } && {
39351 test -z "$ac_c_werror_flag" ||
39352 test ! -s conftest.err
39353 } && test -s conftest.$ac_objext; then
39355 ac_cv_have_u_int="yes"
39358 $as_echo "$as_me: failed program was:" >&5
39359 sed 's/^/| /' conftest.$ac_ext >&5
39362 ac_cv_have_u_int="no"
39367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39371 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
39372 $as_echo "$ac_cv_have_u_int" >&6; }
39373 if test "x$ac_cv_have_u_int" = "xyes" ; then
39374 cat >>confdefs.h <<\_ACEOF
39375 #define HAVE_U_INT 1
39381 { $as_echo "$as_me:$LINENO: checking for intmax_t type" >&5
39382 $as_echo_n "checking for intmax_t type... " >&6; }
39383 if test "${ac_cv_have_intmax_t+set}" = set; then
39384 $as_echo_n "(cached) " >&6
39387 cat >conftest.$ac_ext <<_ACEOF
39390 cat confdefs.h >>conftest.$ac_ext
39391 cat >>conftest.$ac_ext <<_ACEOF
39392 /* end confdefs.h. */
39394 #include <sys/types.h>
39406 rm -f conftest.$ac_objext
39407 if { (ac_try="$ac_compile"
39408 case "(($ac_try" in
39409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39410 *) ac_try_echo=$ac_try;;
39412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39413 $as_echo "$ac_try_echo") >&5
39414 (eval "$ac_compile") 2>conftest.er1
39416 grep -v '^ *+' conftest.er1 >conftest.err
39418 cat conftest.err >&5
39419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420 (exit $ac_status); } && {
39421 test -z "$ac_c_werror_flag" ||
39422 test ! -s conftest.err
39423 } && test -s conftest.$ac_objext; then
39425 ac_cv_have_intmax_t="yes"
39428 $as_echo "$as_me: failed program was:" >&5
39429 sed 's/^/| /' conftest.$ac_ext >&5
39432 cat >conftest.$ac_ext <<_ACEOF
39435 cat confdefs.h >>conftest.$ac_ext
39436 cat >>conftest.$ac_ext <<_ACEOF
39437 /* end confdefs.h. */
39439 #include <stdint.h>
39451 rm -f conftest.$ac_objext
39452 if { (ac_try="$ac_compile"
39453 case "(($ac_try" in
39454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39455 *) ac_try_echo=$ac_try;;
39457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39458 $as_echo "$ac_try_echo") >&5
39459 (eval "$ac_compile") 2>conftest.er1
39461 grep -v '^ *+' conftest.er1 >conftest.err
39463 cat conftest.err >&5
39464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39465 (exit $ac_status); } && {
39466 test -z "$ac_c_werror_flag" ||
39467 test ! -s conftest.err
39468 } && test -s conftest.$ac_objext; then
39470 ac_cv_have_intmax_t="yes"
39473 $as_echo "$as_me: failed program was:" >&5
39474 sed 's/^/| /' conftest.$ac_ext >&5
39477 ac_cv_have_intmax_t="no"
39482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39491 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
39492 $as_echo "$ac_cv_have_intmax_t" >&6; }
39493 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
39494 cat >>confdefs.h <<\_ACEOF
39495 #define HAVE_INTMAX_T 1
39501 { $as_echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
39502 $as_echo_n "checking for u_intmax_t type... " >&6; }
39503 if test "${ac_cv_have_u_intmax_t+set}" = set; then
39504 $as_echo_n "(cached) " >&6
39507 cat >conftest.$ac_ext <<_ACEOF
39510 cat confdefs.h >>conftest.$ac_ext
39511 cat >>conftest.$ac_ext <<_ACEOF
39512 /* end confdefs.h. */
39514 #include <sys/types.h>
39520 u_intmax_t a; a = 1;
39526 rm -f conftest.$ac_objext
39527 if { (ac_try="$ac_compile"
39528 case "(($ac_try" in
39529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39530 *) ac_try_echo=$ac_try;;
39532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39533 $as_echo "$ac_try_echo") >&5
39534 (eval "$ac_compile") 2>conftest.er1
39536 grep -v '^ *+' conftest.er1 >conftest.err
39538 cat conftest.err >&5
39539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540 (exit $ac_status); } && {
39541 test -z "$ac_c_werror_flag" ||
39542 test ! -s conftest.err
39543 } && test -s conftest.$ac_objext; then
39545 ac_cv_have_u_intmax_t="yes"
39548 $as_echo "$as_me: failed program was:" >&5
39549 sed 's/^/| /' conftest.$ac_ext >&5
39552 cat >conftest.$ac_ext <<_ACEOF
39555 cat confdefs.h >>conftest.$ac_ext
39556 cat >>conftest.$ac_ext <<_ACEOF
39557 /* end confdefs.h. */
39559 #include <stdint.h>
39565 u_intmax_t a; a = 1;
39571 rm -f conftest.$ac_objext
39572 if { (ac_try="$ac_compile"
39573 case "(($ac_try" in
39574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39575 *) ac_try_echo=$ac_try;;
39577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39578 $as_echo "$ac_try_echo") >&5
39579 (eval "$ac_compile") 2>conftest.er1
39581 grep -v '^ *+' conftest.er1 >conftest.err
39583 cat conftest.err >&5
39584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39585 (exit $ac_status); } && {
39586 test -z "$ac_c_werror_flag" ||
39587 test ! -s conftest.err
39588 } && test -s conftest.$ac_objext; then
39590 ac_cv_have_u_intmax_t="yes"
39593 $as_echo "$as_me: failed program was:" >&5
39594 sed 's/^/| /' conftest.$ac_ext >&5
39597 ac_cv_have_u_intmax_t="no"
39602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39611 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
39612 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
39613 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
39614 cat >>confdefs.h <<\_ACEOF
39615 #define HAVE_U_INTMAX_T 1
39621 { $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5
39622 $as_echo_n "checking for intXX_t types... " >&6; }
39623 if test "${ac_cv_have_intxx_t+set}" = set; then
39624 $as_echo_n "(cached) " >&6
39627 cat >conftest.$ac_ext <<_ACEOF
39630 cat confdefs.h >>conftest.$ac_ext
39631 cat >>conftest.$ac_ext <<_ACEOF
39632 /* end confdefs.h. */
39634 #include <sys/types.h>
39640 int8_t a; int16_t b; int32_t c; a = b = c = 1;
39646 rm -f conftest.$ac_objext
39647 if { (ac_try="$ac_compile"
39648 case "(($ac_try" in
39649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39650 *) ac_try_echo=$ac_try;;
39652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39653 $as_echo "$ac_try_echo") >&5
39654 (eval "$ac_compile") 2>conftest.er1
39656 grep -v '^ *+' conftest.er1 >conftest.err
39658 cat conftest.err >&5
39659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660 (exit $ac_status); } && {
39661 test -z "$ac_c_werror_flag" ||
39662 test ! -s conftest.err
39663 } && test -s conftest.$ac_objext; then
39665 ac_cv_have_intxx_t="yes"
39668 $as_echo "$as_me: failed program was:" >&5
39669 sed 's/^/| /' conftest.$ac_ext >&5
39672 ac_cv_have_intxx_t="no"
39677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39681 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
39682 $as_echo "$ac_cv_have_intxx_t" >&6; }
39683 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
39684 cat >>confdefs.h <<\_ACEOF
39685 #define HAVE_INTXX_T 1
39691 { $as_echo "$as_me:$LINENO: checking for int64_t type" >&5
39692 $as_echo_n "checking for int64_t type... " >&6; }
39693 if test "${ac_cv_have_int64_t+set}" = set; then
39694 $as_echo_n "(cached) " >&6
39697 cat >conftest.$ac_ext <<_ACEOF
39700 cat confdefs.h >>conftest.$ac_ext
39701 cat >>conftest.$ac_ext <<_ACEOF
39702 /* end confdefs.h. */
39704 #include <sys/types.h>
39716 rm -f conftest.$ac_objext
39717 if { (ac_try="$ac_compile"
39718 case "(($ac_try" in
39719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39720 *) ac_try_echo=$ac_try;;
39722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39723 $as_echo "$ac_try_echo") >&5
39724 (eval "$ac_compile") 2>conftest.er1
39726 grep -v '^ *+' conftest.er1 >conftest.err
39728 cat conftest.err >&5
39729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730 (exit $ac_status); } && {
39731 test -z "$ac_c_werror_flag" ||
39732 test ! -s conftest.err
39733 } && test -s conftest.$ac_objext; then
39735 ac_cv_have_int64_t="yes"
39738 $as_echo "$as_me: failed program was:" >&5
39739 sed 's/^/| /' conftest.$ac_ext >&5
39742 ac_cv_have_int64_t="no"
39747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39751 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
39752 $as_echo "$ac_cv_have_int64_t" >&6; }
39753 if test "x$ac_cv_have_int64_t" = "xyes" ; then
39754 cat >>confdefs.h <<\_ACEOF
39755 #define HAVE_INT64_T 1
39761 { $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
39762 $as_echo_n "checking for u_intXX_t types... " >&6; }
39763 if test "${ac_cv_have_u_intxx_t+set}" = set; then
39764 $as_echo_n "(cached) " >&6
39767 cat >conftest.$ac_ext <<_ACEOF
39770 cat confdefs.h >>conftest.$ac_ext
39771 cat >>conftest.$ac_ext <<_ACEOF
39772 /* end confdefs.h. */
39774 #include <sys/types.h>
39780 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
39786 rm -f conftest.$ac_objext
39787 if { (ac_try="$ac_compile"
39788 case "(($ac_try" in
39789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39790 *) ac_try_echo=$ac_try;;
39792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39793 $as_echo "$ac_try_echo") >&5
39794 (eval "$ac_compile") 2>conftest.er1
39796 grep -v '^ *+' conftest.er1 >conftest.err
39798 cat conftest.err >&5
39799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39800 (exit $ac_status); } && {
39801 test -z "$ac_c_werror_flag" ||
39802 test ! -s conftest.err
39803 } && test -s conftest.$ac_objext; then
39805 ac_cv_have_u_intxx_t="yes"
39808 $as_echo "$as_me: failed program was:" >&5
39809 sed 's/^/| /' conftest.$ac_ext >&5
39812 ac_cv_have_u_intxx_t="no"
39817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39821 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
39822 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
39823 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
39824 cat >>confdefs.h <<\_ACEOF
39825 #define HAVE_U_INTXX_T 1
39831 { $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5
39832 $as_echo_n "checking for u_int64_t types... " >&6; }
39833 if test "${ac_cv_have_u_int64_t+set}" = set; then
39834 $as_echo_n "(cached) " >&6
39837 cat >conftest.$ac_ext <<_ACEOF
39840 cat confdefs.h >>conftest.$ac_ext
39841 cat >>conftest.$ac_ext <<_ACEOF
39842 /* end confdefs.h. */
39844 #include <sys/types.h>
39850 u_int64_t a; a = 1;
39856 rm -f conftest.$ac_objext
39857 if { (ac_try="$ac_compile"
39858 case "(($ac_try" in
39859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39860 *) ac_try_echo=$ac_try;;
39862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39863 $as_echo "$ac_try_echo") >&5
39864 (eval "$ac_compile") 2>conftest.er1
39866 grep -v '^ *+' conftest.er1 >conftest.err
39868 cat conftest.err >&5
39869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870 (exit $ac_status); } && {
39871 test -z "$ac_c_werror_flag" ||
39872 test ! -s conftest.err
39873 } && test -s conftest.$ac_objext; then
39875 ac_cv_have_u_int64_t="yes"
39878 $as_echo "$as_me: failed program was:" >&5
39879 sed 's/^/| /' conftest.$ac_ext >&5
39882 ac_cv_have_u_int64_t="no"
39887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39891 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
39892 $as_echo "$ac_cv_have_u_int64_t" >&6; }
39893 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
39894 cat >>confdefs.h <<\_ACEOF
39895 #define HAVE_U_INT64_T 1
39901 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
39902 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39904 { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
39905 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
39906 cat >conftest.$ac_ext <<_ACEOF
39909 cat confdefs.h >>conftest.$ac_ext
39910 cat >>conftest.$ac_ext <<_ACEOF
39911 /* end confdefs.h. */
39913 #include <sys/bitypes.h>
39919 int8_t a; int16_t b; int32_t c;
39920 u_int8_t e; u_int16_t f; u_int32_t g;
39921 a = b = c = e = f = g = 1;
39927 rm -f conftest.$ac_objext
39928 if { (ac_try="$ac_compile"
39929 case "(($ac_try" in
39930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39931 *) ac_try_echo=$ac_try;;
39933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39934 $as_echo "$ac_try_echo") >&5
39935 (eval "$ac_compile") 2>conftest.er1
39937 grep -v '^ *+' conftest.er1 >conftest.err
39939 cat conftest.err >&5
39940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); } && {
39942 test -z "$ac_c_werror_flag" ||
39943 test ! -s conftest.err
39944 } && test -s conftest.$ac_objext; then
39946 cat >>confdefs.h <<\_ACEOF
39947 #define HAVE_U_INTXX_T 1
39950 cat >>confdefs.h <<\_ACEOF
39951 #define HAVE_INTXX_T 1
39954 cat >>confdefs.h <<\_ACEOF
39955 #define HAVE_SYS_BITYPES_H 1
39958 { $as_echo "$as_me:$LINENO: result: yes" >&5
39959 $as_echo "yes" >&6; }
39962 $as_echo "$as_me: failed program was:" >&5
39963 sed 's/^/| /' conftest.$ac_ext >&5
39966 { $as_echo "$as_me:$LINENO: result: no" >&5
39967 $as_echo "no" >&6; }
39972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39975 if test -z "$have_u_intxx_t" ; then
39976 { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5
39977 $as_echo_n "checking for uintXX_t types... " >&6; }
39978 if test "${ac_cv_have_uintxx_t+set}" = set; then
39979 $as_echo_n "(cached) " >&6
39982 cat >conftest.$ac_ext <<_ACEOF
39985 cat confdefs.h >>conftest.$ac_ext
39986 cat >>conftest.$ac_ext <<_ACEOF
39987 /* end confdefs.h. */
39989 #include <sys/types.h>
39995 uint8_t a; uint16_t b;
39996 uint32_t c; a = b = c = 1;
40002 rm -f conftest.$ac_objext
40003 if { (ac_try="$ac_compile"
40004 case "(($ac_try" in
40005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40006 *) ac_try_echo=$ac_try;;
40008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40009 $as_echo "$ac_try_echo") >&5
40010 (eval "$ac_compile") 2>conftest.er1
40012 grep -v '^ *+' conftest.er1 >conftest.err
40014 cat conftest.err >&5
40015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40016 (exit $ac_status); } && {
40017 test -z "$ac_c_werror_flag" ||
40018 test ! -s conftest.err
40019 } && test -s conftest.$ac_objext; then
40021 ac_cv_have_uintxx_t="yes"
40024 $as_echo "$as_me: failed program was:" >&5
40025 sed 's/^/| /' conftest.$ac_ext >&5
40028 ac_cv_have_uintxx_t="no"
40033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40037 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
40038 $as_echo "$ac_cv_have_uintxx_t" >&6; }
40039 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
40040 cat >>confdefs.h <<\_ACEOF
40041 #define HAVE_UINTXX_T 1
40047 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
40048 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
40050 { $as_echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
40051 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
40052 cat >conftest.$ac_ext <<_ACEOF
40055 cat confdefs.h >>conftest.$ac_ext
40056 cat >>conftest.$ac_ext <<_ACEOF
40057 /* end confdefs.h. */
40059 #include <sys/bitypes.h>
40065 int64_t a; u_int64_t b;
40072 rm -f conftest.$ac_objext
40073 if { (ac_try="$ac_compile"
40074 case "(($ac_try" in
40075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40076 *) ac_try_echo=$ac_try;;
40078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40079 $as_echo "$ac_try_echo") >&5
40080 (eval "$ac_compile") 2>conftest.er1
40082 grep -v '^ *+' conftest.er1 >conftest.err
40084 cat conftest.err >&5
40085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086 (exit $ac_status); } && {
40087 test -z "$ac_c_werror_flag" ||
40088 test ! -s conftest.err
40089 } && test -s conftest.$ac_objext; then
40091 cat >>confdefs.h <<\_ACEOF
40092 #define HAVE_U_INT64_T 1
40095 cat >>confdefs.h <<\_ACEOF
40096 #define HAVE_INT64_T 1
40099 { $as_echo "$as_me:$LINENO: result: yes" >&5
40100 $as_echo "yes" >&6; }
40103 $as_echo "$as_me: failed program was:" >&5
40104 sed 's/^/| /' conftest.$ac_ext >&5
40107 { $as_echo "$as_me:$LINENO: result: no" >&5
40108 $as_echo "no" >&6; }
40113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40116 if (test -z "$have_uintxx_t" && \
40117 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
40119 { $as_echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
40120 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
40121 cat >conftest.$ac_ext <<_ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h. */
40128 #include <sys/bitypes.h>
40134 uint8_t a; uint16_t b;
40135 uint32_t c; a = b = c = 1;
40141 rm -f conftest.$ac_objext
40142 if { (ac_try="$ac_compile"
40143 case "(($ac_try" in
40144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40145 *) ac_try_echo=$ac_try;;
40147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40148 $as_echo "$ac_try_echo") >&5
40149 (eval "$ac_compile") 2>conftest.er1
40151 grep -v '^ *+' conftest.er1 >conftest.err
40153 cat conftest.err >&5
40154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155 (exit $ac_status); } && {
40156 test -z "$ac_c_werror_flag" ||
40157 test ! -s conftest.err
40158 } && test -s conftest.$ac_objext; then
40160 cat >>confdefs.h <<\_ACEOF
40161 #define HAVE_UINTXX_T 1
40164 { $as_echo "$as_me:$LINENO: result: yes" >&5
40165 $as_echo "yes" >&6; }
40168 $as_echo "$as_me: failed program was:" >&5
40169 sed 's/^/| /' conftest.$ac_ext >&5
40172 { $as_echo "$as_me:$LINENO: result: no" >&5
40173 $as_echo "no" >&6; }
40178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40211 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40212 $as_echo_n "checking for $ac_func... " >&6; }
40213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40214 $as_echo_n "(cached) " >&6
40216 cat >conftest.$ac_ext <<_ACEOF
40219 cat confdefs.h >>conftest.$ac_ext
40220 cat >>conftest.$ac_ext <<_ACEOF
40221 /* end confdefs.h. */
40222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40224 #define $ac_func innocuous_$ac_func
40226 /* System header to define __stub macros and hopefully few prototypes,
40227 which can conflict with char $ac_func (); below.
40228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40229 <limits.h> exists even on freestanding compilers. */
40232 # include <limits.h>
40234 # include <assert.h>
40239 /* Override any GCC internal prototype to avoid an error.
40240 Use char because int might match the return type of a GCC
40241 builtin and then its argument prototype would still apply. */
40246 /* The GNU C library defines this for functions which it implements
40247 to always fail with ENOSYS. Some functions are actually named
40248 something starting with __ and the normal name is an alias. */
40249 #if defined __stub_$ac_func || defined __stub___$ac_func
40256 return $ac_func ();
40261 rm -f conftest.$ac_objext conftest$ac_exeext
40262 if { (ac_try="$ac_link"
40263 case "(($ac_try" in
40264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40265 *) ac_try_echo=$ac_try;;
40267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40268 $as_echo "$ac_try_echo") >&5
40269 (eval "$ac_link") 2>conftest.er1
40271 grep -v '^ *+' conftest.er1 >conftest.err
40273 cat conftest.err >&5
40274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275 (exit $ac_status); } && {
40276 test -z "$ac_c_werror_flag" ||
40277 test ! -s conftest.err
40278 } && test -s conftest$ac_exeext && {
40279 test "$cross_compiling" = yes ||
40280 $as_test_x conftest$ac_exeext
40282 eval "$as_ac_var=yes"
40284 $as_echo "$as_me: failed program was:" >&5
40285 sed 's/^/| /' conftest.$ac_ext >&5
40287 eval "$as_ac_var=no"
40290 rm -rf conftest.dSYM
40291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40292 conftest$ac_exeext conftest.$ac_ext
40294 ac_res=`eval 'as_val=${'$as_ac_var'}
40295 $as_echo "$as_val"'`
40296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40297 $as_echo "$ac_res" >&6; }
40298 as_val=`eval 'as_val=${'$as_ac_var'}
40299 $as_echo "$as_val"'`
40300 if test "x$as_val" = x""yes; then
40301 cat >>confdefs.h <<_ACEOF
40302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40306 echo 'configure: cannot find needed function.'; exit 1
40313 for ac_func in getpagesize
40315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40316 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40317 $as_echo_n "checking for $ac_func... " >&6; }
40318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40319 $as_echo_n "(cached) " >&6
40321 cat >conftest.$ac_ext <<_ACEOF
40324 cat confdefs.h >>conftest.$ac_ext
40325 cat >>conftest.$ac_ext <<_ACEOF
40326 /* end confdefs.h. */
40327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40329 #define $ac_func innocuous_$ac_func
40331 /* System header to define __stub macros and hopefully few prototypes,
40332 which can conflict with char $ac_func (); below.
40333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40334 <limits.h> exists even on freestanding compilers. */
40337 # include <limits.h>
40339 # include <assert.h>
40344 /* Override any GCC internal prototype to avoid an error.
40345 Use char because int might match the return type of a GCC
40346 builtin and then its argument prototype would still apply. */
40351 /* The GNU C library defines this for functions which it implements
40352 to always fail with ENOSYS. Some functions are actually named
40353 something starting with __ and the normal name is an alias. */
40354 #if defined __stub_$ac_func || defined __stub___$ac_func
40361 return $ac_func ();
40366 rm -f conftest.$ac_objext conftest$ac_exeext
40367 if { (ac_try="$ac_link"
40368 case "(($ac_try" in
40369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40370 *) ac_try_echo=$ac_try;;
40372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40373 $as_echo "$ac_try_echo") >&5
40374 (eval "$ac_link") 2>conftest.er1
40376 grep -v '^ *+' conftest.er1 >conftest.err
40378 cat conftest.err >&5
40379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380 (exit $ac_status); } && {
40381 test -z "$ac_c_werror_flag" ||
40382 test ! -s conftest.err
40383 } && test -s conftest$ac_exeext && {
40384 test "$cross_compiling" = yes ||
40385 $as_test_x conftest$ac_exeext
40387 eval "$as_ac_var=yes"
40389 $as_echo "$as_me: failed program was:" >&5
40390 sed 's/^/| /' conftest.$ac_ext >&5
40392 eval "$as_ac_var=no"
40395 rm -rf conftest.dSYM
40396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40397 conftest$ac_exeext conftest.$ac_ext
40399 ac_res=`eval 'as_val=${'$as_ac_var'}
40400 $as_echo "$as_val"'`
40401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40402 $as_echo "$ac_res" >&6; }
40403 as_val=`eval 'as_val=${'$as_ac_var'}
40404 $as_echo "$as_val"'`
40405 if test "x$as_val" = x""yes; then
40406 cat >>confdefs.h <<_ACEOF
40407 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40410 cat >>confdefs.h <<\_ACEOF
40411 #define HAVE_GETPAGESIZE 1
40418 for ac_func in malloc_trim
40420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40421 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40422 $as_echo_n "checking for $ac_func... " >&6; }
40423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40424 $as_echo_n "(cached) " >&6
40426 cat >conftest.$ac_ext <<_ACEOF
40429 cat confdefs.h >>conftest.$ac_ext
40430 cat >>conftest.$ac_ext <<_ACEOF
40431 /* end confdefs.h. */
40432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40434 #define $ac_func innocuous_$ac_func
40436 /* System header to define __stub macros and hopefully few prototypes,
40437 which can conflict with char $ac_func (); below.
40438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40439 <limits.h> exists even on freestanding compilers. */
40442 # include <limits.h>
40444 # include <assert.h>
40449 /* Override any GCC internal prototype to avoid an error.
40450 Use char because int might match the return type of a GCC
40451 builtin and then its argument prototype would still apply. */
40456 /* The GNU C library defines this for functions which it implements
40457 to always fail with ENOSYS. Some functions are actually named
40458 something starting with __ and the normal name is an alias. */
40459 #if defined __stub_$ac_func || defined __stub___$ac_func
40466 return $ac_func ();
40471 rm -f conftest.$ac_objext conftest$ac_exeext
40472 if { (ac_try="$ac_link"
40473 case "(($ac_try" in
40474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40475 *) ac_try_echo=$ac_try;;
40477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40478 $as_echo "$ac_try_echo") >&5
40479 (eval "$ac_link") 2>conftest.er1
40481 grep -v '^ *+' conftest.er1 >conftest.err
40483 cat conftest.err >&5
40484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485 (exit $ac_status); } && {
40486 test -z "$ac_c_werror_flag" ||
40487 test ! -s conftest.err
40488 } && test -s conftest$ac_exeext && {
40489 test "$cross_compiling" = yes ||
40490 $as_test_x conftest$ac_exeext
40492 eval "$as_ac_var=yes"
40494 $as_echo "$as_me: failed program was:" >&5
40495 sed 's/^/| /' conftest.$ac_ext >&5
40497 eval "$as_ac_var=no"
40500 rm -rf conftest.dSYM
40501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40502 conftest$ac_exeext conftest.$ac_ext
40504 ac_res=`eval 'as_val=${'$as_ac_var'}
40505 $as_echo "$as_val"'`
40506 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40507 $as_echo "$ac_res" >&6; }
40508 as_val=`eval 'as_val=${'$as_ac_var'}
40509 $as_echo "$as_val"'`
40510 if test "x$as_val" = x""yes; then
40511 cat >>confdefs.h <<_ACEOF
40512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40515 cat >>confdefs.h <<\_ACEOF
40516 #define HAVE_MALLOC_TRIM 1
40524 for ac_func in fchdir
40526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40527 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40528 $as_echo_n "checking for $ac_func... " >&6; }
40529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40530 $as_echo_n "(cached) " >&6
40532 cat >conftest.$ac_ext <<_ACEOF
40535 cat confdefs.h >>conftest.$ac_ext
40536 cat >>conftest.$ac_ext <<_ACEOF
40537 /* end confdefs.h. */
40538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40540 #define $ac_func innocuous_$ac_func
40542 /* System header to define __stub macros and hopefully few prototypes,
40543 which can conflict with char $ac_func (); below.
40544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40545 <limits.h> exists even on freestanding compilers. */
40548 # include <limits.h>
40550 # include <assert.h>
40555 /* Override any GCC internal prototype to avoid an error.
40556 Use char because int might match the return type of a GCC
40557 builtin and then its argument prototype would still apply. */
40562 /* The GNU C library defines this for functions which it implements
40563 to always fail with ENOSYS. Some functions are actually named
40564 something starting with __ and the normal name is an alias. */
40565 #if defined __stub_$ac_func || defined __stub___$ac_func
40572 return $ac_func ();
40577 rm -f conftest.$ac_objext conftest$ac_exeext
40578 if { (ac_try="$ac_link"
40579 case "(($ac_try" in
40580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40581 *) ac_try_echo=$ac_try;;
40583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40584 $as_echo "$ac_try_echo") >&5
40585 (eval "$ac_link") 2>conftest.er1
40587 grep -v '^ *+' conftest.er1 >conftest.err
40589 cat conftest.err >&5
40590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40591 (exit $ac_status); } && {
40592 test -z "$ac_c_werror_flag" ||
40593 test ! -s conftest.err
40594 } && test -s conftest$ac_exeext && {
40595 test "$cross_compiling" = yes ||
40596 $as_test_x conftest$ac_exeext
40598 eval "$as_ac_var=yes"
40600 $as_echo "$as_me: failed program was:" >&5
40601 sed 's/^/| /' conftest.$ac_ext >&5
40603 eval "$as_ac_var=no"
40606 rm -rf conftest.dSYM
40607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40608 conftest$ac_exeext conftest.$ac_ext
40610 ac_res=`eval 'as_val=${'$as_ac_var'}
40611 $as_echo "$as_val"'`
40612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40613 $as_echo "$ac_res" >&6; }
40614 as_val=`eval 'as_val=${'$as_ac_var'}
40615 $as_echo "$as_val"'`
40616 if test "x$as_val" = x""yes; then
40617 cat >>confdefs.h <<_ACEOF
40618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40620 cat >>confdefs.h <<\_ACEOF
40621 #define HAVE_FCHDIR 1
40628 for ac_func in strtoll
40630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40631 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40632 $as_echo_n "checking for $ac_func... " >&6; }
40633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40634 $as_echo_n "(cached) " >&6
40636 cat >conftest.$ac_ext <<_ACEOF
40639 cat confdefs.h >>conftest.$ac_ext
40640 cat >>conftest.$ac_ext <<_ACEOF
40641 /* end confdefs.h. */
40642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40644 #define $ac_func innocuous_$ac_func
40646 /* System header to define __stub macros and hopefully few prototypes,
40647 which can conflict with char $ac_func (); below.
40648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40649 <limits.h> exists even on freestanding compilers. */
40652 # include <limits.h>
40654 # include <assert.h>
40659 /* Override any GCC internal prototype to avoid an error.
40660 Use char because int might match the return type of a GCC
40661 builtin and then its argument prototype would still apply. */
40666 /* The GNU C library defines this for functions which it implements
40667 to always fail with ENOSYS. Some functions are actually named
40668 something starting with __ and the normal name is an alias. */
40669 #if defined __stub_$ac_func || defined __stub___$ac_func
40676 return $ac_func ();
40681 rm -f conftest.$ac_objext conftest$ac_exeext
40682 if { (ac_try="$ac_link"
40683 case "(($ac_try" in
40684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40685 *) ac_try_echo=$ac_try;;
40687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40688 $as_echo "$ac_try_echo") >&5
40689 (eval "$ac_link") 2>conftest.er1
40691 grep -v '^ *+' conftest.er1 >conftest.err
40693 cat conftest.err >&5
40694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40695 (exit $ac_status); } && {
40696 test -z "$ac_c_werror_flag" ||
40697 test ! -s conftest.err
40698 } && test -s conftest$ac_exeext && {
40699 test "$cross_compiling" = yes ||
40700 $as_test_x conftest$ac_exeext
40702 eval "$as_ac_var=yes"
40704 $as_echo "$as_me: failed program was:" >&5
40705 sed 's/^/| /' conftest.$ac_ext >&5
40707 eval "$as_ac_var=no"
40710 rm -rf conftest.dSYM
40711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40712 conftest$ac_exeext conftest.$ac_ext
40714 ac_res=`eval 'as_val=${'$as_ac_var'}
40715 $as_echo "$as_val"'`
40716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40717 $as_echo "$ac_res" >&6; }
40718 as_val=`eval 'as_val=${'$as_ac_var'}
40719 $as_echo "$as_val"'`
40720 if test "x$as_val" = x""yes; then
40721 cat >>confdefs.h <<_ACEOF
40722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40724 cat >>confdefs.h <<\_ACEOF
40725 #define HAVE_STRTOLL 1
40732 for ac_func in posix_fadvise
40734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40736 $as_echo_n "checking for $ac_func... " >&6; }
40737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40738 $as_echo_n "(cached) " >&6
40740 cat >conftest.$ac_ext <<_ACEOF
40743 cat confdefs.h >>conftest.$ac_ext
40744 cat >>conftest.$ac_ext <<_ACEOF
40745 /* end confdefs.h. */
40746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40748 #define $ac_func innocuous_$ac_func
40750 /* System header to define __stub macros and hopefully few prototypes,
40751 which can conflict with char $ac_func (); below.
40752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40753 <limits.h> exists even on freestanding compilers. */
40756 # include <limits.h>
40758 # include <assert.h>
40763 /* Override any GCC internal prototype to avoid an error.
40764 Use char because int might match the return type of a GCC
40765 builtin and then its argument prototype would still apply. */
40770 /* The GNU C library defines this for functions which it implements
40771 to always fail with ENOSYS. Some functions are actually named
40772 something starting with __ and the normal name is an alias. */
40773 #if defined __stub_$ac_func || defined __stub___$ac_func
40780 return $ac_func ();
40785 rm -f conftest.$ac_objext conftest$ac_exeext
40786 if { (ac_try="$ac_link"
40787 case "(($ac_try" in
40788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40789 *) ac_try_echo=$ac_try;;
40791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40792 $as_echo "$ac_try_echo") >&5
40793 (eval "$ac_link") 2>conftest.er1
40795 grep -v '^ *+' conftest.er1 >conftest.err
40797 cat conftest.err >&5
40798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799 (exit $ac_status); } && {
40800 test -z "$ac_c_werror_flag" ||
40801 test ! -s conftest.err
40802 } && test -s conftest$ac_exeext && {
40803 test "$cross_compiling" = yes ||
40804 $as_test_x conftest$ac_exeext
40806 eval "$as_ac_var=yes"
40808 $as_echo "$as_me: failed program was:" >&5
40809 sed 's/^/| /' conftest.$ac_ext >&5
40811 eval "$as_ac_var=no"
40814 rm -rf conftest.dSYM
40815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40816 conftest$ac_exeext conftest.$ac_ext
40818 ac_res=`eval 'as_val=${'$as_ac_var'}
40819 $as_echo "$as_val"'`
40820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40821 $as_echo "$ac_res" >&6; }
40822 as_val=`eval 'as_val=${'$as_ac_var'}
40823 $as_echo "$as_val"'`
40824 if test "x$as_val" = x""yes; then
40825 cat >>confdefs.h <<_ACEOF
40826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40833 for ac_func in fdatasync
40835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40836 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40837 $as_echo_n "checking for $ac_func... " >&6; }
40838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40839 $as_echo_n "(cached) " >&6
40841 cat >conftest.$ac_ext <<_ACEOF
40844 cat confdefs.h >>conftest.$ac_ext
40845 cat >>conftest.$ac_ext <<_ACEOF
40846 /* end confdefs.h. */
40847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40849 #define $ac_func innocuous_$ac_func
40851 /* System header to define __stub macros and hopefully few prototypes,
40852 which can conflict with char $ac_func (); below.
40853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40854 <limits.h> exists even on freestanding compilers. */
40857 # include <limits.h>
40859 # include <assert.h>
40864 /* Override any GCC internal prototype to avoid an error.
40865 Use char because int might match the return type of a GCC
40866 builtin and then its argument prototype would still apply. */
40871 /* The GNU C library defines this for functions which it implements
40872 to always fail with ENOSYS. Some functions are actually named
40873 something starting with __ and the normal name is an alias. */
40874 #if defined __stub_$ac_func || defined __stub___$ac_func
40881 return $ac_func ();
40886 rm -f conftest.$ac_objext conftest$ac_exeext
40887 if { (ac_try="$ac_link"
40888 case "(($ac_try" in
40889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40890 *) ac_try_echo=$ac_try;;
40892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40893 $as_echo "$ac_try_echo") >&5
40894 (eval "$ac_link") 2>conftest.er1
40896 grep -v '^ *+' conftest.er1 >conftest.err
40898 cat conftest.err >&5
40899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900 (exit $ac_status); } && {
40901 test -z "$ac_c_werror_flag" ||
40902 test ! -s conftest.err
40903 } && test -s conftest$ac_exeext && {
40904 test "$cross_compiling" = yes ||
40905 $as_test_x conftest$ac_exeext
40907 eval "$as_ac_var=yes"
40909 $as_echo "$as_me: failed program was:" >&5
40910 sed 's/^/| /' conftest.$ac_ext >&5
40912 eval "$as_ac_var=no"
40915 rm -rf conftest.dSYM
40916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40917 conftest$ac_exeext conftest.$ac_ext
40919 ac_res=`eval 'as_val=${'$as_ac_var'}
40920 $as_echo "$as_val"'`
40921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40922 $as_echo "$ac_res" >&6; }
40923 as_val=`eval 'as_val=${'$as_ac_var'}
40924 $as_echo "$as_val"'`
40925 if test "x$as_val" = x""yes; then
40926 cat >>confdefs.h <<_ACEOF
40927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40935 for ac_func in chflags
40937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40938 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40939 $as_echo_n "checking for $ac_func... " >&6; }
40940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40941 $as_echo_n "(cached) " >&6
40943 cat >conftest.$ac_ext <<_ACEOF
40946 cat confdefs.h >>conftest.$ac_ext
40947 cat >>conftest.$ac_ext <<_ACEOF
40948 /* end confdefs.h. */
40949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40951 #define $ac_func innocuous_$ac_func
40953 /* System header to define __stub macros and hopefully few prototypes,
40954 which can conflict with char $ac_func (); below.
40955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40956 <limits.h> exists even on freestanding compilers. */
40959 # include <limits.h>
40961 # include <assert.h>
40966 /* Override any GCC internal prototype to avoid an error.
40967 Use char because int might match the return type of a GCC
40968 builtin and then its argument prototype would still apply. */
40973 /* The GNU C library defines this for functions which it implements
40974 to always fail with ENOSYS. Some functions are actually named
40975 something starting with __ and the normal name is an alias. */
40976 #if defined __stub_$ac_func || defined __stub___$ac_func
40983 return $ac_func ();
40988 rm -f conftest.$ac_objext conftest$ac_exeext
40989 if { (ac_try="$ac_link"
40990 case "(($ac_try" in
40991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40992 *) ac_try_echo=$ac_try;;
40994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40995 $as_echo "$ac_try_echo") >&5
40996 (eval "$ac_link") 2>conftest.er1
40998 grep -v '^ *+' conftest.er1 >conftest.err
41000 cat conftest.err >&5
41001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41002 (exit $ac_status); } && {
41003 test -z "$ac_c_werror_flag" ||
41004 test ! -s conftest.err
41005 } && test -s conftest$ac_exeext && {
41006 test "$cross_compiling" = yes ||
41007 $as_test_x conftest$ac_exeext
41009 eval "$as_ac_var=yes"
41011 $as_echo "$as_me: failed program was:" >&5
41012 sed 's/^/| /' conftest.$ac_ext >&5
41014 eval "$as_ac_var=no"
41017 rm -rf conftest.dSYM
41018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41019 conftest$ac_exeext conftest.$ac_ext
41021 ac_res=`eval 'as_val=${'$as_ac_var'}
41022 $as_echo "$as_val"'`
41023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41024 $as_echo "$ac_res" >&6; }
41025 as_val=`eval 'as_val=${'$as_ac_var'}
41026 $as_echo "$as_val"'`
41027 if test "x$as_val" = x""yes; then
41028 cat >>confdefs.h <<_ACEOF
41029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41040 for ac_func in snprintf vsnprintf gethostid fseeko
41042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41044 $as_echo_n "checking for $ac_func... " >&6; }
41045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41046 $as_echo_n "(cached) " >&6
41048 cat >conftest.$ac_ext <<_ACEOF
41051 cat confdefs.h >>conftest.$ac_ext
41052 cat >>conftest.$ac_ext <<_ACEOF
41053 /* end confdefs.h. */
41054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41056 #define $ac_func innocuous_$ac_func
41058 /* System header to define __stub macros and hopefully few prototypes,
41059 which can conflict with char $ac_func (); below.
41060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41061 <limits.h> exists even on freestanding compilers. */
41064 # include <limits.h>
41066 # include <assert.h>
41071 /* Override any GCC internal prototype to avoid an error.
41072 Use char because int might match the return type of a GCC
41073 builtin and then its argument prototype would still apply. */
41078 /* The GNU C library defines this for functions which it implements
41079 to always fail with ENOSYS. Some functions are actually named
41080 something starting with __ and the normal name is an alias. */
41081 #if defined __stub_$ac_func || defined __stub___$ac_func
41088 return $ac_func ();
41093 rm -f conftest.$ac_objext conftest$ac_exeext
41094 if { (ac_try="$ac_link"
41095 case "(($ac_try" in
41096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41097 *) ac_try_echo=$ac_try;;
41099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41100 $as_echo "$ac_try_echo") >&5
41101 (eval "$ac_link") 2>conftest.er1
41103 grep -v '^ *+' conftest.er1 >conftest.err
41105 cat conftest.err >&5
41106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41107 (exit $ac_status); } && {
41108 test -z "$ac_c_werror_flag" ||
41109 test ! -s conftest.err
41110 } && test -s conftest$ac_exeext && {
41111 test "$cross_compiling" = yes ||
41112 $as_test_x conftest$ac_exeext
41114 eval "$as_ac_var=yes"
41116 $as_echo "$as_me: failed program was:" >&5
41117 sed 's/^/| /' conftest.$ac_ext >&5
41119 eval "$as_ac_var=no"
41122 rm -rf conftest.dSYM
41123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41124 conftest$ac_exeext conftest.$ac_ext
41126 ac_res=`eval 'as_val=${'$as_ac_var'}
41127 $as_echo "$as_val"'`
41128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41129 $as_echo "$ac_res" >&6; }
41130 as_val=`eval 'as_val=${'$as_ac_var'}
41131 $as_echo "$as_val"'`
41132 if test "x$as_val" = x""yes; then
41133 cat >>confdefs.h <<_ACEOF
41134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41141 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
41142 $as_echo_n "checking for va_copy... " >&6; }
41143 if test "${ba_cv_va_copy+set}" = set; then
41144 $as_echo_n "(cached) " >&6
41147 cat >conftest.$ac_ext <<_ACEOF
41150 cat confdefs.h >>conftest.$ac_ext
41151 cat >>conftest.$ac_ext <<_ACEOF
41152 /* end confdefs.h. */
41154 #include <stdarg.h>
41155 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
41156 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
41162 call_use_va_copy(1,2,3)
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41175 $as_echo "$ac_try_echo") >&5
41176 (eval "$ac_link") 2>conftest.er1
41178 grep -v '^ *+' conftest.er1 >conftest.err
41180 cat conftest.err >&5
41181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182 (exit $ac_status); } && {
41183 test -z "$ac_c_werror_flag" ||
41184 test ! -s conftest.err
41185 } && test -s conftest$ac_exeext && {
41186 test "$cross_compiling" = yes ||
41187 $as_test_x conftest$ac_exeext
41193 $as_echo "$as_me: failed program was:" >&5
41194 sed 's/^/| /' conftest.$ac_ext >&5
41202 rm -rf conftest.dSYM
41203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41204 conftest$ac_exeext conftest.$ac_ext
41208 { $as_echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
41209 $as_echo "$ba_cv_va_copy" >&6; }
41210 test $ba_cv_va_copy = yes &&
41211 cat >>confdefs.h <<\_ACEOF
41212 #define HAVE_VA_COPY 1
41220 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
41222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41223 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41224 $as_echo_n "checking for $ac_func... " >&6; }
41225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41226 $as_echo_n "(cached) " >&6
41228 cat >conftest.$ac_ext <<_ACEOF
41231 cat confdefs.h >>conftest.$ac_ext
41232 cat >>conftest.$ac_ext <<_ACEOF
41233 /* end confdefs.h. */
41234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41236 #define $ac_func innocuous_$ac_func
41238 /* System header to define __stub macros and hopefully few prototypes,
41239 which can conflict with char $ac_func (); below.
41240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41241 <limits.h> exists even on freestanding compilers. */
41244 # include <limits.h>
41246 # include <assert.h>
41251 /* Override any GCC internal prototype to avoid an error.
41252 Use char because int might match the return type of a GCC
41253 builtin and then its argument prototype would still apply. */
41258 /* The GNU C library defines this for functions which it implements
41259 to always fail with ENOSYS. Some functions are actually named
41260 something starting with __ and the normal name is an alias. */
41261 #if defined __stub_$ac_func || defined __stub___$ac_func
41268 return $ac_func ();
41273 rm -f conftest.$ac_objext conftest$ac_exeext
41274 if { (ac_try="$ac_link"
41275 case "(($ac_try" in
41276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41277 *) ac_try_echo=$ac_try;;
41279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41280 $as_echo "$ac_try_echo") >&5
41281 (eval "$ac_link") 2>conftest.er1
41283 grep -v '^ *+' conftest.er1 >conftest.err
41285 cat conftest.err >&5
41286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41287 (exit $ac_status); } && {
41288 test -z "$ac_c_werror_flag" ||
41289 test ! -s conftest.err
41290 } && test -s conftest$ac_exeext && {
41291 test "$cross_compiling" = yes ||
41292 $as_test_x conftest$ac_exeext
41294 eval "$as_ac_var=yes"
41296 $as_echo "$as_me: failed program was:" >&5
41297 sed 's/^/| /' conftest.$ac_ext >&5
41299 eval "$as_ac_var=no"
41302 rm -rf conftest.dSYM
41303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41304 conftest$ac_exeext conftest.$ac_ext
41306 ac_res=`eval 'as_val=${'$as_ac_var'}
41307 $as_echo "$as_val"'`
41308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41309 $as_echo "$ac_res" >&6; }
41310 as_val=`eval 'as_val=${'$as_ac_var'}
41311 $as_echo "$as_val"'`
41312 if test "x$as_val" = x""yes; then
41313 cat >>confdefs.h <<_ACEOF
41314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41321 # If resolver functions are not in libc check for -lnsl or -lresolv.
41322 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
41323 $as_echo_n "checking for gethostbyname_r... " >&6; }
41324 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
41325 $as_echo_n "(cached) " >&6
41327 cat >conftest.$ac_ext <<_ACEOF
41330 cat confdefs.h >>conftest.$ac_ext
41331 cat >>conftest.$ac_ext <<_ACEOF
41332 /* end confdefs.h. */
41333 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
41334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41335 #define gethostbyname_r innocuous_gethostbyname_r
41337 /* System header to define __stub macros and hopefully few prototypes,
41338 which can conflict with char gethostbyname_r (); below.
41339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41340 <limits.h> exists even on freestanding compilers. */
41343 # include <limits.h>
41345 # include <assert.h>
41348 #undef gethostbyname_r
41350 /* Override any GCC internal prototype to avoid an error.
41351 Use char because int might match the return type of a GCC
41352 builtin and then its argument prototype would still apply. */
41356 char gethostbyname_r ();
41357 /* The GNU C library defines this for functions which it implements
41358 to always fail with ENOSYS. Some functions are actually named
41359 something starting with __ and the normal name is an alias. */
41360 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
41367 return gethostbyname_r ();
41372 rm -f conftest.$ac_objext conftest$ac_exeext
41373 if { (ac_try="$ac_link"
41374 case "(($ac_try" in
41375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41376 *) ac_try_echo=$ac_try;;
41378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41379 $as_echo "$ac_try_echo") >&5
41380 (eval "$ac_link") 2>conftest.er1
41382 grep -v '^ *+' conftest.er1 >conftest.err
41384 cat conftest.err >&5
41385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386 (exit $ac_status); } && {
41387 test -z "$ac_c_werror_flag" ||
41388 test ! -s conftest.err
41389 } && test -s conftest$ac_exeext && {
41390 test "$cross_compiling" = yes ||
41391 $as_test_x conftest$ac_exeext
41393 ac_cv_func_gethostbyname_r=yes
41395 $as_echo "$as_me: failed program was:" >&5
41396 sed 's/^/| /' conftest.$ac_ext >&5
41398 ac_cv_func_gethostbyname_r=no
41401 rm -rf conftest.dSYM
41402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41403 conftest$ac_exeext conftest.$ac_ext
41405 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
41406 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
41407 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
41408 { $as_echo "$as_me:$LINENO: result: using libc's resolver" >&5
41409 $as_echo "using libc's resolver" >&6; }
41412 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
41413 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
41414 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
41415 $as_echo_n "(cached) " >&6
41417 ac_check_lib_save_LIBS=$LIBS
41419 cat >conftest.$ac_ext <<_ACEOF
41422 cat confdefs.h >>conftest.$ac_ext
41423 cat >>conftest.$ac_ext <<_ACEOF
41424 /* end confdefs.h. */
41426 /* Override any GCC internal prototype to avoid an error.
41427 Use char because int might match the return type of a GCC
41428 builtin and then its argument prototype would still apply. */
41432 char gethostbyname_r ();
41436 return gethostbyname_r ();
41441 rm -f conftest.$ac_objext conftest$ac_exeext
41442 if { (ac_try="$ac_link"
41443 case "(($ac_try" in
41444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41445 *) ac_try_echo=$ac_try;;
41447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41448 $as_echo "$ac_try_echo") >&5
41449 (eval "$ac_link") 2>conftest.er1
41451 grep -v '^ *+' conftest.er1 >conftest.err
41453 cat conftest.err >&5
41454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41455 (exit $ac_status); } && {
41456 test -z "$ac_c_werror_flag" ||
41457 test ! -s conftest.err
41458 } && test -s conftest$ac_exeext && {
41459 test "$cross_compiling" = yes ||
41460 $as_test_x conftest$ac_exeext
41462 ac_cv_lib_nsl_gethostbyname_r=yes
41464 $as_echo "$as_me: failed program was:" >&5
41465 sed 's/^/| /' conftest.$ac_ext >&5
41467 ac_cv_lib_nsl_gethostbyname_r=no
41470 rm -rf conftest.dSYM
41471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41472 conftest$ac_exeext conftest.$ac_ext
41473 LIBS=$ac_check_lib_save_LIBS
41475 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
41476 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
41477 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
41478 cat >>confdefs.h <<_ACEOF
41479 #define HAVE_LIBNSL 1
41487 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
41488 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
41489 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
41490 $as_echo_n "(cached) " >&6
41492 ac_check_lib_save_LIBS=$LIBS
41493 LIBS="-lresolv $LIBS"
41494 cat >conftest.$ac_ext <<_ACEOF
41497 cat confdefs.h >>conftest.$ac_ext
41498 cat >>conftest.$ac_ext <<_ACEOF
41499 /* end confdefs.h. */
41501 /* Override any GCC internal prototype to avoid an error.
41502 Use char because int might match the return type of a GCC
41503 builtin and then its argument prototype would still apply. */
41507 char gethostbyname_r ();
41511 return gethostbyname_r ();
41516 rm -f conftest.$ac_objext conftest$ac_exeext
41517 if { (ac_try="$ac_link"
41518 case "(($ac_try" in
41519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41520 *) ac_try_echo=$ac_try;;
41522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41523 $as_echo "$ac_try_echo") >&5
41524 (eval "$ac_link") 2>conftest.er1
41526 grep -v '^ *+' conftest.er1 >conftest.err
41528 cat conftest.err >&5
41529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530 (exit $ac_status); } && {
41531 test -z "$ac_c_werror_flag" ||
41532 test ! -s conftest.err
41533 } && test -s conftest$ac_exeext && {
41534 test "$cross_compiling" = yes ||
41535 $as_test_x conftest$ac_exeext
41537 ac_cv_lib_resolv_gethostbyname_r=yes
41539 $as_echo "$as_me: failed program was:" >&5
41540 sed 's/^/| /' conftest.$ac_ext >&5
41542 ac_cv_lib_resolv_gethostbyname_r=no
41545 rm -rf conftest.dSYM
41546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41547 conftest$ac_exeext conftest.$ac_ext
41548 LIBS=$ac_check_lib_save_LIBS
41550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
41551 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
41552 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then
41553 cat >>confdefs.h <<_ACEOF
41554 #define HAVE_LIBRESOLV 1
41557 LIBS="-lresolv $LIBS"
41565 for ac_func in inet_pton
41567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41568 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41569 $as_echo_n "checking for $ac_func... " >&6; }
41570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41571 $as_echo_n "(cached) " >&6
41573 cat >conftest.$ac_ext <<_ACEOF
41576 cat confdefs.h >>conftest.$ac_ext
41577 cat >>conftest.$ac_ext <<_ACEOF
41578 /* end confdefs.h. */
41579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41581 #define $ac_func innocuous_$ac_func
41583 /* System header to define __stub macros and hopefully few prototypes,
41584 which can conflict with char $ac_func (); below.
41585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41586 <limits.h> exists even on freestanding compilers. */
41589 # include <limits.h>
41591 # include <assert.h>
41596 /* Override any GCC internal prototype to avoid an error.
41597 Use char because int might match the return type of a GCC
41598 builtin and then its argument prototype would still apply. */
41603 /* The GNU C library defines this for functions which it implements
41604 to always fail with ENOSYS. Some functions are actually named
41605 something starting with __ and the normal name is an alias. */
41606 #if defined __stub_$ac_func || defined __stub___$ac_func
41613 return $ac_func ();
41618 rm -f conftest.$ac_objext conftest$ac_exeext
41619 if { (ac_try="$ac_link"
41620 case "(($ac_try" in
41621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41622 *) ac_try_echo=$ac_try;;
41624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41625 $as_echo "$ac_try_echo") >&5
41626 (eval "$ac_link") 2>conftest.er1
41628 grep -v '^ *+' conftest.er1 >conftest.err
41630 cat conftest.err >&5
41631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632 (exit $ac_status); } && {
41633 test -z "$ac_c_werror_flag" ||
41634 test ! -s conftest.err
41635 } && test -s conftest$ac_exeext && {
41636 test "$cross_compiling" = yes ||
41637 $as_test_x conftest$ac_exeext
41639 eval "$as_ac_var=yes"
41641 $as_echo "$as_me: failed program was:" >&5
41642 sed 's/^/| /' conftest.$ac_ext >&5
41644 eval "$as_ac_var=no"
41647 rm -rf conftest.dSYM
41648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41649 conftest$ac_exeext conftest.$ac_ext
41651 ac_res=`eval 'as_val=${'$as_ac_var'}
41652 $as_echo "$as_val"'`
41653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41654 $as_echo "$ac_res" >&6; }
41655 as_val=`eval 'as_val=${'$as_ac_var'}
41656 $as_echo "$as_val"'`
41657 if test "x$as_val" = x""yes; then
41658 cat >>confdefs.h <<_ACEOF
41659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41661 cat >>confdefs.h <<\_ACEOF
41662 #define HAVE_INET_PTON 1
41669 for ac_func in inet_ntop
41671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41672 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41673 $as_echo_n "checking for $ac_func... " >&6; }
41674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41675 $as_echo_n "(cached) " >&6
41677 cat >conftest.$ac_ext <<_ACEOF
41680 cat confdefs.h >>conftest.$ac_ext
41681 cat >>conftest.$ac_ext <<_ACEOF
41682 /* end confdefs.h. */
41683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41685 #define $ac_func innocuous_$ac_func
41687 /* System header to define __stub macros and hopefully few prototypes,
41688 which can conflict with char $ac_func (); below.
41689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41690 <limits.h> exists even on freestanding compilers. */
41693 # include <limits.h>
41695 # include <assert.h>
41700 /* Override any GCC internal prototype to avoid an error.
41701 Use char because int might match the return type of a GCC
41702 builtin and then its argument prototype would still apply. */
41707 /* The GNU C library defines this for functions which it implements
41708 to always fail with ENOSYS. Some functions are actually named
41709 something starting with __ and the normal name is an alias. */
41710 #if defined __stub_$ac_func || defined __stub___$ac_func
41717 return $ac_func ();
41722 rm -f conftest.$ac_objext conftest$ac_exeext
41723 if { (ac_try="$ac_link"
41724 case "(($ac_try" in
41725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41726 *) ac_try_echo=$ac_try;;
41728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41729 $as_echo "$ac_try_echo") >&5
41730 (eval "$ac_link") 2>conftest.er1
41732 grep -v '^ *+' conftest.er1 >conftest.err
41734 cat conftest.err >&5
41735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41736 (exit $ac_status); } && {
41737 test -z "$ac_c_werror_flag" ||
41738 test ! -s conftest.err
41739 } && test -s conftest$ac_exeext && {
41740 test "$cross_compiling" = yes ||
41741 $as_test_x conftest$ac_exeext
41743 eval "$as_ac_var=yes"
41745 $as_echo "$as_me: failed program was:" >&5
41746 sed 's/^/| /' conftest.$ac_ext >&5
41748 eval "$as_ac_var=no"
41751 rm -rf conftest.dSYM
41752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41753 conftest$ac_exeext conftest.$ac_ext
41755 ac_res=`eval 'as_val=${'$as_ac_var'}
41756 $as_echo "$as_val"'`
41757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41758 $as_echo "$ac_res" >&6; }
41759 as_val=`eval 'as_val=${'$as_ac_var'}
41760 $as_echo "$as_val"'`
41761 if test "x$as_val" = x""yes; then
41762 cat >>confdefs.h <<_ACEOF
41763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41765 cat >>confdefs.h <<\_ACEOF
41766 #define HAVE_INET_NTOP 1
41773 for ac_func in gethostbyname2
41775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41776 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41777 $as_echo_n "checking for $ac_func... " >&6; }
41778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41779 $as_echo_n "(cached) " >&6
41781 cat >conftest.$ac_ext <<_ACEOF
41784 cat confdefs.h >>conftest.$ac_ext
41785 cat >>conftest.$ac_ext <<_ACEOF
41786 /* end confdefs.h. */
41787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41789 #define $ac_func innocuous_$ac_func
41791 /* System header to define __stub macros and hopefully few prototypes,
41792 which can conflict with char $ac_func (); below.
41793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41794 <limits.h> exists even on freestanding compilers. */
41797 # include <limits.h>
41799 # include <assert.h>
41804 /* Override any GCC internal prototype to avoid an error.
41805 Use char because int might match the return type of a GCC
41806 builtin and then its argument prototype would still apply. */
41811 /* The GNU C library defines this for functions which it implements
41812 to always fail with ENOSYS. Some functions are actually named
41813 something starting with __ and the normal name is an alias. */
41814 #if defined __stub_$ac_func || defined __stub___$ac_func
41821 return $ac_func ();
41826 rm -f conftest.$ac_objext conftest$ac_exeext
41827 if { (ac_try="$ac_link"
41828 case "(($ac_try" in
41829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41830 *) ac_try_echo=$ac_try;;
41832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41833 $as_echo "$ac_try_echo") >&5
41834 (eval "$ac_link") 2>conftest.er1
41836 grep -v '^ *+' conftest.er1 >conftest.err
41838 cat conftest.err >&5
41839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 (exit $ac_status); } && {
41841 test -z "$ac_c_werror_flag" ||
41842 test ! -s conftest.err
41843 } && test -s conftest$ac_exeext && {
41844 test "$cross_compiling" = yes ||
41845 $as_test_x conftest$ac_exeext
41847 eval "$as_ac_var=yes"
41849 $as_echo "$as_me: failed program was:" >&5
41850 sed 's/^/| /' conftest.$ac_ext >&5
41852 eval "$as_ac_var=no"
41855 rm -rf conftest.dSYM
41856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41857 conftest$ac_exeext conftest.$ac_ext
41859 ac_res=`eval 'as_val=${'$as_ac_var'}
41860 $as_echo "$as_val"'`
41861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41862 $as_echo "$ac_res" >&6; }
41863 as_val=`eval 'as_val=${'$as_ac_var'}
41864 $as_echo "$as_val"'`
41865 if test "x$as_val" = x""yes; then
41866 cat >>confdefs.h <<_ACEOF
41867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41869 cat >>confdefs.h <<\_ACEOF
41870 #define HAVE_GETHOSTBYNAME2 1
41877 { $as_echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
41878 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
41879 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
41880 $as_echo_n "(cached) " >&6
41883 cat >conftest.$ac_ext <<_ACEOF
41886 cat confdefs.h >>conftest.$ac_ext
41887 cat >>conftest.$ac_ext <<_ACEOF
41888 /* end confdefs.h. */
41890 #include <sys/socket.h>
41896 struct sockaddr s; s.sa_len;
41902 rm -f conftest.$ac_objext
41903 if { (ac_try="$ac_compile"
41904 case "(($ac_try" in
41905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41906 *) ac_try_echo=$ac_try;;
41908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41909 $as_echo "$ac_try_echo") >&5
41910 (eval "$ac_compile") 2>conftest.er1
41912 grep -v '^ *+' conftest.er1 >conftest.err
41914 cat conftest.err >&5
41915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41916 (exit $ac_status); } && {
41917 test -z "$ac_c_werror_flag" ||
41918 test ! -s conftest.err
41919 } && test -s conftest.$ac_objext; then
41921 ac_cv_struct_sockaddr_sa_len=yes
41924 $as_echo "$as_me: failed program was:" >&5
41925 sed 's/^/| /' conftest.$ac_ext >&5
41927 ac_cv_struct_sockaddr_sa_len=no
41932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41936 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
41937 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
41939 if test $ac_cv_struct_sockaddr_sa_len = yes; then
41941 cat >>confdefs.h <<\_ACEOF
41942 #define HAVE_SA_LEN 1
41948 for ac_func in strftime
41950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41951 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41952 $as_echo_n "checking for $ac_func... " >&6; }
41953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41954 $as_echo_n "(cached) " >&6
41956 cat >conftest.$ac_ext <<_ACEOF
41959 cat confdefs.h >>conftest.$ac_ext
41960 cat >>conftest.$ac_ext <<_ACEOF
41961 /* end confdefs.h. */
41962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41964 #define $ac_func innocuous_$ac_func
41966 /* System header to define __stub macros and hopefully few prototypes,
41967 which can conflict with char $ac_func (); below.
41968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41969 <limits.h> exists even on freestanding compilers. */
41972 # include <limits.h>
41974 # include <assert.h>
41979 /* Override any GCC internal prototype to avoid an error.
41980 Use char because int might match the return type of a GCC
41981 builtin and then its argument prototype would still apply. */
41986 /* The GNU C library defines this for functions which it implements
41987 to always fail with ENOSYS. Some functions are actually named
41988 something starting with __ and the normal name is an alias. */
41989 #if defined __stub_$ac_func || defined __stub___$ac_func
41996 return $ac_func ();
42001 rm -f conftest.$ac_objext conftest$ac_exeext
42002 if { (ac_try="$ac_link"
42003 case "(($ac_try" in
42004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42005 *) ac_try_echo=$ac_try;;
42007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42008 $as_echo "$ac_try_echo") >&5
42009 (eval "$ac_link") 2>conftest.er1
42011 grep -v '^ *+' conftest.er1 >conftest.err
42013 cat conftest.err >&5
42014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42015 (exit $ac_status); } && {
42016 test -z "$ac_c_werror_flag" ||
42017 test ! -s conftest.err
42018 } && test -s conftest$ac_exeext && {
42019 test "$cross_compiling" = yes ||
42020 $as_test_x conftest$ac_exeext
42022 eval "$as_ac_var=yes"
42024 $as_echo "$as_me: failed program was:" >&5
42025 sed 's/^/| /' conftest.$ac_ext >&5
42027 eval "$as_ac_var=no"
42030 rm -rf conftest.dSYM
42031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42032 conftest$ac_exeext conftest.$ac_ext
42034 ac_res=`eval 'as_val=${'$as_ac_var'}
42035 $as_echo "$as_val"'`
42036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42037 $as_echo "$ac_res" >&6; }
42038 as_val=`eval 'as_val=${'$as_ac_var'}
42039 $as_echo "$as_val"'`
42040 if test "x$as_val" = x""yes; then
42041 cat >>confdefs.h <<_ACEOF
42042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42046 # strftime is in -lintl on SCO UNIX.
42047 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42048 $as_echo_n "checking for strftime in -lintl... " >&6; }
42049 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42050 $as_echo_n "(cached) " >&6
42052 ac_check_lib_save_LIBS=$LIBS
42053 LIBS="-lintl $LIBS"
42054 cat >conftest.$ac_ext <<_ACEOF
42057 cat confdefs.h >>conftest.$ac_ext
42058 cat >>conftest.$ac_ext <<_ACEOF
42059 /* end confdefs.h. */
42061 /* Override any GCC internal prototype to avoid an error.
42062 Use char because int might match the return type of a GCC
42063 builtin and then its argument prototype would still apply. */
42071 return strftime ();
42076 rm -f conftest.$ac_objext conftest$ac_exeext
42077 if { (ac_try="$ac_link"
42078 case "(($ac_try" in
42079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42080 *) ac_try_echo=$ac_try;;
42082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42083 $as_echo "$ac_try_echo") >&5
42084 (eval "$ac_link") 2>conftest.er1
42086 grep -v '^ *+' conftest.er1 >conftest.err
42088 cat conftest.err >&5
42089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090 (exit $ac_status); } && {
42091 test -z "$ac_c_werror_flag" ||
42092 test ! -s conftest.err
42093 } && test -s conftest$ac_exeext && {
42094 test "$cross_compiling" = yes ||
42095 $as_test_x conftest$ac_exeext
42097 ac_cv_lib_intl_strftime=yes
42099 $as_echo "$as_me: failed program was:" >&5
42100 sed 's/^/| /' conftest.$ac_ext >&5
42102 ac_cv_lib_intl_strftime=no
42105 rm -rf conftest.dSYM
42106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42107 conftest$ac_exeext conftest.$ac_ext
42108 LIBS=$ac_check_lib_save_LIBS
42110 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42111 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
42112 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
42113 cat >>confdefs.h <<\_ACEOF
42114 #define HAVE_STRFTIME 1
42117 LIBS="-lintl $LIBS"
42124 for ac_func in vprintf
42126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42127 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42128 $as_echo_n "checking for $ac_func... " >&6; }
42129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42130 $as_echo_n "(cached) " >&6
42132 cat >conftest.$ac_ext <<_ACEOF
42135 cat confdefs.h >>conftest.$ac_ext
42136 cat >>conftest.$ac_ext <<_ACEOF
42137 /* end confdefs.h. */
42138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42140 #define $ac_func innocuous_$ac_func
42142 /* System header to define __stub macros and hopefully few prototypes,
42143 which can conflict with char $ac_func (); below.
42144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42145 <limits.h> exists even on freestanding compilers. */
42148 # include <limits.h>
42150 # include <assert.h>
42155 /* Override any GCC internal prototype to avoid an error.
42156 Use char because int might match the return type of a GCC
42157 builtin and then its argument prototype would still apply. */
42162 /* The GNU C library defines this for functions which it implements
42163 to always fail with ENOSYS. Some functions are actually named
42164 something starting with __ and the normal name is an alias. */
42165 #if defined __stub_$ac_func || defined __stub___$ac_func
42172 return $ac_func ();
42177 rm -f conftest.$ac_objext conftest$ac_exeext
42178 if { (ac_try="$ac_link"
42179 case "(($ac_try" in
42180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42181 *) ac_try_echo=$ac_try;;
42183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42184 $as_echo "$ac_try_echo") >&5
42185 (eval "$ac_link") 2>conftest.er1
42187 grep -v '^ *+' conftest.er1 >conftest.err
42189 cat conftest.err >&5
42190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191 (exit $ac_status); } && {
42192 test -z "$ac_c_werror_flag" ||
42193 test ! -s conftest.err
42194 } && test -s conftest$ac_exeext && {
42195 test "$cross_compiling" = yes ||
42196 $as_test_x conftest$ac_exeext
42198 eval "$as_ac_var=yes"
42200 $as_echo "$as_me: failed program was:" >&5
42201 sed 's/^/| /' conftest.$ac_ext >&5
42203 eval "$as_ac_var=no"
42206 rm -rf conftest.dSYM
42207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42208 conftest$ac_exeext conftest.$ac_ext
42210 ac_res=`eval 'as_val=${'$as_ac_var'}
42211 $as_echo "$as_val"'`
42212 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42213 $as_echo "$ac_res" >&6; }
42214 as_val=`eval 'as_val=${'$as_ac_var'}
42215 $as_echo "$as_val"'`
42216 if test "x$as_val" = x""yes; then
42217 cat >>confdefs.h <<_ACEOF
42218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42221 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
42222 $as_echo_n "checking for _doprnt... " >&6; }
42223 if test "${ac_cv_func__doprnt+set}" = set; then
42224 $as_echo_n "(cached) " >&6
42226 cat >conftest.$ac_ext <<_ACEOF
42229 cat confdefs.h >>conftest.$ac_ext
42230 cat >>conftest.$ac_ext <<_ACEOF
42231 /* end confdefs.h. */
42232 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42234 #define _doprnt innocuous__doprnt
42236 /* System header to define __stub macros and hopefully few prototypes,
42237 which can conflict with char _doprnt (); below.
42238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42239 <limits.h> exists even on freestanding compilers. */
42242 # include <limits.h>
42244 # include <assert.h>
42249 /* Override any GCC internal prototype to avoid an error.
42250 Use char because int might match the return type of a GCC
42251 builtin and then its argument prototype would still apply. */
42256 /* The GNU C library defines this for functions which it implements
42257 to always fail with ENOSYS. Some functions are actually named
42258 something starting with __ and the normal name is an alias. */
42259 #if defined __stub__doprnt || defined __stub____doprnt
42271 rm -f conftest.$ac_objext conftest$ac_exeext
42272 if { (ac_try="$ac_link"
42273 case "(($ac_try" in
42274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42275 *) ac_try_echo=$ac_try;;
42277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42278 $as_echo "$ac_try_echo") >&5
42279 (eval "$ac_link") 2>conftest.er1
42281 grep -v '^ *+' conftest.er1 >conftest.err
42283 cat conftest.err >&5
42284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285 (exit $ac_status); } && {
42286 test -z "$ac_c_werror_flag" ||
42287 test ! -s conftest.err
42288 } && test -s conftest$ac_exeext && {
42289 test "$cross_compiling" = yes ||
42290 $as_test_x conftest$ac_exeext
42292 ac_cv_func__doprnt=yes
42294 $as_echo "$as_me: failed program was:" >&5
42295 sed 's/^/| /' conftest.$ac_ext >&5
42297 ac_cv_func__doprnt=no
42300 rm -rf conftest.dSYM
42301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42302 conftest$ac_exeext conftest.$ac_ext
42304 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
42305 $as_echo "$ac_cv_func__doprnt" >&6; }
42306 if test "x$ac_cv_func__doprnt" = x""yes; then
42308 cat >>confdefs.h <<\_ACEOF
42309 #define HAVE_DOPRNT 1
42318 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
42319 # for constant arguments. Useless!
42320 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
42321 $as_echo_n "checking for working alloca.h... " >&6; }
42322 if test "${ac_cv_working_alloca_h+set}" = set; then
42323 $as_echo_n "(cached) " >&6
42325 cat >conftest.$ac_ext <<_ACEOF
42328 cat confdefs.h >>conftest.$ac_ext
42329 cat >>conftest.$ac_ext <<_ACEOF
42330 /* end confdefs.h. */
42331 #include <alloca.h>
42335 char *p = (char *) alloca (2 * sizeof (int));
42341 rm -f conftest.$ac_objext conftest$ac_exeext
42342 if { (ac_try="$ac_link"
42343 case "(($ac_try" in
42344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42345 *) ac_try_echo=$ac_try;;
42347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42348 $as_echo "$ac_try_echo") >&5
42349 (eval "$ac_link") 2>conftest.er1
42351 grep -v '^ *+' conftest.er1 >conftest.err
42353 cat conftest.err >&5
42354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355 (exit $ac_status); } && {
42356 test -z "$ac_c_werror_flag" ||
42357 test ! -s conftest.err
42358 } && test -s conftest$ac_exeext && {
42359 test "$cross_compiling" = yes ||
42360 $as_test_x conftest$ac_exeext
42362 ac_cv_working_alloca_h=yes
42364 $as_echo "$as_me: failed program was:" >&5
42365 sed 's/^/| /' conftest.$ac_ext >&5
42367 ac_cv_working_alloca_h=no
42370 rm -rf conftest.dSYM
42371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42372 conftest$ac_exeext conftest.$ac_ext
42374 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
42375 $as_echo "$ac_cv_working_alloca_h" >&6; }
42376 if test $ac_cv_working_alloca_h = yes; then
42378 cat >>confdefs.h <<\_ACEOF
42379 #define HAVE_ALLOCA_H 1
42384 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
42385 $as_echo_n "checking for alloca... " >&6; }
42386 if test "${ac_cv_func_alloca_works+set}" = set; then
42387 $as_echo_n "(cached) " >&6
42389 cat >conftest.$ac_ext <<_ACEOF
42392 cat confdefs.h >>conftest.$ac_ext
42393 cat >>conftest.$ac_ext <<_ACEOF
42394 /* end confdefs.h. */
42396 # define alloca __builtin_alloca
42399 # include <malloc.h>
42400 # define alloca _alloca
42402 # ifdef HAVE_ALLOCA_H
42403 # include <alloca.h>
42408 # ifndef alloca /* predefined by HP cc +Olibcalls */
42419 char *p = (char *) alloca (1);
42425 rm -f conftest.$ac_objext conftest$ac_exeext
42426 if { (ac_try="$ac_link"
42427 case "(($ac_try" in
42428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42429 *) ac_try_echo=$ac_try;;
42431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42432 $as_echo "$ac_try_echo") >&5
42433 (eval "$ac_link") 2>conftest.er1
42435 grep -v '^ *+' conftest.er1 >conftest.err
42437 cat conftest.err >&5
42438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42439 (exit $ac_status); } && {
42440 test -z "$ac_c_werror_flag" ||
42441 test ! -s conftest.err
42442 } && test -s conftest$ac_exeext && {
42443 test "$cross_compiling" = yes ||
42444 $as_test_x conftest$ac_exeext
42446 ac_cv_func_alloca_works=yes
42448 $as_echo "$as_me: failed program was:" >&5
42449 sed 's/^/| /' conftest.$ac_ext >&5
42451 ac_cv_func_alloca_works=no
42454 rm -rf conftest.dSYM
42455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42456 conftest$ac_exeext conftest.$ac_ext
42458 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
42459 $as_echo "$ac_cv_func_alloca_works" >&6; }
42461 if test $ac_cv_func_alloca_works = yes; then
42463 cat >>confdefs.h <<\_ACEOF
42464 #define HAVE_ALLOCA 1
42468 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42469 # that cause trouble. Some versions do not even contain alloca or
42470 # contain a buggy version. If you still want to use their alloca,
42471 # use ar to extract alloca.o from them instead of compiling alloca.c.
42473 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
42475 cat >>confdefs.h <<\_ACEOF
42480 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
42481 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
42482 if test "${ac_cv_os_cray+set}" = set; then
42483 $as_echo_n "(cached) " >&6
42485 cat >conftest.$ac_ext <<_ACEOF
42488 cat confdefs.h >>conftest.$ac_ext
42489 cat >>conftest.$ac_ext <<_ACEOF
42490 /* end confdefs.h. */
42491 #if defined CRAY && ! defined CRAY2
42498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42499 $EGREP "webecray" >/dev/null 2>&1; then
42507 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
42508 $as_echo "$ac_cv_os_cray" >&6; }
42509 if test $ac_cv_os_cray = yes; then
42510 for ac_func in _getb67 GETB67 getb67; do
42511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42512 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42513 $as_echo_n "checking for $ac_func... " >&6; }
42514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42515 $as_echo_n "(cached) " >&6
42517 cat >conftest.$ac_ext <<_ACEOF
42520 cat confdefs.h >>conftest.$ac_ext
42521 cat >>conftest.$ac_ext <<_ACEOF
42522 /* end confdefs.h. */
42523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42525 #define $ac_func innocuous_$ac_func
42527 /* System header to define __stub macros and hopefully few prototypes,
42528 which can conflict with char $ac_func (); below.
42529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42530 <limits.h> exists even on freestanding compilers. */
42533 # include <limits.h>
42535 # include <assert.h>
42540 /* Override any GCC internal prototype to avoid an error.
42541 Use char because int might match the return type of a GCC
42542 builtin and then its argument prototype would still apply. */
42547 /* The GNU C library defines this for functions which it implements
42548 to always fail with ENOSYS. Some functions are actually named
42549 something starting with __ and the normal name is an alias. */
42550 #if defined __stub_$ac_func || defined __stub___$ac_func
42557 return $ac_func ();
42562 rm -f conftest.$ac_objext conftest$ac_exeext
42563 if { (ac_try="$ac_link"
42564 case "(($ac_try" in
42565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42566 *) ac_try_echo=$ac_try;;
42568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42569 $as_echo "$ac_try_echo") >&5
42570 (eval "$ac_link") 2>conftest.er1
42572 grep -v '^ *+' conftest.er1 >conftest.err
42574 cat conftest.err >&5
42575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576 (exit $ac_status); } && {
42577 test -z "$ac_c_werror_flag" ||
42578 test ! -s conftest.err
42579 } && test -s conftest$ac_exeext && {
42580 test "$cross_compiling" = yes ||
42581 $as_test_x conftest$ac_exeext
42583 eval "$as_ac_var=yes"
42585 $as_echo "$as_me: failed program was:" >&5
42586 sed 's/^/| /' conftest.$ac_ext >&5
42588 eval "$as_ac_var=no"
42591 rm -rf conftest.dSYM
42592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42593 conftest$ac_exeext conftest.$ac_ext
42595 ac_res=`eval 'as_val=${'$as_ac_var'}
42596 $as_echo "$as_val"'`
42597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42598 $as_echo "$ac_res" >&6; }
42599 as_val=`eval 'as_val=${'$as_ac_var'}
42600 $as_echo "$as_val"'`
42601 if test "x$as_val" = x""yes; then
42603 cat >>confdefs.h <<_ACEOF
42604 #define CRAY_STACKSEG_END $ac_func
42613 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
42614 $as_echo_n "checking stack direction for C alloca... " >&6; }
42615 if test "${ac_cv_c_stack_direction+set}" = set; then
42616 $as_echo_n "(cached) " >&6
42618 if test "$cross_compiling" = yes; then
42619 ac_cv_c_stack_direction=0
42621 cat >conftest.$ac_ext <<_ACEOF
42624 cat confdefs.h >>conftest.$ac_ext
42625 cat >>conftest.$ac_ext <<_ACEOF
42626 /* end confdefs.h. */
42627 $ac_includes_default
42629 find_stack_direction ()
42631 static char *addr = 0;
42636 return find_stack_direction ();
42639 return (&dummy > addr) ? 1 : -1;
42645 return find_stack_direction () < 0;
42648 rm -f conftest$ac_exeext
42649 if { (ac_try="$ac_link"
42650 case "(($ac_try" in
42651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42652 *) ac_try_echo=$ac_try;;
42654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42655 $as_echo "$ac_try_echo") >&5
42656 (eval "$ac_link") 2>&5
42658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42660 { (case "(($ac_try" in
42661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42662 *) ac_try_echo=$ac_try;;
42664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42665 $as_echo "$ac_try_echo") >&5
42666 (eval "$ac_try") 2>&5
42668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42669 (exit $ac_status); }; }; then
42670 ac_cv_c_stack_direction=1
42672 $as_echo "$as_me: program exited with status $ac_status" >&5
42673 $as_echo "$as_me: failed program was:" >&5
42674 sed 's/^/| /' conftest.$ac_ext >&5
42676 ( exit $ac_status )
42677 ac_cv_c_stack_direction=-1
42679 rm -rf conftest.dSYM
42680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42685 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
42686 $as_echo "$ac_cv_c_stack_direction" >&6; }
42688 cat >>confdefs.h <<_ACEOF
42689 #define STACK_DIRECTION $ac_cv_c_stack_direction
42695 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
42696 # -lseq on Dynix/PTX, -lgen on Unixware.
42697 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
42698 $as_echo_n "checking for library containing getmntent... " >&6; }
42699 if test "${ac_cv_search_getmntent+set}" = set; then
42700 $as_echo_n "(cached) " >&6
42702 ac_func_search_save_LIBS=$LIBS
42703 cat >conftest.$ac_ext <<_ACEOF
42706 cat confdefs.h >>conftest.$ac_ext
42707 cat >>conftest.$ac_ext <<_ACEOF
42708 /* end confdefs.h. */
42710 /* Override any GCC internal prototype to avoid an error.
42711 Use char because int might match the return type of a GCC
42712 builtin and then its argument prototype would still apply. */
42720 return getmntent ();
42725 for ac_lib in '' sun seq gen; do
42726 if test -z "$ac_lib"; then
42727 ac_res="none required"
42730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
42732 rm -f conftest.$ac_objext conftest$ac_exeext
42733 if { (ac_try="$ac_link"
42734 case "(($ac_try" in
42735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42736 *) ac_try_echo=$ac_try;;
42738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42739 $as_echo "$ac_try_echo") >&5
42740 (eval "$ac_link") 2>conftest.er1
42742 grep -v '^ *+' conftest.er1 >conftest.err
42744 cat conftest.err >&5
42745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746 (exit $ac_status); } && {
42747 test -z "$ac_c_werror_flag" ||
42748 test ! -s conftest.err
42749 } && test -s conftest$ac_exeext && {
42750 test "$cross_compiling" = yes ||
42751 $as_test_x conftest$ac_exeext
42753 ac_cv_search_getmntent=$ac_res
42755 $as_echo "$as_me: failed program was:" >&5
42756 sed 's/^/| /' conftest.$ac_ext >&5
42761 rm -rf conftest.dSYM
42762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42764 if test "${ac_cv_search_getmntent+set}" = set; then
42768 if test "${ac_cv_search_getmntent+set}" = set; then
42771 ac_cv_search_getmntent=no
42773 rm conftest.$ac_ext
42774 LIBS=$ac_func_search_save_LIBS
42776 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
42777 $as_echo "$ac_cv_search_getmntent" >&6; }
42778 ac_res=$ac_cv_search_getmntent
42779 if test "$ac_res" != no; then
42780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42781 ac_cv_func_getmntent=yes
42783 cat >>confdefs.h <<\_ACEOF
42784 #define HAVE_GETMNTENT 1
42788 ac_cv_func_getmntent=no
42793 for ac_func in getmntinfo
42795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42797 $as_echo_n "checking for $ac_func... " >&6; }
42798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42799 $as_echo_n "(cached) " >&6
42801 cat >conftest.$ac_ext <<_ACEOF
42804 cat confdefs.h >>conftest.$ac_ext
42805 cat >>conftest.$ac_ext <<_ACEOF
42806 /* end confdefs.h. */
42807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42809 #define $ac_func innocuous_$ac_func
42811 /* System header to define __stub macros and hopefully few prototypes,
42812 which can conflict with char $ac_func (); below.
42813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42814 <limits.h> exists even on freestanding compilers. */
42817 # include <limits.h>
42819 # include <assert.h>
42824 /* Override any GCC internal prototype to avoid an error.
42825 Use char because int might match the return type of a GCC
42826 builtin and then its argument prototype would still apply. */
42831 /* The GNU C library defines this for functions which it implements
42832 to always fail with ENOSYS. Some functions are actually named
42833 something starting with __ and the normal name is an alias. */
42834 #if defined __stub_$ac_func || defined __stub___$ac_func
42841 return $ac_func ();
42846 rm -f conftest.$ac_objext conftest$ac_exeext
42847 if { (ac_try="$ac_link"
42848 case "(($ac_try" in
42849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42850 *) ac_try_echo=$ac_try;;
42852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42853 $as_echo "$ac_try_echo") >&5
42854 (eval "$ac_link") 2>conftest.er1
42856 grep -v '^ *+' conftest.er1 >conftest.err
42858 cat conftest.err >&5
42859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42860 (exit $ac_status); } && {
42861 test -z "$ac_c_werror_flag" ||
42862 test ! -s conftest.err
42863 } && test -s conftest$ac_exeext && {
42864 test "$cross_compiling" = yes ||
42865 $as_test_x conftest$ac_exeext
42867 eval "$as_ac_var=yes"
42869 $as_echo "$as_me: failed program was:" >&5
42870 sed 's/^/| /' conftest.$ac_ext >&5
42872 eval "$as_ac_var=no"
42875 rm -rf conftest.dSYM
42876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42877 conftest$ac_exeext conftest.$ac_ext
42879 ac_res=`eval 'as_val=${'$as_ac_var'}
42880 $as_echo "$as_val"'`
42881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42882 $as_echo "$ac_res" >&6; }
42883 as_val=`eval 'as_val=${'$as_ac_var'}
42884 $as_echo "$as_val"'`
42885 if test "x$as_val" = x""yes; then
42886 cat >>confdefs.h <<_ACEOF
42887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42889 cat >>confdefs.h <<\_ACEOF
42890 #define HAVE_GETMNTINFO 1
42896 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
42897 $as_echo_n "checking whether closedir returns void... " >&6; }
42898 if test "${ac_cv_func_closedir_void+set}" = set; then
42899 $as_echo_n "(cached) " >&6
42901 if test "$cross_compiling" = yes; then
42902 ac_cv_func_closedir_void=yes
42904 cat >conftest.$ac_ext <<_ACEOF
42907 cat confdefs.h >>conftest.$ac_ext
42908 cat >>conftest.$ac_ext <<_ACEOF
42909 /* end confdefs.h. */
42910 $ac_includes_default
42911 #include <$ac_header_dirent>
42912 #ifndef __cplusplus
42919 return closedir (opendir (".")) != 0;
42924 rm -f conftest$ac_exeext
42925 if { (ac_try="$ac_link"
42926 case "(($ac_try" in
42927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42928 *) ac_try_echo=$ac_try;;
42930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42931 $as_echo "$ac_try_echo") >&5
42932 (eval "$ac_link") 2>&5
42934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42936 { (case "(($ac_try" in
42937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42938 *) ac_try_echo=$ac_try;;
42940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42941 $as_echo "$ac_try_echo") >&5
42942 (eval "$ac_try") 2>&5
42944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42945 (exit $ac_status); }; }; then
42946 ac_cv_func_closedir_void=no
42948 $as_echo "$as_me: program exited with status $ac_status" >&5
42949 $as_echo "$as_me: failed program was:" >&5
42950 sed 's/^/| /' conftest.$ac_ext >&5
42952 ( exit $ac_status )
42953 ac_cv_func_closedir_void=yes
42955 rm -rf conftest.dSYM
42956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42961 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
42962 $as_echo "$ac_cv_func_closedir_void" >&6; }
42963 if test $ac_cv_func_closedir_void = yes; then
42965 cat >>confdefs.h <<\_ACEOF
42966 #define CLOSEDIR_VOID 1
42971 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
42972 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42973 if test "${ac_cv_func_setpgrp_void+set}" = set; then
42974 $as_echo_n "(cached) " >&6
42976 if test "$cross_compiling" = yes; then
42977 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
42978 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
42979 { (exit 1); exit 1; }; }
42981 cat >conftest.$ac_ext <<_ACEOF
42984 cat confdefs.h >>conftest.$ac_ext
42985 cat >>conftest.$ac_ext <<_ACEOF
42986 /* end confdefs.h. */
42987 $ac_includes_default
42991 /* If this system has a BSD-style setpgrp which takes arguments,
42992 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42993 exit successfully. */
42994 return setpgrp (1,1) != -1;
42999 rm -f conftest$ac_exeext
43000 if { (ac_try="$ac_link"
43001 case "(($ac_try" in
43002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43003 *) ac_try_echo=$ac_try;;
43005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43006 $as_echo "$ac_try_echo") >&5
43007 (eval "$ac_link") 2>&5
43009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43011 { (case "(($ac_try" in
43012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43013 *) ac_try_echo=$ac_try;;
43015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43016 $as_echo "$ac_try_echo") >&5
43017 (eval "$ac_try") 2>&5
43019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43020 (exit $ac_status); }; }; then
43021 ac_cv_func_setpgrp_void=no
43023 $as_echo "$as_me: program exited with status $ac_status" >&5
43024 $as_echo "$as_me: failed program was:" >&5
43025 sed 's/^/| /' conftest.$ac_ext >&5
43027 ( exit $ac_status )
43028 ac_cv_func_setpgrp_void=yes
43030 rm -rf conftest.dSYM
43031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43036 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
43037 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
43038 if test $ac_cv_func_setpgrp_void = yes; then
43040 cat >>confdefs.h <<\_ACEOF
43041 #define SETPGRP_VOID 1
43045 # AC_FUNC_FNMATCH dnl use local version
43047 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
43048 $as_echo_n "checking for gettext in -lintl... " >&6; }
43049 if test "${ac_cv_lib_intl_gettext+set}" = set; then
43050 $as_echo_n "(cached) " >&6
43052 ac_check_lib_save_LIBS=$LIBS
43053 LIBS="-lintl $LIBS"
43054 cat >conftest.$ac_ext <<_ACEOF
43057 cat confdefs.h >>conftest.$ac_ext
43058 cat >>conftest.$ac_ext <<_ACEOF
43059 /* end confdefs.h. */
43061 /* Override any GCC internal prototype to avoid an error.
43062 Use char because int might match the return type of a GCC
43063 builtin and then its argument prototype would still apply. */
43076 rm -f conftest.$ac_objext conftest$ac_exeext
43077 if { (ac_try="$ac_link"
43078 case "(($ac_try" in
43079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43080 *) ac_try_echo=$ac_try;;
43082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43083 $as_echo "$ac_try_echo") >&5
43084 (eval "$ac_link") 2>conftest.er1
43086 grep -v '^ *+' conftest.er1 >conftest.err
43088 cat conftest.err >&5
43089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43090 (exit $ac_status); } && {
43091 test -z "$ac_c_werror_flag" ||
43092 test ! -s conftest.err
43093 } && test -s conftest$ac_exeext && {
43094 test "$cross_compiling" = yes ||
43095 $as_test_x conftest$ac_exeext
43097 ac_cv_lib_intl_gettext=yes
43099 $as_echo "$as_me: failed program was:" >&5
43100 sed 's/^/| /' conftest.$ac_ext >&5
43102 ac_cv_lib_intl_gettext=no
43105 rm -rf conftest.dSYM
43106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43107 conftest$ac_exeext conftest.$ac_ext
43108 LIBS=$ac_check_lib_save_LIBS
43110 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
43111 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
43112 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
43113 LIBS="$LIBS -lintl"
43118 { $as_echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
43119 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
43120 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
43121 $as_echo_n "(cached) " >&6
43123 ac_check_lib_save_LIBS=$LIBS
43125 cat >conftest.$ac_ext <<_ACEOF
43128 cat confdefs.h >>conftest.$ac_ext
43129 cat >>conftest.$ac_ext <<_ACEOF
43130 /* end confdefs.h. */
43132 /* Override any GCC internal prototype to avoid an error.
43133 Use char because int might match the return type of a GCC
43134 builtin and then its argument prototype would still apply. */
43142 return getpwnam ();
43147 rm -f conftest.$ac_objext conftest$ac_exeext
43148 if { (ac_try="$ac_link"
43149 case "(($ac_try" in
43150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43151 *) ac_try_echo=$ac_try;;
43153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43154 $as_echo "$ac_try_echo") >&5
43155 (eval "$ac_link") 2>conftest.er1
43157 grep -v '^ *+' conftest.er1 >conftest.err
43159 cat conftest.err >&5
43160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43161 (exit $ac_status); } && {
43162 test -z "$ac_c_werror_flag" ||
43163 test ! -s conftest.err
43164 } && test -s conftest$ac_exeext && {
43165 test "$cross_compiling" = yes ||
43166 $as_test_x conftest$ac_exeext
43168 ac_cv_lib_sun_getpwnam=yes
43170 $as_echo "$as_me: failed program was:" >&5
43171 sed 's/^/| /' conftest.$ac_ext >&5
43173 ac_cv_lib_sun_getpwnam=no
43176 rm -rf conftest.dSYM
43177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43178 conftest$ac_exeext conftest.$ac_ext
43179 LIBS=$ac_check_lib_save_LIBS
43181 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
43182 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
43183 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then
43184 cat >>confdefs.h <<_ACEOF
43185 #define HAVE_LIBSUN 1
43194 for ac_header in zlib.h
43196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43198 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43199 $as_echo_n "checking for $ac_header... " >&6; }
43200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43201 $as_echo_n "(cached) " >&6
43203 ac_res=`eval 'as_val=${'$as_ac_Header'}
43204 $as_echo "$as_val"'`
43205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43206 $as_echo "$ac_res" >&6; }
43208 # Is the header compilable?
43209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43210 $as_echo_n "checking $ac_header usability... " >&6; }
43211 cat >conftest.$ac_ext <<_ACEOF
43214 cat confdefs.h >>conftest.$ac_ext
43215 cat >>conftest.$ac_ext <<_ACEOF
43216 /* end confdefs.h. */
43217 $ac_includes_default
43218 #include <$ac_header>
43220 rm -f conftest.$ac_objext
43221 if { (ac_try="$ac_compile"
43222 case "(($ac_try" in
43223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43224 *) ac_try_echo=$ac_try;;
43226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43227 $as_echo "$ac_try_echo") >&5
43228 (eval "$ac_compile") 2>conftest.er1
43230 grep -v '^ *+' conftest.er1 >conftest.err
43232 cat conftest.err >&5
43233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43234 (exit $ac_status); } && {
43235 test -z "$ac_c_werror_flag" ||
43236 test ! -s conftest.err
43237 } && test -s conftest.$ac_objext; then
43238 ac_header_compiler=yes
43240 $as_echo "$as_me: failed program was:" >&5
43241 sed 's/^/| /' conftest.$ac_ext >&5
43243 ac_header_compiler=no
43246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43248 $as_echo "$ac_header_compiler" >&6; }
43250 # Is the header present?
43251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43252 $as_echo_n "checking $ac_header presence... " >&6; }
43253 cat >conftest.$ac_ext <<_ACEOF
43256 cat confdefs.h >>conftest.$ac_ext
43257 cat >>conftest.$ac_ext <<_ACEOF
43258 /* end confdefs.h. */
43259 #include <$ac_header>
43261 if { (ac_try="$ac_cpp conftest.$ac_ext"
43262 case "(($ac_try" in
43263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43264 *) ac_try_echo=$ac_try;;
43266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43267 $as_echo "$ac_try_echo") >&5
43268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43270 grep -v '^ *+' conftest.er1 >conftest.err
43272 cat conftest.err >&5
43273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43274 (exit $ac_status); } >/dev/null && {
43275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43276 test ! -s conftest.err
43278 ac_header_preproc=yes
43280 $as_echo "$as_me: failed program was:" >&5
43281 sed 's/^/| /' conftest.$ac_ext >&5
43283 ac_header_preproc=no
43286 rm -f conftest.err conftest.$ac_ext
43287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43288 $as_echo "$ac_header_preproc" >&6; }
43290 # So? What about this header?
43291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43297 ac_header_preproc=yes
43300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43303 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43307 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43316 $as_echo_n "checking for $ac_header... " >&6; }
43317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43318 $as_echo_n "(cached) " >&6
43320 eval "$as_ac_Header=\$ac_header_preproc"
43322 ac_res=`eval 'as_val=${'$as_ac_Header'}
43323 $as_echo "$as_val"'`
43324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43325 $as_echo "$ac_res" >&6; }
43328 as_val=`eval 'as_val=${'$as_ac_Header'}
43329 $as_echo "$as_val"'`
43330 if test "x$as_val" = x""yes; then
43331 cat >>confdefs.h <<_ACEOF
43332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43339 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
43340 $as_echo_n "checking for deflate in -lz... " >&6; }
43341 if test "${ac_cv_lib_z_deflate+set}" = set; then
43342 $as_echo_n "(cached) " >&6
43344 ac_check_lib_save_LIBS=$LIBS
43346 cat >conftest.$ac_ext <<_ACEOF
43349 cat confdefs.h >>conftest.$ac_ext
43350 cat >>conftest.$ac_ext <<_ACEOF
43351 /* end confdefs.h. */
43353 /* Override any GCC internal prototype to avoid an error.
43354 Use char because int might match the return type of a GCC
43355 builtin and then its argument prototype would still apply. */
43368 rm -f conftest.$ac_objext conftest$ac_exeext
43369 if { (ac_try="$ac_link"
43370 case "(($ac_try" in
43371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43372 *) ac_try_echo=$ac_try;;
43374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43375 $as_echo "$ac_try_echo") >&5
43376 (eval "$ac_link") 2>conftest.er1
43378 grep -v '^ *+' conftest.er1 >conftest.err
43380 cat conftest.err >&5
43381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43382 (exit $ac_status); } && {
43383 test -z "$ac_c_werror_flag" ||
43384 test ! -s conftest.err
43385 } && test -s conftest$ac_exeext && {
43386 test "$cross_compiling" = yes ||
43387 $as_test_x conftest$ac_exeext
43389 ac_cv_lib_z_deflate=yes
43391 $as_echo "$as_me: failed program was:" >&5
43392 sed 's/^/| /' conftest.$ac_ext >&5
43394 ac_cv_lib_z_deflate=no
43397 rm -rf conftest.dSYM
43398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43399 conftest$ac_exeext conftest.$ac_ext
43400 LIBS=$ac_check_lib_save_LIBS
43402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
43403 $as_echo "$ac_cv_lib_z_deflate" >&6; }
43404 if test "x$ac_cv_lib_z_deflate" = x""yes; then
43409 if test x$ZLIBS = x-lz; then
43410 cat >>confdefs.h <<\_ACEOF
43411 #define HAVE_LIBZ 1
43419 # Check whether --enable-acl was given.
43420 if test "${enable_acl+set}" = set; then
43421 enableval=$enable_acl;
43422 if test x$enableval = xyes; then
43424 elif test x$enableval = xno; then
43433 have_extended_acl=no
43434 if test x$support_acl = xyes -o x$support_acl = xauto; then
43435 if test "${ac_cv_header_sys_acl_h+set}" = set; then
43436 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
43437 $as_echo_n "checking for sys/acl.h... " >&6; }
43438 if test "${ac_cv_header_sys_acl_h+set}" = set; then
43439 $as_echo_n "(cached) " >&6
43441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
43442 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
43444 # Is the header compilable?
43445 { $as_echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
43446 $as_echo_n "checking sys/acl.h usability... " >&6; }
43447 cat >conftest.$ac_ext <<_ACEOF
43450 cat confdefs.h >>conftest.$ac_ext
43451 cat >>conftest.$ac_ext <<_ACEOF
43452 /* end confdefs.h. */
43453 $ac_includes_default
43454 #include <sys/acl.h>
43456 rm -f conftest.$ac_objext
43457 if { (ac_try="$ac_compile"
43458 case "(($ac_try" in
43459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43460 *) ac_try_echo=$ac_try;;
43462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43463 $as_echo "$ac_try_echo") >&5
43464 (eval "$ac_compile") 2>conftest.er1
43466 grep -v '^ *+' conftest.er1 >conftest.err
43468 cat conftest.err >&5
43469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43470 (exit $ac_status); } && {
43471 test -z "$ac_c_werror_flag" ||
43472 test ! -s conftest.err
43473 } && test -s conftest.$ac_objext; then
43474 ac_header_compiler=yes
43476 $as_echo "$as_me: failed program was:" >&5
43477 sed 's/^/| /' conftest.$ac_ext >&5
43479 ac_header_compiler=no
43482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43484 $as_echo "$ac_header_compiler" >&6; }
43486 # Is the header present?
43487 { $as_echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
43488 $as_echo_n "checking sys/acl.h presence... " >&6; }
43489 cat >conftest.$ac_ext <<_ACEOF
43492 cat confdefs.h >>conftest.$ac_ext
43493 cat >>conftest.$ac_ext <<_ACEOF
43494 /* end confdefs.h. */
43495 #include <sys/acl.h>
43497 if { (ac_try="$ac_cpp conftest.$ac_ext"
43498 case "(($ac_try" in
43499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43500 *) ac_try_echo=$ac_try;;
43502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43503 $as_echo "$ac_try_echo") >&5
43504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43506 grep -v '^ *+' conftest.er1 >conftest.err
43508 cat conftest.err >&5
43509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43510 (exit $ac_status); } >/dev/null && {
43511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43512 test ! -s conftest.err
43514 ac_header_preproc=yes
43516 $as_echo "$as_me: failed program was:" >&5
43517 sed 's/^/| /' conftest.$ac_ext >&5
43519 ac_header_preproc=no
43522 rm -f conftest.err conftest.$ac_ext
43523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43524 $as_echo "$ac_header_preproc" >&6; }
43526 # So? What about this header?
43527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43529 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
43530 $as_echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43531 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
43532 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
43533 ac_header_preproc=yes
43536 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
43537 $as_echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
43538 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
43539 $as_echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
43540 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
43541 $as_echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
43542 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
43543 $as_echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
43544 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
43545 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
43546 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
43547 $as_echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
43551 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
43552 $as_echo_n "checking for sys/acl.h... " >&6; }
43553 if test "${ac_cv_header_sys_acl_h+set}" = set; then
43554 $as_echo_n "(cached) " >&6
43556 ac_cv_header_sys_acl_h=$ac_header_preproc
43558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
43559 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
43562 if test "x$ac_cv_header_sys_acl_h" = x""yes; then
43564 cat >>confdefs.h <<\_ACEOF
43565 #define HAVE_SYS_ACL_H 1
43572 { $as_echo "$as_me:$LINENO: checking for acl_get_file" >&5
43573 $as_echo_n "checking for acl_get_file... " >&6; }
43574 if test "${ac_cv_func_acl_get_file+set}" = set; then
43575 $as_echo_n "(cached) " >&6
43577 cat >conftest.$ac_ext <<_ACEOF
43580 cat confdefs.h >>conftest.$ac_ext
43581 cat >>conftest.$ac_ext <<_ACEOF
43582 /* end confdefs.h. */
43583 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
43584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43585 #define acl_get_file innocuous_acl_get_file
43587 /* System header to define __stub macros and hopefully few prototypes,
43588 which can conflict with char acl_get_file (); below.
43589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43590 <limits.h> exists even on freestanding compilers. */
43593 # include <limits.h>
43595 # include <assert.h>
43598 #undef acl_get_file
43600 /* Override any GCC internal prototype to avoid an error.
43601 Use char because int might match the return type of a GCC
43602 builtin and then its argument prototype would still apply. */
43606 char acl_get_file ();
43607 /* The GNU C library defines this for functions which it implements
43608 to always fail with ENOSYS. Some functions are actually named
43609 something starting with __ and the normal name is an alias. */
43610 #if defined __stub_acl_get_file || defined __stub___acl_get_file
43617 return acl_get_file ();
43622 rm -f conftest.$ac_objext conftest$ac_exeext
43623 if { (ac_try="$ac_link"
43624 case "(($ac_try" in
43625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43626 *) ac_try_echo=$ac_try;;
43628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43629 $as_echo "$ac_try_echo") >&5
43630 (eval "$ac_link") 2>conftest.er1
43632 grep -v '^ *+' conftest.er1 >conftest.err
43634 cat conftest.err >&5
43635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43636 (exit $ac_status); } && {
43637 test -z "$ac_c_werror_flag" ||
43638 test ! -s conftest.err
43639 } && test -s conftest$ac_exeext && {
43640 test "$cross_compiling" = yes ||
43641 $as_test_x conftest$ac_exeext
43643 ac_cv_func_acl_get_file=yes
43645 $as_echo "$as_me: failed program was:" >&5
43646 sed 's/^/| /' conftest.$ac_ext >&5
43648 ac_cv_func_acl_get_file=no
43651 rm -rf conftest.dSYM
43652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43653 conftest$ac_exeext conftest.$ac_ext
43655 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
43656 $as_echo "$ac_cv_func_acl_get_file" >&6; }
43657 if test "x$ac_cv_func_acl_get_file" = x""yes; then
43665 if test $have_acl = no; then
43666 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
43667 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
43668 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
43669 $as_echo_n "(cached) " >&6
43671 ac_check_lib_save_LIBS=$LIBS
43673 cat >conftest.$ac_ext <<_ACEOF
43676 cat confdefs.h >>conftest.$ac_ext
43677 cat >>conftest.$ac_ext <<_ACEOF
43678 /* end confdefs.h. */
43680 /* Override any GCC internal prototype to avoid an error.
43681 Use char because int might match the return type of a GCC
43682 builtin and then its argument prototype would still apply. */
43686 char acl_get_file ();
43690 return acl_get_file ();
43695 rm -f conftest.$ac_objext conftest$ac_exeext
43696 if { (ac_try="$ac_link"
43697 case "(($ac_try" in
43698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43699 *) ac_try_echo=$ac_try;;
43701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43702 $as_echo "$ac_try_echo") >&5
43703 (eval "$ac_link") 2>conftest.er1
43705 grep -v '^ *+' conftest.er1 >conftest.err
43707 cat conftest.err >&5
43708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43709 (exit $ac_status); } && {
43710 test -z "$ac_c_werror_flag" ||
43711 test ! -s conftest.err
43712 } && test -s conftest$ac_exeext && {
43713 test "$cross_compiling" = yes ||
43714 $as_test_x conftest$ac_exeext
43716 ac_cv_lib_acl_acl_get_file=yes
43718 $as_echo "$as_me: failed program was:" >&5
43719 sed 's/^/| /' conftest.$ac_ext >&5
43721 ac_cv_lib_acl_acl_get_file=no
43724 rm -rf conftest.dSYM
43725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43726 conftest$ac_exeext conftest.$ac_ext
43727 LIBS=$ac_check_lib_save_LIBS
43729 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
43730 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
43731 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
43734 if test $have_afs = yes; then
43735 if test -d /usr/lib64/; then
43736 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
43738 FDLIBS="-L/usr/lib -lacl $FDLIBS"
43741 FDLIBS="-lacl $FDLIBS"
43749 if test $have_acl = no -a \
43750 x${HAVE_OSF1_OS_TRUE} = x; then
43751 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
43752 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
43753 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
43754 $as_echo_n "(cached) " >&6
43756 ac_check_lib_save_LIBS=$LIBS
43757 LIBS="-lpacl $LIBS"
43758 cat >conftest.$ac_ext <<_ACEOF
43761 cat confdefs.h >>conftest.$ac_ext
43762 cat >>conftest.$ac_ext <<_ACEOF
43763 /* end confdefs.h. */
43765 /* Override any GCC internal prototype to avoid an error.
43766 Use char because int might match the return type of a GCC
43767 builtin and then its argument prototype would still apply. */
43771 char acl_get_file ();
43775 return acl_get_file ();
43780 rm -f conftest.$ac_objext conftest$ac_exeext
43781 if { (ac_try="$ac_link"
43782 case "(($ac_try" in
43783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43784 *) ac_try_echo=$ac_try;;
43786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43787 $as_echo "$ac_try_echo") >&5
43788 (eval "$ac_link") 2>conftest.er1
43790 grep -v '^ *+' conftest.er1 >conftest.err
43792 cat conftest.err >&5
43793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43794 (exit $ac_status); } && {
43795 test -z "$ac_c_werror_flag" ||
43796 test ! -s conftest.err
43797 } && test -s conftest$ac_exeext && {
43798 test "$cross_compiling" = yes ||
43799 $as_test_x conftest$ac_exeext
43801 ac_cv_lib_pacl_acl_get_file=yes
43803 $as_echo "$as_me: failed program was:" >&5
43804 sed 's/^/| /' conftest.$ac_ext >&5
43806 ac_cv_lib_pacl_acl_get_file=no
43809 rm -rf conftest.dSYM
43810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43811 conftest$ac_exeext conftest.$ac_ext
43812 LIBS=$ac_check_lib_save_LIBS
43814 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
43815 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
43816 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then
43819 FDLIBS="-lpacl $FDLIBS"
43825 { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
43826 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
43827 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
43828 if test $? = 0; then
43830 cat >>confdefs.h <<\_ACEOF
43831 #define HAVE_ACL_TYPE_DEFAULT_DIR 1
43834 { $as_echo "$as_me:$LINENO: result: yes" >&5
43835 $as_echo "yes" >&6; }
43837 { $as_echo "$as_me:$LINENO: result: no" >&5
43838 $as_echo "no" >&6; }
43842 if test $have_acl = yes -a \
43843 x${HAVE_DARWIN_OS_TRUE} = x; then
43844 { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
43845 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
43846 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
43847 if test $? = 0; then
43849 cat >>confdefs.h <<\_ACEOF
43850 #define HAVE_ACL_TYPE_EXTENDED 1
43853 { $as_echo "$as_me:$LINENO: result: yes" >&5
43854 $as_echo "yes" >&6; }
43856 { $as_echo "$as_me:$LINENO: result: no" >&5
43857 $as_echo "no" >&6; }
43861 if test $have_acl = yes -a \
43862 x${HAVE_FREEBSD_OS_TRUE} = x; then
43863 { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
43864 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
43865 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
43866 if test $? = 0; then
43868 cat >>confdefs.h <<\_ACEOF
43869 #define HAVE_ACL_TYPE_NFS4 1
43872 { $as_echo "$as_me:$LINENO: result: yes" >&5
43873 $as_echo "yes" >&6; }
43875 { $as_echo "$as_me:$LINENO: result: no" >&5
43876 $as_echo "no" >&6; }
43880 if test $have_acl = no -a \
43881 x${HAVE_SUN_OS_TRUE} = x; then
43882 { $as_echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
43883 $as_echo_n "checking for acltotext in -lsec... " >&6; }
43884 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
43885 $as_echo_n "(cached) " >&6
43887 ac_check_lib_save_LIBS=$LIBS
43889 cat >conftest.$ac_ext <<_ACEOF
43892 cat confdefs.h >>conftest.$ac_ext
43893 cat >>conftest.$ac_ext <<_ACEOF
43894 /* end confdefs.h. */
43896 /* Override any GCC internal prototype to avoid an error.
43897 Use char because int might match the return type of a GCC
43898 builtin and then its argument prototype would still apply. */
43906 return acltotext ();
43911 rm -f conftest.$ac_objext conftest$ac_exeext
43912 if { (ac_try="$ac_link"
43913 case "(($ac_try" in
43914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43915 *) ac_try_echo=$ac_try;;
43917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43918 $as_echo "$ac_try_echo") >&5
43919 (eval "$ac_link") 2>conftest.er1
43921 grep -v '^ *+' conftest.er1 >conftest.err
43923 cat conftest.err >&5
43924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43925 (exit $ac_status); } && {
43926 test -z "$ac_c_werror_flag" ||
43927 test ! -s conftest.err
43928 } && test -s conftest$ac_exeext && {
43929 test "$cross_compiling" = yes ||
43930 $as_test_x conftest$ac_exeext
43932 ac_cv_lib_sec_acltotext=yes
43934 $as_echo "$as_me: failed program was:" >&5
43935 sed 's/^/| /' conftest.$ac_ext >&5
43937 ac_cv_lib_sec_acltotext=no
43940 rm -rf conftest.dSYM
43941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43942 conftest$ac_exeext conftest.$ac_ext
43943 LIBS=$ac_check_lib_save_LIBS
43945 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
43946 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
43947 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then
43950 FDLIBS="-lsec $FDLIBS"
43952 { $as_echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
43953 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
43954 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
43955 $as_echo_n "(cached) " >&6
43957 ac_check_lib_save_LIBS=$LIBS
43959 cat >conftest.$ac_ext <<_ACEOF
43962 cat confdefs.h >>conftest.$ac_ext
43963 cat >>conftest.$ac_ext <<_ACEOF
43964 /* end confdefs.h. */
43966 /* Override any GCC internal prototype to avoid an error.
43967 Use char because int might match the return type of a GCC
43968 builtin and then its argument prototype would still apply. */
43972 char acl_totext ();
43976 return acl_totext ();
43981 rm -f conftest.$ac_objext conftest$ac_exeext
43982 if { (ac_try="$ac_link"
43983 case "(($ac_try" in
43984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43985 *) ac_try_echo=$ac_try;;
43987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43988 $as_echo "$ac_try_echo") >&5
43989 (eval "$ac_link") 2>conftest.er1
43991 grep -v '^ *+' conftest.er1 >conftest.err
43993 cat conftest.err >&5
43994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995 (exit $ac_status); } && {
43996 test -z "$ac_c_werror_flag" ||
43997 test ! -s conftest.err
43998 } && test -s conftest$ac_exeext && {
43999 test "$cross_compiling" = yes ||
44000 $as_test_x conftest$ac_exeext
44002 ac_cv_lib_sec_acl_totext=yes
44004 $as_echo "$as_me: failed program was:" >&5
44005 sed 's/^/| /' conftest.$ac_ext >&5
44007 ac_cv_lib_sec_acl_totext=no
44010 rm -rf conftest.dSYM
44011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44012 conftest$ac_exeext conftest.$ac_ext
44013 LIBS=$ac_check_lib_save_LIBS
44015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
44016 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
44017 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then
44019 have_extended_acl=yes
44030 if test $have_acl = no -a \
44031 x${HAVE_AIX_OS_TRUE} = x; then
44032 { $as_echo "$as_me:$LINENO: checking for acl_get" >&5
44033 $as_echo_n "checking for acl_get... " >&6; }
44034 if test "${ac_cv_func_acl_get+set}" = set; then
44035 $as_echo_n "(cached) " >&6
44037 cat >conftest.$ac_ext <<_ACEOF
44040 cat confdefs.h >>conftest.$ac_ext
44041 cat >>conftest.$ac_ext <<_ACEOF
44042 /* end confdefs.h. */
44043 /* Define acl_get to an innocuous variant, in case <limits.h> declares acl_get.
44044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44045 #define acl_get innocuous_acl_get
44047 /* System header to define __stub macros and hopefully few prototypes,
44048 which can conflict with char acl_get (); below.
44049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44050 <limits.h> exists even on freestanding compilers. */
44053 # include <limits.h>
44055 # include <assert.h>
44060 /* Override any GCC internal prototype to avoid an error.
44061 Use char because int might match the return type of a GCC
44062 builtin and then its argument prototype would still apply. */
44067 /* The GNU C library defines this for functions which it implements
44068 to always fail with ENOSYS. Some functions are actually named
44069 something starting with __ and the normal name is an alias. */
44070 #if defined __stub_acl_get || defined __stub___acl_get
44082 rm -f conftest.$ac_objext conftest$ac_exeext
44083 if { (ac_try="$ac_link"
44084 case "(($ac_try" in
44085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44086 *) ac_try_echo=$ac_try;;
44088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44089 $as_echo "$ac_try_echo") >&5
44090 (eval "$ac_link") 2>conftest.er1
44092 grep -v '^ *+' conftest.er1 >conftest.err
44094 cat conftest.err >&5
44095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44096 (exit $ac_status); } && {
44097 test -z "$ac_c_werror_flag" ||
44098 test ! -s conftest.err
44099 } && test -s conftest$ac_exeext && {
44100 test "$cross_compiling" = yes ||
44101 $as_test_x conftest$ac_exeext
44103 ac_cv_func_acl_get=yes
44105 $as_echo "$as_me: failed program was:" >&5
44106 sed 's/^/| /' conftest.$ac_ext >&5
44108 ac_cv_func_acl_get=no
44111 rm -rf conftest.dSYM
44112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44113 conftest$ac_exeext conftest.$ac_ext
44115 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acl_get" >&5
44116 $as_echo "$ac_cv_func_acl_get" >&6; }
44117 if test "x$ac_cv_func_acl_get" = x""yes; then
44121 { $as_echo "$as_me:$LINENO: checking for aclx_get" >&5
44122 $as_echo_n "checking for aclx_get... " >&6; }
44123 if test "${ac_cv_func_aclx_get+set}" = set; then
44124 $as_echo_n "(cached) " >&6
44126 cat >conftest.$ac_ext <<_ACEOF
44129 cat confdefs.h >>conftest.$ac_ext
44130 cat >>conftest.$ac_ext <<_ACEOF
44131 /* end confdefs.h. */
44132 /* Define aclx_get to an innocuous variant, in case <limits.h> declares aclx_get.
44133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44134 #define aclx_get innocuous_aclx_get
44136 /* System header to define __stub macros and hopefully few prototypes,
44137 which can conflict with char aclx_get (); below.
44138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44139 <limits.h> exists even on freestanding compilers. */
44142 # include <limits.h>
44144 # include <assert.h>
44149 /* Override any GCC internal prototype to avoid an error.
44150 Use char because int might match the return type of a GCC
44151 builtin and then its argument prototype would still apply. */
44156 /* The GNU C library defines this for functions which it implements
44157 to always fail with ENOSYS. Some functions are actually named
44158 something starting with __ and the normal name is an alias. */
44159 #if defined __stub_aclx_get || defined __stub___aclx_get
44166 return aclx_get ();
44171 rm -f conftest.$ac_objext conftest$ac_exeext
44172 if { (ac_try="$ac_link"
44173 case "(($ac_try" in
44174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44175 *) ac_try_echo=$ac_try;;
44177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44178 $as_echo "$ac_try_echo") >&5
44179 (eval "$ac_link") 2>conftest.er1
44181 grep -v '^ *+' conftest.er1 >conftest.err
44183 cat conftest.err >&5
44184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185 (exit $ac_status); } && {
44186 test -z "$ac_c_werror_flag" ||
44187 test ! -s conftest.err
44188 } && test -s conftest$ac_exeext && {
44189 test "$cross_compiling" = yes ||
44190 $as_test_x conftest$ac_exeext
44192 ac_cv_func_aclx_get=yes
44194 $as_echo "$as_me: failed program was:" >&5
44195 sed 's/^/| /' conftest.$ac_ext >&5
44197 ac_cv_func_aclx_get=no
44200 rm -rf conftest.dSYM
44201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44202 conftest$ac_exeext conftest.$ac_ext
44204 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_aclx_get" >&5
44205 $as_echo "$ac_cv_func_aclx_get" >&6; }
44206 if test "x$ac_cv_func_aclx_get" = x""yes; then
44208 have_extended_acl=yes
44219 if test x$support_acl = xyes -a $have_acl != yes; then
44220 { { $as_echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
44221 please either load the acl libraries or rerun configure without --enable-acl" >&5
44222 $as_echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
44223 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
44224 { (exit 1); exit 1; }; }
44226 if test $have_acl = yes; then
44228 cat >>confdefs.h <<\_ACEOF
44234 if test $have_extended_acl = yes; then
44236 cat >>confdefs.h <<\_ACEOF
44237 #define HAVE_EXTENDED_ACL 1
44245 # Check whether --enable-xattr was given.
44246 if test "${enable_xattr+set}" = set; then
44247 enableval=$enable_xattr;
44248 if test x$enableval = xyes; then
44250 elif test x$enableval = xno; then
44259 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
44260 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
44261 x${HAVE_NETBSD_OS_TRUE} = x -o \
44262 x${HAVE_OPENBSD_OS_TRUE} = x; then
44263 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
44264 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
44265 $as_echo_n "checking for sys/extattr.h... " >&6; }
44266 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
44267 $as_echo_n "(cached) " >&6
44269 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
44270 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
44272 # Is the header compilable?
44273 { $as_echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
44274 $as_echo_n "checking sys/extattr.h usability... " >&6; }
44275 cat >conftest.$ac_ext <<_ACEOF
44278 cat confdefs.h >>conftest.$ac_ext
44279 cat >>conftest.$ac_ext <<_ACEOF
44280 /* end confdefs.h. */
44281 $ac_includes_default
44282 #include <sys/extattr.h>
44284 rm -f conftest.$ac_objext
44285 if { (ac_try="$ac_compile"
44286 case "(($ac_try" in
44287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44288 *) ac_try_echo=$ac_try;;
44290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44291 $as_echo "$ac_try_echo") >&5
44292 (eval "$ac_compile") 2>conftest.er1
44294 grep -v '^ *+' conftest.er1 >conftest.err
44296 cat conftest.err >&5
44297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44298 (exit $ac_status); } && {
44299 test -z "$ac_c_werror_flag" ||
44300 test ! -s conftest.err
44301 } && test -s conftest.$ac_objext; then
44302 ac_header_compiler=yes
44304 $as_echo "$as_me: failed program was:" >&5
44305 sed 's/^/| /' conftest.$ac_ext >&5
44307 ac_header_compiler=no
44310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44312 $as_echo "$ac_header_compiler" >&6; }
44314 # Is the header present?
44315 { $as_echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
44316 $as_echo_n "checking sys/extattr.h presence... " >&6; }
44317 cat >conftest.$ac_ext <<_ACEOF
44320 cat confdefs.h >>conftest.$ac_ext
44321 cat >>conftest.$ac_ext <<_ACEOF
44322 /* end confdefs.h. */
44323 #include <sys/extattr.h>
44325 if { (ac_try="$ac_cpp conftest.$ac_ext"
44326 case "(($ac_try" in
44327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44328 *) ac_try_echo=$ac_try;;
44330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44331 $as_echo "$ac_try_echo") >&5
44332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44334 grep -v '^ *+' conftest.er1 >conftest.err
44336 cat conftest.err >&5
44337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44338 (exit $ac_status); } >/dev/null && {
44339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44340 test ! -s conftest.err
44342 ac_header_preproc=yes
44344 $as_echo "$as_me: failed program was:" >&5
44345 sed 's/^/| /' conftest.$ac_ext >&5
44347 ac_header_preproc=no
44350 rm -f conftest.err conftest.$ac_ext
44351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44352 $as_echo "$ac_header_preproc" >&6; }
44354 # So? What about this header?
44355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44357 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44358 $as_echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44359 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
44360 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
44361 ac_header_preproc=yes
44364 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
44365 $as_echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
44366 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
44367 $as_echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
44368 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
44369 $as_echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
44370 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
44371 $as_echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
44372 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
44373 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
44374 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
44375 $as_echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
44379 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
44380 $as_echo_n "checking for sys/extattr.h... " >&6; }
44381 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
44382 $as_echo_n "(cached) " >&6
44384 ac_cv_header_sys_extattr_h=$ac_header_preproc
44386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
44387 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
44390 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then
44392 cat >>confdefs.h <<\_ACEOF
44393 #define HAVE_SYS_EXTATTR_H 1
44399 if test "${ac_cv_header_libutil_h+set}" = set; then
44400 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
44401 $as_echo_n "checking for libutil.h... " >&6; }
44402 if test "${ac_cv_header_libutil_h+set}" = set; then
44403 $as_echo_n "(cached) " >&6
44405 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
44406 $as_echo "$ac_cv_header_libutil_h" >&6; }
44408 # Is the header compilable?
44409 { $as_echo "$as_me:$LINENO: checking libutil.h usability" >&5
44410 $as_echo_n "checking libutil.h usability... " >&6; }
44411 cat >conftest.$ac_ext <<_ACEOF
44414 cat confdefs.h >>conftest.$ac_ext
44415 cat >>conftest.$ac_ext <<_ACEOF
44416 /* end confdefs.h. */
44417 $ac_includes_default
44418 #include <libutil.h>
44420 rm -f conftest.$ac_objext
44421 if { (ac_try="$ac_compile"
44422 case "(($ac_try" in
44423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44424 *) ac_try_echo=$ac_try;;
44426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44427 $as_echo "$ac_try_echo") >&5
44428 (eval "$ac_compile") 2>conftest.er1
44430 grep -v '^ *+' conftest.er1 >conftest.err
44432 cat conftest.err >&5
44433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44434 (exit $ac_status); } && {
44435 test -z "$ac_c_werror_flag" ||
44436 test ! -s conftest.err
44437 } && test -s conftest.$ac_objext; then
44438 ac_header_compiler=yes
44440 $as_echo "$as_me: failed program was:" >&5
44441 sed 's/^/| /' conftest.$ac_ext >&5
44443 ac_header_compiler=no
44446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44448 $as_echo "$ac_header_compiler" >&6; }
44450 # Is the header present?
44451 { $as_echo "$as_me:$LINENO: checking libutil.h presence" >&5
44452 $as_echo_n "checking libutil.h presence... " >&6; }
44453 cat >conftest.$ac_ext <<_ACEOF
44456 cat confdefs.h >>conftest.$ac_ext
44457 cat >>conftest.$ac_ext <<_ACEOF
44458 /* end confdefs.h. */
44459 #include <libutil.h>
44461 if { (ac_try="$ac_cpp conftest.$ac_ext"
44462 case "(($ac_try" in
44463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44464 *) ac_try_echo=$ac_try;;
44466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44467 $as_echo "$ac_try_echo") >&5
44468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44470 grep -v '^ *+' conftest.er1 >conftest.err
44472 cat conftest.err >&5
44473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44474 (exit $ac_status); } >/dev/null && {
44475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44476 test ! -s conftest.err
44478 ac_header_preproc=yes
44480 $as_echo "$as_me: failed program was:" >&5
44481 sed 's/^/| /' conftest.$ac_ext >&5
44483 ac_header_preproc=no
44486 rm -f conftest.err conftest.$ac_ext
44487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44488 $as_echo "$ac_header_preproc" >&6; }
44490 # So? What about this header?
44491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44493 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
44494 $as_echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44495 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
44496 $as_echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
44497 ac_header_preproc=yes
44500 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
44501 $as_echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
44502 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
44503 $as_echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
44504 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
44505 $as_echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
44506 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
44507 $as_echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
44508 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
44509 $as_echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
44510 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
44511 $as_echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
44515 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
44516 $as_echo_n "checking for libutil.h... " >&6; }
44517 if test "${ac_cv_header_libutil_h+set}" = set; then
44518 $as_echo_n "(cached) " >&6
44520 ac_cv_header_libutil_h=$ac_header_preproc
44522 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
44523 $as_echo "$ac_cv_header_libutil_h" >&6; }
44526 if test "x$ac_cv_header_libutil_h" = x""yes; then
44528 cat >>confdefs.h <<\_ACEOF
44529 #define HAVE_LIBUTIL_H 1
44538 for ac_func in extattr_get_link extattr_set_link extattr_list_link
44540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44542 $as_echo_n "checking for $ac_func... " >&6; }
44543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44544 $as_echo_n "(cached) " >&6
44546 cat >conftest.$ac_ext <<_ACEOF
44549 cat confdefs.h >>conftest.$ac_ext
44550 cat >>conftest.$ac_ext <<_ACEOF
44551 /* end confdefs.h. */
44552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44554 #define $ac_func innocuous_$ac_func
44556 /* System header to define __stub macros and hopefully few prototypes,
44557 which can conflict with char $ac_func (); below.
44558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44559 <limits.h> exists even on freestanding compilers. */
44562 # include <limits.h>
44564 # include <assert.h>
44569 /* Override any GCC internal prototype to avoid an error.
44570 Use char because int might match the return type of a GCC
44571 builtin and then its argument prototype would still apply. */
44576 /* The GNU C library defines this for functions which it implements
44577 to always fail with ENOSYS. Some functions are actually named
44578 something starting with __ and the normal name is an alias. */
44579 #if defined __stub_$ac_func || defined __stub___$ac_func
44586 return $ac_func ();
44591 rm -f conftest.$ac_objext conftest$ac_exeext
44592 if { (ac_try="$ac_link"
44593 case "(($ac_try" in
44594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44595 *) ac_try_echo=$ac_try;;
44597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44598 $as_echo "$ac_try_echo") >&5
44599 (eval "$ac_link") 2>conftest.er1
44601 grep -v '^ *+' conftest.er1 >conftest.err
44603 cat conftest.err >&5
44604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605 (exit $ac_status); } && {
44606 test -z "$ac_c_werror_flag" ||
44607 test ! -s conftest.err
44608 } && test -s conftest$ac_exeext && {
44609 test "$cross_compiling" = yes ||
44610 $as_test_x conftest$ac_exeext
44612 eval "$as_ac_var=yes"
44614 $as_echo "$as_me: failed program was:" >&5
44615 sed 's/^/| /' conftest.$ac_ext >&5
44617 eval "$as_ac_var=no"
44620 rm -rf conftest.dSYM
44621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44622 conftest$ac_exeext conftest.$ac_ext
44624 ac_res=`eval 'as_val=${'$as_ac_var'}
44625 $as_echo "$as_val"'`
44626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44627 $as_echo "$ac_res" >&6; }
44628 as_val=`eval 'as_val=${'$as_ac_var'}
44629 $as_echo "$as_val"'`
44630 if test "x$as_val" = x""yes; then
44631 cat >>confdefs.h <<_ACEOF
44632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44637 cat >>confdefs.h <<\_ACEOF
44638 #define HAVE_EXTATTR_GET_LINK 1
44642 cat >>confdefs.h <<\_ACEOF
44643 #define HAVE_EXTATTR_SET_LINK 1
44647 cat >>confdefs.h <<\_ACEOF
44648 #define HAVE_EXTATTR_LIST_LINK 1
44657 if test $have_xattr = no; then
44661 for ac_func in extattr_get_file extattr_set_file extattr_list_file
44663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44664 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44665 $as_echo_n "checking for $ac_func... " >&6; }
44666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44667 $as_echo_n "(cached) " >&6
44669 cat >conftest.$ac_ext <<_ACEOF
44672 cat confdefs.h >>conftest.$ac_ext
44673 cat >>conftest.$ac_ext <<_ACEOF
44674 /* end confdefs.h. */
44675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44677 #define $ac_func innocuous_$ac_func
44679 /* System header to define __stub macros and hopefully few prototypes,
44680 which can conflict with char $ac_func (); below.
44681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44682 <limits.h> exists even on freestanding compilers. */
44685 # include <limits.h>
44687 # include <assert.h>
44692 /* Override any GCC internal prototype to avoid an error.
44693 Use char because int might match the return type of a GCC
44694 builtin and then its argument prototype would still apply. */
44699 /* The GNU C library defines this for functions which it implements
44700 to always fail with ENOSYS. Some functions are actually named
44701 something starting with __ and the normal name is an alias. */
44702 #if defined __stub_$ac_func || defined __stub___$ac_func
44709 return $ac_func ();
44714 rm -f conftest.$ac_objext conftest$ac_exeext
44715 if { (ac_try="$ac_link"
44716 case "(($ac_try" in
44717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44718 *) ac_try_echo=$ac_try;;
44720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44721 $as_echo "$ac_try_echo") >&5
44722 (eval "$ac_link") 2>conftest.er1
44724 grep -v '^ *+' conftest.er1 >conftest.err
44726 cat conftest.err >&5
44727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44728 (exit $ac_status); } && {
44729 test -z "$ac_c_werror_flag" ||
44730 test ! -s conftest.err
44731 } && test -s conftest$ac_exeext && {
44732 test "$cross_compiling" = yes ||
44733 $as_test_x conftest$ac_exeext
44735 eval "$as_ac_var=yes"
44737 $as_echo "$as_me: failed program was:" >&5
44738 sed 's/^/| /' conftest.$ac_ext >&5
44740 eval "$as_ac_var=no"
44743 rm -rf conftest.dSYM
44744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44745 conftest$ac_exeext conftest.$ac_ext
44747 ac_res=`eval 'as_val=${'$as_ac_var'}
44748 $as_echo "$as_val"'`
44749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44750 $as_echo "$ac_res" >&6; }
44751 as_val=`eval 'as_val=${'$as_ac_var'}
44752 $as_echo "$as_val"'`
44753 if test "x$as_val" = x""yes; then
44754 cat >>confdefs.h <<_ACEOF
44755 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44760 cat >>confdefs.h <<\_ACEOF
44761 #define HAVE_EXTATTR_GET_FILE 1
44765 cat >>confdefs.h <<\_ACEOF
44766 #define HAVE_EXTATTR_SET_FILE 1
44770 cat >>confdefs.h <<\_ACEOF
44771 #define HAVE_EXTATTR_LIST_FILE 1
44781 if test $have_xattr = yes; then
44782 have_extattr_string_in_libc=no
44785 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
44787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44788 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44789 $as_echo_n "checking for $ac_func... " >&6; }
44790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44791 $as_echo_n "(cached) " >&6
44793 cat >conftest.$ac_ext <<_ACEOF
44796 cat confdefs.h >>conftest.$ac_ext
44797 cat >>conftest.$ac_ext <<_ACEOF
44798 /* end confdefs.h. */
44799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44801 #define $ac_func innocuous_$ac_func
44803 /* System header to define __stub macros and hopefully few prototypes,
44804 which can conflict with char $ac_func (); below.
44805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44806 <limits.h> exists even on freestanding compilers. */
44809 # include <limits.h>
44811 # include <assert.h>
44816 /* Override any GCC internal prototype to avoid an error.
44817 Use char because int might match the return type of a GCC
44818 builtin and then its argument prototype would still apply. */
44823 /* The GNU C library defines this for functions which it implements
44824 to always fail with ENOSYS. Some functions are actually named
44825 something starting with __ and the normal name is an alias. */
44826 #if defined __stub_$ac_func || defined __stub___$ac_func
44833 return $ac_func ();
44838 rm -f conftest.$ac_objext conftest$ac_exeext
44839 if { (ac_try="$ac_link"
44840 case "(($ac_try" in
44841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44842 *) ac_try_echo=$ac_try;;
44844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44845 $as_echo "$ac_try_echo") >&5
44846 (eval "$ac_link") 2>conftest.er1
44848 grep -v '^ *+' conftest.er1 >conftest.err
44850 cat conftest.err >&5
44851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44852 (exit $ac_status); } && {
44853 test -z "$ac_c_werror_flag" ||
44854 test ! -s conftest.err
44855 } && test -s conftest$ac_exeext && {
44856 test "$cross_compiling" = yes ||
44857 $as_test_x conftest$ac_exeext
44859 eval "$as_ac_var=yes"
44861 $as_echo "$as_me: failed program was:" >&5
44862 sed 's/^/| /' conftest.$ac_ext >&5
44864 eval "$as_ac_var=no"
44867 rm -rf conftest.dSYM
44868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44869 conftest$ac_exeext conftest.$ac_ext
44871 ac_res=`eval 'as_val=${'$as_ac_var'}
44872 $as_echo "$as_val"'`
44873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44874 $as_echo "$ac_res" >&6; }
44875 as_val=`eval 'as_val=${'$as_ac_var'}
44876 $as_echo "$as_val"'`
44877 if test "x$as_val" = x""yes; then
44878 cat >>confdefs.h <<_ACEOF
44879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44882 have_extattr_string_in_libc=yes
44884 cat >>confdefs.h <<\_ACEOF
44885 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
44889 cat >>confdefs.h <<\_ACEOF
44890 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
44899 if test $have_extattr_string_in_libc = no; then
44900 { $as_echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
44901 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
44902 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
44903 $as_echo_n "(cached) " >&6
44905 ac_check_lib_save_LIBS=$LIBS
44906 LIBS="-lutil $LIBS"
44907 cat >conftest.$ac_ext <<_ACEOF
44910 cat confdefs.h >>conftest.$ac_ext
44911 cat >>conftest.$ac_ext <<_ACEOF
44912 /* end confdefs.h. */
44914 /* Override any GCC internal prototype to avoid an error.
44915 Use char because int might match the return type of a GCC
44916 builtin and then its argument prototype would still apply. */
44920 char extattr_namespace_to_string extattr_string_to_namespace ();
44924 return extattr_namespace_to_string extattr_string_to_namespace ();
44929 rm -f conftest.$ac_objext conftest$ac_exeext
44930 if { (ac_try="$ac_link"
44931 case "(($ac_try" in
44932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44933 *) ac_try_echo=$ac_try;;
44935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44936 $as_echo "$ac_try_echo") >&5
44937 (eval "$ac_link") 2>conftest.er1
44939 grep -v '^ *+' conftest.er1 >conftest.err
44941 cat conftest.err >&5
44942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44943 (exit $ac_status); } && {
44944 test -z "$ac_c_werror_flag" ||
44945 test ! -s conftest.err
44946 } && test -s conftest$ac_exeext && {
44947 test "$cross_compiling" = yes ||
44948 $as_test_x conftest$ac_exeext
44950 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
44952 $as_echo "$as_me: failed program was:" >&5
44953 sed 's/^/| /' conftest.$ac_ext >&5
44955 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
44958 rm -rf conftest.dSYM
44959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44960 conftest$ac_exeext conftest.$ac_ext
44961 LIBS=$ac_check_lib_save_LIBS
44963 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
44964 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
44965 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then
44968 cat >>confdefs.h <<\_ACEOF
44969 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
44973 cat >>confdefs.h <<\_ACEOF
44974 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
44977 FDLIBS="-lutil $FDLIBS"
44986 if test $have_xattr = no -a \
44987 x${HAVE_AIX_OS_TRUE} = x; then
44988 if test "${ac_cv_header_sys_ea_h+set}" = set; then
44989 { $as_echo "$as_me:$LINENO: checking for sys/ea.h" >&5
44990 $as_echo_n "checking for sys/ea.h... " >&6; }
44991 if test "${ac_cv_header_sys_ea_h+set}" = set; then
44992 $as_echo_n "(cached) " >&6
44994 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ea_h" >&5
44995 $as_echo "$ac_cv_header_sys_ea_h" >&6; }
44997 # Is the header compilable?
44998 { $as_echo "$as_me:$LINENO: checking sys/ea.h usability" >&5
44999 $as_echo_n "checking sys/ea.h usability... " >&6; }
45000 cat >conftest.$ac_ext <<_ACEOF
45003 cat confdefs.h >>conftest.$ac_ext
45004 cat >>conftest.$ac_ext <<_ACEOF
45005 /* end confdefs.h. */
45006 $ac_includes_default
45007 #include <sys/ea.h>
45009 rm -f conftest.$ac_objext
45010 if { (ac_try="$ac_compile"
45011 case "(($ac_try" in
45012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45013 *) ac_try_echo=$ac_try;;
45015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45016 $as_echo "$ac_try_echo") >&5
45017 (eval "$ac_compile") 2>conftest.er1
45019 grep -v '^ *+' conftest.er1 >conftest.err
45021 cat conftest.err >&5
45022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023 (exit $ac_status); } && {
45024 test -z "$ac_c_werror_flag" ||
45025 test ! -s conftest.err
45026 } && test -s conftest.$ac_objext; then
45027 ac_header_compiler=yes
45029 $as_echo "$as_me: failed program was:" >&5
45030 sed 's/^/| /' conftest.$ac_ext >&5
45032 ac_header_compiler=no
45035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45037 $as_echo "$ac_header_compiler" >&6; }
45039 # Is the header present?
45040 { $as_echo "$as_me:$LINENO: checking sys/ea.h presence" >&5
45041 $as_echo_n "checking sys/ea.h presence... " >&6; }
45042 cat >conftest.$ac_ext <<_ACEOF
45045 cat confdefs.h >>conftest.$ac_ext
45046 cat >>conftest.$ac_ext <<_ACEOF
45047 /* end confdefs.h. */
45048 #include <sys/ea.h>
45050 if { (ac_try="$ac_cpp conftest.$ac_ext"
45051 case "(($ac_try" in
45052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45053 *) ac_try_echo=$ac_try;;
45055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45056 $as_echo "$ac_try_echo") >&5
45057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45059 grep -v '^ *+' conftest.er1 >conftest.err
45061 cat conftest.err >&5
45062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45063 (exit $ac_status); } >/dev/null && {
45064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45065 test ! -s conftest.err
45067 ac_header_preproc=yes
45069 $as_echo "$as_me: failed program was:" >&5
45070 sed 's/^/| /' conftest.$ac_ext >&5
45072 ac_header_preproc=no
45075 rm -f conftest.err conftest.$ac_ext
45076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45077 $as_echo "$ac_header_preproc" >&6; }
45079 # So? What about this header?
45080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45082 { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: accepted by the compiler, rejected by the preprocessor!" >&5
45083 $as_echo "$as_me: WARNING: sys/ea.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45084 { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: proceeding with the compiler's result" >&5
45085 $as_echo "$as_me: WARNING: sys/ea.h: proceeding with the compiler's result" >&2;}
45086 ac_header_preproc=yes
45089 { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: present but cannot be compiled" >&5
45090 $as_echo "$as_me: WARNING: sys/ea.h: present but cannot be compiled" >&2;}
45091 { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: check for missing prerequisite headers?" >&5
45092 $as_echo "$as_me: WARNING: sys/ea.h: check for missing prerequisite headers?" >&2;}
45093 { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: see the Autoconf documentation" >&5
45094 $as_echo "$as_me: WARNING: sys/ea.h: see the Autoconf documentation" >&2;}
45095 { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: section \"Present But Cannot Be Compiled\"" >&5
45096 $as_echo "$as_me: WARNING: sys/ea.h: section \"Present But Cannot Be Compiled\"" >&2;}
45097 { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: proceeding with the preprocessor's result" >&5
45098 $as_echo "$as_me: WARNING: sys/ea.h: proceeding with the preprocessor's result" >&2;}
45099 { $as_echo "$as_me:$LINENO: WARNING: sys/ea.h: in the future, the compiler will take precedence" >&5
45100 $as_echo "$as_me: WARNING: sys/ea.h: in the future, the compiler will take precedence" >&2;}
45104 { $as_echo "$as_me:$LINENO: checking for sys/ea.h" >&5
45105 $as_echo_n "checking for sys/ea.h... " >&6; }
45106 if test "${ac_cv_header_sys_ea_h+set}" = set; then
45107 $as_echo_n "(cached) " >&6
45109 ac_cv_header_sys_ea_h=$ac_header_preproc
45111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ea_h" >&5
45112 $as_echo "$ac_cv_header_sys_ea_h" >&6; }
45115 if test "x$ac_cv_header_sys_ea_h" = x""yes; then
45117 cat >>confdefs.h <<\_ACEOF
45118 #define HAVE_SYS_EA_H 1
45127 for ac_func in llistea lgetea lsetea
45129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45131 $as_echo_n "checking for $ac_func... " >&6; }
45132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45133 $as_echo_n "(cached) " >&6
45135 cat >conftest.$ac_ext <<_ACEOF
45138 cat confdefs.h >>conftest.$ac_ext
45139 cat >>conftest.$ac_ext <<_ACEOF
45140 /* end confdefs.h. */
45141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45143 #define $ac_func innocuous_$ac_func
45145 /* System header to define __stub macros and hopefully few prototypes,
45146 which can conflict with char $ac_func (); below.
45147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45148 <limits.h> exists even on freestanding compilers. */
45151 # include <limits.h>
45153 # include <assert.h>
45158 /* Override any GCC internal prototype to avoid an error.
45159 Use char because int might match the return type of a GCC
45160 builtin and then its argument prototype would still apply. */
45165 /* The GNU C library defines this for functions which it implements
45166 to always fail with ENOSYS. Some functions are actually named
45167 something starting with __ and the normal name is an alias. */
45168 #if defined __stub_$ac_func || defined __stub___$ac_func
45175 return $ac_func ();
45180 rm -f conftest.$ac_objext conftest$ac_exeext
45181 if { (ac_try="$ac_link"
45182 case "(($ac_try" in
45183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45184 *) ac_try_echo=$ac_try;;
45186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45187 $as_echo "$ac_try_echo") >&5
45188 (eval "$ac_link") 2>conftest.er1
45190 grep -v '^ *+' conftest.er1 >conftest.err
45192 cat conftest.err >&5
45193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45194 (exit $ac_status); } && {
45195 test -z "$ac_c_werror_flag" ||
45196 test ! -s conftest.err
45197 } && test -s conftest$ac_exeext && {
45198 test "$cross_compiling" = yes ||
45199 $as_test_x conftest$ac_exeext
45201 eval "$as_ac_var=yes"
45203 $as_echo "$as_me: failed program was:" >&5
45204 sed 's/^/| /' conftest.$ac_ext >&5
45206 eval "$as_ac_var=no"
45209 rm -rf conftest.dSYM
45210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45211 conftest$ac_exeext conftest.$ac_ext
45213 ac_res=`eval 'as_val=${'$as_ac_var'}
45214 $as_echo "$as_val"'`
45215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45216 $as_echo "$ac_res" >&6; }
45217 as_val=`eval 'as_val=${'$as_ac_var'}
45218 $as_echo "$as_val"'`
45219 if test "x$as_val" = x""yes; then
45220 cat >>confdefs.h <<_ACEOF
45221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45226 cat >>confdefs.h <<\_ACEOF
45227 #define HAVE_LLISTEA 1
45231 cat >>confdefs.h <<\_ACEOF
45232 #define HAVE_LGETEA 1
45236 cat >>confdefs.h <<\_ACEOF
45237 #define HAVE_LSETEA 1
45246 if test $have_xattr = no; then
45250 for ac_func in listea getea setea
45252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45253 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45254 $as_echo_n "checking for $ac_func... " >&6; }
45255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45256 $as_echo_n "(cached) " >&6
45258 cat >conftest.$ac_ext <<_ACEOF
45261 cat confdefs.h >>conftest.$ac_ext
45262 cat >>conftest.$ac_ext <<_ACEOF
45263 /* end confdefs.h. */
45264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45266 #define $ac_func innocuous_$ac_func
45268 /* System header to define __stub macros and hopefully few prototypes,
45269 which can conflict with char $ac_func (); below.
45270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45271 <limits.h> exists even on freestanding compilers. */
45274 # include <limits.h>
45276 # include <assert.h>
45281 /* Override any GCC internal prototype to avoid an error.
45282 Use char because int might match the return type of a GCC
45283 builtin and then its argument prototype would still apply. */
45288 /* The GNU C library defines this for functions which it implements
45289 to always fail with ENOSYS. Some functions are actually named
45290 something starting with __ and the normal name is an alias. */
45291 #if defined __stub_$ac_func || defined __stub___$ac_func
45298 return $ac_func ();
45303 rm -f conftest.$ac_objext conftest$ac_exeext
45304 if { (ac_try="$ac_link"
45305 case "(($ac_try" in
45306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45307 *) ac_try_echo=$ac_try;;
45309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45310 $as_echo "$ac_try_echo") >&5
45311 (eval "$ac_link") 2>conftest.er1
45313 grep -v '^ *+' conftest.er1 >conftest.err
45315 cat conftest.err >&5
45316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45317 (exit $ac_status); } && {
45318 test -z "$ac_c_werror_flag" ||
45319 test ! -s conftest.err
45320 } && test -s conftest$ac_exeext && {
45321 test "$cross_compiling" = yes ||
45322 $as_test_x conftest$ac_exeext
45324 eval "$as_ac_var=yes"
45326 $as_echo "$as_me: failed program was:" >&5
45327 sed 's/^/| /' conftest.$ac_ext >&5
45329 eval "$as_ac_var=no"
45332 rm -rf conftest.dSYM
45333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45334 conftest$ac_exeext conftest.$ac_ext
45336 ac_res=`eval 'as_val=${'$as_ac_var'}
45337 $as_echo "$as_val"'`
45338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45339 $as_echo "$ac_res" >&6; }
45340 as_val=`eval 'as_val=${'$as_ac_var'}
45341 $as_echo "$as_val"'`
45342 if test "x$as_val" = x""yes; then
45343 cat >>confdefs.h <<_ACEOF
45344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45349 cat >>confdefs.h <<\_ACEOF
45350 #define HAVE_LISTEA 1
45354 cat >>confdefs.h <<\_ACEOF
45355 #define HAVE_GETEA 1
45359 cat >>confdefs.h <<\_ACEOF
45360 #define HAVE_SETEA 1
45371 if test $have_xattr = no -a \
45372 x${HAVE_OSF1_OS_TRUE} = x; then
45373 if test "${ac_cv_header_sys_proplist_h+set}" = set; then
45374 { $as_echo "$as_me:$LINENO: checking for sys/proplist.h" >&5
45375 $as_echo_n "checking for sys/proplist.h... " >&6; }
45376 if test "${ac_cv_header_sys_proplist_h+set}" = set; then
45377 $as_echo_n "(cached) " >&6
45379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_proplist_h" >&5
45380 $as_echo "$ac_cv_header_sys_proplist_h" >&6; }
45382 # Is the header compilable?
45383 { $as_echo "$as_me:$LINENO: checking sys/proplist.h usability" >&5
45384 $as_echo_n "checking sys/proplist.h usability... " >&6; }
45385 cat >conftest.$ac_ext <<_ACEOF
45388 cat confdefs.h >>conftest.$ac_ext
45389 cat >>conftest.$ac_ext <<_ACEOF
45390 /* end confdefs.h. */
45391 $ac_includes_default
45392 #include <sys/proplist.h>
45394 rm -f conftest.$ac_objext
45395 if { (ac_try="$ac_compile"
45396 case "(($ac_try" in
45397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45398 *) ac_try_echo=$ac_try;;
45400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45401 $as_echo "$ac_try_echo") >&5
45402 (eval "$ac_compile") 2>conftest.er1
45404 grep -v '^ *+' conftest.er1 >conftest.err
45406 cat conftest.err >&5
45407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45408 (exit $ac_status); } && {
45409 test -z "$ac_c_werror_flag" ||
45410 test ! -s conftest.err
45411 } && test -s conftest.$ac_objext; then
45412 ac_header_compiler=yes
45414 $as_echo "$as_me: failed program was:" >&5
45415 sed 's/^/| /' conftest.$ac_ext >&5
45417 ac_header_compiler=no
45420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45421 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45422 $as_echo "$ac_header_compiler" >&6; }
45424 # Is the header present?
45425 { $as_echo "$as_me:$LINENO: checking sys/proplist.h presence" >&5
45426 $as_echo_n "checking sys/proplist.h presence... " >&6; }
45427 cat >conftest.$ac_ext <<_ACEOF
45430 cat confdefs.h >>conftest.$ac_ext
45431 cat >>conftest.$ac_ext <<_ACEOF
45432 /* end confdefs.h. */
45433 #include <sys/proplist.h>
45435 if { (ac_try="$ac_cpp conftest.$ac_ext"
45436 case "(($ac_try" in
45437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45438 *) ac_try_echo=$ac_try;;
45440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45441 $as_echo "$ac_try_echo") >&5
45442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45444 grep -v '^ *+' conftest.er1 >conftest.err
45446 cat conftest.err >&5
45447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448 (exit $ac_status); } >/dev/null && {
45449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45450 test ! -s conftest.err
45452 ac_header_preproc=yes
45454 $as_echo "$as_me: failed program was:" >&5
45455 sed 's/^/| /' conftest.$ac_ext >&5
45457 ac_header_preproc=no
45460 rm -f conftest.err conftest.$ac_ext
45461 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45462 $as_echo "$ac_header_preproc" >&6; }
45464 # So? What about this header?
45465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45467 { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: accepted by the compiler, rejected by the preprocessor!" >&5
45468 $as_echo "$as_me: WARNING: sys/proplist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45469 { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: proceeding with the compiler's result" >&5
45470 $as_echo "$as_me: WARNING: sys/proplist.h: proceeding with the compiler's result" >&2;}
45471 ac_header_preproc=yes
45474 { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: present but cannot be compiled" >&5
45475 $as_echo "$as_me: WARNING: sys/proplist.h: present but cannot be compiled" >&2;}
45476 { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: check for missing prerequisite headers?" >&5
45477 $as_echo "$as_me: WARNING: sys/proplist.h: check for missing prerequisite headers?" >&2;}
45478 { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: see the Autoconf documentation" >&5
45479 $as_echo "$as_me: WARNING: sys/proplist.h: see the Autoconf documentation" >&2;}
45480 { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: section \"Present But Cannot Be Compiled\"" >&5
45481 $as_echo "$as_me: WARNING: sys/proplist.h: section \"Present But Cannot Be Compiled\"" >&2;}
45482 { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: proceeding with the preprocessor's result" >&5
45483 $as_echo "$as_me: WARNING: sys/proplist.h: proceeding with the preprocessor's result" >&2;}
45484 { $as_echo "$as_me:$LINENO: WARNING: sys/proplist.h: in the future, the compiler will take precedence" >&5
45485 $as_echo "$as_me: WARNING: sys/proplist.h: in the future, the compiler will take precedence" >&2;}
45489 { $as_echo "$as_me:$LINENO: checking for sys/proplist.h" >&5
45490 $as_echo_n "checking for sys/proplist.h... " >&6; }
45491 if test "${ac_cv_header_sys_proplist_h+set}" = set; then
45492 $as_echo_n "(cached) " >&6
45494 ac_cv_header_sys_proplist_h=$ac_header_preproc
45496 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_proplist_h" >&5
45497 $as_echo "$ac_cv_header_sys_proplist_h" >&6; }
45500 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then
45502 cat >>confdefs.h <<\_ACEOF
45503 #define HAVE_SYS_PROPLIST_H 1
45514 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
45516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45518 $as_echo_n "checking for $ac_func... " >&6; }
45519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45520 $as_echo_n "(cached) " >&6
45522 cat >conftest.$ac_ext <<_ACEOF
45525 cat confdefs.h >>conftest.$ac_ext
45526 cat >>conftest.$ac_ext <<_ACEOF
45527 /* end confdefs.h. */
45528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45530 #define $ac_func innocuous_$ac_func
45532 /* System header to define __stub macros and hopefully few prototypes,
45533 which can conflict with char $ac_func (); below.
45534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45535 <limits.h> exists even on freestanding compilers. */
45538 # include <limits.h>
45540 # include <assert.h>
45545 /* Override any GCC internal prototype to avoid an error.
45546 Use char because int might match the return type of a GCC
45547 builtin and then its argument prototype would still apply. */
45552 /* The GNU C library defines this for functions which it implements
45553 to always fail with ENOSYS. Some functions are actually named
45554 something starting with __ and the normal name is an alias. */
45555 #if defined __stub_$ac_func || defined __stub___$ac_func
45562 return $ac_func ();
45567 rm -f conftest.$ac_objext conftest$ac_exeext
45568 if { (ac_try="$ac_link"
45569 case "(($ac_try" in
45570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45571 *) ac_try_echo=$ac_try;;
45573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45574 $as_echo "$ac_try_echo") >&5
45575 (eval "$ac_link") 2>conftest.er1
45577 grep -v '^ *+' conftest.er1 >conftest.err
45579 cat conftest.err >&5
45580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45581 (exit $ac_status); } && {
45582 test -z "$ac_c_werror_flag" ||
45583 test ! -s conftest.err
45584 } && test -s conftest$ac_exeext && {
45585 test "$cross_compiling" = yes ||
45586 $as_test_x conftest$ac_exeext
45588 eval "$as_ac_var=yes"
45590 $as_echo "$as_me: failed program was:" >&5
45591 sed 's/^/| /' conftest.$ac_ext >&5
45593 eval "$as_ac_var=no"
45596 rm -rf conftest.dSYM
45597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45598 conftest$ac_exeext conftest.$ac_ext
45600 ac_res=`eval 'as_val=${'$as_ac_var'}
45601 $as_echo "$as_val"'`
45602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45603 $as_echo "$ac_res" >&6; }
45604 as_val=`eval 'as_val=${'$as_ac_var'}
45605 $as_echo "$as_val"'`
45606 if test "x$as_val" = x""yes; then
45607 cat >>confdefs.h <<_ACEOF
45608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45613 cat >>confdefs.h <<\_ACEOF
45614 #define HAVE_GETPROPLIST 1
45618 cat >>confdefs.h <<\_ACEOF
45619 #define HAVE_GET_PROPLIST_ENTRY 1
45623 cat >>confdefs.h <<\_ACEOF
45624 #define HAVE_SIZEOF_PROPLIST_ENTRY 1
45628 cat >>confdefs.h <<\_ACEOF
45629 #define HAVE_ADD_PROPLIST_ENTRY 1
45633 cat >>confdefs.h <<\_ACEOF
45634 #define HAVE_SETPROPLIST 1
45644 if test $have_xattr = no -a \
45645 x${HAVE_SUN_OS_TRUE} = x; then
45646 if test "${ac_cv_header_sys_attr_h+set}" = set; then
45647 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
45648 $as_echo_n "checking for sys/attr.h... " >&6; }
45649 if test "${ac_cv_header_sys_attr_h+set}" = set; then
45650 $as_echo_n "(cached) " >&6
45652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
45653 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
45655 # Is the header compilable?
45656 { $as_echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
45657 $as_echo_n "checking sys/attr.h usability... " >&6; }
45658 cat >conftest.$ac_ext <<_ACEOF
45661 cat confdefs.h >>conftest.$ac_ext
45662 cat >>conftest.$ac_ext <<_ACEOF
45663 /* end confdefs.h. */
45664 $ac_includes_default
45665 #include <sys/attr.h>
45667 rm -f conftest.$ac_objext
45668 if { (ac_try="$ac_compile"
45669 case "(($ac_try" in
45670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45671 *) ac_try_echo=$ac_try;;
45673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45674 $as_echo "$ac_try_echo") >&5
45675 (eval "$ac_compile") 2>conftest.er1
45677 grep -v '^ *+' conftest.er1 >conftest.err
45679 cat conftest.err >&5
45680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45681 (exit $ac_status); } && {
45682 test -z "$ac_c_werror_flag" ||
45683 test ! -s conftest.err
45684 } && test -s conftest.$ac_objext; then
45685 ac_header_compiler=yes
45687 $as_echo "$as_me: failed program was:" >&5
45688 sed 's/^/| /' conftest.$ac_ext >&5
45690 ac_header_compiler=no
45693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45694 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45695 $as_echo "$ac_header_compiler" >&6; }
45697 # Is the header present?
45698 { $as_echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
45699 $as_echo_n "checking sys/attr.h presence... " >&6; }
45700 cat >conftest.$ac_ext <<_ACEOF
45703 cat confdefs.h >>conftest.$ac_ext
45704 cat >>conftest.$ac_ext <<_ACEOF
45705 /* end confdefs.h. */
45706 #include <sys/attr.h>
45708 if { (ac_try="$ac_cpp conftest.$ac_ext"
45709 case "(($ac_try" in
45710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45711 *) ac_try_echo=$ac_try;;
45713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45714 $as_echo "$ac_try_echo") >&5
45715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45717 grep -v '^ *+' conftest.er1 >conftest.err
45719 cat conftest.err >&5
45720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45721 (exit $ac_status); } >/dev/null && {
45722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45723 test ! -s conftest.err
45725 ac_header_preproc=yes
45727 $as_echo "$as_me: failed program was:" >&5
45728 sed 's/^/| /' conftest.$ac_ext >&5
45730 ac_header_preproc=no
45733 rm -f conftest.err conftest.$ac_ext
45734 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45735 $as_echo "$ac_header_preproc" >&6; }
45737 # So? What about this header?
45738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45740 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
45741 $as_echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45742 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
45743 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
45744 ac_header_preproc=yes
45747 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
45748 $as_echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
45749 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
45750 $as_echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
45751 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
45752 $as_echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
45753 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
45754 $as_echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
45755 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
45756 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
45757 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
45758 $as_echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
45762 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
45763 $as_echo_n "checking for sys/attr.h... " >&6; }
45764 if test "${ac_cv_header_sys_attr_h+set}" = set; then
45765 $as_echo_n "(cached) " >&6
45767 ac_cv_header_sys_attr_h=$ac_header_preproc
45769 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
45770 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
45773 if test "x$ac_cv_header_sys_attr_h" = x""yes; then
45775 cat >>confdefs.h <<\_ACEOF
45776 #define HAVE_SYS_ATTR_H 1
45782 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
45783 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
45784 $as_echo_n "checking for sys/nvpair.h... " >&6; }
45785 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
45786 $as_echo_n "(cached) " >&6
45788 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
45789 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
45791 # Is the header compilable?
45792 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
45793 $as_echo_n "checking sys/nvpair.h usability... " >&6; }
45794 cat >conftest.$ac_ext <<_ACEOF
45797 cat confdefs.h >>conftest.$ac_ext
45798 cat >>conftest.$ac_ext <<_ACEOF
45799 /* end confdefs.h. */
45800 $ac_includes_default
45801 #include <sys/nvpair.h>
45803 rm -f conftest.$ac_objext
45804 if { (ac_try="$ac_compile"
45805 case "(($ac_try" in
45806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45807 *) ac_try_echo=$ac_try;;
45809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45810 $as_echo "$ac_try_echo") >&5
45811 (eval "$ac_compile") 2>conftest.er1
45813 grep -v '^ *+' conftest.er1 >conftest.err
45815 cat conftest.err >&5
45816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45817 (exit $ac_status); } && {
45818 test -z "$ac_c_werror_flag" ||
45819 test ! -s conftest.err
45820 } && test -s conftest.$ac_objext; then
45821 ac_header_compiler=yes
45823 $as_echo "$as_me: failed program was:" >&5
45824 sed 's/^/| /' conftest.$ac_ext >&5
45826 ac_header_compiler=no
45829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45830 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45831 $as_echo "$ac_header_compiler" >&6; }
45833 # Is the header present?
45834 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
45835 $as_echo_n "checking sys/nvpair.h presence... " >&6; }
45836 cat >conftest.$ac_ext <<_ACEOF
45839 cat confdefs.h >>conftest.$ac_ext
45840 cat >>conftest.$ac_ext <<_ACEOF
45841 /* end confdefs.h. */
45842 #include <sys/nvpair.h>
45844 if { (ac_try="$ac_cpp conftest.$ac_ext"
45845 case "(($ac_try" in
45846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45847 *) ac_try_echo=$ac_try;;
45849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45850 $as_echo "$ac_try_echo") >&5
45851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45853 grep -v '^ *+' conftest.er1 >conftest.err
45855 cat conftest.err >&5
45856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45857 (exit $ac_status); } >/dev/null && {
45858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45859 test ! -s conftest.err
45861 ac_header_preproc=yes
45863 $as_echo "$as_me: failed program was:" >&5
45864 sed 's/^/| /' conftest.$ac_ext >&5
45866 ac_header_preproc=no
45869 rm -f conftest.err conftest.$ac_ext
45870 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45871 $as_echo "$ac_header_preproc" >&6; }
45873 # So? What about this header?
45874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45876 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
45877 $as_echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45878 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
45879 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
45880 ac_header_preproc=yes
45883 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
45884 $as_echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
45885 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
45886 $as_echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
45887 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
45888 $as_echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
45889 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
45890 $as_echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
45891 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
45892 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
45893 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
45894 $as_echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
45898 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
45899 $as_echo_n "checking for sys/nvpair.h... " >&6; }
45900 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
45901 $as_echo_n "(cached) " >&6
45903 ac_cv_header_sys_nvpair_h=$ac_header_preproc
45905 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
45906 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
45909 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then
45911 cat >>confdefs.h <<\_ACEOF
45912 #define HAVE_SYS_NVPAIR_H 1
45918 if test "${ac_cv_header_attr_h+set}" = set; then
45919 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
45920 $as_echo_n "checking for attr.h... " >&6; }
45921 if test "${ac_cv_header_attr_h+set}" = set; then
45922 $as_echo_n "(cached) " >&6
45924 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
45925 $as_echo "$ac_cv_header_attr_h" >&6; }
45927 # Is the header compilable?
45928 { $as_echo "$as_me:$LINENO: checking attr.h usability" >&5
45929 $as_echo_n "checking attr.h usability... " >&6; }
45930 cat >conftest.$ac_ext <<_ACEOF
45933 cat confdefs.h >>conftest.$ac_ext
45934 cat >>conftest.$ac_ext <<_ACEOF
45935 /* end confdefs.h. */
45936 $ac_includes_default
45939 rm -f conftest.$ac_objext
45940 if { (ac_try="$ac_compile"
45941 case "(($ac_try" in
45942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45943 *) ac_try_echo=$ac_try;;
45945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45946 $as_echo "$ac_try_echo") >&5
45947 (eval "$ac_compile") 2>conftest.er1
45949 grep -v '^ *+' conftest.er1 >conftest.err
45951 cat conftest.err >&5
45952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45953 (exit $ac_status); } && {
45954 test -z "$ac_c_werror_flag" ||
45955 test ! -s conftest.err
45956 } && test -s conftest.$ac_objext; then
45957 ac_header_compiler=yes
45959 $as_echo "$as_me: failed program was:" >&5
45960 sed 's/^/| /' conftest.$ac_ext >&5
45962 ac_header_compiler=no
45965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45966 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45967 $as_echo "$ac_header_compiler" >&6; }
45969 # Is the header present?
45970 { $as_echo "$as_me:$LINENO: checking attr.h presence" >&5
45971 $as_echo_n "checking attr.h presence... " >&6; }
45972 cat >conftest.$ac_ext <<_ACEOF
45975 cat confdefs.h >>conftest.$ac_ext
45976 cat >>conftest.$ac_ext <<_ACEOF
45977 /* end confdefs.h. */
45980 if { (ac_try="$ac_cpp conftest.$ac_ext"
45981 case "(($ac_try" in
45982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45983 *) ac_try_echo=$ac_try;;
45985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45986 $as_echo "$ac_try_echo") >&5
45987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45989 grep -v '^ *+' conftest.er1 >conftest.err
45991 cat conftest.err >&5
45992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45993 (exit $ac_status); } >/dev/null && {
45994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45995 test ! -s conftest.err
45997 ac_header_preproc=yes
45999 $as_echo "$as_me: failed program was:" >&5
46000 sed 's/^/| /' conftest.$ac_ext >&5
46002 ac_header_preproc=no
46005 rm -f conftest.err conftest.$ac_ext
46006 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46007 $as_echo "$ac_header_preproc" >&6; }
46009 # So? What about this header?
46010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46012 { $as_echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
46013 $as_echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46014 { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
46015 $as_echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
46016 ac_header_preproc=yes
46019 { $as_echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
46020 $as_echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
46021 { $as_echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
46022 $as_echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
46023 { $as_echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
46024 $as_echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
46025 { $as_echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
46026 $as_echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
46027 { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
46028 $as_echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
46029 { $as_echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
46030 $as_echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
46034 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
46035 $as_echo_n "checking for attr.h... " >&6; }
46036 if test "${ac_cv_header_attr_h+set}" = set; then
46037 $as_echo_n "(cached) " >&6
46039 ac_cv_header_attr_h=$ac_header_preproc
46041 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
46042 $as_echo "$ac_cv_header_attr_h" >&6; }
46045 if test "x$ac_cv_header_attr_h" = x""yes; then
46047 cat >>confdefs.h <<\_ACEOF
46048 #define HAVE_ATTR_H 1
46060 for ac_func in openat fstatat unlinkat fchownat futimesat
46062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46063 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46064 $as_echo_n "checking for $ac_func... " >&6; }
46065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46066 $as_echo_n "(cached) " >&6
46068 cat >conftest.$ac_ext <<_ACEOF
46071 cat confdefs.h >>conftest.$ac_ext
46072 cat >>conftest.$ac_ext <<_ACEOF
46073 /* end confdefs.h. */
46074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46076 #define $ac_func innocuous_$ac_func
46078 /* System header to define __stub macros and hopefully few prototypes,
46079 which can conflict with char $ac_func (); below.
46080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46081 <limits.h> exists even on freestanding compilers. */
46084 # include <limits.h>
46086 # include <assert.h>
46091 /* Override any GCC internal prototype to avoid an error.
46092 Use char because int might match the return type of a GCC
46093 builtin and then its argument prototype would still apply. */
46098 /* The GNU C library defines this for functions which it implements
46099 to always fail with ENOSYS. Some functions are actually named
46100 something starting with __ and the normal name is an alias. */
46101 #if defined __stub_$ac_func || defined __stub___$ac_func
46108 return $ac_func ();
46113 rm -f conftest.$ac_objext conftest$ac_exeext
46114 if { (ac_try="$ac_link"
46115 case "(($ac_try" in
46116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46117 *) ac_try_echo=$ac_try;;
46119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46120 $as_echo "$ac_try_echo") >&5
46121 (eval "$ac_link") 2>conftest.er1
46123 grep -v '^ *+' conftest.er1 >conftest.err
46125 cat conftest.err >&5
46126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46127 (exit $ac_status); } && {
46128 test -z "$ac_c_werror_flag" ||
46129 test ! -s conftest.err
46130 } && test -s conftest$ac_exeext && {
46131 test "$cross_compiling" = yes ||
46132 $as_test_x conftest$ac_exeext
46134 eval "$as_ac_var=yes"
46136 $as_echo "$as_me: failed program was:" >&5
46137 sed 's/^/| /' conftest.$ac_ext >&5
46139 eval "$as_ac_var=no"
46142 rm -rf conftest.dSYM
46143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46144 conftest$ac_exeext conftest.$ac_ext
46146 ac_res=`eval 'as_val=${'$as_ac_var'}
46147 $as_echo "$as_val"'`
46148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46149 $as_echo "$ac_res" >&6; }
46150 as_val=`eval 'as_val=${'$as_ac_var'}
46151 $as_echo "$as_val"'`
46152 if test "x$as_val" = x""yes; then
46153 cat >>confdefs.h <<_ACEOF
46154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46159 cat >>confdefs.h <<\_ACEOF
46160 #define HAVE_OPENAT 1
46164 cat >>confdefs.h <<\_ACEOF
46165 #define HAVE_FSTATAT 1
46169 cat >>confdefs.h <<\_ACEOF
46170 #define HAVE_UNLINKAT 1
46174 cat >>confdefs.h <<\_ACEOF
46175 #define HAVE_FCHOWNAT 1
46179 cat >>confdefs.h <<\_ACEOF
46180 #define HAVE_FUTIMESAT 1
46189 if test $have_xattr = yes; then
46190 { $as_echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
46191 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
46192 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
46193 $as_echo_n "(cached) " >&6
46195 ac_check_lib_save_LIBS=$LIBS
46196 LIBS="-lnvpair $LIBS"
46197 cat >conftest.$ac_ext <<_ACEOF
46200 cat confdefs.h >>conftest.$ac_ext
46201 cat >>conftest.$ac_ext <<_ACEOF
46202 /* end confdefs.h. */
46204 /* Override any GCC internal prototype to avoid an error.
46205 Use char because int might match the return type of a GCC
46206 builtin and then its argument prototype would still apply. */
46210 char nvlist_next_nvpair ();
46214 return nvlist_next_nvpair ();
46219 rm -f conftest.$ac_objext conftest$ac_exeext
46220 if { (ac_try="$ac_link"
46221 case "(($ac_try" in
46222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46223 *) ac_try_echo=$ac_try;;
46225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46226 $as_echo "$ac_try_echo") >&5
46227 (eval "$ac_link") 2>conftest.er1
46229 grep -v '^ *+' conftest.er1 >conftest.err
46231 cat conftest.err >&5
46232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46233 (exit $ac_status); } && {
46234 test -z "$ac_c_werror_flag" ||
46235 test ! -s conftest.err
46236 } && test -s conftest$ac_exeext && {
46237 test "$cross_compiling" = yes ||
46238 $as_test_x conftest$ac_exeext
46240 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
46242 $as_echo "$as_me: failed program was:" >&5
46243 sed 's/^/| /' conftest.$ac_ext >&5
46245 ac_cv_lib_nvpair_nvlist_next_nvpair=no
46248 rm -rf conftest.dSYM
46249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46250 conftest$ac_exeext conftest.$ac_ext
46251 LIBS=$ac_check_lib_save_LIBS
46253 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
46254 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
46255 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then
46258 cat >>confdefs.h <<\_ACEOF
46259 #define HAVE_NVLIST_NEXT_NVPAIR 1
46262 FDLIBS="-lnvpair $FDLIBS"
46270 if test $have_xattr = no; then
46271 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
46272 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
46273 $as_echo_n "checking for sys/xattr.h... " >&6; }
46274 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
46275 $as_echo_n "(cached) " >&6
46277 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
46278 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
46280 # Is the header compilable?
46281 { $as_echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
46282 $as_echo_n "checking sys/xattr.h usability... " >&6; }
46283 cat >conftest.$ac_ext <<_ACEOF
46286 cat confdefs.h >>conftest.$ac_ext
46287 cat >>conftest.$ac_ext <<_ACEOF
46288 /* end confdefs.h. */
46289 $ac_includes_default
46290 #include <sys/xattr.h>
46292 rm -f conftest.$ac_objext
46293 if { (ac_try="$ac_compile"
46294 case "(($ac_try" in
46295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46296 *) ac_try_echo=$ac_try;;
46298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46299 $as_echo "$ac_try_echo") >&5
46300 (eval "$ac_compile") 2>conftest.er1
46302 grep -v '^ *+' conftest.er1 >conftest.err
46304 cat conftest.err >&5
46305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46306 (exit $ac_status); } && {
46307 test -z "$ac_c_werror_flag" ||
46308 test ! -s conftest.err
46309 } && test -s conftest.$ac_objext; then
46310 ac_header_compiler=yes
46312 $as_echo "$as_me: failed program was:" >&5
46313 sed 's/^/| /' conftest.$ac_ext >&5
46315 ac_header_compiler=no
46318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46319 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46320 $as_echo "$ac_header_compiler" >&6; }
46322 # Is the header present?
46323 { $as_echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
46324 $as_echo_n "checking sys/xattr.h presence... " >&6; }
46325 cat >conftest.$ac_ext <<_ACEOF
46328 cat confdefs.h >>conftest.$ac_ext
46329 cat >>conftest.$ac_ext <<_ACEOF
46330 /* end confdefs.h. */
46331 #include <sys/xattr.h>
46333 if { (ac_try="$ac_cpp conftest.$ac_ext"
46334 case "(($ac_try" in
46335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46336 *) ac_try_echo=$ac_try;;
46338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46339 $as_echo "$ac_try_echo") >&5
46340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46342 grep -v '^ *+' conftest.er1 >conftest.err
46344 cat conftest.err >&5
46345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46346 (exit $ac_status); } >/dev/null && {
46347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46348 test ! -s conftest.err
46350 ac_header_preproc=yes
46352 $as_echo "$as_me: failed program was:" >&5
46353 sed 's/^/| /' conftest.$ac_ext >&5
46355 ac_header_preproc=no
46358 rm -f conftest.err conftest.$ac_ext
46359 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46360 $as_echo "$ac_header_preproc" >&6; }
46362 # So? What about this header?
46363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46365 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
46366 $as_echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46367 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
46368 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
46369 ac_header_preproc=yes
46372 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
46373 $as_echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
46374 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
46375 $as_echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
46376 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
46377 $as_echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
46378 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
46379 $as_echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
46380 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
46381 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
46382 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
46383 $as_echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
46387 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
46388 $as_echo_n "checking for sys/xattr.h... " >&6; }
46389 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
46390 $as_echo_n "(cached) " >&6
46392 ac_cv_header_sys_xattr_h=$ac_header_preproc
46394 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
46395 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
46398 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then
46400 cat >>confdefs.h <<\_ACEOF
46401 #define HAVE_SYS_XATTR_H 1
46410 for ac_func in llistxattr lgetxattr lsetxattr
46412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46413 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46414 $as_echo_n "checking for $ac_func... " >&6; }
46415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46416 $as_echo_n "(cached) " >&6
46418 cat >conftest.$ac_ext <<_ACEOF
46421 cat confdefs.h >>conftest.$ac_ext
46422 cat >>conftest.$ac_ext <<_ACEOF
46423 /* end confdefs.h. */
46424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46426 #define $ac_func innocuous_$ac_func
46428 /* System header to define __stub macros and hopefully few prototypes,
46429 which can conflict with char $ac_func (); below.
46430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46431 <limits.h> exists even on freestanding compilers. */
46434 # include <limits.h>
46436 # include <assert.h>
46441 /* Override any GCC internal prototype to avoid an error.
46442 Use char because int might match the return type of a GCC
46443 builtin and then its argument prototype would still apply. */
46448 /* The GNU C library defines this for functions which it implements
46449 to always fail with ENOSYS. Some functions are actually named
46450 something starting with __ and the normal name is an alias. */
46451 #if defined __stub_$ac_func || defined __stub___$ac_func
46458 return $ac_func ();
46463 rm -f conftest.$ac_objext conftest$ac_exeext
46464 if { (ac_try="$ac_link"
46465 case "(($ac_try" in
46466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46467 *) ac_try_echo=$ac_try;;
46469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46470 $as_echo "$ac_try_echo") >&5
46471 (eval "$ac_link") 2>conftest.er1
46473 grep -v '^ *+' conftest.er1 >conftest.err
46475 cat conftest.err >&5
46476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46477 (exit $ac_status); } && {
46478 test -z "$ac_c_werror_flag" ||
46479 test ! -s conftest.err
46480 } && test -s conftest$ac_exeext && {
46481 test "$cross_compiling" = yes ||
46482 $as_test_x conftest$ac_exeext
46484 eval "$as_ac_var=yes"
46486 $as_echo "$as_me: failed program was:" >&5
46487 sed 's/^/| /' conftest.$ac_ext >&5
46489 eval "$as_ac_var=no"
46492 rm -rf conftest.dSYM
46493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46494 conftest$ac_exeext conftest.$ac_ext
46496 ac_res=`eval 'as_val=${'$as_ac_var'}
46497 $as_echo "$as_val"'`
46498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46499 $as_echo "$ac_res" >&6; }
46500 as_val=`eval 'as_val=${'$as_ac_var'}
46501 $as_echo "$as_val"'`
46502 if test "x$as_val" = x""yes; then
46503 cat >>confdefs.h <<_ACEOF
46504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46509 cat >>confdefs.h <<\_ACEOF
46510 #define HAVE_LLISTXATTR 1
46514 cat >>confdefs.h <<\_ACEOF
46515 #define HAVE_LGETXATTR 1
46519 cat >>confdefs.h <<\_ACEOF
46520 #define HAVE_LSETXATTR 1
46529 if test $have_xattr = no; then
46533 for ac_func in listxattr getxattr setxattr
46535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46536 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46537 $as_echo_n "checking for $ac_func... " >&6; }
46538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46539 $as_echo_n "(cached) " >&6
46541 cat >conftest.$ac_ext <<_ACEOF
46544 cat confdefs.h >>conftest.$ac_ext
46545 cat >>conftest.$ac_ext <<_ACEOF
46546 /* end confdefs.h. */
46547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46549 #define $ac_func innocuous_$ac_func
46551 /* System header to define __stub macros and hopefully few prototypes,
46552 which can conflict with char $ac_func (); below.
46553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46554 <limits.h> exists even on freestanding compilers. */
46557 # include <limits.h>
46559 # include <assert.h>
46564 /* Override any GCC internal prototype to avoid an error.
46565 Use char because int might match the return type of a GCC
46566 builtin and then its argument prototype would still apply. */
46571 /* The GNU C library defines this for functions which it implements
46572 to always fail with ENOSYS. Some functions are actually named
46573 something starting with __ and the normal name is an alias. */
46574 #if defined __stub_$ac_func || defined __stub___$ac_func
46581 return $ac_func ();
46586 rm -f conftest.$ac_objext conftest$ac_exeext
46587 if { (ac_try="$ac_link"
46588 case "(($ac_try" in
46589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46590 *) ac_try_echo=$ac_try;;
46592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46593 $as_echo "$ac_try_echo") >&5
46594 (eval "$ac_link") 2>conftest.er1
46596 grep -v '^ *+' conftest.er1 >conftest.err
46598 cat conftest.err >&5
46599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46600 (exit $ac_status); } && {
46601 test -z "$ac_c_werror_flag" ||
46602 test ! -s conftest.err
46603 } && test -s conftest$ac_exeext && {
46604 test "$cross_compiling" = yes ||
46605 $as_test_x conftest$ac_exeext
46607 eval "$as_ac_var=yes"
46609 $as_echo "$as_me: failed program was:" >&5
46610 sed 's/^/| /' conftest.$ac_ext >&5
46612 eval "$as_ac_var=no"
46615 rm -rf conftest.dSYM
46616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46617 conftest$ac_exeext conftest.$ac_ext
46619 ac_res=`eval 'as_val=${'$as_ac_var'}
46620 $as_echo "$as_val"'`
46621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46622 $as_echo "$ac_res" >&6; }
46623 as_val=`eval 'as_val=${'$as_ac_var'}
46624 $as_echo "$as_val"'`
46625 if test "x$as_val" = x""yes; then
46626 cat >>confdefs.h <<_ACEOF
46627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46632 cat >>confdefs.h <<\_ACEOF
46633 #define HAVE_LISTXATTR 1
46637 cat >>confdefs.h <<\_ACEOF
46638 #define HAVE_GETXATTR 1
46642 cat >>confdefs.h <<\_ACEOF
46643 #define HAVE_SETXATTR 1
46654 if test x$support_xattr = xyes -a $have_xattr != yes; then
46655 { { $as_echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
46656 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
46657 $as_echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
46658 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
46659 { (exit 1); exit 1; }; }
46661 if test $have_xattr = yes; then
46663 cat >>confdefs.h <<\_ACEOF
46664 #define HAVE_XATTR 1
46672 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
46673 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
46674 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
46675 $as_echo_n "(cached) " >&6
46677 ac_check_lib_save_LIBS=$LIBS
46678 LIBS="-lpthread $LIBS"
46679 cat >conftest.$ac_ext <<_ACEOF
46682 cat confdefs.h >>conftest.$ac_ext
46683 cat >>conftest.$ac_ext <<_ACEOF
46684 /* end confdefs.h. */
46686 /* Override any GCC internal prototype to avoid an error.
46687 Use char because int might match the return type of a GCC
46688 builtin and then its argument prototype would still apply. */
46692 char pthread_create ();
46696 return pthread_create ();
46701 rm -f conftest.$ac_objext conftest$ac_exeext
46702 if { (ac_try="$ac_link"
46703 case "(($ac_try" in
46704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46705 *) ac_try_echo=$ac_try;;
46707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46708 $as_echo "$ac_try_echo") >&5
46709 (eval "$ac_link") 2>conftest.er1
46711 grep -v '^ *+' conftest.er1 >conftest.err
46713 cat conftest.err >&5
46714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46715 (exit $ac_status); } && {
46716 test -z "$ac_c_werror_flag" ||
46717 test ! -s conftest.err
46718 } && test -s conftest$ac_exeext && {
46719 test "$cross_compiling" = yes ||
46720 $as_test_x conftest$ac_exeext
46722 ac_cv_lib_pthread_pthread_create=yes
46724 $as_echo "$as_me: failed program was:" >&5
46725 sed 's/^/| /' conftest.$ac_ext >&5
46727 ac_cv_lib_pthread_pthread_create=no
46730 rm -rf conftest.dSYM
46731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46732 conftest$ac_exeext conftest.$ac_ext
46733 LIBS=$ac_check_lib_save_LIBS
46735 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
46736 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
46737 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
46738 PTHREAD_LIB="-lpthread"
46741 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
46742 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
46743 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
46744 $as_echo_n "(cached) " >&6
46746 ac_check_lib_save_LIBS=$LIBS
46747 LIBS="-lpthreads $LIBS"
46748 cat >conftest.$ac_ext <<_ACEOF
46751 cat confdefs.h >>conftest.$ac_ext
46752 cat >>conftest.$ac_ext <<_ACEOF
46753 /* end confdefs.h. */
46755 /* Override any GCC internal prototype to avoid an error.
46756 Use char because int might match the return type of a GCC
46757 builtin and then its argument prototype would still apply. */
46761 char pthread_create ();
46765 return pthread_create ();
46770 rm -f conftest.$ac_objext conftest$ac_exeext
46771 if { (ac_try="$ac_link"
46772 case "(($ac_try" in
46773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46774 *) ac_try_echo=$ac_try;;
46776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46777 $as_echo "$ac_try_echo") >&5
46778 (eval "$ac_link") 2>conftest.er1
46780 grep -v '^ *+' conftest.er1 >conftest.err
46782 cat conftest.err >&5
46783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46784 (exit $ac_status); } && {
46785 test -z "$ac_c_werror_flag" ||
46786 test ! -s conftest.err
46787 } && test -s conftest$ac_exeext && {
46788 test "$cross_compiling" = yes ||
46789 $as_test_x conftest$ac_exeext
46791 ac_cv_lib_pthreads_pthread_create=yes
46793 $as_echo "$as_me: failed program was:" >&5
46794 sed 's/^/| /' conftest.$ac_ext >&5
46796 ac_cv_lib_pthreads_pthread_create=no
46799 rm -rf conftest.dSYM
46800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46801 conftest$ac_exeext conftest.$ac_ext
46802 LIBS=$ac_check_lib_save_LIBS
46804 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
46805 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
46806 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
46807 PTHREAD_LIB="-lpthreads"
46810 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
46811 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
46812 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
46813 $as_echo_n "(cached) " >&6
46815 ac_check_lib_save_LIBS=$LIBS
46817 cat >conftest.$ac_ext <<_ACEOF
46820 cat confdefs.h >>conftest.$ac_ext
46821 cat >>conftest.$ac_ext <<_ACEOF
46822 /* end confdefs.h. */
46824 /* Override any GCC internal prototype to avoid an error.
46825 Use char because int might match the return type of a GCC
46826 builtin and then its argument prototype would still apply. */
46830 char pthread_create ();
46834 return pthread_create ();
46839 rm -f conftest.$ac_objext conftest$ac_exeext
46840 if { (ac_try="$ac_link"
46841 case "(($ac_try" in
46842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46843 *) ac_try_echo=$ac_try;;
46845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46846 $as_echo "$ac_try_echo") >&5
46847 (eval "$ac_link") 2>conftest.er1
46849 grep -v '^ *+' conftest.er1 >conftest.err
46851 cat conftest.err >&5
46852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46853 (exit $ac_status); } && {
46854 test -z "$ac_c_werror_flag" ||
46855 test ! -s conftest.err
46856 } && test -s conftest$ac_exeext && {
46857 test "$cross_compiling" = yes ||
46858 $as_test_x conftest$ac_exeext
46860 ac_cv_lib_c_r_pthread_create=yes
46862 $as_echo "$as_me: failed program was:" >&5
46863 sed 's/^/| /' conftest.$ac_ext >&5
46865 ac_cv_lib_c_r_pthread_create=no
46868 rm -rf conftest.dSYM
46869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46870 conftest$ac_exeext conftest.$ac_ext
46871 LIBS=$ac_check_lib_save_LIBS
46873 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
46874 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
46875 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
46876 PTHREAD_LIB="-lc_r"
46879 { $as_echo "$as_me:$LINENO: checking for pthread_create" >&5
46880 $as_echo_n "checking for pthread_create... " >&6; }
46881 if test "${ac_cv_func_pthread_create+set}" = set; then
46882 $as_echo_n "(cached) " >&6
46884 cat >conftest.$ac_ext <<_ACEOF
46887 cat confdefs.h >>conftest.$ac_ext
46888 cat >>conftest.$ac_ext <<_ACEOF
46889 /* end confdefs.h. */
46890 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
46891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46892 #define pthread_create innocuous_pthread_create
46894 /* System header to define __stub macros and hopefully few prototypes,
46895 which can conflict with char pthread_create (); below.
46896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46897 <limits.h> exists even on freestanding compilers. */
46900 # include <limits.h>
46902 # include <assert.h>
46905 #undef pthread_create
46907 /* Override any GCC internal prototype to avoid an error.
46908 Use char because int might match the return type of a GCC
46909 builtin and then its argument prototype would still apply. */
46913 char pthread_create ();
46914 /* The GNU C library defines this for functions which it implements
46915 to always fail with ENOSYS. Some functions are actually named
46916 something starting with __ and the normal name is an alias. */
46917 #if defined __stub_pthread_create || defined __stub___pthread_create
46924 return pthread_create ();
46929 rm -f conftest.$ac_objext conftest$ac_exeext
46930 if { (ac_try="$ac_link"
46931 case "(($ac_try" in
46932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46933 *) ac_try_echo=$ac_try;;
46935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46936 $as_echo "$ac_try_echo") >&5
46937 (eval "$ac_link") 2>conftest.er1
46939 grep -v '^ *+' conftest.er1 >conftest.err
46941 cat conftest.err >&5
46942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46943 (exit $ac_status); } && {
46944 test -z "$ac_c_werror_flag" ||
46945 test ! -s conftest.err
46946 } && test -s conftest$ac_exeext && {
46947 test "$cross_compiling" = yes ||
46948 $as_test_x conftest$ac_exeext
46950 ac_cv_func_pthread_create=yes
46952 $as_echo "$as_me: failed program was:" >&5
46953 sed 's/^/| /' conftest.$ac_ext >&5
46955 ac_cv_func_pthread_create=no
46958 rm -rf conftest.dSYM
46959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46960 conftest$ac_exeext conftest.$ac_ext
46962 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
46963 $as_echo "$ac_cv_func_pthread_create" >&6; }
46980 for ac_header in sys/prctl.h sys/capability.h
46982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46985 $as_echo_n "checking for $ac_header... " >&6; }
46986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46987 $as_echo_n "(cached) " >&6
46989 ac_res=`eval 'as_val=${'$as_ac_Header'}
46990 $as_echo "$as_val"'`
46991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46992 $as_echo "$ac_res" >&6; }
46994 # Is the header compilable?
46995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
46996 $as_echo_n "checking $ac_header usability... " >&6; }
46997 cat >conftest.$ac_ext <<_ACEOF
47000 cat confdefs.h >>conftest.$ac_ext
47001 cat >>conftest.$ac_ext <<_ACEOF
47002 /* end confdefs.h. */
47003 $ac_includes_default
47004 #include <$ac_header>
47006 rm -f conftest.$ac_objext
47007 if { (ac_try="$ac_compile"
47008 case "(($ac_try" in
47009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47010 *) ac_try_echo=$ac_try;;
47012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47013 $as_echo "$ac_try_echo") >&5
47014 (eval "$ac_compile") 2>conftest.er1
47016 grep -v '^ *+' conftest.er1 >conftest.err
47018 cat conftest.err >&5
47019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47020 (exit $ac_status); } && {
47021 test -z "$ac_c_werror_flag" ||
47022 test ! -s conftest.err
47023 } && test -s conftest.$ac_objext; then
47024 ac_header_compiler=yes
47026 $as_echo "$as_me: failed program was:" >&5
47027 sed 's/^/| /' conftest.$ac_ext >&5
47029 ac_header_compiler=no
47032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47034 $as_echo "$ac_header_compiler" >&6; }
47036 # Is the header present?
47037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
47038 $as_echo_n "checking $ac_header presence... " >&6; }
47039 cat >conftest.$ac_ext <<_ACEOF
47042 cat confdefs.h >>conftest.$ac_ext
47043 cat >>conftest.$ac_ext <<_ACEOF
47044 /* end confdefs.h. */
47045 #include <$ac_header>
47047 if { (ac_try="$ac_cpp conftest.$ac_ext"
47048 case "(($ac_try" in
47049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47050 *) ac_try_echo=$ac_try;;
47052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47053 $as_echo "$ac_try_echo") >&5
47054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47056 grep -v '^ *+' conftest.er1 >conftest.err
47058 cat conftest.err >&5
47059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47060 (exit $ac_status); } >/dev/null && {
47061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47062 test ! -s conftest.err
47064 ac_header_preproc=yes
47066 $as_echo "$as_me: failed program was:" >&5
47067 sed 's/^/| /' conftest.$ac_ext >&5
47069 ac_header_preproc=no
47072 rm -f conftest.err conftest.$ac_ext
47073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47074 $as_echo "$ac_header_preproc" >&6; }
47076 # So? What about this header?
47077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47083 ac_header_preproc=yes
47086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47089 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47093 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47102 $as_echo_n "checking for $ac_header... " >&6; }
47103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47104 $as_echo_n "(cached) " >&6
47106 eval "$as_ac_Header=\$ac_header_preproc"
47108 ac_res=`eval 'as_val=${'$as_ac_Header'}
47109 $as_echo "$as_val"'`
47110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47111 $as_echo "$ac_res" >&6; }
47114 as_val=`eval 'as_val=${'$as_ac_Header'}
47115 $as_echo "$as_val"'`
47116 if test "x$as_val" = x""yes; then
47117 cat >>confdefs.h <<_ACEOF
47118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47127 for ac_func in prctl setreuid
47129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47131 $as_echo_n "checking for $ac_func... " >&6; }
47132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47133 $as_echo_n "(cached) " >&6
47135 cat >conftest.$ac_ext <<_ACEOF
47138 cat confdefs.h >>conftest.$ac_ext
47139 cat >>conftest.$ac_ext <<_ACEOF
47140 /* end confdefs.h. */
47141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47143 #define $ac_func innocuous_$ac_func
47145 /* System header to define __stub macros and hopefully few prototypes,
47146 which can conflict with char $ac_func (); below.
47147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47148 <limits.h> exists even on freestanding compilers. */
47151 # include <limits.h>
47153 # include <assert.h>
47158 /* Override any GCC internal prototype to avoid an error.
47159 Use char because int might match the return type of a GCC
47160 builtin and then its argument prototype would still apply. */
47165 /* The GNU C library defines this for functions which it implements
47166 to always fail with ENOSYS. Some functions are actually named
47167 something starting with __ and the normal name is an alias. */
47168 #if defined __stub_$ac_func || defined __stub___$ac_func
47175 return $ac_func ();
47180 rm -f conftest.$ac_objext conftest$ac_exeext
47181 if { (ac_try="$ac_link"
47182 case "(($ac_try" in
47183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47184 *) ac_try_echo=$ac_try;;
47186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47187 $as_echo "$ac_try_echo") >&5
47188 (eval "$ac_link") 2>conftest.er1
47190 grep -v '^ *+' conftest.er1 >conftest.err
47192 cat conftest.err >&5
47193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47194 (exit $ac_status); } && {
47195 test -z "$ac_c_werror_flag" ||
47196 test ! -s conftest.err
47197 } && test -s conftest$ac_exeext && {
47198 test "$cross_compiling" = yes ||
47199 $as_test_x conftest$ac_exeext
47201 eval "$as_ac_var=yes"
47203 $as_echo "$as_me: failed program was:" >&5
47204 sed 's/^/| /' conftest.$ac_ext >&5
47206 eval "$as_ac_var=no"
47209 rm -rf conftest.dSYM
47210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47211 conftest$ac_exeext conftest.$ac_ext
47213 ac_res=`eval 'as_val=${'$as_ac_var'}
47214 $as_echo "$as_val"'`
47215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47216 $as_echo "$ac_res" >&6; }
47217 as_val=`eval 'as_val=${'$as_ac_var'}
47218 $as_echo "$as_val"'`
47219 if test "x$as_val" = x""yes; then
47220 cat >>confdefs.h <<_ACEOF
47221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47227 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
47228 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
47229 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
47230 $as_echo_n "(cached) " >&6
47232 ac_check_lib_save_LIBS=$LIBS
47234 cat >conftest.$ac_ext <<_ACEOF
47237 cat confdefs.h >>conftest.$ac_ext
47238 cat >>conftest.$ac_ext <<_ACEOF
47239 /* end confdefs.h. */
47241 /* Override any GCC internal prototype to avoid an error.
47242 Use char because int might match the return type of a GCC
47243 builtin and then its argument prototype would still apply. */
47247 char cap_set_proc ();
47251 return cap_set_proc ();
47256 rm -f conftest.$ac_objext conftest$ac_exeext
47257 if { (ac_try="$ac_link"
47258 case "(($ac_try" in
47259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47260 *) ac_try_echo=$ac_try;;
47262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47263 $as_echo "$ac_try_echo") >&5
47264 (eval "$ac_link") 2>conftest.er1
47266 grep -v '^ *+' conftest.er1 >conftest.err
47268 cat conftest.err >&5
47269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47270 (exit $ac_status); } && {
47271 test -z "$ac_c_werror_flag" ||
47272 test ! -s conftest.err
47273 } && test -s conftest$ac_exeext && {
47274 test "$cross_compiling" = yes ||
47275 $as_test_x conftest$ac_exeext
47277 ac_cv_lib_cap_cap_set_proc=yes
47279 $as_echo "$as_me: failed program was:" >&5
47280 sed 's/^/| /' conftest.$ac_ext >&5
47282 ac_cv_lib_cap_cap_set_proc=no
47285 rm -rf conftest.dSYM
47286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47287 conftest$ac_exeext conftest.$ac_ext
47288 LIBS=$ac_check_lib_save_LIBS
47290 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
47291 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
47292 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then
47298 if test x$CAP_LIBS = x-lcap; then
47300 cat >>confdefs.h <<\_ACEOF
47301 #define HAVE_LIBCAP 1
47308 cat >>confdefs.h <<\_ACEOF
47313 CFLAGS=${CFLAGS--O}
47315 if test x$have_gcc = xyes ; then
47316 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
47317 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
47319 LDFLAGS=${LDFLAGS--O}
47320 CPPFLAGS="$CPPFLAGS"
47346 PFILES="platforms/Makefile"
47351 hostname=`uname -n | cut -d '.' -f 1`
47352 if test x${hostname} = x ; then
47353 hostname="localhost"
47355 ping -c 1 $hostname 2>/dev/null 1>/dev/null
47356 if test ! $? = 0; then
47357 hostname="localhost"
47360 case "$DISTNAME" in
47363 PSCMD="ps -e -o pid,comm"
47364 PFILES="${PFILES} \
47365 platforms/aix/Makefile"
47366 TAPEDRIVE="/dev/rmt0.1"
47370 PTHREAD_LIB="-lpthread -lexc"
47371 if test "${CC}" = "gcc" ; then
47378 TAPEDRIVE="/dev/nrmt0"
47381 DISTVER=`uname -a |awk '{print $3}'`
47382 TAPEDRIVE="/dev/nrmt0"
47383 PTHREAD_LIB="-pthread"
47384 CFLAGS="${CFLAGS} -pthread"
47385 PSCMD="ps -ax -o pid,command"
47388 PFILES="${PFILES} \
47389 platforms/bsdi/Makefile \
47390 platforms/bsdi/bacula-fd \
47391 platforms/bsdi/bacula-sd \
47392 platforms/bsdi/bacula-dir"
47393 largefile_support="yes"
47396 DISTVER=`uname -a |awk '{print $3}'`
47397 TAPEDRIVE="/dev/nrst0"
47399 WCFLAGS="-mwindows"
47400 WLDFLAGS="-mwindows"
47404 TAPEDRIVE="/dev/nst0"
47405 PSCMD="ps -e -o pid,command"
47407 PFILES="${PFILES} \
47408 platforms/darwin/Makefile"
47412 TAPEDRIVE="/dev/nst0"
47413 PSCMD="ps -e -o pid,command"
47415 PFILES="${PFILES} \
47416 platforms/osx/Makefile"
47419 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
47422 DISTVER=`cat /etc/debian_version`
47423 if test -f /etc/lsb-release ; then
47425 if test "x$DISTRIB_ID" != "x" ; then
47426 DISTNAME=$DISTRIB_ID
47428 if test "x$DISTRIB_RELEASE" != "x" ; then
47429 DISTVER=$DISTRIB_RELEASE
47432 if test "$DISTNAME" = "Ubuntu" ; then
47435 TAPEDRIVE="/dev/nst0"
47436 PSCMD="ps -e -o pid,command"
47437 if test "$DISTNAME" = "ubuntu" ; then
47438 PFILES="${PFILES} \
47439 platforms/ubuntu/Makefile \
47440 platforms/ubuntu/bacula-fd \
47441 platforms/ubuntu/bacula-sd \
47442 platforms/ubuntu/bacula-dir"
47444 PFILES="${PFILES} \
47445 platforms/debian/Makefile \
47446 platforms/debian/bacula-fd \
47447 platforms/debian/bacula-sd \
47448 platforms/debian/bacula-dir"
47452 DISTVER=`uname -a |awk '{print $3}'`
47453 VER=`echo $DISTVER | cut -c 1`
47454 if test x$VER = x4 ; then
47455 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
47456 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
47460 TAPEDRIVE="/dev/nrsa0"
47461 PSCMD="ps -ax -o pid,command"
47462 PFILES="${PFILES} \
47463 platforms/freebsd/Makefile \
47464 platforms/freebsd/bacula-fd \
47465 platforms/freebsd/bacula-sd \
47466 platforms/freebsd/bacula-dir"
47467 largefile_support="yes"
47470 PSCMD="UNIX95=1; ps -e -o pid,comm"
47471 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
47473 TAPEDRIVE="/dev/rmt/0hnb"
47474 PTHREAD_LIB="-lpthread"
47475 cat >>confdefs.h <<\_ACEOF
47476 #define _INCLUDE_LONGLONG 1
47482 TAPEDRIVE="/dev/rmt/0cbn"
47483 PSCMD="ps -e -o pid,comm"
47484 PFILES="${PFILES} \
47485 platforms/irix/Makefile \
47486 platforms/irix/bacula-fd \
47487 platforms/irix/bacula-sd \
47488 platforms/irix/bacula-dir"
47491 DISTVER=`uname -a |awk '{print $3}'`
47494 TAPEDRIVE="/dev/nrst0"
47495 PSCMD="ps -ax -o pid,command"
47496 PTHREAD_LIB="-pthread"
47497 CFLAGS="${CFLAGS} -pthread"
47500 DISTVER=`uname -a |awk '{print $3}'`
47503 TAPEDRIVE="/dev/nrst0"
47504 PSCMD="ps -ax -o pid,command"
47505 PTHREAD_LIB="-pthread"
47506 CFLAGS="${CFLAGS} -pthread"
47507 PFILES="${PFILES} \
47508 platforms/openbsd/Makefile \
47509 platforms/openbsd/bacula-fd \
47510 platforms/openbsd/bacula-sd \
47511 platforms/openbsd/bacula-dir"
47514 if test -f /etc/whitebox-release ; then
47515 f=/etc/whitebox-release
47517 f=/etc/redhat-release
47519 if test `cat $f | grep release |\
47520 cut -f 3 -d ' '`x = "Enterprise"x ; then
47521 DISTVER="Enterprise "`cat $f | grep release |\
47524 DISTVER=`cat /etc/redhat-release | grep release |\
47527 TAPEDRIVE="/dev/nst0"
47528 PSCMD="ps -e -o pid,command"
47529 PFILES="${PFILES} \
47530 platforms/redhat/Makefile \
47531 platforms/redhat/bacula-fd \
47532 platforms/redhat/bacula-sd \
47533 platforms/redhat/bacula-dir
47537 DISTVER=`cat /etc/mandrake-release | grep release |\
47539 TAPEDRIVE="/dev/nst0"
47540 PSCMD="ps -e -o pid,command"
47541 PFILES="${PFILES} \
47542 platforms/mandrake/Makefile \
47543 platforms/mandrake/bacula-fd \
47544 platforms/mandrake/bacula-sd \
47545 platforms/mandrake/bacula-dir \
47549 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
47550 TAPEDRIVE="/dev/nst0"
47551 PSCMD="ps -e -o pid,command"
47552 PFILES="${PFILES} \
47553 platforms/gentoo/Makefile \
47554 platforms/gentoo/bacula-init \
47555 platforms/gentoo/bacula-fd \
47556 platforms/gentoo/bacula-sd \
47557 platforms/gentoo/bacula-dir"
47560 DISTVER=`cat /etc/slackware-version`
47561 TAPEDRIVE="/dev/nst0"
47562 PSCMD="ps -e -o pid,command"
47563 PFILES="${PFILES} \
47564 platforms/slackware/Makefile \
47565 platforms/slackware/rc.bacula-fd \
47566 platforms/slackware/rc.bacula-sd \
47567 platforms/slackware/rc.bacula-dir\
47568 platforms/slackware/functions.bacula"
47572 TAPEDRIVE="/dev/rmt/0cbn"
47573 PSCMD="ps -e -o pid,comm"
47574 PFILES="${PFILES} \
47575 platforms/solaris/Makefile \
47576 platforms/solaris/bacula-fd \
47577 platforms/solaris/bacula-sd \
47578 platforms/solaris/bacula-dir"
47581 cat >>confdefs.h <<\_ACEOF
47582 #define HAVE_OLD_SOCKOPT 1
47585 cat >>confdefs.h <<\_ACEOF
47586 #define USE_THR_SETCONCURRENCY 1
47591 cat >>confdefs.h <<\_ACEOF
47592 #define USE_THR_SETCONCURRENCY 1
47599 LIBS="$LIBS -lresolv -lrt"
47602 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
47604 TAPEDRIVE="/dev/nst0"
47605 PSCMD="ps -e -o pid,command"
47606 PFILES="${PFILES} \
47607 platforms/suse/Makefile \
47608 platforms/suse/bacula-fd \
47609 platforms/suse/bacula-sd \
47610 platforms/suse/bacula-dir \
47611 platforms/suse/bacula"
47616 TAPEDRIVE="/dev/nst0"
47617 PSCMD="ps -e -o pid,command"
47618 PFILES="${PFILES} \
47619 platforms/suse/Makefile \
47620 platforms/suse/bacula-fd \
47621 platforms/suse/bacula-sd \
47622 platforms/suse/bacula-dir"
47626 TAPEDRIVE="/dev/nst0"
47629 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
47635 LIBS="$PTHREAD_LIB $LIBS"
47637 cat >>confdefs.h <<_ACEOF
47641 cat >>confdefs.h <<_ACEOF
47652 MCOMMON=./autoconf/Make.common
47655 if test "x${subsysdir}" = "x${sbindir}" ; then
47658 echo "You have set both --sbindir and --with-subsys-dir"
47659 echo " equal to: ${subsysdir} "
47660 echo "This is not permitted. Please reconfigure."
47662 echo "Aborting configuration ..."
47668 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole 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/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.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_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 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
47670 ac_config_commands="$ac_config_commands default"
47672 cat >confcache <<\_ACEOF
47673 # This file is a shell script that caches the results of configure
47674 # tests run on this system so they can be shared between configure
47675 # scripts and configure runs, see configure's option --config-cache.
47676 # It is not useful on other systems. If it contains results you don't
47677 # want to keep, you may remove or edit it.
47679 # config.status only pays attention to the cache file if you give it
47680 # the --recheck option to rerun configure.
47682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
47683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
47684 # following values.
47688 # The following way of writing the cache mishandles newlines in values,
47689 # but we know of no workaround that is simple, portable, and efficient.
47690 # So, we kill variables containing newlines.
47691 # Ultrix sh set writes to stderr and can't be redirected directly,
47692 # and sets the high bit in the cache file unless we assign to the vars.
47694 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
47695 eval ac_val=\$$ac_var
47699 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
47700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
47703 _ | IFS | as_nl) ;; #(
47704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
47705 *) $as_unset $ac_var ;;
47711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
47712 *${as_nl}ac_space=\ *)
47713 # `set' does not quote correctly, so add quotes (double-quote
47714 # substitution turns \\\\ into \\, and sed turns \\ into \).
47717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47720 # `set' quotes correctly as required by POSIX, so do not add quotes.
47721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
47732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
47734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
47735 if test -w "$cache_file"; then
47736 test "x$cache_file" != "x/dev/null" &&
47737 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
47738 $as_echo "$as_me: updating cache $cache_file" >&6;}
47739 cat confcache >$cache_file
47741 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
47742 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
47747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
47748 # Let make expand exec_prefix.
47749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
47751 DEFS=-DHAVE_CONFIG_H
47755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
47756 # 1. Remove the extension, and $U if already installed.
47757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
47758 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
47759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
47760 # will be set to the directory where LIBOBJS objects are built.
47761 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
47762 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
47764 LIBOBJS=$ac_libobjs
47766 LTLIBOBJS=$ac_ltlibobjs
47771 : ${CONFIG_STATUS=./config.status}
47773 ac_clean_files_save=$ac_clean_files
47774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47775 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
47776 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47777 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47779 # Generated by $as_me.
47780 # Run this file to recreate the current configuration.
47781 # Compiler output produced by configure, useful for debugging
47782 # configure, is in config.log if it exists.
47785 ac_cs_recheck=false
47787 SHELL=\${CONFIG_SHELL-$SHELL}
47790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47791 ## --------------------- ##
47792 ## M4sh Initialization. ##
47793 ## --------------------- ##
47795 # Be more Bourne compatible
47796 DUALCASE=1; export DUALCASE # for MKS sh
47797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47800 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47801 # is contrary to our usage. Disable this feature.
47802 alias -g '${1+"$@"}'='"$@"'
47803 setopt NO_GLOB_SUBST
47805 case `(set -o) 2>/dev/null` in
47806 *posix*) set -o posix ;;
47815 # Avoid depending upon Character Ranges.
47816 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47817 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47818 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47819 as_cr_digits='0123456789'
47820 as_cr_alnum=$as_cr_Letters$as_cr_digits
47825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47826 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47829 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47830 as_echo='printf %s\n'
47831 as_echo_n='printf %s'
47833 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47834 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47835 as_echo_n='/usr/ucb/echo -n'
47837 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47838 as_echo_n_body='eval
47842 expr "X$arg" : "X\\(.*\\)$as_nl";
47843 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47845 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47847 export as_echo_n_body
47848 as_echo_n='sh -c $as_echo_n_body as_echo'
47850 export as_echo_body
47851 as_echo='sh -c $as_echo_body as_echo'
47854 # The user is always right.
47855 if test "${PATH_SEPARATOR+set}" != set; then
47857 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47858 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47863 # Support unset when possible.
47864 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47872 # We need space, tab and new line, in precisely that order. Quoting is
47873 # there to prevent editors from complaining about space-tab.
47874 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
47875 # splitting by setting IFS to empty value.)
47878 # Find who we are. Look in the path if we contain no directory separator.
47880 *[\\/]* ) as_myself=$0 ;;
47881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47882 for as_dir in $PATH
47885 test -z "$as_dir" && as_dir=.
47886 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47892 # We did not find ourselves, most probably we were run as `sh COMMAND'
47893 # in which case we are not to be found in the path.
47894 if test "x$as_myself" = x; then
47897 if test ! -f "$as_myself"; then
47898 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47899 { (exit 1); exit 1; }
47902 # Work around bugs in pre-3.0 UWIN ksh.
47903 for as_var in ENV MAIL MAILPATH
47904 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
47916 # Required to use basename.
47917 if expr a : '\(a\)' >/dev/null 2>&1 &&
47918 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47925 as_basename=basename
47931 # Name of the executable.
47932 as_me=`$as_basename -- "$0" ||
47933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47934 X"$0" : 'X\(//\)$' \| \
47935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47937 sed '/^.*\/\([^/][^/]*\)\/*$/{
47956 as_lineno_1=$LINENO
47957 as_lineno_2=$LINENO
47958 test "x$as_lineno_1" != "x$as_lineno_2" &&
47959 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
47961 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47962 # uniformly replaced by the line number. The first 'sed' inserts a
47963 # line-number line after each line using $LINENO; the second 'sed'
47964 # does the real work. The second script uses 'N' to pair each
47965 # line-number line with the line containing $LINENO, and appends
47966 # trailing '-' during substitution so that $LINENO is not a special
47967 # case at line end.
47968 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47969 # scripts with optimization help from Paolo Bonzini. Blame Lee
47970 # E. McMahon (1931-1989) for sed's syntax. :-)
47982 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47985 ' >$as_me.lineno &&
47986 chmod +x "$as_me.lineno" ||
47987 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47988 { (exit 1); exit 1; }; }
47990 # Don't try to exec as it changes $[0], causing all sort of problems
47991 # (the dirname of $[0] is not the place where we might find the
47992 # original and so on. Autoconf is especially sensitive to this).
47993 . "./$as_me.lineno"
47994 # Exit status is that of the last command.
47999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48005 ECHO_C= ECHO_N= ECHO_T=
48006 case `echo -n x` in
48008 case `echo 'x\c'` in
48009 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
48015 if expr a : '\(a\)' >/dev/null 2>&1 &&
48016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48022 rm -f conf$$ conf$$.exe conf$$.file
48023 if test -d conf$$.dir; then
48024 rm -f conf$$.dir/conf$$.file
48027 mkdir conf$$.dir 2>/dev/null
48029 if (echo >conf$$.file) 2>/dev/null; then
48030 if ln -s conf$$.file conf$$ 2>/dev/null; then
48032 # ... but there are two gotchas:
48033 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48034 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
48035 # In both cases, we have to default to `cp -p'.
48036 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
48038 elif ln conf$$.file conf$$ 2>/dev/null; then
48046 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48047 rmdir conf$$.dir 2>/dev/null
48049 if mkdir -p . 2>/dev/null; then
48052 test -d ./-p && rmdir ./-p
48056 if test -x / >/dev/null 2>&1; then
48057 as_test_x='test -x'
48059 if ls -dL / >/dev/null 2>&1; then
48066 if test -d "$1"; then
48072 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
48073 ???[sx]*):;;*)false;;esac;fi
48077 as_executable_p=$as_test_x
48079 # Sed expression to map a string onto a valid CPP name.
48080 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48082 # Sed expression to map a string onto a valid variable name.
48083 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48088 # Save the log message, to keep $[0] and so on meaningful, and to
48089 # report actual input values of CONFIG_FILES etc. instead of their
48090 # values after options handling.
48092 This file was extended by bacula $as_me 5.1.14, which was
48093 generated by GNU Autoconf 2.63. Invocation command line was
48095 CONFIG_FILES = $CONFIG_FILES
48096 CONFIG_HEADERS = $CONFIG_HEADERS
48097 CONFIG_LINKS = $CONFIG_LINKS
48098 CONFIG_COMMANDS = $CONFIG_COMMANDS
48101 on `(hostname || uname -n) 2>/dev/null | sed 1q`
48106 case $ac_config_files in *"
48107 "*) set x $ac_config_files; shift; ac_config_files=$*;;
48110 case $ac_config_headers in *"
48111 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
48115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48116 # Files that config.status was made for.
48117 config_files="$ac_config_files"
48118 config_headers="$ac_config_headers"
48119 config_commands="$ac_config_commands"
48123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48125 \`$as_me' instantiates files from templates according to the
48126 current configuration.
48128 Usage: $0 [OPTION]... [FILE]...
48130 -h, --help print this help, then exit
48131 -V, --version print version number and configuration settings, then exit
48132 -q, --quiet, --silent
48133 do not print progress messages
48134 -d, --debug don't remove temporary files
48135 --recheck update $as_me by reconfiguring in the same conditions
48136 --file=FILE[:TEMPLATE]
48137 instantiate the configuration file FILE
48138 --header=FILE[:TEMPLATE]
48139 instantiate the configuration header FILE
48141 Configuration files:
48144 Configuration headers:
48147 Configuration commands:
48150 Report bugs to <bug-autoconf@gnu.org>."
48153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48155 bacula config.status 5.1.14
48156 configured by $0, generated by GNU Autoconf 2.63,
48157 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
48159 Copyright (C) 2008 Free Software Foundation, Inc.
48160 This config.status script is free software; the Free Software Foundation
48161 gives unlimited permission to copy, distribute and modify it."
48167 test -n "\$AWK" || AWK=awk
48170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48171 # The default lists apply if the user does not specify any file.
48177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
48178 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48189 # Handling of the options.
48190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48192 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
48193 $as_echo "$ac_cs_version"; exit ;;
48194 --debug | --debu | --deb | --de | --d | -d )
48196 --file | --fil | --fi | --f )
48199 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48201 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
48202 ac_need_defaults=false;;
48203 --header | --heade | --head | --hea )
48206 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48208 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
48209 ac_need_defaults=false;;
48211 # Conflict between --help and --header
48212 { $as_echo "$as_me: error: ambiguous option: $1
48213 Try \`$0 --help' for more information." >&2
48214 { (exit 1); exit 1; }; };;
48215 --help | --hel | -h )
48216 $as_echo "$ac_cs_usage"; exit ;;
48217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48218 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48221 # This is an error.
48222 -*) { $as_echo "$as_me: error: unrecognized option: $1
48223 Try \`$0 --help' for more information." >&2
48224 { (exit 1); exit 1; }; } ;;
48226 *) ac_config_targets="$ac_config_targets $1"
48227 ac_need_defaults=false ;;
48233 ac_configure_extra_args=
48235 if $ac_cs_silent; then
48237 ac_configure_extra_args="$ac_configure_extra_args --silent"
48241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48242 if \$ac_cs_recheck; then
48243 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48245 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
48246 CONFIG_SHELL='$SHELL'
48247 export CONFIG_SHELL
48252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48257 ## Running $as_me. ##
48263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48269 # The HP-UX ksh and POSIX shell print the target directory to stdout
48270 # if CDPATH is set.
48271 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
48273 sed_quote_subst='$sed_quote_subst'
48274 double_quote_subst='$double_quote_subst'
48275 delay_variable_subst='$delay_variable_subst'
48276 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
48277 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
48278 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
48279 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
48280 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
48281 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
48282 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
48283 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
48284 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
48285 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
48286 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
48287 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
48288 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
48289 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
48290 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
48291 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
48292 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
48293 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
48294 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
48295 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
48296 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
48297 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
48298 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
48299 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
48300 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
48301 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
48302 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
48303 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48304 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
48305 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
48306 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
48307 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
48308 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
48309 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
48310 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
48311 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48312 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48313 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48314 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
48315 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
48316 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
48317 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
48318 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
48319 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
48320 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"`'
48321 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"`'
48322 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
48323 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
48324 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
48325 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
48326 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
48327 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
48328 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
48329 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
48330 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
48331 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
48332 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
48333 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
48334 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
48335 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
48336 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
48337 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
48338 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48339 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48340 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
48341 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
48342 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
48343 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
48344 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
48345 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48346 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48347 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48348 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48349 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48350 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48351 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
48352 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
48353 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
48354 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
48355 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
48356 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
48357 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
48358 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
48359 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
48360 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
48361 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
48362 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
48363 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
48364 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
48365 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
48366 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48367 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
48368 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
48369 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48370 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
48371 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
48372 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
48373 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
48374 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
48375 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
48376 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
48377 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
48378 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
48379 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
48380 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
48381 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48382 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48383 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
48384 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
48385 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
48386 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
48387 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
48388 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
48389 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
48390 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
48391 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
48392 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
48393 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
48394 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
48395 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
48396 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
48397 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
48398 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
48399 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
48400 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48401 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48402 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48403 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48404 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48405 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48406 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48407 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48408 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48409 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48410 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48411 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48412 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48413 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48414 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48415 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48416 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48417 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48418 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48419 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48420 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48421 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48422 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48423 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48424 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48425 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48426 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48427 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48428 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48429 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48430 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48431 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48432 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48433 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48434 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48435 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48436 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48437 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48438 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48439 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48440 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48441 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48442 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48443 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48444 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48445 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48446 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
48449 LTCFLAGS='$LTCFLAGS'
48450 compiler='$compiler_DEFAULT'
48452 # Quote evaled strings.
48464 deplibs_check_method \
48473 lt_cv_sys_global_symbol_pipe \
48474 lt_cv_sys_global_symbol_to_cdecl \
48475 lt_cv_sys_global_symbol_to_c_name_address \
48476 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
48479 lt_prog_compiler_no_builtin_flag \
48480 lt_prog_compiler_wl \
48481 lt_prog_compiler_pic \
48482 lt_prog_compiler_static \
48483 lt_cv_prog_compiler_c_o \
48491 export_dynamic_flag_spec \
48492 whole_archive_flag_spec \
48493 compiler_needs_object \
48495 allow_undefined_flag \
48496 no_undefined_flag \
48497 hardcode_libdir_flag_spec \
48498 hardcode_libdir_flag_spec_ld \
48499 hardcode_libdir_separator \
48504 variables_saved_for_relink \
48506 library_names_spec \
48511 compiler_lib_search_dirs \
48516 compiler_lib_search_path \
48519 lt_prog_compiler_no_builtin_flag_CXX \
48520 lt_prog_compiler_wl_CXX \
48521 lt_prog_compiler_pic_CXX \
48522 lt_prog_compiler_static_CXX \
48523 lt_cv_prog_compiler_c_o_CXX \
48524 export_dynamic_flag_spec_CXX \
48525 whole_archive_flag_spec_CXX \
48526 compiler_needs_object_CXX \
48528 allow_undefined_flag_CXX \
48529 no_undefined_flag_CXX \
48530 hardcode_libdir_flag_spec_CXX \
48531 hardcode_libdir_flag_spec_ld_CXX \
48532 hardcode_libdir_separator_CXX \
48533 fix_srcfile_path_CXX \
48534 exclude_expsyms_CXX \
48535 include_expsyms_CXX \
48536 file_list_spec_CXX \
48537 compiler_lib_search_dirs_CXX \
48538 predep_objects_CXX \
48539 postdep_objects_CXX \
48542 compiler_lib_search_path_CXX; do
48543 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
48544 *[\\\\\\\`\\"\\\$]*)
48545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
48548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
48553 # Double-quote double-evaled strings.
48554 for var in reload_cmds \
48555 old_postinstall_cmds \
48556 old_postuninstall_cmds \
48558 extract_expsyms_cmds \
48559 old_archive_from_new_cmds \
48560 old_archive_from_expsyms_cmds \
48562 archive_expsym_cmds \
48564 module_expsym_cmds \
48565 export_symbols_cmds \
48568 postuninstall_cmds \
48570 sys_lib_search_path_spec \
48571 sys_lib_dlsearch_path_spec \
48572 old_archive_cmds_CXX \
48573 old_archive_from_new_cmds_CXX \
48574 old_archive_from_expsyms_cmds_CXX \
48576 archive_expsym_cmds_CXX \
48578 module_expsym_cmds_CXX \
48579 export_symbols_cmds_CXX \
48580 prelink_cmds_CXX; do
48581 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
48582 *[\\\\\\\`\\"\\\$]*)
48583 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
48586 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
48591 # Fix-up fallback echo if it was mangled by the above quoting rules.
48593 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
48597 ac_aux_dir='$ac_aux_dir'
48598 xsi_shell='$xsi_shell'
48599 lt_shell_append='$lt_shell_append'
48601 # See if we are running on zsh, and set the options which allow our
48602 # commands through without removal of \ escapes INIT.
48603 if test -n "\${ZSH_VERSION+set}" ; then
48604 setopt NO_GLOB_SUBST
48610 TIMESTAMP='$TIMESTAMP'
48618 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
48619 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
48621 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
48622 # Capture the value of LINGUAS because we need it to compute CATALOGS.
48623 LINGUAS="${LINGUAS-%UNSET%}"
48628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48630 # Handling of arguments.
48631 for ac_config_target in $ac_config_targets
48633 case $ac_config_target in
48634 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
48635 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
48636 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
48637 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
48638 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48639 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
48640 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
48641 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
48642 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
48643 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
48644 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
48645 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
48646 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
48647 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
48648 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
48649 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
48650 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
48651 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
48652 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
48653 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
48654 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
48655 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
48656 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
48657 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
48658 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
48659 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
48660 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
48661 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
48662 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
48663 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
48664 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
48665 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
48666 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
48667 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
48668 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
48669 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
48670 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
48671 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
48672 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
48673 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
48674 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
48675 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
48676 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
48677 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
48678 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
48679 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
48680 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
48681 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
48682 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
48683 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
48684 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
48685 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
48686 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
48687 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
48688 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
48689 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
48690 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
48691 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
48692 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
48693 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
48694 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
48695 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
48696 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
48697 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
48698 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
48699 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
48700 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
48701 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
48702 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
48703 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
48704 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
48705 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
48706 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
48707 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
48708 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
48709 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
48710 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
48711 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
48712 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
48713 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
48714 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
48715 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
48716 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
48717 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
48718 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
48719 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
48720 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
48721 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
48722 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
48723 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
48724 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
48725 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
48726 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
48727 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
48728 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
48729 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
48730 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
48731 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
48732 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
48733 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
48734 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
48735 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
48736 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
48737 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
48738 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
48739 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
48740 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
48741 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
48742 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
48743 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
48744 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
48745 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
48747 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48748 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48749 { (exit 1); exit 1; }; };;
48754 # If the user did not use the arguments to specify the items to instantiate,
48755 # then the envvar interface is used. Set only those that are not.
48756 # We use the long form for the default assignment because of an extremely
48757 # bizarre bug on SunOS 4.1.3.
48758 if $ac_need_defaults; then
48759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48764 # Have a temporary directory for convenience. Make it in the build tree
48765 # simply because there is no reason against having it here, and in addition,
48766 # creating and moving files from /tmp can sometimes cause problems.
48767 # Hook for its removal unless debugging.
48768 # Note that there is a small window in which the directory will not be cleaned:
48769 # after its creation but before its name has been assigned to `$tmp'.
48773 trap 'exit_status=$?
48774 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
48776 trap '{ (exit 1); exit 1; }' 1 2 13 15
48778 # Create a (secure) tmp directory for tmp files.
48781 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48782 test -n "$tmp" && test -d "$tmp"
48785 tmp=./conf$$-$RANDOM
48786 (umask 077 && mkdir "$tmp")
48789 $as_echo "$as_me: cannot create a temporary directory in ." >&2
48790 { (exit 1); exit 1; }
48793 # Set up the scripts for CONFIG_FILES section.
48794 # No need to generate them if there are no CONFIG_FILES.
48795 # This happens for instance with `./config.status config.h'.
48796 if test -n "$CONFIG_FILES"; then
48798 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
48799 ac_cs_awk_getline=:
48800 ac_cs_awk_pipe_init=
48801 ac_cs_awk_read_file='
48802 while ((getline aline < (F[key])) > 0)
48805 ac_cs_awk_pipe_fini=
48807 ac_cs_awk_getline=false
48808 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
48809 ac_cs_awk_read_file='
48811 print "cat " F[key] " &&"
48812 '$ac_cs_awk_pipe_init
48813 # The final `:' finishes the AND list.
48814 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
48817 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48818 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48821 ac_cs_awk_cr=$ac_cr
48824 echo 'BEGIN {' >"$tmp/subs1.awk" &&
48827 # Create commands to substitute file output variables.
48829 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
48830 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
48831 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
48834 } >conf$$files.sh &&
48835 . ./conf$$files.sh ||
48836 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48837 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48838 { (exit 1); exit 1; }; }
48839 rm -f conf$$files.sh
48842 echo "cat >conf$$subs.awk <<_ACEOF" &&
48843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48845 } >conf$$subs.sh ||
48846 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48847 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48848 { (exit 1); exit 1; }; }
48849 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
48851 for ac_last_try in false false false false false :; do
48852 . ./conf$$subs.sh ||
48853 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48854 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48855 { (exit 1); exit 1; }; }
48857 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48858 if test $ac_delim_n = $ac_delim_num; then
48860 elif $ac_last_try; then
48861 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48862 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48863 { (exit 1); exit 1; }; }
48865 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48868 rm -f conf$$subs.sh
48870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48871 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
48875 s/^/S["/; s/!.*/"]=/
48885 s/\(.\{148\}\).*/\1/
48887 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
48892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48899 s/\(.\{148\}\).*/\1/
48901 s/["\\]/\\&/g; s/^/"/; s/$/"/
48905 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48910 ' <conf$$subs.awk | sed '
48915 ' >>$CONFIG_STATUS || ac_write_fail=1
48916 rm -f conf$$subs.awk
48917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48919 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
48920 for (key in S) S_is_set[key] = 1
48922 \$ac_cs_awk_pipe_init
48926 nfields = split(line, field, "@")
48928 len = length(field[1])
48929 for (i = 2; i < nfields; i++) {
48931 keylen = length(key)
48932 if (S_is_set[key]) {
48934 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
48935 len += length(value) + length(field[++i])
48940 if (nfields == 3 && !substed) {
48942 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
48943 \$ac_cs_awk_read_file
48949 \$ac_cs_awk_pipe_fini
48952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48953 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
48954 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
48957 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
48958 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
48959 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
48960 { (exit 1); exit 1; }; }
48963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
48964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48965 # trailing colons and then remove the whole line if VPATH becomes empty
48966 # (actually we leave an empty line to preserve line numbers).
48967 if test "x$srcdir" = x.; then
48968 ac_vpsub='/^[ ]*VPATH[ ]*=/{
48969 s/:*\$(srcdir):*/:/
48970 s/:*\${srcdir}:*/:/
48972 s/^\([^=]*=[ ]*\):*/\1/
48978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48979 fi # test -n "$CONFIG_FILES"
48981 # Set up the scripts for CONFIG_HEADERS section.
48982 # No need to generate them if there are no CONFIG_HEADERS.
48983 # This happens for instance with `./config.status Makefile'.
48984 if test -n "$CONFIG_HEADERS"; then
48985 cat >"$tmp/defines.awk" <<\_ACAWK ||
48989 # Transform confdefs.h into an awk script `defines.awk', embedded as
48990 # here-document in config.status, that substitutes the proper values into
48991 # config.h.in to produce config.h.
48993 # Create a delimiter string that does not exist in confdefs.h, to ease
48994 # handling of long lines.
48996 for ac_last_try in false false :; do
48997 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
48998 if test -z "$ac_t"; then
49000 elif $ac_last_try; then
49001 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
49002 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
49003 { (exit 1); exit 1; }; }
49005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49009 # For the awk script, D is an array of macro values keyed by name,
49010 # likewise P contains macro parameters if any. Preserve backslash
49011 # newline sequences.
49013 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49015 s/.\{148\}/&'"$ac_delim"'/g
49018 s/^[ ]*#[ ]*define[ ][ ]*/ /
49025 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49027 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
49031 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49032 D["\1"]=" \3\\\\\\n"\\/p
49034 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
49039 s/.\{148\}/&'"$ac_delim"'/g
49044 s/["\\]/\\&/g; s/^/"/; s/$/"/p
49047 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
49049 ' <confdefs.h | sed '
49050 s/'"$ac_delim"'/"\\\
49051 "/g' >>$CONFIG_STATUS || ac_write_fail=1
49053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49054 for (key in D) D_is_set[key] = 1
49057 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
49059 split(line, arg, " ")
49060 if (arg[1] == "#") {
49064 defundef = substr(arg[1], 2)
49067 split(mac1, mac2, "(") #)
49069 prefix = substr(line, 1, index(line, defundef) - 1)
49070 if (D_is_set[macro]) {
49071 # Preserve the white space surrounding the "#".
49072 print prefix "define", macro P[macro] D[macro]
49075 # Replace #undef with comments. This is necessary, for example,
49076 # in the case of _POSIX_SOURCE, which is predefined and required
49077 # on some systems where configure will not decide to define it.
49078 if (defundef == "undef") {
49079 print "/*", prefix defundef, macro, "*/"
49087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49088 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
49089 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
49090 { (exit 1); exit 1; }; }
49091 fi # test -n "$CONFIG_HEADERS"
49094 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
49099 :[FHLC]) ac_mode=$ac_tag; continue;;
49101 case $ac_mode$ac_tag in
49103 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
49104 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
49105 { (exit 1); exit 1; }; };;
49106 :[FH]-) ac_tag=-:-;;
49107 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
49124 -) ac_f="$tmp/stdin";;
49125 *) # Look for the file first in the build tree, then in the source tree
49126 # (if the path is not absolute). The absolute path cannot be DOS-style,
49127 # because $ac_f cannot contain `:'.
49131 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
49133 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
49134 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
49135 { (exit 1); exit 1; }; };;
49137 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
49138 ac_file_inputs="$ac_file_inputs '$ac_f'"
49141 # Let's still pretend it is `configure' which instantiates (i.e., don't
49142 # use $as_me), people would be surprised to read:
49143 # /* config.h. Generated by config.status. */
49144 configure_input='Generated from '`
49145 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49147 if test x"$ac_file" != x-; then
49148 configure_input="$ac_file. $configure_input"
49149 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
49150 $as_echo "$as_me: creating $ac_file" >&6;}
49152 # Neutralize special characters interpreted by sed in replacement strings.
49153 case $configure_input in #(
49154 *\&* | *\|* | *\\* )
49155 ac_sed_conf_input=`$as_echo "$configure_input" |
49156 sed 's/[\\\\&|]/\\\\&/g'`;; #(
49157 *) ac_sed_conf_input=$configure_input;;
49161 *:-:* | *:-) cat >"$tmp/stdin" \
49162 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49163 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49164 { (exit 1); exit 1; }; } ;;
49169 ac_dir=`$as_dirname -- "$ac_file" ||
49170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49171 X"$ac_file" : 'X\(//\)[^/]' \| \
49172 X"$ac_file" : 'X\(//\)$' \| \
49173 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49174 $as_echo X"$ac_file" |
49175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49179 /^X\(\/\/\)[^/].*/{
49194 -*) as_dir=./$as_dir;;
49196 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
49200 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
49201 *) as_qdir=$as_dir;;
49203 as_dirs="'$as_qdir' $as_dirs"
49204 as_dir=`$as_dirname -- "$as_dir" ||
49205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49206 X"$as_dir" : 'X\(//\)[^/]' \| \
49207 X"$as_dir" : 'X\(//\)$' \| \
49208 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49209 $as_echo X"$as_dir" |
49210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49214 /^X\(\/\/\)[^/].*/{
49227 test -d "$as_dir" && break
49229 test -z "$as_dirs" || eval "mkdir $as_dirs"
49230 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
49231 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
49232 { (exit 1); exit 1; }; }; }
49236 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
49238 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
49239 # A ".." for each directory in $ac_dir_suffix.
49240 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
49241 case $ac_top_builddir_sub in
49242 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
49243 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
49246 ac_abs_top_builddir=$ac_pwd
49247 ac_abs_builddir=$ac_pwd$ac_dir_suffix
49248 # for backward compatibility:
49249 ac_top_builddir=$ac_top_build_prefix
49252 .) # We are building in place.
49254 ac_top_srcdir=$ac_top_builddir_sub
49255 ac_abs_top_srcdir=$ac_pwd ;;
49256 [\\/]* | ?:[\\/]* ) # Absolute name.
49257 ac_srcdir=$srcdir$ac_dir_suffix;
49258 ac_top_srcdir=$srcdir
49259 ac_abs_top_srcdir=$srcdir ;;
49260 *) # Relative name.
49261 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
49262 ac_top_srcdir=$ac_top_build_prefix$srcdir
49263 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
49265 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
49275 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49276 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
49280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49281 # If the template does not know about datarootdir, expand it.
49282 # FIXME: This hack should be removed a few years after 2.60.
49283 ac_datarootdir_hack=; ac_datarootdir_seen=
49296 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
49297 *datarootdir*) ac_datarootdir_seen=yes;;
49298 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
49299 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
49300 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
49302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49303 ac_datarootdir_hack='
49304 s&@datadir@&$datadir&g
49305 s&@docdir@&$docdir&g
49306 s&@infodir@&$infodir&g
49307 s&@localedir@&$localedir&g
49308 s&@mandir@&$mandir&g
49309 s&\\\${datarootdir}&$datarootdir&g' ;;
49313 # Neutralize VPATH when `$srcdir' = `.'.
49314 # Shell code in configure.ac might set extrasub.
49315 # FIXME: do we really want to maintain this feature?
49316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49317 ac_sed_extra="$ac_vpsub
49320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49323 s|@configure_input@|$ac_sed_conf_input|;t t
49324 s&@top_builddir@&$ac_top_builddir_sub&;t t
49325 s&@top_build_prefix@&$ac_top_build_prefix&;t t
49326 s&@srcdir@&$ac_srcdir&;t t
49327 s&@abs_srcdir@&$ac_abs_srcdir&;t t
49328 s&@top_srcdir@&$ac_top_srcdir&;t t
49329 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
49330 s&@builddir@&$ac_builddir&;t t
49331 s&@abs_builddir@&$ac_abs_builddir&;t t
49332 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
49333 s&@INSTALL@&$ac_INSTALL&;t t
49334 $ac_datarootdir_hack
49336 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
49337 if $ac_cs_awk_getline; then
49338 $AWK -f "$tmp/subs.awk"
49340 $AWK -f "$tmp/subs.awk" | $SHELL
49342 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49343 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49344 { (exit 1); exit 1; }; }
49346 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
49347 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
49348 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
49349 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49350 which seems to be undefined. Please make sure it is defined." >&5
49351 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49352 which seems to be undefined. Please make sure it is defined." >&2;}
49356 -) cat "$tmp/out" && rm -f "$tmp/out";;
49357 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
49359 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49360 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49361 { (exit 1); exit 1; }; }
49367 if test x"$ac_file" != x-; then
49369 $as_echo "/* $configure_input */" \
49370 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
49371 } >"$tmp/config.h" \
49372 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49373 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49374 { (exit 1); exit 1; }; }
49375 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
49376 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49377 $as_echo "$as_me: $ac_file is unchanged" >&6;}
49380 mv "$tmp/config.h" "$ac_file" \
49381 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49382 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49383 { (exit 1); exit 1; }; }
49386 $as_echo "/* $configure_input */" \
49387 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
49388 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
49389 $as_echo "$as_me: error: could not create -" >&2;}
49390 { (exit 1); exit 1; }; }
49394 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
49395 $as_echo "$as_me: executing $ac_file commands" >&6;}
49400 case $ac_file$ac_mode in
49403 # See if we are running on zsh, and set the options which allow our
49404 # commands through without removal of \ escapes.
49405 if test -n "${ZSH_VERSION+set}" ; then
49406 setopt NO_GLOB_SUBST
49409 cfgfile="${ofile}T"
49410 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
49413 cat <<_LT_EOF >> "$cfgfile"
49416 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
49417 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
49418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
49419 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
49421 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
49422 # 2006, 2007, 2008 Free Software Foundation, Inc.
49423 # Written by Gordon Matzigkeit, 1996
49425 # This file is part of GNU Libtool.
49427 # GNU Libtool is free software; you can redistribute it and/or
49428 # modify it under the terms of the GNU General Public License as
49429 # published by the Free Software Foundation; either version 2 of
49430 # the License, or (at your option) any later version.
49432 # As a special exception to the GNU General Public License,
49433 # if you distribute this file as part of a program or library that
49434 # is built using GNU Libtool, you may include this file under the
49435 # same distribution terms that you use for the rest of that program.
49437 # GNU Libtool is distributed in the hope that it will be useful,
49438 # but WITHOUT ANY WARRANTY; without even the implied warranty of
49439 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49440 # GNU General Public License for more details.
49442 # You should have received a copy of the GNU General Public License
49443 # along with GNU Libtool; see the file COPYING. If not, a copy
49444 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
49445 # obtained by writing to the Free Software Foundation, Inc.,
49446 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
49449 # The names of the tagged configurations supported by this script.
49450 available_tags="CXX "
49452 # ### BEGIN LIBTOOL CONFIG
49454 # Which release of libtool.m4 was used?
49455 macro_version=$macro_version
49456 macro_revision=$macro_revision
49458 # Whether or not to build shared libraries.
49459 build_libtool_libs=$enable_shared
49461 # Whether or not to build static libraries.
49462 build_old_libs=$enable_static
49464 # What type of objects to build.
49467 # Whether or not to optimize for fast installation.
49468 fast_install=$enable_fast_install
49471 host_alias=$host_alias
49475 # The build system.
49476 build_alias=$build_alias
49480 # A sed program that does not truncate output.
49483 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
49484 Xsed="\$SED -e 1s/^X//"
49486 # A grep program that handles long lines.
49492 # A literal string matcher.
49495 # A BSD- or MS-compatible name lister.
49498 # Whether we need soft or hard links.
49501 # What is the maximum length of a command?
49502 max_cmd_len=$max_cmd_len
49504 # Object file suffix (normally "o").
49507 # Executable file suffix (normally "").
49510 # whether the shell understands "unset".
49513 # turn spaces into newlines.
49516 # turn newlines into spaces.
49519 # How to create reloadable object files.
49520 reload_flag=$lt_reload_flag
49521 reload_cmds=$lt_reload_cmds
49523 # An object symbol dumper.
49524 OBJDUMP=$lt_OBJDUMP
49526 # Method to check whether dependent libraries are shared objects.
49527 deplibs_check_method=$lt_deplibs_check_method
49529 # Command to use when deplibs_check_method == "file_magic".
49530 file_magic_cmd=$lt_file_magic_cmd
49534 AR_FLAGS=$lt_AR_FLAGS
49536 # A symbol stripping program.
49539 # Commands used to install an old-style archive.
49541 old_postinstall_cmds=$lt_old_postinstall_cmds
49542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
49547 # LTCC compiler flags.
49548 LTCFLAGS=$lt_CFLAGS
49550 # Take the output of nm and produce a listing of raw symbols and C names.
49551 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
49553 # Transform the output of nm in a proper C declaration.
49554 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
49556 # Transform the output of nm in a C name address pair.
49557 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
49559 # Transform the output of nm in a C name address pair when lib prefix is needed.
49560 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
49562 # The name of the directory that contains temporary libtool files.
49565 # Shell to use when invoking shell scripts.
49568 # An echo program that does not interpret backslashes.
49571 # Used to examine libraries when file_magic_cmd begins with "file".
49572 MAGIC_CMD=$MAGIC_CMD
49574 # Must we lock files when doing compilation?
49575 need_locks=$lt_need_locks
49577 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
49578 DSYMUTIL=$lt_DSYMUTIL
49580 # Tool to change global to local symbols on Mac OS X.
49583 # Tool to manipulate fat objects and archives on Mac OS X.
49586 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
49589 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
49590 OTOOL64=$lt_OTOOL64
49592 # Old archive suffix (normally "a").
49595 # Shared library suffix (normally ".so").
49596 shrext_cmds=$lt_shrext_cmds
49598 # The commands to extract the exported symbol list from a shared archive.
49599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
49601 # Variables whose values should be saved in libtool wrapper scripts and
49602 # restored at link time.
49603 variables_saved_for_relink=$lt_variables_saved_for_relink
49605 # Do we need the "lib" prefix for modules?
49606 need_lib_prefix=$need_lib_prefix
49608 # Do we need a version for libraries?
49609 need_version=$need_version
49611 # Library versioning type.
49612 version_type=$version_type
49614 # Shared library runtime path variable.
49615 runpath_var=$runpath_var
49617 # Shared library path variable.
49618 shlibpath_var=$shlibpath_var
49620 # Is shlibpath searched before the hard-coded library search path?
49621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
49623 # Format of library name prefix.
49624 libname_spec=$lt_libname_spec
49626 # List of archive names. First name is the real one, the rest are links.
49627 # The last name is the one that the linker finds with -lNAME
49628 library_names_spec=$lt_library_names_spec
49630 # The coded name of the library, if different from the real name.
49631 soname_spec=$lt_soname_spec
49633 # Command to use after installation of a shared archive.
49634 postinstall_cmds=$lt_postinstall_cmds
49636 # Command to use after uninstallation of a shared archive.
49637 postuninstall_cmds=$lt_postuninstall_cmds
49639 # Commands used to finish a libtool library installation in a directory.
49640 finish_cmds=$lt_finish_cmds
49642 # As "finish_cmds", except a single script fragment to be evaled but
49644 finish_eval=$lt_finish_eval
49646 # Whether we should hardcode library paths into libraries.
49647 hardcode_into_libs=$hardcode_into_libs
49649 # Compile-time system search path for libraries.
49650 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
49652 # Run-time system search path for libraries.
49653 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
49655 # Whether dlopen is supported.
49656 dlopen_support=$enable_dlopen
49658 # Whether dlopen of programs is supported.
49659 dlopen_self=$enable_dlopen_self
49661 # Whether dlopen of statically linked programs is supported.
49662 dlopen_self_static=$enable_dlopen_self_static
49664 # Commands to strip libraries.
49665 old_striplib=$lt_old_striplib
49666 striplib=$lt_striplib
49669 # The linker used to build libraries.
49672 # Commands used to build an old-style archive.
49673 old_archive_cmds=$lt_old_archive_cmds
49675 # A language specific compiler.
49678 # Is the compiler the GNU compiler?
49681 # Compiler flag to turn off builtin functions.
49682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
49684 # How to pass a linker flag through the compiler.
49685 wl=$lt_lt_prog_compiler_wl
49687 # Additional compiler flags for building library objects.
49688 pic_flag=$lt_lt_prog_compiler_pic
49690 # Compiler flag to prevent dynamic linking.
49691 link_static_flag=$lt_lt_prog_compiler_static
49693 # Does compiler simultaneously support -c and -o options?
49694 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
49696 # Whether or not to add -lc for building shared libraries.
49697 build_libtool_need_lc=$archive_cmds_need_lc
49699 # Whether or not to disallow shared libs when runtime libs are static.
49700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
49702 # Compiler flag to allow reflexive dlopens.
49703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
49705 # Compiler flag to generate shared objects directly from archives.
49706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
49708 # Whether the compiler copes with passing no objects directly.
49709 compiler_needs_object=$lt_compiler_needs_object
49711 # Create an old-style archive from a shared archive.
49712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49714 # Create a temporary old-style archive to link instead of a shared archive.
49715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49717 # Commands used to build a shared archive.
49718 archive_cmds=$lt_archive_cmds
49719 archive_expsym_cmds=$lt_archive_expsym_cmds
49721 # Commands used to build a loadable module if different from building
49722 # a shared archive.
49723 module_cmds=$lt_module_cmds
49724 module_expsym_cmds=$lt_module_expsym_cmds
49726 # Whether we are building with GNU ld or not.
49727 with_gnu_ld=$lt_with_gnu_ld
49729 # Flag that allows shared libraries with undefined symbols to be built.
49730 allow_undefined_flag=$lt_allow_undefined_flag
49732 # Flag that enforces no undefined symbols.
49733 no_undefined_flag=$lt_no_undefined_flag
49735 # Flag to hardcode \$libdir into a binary during linking.
49736 # This must work even if \$libdir does not exist
49737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49739 # If ld is used when linking, flag to hardcode \$libdir into a binary
49740 # during linking. This must work even if \$libdir does not exist.
49741 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
49743 # Whether we need a single "-rpath" flag with a separated argument.
49744 hardcode_libdir_separator=$lt_hardcode_libdir_separator
49746 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49747 # DIR into the resulting binary.
49748 hardcode_direct=$hardcode_direct
49750 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49751 # DIR into the resulting binary and the resulting library dependency is
49752 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49753 # library is relocated.
49754 hardcode_direct_absolute=$hardcode_direct_absolute
49756 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49757 # into the resulting binary.
49758 hardcode_minus_L=$hardcode_minus_L
49760 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49761 # into the resulting binary.
49762 hardcode_shlibpath_var=$hardcode_shlibpath_var
49764 # Set to "yes" if building a shared library automatically hardcodes DIR
49765 # into the library and all subsequent libraries and executables linked
49767 hardcode_automatic=$hardcode_automatic
49769 # Set to yes if linker adds runtime paths of dependent libraries
49770 # to runtime path list.
49771 inherit_rpath=$inherit_rpath
49773 # Whether libtool must link a program against all its dependency libraries.
49774 link_all_deplibs=$link_all_deplibs
49776 # Fix the shell variable \$srcfile for the compiler.
49777 fix_srcfile_path=$lt_fix_srcfile_path
49779 # Set to "yes" if exported symbols are required.
49780 always_export_symbols=$always_export_symbols
49782 # The commands to list exported symbols.
49783 export_symbols_cmds=$lt_export_symbols_cmds
49785 # Symbols that should not be listed in the preloaded symbols.
49786 exclude_expsyms=$lt_exclude_expsyms
49788 # Symbols that must always be exported.
49789 include_expsyms=$lt_include_expsyms
49791 # Commands necessary for linking programs (against libraries) with templates.
49792 prelink_cmds=$lt_prelink_cmds
49794 # Specify filename containing input files.
49795 file_list_spec=$lt_file_list_spec
49797 # How to hardcode a shared library path into an executable.
49798 hardcode_action=$hardcode_action
49800 # The directories searched by this compiler when creating a shared library.
49801 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
49803 # Dependencies to place before and after the objects being linked to
49804 # create a shared library.
49805 predep_objects=$lt_predep_objects
49806 postdep_objects=$lt_postdep_objects
49807 predeps=$lt_predeps
49808 postdeps=$lt_postdeps
49810 # The library search path used internally by the compiler when linking
49811 # a shared library.
49812 compiler_lib_search_path=$lt_compiler_lib_search_path
49814 # ### END LIBTOOL CONFIG
49820 cat <<\_LT_EOF >> "$cfgfile"
49821 # AIX sometimes has problems with the GCC collect2 program. For some
49822 # reason, if we set the COLLECT_NAMES environment variable, the problems
49823 # vanish in a puff of smoke.
49824 if test "X${COLLECT_NAMES+set}" != Xset; then
49826 export COLLECT_NAMES
49833 ltmain="$ac_aux_dir/ltmain.sh"
49836 # We use sed instead of cat because bash on DJGPP gets confused if
49837 # if finds mixed CR/LF and LF-only lines. Since sed operates in
49838 # text mode, it properly converts lines to CR/LF. This bash problem
49839 # is reportedly fixed, but why not run on old versions too?
49840 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
49841 || (rm -f "$cfgfile"; exit 1)
49845 cat << \_LT_EOF >> "$cfgfile"
49847 # func_dirname file append nondir_replacement
49848 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
49849 # otherwise set result to NONDIR_REPLACEMENT.
49853 */*) func_dirname_result="${1%/*}${2}" ;;
49854 * ) func_dirname_result="${3}" ;;
49858 # func_basename file
49861 func_basename_result="${1##*/}"
49864 # func_dirname_and_basename file append nondir_replacement
49865 # perform func_basename and func_dirname in a single function
49867 # dirname: Compute the dirname of FILE. If nonempty,
49868 # add APPEND to the result, otherwise set result
49869 # to NONDIR_REPLACEMENT.
49870 # value returned in "$func_dirname_result"
49871 # basename: Compute filename of FILE.
49872 # value retuned in "$func_basename_result"
49873 # Implementation must be kept synchronized with func_dirname
49874 # and func_basename. For efficiency, we do not delegate to
49875 # those functions but instead duplicate the functionality here.
49876 func_dirname_and_basename ()
49879 */*) func_dirname_result="${1%/*}${2}" ;;
49880 * ) func_dirname_result="${3}" ;;
49882 func_basename_result="${1##*/}"
49885 # func_stripname prefix suffix name
49886 # strip PREFIX and SUFFIX off of NAME.
49887 # PREFIX and SUFFIX must not contain globbing or regex special
49888 # characters, hashes, percent signs, but SUFFIX may contain a leading
49889 # dot (in which case that matches only a dot).
49892 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
49893 # positional parameters, so assign one to ordinary parameter first.
49894 func_stripname_result=${3}
49895 func_stripname_result=${func_stripname_result#"${1}"}
49896 func_stripname_result=${func_stripname_result%"${2}"}
49902 func_opt_split_opt=${1%%=*}
49903 func_opt_split_arg=${1#*=}
49910 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
49911 *) func_lo2o_result=${1} ;;
49915 # func_xform libobj-or-source
49918 func_xform_result=${1%.*}.lo
49921 # func_arith arithmetic-term...
49924 func_arith_result=$(( $* ))
49928 # STRING may not start with a hyphen.
49931 func_len_result=${#1}
49936 *) # Bourne compatible functions.
49937 cat << \_LT_EOF >> "$cfgfile"
49939 # func_dirname file append nondir_replacement
49940 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
49941 # otherwise set result to NONDIR_REPLACEMENT.
49944 # Extract subdirectory from the argument.
49945 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
49946 if test "X$func_dirname_result" = "X${1}"; then
49947 func_dirname_result="${3}"
49949 func_dirname_result="$func_dirname_result${2}"
49953 # func_basename file
49956 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
49960 # func_stripname prefix suffix name
49961 # strip PREFIX and SUFFIX off of NAME.
49962 # PREFIX and SUFFIX must not contain globbing or regex special
49963 # characters, hashes, percent signs, but SUFFIX may contain a leading
49964 # dot (in which case that matches only a dot).
49965 # func_strip_suffix prefix name
49969 .*) func_stripname_result=`$ECHO "X${3}" \
49970 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
49971 *) func_stripname_result=`$ECHO "X${3}" \
49972 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
49977 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
49978 my_sed_long_arg='1s/^-[^=]*=//'
49983 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
49984 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
49990 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
49993 # func_xform libobj-or-source
49996 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
49999 # func_arith arithmetic-term...
50002 func_arith_result=`expr "$@"`
50006 # STRING may not start with a hyphen.
50009 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
50015 case $lt_shell_append in
50017 cat << \_LT_EOF >> "$cfgfile"
50019 # func_append var value
50020 # Append VALUE to the end of shell variable VAR.
50028 cat << \_LT_EOF >> "$cfgfile"
50030 # func_append var value
50031 # Append VALUE to the end of shell variable VAR.
50042 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
50043 || (rm -f "$cfgfile"; exit 1)
50045 mv -f "$cfgfile" "$ofile" ||
50046 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
50050 cat <<_LT_EOF >> "$ofile"
50052 # ### BEGIN LIBTOOL TAG CONFIG: CXX
50054 # The linker used to build libraries.
50057 # Commands used to build an old-style archive.
50058 old_archive_cmds=$lt_old_archive_cmds_CXX
50060 # A language specific compiler.
50061 CC=$lt_compiler_CXX
50063 # Is the compiler the GNU compiler?
50066 # Compiler flag to turn off builtin functions.
50067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
50069 # How to pass a linker flag through the compiler.
50070 wl=$lt_lt_prog_compiler_wl_CXX
50072 # Additional compiler flags for building library objects.
50073 pic_flag=$lt_lt_prog_compiler_pic_CXX
50075 # Compiler flag to prevent dynamic linking.
50076 link_static_flag=$lt_lt_prog_compiler_static_CXX
50078 # Does compiler simultaneously support -c and -o options?
50079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
50081 # Whether or not to add -lc for building shared libraries.
50082 build_libtool_need_lc=$archive_cmds_need_lc_CXX
50084 # Whether or not to disallow shared libs when runtime libs are static.
50085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
50087 # Compiler flag to allow reflexive dlopens.
50088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
50090 # Compiler flag to generate shared objects directly from archives.
50091 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
50093 # Whether the compiler copes with passing no objects directly.
50094 compiler_needs_object=$lt_compiler_needs_object_CXX
50096 # Create an old-style archive from a shared archive.
50097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
50099 # Create a temporary old-style archive to link instead of a shared archive.
50100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
50102 # Commands used to build a shared archive.
50103 archive_cmds=$lt_archive_cmds_CXX
50104 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
50106 # Commands used to build a loadable module if different from building
50107 # a shared archive.
50108 module_cmds=$lt_module_cmds_CXX
50109 module_expsym_cmds=$lt_module_expsym_cmds_CXX
50111 # Whether we are building with GNU ld or not.
50112 with_gnu_ld=$lt_with_gnu_ld_CXX
50114 # Flag that allows shared libraries with undefined symbols to be built.
50115 allow_undefined_flag=$lt_allow_undefined_flag_CXX
50117 # Flag that enforces no undefined symbols.
50118 no_undefined_flag=$lt_no_undefined_flag_CXX
50120 # Flag to hardcode \$libdir into a binary during linking.
50121 # This must work even if \$libdir does not exist
50122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
50124 # If ld is used when linking, flag to hardcode \$libdir into a binary
50125 # during linking. This must work even if \$libdir does not exist.
50126 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
50128 # Whether we need a single "-rpath" flag with a separated argument.
50129 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
50131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50132 # DIR into the resulting binary.
50133 hardcode_direct=$hardcode_direct_CXX
50135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50136 # DIR into the resulting binary and the resulting library dependency is
50137 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
50138 # library is relocated.
50139 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
50141 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
50142 # into the resulting binary.
50143 hardcode_minus_L=$hardcode_minus_L_CXX
50145 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
50146 # into the resulting binary.
50147 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
50149 # Set to "yes" if building a shared library automatically hardcodes DIR
50150 # into the library and all subsequent libraries and executables linked
50152 hardcode_automatic=$hardcode_automatic_CXX
50154 # Set to yes if linker adds runtime paths of dependent libraries
50155 # to runtime path list.
50156 inherit_rpath=$inherit_rpath_CXX
50158 # Whether libtool must link a program against all its dependency libraries.
50159 link_all_deplibs=$link_all_deplibs_CXX
50161 # Fix the shell variable \$srcfile for the compiler.
50162 fix_srcfile_path=$lt_fix_srcfile_path_CXX
50164 # Set to "yes" if exported symbols are required.
50165 always_export_symbols=$always_export_symbols_CXX
50167 # The commands to list exported symbols.
50168 export_symbols_cmds=$lt_export_symbols_cmds_CXX
50170 # Symbols that should not be listed in the preloaded symbols.
50171 exclude_expsyms=$lt_exclude_expsyms_CXX
50173 # Symbols that must always be exported.
50174 include_expsyms=$lt_include_expsyms_CXX
50176 # Commands necessary for linking programs (against libraries) with templates.
50177 prelink_cmds=$lt_prelink_cmds_CXX
50179 # Specify filename containing input files.
50180 file_list_spec=$lt_file_list_spec_CXX
50182 # How to hardcode a shared library path into an executable.
50183 hardcode_action=$hardcode_action_CXX
50185 # The directories searched by this compiler when creating a shared library.
50186 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
50188 # Dependencies to place before and after the objects being linked to
50189 # create a shared library.
50190 predep_objects=$lt_predep_objects_CXX
50191 postdep_objects=$lt_postdep_objects_CXX
50192 predeps=$lt_predeps_CXX
50193 postdeps=$lt_postdeps_CXX
50195 # The library search path used internally by the compiler when linking
50196 # a shared library.
50197 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
50199 # ### END LIBTOOL TAG CONFIG: CXX
50204 for ac_file in $CONFIG_FILES; do
50205 # Support "outfile[:infile[:infile...]]"
50207 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
50209 # PO directories have a Makefile.in generated from Makefile.in.in.
50210 case "$ac_file" in */Makefile.in)
50211 # Adjust a relative srcdir.
50212 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
50213 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
50214 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
50215 # In autoconf-2.13 it is called $ac_given_srcdir.
50216 # In autoconf-2.50 it is called $srcdir.
50217 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
50218 case "$ac_given_srcdir" in
50219 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
50220 /*) top_srcdir="$ac_given_srcdir" ;;
50221 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
50223 # Treat a directory as a PO directory if and only if it has a
50224 # POTFILES.in file. This allows packages to have multiple PO
50225 # directories under different names or in different locations.
50226 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
50227 rm -f "$ac_dir/POTFILES"
50228 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
50229 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
50230 POMAKEFILEDEPS="POTFILES.in"
50231 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
50232 # on $ac_dir but don't depend on user-specified configuration
50234 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
50235 # The LINGUAS file contains the set of available languages.
50236 if test -n "$OBSOLETE_ALL_LINGUAS"; then
50237 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
50239 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
50240 # Hide the ALL_LINGUAS assigment from automake.
50241 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
50242 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
50244 # The set of available languages was given in configure.in.
50245 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
50248 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
50249 # Compute UPDATEPOFILES
50250 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
50251 # Compute DUMMYPOFILES
50252 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
50254 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
50255 case "$ac_given_srcdir" in
50257 *) srcdirpre='$(srcdir)/' ;;
50263 for lang in $ALL_LINGUAS; do
50264 POFILES="$POFILES $srcdirpre$lang.po"
50265 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
50266 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
50267 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
50269 # CATALOGS depends on both $ac_dir and the user's LINGUAS
50270 # environment variable.
50272 if test -n "$ALL_LINGUAS"; then
50273 for presentlang in $ALL_LINGUAS; do
50275 if test "%UNSET%" != "$LINGUAS"; then
50276 desiredlanguages="$LINGUAS"
50278 desiredlanguages="$ALL_LINGUAS"
50280 for desiredlang in $desiredlanguages; do
50281 # Use the presentlang catalog if desiredlang is
50282 # a. equal to presentlang, or
50283 # b. a variant of presentlang (because in this case,
50284 # presentlang can be used as a fallback for messages
50285 # which are not translated in the desiredlang catalog).
50286 case "$desiredlang" in
50287 "$presentlang"*) useit=yes;;
50290 if test $useit = yes; then
50291 INST_LINGUAS="$INST_LINGUAS $presentlang"
50296 if test -n "$INST_LINGUAS"; then
50297 for lang in $INST_LINGUAS; do
50298 CATALOGS="$CATALOGS $lang.gmo"
50301 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
50302 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"
50303 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
50304 if test -f "$f"; then
50306 *.orig | *.bak | *~) ;;
50307 *) cat "$f" >> "$ac_dir/Makefile" ;;
50322 { (exit 0); exit 0; }
50324 chmod +x $CONFIG_STATUS
50325 ac_clean_files=$ac_clean_files_save
50327 test $ac_write_fail = 0 ||
50328 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
50329 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
50330 { (exit 1); exit 1; }; }
50333 # configure is writing to config.log, and then calls config.status.
50334 # config.status does its own redirection, appending to config.log.
50335 # Unfortunately, on DOS this fails, as config.log is still kept open
50336 # by configure, so config.status won't be able to write to it; its
50337 # output is simply discarded. So we exec the FD to /dev/null,
50338 # effectively closing config.log, so it can be properly (re)opened and
50339 # appended to by config.status. When coming back to configure, we
50340 # need to make the FD available again.
50341 if test "$no_create" != yes; then
50343 ac_config_status_args=
50344 test "$silent" = yes &&
50345 ac_config_status_args="$ac_config_status_args --quiet"
50347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50350 # would make configure fail if this is the last instruction.
50351 $ac_cs_success || { (exit 1); exit 1; }
50353 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
50354 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
50355 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
50359 if test "${support_bat}" = "yes" ; then
50360 if test "x$QMAKE" = "xnone"; then
50361 { { $as_echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
50362 $as_echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
50363 { (exit 1); exit 1; }; }
50367 echo "Creating bat Makefile"
50372 ${MAKE:-make} clean
50376 if test X"$GCC" = "Xyes" ; then
50377 echo "Doing make of dependencies"
50378 ${MAKE:-make} depend
50382 chmod 755 install_conf_file build-depkgs-qt-console
50386 chmod 755 bacula btraceback mtx-changer
50387 chmod 755 dvd-handler dvd-simulator
50388 chmod 755 bconsole mtx-changer devel_bacula logrotate
50392 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
50393 chmod 755 $c/update_postgresql_tables_10_to_11
50394 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
50395 chmod 755 $c/update_postgresql_tables_11_to_12
50400 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
50401 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
50403 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
50404 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
50406 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
50407 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
50409 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
50410 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
50412 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
50413 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
50416 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
50417 chmod 755 $c/sqlite
50420 chmod 755 src/win32/build-depkgs-mingw32
50422 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
50423 largefile_support="yes"
50426 if test X"$GCC" = "Xyes" ; then
50427 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
50428 if test "x${CCVERSION}" = "x" ; then
50429 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
50431 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
50432 if test x"${CXXVERSION}" = x ; then
50433 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
50437 # clean up any old junk
50441 ${MAKE:-make} clean
50444 Configuration on `date`:
50446 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
50447 Bacula version: ${BACULA} ${VERSION} (${DATE})
50448 Source code location: ${srcdir}
50449 Install binaries: ${sbindir}
50450 Install libraries: ${libdir}
50451 Install config files: ${sysconfdir}
50452 Scripts directory: ${scriptdir}
50453 Archive directory: ${archivedir}
50454 Working directory: ${working_dir}
50455 PID directory: ${piddir}
50456 Subsys directory: ${subsysdir}
50457 Man directory: ${mandir}
50458 Data directory: ${datarootdir}
50459 Plugin directory: ${plugindir}
50460 C Compiler: ${CC} ${CCVERSION}
50461 C++ Compiler: ${CXX} ${CXXVERSION}
50462 Compiler flags: ${WCFLAGS} ${CFLAGS}
50463 Linker flags: ${WLDFLAGS} ${LDFLAGS}
50465 Statically Linked Tools: ${support_static_tools}
50466 Statically Linked FD: ${support_static_fd}
50467 Statically Linked SD: ${support_static_sd}
50468 Statically Linked DIR: ${support_static_dir}
50469 Statically Linked CONS: ${support_static_cons}
50470 Database backends: ${db_backends}
50471 Database port: ${db_port}
50472 Database name: ${db_name}
50473 Database user: ${db_user}
50475 Job Output Email: ${job_email}
50476 Traceback Email: ${dump_email}
50477 SMTP Host Address: ${smtp_host}
50479 Director Port: ${dir_port}
50480 File daemon Port: ${fd_port}
50481 Storage daemon Port: ${sd_port}
50483 Director User: ${dir_user}
50484 Director Group: ${dir_group}
50485 Storage Daemon User: ${sd_user}
50486 Storage DaemonGroup: ${sd_group}
50487 File Daemon User: ${fd_user}
50488 File Daemon Group: ${fd_group}
50490 Large file support: $largefile_support
50491 Bacula conio support: ${got_conio} ${CONS_LIBS}
50492 readline support: ${got_readline} ${PRTREADLINE_SRC}
50493 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
50494 TLS support: ${support_tls}
50495 Encryption support: ${support_crypto}
50496 ZLIB support: ${have_zlib}
50497 enable-smartalloc: ${support_smartalloc}
50498 enable-lockmgr: ${support_lockmgr}
50499 bat support: ${support_bat}
50500 enable-gnome: ${support_gnome} ${gnome_version}
50501 enable-bwx-console: ${support_wx_console} ${wx_version}
50502 enable-tray-monitor: ${support_tray_monitor}
50503 client-only: ${build_client_only}
50504 build-dird: ${build_dird}
50505 build-stored: ${build_stored}
50506 Plugin support: ${have_plugins}
50507 AFS support: ${have_afs}
50508 ACL support: ${have_acl}
50509 XATTR support: ${have_xattr}
50510 Python support: ${support_python} ${PYTHON_LIBS}
50511 Batch insert enabled: ${support_batch_insert}
50515 # create a small shell script useful for support with
50516 # configure options and config.out info
50517 cat > scripts/bacula_config << EOF
50520 $ $0 $ac_configure_args
50522 cat config.out >> scripts/bacula_config
50523 echo __EOC__ >> scripts/bacula_config
50524 chmod 755 scripts/bacula_config