2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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.
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
878 TRAY_MONITOR_CPPFLAGS
887 INTL_LIBTOOL_SUFFIX_PREFIX
894 BUILD_INCLUDED_LIBINTL
925 HAVE_OPENBSD_OS_FALSE
929 HAVE_FREEBSD_OS_FALSE
941 INCLUDE_UNINSTALL_TARGET
942 INCLUDE_INSTALL_TARGET
946 LIBTOOL_UNINSTALL_TARGET
947 LIBTOOL_INSTALL_TARGET
948 DEFAULT_SHARED_OBJECT_TYPE
1023 LIBBACFIND_LT_REVISION
1024 LIBBACFIND_LT_CURRENT
1026 LIBBACSQL_LT_REVISION
1027 LIBBACSQL_LT_CURRENT
1029 LIBBACPY_LT_REVISION
1032 LIBBACCFG_LT_REVISION
1033 LIBBACCFG_LT_CURRENT
1076 program_transform_name
1086 ac_subst_files='MCOMMON'
1088 enable_option_checking
1099 with_libiconv_prefix
1101 with_included_gettext
1140 with_mon_dir_password
1141 with_mon_fd_password
1142 with_mon_sd_password
1167 ac_precious_vars='build_alias
1185 # Initialize some variables set by options.
1187 ac_init_version=false
1188 ac_unrecognized_opts=
1189 ac_unrecognized_sep=
1190 # The variables have the same names as the options, with
1191 # dashes changed to underlines.
1192 cache_file=/dev/null
1199 program_transform_name=s,x,x,
1207 # Installation directory options.
1208 # These are left unexpanded so users can "make install exec_prefix=/foo"
1209 # and all the variables that are supposed to be based on exec_prefix
1210 # by default will actually change.
1211 # Use braces instead of parens because sh, perl, etc. also accept them.
1212 # (The list follows the same order as the GNU Coding Standards.)
1213 bindir='${exec_prefix}/bin'
1214 sbindir='${exec_prefix}/sbin'
1215 libexecdir='${exec_prefix}/libexec'
1216 datarootdir='${prefix}/share'
1217 datadir='${datarootdir}'
1218 sysconfdir='${prefix}/etc'
1219 sharedstatedir='${prefix}/com'
1220 localstatedir='${prefix}/var'
1221 includedir='${prefix}/include'
1222 oldincludedir='/usr/include'
1223 docdir='${datarootdir}/doc/${PACKAGE}'
1224 infodir='${datarootdir}/info'
1229 libdir='${exec_prefix}/lib'
1230 localedir='${datarootdir}/locale'
1231 mandir='${datarootdir}/man'
1237 # If the previous option needs an argument, assign it.
1238 if test -n "$ac_prev"; then
1239 eval $ac_prev=\$ac_option
1245 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1249 # Accept the important Cygnus configure options, so we can diagnose typos.
1251 case $ac_dashdash$ac_option in
1255 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1257 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1258 bindir=$ac_optarg ;;
1260 -build | --build | --buil | --bui | --bu)
1261 ac_prev=build_alias ;;
1262 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1263 build_alias=$ac_optarg ;;
1265 -cache-file | --cache-file | --cache-fil | --cache-fi \
1266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1267 ac_prev=cache_file ;;
1268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1270 cache_file=$ac_optarg ;;
1272 --config-cache | -C)
1273 cache_file=config.cache ;;
1275 -datadir | --datadir | --datadi | --datad)
1277 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1278 datadir=$ac_optarg ;;
1280 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1281 | --dataroo | --dataro | --datar)
1282 ac_prev=datarootdir ;;
1283 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1284 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1285 datarootdir=$ac_optarg ;;
1287 -disable-* | --disable-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1297 "enable_$ac_useropt"
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1302 eval enable_$ac_useropt=no ;;
1304 -docdir | --docdir | --docdi | --doc | --do)
1306 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1307 docdir=$ac_optarg ;;
1309 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1311 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1312 dvidir=$ac_optarg ;;
1314 -enable-* | --enable-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1319 { (exit 1); exit 1; }; }
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1324 "enable_$ac_useropt"
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1329 eval enable_$ac_useropt=\$ac_optarg ;;
1331 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1332 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1333 | --exec | --exe | --ex)
1334 ac_prev=exec_prefix ;;
1335 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1336 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1337 | --exec=* | --exe=* | --ex=*)
1338 exec_prefix=$ac_optarg ;;
1340 -gas | --gas | --ga | --g)
1341 # Obsolete; use --with-gas.
1344 -help | --help | --hel | --he | -h)
1345 ac_init_help=long ;;
1346 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1347 ac_init_help=recursive ;;
1348 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1349 ac_init_help=short ;;
1351 -host | --host | --hos | --ho)
1352 ac_prev=host_alias ;;
1353 -host=* | --host=* | --hos=* | --ho=*)
1354 host_alias=$ac_optarg ;;
1356 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1358 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1360 htmldir=$ac_optarg ;;
1362 -includedir | --includedir | --includedi | --included | --include \
1363 | --includ | --inclu | --incl | --inc)
1364 ac_prev=includedir ;;
1365 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1366 | --includ=* | --inclu=* | --incl=* | --inc=*)
1367 includedir=$ac_optarg ;;
1369 -infodir | --infodir | --infodi | --infod | --info | --inf)
1371 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1372 infodir=$ac_optarg ;;
1374 -libdir | --libdir | --libdi | --libd)
1376 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1377 libdir=$ac_optarg ;;
1379 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1380 | --libexe | --libex | --libe)
1381 ac_prev=libexecdir ;;
1382 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1383 | --libexe=* | --libex=* | --libe=*)
1384 libexecdir=$ac_optarg ;;
1386 -localedir | --localedir | --localedi | --localed | --locale)
1387 ac_prev=localedir ;;
1388 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1389 localedir=$ac_optarg ;;
1391 -localstatedir | --localstatedir | --localstatedi | --localstated \
1392 | --localstate | --localstat | --localsta | --localst | --locals)
1393 ac_prev=localstatedir ;;
1394 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1395 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1396 localstatedir=$ac_optarg ;;
1398 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1400 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1401 mandir=$ac_optarg ;;
1403 -nfp | --nfp | --nf)
1404 # Obsolete; use --without-fp.
1407 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1408 | --no-cr | --no-c | -n)
1411 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1412 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1415 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1416 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1417 | --oldin | --oldi | --old | --ol | --o)
1418 ac_prev=oldincludedir ;;
1419 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1420 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1421 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1422 oldincludedir=$ac_optarg ;;
1424 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1426 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1427 prefix=$ac_optarg ;;
1429 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1430 | --program-pre | --program-pr | --program-p)
1431 ac_prev=program_prefix ;;
1432 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1433 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1434 program_prefix=$ac_optarg ;;
1436 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1437 | --program-suf | --program-su | --program-s)
1438 ac_prev=program_suffix ;;
1439 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1440 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1441 program_suffix=$ac_optarg ;;
1443 -program-transform-name | --program-transform-name \
1444 | --program-transform-nam | --program-transform-na \
1445 | --program-transform-n | --program-transform- \
1446 | --program-transform | --program-transfor \
1447 | --program-transfo | --program-transf \
1448 | --program-trans | --program-tran \
1449 | --progr-tra | --program-tr | --program-t)
1450 ac_prev=program_transform_name ;;
1451 -program-transform-name=* | --program-transform-name=* \
1452 | --program-transform-nam=* | --program-transform-na=* \
1453 | --program-transform-n=* | --program-transform-=* \
1454 | --program-transform=* | --program-transfor=* \
1455 | --program-transfo=* | --program-transf=* \
1456 | --program-trans=* | --program-tran=* \
1457 | --progr-tra=* | --program-tr=* | --program-t=*)
1458 program_transform_name=$ac_optarg ;;
1460 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1462 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1463 pdfdir=$ac_optarg ;;
1465 -psdir | --psdir | --psdi | --psd | --ps)
1467 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1471 | -silent | --silent | --silen | --sile | --sil)
1474 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1476 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1478 sbindir=$ac_optarg ;;
1480 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1481 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1482 | --sharedst | --shareds | --shared | --share | --shar \
1484 ac_prev=sharedstatedir ;;
1485 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1486 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1487 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1489 sharedstatedir=$ac_optarg ;;
1491 -site | --site | --sit)
1493 -site=* | --site=* | --sit=*)
1496 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1498 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1499 srcdir=$ac_optarg ;;
1501 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1502 | --syscon | --sysco | --sysc | --sys | --sy)
1503 ac_prev=sysconfdir ;;
1504 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1505 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1506 sysconfdir=$ac_optarg ;;
1508 -target | --target | --targe | --targ | --tar | --ta | --t)
1509 ac_prev=target_alias ;;
1510 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1511 target_alias=$ac_optarg ;;
1513 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1516 -version | --version | --versio | --versi | --vers | -V)
1517 ac_init_version=: ;;
1520 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1521 # Reject names that are not valid shell variable names.
1522 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1523 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1524 { (exit 1); exit 1; }; }
1525 ac_useropt_orig=$ac_useropt
1526 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1531 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1532 ac_unrecognized_sep=', ';;
1534 eval with_$ac_useropt=\$ac_optarg ;;
1536 -without-* | --without-*)
1537 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1538 # Reject names that are not valid shell variable names.
1539 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1540 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1541 { (exit 1); exit 1; }; }
1542 ac_useropt_orig=$ac_useropt
1543 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1544 case $ac_user_opts in
1548 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1549 ac_unrecognized_sep=', ';;
1551 eval with_$ac_useropt=no ;;
1554 # Obsolete; use --with-x.
1557 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1558 | --x-incl | --x-inc | --x-in | --x-i)
1559 ac_prev=x_includes ;;
1560 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1561 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1562 x_includes=$ac_optarg ;;
1564 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1565 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1566 ac_prev=x_libraries ;;
1567 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1568 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1569 x_libraries=$ac_optarg ;;
1571 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1572 Try \`$0 --help' for more information." >&2
1573 { (exit 1); exit 1; }; }
1577 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1578 # Reject names that are not valid shell variable names.
1579 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1580 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1581 { (exit 1); exit 1; }; }
1582 eval $ac_envvar=\$ac_optarg
1583 export $ac_envvar ;;
1586 # FIXME: should be removed in autoconf 3.0.
1587 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1588 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1589 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1590 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1596 if test -n "$ac_prev"; then
1597 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1598 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1599 { (exit 1); exit 1; }; }
1602 if test -n "$ac_unrecognized_opts"; then
1603 case $enable_option_checking in
1605 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1606 { (exit 1); exit 1; }; } ;;
1607 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1611 # Check all directory arguments for consistency.
1612 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1613 datadir sysconfdir sharedstatedir localstatedir includedir \
1614 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1615 libdir localedir mandir
1617 eval ac_val=\$$ac_var
1618 # Remove trailing slashes.
1621 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1622 eval $ac_var=\$ac_val;;
1624 # Be sure to have absolute directory names.
1626 [\\/$]* | ?:[\\/]* ) continue;;
1627 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1629 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1630 { (exit 1); exit 1; }; }
1633 # There might be people who depend on the old broken behavior: `$host'
1634 # used to hold the argument of --host etc.
1635 # FIXME: To remove some day.
1638 target=$target_alias
1640 # FIXME: To remove some day.
1641 if test "x$host_alias" != x; then
1642 if test "x$build_alias" = x; then
1643 cross_compiling=maybe
1644 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1645 If a cross compiler is detected then cross compile mode will be used." >&2
1646 elif test "x$build_alias" != "x$host_alias"; then
1652 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1654 test "$silent" = yes && exec 6>/dev/null
1657 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1658 ac_ls_di=`ls -di .` &&
1659 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1660 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1661 { (exit 1); exit 1; }; }
1662 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1663 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1664 { (exit 1); exit 1; }; }
1667 # Find the source files, if location was not specified.
1668 if test -z "$srcdir"; then
1669 ac_srcdir_defaulted=yes
1670 # Try the directory containing this script, then the parent directory.
1671 ac_confdir=`$as_dirname -- "$as_myself" ||
1672 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1673 X"$as_myself" : 'X\(//\)[^/]' \| \
1674 X"$as_myself" : 'X\(//\)$' \| \
1675 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1676 $as_echo X"$as_myself" |
1677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1695 if test ! -r "$srcdir/$ac_unique_file"; then
1699 ac_srcdir_defaulted=no
1701 if test ! -r "$srcdir/$ac_unique_file"; then
1702 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1703 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1704 { (exit 1); exit 1; }; }
1706 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1708 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1709 { (exit 1); exit 1; }; }
1711 # When building in place, set srcdir=.
1712 if test "$ac_abs_confdir" = "$ac_pwd"; then
1715 # Remove unnecessary trailing slashes from srcdir.
1716 # Double slashes in file names in object file debugging info
1717 # mess up M-x gdb in Emacs.
1719 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1721 for ac_var in $ac_precious_vars; do
1722 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1723 eval ac_env_${ac_var}_value=\$${ac_var}
1724 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1725 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1729 # Report the --help message.
1731 if test "$ac_init_help" = "long"; then
1732 # Omit some internal or obsolete options to make the list less imposing.
1733 # This message is too long to be a string in the A/UX 3.1 sh.
1735 \`configure' configures this package to adapt to many kinds of systems.
1737 Usage: $0 [OPTION]... [VAR=VALUE]...
1739 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1740 VAR=VALUE. See below for descriptions of some of the useful variables.
1742 Defaults for the options are specified in brackets.
1745 -h, --help display this help and exit
1746 --help=short display options specific to this package
1747 --help=recursive display the short help of all the included packages
1748 -V, --version display version information and exit
1749 -q, --quiet, --silent do not print \`checking...' messages
1750 --cache-file=FILE cache test results in FILE [disabled]
1751 -C, --config-cache alias for \`--cache-file=config.cache'
1752 -n, --no-create do not create output files
1753 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1755 Installation directories:
1756 --prefix=PREFIX install architecture-independent files in PREFIX
1757 [$ac_default_prefix]
1758 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1761 By default, \`make install' will install all the files in
1762 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1763 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1764 for instance \`--prefix=\$HOME'.
1766 For better control, use the options below.
1768 Fine tuning of the installation directories:
1769 --bindir=DIR user executables [EPREFIX/bin]
1770 --sbindir=DIR system admin executables [EPREFIX/sbin]
1771 --libexecdir=DIR program executables [EPREFIX/libexec]
1772 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1773 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1774 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1775 --libdir=DIR object code libraries [EPREFIX/lib]
1776 --includedir=DIR C header files [PREFIX/include]
1777 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1778 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1779 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1780 --infodir=DIR info documentation [DATAROOTDIR/info]
1781 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1782 --mandir=DIR man documentation [DATAROOTDIR/man]
1783 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1784 --htmldir=DIR html documentation [DOCDIR]
1785 --dvidir=DIR dvi documentation [DOCDIR]
1786 --pdfdir=DIR pdf documentation [DOCDIR]
1787 --psdir=DIR ps documentation [DOCDIR]
1793 --x-includes=DIR X include files are in DIR
1794 --x-libraries=DIR X library files are in DIR
1797 --build=BUILD configure for building on BUILD [guessed]
1798 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1802 if test -n "$ac_init_help"; then
1807 --disable-option-checking ignore unrecognized --enable/--with options
1808 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1809 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1810 --enable-libtool enable building using GNU libtool [default=yes]
1811 --enable-shared[=PKGS] build shared libraries [default=yes]
1812 --enable-static[=PKGS] build static libraries [default=no]
1813 --enable-fast-install[=PKGS]
1814 optimize for fast installation [default=yes]
1815 --disable-libtool-lock avoid locking (might break parallel builds)
1816 --enable-includes enable installing of include files [default=no]
1817 --disable-nls do not use Native Language Support
1818 --disable-rpath do not hardcode runtime library paths
1819 --enable-gnome enable build of bgnome-console GUI [default=no]
1820 --enable-bat enable build of bat Qt4 GUI [default=no]
1821 --enable-bwx-console enable build of wxWidgets console [default=no]
1822 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1824 --enable-smartalloc enable smartalloc debugging support [default=no]
1825 --enable-lockmgr enable lock manager support [default=no]
1826 --enable-static-tools enable static tape tools [default=no]
1827 --enable-static-fd enable static File daemon [default=no]
1828 --enable-static-sd enable static Storage daemon [default=no]
1829 --enable-static-dir enable static Director [default=no]
1830 --enable-static-cons enable static Console [default=no]
1831 --enable-client-only build client (File daemon) only [default=no]
1832 --enable-build-dird enable building of dird (Director) [default=yes]
1833 --enable-build-stored enable building of stored (Storage daemon)
1835 --disable-conio disable conio support [default=no]
1836 --enable-ipv6 enable ipv6 support [default=yes]
1837 --disable-readline disable readline support [default=yes]
1838 --enable-batch-insert enable the DB batch insert code [default=no]
1839 --disable-largefile omit support for large files
1840 --disable-acl disable acl support [default=auto]
1841 --disable-xattr disable xattr support [default=auto]
1844 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1845 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1846 --with-pic try to use only PIC/non-PIC objects [default=use
1848 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1849 --with-gnu-ld assume the C compiler uses GNU ld default=no
1850 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1851 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1852 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1853 --without-libintl-prefix don't search for libintl in includedir and libdir
1854 --with-included-gettext use the GNU gettext library included here
1855 --with-readline[=DIR] specify readline library directory
1856 --with-python[=DIR] Include Python support. DIR is the Python base
1857 install directory, default is to search through a
1858 number of common places for the Python files.
1859 --with-tcp-wrappers[=DIR]
1860 enable tcpwrappers support
1861 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1862 --with-working-dir=PATH specify path of Bacula working directory
1863 --with-archivedir=PATH specify path of SD archive directory
1864 --with-basename=RESNAME specify base resource name for daemons
1865 --with-hostname=RESNAME specify host name for daemons
1866 --with-scriptdir=PATH specify path of Bacula scripts directory
1867 --with-bsrdir=PATH specify path of Bacula bsrs directory
1868 --with-logdir=PATH specify path of Bacula logs directory
1869 --with-plugindir=PATH specify path of Bacula plugins directory
1870 --with-dump-email=EMAIL dump email address
1871 --with-job-email=EMAIL job output email address
1872 --with-smtp-host=HOST SMTP mail host address
1873 --with-pid-dir=PATH specify location of Bacula pid files
1874 --with-subsys-dir=PATH specify location of Bacula subsys file
1875 --with-baseport=PORT specify base port address for daemons
1876 --with-dir-password=PASSWORD
1877 specify Director's password
1878 --with-fd-password=PASSWORD
1879 specify Client's password
1880 --with-sd-password=PASSWORD
1881 specify Storage daemon's password
1882 --with-mon-dir-password=PASSWORD
1883 specify Director's password used by the monitor
1884 --with-mon-fd-password=PASSWORD
1885 specify Client's password used by the monitor
1886 --with-mon-sd-password=PASSWORD
1887 specify Storage daemon's password used by the
1889 --with-db-name=DBNAME specify database name [default=bacula]
1890 --with-db-user=UNAME specify database user [default=bacula]
1891 --with-db-password=PWD specify database password [default=*none*]
1892 --with-db-port=DBPORT specify a database port [default=null]
1893 --with-dir-user=USER specify user for Director daemon
1894 --with-dir-group=GROUP specify group for Director daemon
1895 --with-sd-user=USER specify user for Storage daemon
1896 --with-sd-group=GROUP specify group for Storage daemon
1897 --with-fd-user=USER specify user for File daemon
1898 --with-fd-group=GROUP specify group for File daemon
1899 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1900 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1901 base install directory, [default=/usr/local/pgsql]
1902 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1903 directory, default is to search through a number of
1904 common places for the MySQL files.
1905 --with-embedded-mysql[=DIR]
1906 Include MySQL support. DIR is the MySQL base install
1907 directory, default is to search through a number of
1908 common places for the MySQL files.
1909 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1910 install directory, default is to search through a
1911 number of common places for the Ingres files.
1912 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1913 install directory, default is to search through a
1914 number of common places for the SQLite3 files.
1915 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1916 directory, default is to search through a number of
1917 common places for the DBI files.
1918 --with-dbi-driver[=DRIVER]
1919 Suport for DBI driver. DRIVER is the one DBI driver
1920 like Mysql, Postgresql, others. Default is to not
1921 configure any driver.
1922 --with-x use the X Window System
1924 Some influential environment variables:
1925 CC C compiler command
1926 CFLAGS C compiler flags
1927 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1928 nonstandard directory <lib dir>
1929 LIBS libraries to pass to the linker, e.g. -l<library>
1930 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1931 you have headers in a nonstandard directory <include dir>
1932 CXX C++ compiler command
1933 CXXFLAGS C++ compiler flags
1935 WXCONFIG wx-config command. On some systems, you must set it to
1936 wx-config-2.6 to use wxWidgets 2.6.
1937 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1938 CXXCPP C++ preprocessor
1939 XMKMF Path to xmkmf, Makefile generator for X Window System
1941 Use these variables to override the choices made by `configure' or to help
1942 it to find libraries and programs with nonstandard names/locations.
1948 if test "$ac_init_help" = "recursive"; then
1949 # If there are subdirs, report their specific --help.
1950 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1951 test -d "$ac_dir" ||
1952 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1959 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1960 # A ".." for each directory in $ac_dir_suffix.
1961 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1962 case $ac_top_builddir_sub in
1963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1967 ac_abs_top_builddir=$ac_pwd
1968 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1969 # for backward compatibility:
1970 ac_top_builddir=$ac_top_build_prefix
1973 .) # We are building in place.
1975 ac_top_srcdir=$ac_top_builddir_sub
1976 ac_abs_top_srcdir=$ac_pwd ;;
1977 [\\/]* | ?:[\\/]* ) # Absolute name.
1978 ac_srcdir=$srcdir$ac_dir_suffix;
1979 ac_top_srcdir=$srcdir
1980 ac_abs_top_srcdir=$srcdir ;;
1982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1983 ac_top_srcdir=$ac_top_build_prefix$srcdir
1984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1988 cd "$ac_dir" || { ac_status=$?; continue; }
1989 # Check for guested configure.
1990 if test -f "$ac_srcdir/configure.gnu"; then
1992 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1993 elif test -f "$ac_srcdir/configure"; then
1995 $SHELL "$ac_srcdir/configure" --help=recursive
1997 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1999 cd "$ac_pwd" || { ac_status=$?; break; }
2003 test -n "$ac_init_help" && exit $ac_status
2004 if $ac_init_version; then
2007 generated by GNU Autoconf 2.63
2009 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2010 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2011 This configure script is free software; the Free Software Foundation
2012 gives unlimited permission to copy, distribute and modify it.
2016 cat >config.log <<_ACEOF
2017 This file contains any messages produced by compilers while
2018 running configure, to aid debugging if configure makes a mistake.
2020 It was created by $as_me, which was
2021 generated by GNU Autoconf 2.63. Invocation command line was
2033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2045 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 $as_echo "PATH: $as_dir"
2073 # Keep a trace of the command line.
2074 # Strip out --no-create and --no-recursion so they do not pile up.
2075 # Strip out --silent because we don't want to record it for future runs.
2076 # Also quote any args containing shell meta-characters.
2077 # Make two passes to allow for proper duplicate-argument suppression.
2081 ac_must_keep_next=false
2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089 | -silent | --silent | --silen | --sile | --sil)
2092 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2095 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2097 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2098 if test $ac_must_keep_next = true; then
2099 ac_must_keep_next=false # Got value, back to normal.
2102 *=* | --config-cache | -C | -disable-* | --disable-* \
2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105 | -with-* | --with-* | -without-* | --without-* | --x)
2106 case "$ac_configure_args0 " in
2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2110 -* ) ac_must_keep_next=true ;;
2113 ac_configure_args="$ac_configure_args '$ac_arg'"
2118 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2119 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2121 # When interrupted or exit'd, cleanup temporary files, and complete
2122 # config.log. We remove comments because anyway the quotes in there
2123 # would cause problems or look ugly.
2124 # WARNING: Use '\'' to represent an apostrophe within the trap.
2125 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2126 trap 'exit_status=$?
2127 # Save into config.log some information that might help in debugging.
2132 ## ---------------- ##
2133 ## Cache variables. ##
2134 ## ---------------- ##
2137 # The following way of writing the cache mishandles newlines in values,
2139 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2140 eval ac_val=\$$ac_var
2144 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2145 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2148 _ | IFS | as_nl) ;; #(
2149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2150 *) $as_unset $ac_var ;;
2155 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2156 *${as_nl}ac_space=\ *)
2158 "s/'\''/'\''\\\\'\'''\''/g;
2159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2170 ## ----------------- ##
2171 ## Output variables. ##
2172 ## ----------------- ##
2175 for ac_var in $ac_subst_vars
2177 eval ac_val=\$$ac_var
2179 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181 $as_echo "$ac_var='\''$ac_val'\''"
2185 if test -n "$ac_subst_files"; then
2187 ## ------------------- ##
2188 ## File substitutions. ##
2189 ## ------------------- ##
2192 for ac_var in $ac_subst_files
2194 eval ac_val=\$$ac_var
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198 $as_echo "$ac_var='\''$ac_val'\''"
2203 if test -s confdefs.h; then
2213 test "$ac_signal" != 0 &&
2214 $as_echo "$as_me: caught signal $ac_signal"
2215 $as_echo "$as_me: exit $exit_status"
2217 rm -f core *.core core.conftest.* &&
2218 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221 for ac_signal in 1 2 13 15; do
2222 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2226 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2227 rm -f -r conftest* confdefs.h
2229 # Predefined preprocessor variables.
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_STRING "$PACKAGE_STRING"
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2260 if test -n "$CONFIG_SITE"; then
2261 ac_site_file1=$CONFIG_SITE
2262 elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 test "x$ac_site_file" = xNONE && continue
2272 if test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
2280 if test -r "$cache_file"; then
2281 # Some versions of bash will fail to source /dev/null (special
2282 # files actually), so we avoid doing that.
2283 if test -f "$cache_file"; then
2284 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2285 $as_echo "$as_me: loading cache $cache_file" >&6;}
2287 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288 *) . "./$cache_file";;
2292 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2293 $as_echo "$as_me: creating cache $cache_file" >&6;}
2297 # Check that the precious variables saved in the cache have kept the same
2299 ac_cache_corrupted=false
2300 for ac_var in $ac_precious_vars; do
2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302 eval ac_new_set=\$ac_env_${ac_var}_set
2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304 eval ac_new_val=\$ac_env_${ac_var}_value
2305 case $ac_old_set,$ac_new_set in
2307 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2311 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2316 if test "x$ac_old_val" != "x$ac_new_val"; then
2317 # differences in whitespace do not lead to failure.
2318 ac_old_val_w=`echo x $ac_old_val`
2319 ac_new_val_w=`echo x $ac_new_val`
2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2322 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323 ac_cache_corrupted=:
2325 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327 eval $ac_var=\$ac_old_val
2329 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2330 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2331 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2332 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2335 # Pass precious variables to config.status.
2336 if test "$ac_new_set" = set; then
2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 *) ac_arg=$ac_var=$ac_new_val ;;
2341 case " $ac_configure_args " in
2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2347 if $ac_cache_corrupted; then
2348 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2351 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2353 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2354 { (exit 1); exit 1; }; }
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2388 if test -f "$ac_dir/install-sh"; then
2390 ac_install_sh="$ac_aux_dir/install-sh -c"
2392 elif test -f "$ac_dir/install.sh"; then
2394 ac_install_sh="$ac_aux_dir/install.sh -c"
2396 elif test -f "$ac_dir/shtool"; then
2398 ac_install_sh="$ac_aux_dir/shtool install -c"
2402 if test -z "$ac_aux_dir"; then
2403 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2404 $as_echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2405 { (exit 1); exit 1; }; }
2408 # These three variables are undocumented and unsupported,
2409 # and are intended to be withdrawn in a future Autoconf release.
2410 # They can cause serious problems if a builder's source tree is in a directory
2411 # whose full name contains unusual characters.
2412 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2413 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2414 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2417 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2420 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2421 WIN32MAINDIR=${BUILD_DIR}
2422 WIN32TOPDIR=${TOP_DIR}
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2434 $as_echo_n "(cached) " >&6
2438 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 TRUEPRG=$ac_cv_path_TRUEPRG
2460 if test -n "$TRUEPRG"; then
2461 { $as_echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2462 $as_echo "$TRUEPRG" >&6; }
2464 { $as_echo "$as_me:$LINENO: result: no" >&5
2465 $as_echo "no" >&6; }
2469 test -n "$TRUEPRG" && break
2471 test -n "$TRUEPRG" || TRUEPRG=":"
2473 for ac_prog in false
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2480 $as_echo_n "(cached) " >&6
2484 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 FALSEPRG=$ac_cv_path_FALSEPRG
2506 if test -n "$FALSEPRG"; then
2507 { $as_echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2508 $as_echo "$FALSEPRG" >&6; }
2510 { $as_echo "$as_me:$LINENO: result: no" >&5
2511 $as_echo "no" >&6; }
2515 test -n "$FALSEPRG" && break
2517 test -n "$FALSEPRG" || FALSEPRG=":"
2522 if test "x$BACULA" != x; then
2523 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2525 BACULA=${BACULA:-Bacula}
2526 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2527 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2528 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2530 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2531 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2532 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2533 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2534 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2535 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2536 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2537 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2538 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2541 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2542 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2543 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2545 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2546 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2547 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2549 echo "configuring for ${BACULA} $VERSION ($DATE)"
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558 if test -n "$ac_tool_prefix"; then
2559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 $as_echo_n "(cached) " >&6
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 if test -n "$CC"; then
2588 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2589 $as_echo "$CC" >&6; }
2591 { $as_echo "$as_me:$LINENO: result: no" >&5
2592 $as_echo "no" >&6; }
2597 if test -z "$ac_cv_prog_CC"; then
2599 # Extract the first word of "gcc", so it can be a program name with args.
2600 set dummy gcc; ac_word=$2
2601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 $as_echo_n "checking for $ac_word... " >&6; }
2603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2604 $as_echo_n "(cached) " >&6
2606 if test -n "$ac_ct_CC"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_ac_ct_CC="gcc"
2617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627 if test -n "$ac_ct_CC"; then
2628 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2629 $as_echo "$ac_ct_CC" >&6; }
2631 { $as_echo "$as_me:$LINENO: result: no" >&5
2632 $as_echo "no" >&6; }
2635 if test "x$ac_ct_CC" = x; then
2638 case $cross_compiling:$ac_tool_warned in
2640 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2642 ac_tool_warned=yes ;;
2650 if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
2652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2653 set dummy ${ac_tool_prefix}cc; ac_word=$2
2654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if test "${ac_cv_prog_CC+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2659 if test -n "$CC"; then
2660 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_CC="${ac_tool_prefix}cc"
2670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 if test -n "$CC"; then
2681 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2682 $as_echo "$CC" >&6; }
2684 { $as_echo "$as_me:$LINENO: result: no" >&5
2685 $as_echo "no" >&6; }
2691 if test -z "$CC"; then
2692 # Extract the first word of "cc", so it can be a program name with args.
2693 set dummy cc; ac_word=$2
2694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 $as_echo_n "(cached) " >&6
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2711 ac_prog_rejected=yes
2715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 if test $ac_prog_rejected = yes; then
2723 # We found a bogon in the path, so make sure we never use it.
2724 set dummy $ac_cv_prog_CC
2726 if test $# != 0; then
2727 # We chose a different compiler from the bogus one.
2728 # However, it has the same basename, so the bogon will be chosen
2729 # first if we set CC to just the basename; use the full file name.
2731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2737 if test -n "$CC"; then
2738 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2741 { $as_echo "$as_me:$LINENO: result: no" >&5
2742 $as_echo "no" >&6; }
2747 if test -z "$CC"; then
2748 if test -n "$ac_tool_prefix"; then
2749 for ac_prog in cl.exe
2751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_CC+set}" = set; then
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 if test -n "$CC"; then
2780 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2781 $as_echo "$CC" >&6; }
2783 { $as_echo "$as_me:$LINENO: result: no" >&5
2784 $as_echo "no" >&6; }
2788 test -n "$CC" && break
2791 if test -z "$CC"; then
2793 for ac_prog in cl.exe
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2800 $as_echo_n "(cached) " >&6
2802 if test -n "$ac_ct_CC"; then
2803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_ac_ct_CC="$ac_prog"
2813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823 if test -n "$ac_ct_CC"; then
2824 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2825 $as_echo "$ac_ct_CC" >&6; }
2827 { $as_echo "$as_me:$LINENO: result: no" >&5
2828 $as_echo "no" >&6; }
2832 test -n "$ac_ct_CC" && break
2835 if test "x$ac_ct_CC" = x; then
2838 case $cross_compiling:$ac_tool_warned in
2840 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2851 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&5
2855 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&2;}
2857 { (exit 1); exit 1; }; }; }
2859 # Provide some information about the compiler.
2860 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2863 { (ac_try="$ac_compiler --version >&5"
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2869 $as_echo "$ac_try_echo") >&5
2870 (eval "$ac_compiler --version >&5") 2>&5
2872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (ac_try="$ac_compiler -v >&5"
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881 (eval "$ac_compiler -v >&5") 2>&5
2883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }
2885 { (ac_try="$ac_compiler -V >&5"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2891 $as_echo "$ac_try_echo") >&5
2892 (eval "$ac_compiler -V >&5") 2>&5
2894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2912 ac_clean_files_save=$ac_clean_files
2913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2914 # Try to create an executable without -o first, disregard a.out.
2915 # It will help us diagnose broken compilers, and finding out an intuition
2917 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2918 $as_echo_n "checking for C compiler default output file name... " >&6; }
2919 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2921 # The possible output files:
2922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2925 for ac_file in $ac_files
2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2934 if { (ac_try="$ac_link_default"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941 (eval "$ac_link_default") 2>&5
2943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2948 # so that the user can short-circuit this test for compilers unknown to
2950 for ac_file in $ac_files ''
2952 test -f "$ac_file" || continue
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2957 # We found the default executable, but exeext='' is most
2961 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2963 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 # We set ac_cv_exeext here because the later test for it is not
2966 # safe: cross compilers may not add the suffix if given an `-o'
2967 # argument, so we may need to know it at that point already.
2968 # Even if this section looks crufty: it has the advantage of
2975 test "$ac_cv_exeext" = no && ac_cv_exeext=
2981 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2982 $as_echo "$ac_file" >&6; }
2983 if test -z "$ac_file"; then
2984 $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2990 See \`config.log' for more details." >&5
2991 $as_echo "$as_me: error: C compiler cannot create executables
2992 See \`config.log' for more details." >&2;}
2993 { (exit 77); exit 77; }; }; }
2996 ac_exeext=$ac_cv_exeext
2998 # Check that the compiler produces executables we can run. If not, either
2999 # the compiler is broken, or we cross compile.
3000 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3001 $as_echo_n "checking whether the C compiler works... " >&6; }
3002 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3003 # If not cross compiling, check that we can run a simple program.
3004 if test "$cross_compiling" != yes; then
3005 if { ac_try='./$ac_file'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3011 $as_echo "$ac_try_echo") >&5
3012 (eval "$ac_try") 2>&5
3014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3018 if test "$cross_compiling" = maybe; then
3021 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3024 If you meant to cross compile, use \`--host'.
3025 See \`config.log' for more details." >&5
3026 $as_echo "$as_me: error: cannot run C compiled programs.
3027 If you meant to cross compile, use \`--host'.
3028 See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }; }
3033 { $as_echo "$as_me:$LINENO: result: yes" >&5
3034 $as_echo "yes" >&6; }
3036 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3041 $as_echo_n "checking whether we are cross compiling... " >&6; }
3042 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3043 $as_echo "$cross_compiling" >&6; }
3045 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3046 $as_echo_n "checking for suffix of executables... " >&6; }
3047 if { (ac_try="$ac_link"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3053 $as_echo "$ac_try_echo") >&5
3054 (eval "$ac_link") 2>&5
3056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; then
3058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3059 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3060 # work properly (i.e., refer to `conftest.exe'), while it won't with
3062 for ac_file in conftest.exe conftest conftest.*; do
3063 test -f "$ac_file" || continue
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3075 See \`config.log' for more details." >&5
3076 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3077 See \`config.log' for more details." >&2;}
3078 { (exit 1); exit 1; }; }; }
3081 rm -f conftest$ac_cv_exeext
3082 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3083 $as_echo "$ac_cv_exeext" >&6; }
3085 rm -f conftest.$ac_ext
3086 EXEEXT=$ac_cv_exeext
3088 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3089 $as_echo_n "checking for suffix of object files... " >&6; }
3090 if test "${ac_cv_objext+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3108 rm -f conftest.o conftest.obj
3109 if { (ac_try="$ac_compile"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3115 $as_echo "$ac_try_echo") >&5
3116 (eval "$ac_compile") 2>&5
3118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; then
3120 for ac_file in conftest.o conftest.obj conftest.*; do
3121 test -f "$ac_file" || continue;
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3129 $as_echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3135 See \`config.log' for more details." >&5
3136 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }; }
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3143 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3144 $as_echo "$ac_cv_objext" >&6; }
3145 OBJEXT=$ac_cv_objext
3147 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3149 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3150 $as_echo_n "(cached) " >&6
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177 $as_echo "$ac_try_echo") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3190 $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3200 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3201 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3202 if test $ac_compiler_gnu = yes; then
3207 ac_test_CFLAGS=${CFLAGS+set}
3208 ac_save_CFLAGS=$CFLAGS
3209 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3210 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3211 if test "${ac_cv_prog_cc_g+set}" = set; then
3212 $as_echo_n "(cached) " >&6
3214 ac_save_c_werror_flag=$ac_c_werror_flag
3215 ac_c_werror_flag=yes
3218 cat >conftest.$ac_ext <<_ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3240 $as_echo "$ac_try_echo") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3279 $as_echo "$ac_try_echo") >&5
3280 (eval "$ac_compile") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } && {
3287 test -z "$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3289 } && test -s conftest.$ac_objext; then
3292 $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 ac_c_werror_flag=$ac_save_c_werror_flag
3297 cat >conftest.$ac_ext <<_ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3319 $as_echo "$ac_try_echo") >&5
3320 (eval "$ac_compile") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } && {
3327 test -z "$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3329 } && test -s conftest.$ac_objext; then
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_c_werror_flag=$ac_save_c_werror_flag
3347 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3348 $as_echo "$ac_cv_prog_cc_g" >&6; }
3349 if test "$ac_test_CFLAGS" = set; then
3350 CFLAGS=$ac_save_CFLAGS
3351 elif test $ac_cv_prog_cc_g = yes; then
3352 if test "$GCC" = yes; then
3358 if test "$GCC" = yes; then
3364 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3365 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3366 if test "${ac_cv_prog_cc_c89+set}" = set; then
3367 $as_echo_n "(cached) " >&6
3369 ac_cv_prog_cc_c89=no
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3379 #include <sys/types.h>
3380 #include <sys/stat.h>
3381 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3382 struct buf { int x; };
3383 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3384 static char *e (p, i)
3390 static char *f (char * (*g) (char **, int), char **p, ...)
3395 s = g (p, va_arg (v,int));
3400 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3401 function prototypes and stuff, but not '\xHH' hex character constants.
3402 These don't provoke an error unfortunately, instead are silently treated
3403 as 'x'. The following induces an error, until -std is added to get
3404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3405 array size at least. It's necessary to write '\x00'==0 to get something
3406 that's true only with -std. */
3407 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3409 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3410 inside strings and character constants. */
3412 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3414 int test (int i, double x);
3415 struct s1 {int (*f) (int a);};
3416 struct s2 {int (*f) (double a);};
3417 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3423 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3428 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3429 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3431 CC="$ac_save_CC $ac_arg"
3432 rm -f conftest.$ac_objext
3433 if { (ac_try="$ac_compile"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439 $as_echo "$ac_try_echo") >&5
3440 (eval "$ac_compile") 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } && {
3447 test -z "$ac_c_werror_flag" ||
3448 test ! -s conftest.err
3449 } && test -s conftest.$ac_objext; then
3450 ac_cv_prog_cc_c89=$ac_arg
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3458 rm -f core conftest.err conftest.$ac_objext
3459 test "x$ac_cv_prog_cc_c89" != "xno" && break
3461 rm -f conftest.$ac_ext
3466 case "x$ac_cv_prog_cc_c89" in
3468 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3469 $as_echo "none needed" >&6; } ;;
3471 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3472 $as_echo "unsupported" >&6; } ;;
3474 CC="$CC $ac_cv_prog_cc_c89"
3475 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3476 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 ac_cpp='$CXXCPP $CPPFLAGS'
3488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3491 if test -z "$CXX"; then
3492 if test -n "$CCC"; then
3495 if test -n "$ac_tool_prefix"; then
3496 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CXX+set}" = set; then
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$CXX"; then
3506 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$CXX"; then
3527 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3528 $as_echo "$CXX" >&6; }
3530 { $as_echo "$as_me:$LINENO: result: no" >&5
3531 $as_echo "no" >&6; }
3535 test -n "$CXX" && break
3538 if test -z "$CXX"; then
3540 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy $ac_prog; ac_word=$2
3544 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$ac_ct_CXX"; then
3550 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_ac_ct_CXX="$ac_prog"
3560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3570 if test -n "$ac_ct_CXX"; then
3571 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3572 $as_echo "$ac_ct_CXX" >&6; }
3574 { $as_echo "$as_me:$LINENO: result: no" >&5
3575 $as_echo "no" >&6; }
3579 test -n "$ac_ct_CXX" && break
3582 if test "x$ac_ct_CXX" = x; then
3585 case $cross_compiling:$ac_tool_warned in
3587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3597 # Provide some information about the compiler.
3598 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3601 { (ac_try="$ac_compiler --version >&5"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607 $as_echo "$ac_try_echo") >&5
3608 (eval "$ac_compiler --version >&5") 2>&5
3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3612 { (ac_try="$ac_compiler -v >&5"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3618 $as_echo "$ac_try_echo") >&5
3619 (eval "$ac_compiler -v >&5") 2>&5
3621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }
3623 { (ac_try="$ac_compiler -V >&5"
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_compiler -V >&5") 2>&5
3632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }
3635 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3636 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3637 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3638 $as_echo_n "(cached) " >&6
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3658 rm -f conftest.$ac_objext
3659 if { (ac_try="$ac_compile"
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3665 $as_echo "$ac_try_echo") >&5
3666 (eval "$ac_compile") 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } && {
3673 test -z "$ac_cxx_werror_flag" ||
3674 test ! -s conftest.err
3675 } && test -s conftest.$ac_objext; then
3678 $as_echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3688 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3689 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3690 if test $ac_compiler_gnu = yes; then
3695 ac_test_CXXFLAGS=${CXXFLAGS+set}
3696 ac_save_CXXFLAGS=$CXXFLAGS
3697 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3698 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3699 if test "${ac_cv_prog_cxx_g+set}" = set; then
3700 $as_echo_n "(cached) " >&6
3702 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3703 ac_cxx_werror_flag=yes
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3721 rm -f conftest.$ac_objext
3722 if { (ac_try="$ac_compile"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728 $as_echo "$ac_try_echo") >&5
3729 (eval "$ac_compile") 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } && {
3736 test -z "$ac_cxx_werror_flag" ||
3737 test ! -s conftest.err
3738 } && test -s conftest.$ac_objext; then
3739 ac_cv_prog_cxx_g=yes
3741 $as_echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3745 cat >conftest.$ac_ext <<_ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3767 $as_echo "$ac_try_echo") >&5
3768 (eval "$ac_compile") 2>conftest.er1
3770 grep -v '^ *+' conftest.er1 >conftest.err
3772 cat conftest.err >&5
3773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && {
3775 test -z "$ac_cxx_werror_flag" ||
3776 test ! -s conftest.err
3777 } && test -s conftest.$ac_objext; then
3780 $as_echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3807 $as_echo "$ac_try_echo") >&5
3808 (eval "$ac_compile") 2>conftest.er1
3810 grep -v '^ *+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } && {
3815 test -z "$ac_cxx_werror_flag" ||
3816 test ! -s conftest.err
3817 } && test -s conftest.$ac_objext; then
3818 ac_cv_prog_cxx_g=yes
3820 $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3835 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3836 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3837 if test "$ac_test_CXXFLAGS" = set; then
3838 CXXFLAGS=$ac_save_CXXFLAGS
3839 elif test $ac_cv_prog_cxx_g = yes; then
3840 if test "$GXX" = yes; then
3846 if test "$GXX" = yes; then
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 if test "x$CC" != xcc; then
3859 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3860 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3862 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3863 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3865 set dummy $CC; ac_cc=`$as_echo "$2" |
3866 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3867 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3868 $as_echo_n "(cached) " >&6
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3885 # Make sure it works both with $CC and with simple cc.
3886 # We do the test twice because some compilers refuse to overwrite an
3887 # existing .o file with -o, though they will create one.
3888 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3890 if { (case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_try") 2>&5
3898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3905 $as_echo "$ac_try_echo") >&5
3906 (eval "$ac_try") 2>&5
3908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); };
3911 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3912 if test "x$CC" != xcc; then
3913 # Test first that cc exists at all.
3914 if { ac_try='cc -c conftest.$ac_ext >&5'
3915 { (case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3920 $as_echo "$ac_try_echo") >&5
3921 (eval "$ac_try") 2>&5
3923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3927 if { (case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_try") 2>&5
3935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943 (eval "$ac_try") 2>&5
3945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); };
3951 # cc exists but doesn't like -o.
3952 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3957 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3959 rm -f core conftest*
3962 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3963 { $as_echo "$as_me:$LINENO: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 { $as_echo "$as_me:$LINENO: result: no" >&5
3967 $as_echo "no" >&6; }
3969 cat >>confdefs.h <<\_ACEOF
3970 #define NO_MINUS_C_MINUS_O 1
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3982 # On Suns, sometimes $CPP names a directory.
3983 if test -n "$CPP" && test -d "$CPP"; then
3986 if test -z "$CPP"; then
3987 if test "${ac_cv_prog_CPP+set}" = set; then
3988 $as_echo_n "(cached) " >&6
3990 # Double quotes because CPP needs to be expanded
3991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3994 for ac_c_preproc_warn_flag in '' yes
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4009 # include <limits.h>
4011 # include <assert.h>
4015 if { (ac_try="$ac_cpp conftest.$ac_ext"
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4021 $as_echo "$ac_try_echo") >&5
4022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4024 grep -v '^ *+' conftest.er1 >conftest.err
4026 cat conftest.err >&5
4027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } >/dev/null && {
4029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4034 $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 # Broken: fails on valid input.
4041 rm -f conftest.err conftest.$ac_ext
4043 # OK, works on sane cases. Now check whether nonexistent headers
4044 # can be detected and how.
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 #include <ac_nonexistent.h>
4053 if { (ac_try="$ac_cpp conftest.$ac_ext"
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4059 $as_echo "$ac_try_echo") >&5
4060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null && {
4067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4070 # Broken: success on invalid input.
4073 $as_echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 # Passes both tests.
4081 rm -f conftest.err conftest.$ac_ext
4084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085 rm -f conftest.err conftest.$ac_ext
4086 if $ac_preproc_ok; then
4098 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4099 $as_echo "$CPP" >&6; }
4101 for ac_c_preproc_warn_flag in '' yes
4103 # Use a header file that comes with gcc, so configuring glibc
4104 # with a fresh cross-compiler works.
4105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4106 # <limits.h> exists even on freestanding compilers.
4107 # On the NeXT, cc -E runs the code through the compiler's parser,
4108 # not just through cpp. "Syntax error" is here to catch this case.
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4116 # include <limits.h>
4118 # include <assert.h>
4122 if { (ac_try="$ac_cpp conftest.$ac_ext"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4128 $as_echo "$ac_try_echo") >&5
4129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } >/dev/null && {
4136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4137 test ! -s conftest.err
4141 $as_echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 # Broken: fails on valid input.
4148 rm -f conftest.err conftest.$ac_ext
4150 # OK, works on sane cases. Now check whether nonexistent headers
4151 # can be detected and how.
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <ac_nonexistent.h>
4160 if { (ac_try="$ac_cpp conftest.$ac_ext"
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } >/dev/null && {
4174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4177 # Broken: success on invalid input.
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 # Passes both tests.
4188 rm -f conftest.err conftest.$ac_ext
4191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192 rm -f conftest.err conftest.$ac_ext
4193 if $ac_preproc_ok; then
4196 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4199 See \`config.log' for more details." >&5
4200 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4201 See \`config.log' for more details." >&2;}
4202 { (exit 1); exit 1; }; }; }
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if test "${ac_cv_path_GREP+set}" = set; then
4215 $as_echo_n "(cached) " >&6
4217 if test -z "$GREP"; then
4218 ac_path_GREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in grep ggrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230 # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4233 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4236 $as_echo_n 0123456789 >"conftest.in"
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'GREP' >> "conftest.nl"
4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 ac_count=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_GREP="$ac_path_GREP"
4249 ac_path_GREP_max=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4257 $ac_path_GREP_found && break 3
4262 if test -z "$ac_cv_path_GREP"; then
4263 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265 { (exit 1); exit 1; }; }
4268 ac_cv_path_GREP=$GREP
4272 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4273 $as_echo "$ac_cv_path_GREP" >&6; }
4274 GREP="$ac_cv_path_GREP"
4277 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4278 $as_echo_n "checking for egrep... " >&6; }
4279 if test "${ac_cv_path_EGREP+set}" = set; then
4280 $as_echo_n "(cached) " >&6
4282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4283 then ac_cv_path_EGREP="$GREP -E"
4285 if test -z "$EGREP"; then
4286 ac_path_EGREP_found=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292 test -z "$as_dir" && as_dir=.
4293 for ac_prog in egrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4296 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4297 # Check for GNU ac_path_EGREP and select it if it is found.
4298 # Check for GNU $ac_path_EGREP
4299 case `"$ac_path_EGREP" --version 2>&1` in
4301 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4304 $as_echo_n 0123456789 >"conftest.in"
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'EGREP' >> "conftest.nl"
4311 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313 ac_count=`expr $ac_count + 1`
4314 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_EGREP="$ac_path_EGREP"
4317 ac_path_EGREP_max=$ac_count
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325 $ac_path_EGREP_found && break 3
4330 if test -z "$ac_cv_path_EGREP"; then
4331 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4332 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4333 { (exit 1); exit 1; }; }
4336 ac_cv_path_EGREP=$EGREP
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP="$ac_cv_path_EGREP"
4346 if test $ac_cv_c_compiler_gnu = yes; then
4347 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4348 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4349 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4350 $as_echo_n "(cached) " >&6
4352 ac_pattern="Autoconf.*'x'"
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4364 ac_cv_prog_gcc_traditional=yes
4366 ac_cv_prog_gcc_traditional=no
4371 if test $ac_cv_prog_gcc_traditional = no; then
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4382 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4383 ac_cv_prog_gcc_traditional=yes
4389 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4390 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4391 if test $ac_cv_prog_gcc_traditional = yes; then
4392 CC="$CC -traditional"
4396 BASECC=`basename $CC`
4398 if test "x$BASECC" = xgcc; then
4399 cat >>confdefs.h <<\_ACEOF
4405 # Extract the first word of "$CXX", so it can be a program name with args.
4406 set dummy $CXX; ac_word=$2
4407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if test "${ac_cv_path_CXX+set}" = set; then
4410 $as_echo_n "(cached) " >&6
4414 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4437 if test -n "$CXX"; then
4438 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4439 $as_echo "$CXX" >&6; }
4441 { $as_echo "$as_me:$LINENO: result: no" >&5
4442 $as_echo "no" >&6; }
4446 if test ! -e $CXX; then
4447 { { $as_echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4448 $as_echo "$as_me: error: Unable to find C++ compiler" >&2;}
4449 { (exit 1); exit 1; }; }
4452 # Find a good install program. We prefer a C program (faster),
4453 # so one script is as good as another. But avoid the broken or
4454 # incompatible versions:
4455 # SysV /etc/install, /usr/sbin/install
4456 # SunOS /usr/etc/install
4457 # IRIX /sbin/install
4459 # AmigaOS /C/install, which installs bootblocks on floppy discs
4460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4463 # OS/2's system install, which has a completely different semantic
4464 # ./install, which can be erroneously created by make from ./install.sh.
4465 # Reject install programs that cannot install multiple files.
4466 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4467 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4468 if test -z "$INSTALL"; then
4469 if test "${ac_cv_path_install+set}" = set; then
4470 $as_echo_n "(cached) " >&6
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 # Account for people who put trailing slashes in PATH elements.
4479 ./ | .// | /cC/* | \
4480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4481 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4484 # OSF1 and SCO ODT 3.0 have their own names for install.
4485 # Don't use installbsd from OSF since it installs stuff as root
4487 for ac_prog in ginstall scoinst install; do
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4490 if test $ac_prog = install &&
4491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4492 # AIX install. It has an incompatible calling convention.
4494 elif test $ac_prog = install &&
4495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4496 # program-specific install script used by HP pwplus--don't use.
4499 rm -rf conftest.one conftest.two conftest.dir
4500 echo one > conftest.one
4501 echo two > conftest.two
4503 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4504 test -s conftest.one && test -s conftest.two &&
4505 test -s conftest.dir/conftest.one &&
4506 test -s conftest.dir/conftest.two
4508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4521 rm -rf conftest.one conftest.two conftest.dir
4524 if test "${ac_cv_path_install+set}" = set; then
4525 INSTALL=$ac_cv_path_install
4527 # As a last resort, use the slow shell script. Don't cache a
4528 # value for INSTALL within a source directory, because that will
4529 # break other packages using the cache if that directory is
4530 # removed, or if the value is a relative name.
4531 INSTALL=$ac_install_sh
4534 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4535 $as_echo "$INSTALL" >&6; }
4537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4538 # It thinks the first close brace ends the variable substitution.
4539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4545 # Extract the first word of "mv", so it can be a program name with args.
4546 set dummy mv; ac_word=$2
4547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if test "${ac_cv_path_MV+set}" = set; then
4550 $as_echo_n "(cached) " >&6
4554 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4577 if test -n "$MV"; then
4578 { $as_echo "$as_me:$LINENO: result: $MV" >&5
4579 $as_echo "$MV" >&6; }
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4586 # Extract the first word of "rm", so it can be a program name with args.
4587 set dummy rm; ac_word=$2
4588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if test "${ac_cv_path_REMOVE+set}" = set; then
4591 $as_echo_n "(cached) " >&6
4595 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4617 REMOVE=$ac_cv_path_REMOVE
4618 if test -n "$REMOVE"; then
4619 { $as_echo "$as_me:$LINENO: result: $REMOVE" >&5
4620 $as_echo "$REMOVE" >&6; }
4622 { $as_echo "$as_me:$LINENO: result: no" >&5
4623 $as_echo "no" >&6; }
4627 # Extract the first word of "cp", so it can be a program name with args.
4628 set dummy cp; ac_word=$2
4629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_path_CP+set}" = set; then
4632 $as_echo_n "(cached) " >&6
4636 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4659 if test -n "$CP"; then
4660 { $as_echo "$as_me:$LINENO: result: $CP" >&5
4661 $as_echo "$CP" >&6; }
4663 { $as_echo "$as_me:$LINENO: result: no" >&5
4664 $as_echo "no" >&6; }
4668 # Extract the first word of "sed", so it can be a program name with args.
4669 set dummy sed; ac_word=$2
4670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_path_SED+set}" = set; then
4673 $as_echo_n "(cached) " >&6
4677 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4700 if test -n "$SED"; then
4701 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4702 $as_echo "$SED" >&6; }
4704 { $as_echo "$as_me:$LINENO: result: no" >&5
4705 $as_echo "no" >&6; }
4709 # Extract the first word of "echo", so it can be a program name with args.
4710 set dummy echo; ac_word=$2
4711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if test "${ac_cv_path_ECHO+set}" = set; then
4714 $as_echo_n "(cached) " >&6
4718 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4740 ECHO=$ac_cv_path_ECHO
4741 if test -n "$ECHO"; then
4742 { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4743 $as_echo "$ECHO" >&6; }
4745 { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4750 # Extract the first word of "cmp", so it can be a program name with args.
4751 set dummy cmp; ac_word=$2
4752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_path_CMP+set}" = set; then
4755 $as_echo_n "(cached) " >&6
4759 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4782 if test -n "$CMP"; then
4783 { $as_echo "$as_me:$LINENO: result: $CMP" >&5
4784 $as_echo "$CMP" >&6; }
4786 { $as_echo "$as_me:$LINENO: result: no" >&5
4787 $as_echo "no" >&6; }
4791 # Extract the first word of "tbl", so it can be a program name with args.
4792 set dummy tbl; ac_word=$2
4793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_path_TBL+set}" = set; then
4796 $as_echo_n "(cached) " >&6
4800 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4823 if test -n "$TBL"; then
4824 { $as_echo "$as_me:$LINENO: result: $TBL" >&5
4825 $as_echo "$TBL" >&6; }
4827 { $as_echo "$as_me:$LINENO: result: no" >&5
4828 $as_echo "no" >&6; }
4832 # Extract the first word of "ar", so it can be a program name with args.
4833 set dummy ar; ac_word=$2
4834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_path_AR+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4841 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4864 if test -n "$AR"; then
4865 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4866 $as_echo "$AR" >&6; }
4868 { $as_echo "$as_me:$LINENO: result: no" >&5
4869 $as_echo "no" >&6; }
4873 # Extract the first word of "openssl", so it can be a program name with args.
4874 set dummy openssl; ac_word=$2
4875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if test "${ac_cv_path_OPENSSL+set}" = set; then
4878 $as_echo_n "(cached) " >&6
4882 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4904 OPENSSL=$ac_cv_path_OPENSSL
4905 if test -n "$OPENSSL"; then
4906 { $as_echo "$as_me:$LINENO: result: $OPENSSL" >&5
4907 $as_echo "$OPENSSL" >&6; }
4909 { $as_echo "$as_me:$LINENO: result: no" >&5
4910 $as_echo "no" >&6; }
4914 # Extract the first word of "mtx", so it can be a program name with args.
4915 set dummy mtx; ac_word=$2
4916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_path_MTX+set}" = set; then
4919 $as_echo_n "(cached) " >&6
4923 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4946 if test -n "$MTX"; then
4947 { $as_echo "$as_me:$LINENO: result: $MTX" >&5
4948 $as_echo "$MTX" >&6; }
4950 { $as_echo "$as_me:$LINENO: result: no" >&5
4951 $as_echo "no" >&6; }
4955 # Extract the first word of "dd", so it can be a program name with args.
4956 set dummy dd; ac_word=$2
4957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_path_DD+set}" = set; then
4960 $as_echo_n "(cached) " >&6
4964 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4975 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4987 if test -n "$DD"; then
4988 { $as_echo "$as_me:$LINENO: result: $DD" >&5
4989 $as_echo "$DD" >&6; }
4991 { $as_echo "$as_me:$LINENO: result: no" >&5
4992 $as_echo "no" >&6; }
4996 # Extract the first word of "mkisofs", so it can be a program name with args.
4997 set dummy mkisofs; ac_word=$2
4998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if test "${ac_cv_path_MKISOFS+set}" = set; then
5001 $as_echo_n "(cached) " >&6
5005 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5027 MKISOFS=$ac_cv_path_MKISOFS
5028 if test -n "$MKISOFS"; then
5029 { $as_echo "$as_me:$LINENO: result: $MKISOFS" >&5
5030 $as_echo "$MKISOFS" >&6; }
5032 { $as_echo "$as_me:$LINENO: result: no" >&5
5033 $as_echo "no" >&6; }
5037 # Extract the first word of "python", so it can be a program name with args.
5038 set dummy python; ac_word=$2
5039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if test "${ac_cv_path_PYTHON+set}" = set; then
5042 $as_echo_n "(cached) " >&6
5046 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5068 PYTHON=$ac_cv_path_PYTHON
5069 if test -n "$PYTHON"; then
5070 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5071 $as_echo "$PYTHON" >&6; }
5073 { $as_echo "$as_me:$LINENO: result: no" >&5
5074 $as_echo "no" >&6; }
5078 # Extract the first word of "growisofs", so it can be a program name with args.
5079 set dummy growisofs; ac_word=$2
5080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_path_GROWISOFS+set}" = set; then
5083 $as_echo_n "(cached) " >&6
5087 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5109 GROWISOFS=$ac_cv_path_GROWISOFS
5110 if test -n "$GROWISOFS"; then
5111 { $as_echo "$as_me:$LINENO: result: $GROWISOFS" >&5
5112 $as_echo "$GROWISOFS" >&6; }
5114 { $as_echo "$as_me:$LINENO: result: no" >&5
5115 $as_echo "no" >&6; }
5119 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5120 set dummy dvd+rw-mediainfo; ac_word=$2
5121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
5124 $as_echo_n "(cached) " >&6
5126 case $DVDRWMEDIAINFO in
5128 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5150 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5151 if test -n "$DVDRWMEDIAINFO"; then
5152 { $as_echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
5153 $as_echo "$DVDRWMEDIAINFO" >&6; }
5155 { $as_echo "$as_me:$LINENO: result: no" >&5
5156 $as_echo "no" >&6; }
5160 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5161 set dummy dvd+rw-format; ac_word=$2
5162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
5165 $as_echo_n "(cached) " >&6
5167 case $DVDRWFORMAT in
5169 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5191 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5192 if test -n "$DVDRWFORMAT"; then
5193 { $as_echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5194 $as_echo "$DVDRWFORMAT" >&6; }
5196 { $as_echo "$as_me:$LINENO: result: no" >&5
5197 $as_echo "no" >&6; }
5201 # Extract the first word of "pkg-config", so it can be a program name with args.
5202 set dummy pkg-config; ac_word=$2
5203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5206 $as_echo_n "(cached) " >&6
5210 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5232 PKGCONFIG=$ac_cv_path_PKGCONFIG
5233 if test -n "$PKGCONFIG"; then
5234 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5235 $as_echo "$PKGCONFIG" >&6; }
5237 { $as_echo "$as_me:$LINENO: result: no" >&5
5238 $as_echo "no" >&6; }
5242 # Extract the first word of "qmake", so it can be a program name with args.
5243 set dummy qmake; ac_word=$2
5244 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if test "${ac_cv_path_QMAKE+set}" = set; then
5247 $as_echo_n "(cached) " >&6
5251 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5273 QMAKE=$ac_cv_path_QMAKE
5274 if test -n "$QMAKE"; then
5275 { $as_echo "$as_me:$LINENO: result: $QMAKE" >&5
5276 $as_echo "$QMAKE" >&6; }
5278 { $as_echo "$as_me:$LINENO: result: no" >&5
5279 $as_echo "no" >&6; }
5283 # Extract the first word of "gmake", so it can be a program name with args.
5284 set dummy gmake; ac_word=$2
5285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_path_GMAKE+set}" = set; then
5288 $as_echo_n "(cached) " >&6
5292 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5314 GMAKE=$ac_cv_path_GMAKE
5315 if test -n "$GMAKE"; then
5316 { $as_echo "$as_me:$LINENO: result: $GMAKE" >&5
5317 $as_echo "$GMAKE" >&6; }
5319 { $as_echo "$as_me:$LINENO: result: no" >&5
5320 $as_echo "no" >&6; }
5325 if test "x$WXCONFIG" = x; then
5328 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5329 set dummy ${WXCONFIG}; ac_word=$2
5330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5333 $as_echo_n "(cached) " >&6
5337 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5359 WXCONFIG=$ac_cv_path_WXCONFIG
5360 if test -n "$WXCONFIG"; then
5361 { $as_echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5362 $as_echo "$WXCONFIG" >&6; }
5364 { $as_echo "$as_me:$LINENO: result: no" >&5
5365 $as_echo "no" >&6; }
5370 # Extract the first word of "cdrecord", so it can be a program name with args.
5371 set dummy cdrecord; ac_word=$2
5372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if test "${ac_cv_path_CDRECORD+set}" = set; then
5375 $as_echo_n "(cached) " >&6
5379 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5401 CDRECORD=$ac_cv_path_CDRECORD
5402 if test -n "$CDRECORD"; then
5403 { $as_echo "$as_me:$LINENO: result: $CDRECORD" >&5
5404 $as_echo "$CDRECORD" >&6; }
5406 { $as_echo "$as_me:$LINENO: result: no" >&5
5407 $as_echo "no" >&6; }
5411 # Extract the first word of "pidof", so it can be a program name with args.
5412 set dummy pidof; ac_word=$2
5413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if test "${ac_cv_path_PIDOF+set}" = set; then
5416 $as_echo_n "(cached) " >&6
5420 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5442 PIDOF=$ac_cv_path_PIDOF
5443 if test -n "$PIDOF"; then
5444 { $as_echo "$as_me:$LINENO: result: $PIDOF" >&5
5445 $as_echo "$PIDOF" >&6; }
5447 { $as_echo "$as_me:$LINENO: result: no" >&5
5448 $as_echo "no" >&6; }
5452 for ac_prog in gawk mawk nawk awk
5454 # Extract the first word of "$ac_prog", so it can be a program name with args.
5455 set dummy $ac_prog; ac_word=$2
5456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_AWK+set}" = set; then
5459 $as_echo_n "(cached) " >&6
5461 if test -n "$AWK"; then
5462 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_AWK="$ac_prog"
5472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 if test -n "$AWK"; then
5483 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5484 $as_echo "$AWK" >&6; }
5486 { $as_echo "$as_me:$LINENO: result: no" >&5
5487 $as_echo "no" >&6; }
5491 test -n "$AWK" && break
5494 # Some AWK programs fail, so test it and warn the user
5495 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5496 { if ((prog == $2) || (("(" prog ")") == $2) ||
5497 (("" prog "") == $2) ||
5498 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5500 { { $as_echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5501 The regex engine of $AWK is too broken to be used you
5502 might want to install GNU AWK.
5503 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5504 $as_echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5505 The regex engine of $AWK is too broken to be used you
5506 might want to install GNU AWK.
5507 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5508 { (exit 1); exit 1; }; }
5511 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5512 set dummy $THE_AWK; ac_word=$2
5513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if test "${ac_cv_path_AWK+set}" = set; then
5516 $as_echo_n "(cached) " >&6
5520 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5543 if test -n "$AWK"; then
5544 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5545 $as_echo "$AWK" >&6; }
5547 { $as_echo "$as_me:$LINENO: result: no" >&5
5548 $as_echo "no" >&6; }
5554 test -n "$ARFLAG" || ARFLAGS="cr"
5566 # Check whether --enable-libtool was given.
5567 if test "${enable_libtool+set}" = set; then
5568 enableval=$enable_libtool;
5569 if test x$enableval = xno; then
5578 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5579 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5584 macro_version='2.2.6'
5585 macro_revision='1.3012'
5599 ltmain="$ac_aux_dir/ltmain.sh"
5601 # Make sure we can run config.sub.
5602 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5603 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5604 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5605 { (exit 1); exit 1; }; }
5607 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5608 $as_echo_n "checking build system type... " >&6; }
5609 if test "${ac_cv_build+set}" = set; then
5610 $as_echo_n "(cached) " >&6
5612 ac_build_alias=$build_alias
5613 test "x$ac_build_alias" = x &&
5614 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5615 test "x$ac_build_alias" = x &&
5616 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5617 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5618 { (exit 1); exit 1; }; }
5619 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5620 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5621 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5622 { (exit 1); exit 1; }; }
5625 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5626 $as_echo "$ac_cv_build" >&6; }
5627 case $ac_cv_build in
5629 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5630 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5631 { (exit 1); exit 1; }; };;
5634 ac_save_IFS=$IFS; IFS='-'
5640 # Remember, the first character of IFS is used to create $*,
5641 # except with old shells:
5644 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5647 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5648 $as_echo_n "checking host system type... " >&6; }
5649 if test "${ac_cv_host+set}" = set; then
5650 $as_echo_n "(cached) " >&6
5652 if test "x$host_alias" = x; then
5653 ac_cv_host=$ac_cv_build
5655 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5656 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5657 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5658 { (exit 1); exit 1; }; }
5662 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5663 $as_echo "$ac_cv_host" >&6; }
5666 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5667 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5668 { (exit 1); exit 1; }; };;
5671 ac_save_IFS=$IFS; IFS='-'
5677 # Remember, the first character of IFS is used to create $*,
5678 # except with old shells:
5681 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5684 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5685 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5686 if test "${ac_cv_path_SED+set}" = set; then
5687 $as_echo_n "(cached) " >&6
5689 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5690 for ac_i in 1 2 3 4 5 6 7; do
5691 ac_script="$ac_script$as_nl$ac_script"
5693 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5694 $as_unset ac_script || ac_script=
5695 if test -z "$SED"; then
5696 ac_path_SED_found=false
5697 # Loop through the user's path and test for each of PROGNAME-LIST
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 test -z "$as_dir" && as_dir=.
5703 for ac_prog in sed gsed; do
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5706 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5707 # Check for GNU ac_path_SED and select it if it is found.
5708 # Check for GNU $ac_path_SED
5709 case `"$ac_path_SED" --version 2>&1` in
5711 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5714 $as_echo_n 0123456789 >"conftest.in"
5717 cat "conftest.in" "conftest.in" >"conftest.tmp"
5718 mv "conftest.tmp" "conftest.in"
5719 cp "conftest.in" "conftest.nl"
5720 $as_echo '' >> "conftest.nl"
5721 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723 ac_count=`expr $ac_count + 1`
5724 if test $ac_count -gt ${ac_path_SED_max-0}; then
5725 # Best one so far, save it but keep looking for a better one
5726 ac_cv_path_SED="$ac_path_SED"
5727 ac_path_SED_max=$ac_count
5729 # 10*(2^10) chars as input seems more than enough
5730 test $ac_count -gt 10 && break
5732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5735 $ac_path_SED_found && break 3
5740 if test -z "$ac_cv_path_SED"; then
5741 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5742 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5743 { (exit 1); exit 1; }; }
5750 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5751 $as_echo "$ac_cv_path_SED" >&6; }
5752 SED="$ac_cv_path_SED"
5755 test -z "$SED" && SED=sed
5756 Xsed="$SED -e 1s/^X//"
5768 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5769 $as_echo_n "checking for fgrep... " >&6; }
5770 if test "${ac_cv_path_FGREP+set}" = set; then
5771 $as_echo_n "(cached) " >&6
5773 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5774 then ac_cv_path_FGREP="$GREP -F"
5776 if test -z "$FGREP"; then
5777 ac_path_FGREP_found=false
5778 # Loop through the user's path and test for each of PROGNAME-LIST
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5783 test -z "$as_dir" && as_dir=.
5784 for ac_prog in fgrep; do
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5787 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5788 # Check for GNU ac_path_FGREP and select it if it is found.
5789 # Check for GNU $ac_path_FGREP
5790 case `"$ac_path_FGREP" --version 2>&1` in
5792 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5795 $as_echo_n 0123456789 >"conftest.in"
5798 cat "conftest.in" "conftest.in" >"conftest.tmp"
5799 mv "conftest.tmp" "conftest.in"
5800 cp "conftest.in" "conftest.nl"
5801 $as_echo 'FGREP' >> "conftest.nl"
5802 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5804 ac_count=`expr $ac_count + 1`
5805 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5806 # Best one so far, save it but keep looking for a better one
5807 ac_cv_path_FGREP="$ac_path_FGREP"
5808 ac_path_FGREP_max=$ac_count
5810 # 10*(2^10) chars as input seems more than enough
5811 test $ac_count -gt 10 && break
5813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5816 $ac_path_FGREP_found && break 3
5821 if test -z "$ac_cv_path_FGREP"; then
5822 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5823 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5824 { (exit 1); exit 1; }; }
5827 ac_cv_path_FGREP=$FGREP
5832 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5833 $as_echo "$ac_cv_path_FGREP" >&6; }
5834 FGREP="$ac_cv_path_FGREP"
5837 test -z "$GREP" && GREP=grep
5857 # Check whether --with-gnu-ld was given.
5858 if test "${with_gnu_ld+set}" = set; then
5859 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5865 if test "$GCC" = yes; then
5866 # Check if gcc -print-prog-name=ld gives a path.
5867 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5868 $as_echo_n "checking for ld used by $CC... " >&6; }
5871 # gcc leaves a trailing carriage return which upsets mingw
5872 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5874 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5877 # Accept absolute paths.
5879 re_direlt='/[^/][^/]*/\.\./'
5880 # Canonicalize the pathname of ld
5881 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5882 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5883 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5885 test -z "$LD" && LD="$ac_prog"
5888 # If it fails, then pretend we aren't using GCC.
5892 # If it is relative, then search for the first ld in PATH.
5896 elif test "$with_gnu_ld" = yes; then
5897 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5898 $as_echo_n "checking for GNU ld... " >&6; }
5900 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5901 $as_echo_n "checking for non-GNU ld... " >&6; }
5903 if test "${lt_cv_path_LD+set}" = set; then
5904 $as_echo_n "(cached) " >&6
5906 if test -z "$LD"; then
5907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5908 for ac_dir in $PATH; do
5910 test -z "$ac_dir" && ac_dir=.
5911 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5912 lt_cv_path_LD="$ac_dir/$ac_prog"
5913 # Check to see if the program is GNU ld. I'd rather use --version,
5914 # but apparently some variants of GNU ld only accept -v.
5915 # Break only if it was the GNU/non-GNU ld that we prefer.
5916 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5917 *GNU* | *'with BFD'*)
5918 test "$with_gnu_ld" != no && break
5921 test "$with_gnu_ld" != yes && break
5928 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5933 if test -n "$LD"; then
5934 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5935 $as_echo "$LD" >&6; }
5937 { $as_echo "$as_me:$LINENO: result: no" >&5
5938 $as_echo "no" >&6; }
5940 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5941 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5942 { (exit 1); exit 1; }; }
5943 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5944 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5945 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5946 $as_echo_n "(cached) " >&6
5948 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5949 case `$LD -v 2>&1 </dev/null` in
5950 *GNU* | *'with BFD'*)
5951 lt_cv_prog_gnu_ld=yes
5954 lt_cv_prog_gnu_ld=no
5958 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5959 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5960 with_gnu_ld=$lt_cv_prog_gnu_ld
5970 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5971 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5972 if test "${lt_cv_path_NM+set}" = set; then
5973 $as_echo_n "(cached) " >&6
5975 if test -n "$NM"; then
5976 # Let the user override the test.
5979 lt_nm_to_check="${ac_tool_prefix}nm"
5980 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5981 lt_nm_to_check="$lt_nm_to_check nm"
5983 for lt_tmp_nm in $lt_nm_to_check; do
5984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5985 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5987 test -z "$ac_dir" && ac_dir=.
5988 tmp_nm="$ac_dir/$lt_tmp_nm"
5989 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5990 # Check to see if the nm accepts a BSD-compat flag.
5991 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5992 # nm: unknown option "B" ignored
5993 # Tru64's nm complains that /dev/null is an invalid object file
5994 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5995 */dev/null* | *'Invalid file or object type'*)
5996 lt_cv_path_NM="$tmp_nm -B"
6000 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6002 lt_cv_path_NM="$tmp_nm -p"
6006 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6007 continue # so that we can try to find one that supports BSD flags
6016 : ${lt_cv_path_NM=no}
6019 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6020 $as_echo "$lt_cv_path_NM" >&6; }
6021 if test "$lt_cv_path_NM" != "no"; then
6024 # Didn't find any BSD compatible name lister, look for dumpbin.
6025 if test -n "$ac_tool_prefix"; then
6026 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6033 $as_echo_n "(cached) " >&6
6035 if test -n "$DUMPBIN"; then
6036 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 DUMPBIN=$ac_cv_prog_DUMPBIN
6056 if test -n "$DUMPBIN"; then
6057 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6058 $as_echo "$DUMPBIN" >&6; }
6060 { $as_echo "$as_me:$LINENO: result: no" >&5
6061 $as_echo "no" >&6; }
6065 test -n "$DUMPBIN" && break
6068 if test -z "$DUMPBIN"; then
6069 ac_ct_DUMPBIN=$DUMPBIN
6070 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6072 # Extract the first word of "$ac_prog", so it can be a program name with args.
6073 set dummy $ac_prog; ac_word=$2
6074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6079 if test -n "$ac_ct_DUMPBIN"; then
6080 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6100 if test -n "$ac_ct_DUMPBIN"; then
6101 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6102 $as_echo "$ac_ct_DUMPBIN" >&6; }
6104 { $as_echo "$as_me:$LINENO: result: no" >&5
6105 $as_echo "no" >&6; }
6109 test -n "$ac_ct_DUMPBIN" && break
6112 if test "x$ac_ct_DUMPBIN" = x; then
6115 case $cross_compiling:$ac_tool_warned in
6117 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6121 DUMPBIN=$ac_ct_DUMPBIN
6126 if test "$DUMPBIN" != ":"; then
6130 test -z "$NM" && NM=nm
6137 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6138 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6139 if test "${lt_cv_nm_interface+set}" = set; then
6140 $as_echo_n "(cached) " >&6
6142 lt_cv_nm_interface="BSD nm"
6143 echo "int some_variable = 0;" > conftest.$ac_ext
6144 (eval echo "\"\$as_me:6144: $ac_compile\"" >&5)
6145 (eval "$ac_compile" 2>conftest.err)
6146 cat conftest.err >&5
6147 (eval echo "\"\$as_me:6147: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6148 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6149 cat conftest.err >&5
6150 (eval echo "\"\$as_me:6150: output\"" >&5)
6151 cat conftest.out >&5
6152 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6153 lt_cv_nm_interface="MS dumpbin"
6157 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6158 $as_echo "$lt_cv_nm_interface" >&6; }
6160 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6161 $as_echo_n "checking whether ln -s works... " >&6; }
6163 if test "$LN_S" = "ln -s"; then
6164 { $as_echo "$as_me:$LINENO: result: yes" >&5
6165 $as_echo "yes" >&6; }
6167 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6168 $as_echo "no, using $LN_S" >&6; }
6171 # find the maximum length of command line arguments
6172 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6173 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6174 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6175 $as_echo_n "(cached) " >&6
6182 # On DJGPP, this test can blow up pretty badly due to problems in libc
6183 # (any single argument exceeding 2000 bytes causes a buffer overrun
6184 # during glob expansion). Even if it were fixed, the result of this
6185 # check would be larger than it should be.
6186 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6190 # Under GNU Hurd, this test is not required because there is
6191 # no limit to the length of command line arguments.
6192 # Libtool will interpret -1 as no limit whatsoever
6193 lt_cv_sys_max_cmd_len=-1;
6196 cygwin* | mingw* | cegcc*)
6197 # On Win9x/ME, this test blows up -- it succeeds, but takes
6198 # about 5 minutes as the teststring grows exponentially.
6199 # Worse, since 9x/ME are not pre-emptively multitasking,
6200 # you end up with a "frozen" computer, even though with patience
6201 # the test eventually succeeds (with a max line length of 256k).
6202 # Instead, let's just punt: use the minimum linelength reported by
6203 # all of the supported platforms: 8192 (on NT/2K/XP).
6204 lt_cv_sys_max_cmd_len=8192;
6208 # On AmigaOS with pdksh, this test takes hours, literally.
6209 # So we just punt and use a minimum line length of 8192.
6210 lt_cv_sys_max_cmd_len=8192;
6213 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6214 # This has been around since 386BSD, at least. Likely further.
6215 if test -x /sbin/sysctl; then
6216 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6217 elif test -x /usr/sbin/sysctl; then
6218 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6220 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6222 # And add a safety zone
6223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6228 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6229 lt_cv_sys_max_cmd_len=196608
6233 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6234 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6235 # nice to cause kernel panics so lets avoid the loop below.
6236 # First set a reasonable default.
6237 lt_cv_sys_max_cmd_len=16384
6239 if test -x /sbin/sysconfig; then
6240 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6241 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6246 lt_cv_sys_max_cmd_len=102400
6248 sysv5* | sco5v6* | sysv4.2uw2*)
6249 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6250 if test -n "$kargmax"; then
6251 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6253 lt_cv_sys_max_cmd_len=32768
6257 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6258 if test -n "$lt_cv_sys_max_cmd_len"; then
6259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6262 # Make teststring a little bigger before we do anything with it.
6263 # a 1K string should be a reasonable start.
6264 for i in 1 2 3 4 5 6 7 8 ; do
6265 teststring=$teststring$teststring
6267 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6268 # If test is not a shell built-in, we'll probably end up computing a
6269 # maximum length that is only half of the actual maximum length, but
6271 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6272 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6273 test $i != 17 # 1/2 MB should be enough
6276 teststring=$teststring$teststring
6278 # Only check the string length outside the loop.
6279 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6281 # Add a significant safety factor because C++ compilers can tack on
6282 # massive amounts of additional arguments before passing them to the
6283 # linker. It appears as though 1/2 is a usable value.
6284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6291 if test -n $lt_cv_sys_max_cmd_len ; then
6292 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6293 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6295 { $as_echo "$as_me:$LINENO: result: none" >&5
6296 $as_echo "none" >&6; }
6298 max_cmd_len=$lt_cv_sys_max_cmd_len
6309 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6310 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6311 # Try some XSI features
6314 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6316 && eval 'test $(( 1 + 1 )) -eq 2 \
6317 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6319 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6320 $as_echo "$xsi_shell" >&6; }
6323 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6324 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6326 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6328 && lt_shell_append=yes
6329 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6330 $as_echo "$lt_shell_append" >&6; }
6333 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6343 # test EBCDIC or ASCII
6344 case `echo X|tr X '\101'` in
6345 A) # ASCII based system
6346 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6347 lt_SP2NL='tr \040 \012'
6348 lt_NL2SP='tr \015\012 \040\040'
6350 *) # EBCDIC based system
6351 lt_SP2NL='tr \100 \n'
6352 lt_NL2SP='tr \r\n \100\100'
6364 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6365 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6366 if test "${lt_cv_ld_reload_flag+set}" = set; then
6367 $as_echo_n "(cached) " >&6
6369 lt_cv_ld_reload_flag='-r'
6371 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6372 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6373 reload_flag=$lt_cv_ld_reload_flag
6374 case $reload_flag in
6376 *) reload_flag=" $reload_flag" ;;
6378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6381 if test "$GCC" = yes; then
6382 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6403 $as_echo_n "(cached) " >&6
6405 if test -n "$OBJDUMP"; then
6406 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 OBJDUMP=$ac_cv_prog_OBJDUMP
6426 if test -n "$OBJDUMP"; then
6427 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6428 $as_echo "$OBJDUMP" >&6; }
6430 { $as_echo "$as_me:$LINENO: result: no" >&5
6431 $as_echo "no" >&6; }
6436 if test -z "$ac_cv_prog_OBJDUMP"; then
6437 ac_ct_OBJDUMP=$OBJDUMP
6438 # Extract the first word of "objdump", so it can be a program name with args.
6439 set dummy objdump; ac_word=$2
6440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$ac_ct_OBJDUMP"; then
6446 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6466 if test -n "$ac_ct_OBJDUMP"; then
6467 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6468 $as_echo "$ac_ct_OBJDUMP" >&6; }
6470 { $as_echo "$as_me:$LINENO: result: no" >&5
6471 $as_echo "no" >&6; }
6474 if test "x$ac_ct_OBJDUMP" = x; then
6477 case $cross_compiling:$ac_tool_warned in
6479 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6483 OBJDUMP=$ac_ct_OBJDUMP
6486 OBJDUMP="$ac_cv_prog_OBJDUMP"
6489 test -z "$OBJDUMP" && OBJDUMP=objdump
6499 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6500 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6501 if test "${lt_cv_deplibs_check_method+set}" = set; then
6502 $as_echo_n "(cached) " >&6
6504 lt_cv_file_magic_cmd='$MAGIC_CMD'
6505 lt_cv_file_magic_test_file=
6506 lt_cv_deplibs_check_method='unknown'
6507 # Need to set the preceding variable on all platforms that support
6508 # interlibrary dependencies.
6509 # 'none' -- dependencies not supported.
6510 # `unknown' -- same as none, but documents that we really don't know.
6511 # 'pass_all' -- all dependencies passed with no checks.
6512 # 'test_compile' -- check by making test program.
6513 # 'file_magic [[regex]]' -- check by looking for files in library path
6514 # which responds to the $file_magic_cmd with a given extended regex.
6515 # If you have `file' or equivalent on your system and you're not sure
6516 # whether `pass_all' will *always* work, you probably want this one.
6520 lt_cv_deplibs_check_method=pass_all
6524 lt_cv_deplibs_check_method=pass_all
6528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6529 lt_cv_file_magic_cmd='/usr/bin/file -L'
6530 lt_cv_file_magic_test_file=/shlib/libc.so
6534 # func_win32_libid is a shell function defined in ltmain.sh
6535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6536 lt_cv_file_magic_cmd='func_win32_libid'
6540 # Base MSYS/MinGW do not provide the 'file' command needed by
6541 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6542 # unless we find 'file', for example because we are cross-compiling.
6543 if ( file / ) >/dev/null 2>&1; then
6544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6545 lt_cv_file_magic_cmd='func_win32_libid'
6547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6548 lt_cv_file_magic_cmd='$OBJDUMP -f'
6553 # use the weaker test based on 'objdump'. See mingw*.
6554 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6555 lt_cv_file_magic_cmd='$OBJDUMP -f'
6558 darwin* | rhapsody*)
6559 lt_cv_deplibs_check_method=pass_all
6562 freebsd* | dragonfly*)
6563 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6566 # Not sure whether the presence of OpenBSD here was a mistake.
6567 # Let's accept both of them until this is cleared up.
6568 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6569 lt_cv_file_magic_cmd=/usr/bin/file
6570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6574 lt_cv_deplibs_check_method=pass_all
6579 lt_cv_deplibs_check_method=pass_all
6582 hpux10.20* | hpux11*)
6583 lt_cv_file_magic_cmd=/usr/bin/file
6586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6587 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6590 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]'
6591 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6595 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6601 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6605 irix5* | irix6* | nonstopux*)
6607 *-32|*"-32 ") libmagic=32-bit;;
6608 *-n32|*"-n32 ") libmagic=N32;;
6609 *-64|*"-64 ") libmagic=64-bit;;
6610 *) libmagic=never-match;;
6612 lt_cv_deplibs_check_method=pass_all
6615 # This must be Linux ELF.
6616 linux* | k*bsd*-gnu)
6617 lt_cv_deplibs_check_method=pass_all
6621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6630 lt_cv_file_magic_cmd=/usr/bin/file
6631 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6635 lt_cv_deplibs_check_method=pass_all
6639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6646 osf3* | osf4* | osf5*)
6647 lt_cv_deplibs_check_method=pass_all
6651 lt_cv_deplibs_check_method=pass_all
6655 lt_cv_deplibs_check_method=pass_all
6658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6659 lt_cv_deplibs_check_method=pass_all
6663 case $host_vendor in
6665 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]'
6666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6669 lt_cv_deplibs_check_method=pass_all
6672 lt_cv_file_magic_cmd='/bin/file'
6673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6676 lt_cv_file_magic_cmd='/bin/file'
6677 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6678 lt_cv_file_magic_test_file=/lib/libc.so
6681 lt_cv_deplibs_check_method=pass_all
6684 lt_cv_deplibs_check_method=pass_all
6690 lt_cv_deplibs_check_method=pass_all
6695 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6696 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6697 file_magic_cmd=$lt_cv_file_magic_cmd
6698 deplibs_check_method=$lt_cv_deplibs_check_method
6699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6712 if test -n "$ac_tool_prefix"; then
6713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6714 set dummy ${ac_tool_prefix}ar; ac_word=$2
6715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if test "${ac_cv_prog_AR+set}" = set; then
6718 $as_echo_n "(cached) " >&6
6720 if test -n "$AR"; then
6721 ac_cv_prog_AR="$AR" # Let the user override the test.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_AR="${ac_tool_prefix}ar"
6731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 if test -n "$AR"; then
6742 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6743 $as_echo "$AR" >&6; }
6745 { $as_echo "$as_me:$LINENO: result: no" >&5
6746 $as_echo "no" >&6; }
6751 if test -z "$ac_cv_prog_AR"; then
6753 # Extract the first word of "ar", so it can be a program name with args.
6754 set dummy ar; ac_word=$2
6755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6760 if test -n "$ac_ct_AR"; then
6761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_prog_ac_ct_AR="ar"
6771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6781 if test -n "$ac_ct_AR"; then
6782 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6783 $as_echo "$ac_ct_AR" >&6; }
6785 { $as_echo "$as_me:$LINENO: result: no" >&5
6786 $as_echo "no" >&6; }
6789 if test "x$ac_ct_AR" = x; then
6792 case $cross_compiling:$ac_tool_warned in
6794 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6804 test -z "$AR" && AR=ar
6805 test -z "$AR_FLAGS" && AR_FLAGS=cru
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}strip; ac_word=$2
6820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if test "${ac_cv_prog_STRIP+set}" = set; then
6823 $as_echo_n "(cached) " >&6
6825 if test -n "$STRIP"; then
6826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 STRIP=$ac_cv_prog_STRIP
6846 if test -n "$STRIP"; then
6847 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6848 $as_echo "$STRIP" >&6; }
6850 { $as_echo "$as_me:$LINENO: result: no" >&5
6851 $as_echo "no" >&6; }
6856 if test -z "$ac_cv_prog_STRIP"; then
6858 # Extract the first word of "strip", so it can be a program name with args.
6859 set dummy strip; ac_word=$2
6860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6863 $as_echo_n "(cached) " >&6
6865 if test -n "$ac_ct_STRIP"; then
6866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_prog_ac_ct_STRIP="strip"
6876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6886 if test -n "$ac_ct_STRIP"; then
6887 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6888 $as_echo "$ac_ct_STRIP" >&6; }
6890 { $as_echo "$as_me:$LINENO: result: no" >&5
6891 $as_echo "no" >&6; }
6894 if test "x$ac_ct_STRIP" = x; then
6897 case $cross_compiling:$ac_tool_warned in
6899 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6906 STRIP="$ac_cv_prog_STRIP"
6909 test -z "$STRIP" && STRIP=:
6916 if test -n "$ac_tool_prefix"; then
6917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if test "${ac_cv_prog_RANLIB+set}" = set; then
6922 $as_echo_n "(cached) " >&6
6924 if test -n "$RANLIB"; then
6925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 RANLIB=$ac_cv_prog_RANLIB
6945 if test -n "$RANLIB"; then
6946 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6947 $as_echo "$RANLIB" >&6; }
6949 { $as_echo "$as_me:$LINENO: result: no" >&5
6950 $as_echo "no" >&6; }
6955 if test -z "$ac_cv_prog_RANLIB"; then
6956 ac_ct_RANLIB=$RANLIB
6957 # Extract the first word of "ranlib", so it can be a program name with args.
6958 set dummy ranlib; ac_word=$2
6959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6962 $as_echo_n "(cached) " >&6
6964 if test -n "$ac_ct_RANLIB"; then
6965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974 ac_cv_prog_ac_ct_RANLIB="ranlib"
6975 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6985 if test -n "$ac_ct_RANLIB"; then
6986 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6987 $as_echo "$ac_ct_RANLIB" >&6; }
6989 { $as_echo "$as_me:$LINENO: result: no" >&5
6990 $as_echo "no" >&6; }
6993 if test "x$ac_ct_RANLIB" = x; then
6996 case $cross_compiling:$ac_tool_warned in
6998 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000 ac_tool_warned=yes ;;
7002 RANLIB=$ac_ct_RANLIB
7005 RANLIB="$ac_cv_prog_RANLIB"
7008 test -z "$RANLIB" && RANLIB=:
7015 # Determine commands to create old-style static archives.
7016 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7017 old_postinstall_cmds='chmod 644 $oldlib'
7018 old_postuninstall_cmds=
7020 if test -n "$RANLIB"; then
7023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7065 # If no C compiler was specified, use CC.
7068 # If no C compiler flags were specified, use CFLAGS.
7069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7071 # Allow CC to be a program name with arguments.
7075 # Check for command to grab the raw symbol name followed by C symbol from nm.
7076 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7077 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7078 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7079 $as_echo_n "(cached) " >&6
7082 # These are sane defaults that work on at least a few old systems.
7083 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7085 # Character class describing NM global symbol codes.
7086 symcode='[BCDEGRST]'
7088 # Regexp to match symbols that can be accessed directly from C.
7089 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7091 # Define system-specific variables.
7096 cygwin* | mingw* | pw32* | cegcc*)
7097 symcode='[ABCDGISTW]'
7100 if test "$host_cpu" = ia64; then
7101 symcode='[ABCDEGRST]'
7105 symcode='[BCDEGRST]'
7108 symcode='[BCDEGQRST]'
7119 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7127 # If we're using GNU nm, then use its standard symbol codes.
7128 case `$NM -V 2>&1` in
7129 *GNU* | *'with BFD'*)
7130 symcode='[ABCDGIRSTW]' ;;
7133 # Transform an extracted symbol line into a proper C declaration.
7134 # Some systems (esp. on ia64) link data and code symbols differently,
7135 # so use this general approach.
7136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7138 # Transform an extracted symbol line into symbol name and symbol address
7139 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7140 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'"
7142 # Handle CRLF in mingw tool chain
7146 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7150 # Try without a prefix underscore, then with it.
7151 for ac_symprfx in "" "_"; do
7153 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7154 symxfrm="\\1 $ac_symprfx\\2 \\2"
7156 # Write the raw and C identifiers.
7157 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7158 # Fake it for dumpbin and say T for any non-static function
7159 # and D for any global variable.
7160 # Also find C++ and __fastcall symbols from MSVC++,
7161 # which start with @ or ?.
7162 lt_cv_sys_global_symbol_pipe="$AWK '"\
7163 " {last_section=section; section=\$ 3};"\
7164 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7165 " \$ 0!~/External *\|/{next};"\
7166 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7167 " {if(hide[section]) next};"\
7168 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7169 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7170 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7171 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7172 " ' prfx=^$ac_symprfx"
7174 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7177 # Check to see that the pipe works correctly.
7181 cat > conftest.$ac_ext <<_LT_EOF
7186 void nm_test_func(void);
7187 void nm_test_func(void){}
7191 int main(){nm_test_var='a';nm_test_func();return(0);}
7194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195 (eval $ac_compile) 2>&5
7197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; then
7199 # Now try to grab the symbols.
7201 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7202 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && test -s "$nlist"; then
7206 # Try sorting and uniquifying the output.
7207 if sort "$nlist" | uniq > "$nlist"T; then
7208 mv -f "$nlist"T "$nlist"
7213 # Make sure that we snagged all the symbols we need.
7214 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7215 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7216 cat <<_LT_EOF > conftest.$ac_ext
7222 # Now generate the symbol file.
7223 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7225 cat <<_LT_EOF >> conftest.$ac_ext
7227 /* The mapping between symbol names and symbols. */
7232 lt__PROGRAM__LTX_preloaded_symbols[] =
7234 { "@PROGRAM@", (void *) 0 },
7236 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7237 cat <<\_LT_EOF >> conftest.$ac_ext
7241 /* This works around a problem in FreeBSD linker */
7242 #ifdef FREEBSD_WORKAROUND
7243 static const void *lt_preloaded_setup() {
7244 return lt__PROGRAM__LTX_preloaded_symbols;
7252 # Now try linking the two files.
7253 mv conftest.$ac_objext conftstm.$ac_objext
7254 lt_save_LIBS="$LIBS"
7255 lt_save_CFLAGS="$CFLAGS"
7256 LIBS="conftstm.$ac_objext"
7257 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7259 (eval $ac_link) 2>&5
7261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7265 LIBS="$lt_save_LIBS"
7266 CFLAGS="$lt_save_CFLAGS"
7268 echo "cannot find nm_test_func in $nlist" >&5
7271 echo "cannot find nm_test_var in $nlist" >&5
7274 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7277 echo "$progname: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7280 rm -rf conftest* conftst*
7282 # Do not use the global_symbol_pipe unless it works.
7283 if test "$pipe_works" = yes; then
7286 lt_cv_sys_global_symbol_pipe=
7292 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7293 lt_cv_sys_global_symbol_to_cdecl=
7295 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7296 { $as_echo "$as_me:$LINENO: result: failed" >&5
7297 $as_echo "failed" >&6; }
7299 { $as_echo "$as_me:$LINENO: result: ok" >&5
7300 $as_echo "ok" >&6; }
7324 # Check whether --enable-libtool-lock was given.
7325 if test "${enable_libtool_lock+set}" = set; then
7326 enableval=$enable_libtool_lock;
7329 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7331 # Some flags need to be propagated to the compiler or linker for good
7335 # Find out which ABI we are using.
7336 echo 'int i;' > conftest.$ac_ext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>&5
7340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; then
7342 case `/usr/bin/file conftest.$ac_objext` in
7354 # Find out which ABI we are using.
7355 echo '#line 7355 "configure"' > conftest.$ac_ext
7356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357 (eval $ac_compile) 2>&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; then
7361 if test "$lt_cv_prog_gnu_ld" = yes; then
7362 case `/usr/bin/file conftest.$ac_objext` in
7364 LD="${LD-ld} -melf32bsmip"
7367 LD="${LD-ld} -melf32bmipn32"
7370 LD="${LD-ld} -melf64bmip"
7374 case `/usr/bin/file conftest.$ac_objext` in
7390 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7391 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7392 # Find out which ABI we are using.
7393 echo 'int i;' > conftest.$ac_ext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395 (eval $ac_compile) 2>&5
7397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; then
7399 case `/usr/bin/file conftest.o` in
7402 x86_64-*kfreebsd*-gnu)
7403 LD="${LD-ld} -m elf_i386_fbsd"
7406 LD="${LD-ld} -m elf_i386"
7408 ppc64-*linux*|powerpc64-*linux*)
7409 LD="${LD-ld} -m elf32ppclinux"
7412 LD="${LD-ld} -m elf_s390"
7415 LD="${LD-ld} -m elf32_sparc"
7421 x86_64-*kfreebsd*-gnu)
7422 LD="${LD-ld} -m elf_x86_64_fbsd"
7425 LD="${LD-ld} -m elf_x86_64"
7427 ppc*-*linux*|powerpc*-*linux*)
7428 LD="${LD-ld} -m elf64ppc"
7430 s390*-*linux*|s390*-*tpf*)
7431 LD="${LD-ld} -m elf64_s390"
7434 LD="${LD-ld} -m elf64_sparc"
7444 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7445 SAVE_CFLAGS="$CFLAGS"
7446 CFLAGS="$CFLAGS -belf"
7447 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7448 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7449 if test "${lt_cv_cc_needs_belf+set}" = set; then
7450 $as_echo_n "(cached) " >&6
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458 cat >conftest.$ac_ext <<_ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7473 rm -f conftest.$ac_objext conftest$ac_exeext
7474 if { (ac_try="$ac_link"
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7480 $as_echo "$ac_try_echo") >&5
7481 (eval "$ac_link") 2>conftest.er1
7483 grep -v '^ *+' conftest.er1 >conftest.err
7485 cat conftest.err >&5
7486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && {
7488 test -z "$ac_c_werror_flag" ||
7489 test ! -s conftest.err
7490 } && test -s conftest$ac_exeext && {
7491 test "$cross_compiling" = yes ||
7492 $as_test_x conftest$ac_exeext
7494 lt_cv_cc_needs_belf=yes
7496 $as_echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7499 lt_cv_cc_needs_belf=no
7502 rm -rf conftest.dSYM
7503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7504 conftest$ac_exeext conftest.$ac_ext
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7512 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7513 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7514 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7515 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7516 CFLAGS="$SAVE_CFLAGS"
7520 # Find out which ABI we are using.
7521 echo 'int i;' > conftest.$ac_ext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>&5
7525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; then
7527 case `/usr/bin/file conftest.o` in
7529 case $lt_cv_prog_gnu_ld in
7530 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7532 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7544 need_locks="$enable_libtool_lock"
7548 rhapsody* | darwin*)
7549 if test -n "$ac_tool_prefix"; then
7550 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7551 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7557 if test -n "$DSYMUTIL"; then
7558 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7578 if test -n "$DSYMUTIL"; then
7579 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7580 $as_echo "$DSYMUTIL" >&6; }
7582 { $as_echo "$as_me:$LINENO: result: no" >&5
7583 $as_echo "no" >&6; }
7588 if test -z "$ac_cv_prog_DSYMUTIL"; then
7589 ac_ct_DSYMUTIL=$DSYMUTIL
7590 # Extract the first word of "dsymutil", so it can be a program name with args.
7591 set dummy dsymutil; ac_word=$2
7592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7595 $as_echo_n "(cached) " >&6
7597 if test -n "$ac_ct_DSYMUTIL"; then
7598 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7618 if test -n "$ac_ct_DSYMUTIL"; then
7619 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7620 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7622 { $as_echo "$as_me:$LINENO: result: no" >&5
7623 $as_echo "no" >&6; }
7626 if test "x$ac_ct_DSYMUTIL" = x; then
7629 case $cross_compiling:$ac_tool_warned in
7631 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7633 ac_tool_warned=yes ;;
7635 DSYMUTIL=$ac_ct_DSYMUTIL
7638 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7641 if test -n "$ac_tool_prefix"; then
7642 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7647 $as_echo_n "(cached) " >&6
7649 if test -n "$NMEDIT"; then
7650 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 NMEDIT=$ac_cv_prog_NMEDIT
7670 if test -n "$NMEDIT"; then
7671 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7672 $as_echo "$NMEDIT" >&6; }
7674 { $as_echo "$as_me:$LINENO: result: no" >&5
7675 $as_echo "no" >&6; }
7680 if test -z "$ac_cv_prog_NMEDIT"; then
7681 ac_ct_NMEDIT=$NMEDIT
7682 # Extract the first word of "nmedit", so it can be a program name with args.
7683 set dummy nmedit; ac_word=$2
7684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7687 $as_echo_n "(cached) " >&6
7689 if test -n "$ac_ct_NMEDIT"; then
7690 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7710 if test -n "$ac_ct_NMEDIT"; then
7711 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7712 $as_echo "$ac_ct_NMEDIT" >&6; }
7714 { $as_echo "$as_me:$LINENO: result: no" >&5
7715 $as_echo "no" >&6; }
7718 if test "x$ac_ct_NMEDIT" = x; then
7721 case $cross_compiling:$ac_tool_warned in
7723 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7725 ac_tool_warned=yes ;;
7727 NMEDIT=$ac_ct_NMEDIT
7730 NMEDIT="$ac_cv_prog_NMEDIT"
7733 if test -n "$ac_tool_prefix"; then
7734 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7735 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if test "${ac_cv_prog_LIPO+set}" = set; then
7739 $as_echo_n "(cached) " >&6
7741 if test -n "$LIPO"; then
7742 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7751 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 LIPO=$ac_cv_prog_LIPO
7762 if test -n "$LIPO"; then
7763 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7764 $as_echo "$LIPO" >&6; }
7766 { $as_echo "$as_me:$LINENO: result: no" >&5
7767 $as_echo "no" >&6; }
7772 if test -z "$ac_cv_prog_LIPO"; then
7774 # Extract the first word of "lipo", so it can be a program name with args.
7775 set dummy lipo; ac_word=$2
7776 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7779 $as_echo_n "(cached) " >&6
7781 if test -n "$ac_ct_LIPO"; then
7782 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_prog_ac_ct_LIPO="lipo"
7792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7802 if test -n "$ac_ct_LIPO"; then
7803 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7804 $as_echo "$ac_ct_LIPO" >&6; }
7806 { $as_echo "$as_me:$LINENO: result: no" >&5
7807 $as_echo "no" >&6; }
7810 if test "x$ac_ct_LIPO" = x; then
7813 case $cross_compiling:$ac_tool_warned in
7815 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817 ac_tool_warned=yes ;;
7822 LIPO="$ac_cv_prog_LIPO"
7825 if test -n "$ac_tool_prefix"; then
7826 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7827 set dummy ${ac_tool_prefix}otool; ac_word=$2
7828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if test "${ac_cv_prog_OTOOL+set}" = set; then
7831 $as_echo_n "(cached) " >&6
7833 if test -n "$OTOOL"; then
7834 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 OTOOL=$ac_cv_prog_OTOOL
7854 if test -n "$OTOOL"; then
7855 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7856 $as_echo "$OTOOL" >&6; }
7858 { $as_echo "$as_me:$LINENO: result: no" >&5
7859 $as_echo "no" >&6; }
7864 if test -z "$ac_cv_prog_OTOOL"; then
7866 # Extract the first word of "otool", so it can be a program name with args.
7867 set dummy otool; ac_word=$2
7868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7871 $as_echo_n "(cached) " >&6
7873 if test -n "$ac_ct_OTOOL"; then
7874 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_ac_ct_OTOOL="otool"
7884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7894 if test -n "$ac_ct_OTOOL"; then
7895 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7896 $as_echo "$ac_ct_OTOOL" >&6; }
7898 { $as_echo "$as_me:$LINENO: result: no" >&5
7899 $as_echo "no" >&6; }
7902 if test "x$ac_ct_OTOOL" = x; then
7905 case $cross_compiling:$ac_tool_warned in
7907 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7909 ac_tool_warned=yes ;;
7914 OTOOL="$ac_cv_prog_OTOOL"
7917 if test -n "$ac_tool_prefix"; then
7918 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7919 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7923 $as_echo_n "(cached) " >&6
7925 if test -n "$OTOOL64"; then
7926 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 OTOOL64=$ac_cv_prog_OTOOL64
7946 if test -n "$OTOOL64"; then
7947 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7948 $as_echo "$OTOOL64" >&6; }
7950 { $as_echo "$as_me:$LINENO: result: no" >&5
7951 $as_echo "no" >&6; }
7956 if test -z "$ac_cv_prog_OTOOL64"; then
7957 ac_ct_OTOOL64=$OTOOL64
7958 # Extract the first word of "otool64", so it can be a program name with args.
7959 set dummy otool64; ac_word=$2
7960 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7963 $as_echo_n "(cached) " >&6
7965 if test -n "$ac_ct_OTOOL64"; then
7966 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_prog_ac_ct_OTOOL64="otool64"
7976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7986 if test -n "$ac_ct_OTOOL64"; then
7987 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7988 $as_echo "$ac_ct_OTOOL64" >&6; }
7990 { $as_echo "$as_me:$LINENO: result: no" >&5
7991 $as_echo "no" >&6; }
7994 if test "x$ac_ct_OTOOL64" = x; then
7997 case $cross_compiling:$ac_tool_warned in
7999 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001 ac_tool_warned=yes ;;
8003 OTOOL64=$ac_ct_OTOOL64
8006 OTOOL64="$ac_cv_prog_OTOOL64"
8035 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8036 $as_echo_n "checking for -single_module linker flag... " >&6; }
8037 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8038 $as_echo_n "(cached) " >&6
8040 lt_cv_apple_cc_single_mod=no
8041 if test -z "${LT_MULTI_MODULE}"; then
8042 # By default we will add the -single_module flag. You can override
8043 # by either setting the environment variable LT_MULTI_MODULE
8044 # non-empty at configure time, or by adding -multi_module to the
8046 rm -rf libconftest.dylib*
8047 echo "int foo(void){return 1;}" > conftest.c
8048 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8049 -dynamiclib -Wl,-single_module conftest.c" >&5
8050 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8051 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8053 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8054 lt_cv_apple_cc_single_mod=yes
8056 cat conftest.err >&5
8058 rm -rf libconftest.dylib*
8062 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8063 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8064 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8065 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8066 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8067 $as_echo_n "(cached) " >&6
8069 lt_cv_ld_exported_symbols_list=no
8070 save_LDFLAGS=$LDFLAGS
8071 echo "_main" > conftest.sym
8072 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8073 cat >conftest.$ac_ext <<_ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (ac_try="$ac_link"
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8095 $as_echo "$ac_try_echo") >&5
8096 (eval "$ac_link") 2>conftest.er1
8098 grep -v '^ *+' conftest.er1 >conftest.err
8100 cat conftest.err >&5
8101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } && {
8103 test -z "$ac_c_werror_flag" ||
8104 test ! -s conftest.err
8105 } && test -s conftest$ac_exeext && {
8106 test "$cross_compiling" = yes ||
8107 $as_test_x conftest$ac_exeext
8109 lt_cv_ld_exported_symbols_list=yes
8111 $as_echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 lt_cv_ld_exported_symbols_list=no
8117 rm -rf conftest.dSYM
8118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8119 conftest$ac_exeext conftest.$ac_ext
8120 LDFLAGS="$save_LDFLAGS"
8123 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8124 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8126 rhapsody* | darwin1.[012])
8127 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8129 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8130 darwin*) # darwin 5.x on
8131 # if running on 10.5 or later, the deployment target defaults
8132 # to the OS version, if on x86, and 10.4, the deployment
8133 # target defaults to 10.4. Don't you love it?
8134 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8135 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8136 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8138 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8140 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8144 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8145 _lt_dar_single_mod='$single_module'
8147 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8148 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8150 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8152 if test "$DSYMUTIL" != ":"; then
8153 _lt_dsymutil='~$DSYMUTIL $lib || :'
8160 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8161 $as_echo_n "checking for ANSI C header files... " >&6; }
8162 if test "${ac_cv_header_stdc+set}" = set; then
8163 $as_echo_n "(cached) " >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest.$ac_objext; then
8202 ac_cv_header_stdc=yes
8204 $as_echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_cv_header_stdc=no
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 if test $ac_cv_header_stdc = yes; then
8213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 $EGREP "memchr" >/dev/null 2>&1; then
8227 ac_cv_header_stdc=no
8233 if test $ac_cv_header_stdc = yes; then
8234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 $EGREP "free" >/dev/null 2>&1; then
8248 ac_cv_header_stdc=no
8254 if test $ac_cv_header_stdc = yes; then
8255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8256 if test "$cross_compiling" = yes; then
8259 cat >conftest.$ac_ext <<_ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8267 #if ((' ' & 0x0FF) == 0x020)
8268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8271 # define ISLOWER(c) \
8272 (('a' <= (c) && (c) <= 'i') \
8273 || ('j' <= (c) && (c) <= 'r') \
8274 || ('s' <= (c) && (c) <= 'z'))
8275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8283 for (i = 0; i < 256; i++)
8284 if (XOR (islower (i), ISLOWER (i))
8285 || toupper (i) != TOUPPER (i))
8290 rm -f conftest$ac_exeext
8291 if { (ac_try="$ac_link"
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298 (eval "$ac_link") 2>&5
8300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8307 $as_echo "$ac_try_echo") >&5
8308 (eval "$ac_try") 2>&5
8310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8314 $as_echo "$as_me: program exited with status $ac_status" >&5
8315 $as_echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8319 ac_cv_header_stdc=no
8321 rm -rf conftest.dSYM
8322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8328 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8329 $as_echo "$ac_cv_header_stdc" >&6; }
8330 if test $ac_cv_header_stdc = yes; then
8332 cat >>confdefs.h <<\_ACEOF
8333 #define STDC_HEADERS 1
8338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8348 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8349 inttypes.h stdint.h unistd.h
8351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8353 $as_echo_n "checking for $ac_header... " >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355 $as_echo_n "(cached) " >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 $ac_includes_default
8365 #include <$ac_header>
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8385 eval "$as_ac_Header=yes"
8387 $as_echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 eval "$as_ac_Header=no"
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 ac_res=`eval 'as_val=${'$as_ac_Header'}
8396 $as_echo "$as_val"'`
8397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8398 $as_echo "$ac_res" >&6; }
8399 as_val=`eval 'as_val=${'$as_ac_Header'}
8400 $as_echo "$as_val"'`
8401 if test "x$as_val" = x""yes; then
8402 cat >>confdefs.h <<_ACEOF
8403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8412 for ac_header in dlfcn.h
8414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 $as_echo_n "checking for $ac_header... " >&6; }
8417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8418 $as_echo_n "(cached) " >&6
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8428 #include <$ac_header>
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8437 $as_echo "$ac_try_echo") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest.$ac_objext; then
8448 eval "$as_ac_Header=yes"
8450 $as_echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 eval "$as_ac_Header=no"
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458 ac_res=`eval 'as_val=${'$as_ac_Header'}
8459 $as_echo "$as_val"'`
8460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8461 $as_echo "$ac_res" >&6; }
8462 as_val=`eval 'as_val=${'$as_ac_Header'}
8463 $as_echo "$as_val"'`
8464 if test "x$as_val" = x""yes; then
8465 cat >>confdefs.h <<_ACEOF
8466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8476 ac_cpp='$CXXCPP $CPPFLAGS'
8477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8480 if test -z "$CXX"; then
8481 if test -n "$CCC"; then
8484 if test -n "$ac_tool_prefix"; then
8485 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if test "${ac_cv_prog_CXX+set}" = set; then
8492 $as_echo_n "(cached) " >&6
8494 if test -n "$CXX"; then
8495 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 if test -n "$CXX"; then
8516 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8517 $as_echo "$CXX" >&6; }
8519 { $as_echo "$as_me:$LINENO: result: no" >&5
8520 $as_echo "no" >&6; }
8524 test -n "$CXX" && break
8527 if test -z "$CXX"; then
8529 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8531 # Extract the first word of "$ac_prog", so it can be a program name with args.
8532 set dummy $ac_prog; ac_word=$2
8533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8536 $as_echo_n "(cached) " >&6
8538 if test -n "$ac_ct_CXX"; then
8539 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8548 ac_cv_prog_ac_ct_CXX="$ac_prog"
8549 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8559 if test -n "$ac_ct_CXX"; then
8560 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8561 $as_echo "$ac_ct_CXX" >&6; }
8563 { $as_echo "$as_me:$LINENO: result: no" >&5
8564 $as_echo "no" >&6; }
8568 test -n "$ac_ct_CXX" && break
8571 if test "x$ac_ct_CXX" = x; then
8574 case $cross_compiling:$ac_tool_warned in
8576 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8578 ac_tool_warned=yes ;;
8586 # Provide some information about the compiler.
8587 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8590 { (ac_try="$ac_compiler --version >&5"
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8596 $as_echo "$ac_try_echo") >&5
8597 (eval "$ac_compiler --version >&5") 2>&5
8599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }
8601 { (ac_try="$ac_compiler -v >&5"
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8607 $as_echo "$ac_try_echo") >&5
8608 (eval "$ac_compiler -v >&5") 2>&5
8610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }
8612 { (ac_try="$ac_compiler -V >&5"
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8618 $as_echo "$ac_try_echo") >&5
8619 (eval "$ac_compiler -V >&5") 2>&5
8621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }
8624 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8625 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8627 $as_echo_n "(cached) " >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8647 rm -f conftest.$ac_objext
8648 if { (ac_try="$ac_compile"
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8654 $as_echo "$ac_try_echo") >&5
8655 (eval "$ac_compile") 2>conftest.er1
8657 grep -v '^ *+' conftest.er1 >conftest.err
8659 cat conftest.err >&5
8660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } && {
8662 test -z "$ac_cxx_werror_flag" ||
8663 test ! -s conftest.err
8664 } && test -s conftest.$ac_objext; then
8667 $as_echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8677 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8678 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8679 if test $ac_compiler_gnu = yes; then
8684 ac_test_CXXFLAGS=${CXXFLAGS+set}
8685 ac_save_CXXFLAGS=$CXXFLAGS
8686 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8687 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8688 if test "${ac_cv_prog_cxx_g+set}" = set; then
8689 $as_echo_n "(cached) " >&6
8691 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8692 ac_cxx_werror_flag=yes
8695 cat >conftest.$ac_ext <<_ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8710 rm -f conftest.$ac_objext
8711 if { (ac_try="$ac_compile"
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8717 $as_echo "$ac_try_echo") >&5
8718 (eval "$ac_compile") 2>conftest.er1
8720 grep -v '^ *+' conftest.er1 >conftest.err
8722 cat conftest.err >&5
8723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } && {
8725 test -z "$ac_cxx_werror_flag" ||
8726 test ! -s conftest.err
8727 } && test -s conftest.$ac_objext; then
8728 ac_cv_prog_cxx_g=yes
8730 $as_echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8749 rm -f conftest.$ac_objext
8750 if { (ac_try="$ac_compile"
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8756 $as_echo "$ac_try_echo") >&5
8757 (eval "$ac_compile") 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_cxx_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest.$ac_objext; then
8769 $as_echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8789 rm -f conftest.$ac_objext
8790 if { (ac_try="$ac_compile"
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8796 $as_echo "$ac_try_echo") >&5
8797 (eval "$ac_compile") 2>conftest.er1
8799 grep -v '^ *+' conftest.er1 >conftest.err
8801 cat conftest.err >&5
8802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } && {
8804 test -z "$ac_cxx_werror_flag" ||
8805 test ! -s conftest.err
8806 } && test -s conftest.$ac_objext; then
8807 ac_cv_prog_cxx_g=yes
8809 $as_echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8824 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8825 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8826 if test "$ac_test_CXXFLAGS" = set; then
8827 CXXFLAGS=$ac_save_CXXFLAGS
8828 elif test $ac_cv_prog_cxx_g = yes; then
8829 if test "$GXX" = yes; then
8835 if test "$GXX" = yes; then
8842 ac_cpp='$CPP $CPPFLAGS'
8843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8847 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8848 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8849 (test "X$CXX" != "Xg++"))) ; then
8851 ac_cpp='$CXXCPP $CPPFLAGS'
8852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8855 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8856 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8857 if test -z "$CXXCPP"; then
8858 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8859 $as_echo_n "(cached) " >&6
8861 # Double quotes because CXXCPP needs to be expanded
8862 for CXXCPP in "$CXX -E" "/lib/cpp"
8865 for ac_cxx_preproc_warn_flag in '' yes
8867 # Use a header file that comes with gcc, so configuring glibc
8868 # with a fresh cross-compiler works.
8869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8870 # <limits.h> exists even on freestanding compilers.
8871 # On the NeXT, cc -E runs the code through the compiler's parser,
8872 # not just through cpp. "Syntax error" is here to catch this case.
8873 cat >conftest.$ac_ext <<_ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8880 # include <limits.h>
8882 # include <assert.h>
8886 if { (ac_try="$ac_cpp conftest.$ac_ext"
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8892 $as_echo "$ac_try_echo") >&5
8893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8895 grep -v '^ *+' conftest.er1 >conftest.err
8897 cat conftest.err >&5
8898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } >/dev/null && {
8900 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8901 test ! -s conftest.err
8905 $as_echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 # Broken: fails on valid input.
8912 rm -f conftest.err conftest.$ac_ext
8914 # OK, works on sane cases. Now check whether nonexistent headers
8915 # can be detected and how.
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 #include <ac_nonexistent.h>
8924 if { (ac_try="$ac_cpp conftest.$ac_ext"
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8930 $as_echo "$ac_try_echo") >&5
8931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8933 grep -v '^ *+' conftest.er1 >conftest.err
8935 cat conftest.err >&5
8936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } >/dev/null && {
8938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8939 test ! -s conftest.err
8941 # Broken: success on invalid input.
8944 $as_echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 # Passes both tests.
8952 rm -f conftest.err conftest.$ac_ext
8955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8956 rm -f conftest.err conftest.$ac_ext
8957 if $ac_preproc_ok; then
8962 ac_cv_prog_CXXCPP=$CXXCPP
8965 CXXCPP=$ac_cv_prog_CXXCPP
8967 ac_cv_prog_CXXCPP=$CXXCPP
8969 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8970 $as_echo "$CXXCPP" >&6; }
8972 for ac_cxx_preproc_warn_flag in '' yes
8974 # Use a header file that comes with gcc, so configuring glibc
8975 # with a fresh cross-compiler works.
8976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8977 # <limits.h> exists even on freestanding compilers.
8978 # On the NeXT, cc -E runs the code through the compiler's parser,
8979 # not just through cpp. "Syntax error" is here to catch this case.
8980 cat >conftest.$ac_ext <<_ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8987 # include <limits.h>
8989 # include <assert.h>
8993 if { (ac_try="$ac_cpp conftest.$ac_ext"
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8999 $as_echo "$ac_try_echo") >&5
9000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9002 grep -v '^ *+' conftest.er1 >conftest.err
9004 cat conftest.err >&5
9005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } >/dev/null && {
9007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9008 test ! -s conftest.err
9012 $as_echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 # Broken: fails on valid input.
9019 rm -f conftest.err conftest.$ac_ext
9021 # OK, works on sane cases. Now check whether nonexistent headers
9022 # can be detected and how.
9023 cat >conftest.$ac_ext <<_ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <ac_nonexistent.h>
9031 if { (ac_try="$ac_cpp conftest.$ac_ext"
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9037 $as_echo "$ac_try_echo") >&5
9038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } >/dev/null && {
9045 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9046 test ! -s conftest.err
9048 # Broken: success on invalid input.
9051 $as_echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9054 # Passes both tests.
9059 rm -f conftest.err conftest.$ac_ext
9062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9063 rm -f conftest.err conftest.$ac_ext
9064 if $ac_preproc_ok; then
9067 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9069 _lt_caught_CXX_error=yes; }
9073 ac_cpp='$CPP $CPPFLAGS'
9074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9079 _lt_caught_CXX_error=yes
9087 # Check whether --enable-shared was given.
9088 if test "${enable_shared+set}" = set; then
9089 enableval=$enable_shared; p=${PACKAGE-default}
9091 yes) enable_shared=yes ;;
9092 no) enable_shared=no ;;
9095 # Look at the argument we got. We use all the common list separators.
9096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9097 for pkg in $enableval; do
9099 if test "X$pkg" = "X$p"; then
9116 # Check whether --enable-static was given.
9117 if test "${enable_static+set}" = set; then
9118 enableval=$enable_static; p=${PACKAGE-default}
9120 yes) enable_static=yes ;;
9121 no) enable_static=no ;;
9124 # Look at the argument we got. We use all the common list separators.
9125 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9126 for pkg in $enableval; do
9128 if test "X$pkg" = "X$p"; then
9157 # Check whether --with-pic was given.
9158 if test "${with_pic+set}" = set; then
9159 withval=$with_pic; pic_mode="$withval"
9165 test -z "$pic_mode" && pic_mode=default
9173 # Check whether --enable-fast-install was given.
9174 if test "${enable_fast_install+set}" = set; then
9175 enableval=$enable_fast_install; p=${PACKAGE-default}
9177 yes) enable_fast_install=yes ;;
9178 no) enable_fast_install=no ;;
9180 enable_fast_install=no
9181 # Look at the argument we got. We use all the common list separators.
9182 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9183 for pkg in $enableval; do
9185 if test "X$pkg" = "X$p"; then
9186 enable_fast_install=yes
9193 enable_fast_install=yes
9206 # This can be used to rebuild libtool when needed
9207 LIBTOOL_DEPS="$ltmain"
9209 # Always use our own libtool.
9210 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9236 test -z "$LN_S" && LN_S="ln -s"
9251 if test -n "${ZSH_VERSION+set}" ; then
9252 setopt NO_GLOB_SUBST
9255 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9256 $as_echo_n "checking for objdir... " >&6; }
9257 if test "${lt_cv_objdir+set}" = set; then
9258 $as_echo_n "(cached) " >&6
9260 rm -f .libs 2>/dev/null
9261 mkdir .libs 2>/dev/null
9262 if test -d .libs; then
9265 # MS-DOS does not allow filenames that begin with a dot.
9268 rmdir .libs 2>/dev/null
9270 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9271 $as_echo "$lt_cv_objdir" >&6; }
9272 objdir=$lt_cv_objdir
9278 cat >>confdefs.h <<_ACEOF
9279 #define LT_OBJDIR "$lt_cv_objdir/"
9300 # AIX sometimes has problems with the GCC collect2 program. For some
9301 # reason, if we set the COLLECT_NAMES environment variable, the problems
9302 # vanish in a puff of smoke.
9303 if test "X${COLLECT_NAMES+set}" != Xset; then
9305 export COLLECT_NAMES
9310 # Sed substitution that helps us do robust quoting. It backslashifies
9311 # metacharacters that are still active within double-quoted strings.
9312 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9314 # Same as above, but do not quote variable references.
9315 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9317 # Sed substitution to delay expansion of an escaped shell variable in a
9318 # double_quote_subst'ed string.
9319 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9321 # Sed substitution to delay expansion of an escaped single quote.
9322 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9324 # Sed substitution to avoid accidental globbing in evaled expressions
9325 no_glob_subst='s/\*/\\\*/g'
9329 can_build_shared=yes
9331 # All known linkers require a `.a' archive for static linking (except MSVC,
9332 # which needs '.lib').
9335 with_gnu_ld="$lt_cv_prog_gnu_ld"
9338 old_CFLAGS="$CFLAGS"
9340 # Set sane defaults for various variables
9341 test -z "$CC" && CC=cc
9342 test -z "$LTCC" && LTCC=$CC
9343 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9344 test -z "$LD" && LD=ld
9345 test -z "$ac_objext" && ac_objext=o
9347 for cc_temp in $compiler""; do
9349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9355 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9358 # Only perform the check for file, if the check method requires it
9359 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9360 case $deplibs_check_method in
9362 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9363 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9364 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9365 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9366 $as_echo_n "(cached) " >&6
9370 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9373 lt_save_MAGIC_CMD="$MAGIC_CMD"
9374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9375 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9376 for ac_dir in $ac_dummy; do
9378 test -z "$ac_dir" && ac_dir=.
9379 if test -f $ac_dir/${ac_tool_prefix}file; then
9380 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9381 if test -n "$file_magic_test_file"; then
9382 case $deplibs_check_method in
9384 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9386 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9387 $EGREP "$file_magic_regex" > /dev/null; then
9392 *** Warning: the command libtool uses to detect shared libraries,
9393 *** $file_magic_cmd, produces output that libtool cannot recognize.
9394 *** The result is that libtool may fail to recognize shared libraries
9395 *** as such. This will affect the creation of libtool libraries that
9396 *** depend on shared libraries, but programs linked with such libtool
9397 *** libraries will work regardless of this problem. Nevertheless, you
9398 *** may want to report the problem to your system manager and/or to
9399 *** bug-libtool@gnu.org
9409 MAGIC_CMD="$lt_save_MAGIC_CMD"
9414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9415 if test -n "$MAGIC_CMD"; then
9416 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9417 $as_echo "$MAGIC_CMD" >&6; }
9419 { $as_echo "$as_me:$LINENO: result: no" >&5
9420 $as_echo "no" >&6; }
9427 if test -z "$lt_cv_path_MAGIC_CMD"; then
9428 if test -n "$ac_tool_prefix"; then
9429 { $as_echo "$as_me:$LINENO: checking for file" >&5
9430 $as_echo_n "checking for file... " >&6; }
9431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9432 $as_echo_n "(cached) " >&6
9436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9439 lt_save_MAGIC_CMD="$MAGIC_CMD"
9440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9442 for ac_dir in $ac_dummy; do
9444 test -z "$ac_dir" && ac_dir=.
9445 if test -f $ac_dir/file; then
9446 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9447 if test -n "$file_magic_test_file"; then
9448 case $deplibs_check_method in
9450 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9453 $EGREP "$file_magic_regex" > /dev/null; then
9458 *** Warning: the command libtool uses to detect shared libraries,
9459 *** $file_magic_cmd, produces output that libtool cannot recognize.
9460 *** The result is that libtool may fail to recognize shared libraries
9461 *** as such. This will affect the creation of libtool libraries that
9462 *** depend on shared libraries, but programs linked with such libtool
9463 *** libraries will work regardless of this problem. Nevertheless, you
9464 *** may want to report the problem to your system manager and/or to
9465 *** bug-libtool@gnu.org
9475 MAGIC_CMD="$lt_save_MAGIC_CMD"
9480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9481 if test -n "$MAGIC_CMD"; then
9482 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9483 $as_echo "$MAGIC_CMD" >&6; }
9485 { $as_echo "$as_me:$LINENO: result: no" >&5
9486 $as_echo "no" >&6; }
9499 # Use C for the default configuration in the libtool script
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9509 # Source file extension for C test sources.
9512 # Object file extension for compiled C test sources.
9516 # Code to be used in simple compile tests
9517 lt_simple_compile_test_code="int some_variable = 0;"
9519 # Code to be used in simple link tests
9520 lt_simple_link_test_code='int main(){return(0);}'
9528 # If no C compiler was specified, use CC.
9531 # If no C compiler flags were specified, use CFLAGS.
9532 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9534 # Allow CC to be a program name with arguments.
9537 # Save the default compiler, since it gets overwritten when the other
9538 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9539 compiler_DEFAULT=$CC
9541 # save warnings/boilerplate of simple test code
9542 ac_outfile=conftest.$ac_objext
9543 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9545 _lt_compiler_boilerplate=`cat conftest.err`
9548 ac_outfile=conftest.$ac_objext
9549 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9551 _lt_linker_boilerplate=`cat conftest.err`
9556 ## There is no encapsulation within the following macros, do not change
9557 ## the running order or otherwise move them around unless you know exactly
9558 ## what you are doing...
9559 if test -n "$compiler"; then
9561 lt_prog_compiler_no_builtin_flag=
9563 if test "$GCC" = yes; then
9564 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9566 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9567 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9568 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9569 $as_echo_n "(cached) " >&6
9571 lt_cv_prog_compiler_rtti_exceptions=no
9572 ac_outfile=conftest.$ac_objext
9573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9574 lt_compiler_flag="-fno-rtti -fno-exceptions"
9575 # Insert the option either (1) after the last *FLAGS variable, or
9576 # (2) before a word containing "conftest.", or (3) at the end.
9577 # Note that $ac_compile itself does not contain backslashes and begins
9578 # with a dollar sign (not a hyphen), so the echo should work correctly.
9579 # The option is referenced via a variable to avoid confusing sed.
9580 lt_compile=`echo "$ac_compile" | $SED \
9581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9583 -e 's:$: $lt_compiler_flag:'`
9584 (eval echo "\"\$as_me:9584: $lt_compile\"" >&5)
9585 (eval "$lt_compile" 2>conftest.err)
9587 cat conftest.err >&5
9588 echo "$as_me:9588: \$? = $ac_status" >&5
9589 if (exit $ac_status) && test -s "$ac_outfile"; then
9590 # The compiler can only warn and ignore the option if not recognized
9591 # So say no if there are warnings other than the usual output.
9592 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9595 lt_cv_prog_compiler_rtti_exceptions=yes
9601 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9602 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9605 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9617 lt_prog_compiler_wl=
9618 lt_prog_compiler_pic=
9619 lt_prog_compiler_static=
9621 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9622 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9624 if test "$GCC" = yes; then
9625 lt_prog_compiler_wl='-Wl,'
9626 lt_prog_compiler_static='-static'
9630 # All AIX code is PIC.
9631 if test "$host_cpu" = ia64; then
9632 # AIX 5 now supports IA64 processor
9633 lt_prog_compiler_static='-Bstatic'
9640 # see comment about AmigaOS4 .so support
9641 lt_prog_compiler_pic='-fPIC'
9644 # FIXME: we need at least 68020 code to build shared libraries, but
9645 # adding the `-m68020' flag to GCC prevents building anything better,
9647 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9652 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9653 # PIC is the default for these OSes.
9656 mingw* | cygwin* | pw32* | os2* | cegcc*)
9657 # This hack is so that the source file can tell whether it is being
9658 # built for inclusion in a dll (and should export symbols for example).
9659 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9660 # (--disable-auto-import) libraries
9661 lt_prog_compiler_pic='-DDLL_EXPORT'
9664 darwin* | rhapsody*)
9665 # PIC is the default on this platform
9666 # Common symbols not allowed in MH_DYLIB files
9667 lt_prog_compiler_pic='-fno-common'
9671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9673 # sets the default TLS model and affects inlining.
9679 lt_prog_compiler_pic='-fPIC'
9685 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9686 # Instead, we relocate shared libraries at runtime.
9690 # Just because we use GCC doesn't mean we suddenly get shared libraries
9691 # on systems that don't support them.
9692 lt_prog_compiler_can_build_shared=no
9697 # QNX uses GNU C++, but need to define -shared option too, otherwise
9699 lt_prog_compiler_pic='-fPIC -shared'
9703 if test -d /usr/nec; then
9704 lt_prog_compiler_pic=-Kconform_pic
9709 lt_prog_compiler_pic='-fPIC'
9713 # PORTME Check for flag to pass linker flags through the system compiler.
9716 lt_prog_compiler_wl='-Wl,'
9717 if test "$host_cpu" = ia64; then
9718 # AIX 5 now supports IA64 processor
9719 lt_prog_compiler_static='-Bstatic'
9721 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9725 mingw* | cygwin* | pw32* | os2* | cegcc*)
9726 # This hack is so that the source file can tell whether it is being
9727 # built for inclusion in a dll (and should export symbols for example).
9728 lt_prog_compiler_pic='-DDLL_EXPORT'
9731 hpux9* | hpux10* | hpux11*)
9732 lt_prog_compiler_wl='-Wl,'
9733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9740 lt_prog_compiler_pic='+Z'
9743 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9744 lt_prog_compiler_static='${wl}-a ${wl}archive'
9747 irix5* | irix6* | nonstopux*)
9748 lt_prog_compiler_wl='-Wl,'
9749 # PIC (with -KPIC) is the default.
9750 lt_prog_compiler_static='-non_shared'
9753 linux* | k*bsd*-gnu)
9754 case $cc_basename in
9755 # old Intel for x86_64 which still supported -KPIC.
9757 lt_prog_compiler_wl='-Wl,'
9758 lt_prog_compiler_pic='-KPIC'
9759 lt_prog_compiler_static='-static'
9761 # icc used to be incompatible with GCC.
9762 # ICC 10 doesn't accept -KPIC any more.
9764 lt_prog_compiler_wl='-Wl,'
9765 lt_prog_compiler_pic='-fPIC'
9766 lt_prog_compiler_static='-static'
9768 # Lahey Fortran 8.1.
9770 lt_prog_compiler_wl='-Wl,'
9771 lt_prog_compiler_pic='--shared'
9772 lt_prog_compiler_static='--static'
9774 pgcc* | pgf77* | pgf90* | pgf95*)
9775 # Portland Group compilers (*not* the Pentium gcc compiler,
9776 # which looks to be a dead project)
9777 lt_prog_compiler_wl='-Wl,'
9778 lt_prog_compiler_pic='-fpic'
9779 lt_prog_compiler_static='-Bstatic'
9782 lt_prog_compiler_wl='-Wl,'
9783 # All Alpha code is PIC.
9784 lt_prog_compiler_static='-non_shared'
9787 # IBM XL C 8.0/Fortran 10.1 on PPC
9788 lt_prog_compiler_wl='-Wl,'
9789 lt_prog_compiler_pic='-qpic'
9790 lt_prog_compiler_static='-qstaticlink'
9793 case `$CC -V 2>&1 | sed 5q` in
9796 lt_prog_compiler_pic='-KPIC'
9797 lt_prog_compiler_static='-Bstatic'
9798 lt_prog_compiler_wl='-Wl,'
9801 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9802 lt_prog_compiler_pic='-KPIC'
9803 lt_prog_compiler_static='-Bstatic'
9804 lt_prog_compiler_wl=''
9812 lt_prog_compiler_pic='-KPIC'
9813 lt_prog_compiler_static='-Bstatic'
9817 # QNX uses GNU C++, but need to define -shared option too, otherwise
9819 lt_prog_compiler_pic='-fPIC -shared'
9822 osf3* | osf4* | osf5*)
9823 lt_prog_compiler_wl='-Wl,'
9824 # All OSF/1 code is PIC.
9825 lt_prog_compiler_static='-non_shared'
9829 lt_prog_compiler_static='-non_shared'
9833 lt_prog_compiler_pic='-KPIC'
9834 lt_prog_compiler_static='-Bstatic'
9835 case $cc_basename in
9837 lt_prog_compiler_wl='-Qoption ld ';;
9839 lt_prog_compiler_wl='-Wl,';;
9844 lt_prog_compiler_wl='-Qoption ld '
9845 lt_prog_compiler_pic='-PIC'
9846 lt_prog_compiler_static='-Bstatic'
9849 sysv4 | sysv4.2uw2* | sysv4.3*)
9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_pic='-KPIC'
9852 lt_prog_compiler_static='-Bstatic'
9856 if test -d /usr/nec ;then
9857 lt_prog_compiler_pic='-Kconform_pic'
9858 lt_prog_compiler_static='-Bstatic'
9862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='-KPIC'
9865 lt_prog_compiler_static='-Bstatic'
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_can_build_shared=no
9874 lt_prog_compiler_pic='-pic'
9875 lt_prog_compiler_static='-Bstatic'
9879 lt_prog_compiler_can_build_shared=no
9885 # For platforms which do not support PIC, -DPIC is meaningless:
9887 lt_prog_compiler_pic=
9890 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9893 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9894 $as_echo "$lt_prog_compiler_pic" >&6; }
9902 # Check to make sure the PIC flag actually works.
9904 if test -n "$lt_prog_compiler_pic"; then
9905 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9906 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9907 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9908 $as_echo_n "(cached) " >&6
9910 lt_cv_prog_compiler_pic_works=no
9911 ac_outfile=conftest.$ac_objext
9912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9913 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9914 # Insert the option either (1) after the last *FLAGS variable, or
9915 # (2) before a word containing "conftest.", or (3) at the end.
9916 # Note that $ac_compile itself does not contain backslashes and begins
9917 # with a dollar sign (not a hyphen), so the echo should work correctly.
9918 # The option is referenced via a variable to avoid confusing sed.
9919 lt_compile=`echo "$ac_compile" | $SED \
9920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9922 -e 's:$: $lt_compiler_flag:'`
9923 (eval echo "\"\$as_me:9923: $lt_compile\"" >&5)
9924 (eval "$lt_compile" 2>conftest.err)
9926 cat conftest.err >&5
9927 echo "$as_me:9927: \$? = $ac_status" >&5
9928 if (exit $ac_status) && test -s "$ac_outfile"; then
9929 # The compiler can only warn and ignore the option if not recognized
9930 # So say no if there are warnings other than the usual output.
9931 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9934 lt_cv_prog_compiler_pic_works=yes
9940 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9943 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9944 case $lt_prog_compiler_pic in
9946 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9949 lt_prog_compiler_pic=
9950 lt_prog_compiler_can_build_shared=no
9961 # Check to make sure the static flag actually works.
9963 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9964 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9965 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9966 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9967 $as_echo_n "(cached) " >&6
9969 lt_cv_prog_compiler_static_works=no
9970 save_LDFLAGS="$LDFLAGS"
9971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9974 # The linker can only warn and ignore the option if not recognized
9975 # So say no if there are warnings
9976 if test -s conftest.err; then
9977 # Append any errors to the config.log.
9978 cat conftest.err 1>&5
9979 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9981 if diff conftest.exp conftest.er2 >/dev/null; then
9982 lt_cv_prog_compiler_static_works=yes
9985 lt_cv_prog_compiler_static_works=yes
9989 LDFLAGS="$save_LDFLAGS"
9992 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9993 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9995 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9998 lt_prog_compiler_static=
10007 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10009 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10010 $as_echo_n "(cached) " >&6
10012 lt_cv_prog_compiler_c_o=no
10013 $RM -r conftest 2>/dev/null
10017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10019 lt_compiler_flag="-o out/conftest2.$ac_objext"
10020 # Insert the option either (1) after the last *FLAGS variable, or
10021 # (2) before a word containing "conftest.", or (3) at the end.
10022 # Note that $ac_compile itself does not contain backslashes and begins
10023 # with a dollar sign (not a hyphen), so the echo should work correctly.
10024 lt_compile=`echo "$ac_compile" | $SED \
10025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10027 -e 's:$: $lt_compiler_flag:'`
10028 (eval echo "\"\$as_me:10028: $lt_compile\"" >&5)
10029 (eval "$lt_compile" 2>out/conftest.err)
10031 cat out/conftest.err >&5
10032 echo "$as_me:10032: \$? = $ac_status" >&5
10033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10035 # The compiler can only warn and ignore the option if not recognized
10036 # So say no if there are warnings
10037 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10038 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10039 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10040 lt_cv_prog_compiler_c_o=yes
10045 # SGI C++ compiler will create directory out/ii_files/ for
10046 # template instantiation
10047 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10048 $RM out/* && rmdir out
10054 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10062 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10064 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10065 $as_echo_n "(cached) " >&6
10067 lt_cv_prog_compiler_c_o=no
10068 $RM -r conftest 2>/dev/null
10072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10074 lt_compiler_flag="-o out/conftest2.$ac_objext"
10075 # Insert the option either (1) after the last *FLAGS variable, or
10076 # (2) before a word containing "conftest.", or (3) at the end.
10077 # Note that $ac_compile itself does not contain backslashes and begins
10078 # with a dollar sign (not a hyphen), so the echo should work correctly.
10079 lt_compile=`echo "$ac_compile" | $SED \
10080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10082 -e 's:$: $lt_compiler_flag:'`
10083 (eval echo "\"\$as_me:10083: $lt_compile\"" >&5)
10084 (eval "$lt_compile" 2>out/conftest.err)
10086 cat out/conftest.err >&5
10087 echo "$as_me:10087: \$? = $ac_status" >&5
10088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10090 # The compiler can only warn and ignore the option if not recognized
10091 # So say no if there are warnings
10092 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10095 lt_cv_prog_compiler_c_o=yes
10100 # SGI C++ compiler will create directory out/ii_files/ for
10101 # template instantiation
10102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10103 $RM out/* && rmdir out
10109 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10115 hard_links="nottested"
10116 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10117 # do not overwrite the value of need_locks provided by the user
10118 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10119 $as_echo_n "checking if we can lock with hard links... " >&6; }
10122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10124 ln conftest.a conftest.b 2>&5 || hard_links=no
10125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10126 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10127 $as_echo "$hard_links" >&6; }
10128 if test "$hard_links" = no; then
10129 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10130 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10142 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10143 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10146 allow_undefined_flag=
10147 always_export_symbols=no
10149 archive_expsym_cmds=
10150 compiler_needs_object=no
10151 enable_shared_with_static_runtimes=no
10152 export_dynamic_flag_spec=
10153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10154 hardcode_automatic=no
10156 hardcode_direct_absolute=no
10157 hardcode_libdir_flag_spec=
10158 hardcode_libdir_flag_spec_ld=
10159 hardcode_libdir_separator=
10160 hardcode_minus_L=no
10161 hardcode_shlibpath_var=unsupported
10163 link_all_deplibs=unknown
10165 module_expsym_cmds=
10166 old_archive_from_new_cmds=
10167 old_archive_from_expsyms_cmds=
10168 thread_safe_flag_spec=
10169 whole_archive_flag_spec=
10170 # include_expsyms should be a list of space-separated symbols to be *always*
10171 # included in the symbol list
10173 # exclude_expsyms can be an extended regexp of symbols to exclude
10174 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10175 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10176 # as well as any symbol that contains `d'.
10177 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10178 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10179 # platforms (ab)use it in PIC code, but their linkers get confused if
10180 # the symbol is explicitly referenced. Since portable code cannot
10181 # rely on this symbol name, it's probably fine to never include it in
10182 # preloaded symbol tables.
10183 # Exclude shared library initialization/finalization symbols.
10184 extract_expsyms_cmds=
10187 cygwin* | mingw* | pw32* | cegcc*)
10188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10189 # When not using gcc, we currently assume that we are using
10190 # Microsoft Visual C++.
10191 if test "$GCC" != yes; then
10196 # we just hope/assume this is gcc and not c89 (= MSVC++)
10205 if test "$with_gnu_ld" = yes; then
10206 # If archive_cmds runs LD, not CC, wlarc should be empty
10209 # Set some defaults for GNU ld with shared library support. These
10210 # are reset later if shared libraries are not supported. Putting them
10211 # here allows them to be overridden if necessary.
10212 runpath_var=LD_RUN_PATH
10213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10214 export_dynamic_flag_spec='${wl}--export-dynamic'
10215 # ancient GNU ld didn't support --whole-archive et. al.
10216 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10217 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10219 whole_archive_flag_spec=
10221 supports_anon_versioning=no
10222 case `$LD -v 2>&1` in
10223 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10224 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10225 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10226 *\ 2.11.*) ;; # other 2.11 versions
10227 *) supports_anon_versioning=yes ;;
10230 # See if GNU ld supports shared libraries.
10233 # On AIX/PPC, the GNU linker is very broken
10234 if test "$host_cpu" != ia64; then
10238 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10239 *** to be unable to reliably create shared libraries on AIX.
10240 *** Therefore, libtool is disabling shared libraries support. If you
10241 *** really care for shared libraries, you may want to modify your PATH
10242 *** so that a non-GNU linker is found, and then restart.
10251 # see comment about AmigaOS4 .so support
10252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253 archive_expsym_cmds=''
10256 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)'
10257 hardcode_libdir_flag_spec='-L$libdir'
10258 hardcode_minus_L=yes
10264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10265 allow_undefined_flag=unsupported
10266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10267 # support --undefined. This deserves some investigation. FIXME
10268 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10274 cygwin* | mingw* | pw32* | cegcc*)
10275 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10276 # as there is no search path for DLLs.
10277 hardcode_libdir_flag_spec='-L$libdir'
10278 allow_undefined_flag=unsupported
10279 always_export_symbols=no
10280 enable_shared_with_static_runtimes=yes
10281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10283 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10285 # If the export-symbols file already is a .def file (1st line
10286 # is EXPORTS), use it as is; otherwise, prepend...
10287 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10288 cp $export_symbols $output_objdir/$soname.def;
10290 echo EXPORTS > $output_objdir/$soname.def;
10291 cat $export_symbols >> $output_objdir/$soname.def;
10293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10301 hardcode_shlibpath_var=no
10302 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10303 export_dynamic_flag_spec='${wl}-E'
10304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10305 # Instead, shared libraries are loaded at an image base (0x10000000 by
10306 # default) and relocated if they conflict, which is a slow very memory
10307 # consuming and fragmenting process. To avoid this, we pick a random,
10308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10310 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10311 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'
10314 gnu* | linux* | tpf* | k*bsd*-gnu)
10316 if test "$host_os" = linux-dietlibc; then
10317 case $cc_basename in
10318 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10321 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10322 && test "$tmp_diet" = no
10325 tmp_sharedflag='-shared'
10326 case $cc_basename,$host_cpu in
10327 pgcc*) # Portland Group C compiler
10328 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'
10329 tmp_addflag=' $pic_flag'
10331 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10332 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'
10333 tmp_addflag=' $pic_flag -Mnomain' ;;
10334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10335 tmp_addflag=' -i_dynamic' ;;
10336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10337 tmp_addflag=' -i_dynamic -nofor_main' ;;
10338 ifc* | ifort*) # Intel Fortran compiler
10339 tmp_addflag=' -nofor_main' ;;
10340 lf95*) # Lahey Fortran 8.1
10341 whole_archive_flag_spec=
10342 tmp_sharedflag='--shared' ;;
10343 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10344 tmp_sharedflag='-qmkshrobj'
10347 case `$CC -V 2>&1 | sed 5q` in
10348 *Sun\ C*) # Sun C 5.9
10349 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'
10350 compiler_needs_object=yes
10351 tmp_sharedflag='-G' ;;
10352 *Sun\ F*) # Sun Fortran 8.3
10353 tmp_sharedflag='-G' ;;
10355 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10357 if test "x$supports_anon_versioning" = xyes; then
10358 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10360 echo "local: *; };" >> $output_objdir/$libname.ver~
10361 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10364 case $cc_basename in
10366 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10367 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10368 hardcode_libdir_flag_spec=
10369 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10370 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10371 if test "x$supports_anon_versioning" = xyes; then
10372 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10374 echo "local: *; };" >> $output_objdir/$libname.ver~
10375 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10386 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10395 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10399 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10400 *** create shared libraries on Solaris systems. Therefore, libtool
10401 *** is disabling shared libraries support. We urge you to upgrade GNU
10402 *** binutils to release 2.9.1 or newer. Another option is to modify
10403 *** your PATH or compiler configuration so that the native linker is
10404 *** used, and then restart.
10407 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10416 case `$LD -v 2>&1` in
10417 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10421 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10422 *** reliably create shared libraries on SCO systems. Therefore, libtool
10423 *** is disabling shared libraries support. We urge you to upgrade GNU
10424 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10425 *** your PATH or compiler configuration so that the native linker is
10426 *** used, and then restart.
10431 # For security reasons, it is highly recommended that you always
10432 # use absolute paths for naming shared libraries, and exclude the
10433 # DT_RUNPATH tag from executables and libraries. But doing so
10434 # requires that you compile everything twice, which is a pain.
10435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10447 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10449 hardcode_direct=yes
10450 hardcode_shlibpath_var=no
10454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10463 if test "$ld_shlibs" = no; then
10465 hardcode_libdir_flag_spec=
10466 export_dynamic_flag_spec=
10467 whole_archive_flag_spec=
10470 # PORTME fill in a description of your system's linker (not GNU ld)
10473 allow_undefined_flag=unsupported
10474 always_export_symbols=yes
10475 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'
10476 # Note: this linker hardcodes the directories in LIBPATH if there
10477 # are no directories specified by -L.
10478 hardcode_minus_L=yes
10479 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10480 # Neither direct hardcoding nor static linking is supported with a
10482 hardcode_direct=unsupported
10487 if test "$host_cpu" = ia64; then
10488 # On IA64, the linker does run time linking by default, so we don't
10489 # have to do anything special.
10490 aix_use_runtimelinking=no
10491 exp_sym_flag='-Bexport'
10494 # If we're using GNU nm, then we don't want the "-C" option.
10495 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10496 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10497 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'
10499 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'
10501 aix_use_runtimelinking=no
10503 # Test if we are trying to use run time linking or normal
10504 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10505 # need to do runtime linking.
10506 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10507 for ld_flag in $LDFLAGS; do
10508 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10509 aix_use_runtimelinking=yes
10516 exp_sym_flag='-bexport'
10517 no_entry_flag='-bnoentry'
10520 # When large executables or shared objects are built, AIX ld can
10521 # have problems creating the table of contents. If linking a library
10522 # or program results in "error TOC overflow" add -mminimal-toc to
10523 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10524 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10527 hardcode_direct=yes
10528 hardcode_direct_absolute=yes
10529 hardcode_libdir_separator=':'
10530 link_all_deplibs=yes
10531 file_list_spec='${wl}-f,'
10533 if test "$GCC" = yes; then
10534 case $host_os in aix4.[012]|aix4.[012].*)
10535 # We only want to do this on AIX 4.2 and lower, the check
10536 # below for broken collect2 doesn't work under 4.3+
10537 collect2name=`${CC} -print-prog-name=collect2`
10538 if test -f "$collect2name" &&
10539 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10541 # We have reworked collect2
10544 # We have old collect2
10545 hardcode_direct=unsupported
10546 # It fails to find uninstalled libraries when the uninstalled
10547 # path is not listed in the libpath. Setting hardcode_minus_L
10548 # to unsupported forces relinking
10549 hardcode_minus_L=yes
10550 hardcode_libdir_flag_spec='-L$libdir'
10551 hardcode_libdir_separator=
10555 shared_flag='-shared'
10556 if test "$aix_use_runtimelinking" = yes; then
10557 shared_flag="$shared_flag "'${wl}-G'
10561 if test "$host_cpu" = ia64; then
10562 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10563 # chokes on -Wl,-G. The following line is correct:
10566 if test "$aix_use_runtimelinking" = yes; then
10567 shared_flag='${wl}-G'
10569 shared_flag='${wl}-bM:SRE'
10574 export_dynamic_flag_spec='${wl}-bexpall'
10575 # It seems that -bexpall does not export symbols beginning with
10576 # underscore (_), so it is better to generate a list of symbols to export.
10577 always_export_symbols=yes
10578 if test "$aix_use_runtimelinking" = yes; then
10579 # Warning - without using the other runtime loading flags (-brtl),
10580 # -berok will link without error, but may produce a broken library.
10581 allow_undefined_flag='-berok'
10582 # Determine the default libpath from the value encoded in an
10583 # empty executable.
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10606 $as_echo "$ac_try_echo") >&5
10607 (eval "$ac_link") 2>conftest.er1
10609 grep -v '^ *+' conftest.er1 >conftest.err
10611 cat conftest.err >&5
10612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext && {
10617 test "$cross_compiling" = yes ||
10618 $as_test_x conftest$ac_exeext
10621 lt_aix_libpath_sed='
10622 /Import File Strings/,/^$/ {
10628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10629 # Check for a 64-bit object if we didn't find anything.
10630 if test -z "$aix_libpath"; then
10631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10634 $as_echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10640 rm -rf conftest.dSYM
10641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642 conftest$ac_exeext conftest.$ac_ext
10643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10645 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10646 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"
10648 if test "$host_cpu" = ia64; then
10649 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10650 allow_undefined_flag="-z nodefs"
10651 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"
10653 # Determine the default libpath from the value encoded in an
10654 # empty executable.
10655 cat >conftest.$ac_ext <<_ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678 (eval "$ac_link") 2>conftest.er1
10680 grep -v '^ *+' conftest.er1 >conftest.err
10682 cat conftest.err >&5
10683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest$ac_exeext && {
10688 test "$cross_compiling" = yes ||
10689 $as_test_x conftest$ac_exeext
10692 lt_aix_libpath_sed='
10693 /Import File Strings/,/^$/ {
10699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10700 # Check for a 64-bit object if we didn't find anything.
10701 if test -z "$aix_libpath"; then
10702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10705 $as_echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10711 rm -rf conftest.dSYM
10712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10713 conftest$ac_exeext conftest.$ac_ext
10714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10716 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10717 # Warning - without using the other run time loading flags,
10718 # -berok will link without error, but may produce a broken library.
10719 no_undefined_flag=' ${wl}-bernotok'
10720 allow_undefined_flag=' ${wl}-berok'
10721 # Exported symbols can be pulled into shared objects from archives
10722 whole_archive_flag_spec='$convenience'
10723 archive_cmds_need_lc=yes
10724 # This is similar to how AIX traditionally builds its shared libraries.
10725 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'
10733 # see comment about AmigaOS4 .so support
10734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10735 archive_expsym_cmds=''
10738 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)'
10739 hardcode_libdir_flag_spec='-L$libdir'
10740 hardcode_minus_L=yes
10746 export_dynamic_flag_spec=-rdynamic
10749 cygwin* | mingw* | pw32* | cegcc*)
10750 # When not using gcc, we currently assume that we are using
10751 # Microsoft Visual C++.
10752 # hardcode_libdir_flag_spec is actually meaningless, as there is
10753 # no search path for DLLs.
10754 hardcode_libdir_flag_spec=' '
10755 allow_undefined_flag=unsupported
10756 # Tell ltmain to make .lib files, not .a files.
10758 # Tell ltmain to make .dll files, not .so files.
10760 # FIXME: Setting linknames here is a bad hack.
10761 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10762 # The linker will automatically build a .lib file if we build a DLL.
10763 old_archive_from_new_cmds='true'
10764 # FIXME: Should let the user specify the lib program.
10765 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10766 fix_srcfile_path='`cygpath -w "$srcfile"`'
10767 enable_shared_with_static_runtimes=yes
10770 darwin* | rhapsody*)
10773 archive_cmds_need_lc=no
10775 hardcode_automatic=yes
10776 hardcode_shlibpath_var=unsupported
10777 whole_archive_flag_spec=''
10778 link_all_deplibs=yes
10779 allow_undefined_flag="$_lt_dar_allow_undefined"
10780 case $cc_basename in
10781 ifort*) _lt_dar_can_shared=yes ;;
10782 *) _lt_dar_can_shared=$GCC ;;
10784 if test "$_lt_dar_can_shared" = "yes"; then
10785 output_verbose_link_cmd=echo
10786 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10787 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10788 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}"
10789 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}"
10798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10799 hardcode_libdir_flag_spec='-L$libdir'
10800 hardcode_shlibpath_var=no
10807 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10808 # support. Future versions do this automatically, but an explicit c++rt0.o
10809 # does not break anything, and helps significantly (at the cost of a little
10812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10813 hardcode_libdir_flag_spec='-R$libdir'
10814 hardcode_direct=yes
10815 hardcode_shlibpath_var=no
10818 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10821 hardcode_direct=yes
10822 hardcode_minus_L=yes
10823 hardcode_shlibpath_var=no
10826 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10827 freebsd* | dragonfly*)
10828 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10829 hardcode_libdir_flag_spec='-R$libdir'
10830 hardcode_direct=yes
10831 hardcode_shlibpath_var=no
10835 if test "$GCC" = yes; then
10836 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'
10838 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'
10840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10841 hardcode_libdir_separator=:
10842 hardcode_direct=yes
10844 # hardcode_minus_L: Not really in the search PATH,
10845 # but as the default location of the library.
10846 hardcode_minus_L=yes
10847 export_dynamic_flag_spec='${wl}-E'
10851 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10852 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10854 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10856 if test "$with_gnu_ld" = no; then
10857 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10858 hardcode_libdir_flag_spec_ld='+b $libdir'
10859 hardcode_libdir_separator=:
10860 hardcode_direct=yes
10861 hardcode_direct_absolute=yes
10862 export_dynamic_flag_spec='${wl}-E'
10863 # hardcode_minus_L: Not really in the search PATH,
10864 # but as the default location of the library.
10865 hardcode_minus_L=yes
10870 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10873 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10876 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10879 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10885 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10888 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10891 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10895 if test "$with_gnu_ld" = no; then
10896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10897 hardcode_libdir_separator=:
10902 hardcode_shlibpath_var=no
10905 hardcode_direct=yes
10906 hardcode_direct_absolute=yes
10907 export_dynamic_flag_spec='${wl}-E'
10909 # hardcode_minus_L: Not really in the search PATH,
10910 # but as the default location of the library.
10911 hardcode_minus_L=yes
10917 irix5* | irix6* | nonstopux*)
10918 if test "$GCC" = yes; then
10919 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'
10920 # Try to use the -exported_symbol ld option, if it does not
10921 # work, assume that -exports_file does not work either and
10922 # implicitly export all symbols.
10923 save_LDFLAGS="$LDFLAGS"
10924 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10925 cat >conftest.$ac_ext <<_ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10935 $as_echo "$ac_try_echo") >&5
10936 (eval "$ac_link") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } && {
10943 test -z "$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10945 } && test -s conftest$ac_exeext && {
10946 test "$cross_compiling" = yes ||
10947 $as_test_x conftest$ac_exeext
10949 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'
10952 $as_echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10958 rm -rf conftest.dSYM
10959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10960 conftest$ac_exeext conftest.$ac_ext
10961 LDFLAGS="$save_LDFLAGS"
10963 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'
10964 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'
10966 archive_cmds_need_lc='no'
10967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10968 hardcode_libdir_separator=:
10970 link_all_deplibs=yes
10974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10977 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10979 hardcode_libdir_flag_spec='-R$libdir'
10980 hardcode_direct=yes
10981 hardcode_shlibpath_var=no
10985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986 hardcode_direct=yes
10987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10988 hardcode_libdir_separator=:
10989 hardcode_shlibpath_var=no
10996 if test -f /usr/libexec/ld.so; then
10997 hardcode_direct=yes
10998 hardcode_shlibpath_var=no
10999 hardcode_direct_absolute=yes
11000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11002 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11004 export_dynamic_flag_spec='${wl}-E'
11007 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11009 hardcode_libdir_flag_spec='-R$libdir'
11012 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11023 hardcode_libdir_flag_spec='-L$libdir'
11024 hardcode_minus_L=yes
11025 allow_undefined_flag=unsupported
11026 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'
11027 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11031 if test "$GCC" = yes; then
11032 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11033 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'
11035 allow_undefined_flag=' -expect_unresolved \*'
11036 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'
11038 archive_cmds_need_lc='no'
11039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11040 hardcode_libdir_separator=:
11043 osf4* | osf5*) # as osf3* with the addition of -msym flag
11044 if test "$GCC" = yes; then
11045 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11046 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'
11047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11049 allow_undefined_flag=' -expect_unresolved \*'
11050 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'
11051 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~
11052 $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'
11054 # Both c and cxx compiler support -rpath directly
11055 hardcode_libdir_flag_spec='-rpath $libdir'
11057 archive_cmds_need_lc='no'
11058 hardcode_libdir_separator=:
11062 no_undefined_flag=' -z defs'
11063 if test "$GCC" = yes; then
11065 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11067 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11069 case `$CC -V 2>&1` in
11072 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11074 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11078 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11080 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11084 hardcode_libdir_flag_spec='-R$libdir'
11085 hardcode_shlibpath_var=no
11087 solaris2.[0-5] | solaris2.[0-5].*) ;;
11089 # The compiler driver will combine and reorder linker options,
11090 # but understands `-z linker_flag'. GCC discards it without `$wl',
11091 # but is careful enough not to reorder.
11092 # Supported since Solaris 2.6 (maybe 2.5.1?)
11093 if test "$GCC" = yes; then
11094 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11096 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11100 link_all_deplibs=yes
11104 if test "x$host_vendor" = xsequent; then
11105 # Use $CC to link under sequent, because it throws in some extra .o
11106 # files that make .init and .fini sections work.
11107 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11109 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11111 hardcode_libdir_flag_spec='-L$libdir'
11112 hardcode_direct=yes
11113 hardcode_minus_L=yes
11114 hardcode_shlibpath_var=no
11118 case $host_vendor in
11120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11121 hardcode_direct=yes # is this really true???
11124 ## LD is ld it makes a PLAMLIB
11125 ## CC just makes a GrossModule.
11126 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11127 reload_cmds='$CC -r -o $output$reload_objs'
11131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11132 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11135 runpath_var='LD_RUN_PATH'
11136 hardcode_shlibpath_var=no
11140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11141 hardcode_shlibpath_var=no
11142 export_dynamic_flag_spec='-Bexport'
11146 if test -d /usr/nec; then
11147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11148 hardcode_shlibpath_var=no
11149 runpath_var=LD_RUN_PATH
11150 hardcode_runpath_var=yes
11155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11156 no_undefined_flag='${wl}-z,text'
11157 archive_cmds_need_lc=no
11158 hardcode_shlibpath_var=no
11159 runpath_var='LD_RUN_PATH'
11161 if test "$GCC" = yes; then
11162 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11163 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11165 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11166 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11170 sysv5* | sco3.2v5* | sco5v6*)
11171 # Note: We can NOT use -z defs as we might desire, because we do not
11172 # link with -lc, and that would cause any symbols used from libc to
11173 # always be unresolved, which means just about no library would
11174 # ever link correctly. If we're not using GNU ld we use -z text
11175 # though, which does catch some bad symbols but isn't as heavy-handed
11177 no_undefined_flag='${wl}-z,text'
11178 allow_undefined_flag='${wl}-z,nodefs'
11179 archive_cmds_need_lc=no
11180 hardcode_shlibpath_var=no
11181 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11182 hardcode_libdir_separator=':'
11183 link_all_deplibs=yes
11184 export_dynamic_flag_spec='${wl}-Bexport'
11185 runpath_var='LD_RUN_PATH'
11187 if test "$GCC" = yes; then
11188 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11189 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11191 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11192 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198 hardcode_libdir_flag_spec='-L$libdir'
11199 hardcode_shlibpath_var=no
11207 if test x$host_vendor = xsni; then
11209 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11210 export_dynamic_flag_spec='${wl}-Blargedynsym'
11216 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11217 $as_echo "$ld_shlibs" >&6; }
11218 test "$ld_shlibs" = no && can_build_shared=no
11220 with_gnu_ld=$with_gnu_ld
11237 # Do we need to explicitly link libc?
11239 case "x$archive_cmds_need_lc" in
11241 # Assume -lc should be added
11242 archive_cmds_need_lc=yes
11244 if test "$enable_shared" = yes && test "$GCC" = yes; then
11245 case $archive_cmds in
11247 # FIXME: we may have to deal with multi-command sequences.
11250 # Test whether the compiler implicitly links with -lc since on some
11251 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11252 # to ld, don't add -lc before -lgcc.
11253 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11254 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>&5
11261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } 2>conftest.err; then
11265 libobjs=conftest.$ac_objext
11267 wl=$lt_prog_compiler_wl
11268 pic_flag=$lt_prog_compiler_pic
11274 lt_save_allow_undefined_flag=$allow_undefined_flag
11275 allow_undefined_flag=
11276 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11277 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }
11282 archive_cmds_need_lc=no
11284 archive_cmds_need_lc=yes
11286 allow_undefined_flag=$lt_save_allow_undefined_flag
11288 cat conftest.err 1>&5
11291 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11292 $as_echo "$archive_cmds_need_lc" >&6; }
11455 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11456 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11458 if test "$GCC" = yes; then
11460 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11461 *) lt_awk_arg="/^libraries:/" ;;
11463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11464 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11465 # if the path contains ";" then we assume it to be the separator
11466 # otherwise default to the standard path separator (i.e. ":") - it is
11467 # assumed that no part of a normal pathname contains ";" but that should
11468 # okay in the real world where ";" in dirpaths is itself problematic.
11469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11473 # Ok, now we have the path, separated by spaces, we can step through it
11474 # and add multilib dir if necessary.
11475 lt_tmp_lt_search_path_spec=
11476 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11477 for lt_sys_path in $lt_search_path_spec; do
11478 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11481 test -d "$lt_sys_path" && \
11482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11485 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11486 BEGIN {RS=" "; FS="/|\n";} {
11489 for (lt_i = NF; lt_i > 0; lt_i--) {
11490 if ($lt_i != "" && $lt_i != ".") {
11491 if ($lt_i == "..") {
11494 if (lt_count == 0) {
11495 lt_foo="/" $lt_i lt_foo;
11502 if (lt_foo != "") { lt_freq[lt_foo]++; }
11503 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11505 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11507 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11509 library_names_spec=
11510 libname_spec='lib$name'
11514 postuninstall_cmds=
11518 shlibpath_overrides_runpath=unknown
11520 dynamic_linker="$host_os ld.so"
11521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11522 need_lib_prefix=unknown
11523 hardcode_into_libs=no
11525 # when you set need_version to no, make sure it does not cause -set_version
11526 # flags to be left without arguments
11527 need_version=unknown
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11533 shlibpath_var=LIBPATH
11535 # AIX 3 has no versioning support, so we append a major version to the name.
11536 soname_spec='${libname}${release}${shared_ext}$major'
11543 hardcode_into_libs=yes
11544 if test "$host_cpu" = ia64; then
11545 # AIX 5 supports IA64
11546 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11547 shlibpath_var=LD_LIBRARY_PATH
11549 # With GCC up to 2.95.x, collect2 would create an import file
11550 # for dependence libraries. The import file would start with
11551 # the line `#! .'. This would cause the generated library to
11552 # depend on `.', always an invalid library. This was fixed in
11553 # development snapshots of GCC prior to 3.0.
11555 aix4 | aix4.[01] | aix4.[01].*)
11556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11558 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11561 can_build_shared=no
11565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11566 # soname into executable. Probably we can add versioning support to
11567 # collect2, so additional links can be useful in future.
11568 if test "$aix_use_runtimelinking" = yes; then
11569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11570 # instead of lib<name>.a to let people know that these are not
11571 # typical AIX shared libraries.
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 # We preserve .a as extension for shared libraries through AIX4.2
11575 # and later when we are not doing run time linking.
11576 library_names_spec='${libname}${release}.a $libname.a'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11579 shlibpath_var=LIBPATH
11586 # Since July 2007 AmigaOS4 officially supports .so libraries.
11587 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 library_names_spec='$libname.ixlibrary $libname.a'
11592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11593 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'
11599 library_names_spec='${libname}${shared_ext}'
11600 dynamic_linker="$host_os ld.so"
11601 shlibpath_var=LIBRARY_PATH
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11610 shlibpath_var=LD_LIBRARY_PATH
11611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11613 # the default ld.so.conf also contains /usr/contrib/lib and
11614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11615 # libtool to hard-code these into programs
11618 cygwin* | mingw* | pw32* | cegcc*)
11619 version_type=windows
11624 case $GCC,$host_os in
11625 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11626 library_names_spec='$libname.dll.a'
11627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11628 postinstall_cmds='base_file=`basename \${file}`~
11629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11630 dldir=$destdir/`dirname \$dlpath`~
11631 test -d \$dldir || mkdir -p \$dldir~
11632 $install_prog $dir/$dlname \$dldir/$dlname~
11633 chmod a+x \$dldir/$dlname~
11634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11638 dlpath=$dir/\$dldll~
11640 shlibpath_overrides_runpath=yes
11644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11646 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11649 # MinGW DLLs use traditional 'lib' prefix
11650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11651 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11652 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11653 # It is most probably a Windows format PATH printed by
11654 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11655 # path with ; separators, and with drive letters. We can handle the
11656 # drive letters (cygwin fileutils understands them), so leave them,
11657 # especially as we might pass files found there to a mingw objdump,
11658 # which wouldn't understand a cygwinified path. Ahh.
11659 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11661 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11665 # pw32 DLLs use 'pw' prefix rather than 'lib'
11666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11675 dynamic_linker='Win32 ld.exe'
11676 # FIXME: first we should search . and the directory the executable is in
11680 darwin* | rhapsody*)
11681 dynamic_linker="$host_os dyld"
11682 version_type=darwin
11685 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11686 soname_spec='${libname}${release}${major}$shared_ext'
11687 shlibpath_overrides_runpath=yes
11688 shlibpath_var=DYLD_LIBRARY_PATH
11689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11708 freebsd* | dragonfly*)
11709 # DragonFly does not have aout. When/if they implement a new
11710 # versioning mechanism, adjust this.
11711 if test -x /usr/bin/objformat; then
11712 objformat=`/usr/bin/objformat`
11715 freebsd[123]*) objformat=aout ;;
11716 *) objformat=elf ;;
11719 version_type=freebsd-$objformat
11720 case $version_type in
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11731 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=yes
11736 freebsd3.[01]* | freebsdelf3.[01]*)
11737 shlibpath_overrides_runpath=yes
11738 hardcode_into_libs=yes
11740 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11741 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11742 shlibpath_overrides_runpath=no
11743 hardcode_into_libs=yes
11745 *) # from 4.6 on, and DragonFly
11746 shlibpath_overrides_runpath=yes
11747 hardcode_into_libs=yes
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 hardcode_into_libs=yes
11762 hpux9* | hpux10* | hpux11*)
11763 # Give a soname corresponding to the major version so that dld.sl refuses to
11764 # link against other versions.
11771 hardcode_into_libs=yes
11772 dynamic_linker="$host_os dld.so"
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 if test "X$HPUX_IA64_MODE" = X32; then
11778 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11780 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786 hardcode_into_libs=yes
11787 dynamic_linker="$host_os dld.sl"
11788 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11797 dynamic_linker="$host_os dld.sl"
11798 shlibpath_var=SHLIB_PATH
11799 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801 soname_spec='${libname}${release}${shared_ext}$major'
11804 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11805 postinstall_cmds='chmod 555 $lib'
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 hardcode_into_libs=yes
11820 irix5* | irix6* | nonstopux*)
11822 nonstopux*) version_type=nonstopux ;;
11824 if test "$lt_cv_prog_gnu_ld" = yes; then
11832 soname_spec='${libname}${release}${shared_ext}$major'
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11835 irix5* | nonstopux*)
11836 libsuff= shlibsuff=
11839 case $LD in # libtool.m4 will add one of these switches to LD
11840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11841 libsuff= shlibsuff= libmagic=32-bit;;
11842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11843 libsuff=32 shlibsuff=N32 libmagic=N32;;
11844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11845 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11846 *) libsuff= shlibsuff= libmagic=never-match;;
11850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11851 shlibpath_overrides_runpath=no
11852 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11853 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11854 hardcode_into_libs=yes
11857 # No shared lib support for Linux oldld, aout, or coff.
11858 linux*oldld* | linux*aout* | linux*coff*)
11862 # This must be Linux ELF.
11863 linux* | k*bsd*-gnu)
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868 soname_spec='${libname}${release}${shared_ext}$major'
11869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 shlibpath_overrides_runpath=no
11872 # Some binutils ld are patched to set DT_RUNPATH
11873 save_LDFLAGS=$LDFLAGS
11874 save_libdir=$libdir
11875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11877 cat >conftest.$ac_ext <<_ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (ac_try="$ac_link"
11894 case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899 $as_echo "$ac_try_echo") >&5
11900 (eval "$ac_link") 2>conftest.er1
11902 grep -v '^ *+' conftest.er1 >conftest.err
11904 cat conftest.err >&5
11905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } && {
11907 test -z "$ac_c_werror_flag" ||
11908 test ! -s conftest.err
11909 } && test -s conftest$ac_exeext && {
11910 test "$cross_compiling" = yes ||
11911 $as_test_x conftest$ac_exeext
11913 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11914 shlibpath_overrides_runpath=yes
11918 $as_echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11924 rm -rf conftest.dSYM
11925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11926 conftest$ac_exeext conftest.$ac_ext
11927 LDFLAGS=$save_LDFLAGS
11928 libdir=$save_libdir
11930 # This implies no fast_install, which is unacceptable.
11931 # Some rework will be needed to allow for fast_install
11932 # before this can be enabled.
11933 hardcode_into_libs=yes
11935 # Append ld.so.conf contents to the search path
11936 if test -f /etc/ld.so.conf; then
11937 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' ' '`
11938 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11941 # We used to test for /lib/ld.so.1 and disable shared libraries on
11942 # powerpc, because MkLinux only supported shared libraries with the
11943 # GNU dynamic linker. Since this was broken with cross compilers,
11944 # most powerpc-linux boxes support dynamic linking these days and
11945 # people can always --disable-shared, the test was removed, and we
11946 # assume the GNU/Linux dynamic linker is in use.
11947 dynamic_linker='GNU/Linux ld.so'
11954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11957 dynamic_linker='NetBSD (a.out) ld.so'
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11960 soname_spec='${libname}${release}${shared_ext}$major'
11961 dynamic_linker='NetBSD ld.elf_so'
11963 shlibpath_var=LD_LIBRARY_PATH
11964 shlibpath_overrides_runpath=yes
11965 hardcode_into_libs=yes
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=yes
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 shlibpath_var=LD_LIBRARY_PATH
11982 shlibpath_overrides_runpath=no
11983 hardcode_into_libs=yes
11984 dynamic_linker='ldqnx.so'
11989 sys_lib_dlsearch_path_spec="/usr/lib"
11991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11993 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11994 *) need_version=no ;;
11996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12001 openbsd2.[89] | openbsd2.[89].*)
12002 shlibpath_overrides_runpath=no
12005 shlibpath_overrides_runpath=yes
12009 shlibpath_overrides_runpath=yes
12014 libname_spec='$name'
12017 library_names_spec='$libname${shared_ext} $libname.a'
12018 dynamic_linker='OS/2 ld.exe'
12019 shlibpath_var=LIBPATH
12022 osf3* | osf4* | osf5*)
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12042 soname_spec='${libname}${release}${shared_ext}$major'
12043 shlibpath_var=LD_LIBRARY_PATH
12044 shlibpath_overrides_runpath=yes
12045 hardcode_into_libs=yes
12046 # ldd complains unless libraries are executable
12047 postinstall_cmds='chmod +x $lib'
12052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12054 shlibpath_var=LD_LIBRARY_PATH
12055 shlibpath_overrides_runpath=yes
12056 if test "$with_gnu_ld" = yes; then
12064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065 soname_spec='${libname}${release}${shared_ext}$major'
12066 shlibpath_var=LD_LIBRARY_PATH
12067 case $host_vendor in
12069 shlibpath_overrides_runpath=no
12071 runpath_var=LD_RUN_PATH
12079 shlibpath_overrides_runpath=no
12080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12086 if test -d /usr/nec ;then
12088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12089 soname_spec='$libname${shared_ext}.$major'
12090 shlibpath_var=LD_LIBRARY_PATH
12094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12095 version_type=freebsd-elf
12098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12099 soname_spec='${libname}${release}${shared_ext}$major'
12100 shlibpath_var=LD_LIBRARY_PATH
12101 shlibpath_overrides_runpath=yes
12102 hardcode_into_libs=yes
12103 if test "$with_gnu_ld" = yes; then
12104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12106 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12109 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12113 sys_lib_dlsearch_path_spec='/usr/lib'
12117 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 shlibpath_overrides_runpath=no
12124 hardcode_into_libs=yes
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130 soname_spec='${libname}${release}${shared_ext}$major'
12131 shlibpath_var=LD_LIBRARY_PATH
12138 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12139 $as_echo "$dynamic_linker" >&6; }
12140 test "$dynamic_linker" = no && can_build_shared=no
12142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12143 if test "$GCC" = yes; then
12144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12147 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12148 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12150 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12151 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12240 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12241 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12243 if test -n "$hardcode_libdir_flag_spec" ||
12244 test -n "$runpath_var" ||
12245 test "X$hardcode_automatic" = "Xyes" ; then
12247 # We can hardcode non-existent directories.
12248 if test "$hardcode_direct" != no &&
12249 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12250 # have to relink, otherwise we might link with an installed library
12251 # when we should be linking with a yet-to-be-installed one
12252 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12253 test "$hardcode_minus_L" != no; then
12254 # Linking always hardcodes the temporary library directory.
12255 hardcode_action=relink
12257 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12258 hardcode_action=immediate
12261 # We cannot hardcode anything, or else we can only hardcode existing
12263 hardcode_action=unsupported
12265 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12266 $as_echo "$hardcode_action" >&6; }
12268 if test "$hardcode_action" = relink ||
12269 test "$inherit_rpath" = yes; then
12270 # Fast installation is not supported
12271 enable_fast_install=no
12272 elif test "$shlibpath_overrides_runpath" = yes ||
12273 test "$enable_shared" = no; then
12274 # Fast installation is not necessary
12275 enable_fast_install=needless
12283 if test "x$enable_dlopen" != xyes; then
12284 enable_dlopen=unknown
12285 enable_dlopen_self=unknown
12286 enable_dlopen_self_static=unknown
12293 lt_cv_dlopen="load_add_on"
12295 lt_cv_dlopen_self=yes
12298 mingw* | pw32* | cegcc*)
12299 lt_cv_dlopen="LoadLibrary"
12304 lt_cv_dlopen="dlopen"
12309 # if libdl is installed we need to link against it
12310 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12311 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12312 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12313 $as_echo_n "(cached) " >&6
12315 ac_check_lib_save_LIBS=$LIBS
12317 cat >conftest.$ac_ext <<_ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12324 /* Override any GCC internal prototype to avoid an error.
12325 Use char because int might match the return type of a GCC
12326 builtin and then its argument prototype would still apply. */
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (ac_try="$ac_link"
12341 case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12346 $as_echo "$ac_try_echo") >&5
12347 (eval "$ac_link") 2>conftest.er1
12349 grep -v '^ *+' conftest.er1 >conftest.err
12351 cat conftest.err >&5
12352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && {
12354 test -z "$ac_c_werror_flag" ||
12355 test ! -s conftest.err
12356 } && test -s conftest$ac_exeext && {
12357 test "$cross_compiling" = yes ||
12358 $as_test_x conftest$ac_exeext
12360 ac_cv_lib_dl_dlopen=yes
12362 $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_lib_dl_dlopen=no
12368 rm -rf conftest.dSYM
12369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12375 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12379 lt_cv_dlopen="dyld"
12381 lt_cv_dlopen_self=yes
12388 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12389 $as_echo_n "checking for shl_load... " >&6; }
12390 if test "${ac_cv_func_shl_load+set}" = set; then
12391 $as_echo_n "(cached) " >&6
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12401 #define shl_load innocuous_shl_load
12403 /* System header to define __stub macros and hopefully few prototypes,
12404 which can conflict with char shl_load (); below.
12405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12406 <limits.h> exists even on freestanding compilers. */
12409 # include <limits.h>
12411 # include <assert.h>
12416 /* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12423 /* The GNU C library defines this for functions which it implements
12424 to always fail with ENOSYS. Some functions are actually named
12425 something starting with __ and the normal name is an alias. */
12426 #if defined __stub_shl_load || defined __stub___shl_load
12433 return shl_load ();
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (ac_try="$ac_link"
12440 case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12445 $as_echo "$ac_try_echo") >&5
12446 (eval "$ac_link") 2>conftest.er1
12448 grep -v '^ *+' conftest.er1 >conftest.err
12450 cat conftest.err >&5
12451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } && {
12453 test -z "$ac_c_werror_flag" ||
12454 test ! -s conftest.err
12455 } && test -s conftest$ac_exeext && {
12456 test "$cross_compiling" = yes ||
12457 $as_test_x conftest$ac_exeext
12459 ac_cv_func_shl_load=yes
12461 $as_echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 ac_cv_func_shl_load=no
12467 rm -rf conftest.dSYM
12468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12469 conftest$ac_exeext conftest.$ac_ext
12471 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12472 $as_echo "$ac_cv_func_shl_load" >&6; }
12473 if test "x$ac_cv_func_shl_load" = x""yes; then
12474 lt_cv_dlopen="shl_load"
12476 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12477 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12478 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12479 $as_echo_n "(cached) " >&6
12481 ac_check_lib_save_LIBS=$LIBS
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12500 return shl_load ();
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (ac_try="$ac_link"
12507 case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12512 $as_echo "$ac_try_echo") >&5
12513 (eval "$ac_link") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && {
12520 test -z "$ac_c_werror_flag" ||
12521 test ! -s conftest.err
12522 } && test -s conftest$ac_exeext && {
12523 test "$cross_compiling" = yes ||
12524 $as_test_x conftest$ac_exeext
12526 ac_cv_lib_dld_shl_load=yes
12528 $as_echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ac_cv_lib_dld_shl_load=no
12534 rm -rf conftest.dSYM
12535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12536 conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12539 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12540 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12541 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12542 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12544 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12545 $as_echo_n "checking for dlopen... " >&6; }
12546 if test "${ac_cv_func_dlopen+set}" = set; then
12547 $as_echo_n "(cached) " >&6
12549 cat >conftest.$ac_ext <<_ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12557 #define dlopen innocuous_dlopen
12559 /* System header to define __stub macros and hopefully few prototypes,
12560 which can conflict with char dlopen (); below.
12561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12562 <limits.h> exists even on freestanding compilers. */
12565 # include <limits.h>
12567 # include <assert.h>
12572 /* Override any GCC internal prototype to avoid an error.
12573 Use char because int might match the return type of a GCC
12574 builtin and then its argument prototype would still apply. */
12579 /* The GNU C library defines this for functions which it implements
12580 to always fail with ENOSYS. Some functions are actually named
12581 something starting with __ and the normal name is an alias. */
12582 #if defined __stub_dlopen || defined __stub___dlopen
12594 rm -f conftest.$ac_objext conftest$ac_exeext
12595 if { (ac_try="$ac_link"
12596 case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12601 $as_echo "$ac_try_echo") >&5
12602 (eval "$ac_link") 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_c_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest$ac_exeext && {
12612 test "$cross_compiling" = yes ||
12613 $as_test_x conftest$ac_exeext
12615 ac_cv_func_dlopen=yes
12617 $as_echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12620 ac_cv_func_dlopen=no
12623 rm -rf conftest.dSYM
12624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625 conftest$ac_exeext conftest.$ac_ext
12627 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12628 $as_echo "$ac_cv_func_dlopen" >&6; }
12629 if test "x$ac_cv_func_dlopen" = x""yes; then
12630 lt_cv_dlopen="dlopen"
12632 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12633 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12634 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12635 $as_echo_n "(cached) " >&6
12637 ac_check_lib_save_LIBS=$LIBS
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12668 $as_echo "$ac_try_echo") >&5
12669 (eval "$ac_link") 2>conftest.er1
12671 grep -v '^ *+' conftest.er1 >conftest.err
12673 cat conftest.err >&5
12674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest$ac_exeext && {
12679 test "$cross_compiling" = yes ||
12680 $as_test_x conftest$ac_exeext
12682 ac_cv_lib_dl_dlopen=yes
12684 $as_echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ac_cv_lib_dl_dlopen=no
12690 rm -rf conftest.dSYM
12691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12692 conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12695 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12697 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12700 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12701 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12702 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12703 $as_echo_n "(cached) " >&6
12705 ac_check_lib_save_LIBS=$LIBS
12706 LIBS="-lsvld $LIBS"
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12729 rm -f conftest.$ac_objext conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736 $as_echo "$ac_try_echo") >&5
12737 (eval "$ac_link") 2>conftest.er1
12739 grep -v '^ *+' conftest.er1 >conftest.err
12741 cat conftest.err >&5
12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest$ac_exeext && {
12747 test "$cross_compiling" = yes ||
12748 $as_test_x conftest$ac_exeext
12750 ac_cv_lib_svld_dlopen=yes
12752 $as_echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ac_cv_lib_svld_dlopen=no
12758 rm -rf conftest.dSYM
12759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12760 conftest$ac_exeext conftest.$ac_ext
12761 LIBS=$ac_check_lib_save_LIBS
12763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12764 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12765 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12768 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12769 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12770 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12771 $as_echo_n "(cached) " >&6
12773 ac_check_lib_save_LIBS=$LIBS
12775 cat >conftest.$ac_ext <<_ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12782 /* Override any GCC internal prototype to avoid an error.
12783 Use char because int might match the return type of a GCC
12784 builtin and then its argument prototype would still apply. */
12792 return dld_link ();
12797 rm -f conftest.$ac_objext conftest$ac_exeext
12798 if { (ac_try="$ac_link"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12804 $as_echo "$ac_try_echo") >&5
12805 (eval "$ac_link") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } && {
12812 test -z "$ac_c_werror_flag" ||
12813 test ! -s conftest.err
12814 } && test -s conftest$ac_exeext && {
12815 test "$cross_compiling" = yes ||
12816 $as_test_x conftest$ac_exeext
12818 ac_cv_lib_dld_dld_link=yes
12820 $as_echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_cv_lib_dld_dld_link=no
12826 rm -rf conftest.dSYM
12827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12828 conftest$ac_exeext conftest.$ac_ext
12829 LIBS=$ac_check_lib_save_LIBS
12831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12832 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12833 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12834 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12855 if test "x$lt_cv_dlopen" != xno; then
12861 case $lt_cv_dlopen in
12863 save_CPPFLAGS="$CPPFLAGS"
12864 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12866 save_LDFLAGS="$LDFLAGS"
12867 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12870 LIBS="$lt_cv_dlopen_libs $LIBS"
12872 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12873 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12874 if test "${lt_cv_dlopen_self+set}" = set; then
12875 $as_echo_n "(cached) " >&6
12877 if test "$cross_compiling" = yes; then :
12878 lt_cv_dlopen_self=cross
12880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12881 lt_status=$lt_dlunknown
12882 cat > conftest.$ac_ext <<_LT_EOF
12883 #line 12883 "configure"
12884 #include "confdefs.h"
12893 # define LT_DLGLOBAL RTLD_GLOBAL
12896 # define LT_DLGLOBAL DL_GLOBAL
12898 # define LT_DLGLOBAL 0
12902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12903 find out it does not work in some platform. */
12904 #ifndef LT_DLLAZY_OR_NOW
12906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12909 # define LT_DLLAZY_OR_NOW DL_LAZY
12912 # define LT_DLLAZY_OR_NOW RTLD_NOW
12915 # define LT_DLLAZY_OR_NOW DL_NOW
12917 # define LT_DLLAZY_OR_NOW 0
12924 void fnord() { int i=42;}
12927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12928 int status = $lt_dlunknown;
12932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12933 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12934 /* dlclose (self); */
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>&5
12945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12947 (./conftest; exit; ) >&5 2>/dev/null
12949 case x$lt_status in
12950 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12951 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12952 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12955 # compilation failed
12956 lt_cv_dlopen_self=no
12963 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12964 $as_echo "$lt_cv_dlopen_self" >&6; }
12966 if test "x$lt_cv_dlopen_self" = xyes; then
12967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12968 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12969 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12970 if test "${lt_cv_dlopen_self_static+set}" = set; then
12971 $as_echo_n "(cached) " >&6
12973 if test "$cross_compiling" = yes; then :
12974 lt_cv_dlopen_self_static=cross
12976 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12977 lt_status=$lt_dlunknown
12978 cat > conftest.$ac_ext <<_LT_EOF
12979 #line 12979 "configure"
12980 #include "confdefs.h"
12989 # define LT_DLGLOBAL RTLD_GLOBAL
12992 # define LT_DLGLOBAL DL_GLOBAL
12994 # define LT_DLGLOBAL 0
12998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12999 find out it does not work in some platform. */
13000 #ifndef LT_DLLAZY_OR_NOW
13002 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13005 # define LT_DLLAZY_OR_NOW DL_LAZY
13008 # define LT_DLLAZY_OR_NOW RTLD_NOW
13011 # define LT_DLLAZY_OR_NOW DL_NOW
13013 # define LT_DLLAZY_OR_NOW 0
13020 void fnord() { int i=42;}
13023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13024 int status = $lt_dlunknown;
13028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13030 /* dlclose (self); */
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039 (eval $ac_link) 2>&5
13041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13043 (./conftest; exit; ) >&5 2>/dev/null
13045 case x$lt_status in
13046 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13047 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13048 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13051 # compilation failed
13052 lt_cv_dlopen_self_static=no
13059 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13060 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13063 CPPFLAGS="$save_CPPFLAGS"
13064 LDFLAGS="$save_LDFLAGS"
13069 case $lt_cv_dlopen_self in
13070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13071 *) enable_dlopen_self=unknown ;;
13074 case $lt_cv_dlopen_self_static in
13075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13076 *) enable_dlopen_self_static=unknown ;;
13098 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13099 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13100 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13102 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13103 { $as_echo "$as_me:$LINENO: result: yes" >&5
13104 $as_echo "yes" >&6; }
13106 # FIXME - insert some real tests, host_os isn't really good enough
13109 if test -n "$STRIP" ; then
13110 striplib="$STRIP -x"
13111 old_striplib="$STRIP -S"
13112 { $as_echo "$as_me:$LINENO: result: yes" >&5
13113 $as_echo "yes" >&6; }
13115 { $as_echo "$as_me:$LINENO: result: no" >&5
13116 $as_echo "no" >&6; }
13120 { $as_echo "$as_me:$LINENO: result: no" >&5
13121 $as_echo "no" >&6; }
13137 # Report which library types will actually be built
13138 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13139 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13140 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13141 $as_echo "$can_build_shared" >&6; }
13143 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13144 $as_echo_n "checking whether to build shared libraries... " >&6; }
13145 test "$can_build_shared" = "no" && enable_shared=no
13147 # On AIX, shared libraries and static libraries use the same namespace, and
13148 # are all built from PIC.
13151 test "$enable_shared" = yes && enable_static=no
13152 if test -n "$RANLIB"; then
13153 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13154 postinstall_cmds='$RANLIB $lib'
13159 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13160 test "$enable_shared" = yes && enable_static=no
13164 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13165 $as_echo "$enable_shared" >&6; }
13167 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13168 $as_echo_n "checking whether to build static libraries... " >&6; }
13169 # Make sure either enable_shared or enable_static is yes.
13170 test "$enable_shared" = yes || enable_static=yes
13171 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13172 $as_echo "$enable_static" >&6; }
13179 ac_cpp='$CPP $CPPFLAGS'
13180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13188 ac_cpp='$CXXCPP $CPPFLAGS'
13189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13193 archive_cmds_need_lc_CXX=no
13194 allow_undefined_flag_CXX=
13195 always_export_symbols_CXX=no
13196 archive_expsym_cmds_CXX=
13197 compiler_needs_object_CXX=no
13198 export_dynamic_flag_spec_CXX=
13199 hardcode_direct_CXX=no
13200 hardcode_direct_absolute_CXX=no
13201 hardcode_libdir_flag_spec_CXX=
13202 hardcode_libdir_flag_spec_ld_CXX=
13203 hardcode_libdir_separator_CXX=
13204 hardcode_minus_L_CXX=no
13205 hardcode_shlibpath_var_CXX=unsupported
13206 hardcode_automatic_CXX=no
13207 inherit_rpath_CXX=no
13209 module_expsym_cmds_CXX=
13210 link_all_deplibs_CXX=unknown
13211 old_archive_cmds_CXX=$old_archive_cmds
13212 no_undefined_flag_CXX=
13213 whole_archive_flag_spec_CXX=
13214 enable_shared_with_static_runtimes_CXX=no
13216 # Source file extension for C++ test sources.
13219 # Object file extension for compiled C++ test sources.
13223 # No sense in running all these tests if we already determined that
13224 # the CXX compiler isn't working. Some variables (like enable_shared)
13225 # are currently assumed to apply to all compilers on this platform,
13226 # and will be corrupted by setting them based on a non-working compiler.
13227 if test "$_lt_caught_CXX_error" != yes; then
13228 # Code to be used in simple compile tests
13229 lt_simple_compile_test_code="int some_variable = 0;"
13231 # Code to be used in simple link tests
13232 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13234 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13241 # If no C compiler was specified, use CC.
13244 # If no C compiler flags were specified, use CFLAGS.
13245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13247 # Allow CC to be a program name with arguments.
13251 # save warnings/boilerplate of simple test code
13252 ac_outfile=conftest.$ac_objext
13253 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13254 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13255 _lt_compiler_boilerplate=`cat conftest.err`
13258 ac_outfile=conftest.$ac_objext
13259 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13260 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13261 _lt_linker_boilerplate=`cat conftest.err`
13265 # Allow CC to be a program name with arguments.
13270 lt_save_with_gnu_ld=$with_gnu_ld
13271 lt_save_path_LD=$lt_cv_path_LD
13272 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13273 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13275 $as_unset lt_cv_prog_gnu_ld
13277 if test -n "${lt_cv_path_LDCXX+set}"; then
13278 lt_cv_path_LD=$lt_cv_path_LDCXX
13280 $as_unset lt_cv_path_LD
13282 test -z "${LDCXX+set}" || LD=$LDCXX
13286 for cc_temp in $compiler""; do
13288 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13289 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13294 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13297 if test -n "$compiler"; then
13298 # We don't want -fno-exception when compiling C++ code, so set the
13299 # no_builtin_flag separately
13300 if test "$GXX" = yes; then
13301 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13303 lt_prog_compiler_no_builtin_flag_CXX=
13306 if test "$GXX" = yes; then
13307 # Set up default GNU C++ configuration
13311 # Check whether --with-gnu-ld was given.
13312 if test "${with_gnu_ld+set}" = set; then
13313 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13319 if test "$GCC" = yes; then
13320 # Check if gcc -print-prog-name=ld gives a path.
13321 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13322 $as_echo_n "checking for ld used by $CC... " >&6; }
13325 # gcc leaves a trailing carriage return which upsets mingw
13326 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13328 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13331 # Accept absolute paths.
13333 re_direlt='/[^/][^/]*/\.\./'
13334 # Canonicalize the pathname of ld
13335 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13336 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13337 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13339 test -z "$LD" && LD="$ac_prog"
13342 # If it fails, then pretend we aren't using GCC.
13346 # If it is relative, then search for the first ld in PATH.
13347 with_gnu_ld=unknown
13350 elif test "$with_gnu_ld" = yes; then
13351 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13352 $as_echo_n "checking for GNU ld... " >&6; }
13354 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13355 $as_echo_n "checking for non-GNU ld... " >&6; }
13357 if test "${lt_cv_path_LD+set}" = set; then
13358 $as_echo_n "(cached) " >&6
13360 if test -z "$LD"; then
13361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13362 for ac_dir in $PATH; do
13364 test -z "$ac_dir" && ac_dir=.
13365 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13366 lt_cv_path_LD="$ac_dir/$ac_prog"
13367 # Check to see if the program is GNU ld. I'd rather use --version,
13368 # but apparently some variants of GNU ld only accept -v.
13369 # Break only if it was the GNU/non-GNU ld that we prefer.
13370 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13371 *GNU* | *'with BFD'*)
13372 test "$with_gnu_ld" != no && break
13375 test "$with_gnu_ld" != yes && break
13382 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13386 LD="$lt_cv_path_LD"
13387 if test -n "$LD"; then
13388 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13389 $as_echo "$LD" >&6; }
13391 { $as_echo "$as_me:$LINENO: result: no" >&5
13392 $as_echo "no" >&6; }
13394 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13395 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13396 { (exit 1); exit 1; }; }
13397 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13398 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13399 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13400 $as_echo_n "(cached) " >&6
13402 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13403 case `$LD -v 2>&1 </dev/null` in
13404 *GNU* | *'with BFD'*)
13405 lt_cv_prog_gnu_ld=yes
13408 lt_cv_prog_gnu_ld=no
13412 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13413 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13414 with_gnu_ld=$lt_cv_prog_gnu_ld
13422 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13423 # archiving commands below assume that GNU ld is being used.
13424 if test "$with_gnu_ld" = yes; then
13425 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13426 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'
13428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13431 # If archive_cmds runs LD, not CC, wlarc should be empty
13432 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13433 # investigate it a little bit more. (MM)
13436 # ancient GNU ld didn't support --whole-archive et. al.
13437 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13438 $GREP 'no-whole-archive' > /dev/null; then
13439 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13441 whole_archive_flag_spec_CXX=
13447 # A generic and very simple default shared library creation
13448 # command for GNU C++ for the case where it uses the native
13449 # linker, instead of GNU ld. If possible, this setting should
13450 # overridden to take advantage of the native linker features on
13451 # the platform it is being used on.
13452 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13455 # Commands to make compiler produce verbose output that lists
13456 # what "hidden" libraries, object files and flags are used when
13457 # linking a shared library.
13458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13466 # PORTME: fill in a description of your system's C++ link characteristics
13467 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13468 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13472 # FIXME: insert proper C++ library support
13476 if test "$host_cpu" = ia64; then
13477 # On IA64, the linker does run time linking by default, so we don't
13478 # have to do anything special.
13479 aix_use_runtimelinking=no
13480 exp_sym_flag='-Bexport'
13483 aix_use_runtimelinking=no
13485 # Test if we are trying to use run time linking or normal
13486 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13487 # need to do runtime linking.
13488 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13489 for ld_flag in $LDFLAGS; do
13492 aix_use_runtimelinking=yes
13500 exp_sym_flag='-bexport'
13501 no_entry_flag='-bnoentry'
13504 # When large executables or shared objects are built, AIX ld can
13505 # have problems creating the table of contents. If linking a library
13506 # or program results in "error TOC overflow" add -mminimal-toc to
13507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13510 archive_cmds_CXX=''
13511 hardcode_direct_CXX=yes
13512 hardcode_direct_absolute_CXX=yes
13513 hardcode_libdir_separator_CXX=':'
13514 link_all_deplibs_CXX=yes
13515 file_list_spec_CXX='${wl}-f,'
13517 if test "$GXX" = yes; then
13518 case $host_os in aix4.[012]|aix4.[012].*)
13519 # We only want to do this on AIX 4.2 and lower, the check
13520 # below for broken collect2 doesn't work under 4.3+
13521 collect2name=`${CC} -print-prog-name=collect2`
13522 if test -f "$collect2name" &&
13523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13525 # We have reworked collect2
13528 # We have old collect2
13529 hardcode_direct_CXX=unsupported
13530 # It fails to find uninstalled libraries when the uninstalled
13531 # path is not listed in the libpath. Setting hardcode_minus_L
13532 # to unsupported forces relinking
13533 hardcode_minus_L_CXX=yes
13534 hardcode_libdir_flag_spec_CXX='-L$libdir'
13535 hardcode_libdir_separator_CXX=
13538 shared_flag='-shared'
13539 if test "$aix_use_runtimelinking" = yes; then
13540 shared_flag="$shared_flag "'${wl}-G'
13544 if test "$host_cpu" = ia64; then
13545 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13546 # chokes on -Wl,-G. The following line is correct:
13549 if test "$aix_use_runtimelinking" = yes; then
13550 shared_flag='${wl}-G'
13552 shared_flag='${wl}-bM:SRE'
13557 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13558 # It seems that -bexpall does not export symbols beginning with
13559 # underscore (_), so it is better to generate a list of symbols to
13561 always_export_symbols_CXX=yes
13562 if test "$aix_use_runtimelinking" = yes; then
13563 # Warning - without using the other runtime loading flags (-brtl),
13564 # -berok will link without error, but may produce a broken library.
13565 allow_undefined_flag_CXX='-berok'
13566 # Determine the default libpath from the value encoded in an empty
13568 cat >conftest.$ac_ext <<_ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (ac_try="$ac_link"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13590 $as_echo "$ac_try_echo") >&5
13591 (eval "$ac_link") 2>conftest.er1
13593 grep -v '^ *+' conftest.er1 >conftest.err
13595 cat conftest.err >&5
13596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } && {
13598 test -z "$ac_cxx_werror_flag" ||
13599 test ! -s conftest.err
13600 } && test -s conftest$ac_exeext && {
13601 test "$cross_compiling" = yes ||
13602 $as_test_x conftest$ac_exeext
13605 lt_aix_libpath_sed='
13606 /Import File Strings/,/^$/ {
13612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13613 # Check for a 64-bit object if we didn't find anything.
13614 if test -z "$aix_libpath"; then
13615 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13618 $as_echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13624 rm -rf conftest.dSYM
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext
13627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13629 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13631 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"
13633 if test "$host_cpu" = ia64; then
13634 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13635 allow_undefined_flag_CXX="-z nodefs"
13636 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"
13638 # Determine the default libpath from the value encoded in an
13639 # empty executable.
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13655 rm -f conftest.$ac_objext conftest$ac_exeext
13656 if { (ac_try="$ac_link"
13657 case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13662 $as_echo "$ac_try_echo") >&5
13663 (eval "$ac_link") 2>conftest.er1
13665 grep -v '^ *+' conftest.er1 >conftest.err
13667 cat conftest.err >&5
13668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } && {
13670 test -z "$ac_cxx_werror_flag" ||
13671 test ! -s conftest.err
13672 } && test -s conftest$ac_exeext && {
13673 test "$cross_compiling" = yes ||
13674 $as_test_x conftest$ac_exeext
13677 lt_aix_libpath_sed='
13678 /Import File Strings/,/^$/ {
13684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13685 # Check for a 64-bit object if we didn't find anything.
13686 if test -z "$aix_libpath"; then
13687 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13690 $as_echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13696 rm -rf conftest.dSYM
13697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13698 conftest$ac_exeext conftest.$ac_ext
13699 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13701 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13702 # Warning - without using the other run time loading flags,
13703 # -berok will link without error, but may produce a broken library.
13704 no_undefined_flag_CXX=' ${wl}-bernotok'
13705 allow_undefined_flag_CXX=' ${wl}-berok'
13706 # Exported symbols can be pulled into shared objects from archives
13707 whole_archive_flag_spec_CXX='$convenience'
13708 archive_cmds_need_lc_CXX=yes
13709 # This is similar to how AIX traditionally builds its shared
13711 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'
13717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13718 allow_undefined_flag_CXX=unsupported
13719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13720 # support --undefined. This deserves some investigation. FIXME
13721 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13728 case $cc_basename in
13730 # FIXME: insert proper C++ library support
13736 cygwin* | mingw* | pw32* | cegcc*)
13737 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13738 # as there is no search path for DLLs.
13739 hardcode_libdir_flag_spec_CXX='-L$libdir'
13740 allow_undefined_flag_CXX=unsupported
13741 always_export_symbols_CXX=no
13742 enable_shared_with_static_runtimes_CXX=yes
13744 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13745 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'
13746 # If the export-symbols file already is a .def file (1st line
13747 # is EXPORTS), use it as is; otherwise, prepend...
13748 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13749 cp $export_symbols $output_objdir/$soname.def;
13751 echo EXPORTS > $output_objdir/$soname.def;
13752 cat $export_symbols >> $output_objdir/$soname.def;
13754 $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'
13759 darwin* | rhapsody*)
13762 archive_cmds_need_lc_CXX=no
13763 hardcode_direct_CXX=no
13764 hardcode_automatic_CXX=yes
13765 hardcode_shlibpath_var_CXX=unsupported
13766 whole_archive_flag_spec_CXX=''
13767 link_all_deplibs_CXX=yes
13768 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13769 case $cc_basename in
13770 ifort*) _lt_dar_can_shared=yes ;;
13771 *) _lt_dar_can_shared=$GCC ;;
13773 if test "$_lt_dar_can_shared" = "yes"; then
13774 output_verbose_link_cmd=echo
13775 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}"
13776 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13777 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}"
13778 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}"
13779 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13780 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}"
13781 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}"
13791 case $cc_basename in
13793 # FIXME: insert proper C++ library support
13797 # Green Hills C++ Compiler
13798 # FIXME: insert proper C++ library support
13802 # FIXME: insert proper C++ library support
13809 # C++ shared libraries reported to be fairly broken before
13815 archive_cmds_need_lc_CXX=no
13818 freebsd* | dragonfly*)
13819 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13828 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13829 hardcode_libdir_separator_CXX=:
13830 export_dynamic_flag_spec_CXX='${wl}-E'
13831 hardcode_direct_CXX=yes
13832 hardcode_minus_L_CXX=yes # Not in the search PATH,
13833 # but as the default
13834 # location of the library.
13836 case $cc_basename in
13838 # FIXME: insert proper C++ library support
13842 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'
13843 # Commands to make compiler produce verbose output that lists
13844 # what "hidden" libraries, object files and flags are used when
13845 # linking a shared library.
13847 # There doesn't appear to be a way to prevent this compiler from
13848 # explicitly linking system object files so we need to strip them
13849 # from the output so that they don't get included in the library
13851 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'
13854 if test "$GXX" = yes; then
13855 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'
13857 # FIXME: insert proper C++ library support
13865 if test $with_gnu_ld = no; then
13866 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13867 hardcode_libdir_separator_CXX=:
13873 export_dynamic_flag_spec_CXX='${wl}-E'
13879 hardcode_direct_CXX=no
13880 hardcode_shlibpath_var_CXX=no
13883 hardcode_direct_CXX=yes
13884 hardcode_direct_absolute_CXX=yes
13885 hardcode_minus_L_CXX=yes # Not in the search PATH,
13886 # but as the default
13887 # location of the library.
13891 case $cc_basename in
13893 # FIXME: insert proper C++ library support
13899 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13902 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13908 # Commands to make compiler produce verbose output that lists
13909 # what "hidden" libraries, object files and flags are used when
13910 # linking a shared library.
13912 # There doesn't appear to be a way to prevent this compiler from
13913 # explicitly linking system object files so we need to strip them
13914 # from the output so that they don't get included in the library
13916 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'
13919 if test "$GXX" = yes; then
13920 if test $with_gnu_ld = no; then
13923 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13926 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13929 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'
13934 # FIXME: insert proper C++ library support
13942 hardcode_direct_CXX=no
13943 hardcode_shlibpath_var_CXX=no
13944 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13945 export_dynamic_flag_spec_CXX='${wl}-E'
13946 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13947 # Instead, shared libraries are loaded at an image base (0x10000000 by
13948 # default) and relocated if they conflict, which is a slow very memory
13949 # consuming and fragmenting process. To avoid this, we pick a random,
13950 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13951 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13952 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'
13953 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'
13956 case $cc_basename in
13959 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'
13961 # Archives containing C++ object files must be created using
13962 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13963 # necessary to make sure instantiated templates are included
13965 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13968 if test "$GXX" = yes; then
13969 if test "$with_gnu_ld" = no; then
13970 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'
13972 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'
13975 link_all_deplibs_CXX=yes
13978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13979 hardcode_libdir_separator_CXX=:
13980 inherit_rpath_CXX=yes
13983 linux* | k*bsd*-gnu)
13984 case $cc_basename in
13986 # Kuck and Associates, Inc. (KAI) C++ Compiler
13988 # KCC will only create a shared library if the output file
13989 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13990 # to its proper name (with version) after linking.
13991 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13992 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'
13993 # Commands to make compiler produce verbose output that lists
13994 # what "hidden" libraries, object files and flags are used when
13995 # linking a shared library.
13997 # There doesn't appear to be a way to prevent this compiler from
13998 # explicitly linking system object files so we need to strip them
13999 # from the output so that they don't get included in the library
14001 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'
14003 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14006 # Archives containing C++ object files must be created using
14007 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14008 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14013 # version 8.0 and above of icpc choke on multiply defined symbols
14014 # if we add $predep_objects and $postdep_objects, however 7.1 and
14015 # earlier do not add the objects themselves.
14016 case `$CC -V 2>&1` in
14018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019 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'
14021 *) # Version 8.0 or newer
14024 ia64*) tmp_idyn=' -i_dynamic';;
14026 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14027 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'
14030 archive_cmds_need_lc_CXX=no
14031 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14033 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14036 # Portland Group C++ compiler
14038 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14039 prelink_cmds_CXX='tpldir=Template.dir~
14041 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14042 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14043 old_archive_cmds_CXX='tpldir=Template.dir~
14045 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14046 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14048 archive_cmds_CXX='tpldir=Template.dir~
14050 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14051 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14052 archive_expsym_cmds_CXX='tpldir=Template.dir~
14054 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14055 $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'
14057 *) # Version 6 will use weak symbols
14058 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14059 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'
14063 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14065 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'
14069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 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'
14072 runpath_var=LD_RUN_PATH
14073 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14074 hardcode_libdir_separator_CXX=:
14076 # Commands to make compiler produce verbose output that lists
14077 # what "hidden" libraries, object files and flags are used when
14078 # linking a shared library.
14080 # There doesn't appear to be a way to prevent this compiler from
14081 # explicitly linking system object files so we need to strip them
14082 # from the output so that they don't get included in the library
14084 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'
14087 # IBM XL 8.0 on PPC, with GNU ld
14088 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14089 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14090 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14091 if test "x$supports_anon_versioning" = xyes; then
14092 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14094 echo "local: *; };" >> $output_objdir/$libname.ver~
14095 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14099 case `$CC -V 2>&1 | sed 5q` in
14102 no_undefined_flag_CXX=' -zdefs'
14103 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14104 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'
14105 hardcode_libdir_flag_spec_CXX='-R$libdir'
14106 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'
14107 compiler_needs_object_CXX=yes
14109 # Not sure whether something based on
14110 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14112 output_verbose_link_cmd='echo'
14114 # Archives containing C++ object files must be created using
14115 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14116 # necessary to make sure instantiated templates are included
14118 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14126 # FIXME: insert proper C++ library support
14131 # FIXME: insert proper C++ library support
14136 case $cc_basename in
14138 # FIXME: insert proper C++ library support
14142 # FIXME: insert proper C++ library support
14149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14150 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14152 hardcode_libdir_flag_spec_CXX='-R$libdir'
14153 hardcode_direct_CXX=yes
14154 hardcode_shlibpath_var_CXX=no
14156 # Workaround some broken pre-1.5 toolchains
14157 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14165 # C++ shared libraries are fairly broken
14170 if test -f /usr/libexec/ld.so; then
14171 hardcode_direct_CXX=yes
14172 hardcode_shlibpath_var_CXX=no
14173 hardcode_direct_absolute_CXX=yes
14174 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14175 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14177 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14178 export_dynamic_flag_spec_CXX='${wl}-E'
14179 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14181 output_verbose_link_cmd=echo
14187 osf3* | osf4* | osf5*)
14188 case $cc_basename in
14190 # Kuck and Associates, Inc. (KAI) C++ Compiler
14192 # KCC will only create a shared library if the output file
14193 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14194 # to its proper name (with version) after linking.
14195 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'
14197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14198 hardcode_libdir_separator_CXX=:
14200 # Archives containing C++ object files must be created using
14201 # the KAI C++ compiler.
14203 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14204 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14208 # Rational C++ 2.4.1
14209 # FIXME: insert proper C++ library support
14215 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14216 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'
14217 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14220 allow_undefined_flag_CXX=' -expect_unresolved \*'
14221 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'
14222 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14223 echo "-hidden">> $lib.exp~
14224 $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~
14226 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14230 hardcode_libdir_separator_CXX=:
14232 # Commands to make compiler produce verbose output that lists
14233 # what "hidden" libraries, object files and flags are used when
14234 # linking a shared library.
14236 # There doesn't appear to be a way to prevent this compiler from
14237 # explicitly linking system object files so we need to strip them
14238 # from the output so that they don't get included in the library
14240 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'
14243 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14244 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14247 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'
14250 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'
14254 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14255 hardcode_libdir_separator_CXX=:
14257 # Commands to make compiler produce verbose output that lists
14258 # what "hidden" libraries, object files and flags are used when
14259 # linking a shared library.
14260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14263 # FIXME: insert proper C++ library support
14271 # FIXME: insert proper C++ library support
14276 case $cc_basename in
14279 # FIXME: insert proper C++ library support
14284 # FIXME: insert proper C++ library support
14288 # FIXME: insert proper C++ library support
14295 case $cc_basename in
14297 # Sun C++ 4.2, 5.x and Centerline C++
14298 archive_cmds_need_lc_CXX=yes
14299 no_undefined_flag_CXX=' -zdefs'
14300 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14301 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14302 $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'
14304 hardcode_libdir_flag_spec_CXX='-R$libdir'
14305 hardcode_shlibpath_var_CXX=no
14307 solaris2.[0-5] | solaris2.[0-5].*) ;;
14309 # The compiler driver will combine and reorder linker options,
14310 # but understands `-z linker_flag'.
14311 # Supported since Solaris 2.6 (maybe 2.5.1?)
14312 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14315 link_all_deplibs_CXX=yes
14317 output_verbose_link_cmd='echo'
14319 # Archives containing C++ object files must be created using
14320 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14321 # necessary to make sure instantiated templates are included
14323 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14326 # Green Hills C++ Compiler
14327 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14329 # The C++ compiler must be used to create the archive.
14330 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14333 # GNU C++ compiler with Solaris linker
14334 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14335 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14336 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14337 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14338 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14339 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14341 # Commands to make compiler produce verbose output that lists
14342 # what "hidden" libraries, object files and flags are used when
14343 # linking a shared library.
14344 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14346 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14348 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14349 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14350 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14352 # Commands to make compiler produce verbose output that lists
14353 # what "hidden" libraries, object files and flags are used when
14354 # linking a shared library.
14355 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14358 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14360 solaris2.[0-5] | solaris2.[0-5].*) ;;
14362 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14371 no_undefined_flag_CXX='${wl}-z,text'
14372 archive_cmds_need_lc_CXX=no
14373 hardcode_shlibpath_var_CXX=no
14374 runpath_var='LD_RUN_PATH'
14376 case $cc_basename in
14378 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14379 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14382 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14383 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14388 sysv5* | sco3.2v5* | sco5v6*)
14389 # Note: We can NOT use -z defs as we might desire, because we do not
14390 # link with -lc, and that would cause any symbols used from libc to
14391 # always be unresolved, which means just about no library would
14392 # ever link correctly. If we're not using GNU ld we use -z text
14393 # though, which does catch some bad symbols but isn't as heavy-handed
14395 no_undefined_flag_CXX='${wl}-z,text'
14396 allow_undefined_flag_CXX='${wl}-z,nodefs'
14397 archive_cmds_need_lc_CXX=no
14398 hardcode_shlibpath_var_CXX=no
14399 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14400 hardcode_libdir_separator_CXX=':'
14401 link_all_deplibs_CXX=yes
14402 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14403 runpath_var='LD_RUN_PATH'
14405 case $cc_basename in
14407 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14408 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14411 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14412 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14418 case $cc_basename in
14420 # NonStop-UX NCC 3.20
14421 # FIXME: insert proper C++ library support
14425 # FIXME: insert proper C++ library support
14432 # FIXME: insert proper C++ library support
14437 # FIXME: insert proper C++ library support
14442 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14443 $as_echo "$ld_shlibs_CXX" >&6; }
14444 test "$ld_shlibs_CXX" = no && can_build_shared=no
14450 ## There is no encapsulation within the following macros, do not change
14451 ## the running order or otherwise move them around unless you know exactly
14452 ## what you are doing...
14453 # Dependencies to place before and after the object being linked:
14454 predep_objects_CXX=
14455 postdep_objects_CXX=
14458 compiler_lib_search_path_CXX=
14460 cat > conftest.$ac_ext <<_LT_EOF
14464 Foo (void) { a = 0; }
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471 (eval $ac_compile) 2>&5
14473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; then
14475 # Parse the compiler output and extract the necessary
14476 # objects, libraries and library flags.
14478 # Sentinel used to keep track of whether or not we are before
14479 # the conftest object file.
14480 pre_test_object_deps_done=no
14482 for p in `eval "$output_verbose_link_cmd"`; do
14486 # Some compilers place space between "-{L,R}" and the path.
14487 # Remove the space.
14488 if test $p = "-L" ||
14489 test $p = "-R"; then
14496 if test "$pre_test_object_deps_done" = no; then
14499 # Internal compiler library paths should come after those
14500 # provided the user. The postdeps already come after the
14501 # user supplied libs so there is no need to process them.
14502 if test -z "$compiler_lib_search_path_CXX"; then
14503 compiler_lib_search_path_CXX="${prev}${p}"
14505 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14508 # The "-l" case would never come before the object being
14509 # linked, so don't bother handling this case.
14512 if test -z "$postdeps_CXX"; then
14513 postdeps_CXX="${prev}${p}"
14515 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14521 # This assumes that the test object file only shows up
14522 # once in the compiler output.
14523 if test "$p" = "conftest.$objext"; then
14524 pre_test_object_deps_done=yes
14528 if test "$pre_test_object_deps_done" = no; then
14529 if test -z "$predep_objects_CXX"; then
14530 predep_objects_CXX="$p"
14532 predep_objects_CXX="$predep_objects_CXX $p"
14535 if test -z "$postdep_objects_CXX"; then
14536 postdep_objects_CXX="$p"
14538 postdep_objects_CXX="$postdep_objects_CXX $p"
14543 *) ;; # Ignore the rest.
14551 echo "libtool.m4: error: problem compiling CXX test program"
14554 $RM -f confest.$objext
14556 # PORTME: override above test on systems where it is broken
14559 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14560 # hack all around it, let's just trust "g++" to DTRT.
14561 predep_objects_CXX=
14562 postdep_objects_CXX=
14567 case `$CC -V 2>&1 | sed 5q` in
14571 # The more standards-conforming stlport4 library is
14572 # incompatible with the Cstd library. Avoid specifying
14573 # it if it's in CXXFLAGS. Ignore libCrun as
14574 # -library=stlport4 depends on it.
14575 case " $CXX $CXXFLAGS " in
14576 *" -library=stlport4 "*)
14577 solaris_use_stlport4=yes
14581 if test "$solaris_use_stlport4" != yes; then
14582 postdeps_CXX='-library=Cstd -library=Crun'
14589 case $cc_basename 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 # Adding this requires a known-good setup of shared libraries for
14602 # Sun compiler versions before 5.6, else PIC objects from an old
14603 # archive will be linked into the output, leading to subtle bugs.
14604 if test "$solaris_use_stlport4" != yes; then
14605 postdeps_CXX='-library=Cstd -library=Crun'
14613 case " $postdeps_CXX " in
14614 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14616 compiler_lib_search_dirs_CXX=
14617 if test -n "${compiler_lib_search_path_CXX}"; then
14618 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14651 lt_prog_compiler_wl_CXX=
14652 lt_prog_compiler_pic_CXX=
14653 lt_prog_compiler_static_CXX=
14655 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14658 # C++ specific cases for pic, static, wl, etc.
14659 if test "$GXX" = yes; then
14660 lt_prog_compiler_wl_CXX='-Wl,'
14661 lt_prog_compiler_static_CXX='-static'
14665 # All AIX code is PIC.
14666 if test "$host_cpu" = ia64; then
14667 # AIX 5 now supports IA64 processor
14668 lt_prog_compiler_static_CXX='-Bstatic'
14675 # see comment about AmigaOS4 .so support
14676 lt_prog_compiler_pic_CXX='-fPIC'
14679 # FIXME: we need at least 68020 code to build shared libraries, but
14680 # adding the `-m68020' flag to GCC prevents building anything better,
14682 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14687 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14688 # PIC is the default for these OSes.
14690 mingw* | cygwin* | os2* | pw32* | cegcc*)
14691 # This hack is so that the source file can tell whether it is being
14692 # built for inclusion in a dll (and should export symbols for example).
14693 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14694 # (--disable-auto-import) libraries
14695 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14697 darwin* | rhapsody*)
14698 # PIC is the default on this platform
14699 # Common symbols not allowed in MH_DYLIB files
14700 lt_prog_compiler_pic_CXX='-fno-common'
14703 # DJGPP does not support shared libraries at all
14704 lt_prog_compiler_pic_CXX=
14707 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14708 # Instead, we relocate shared libraries at runtime.
14711 if test -d /usr/nec; then
14712 lt_prog_compiler_pic_CXX=-Kconform_pic
14716 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14717 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14718 # sets the default TLS model and affects inlining.
14723 lt_prog_compiler_pic_CXX='-fPIC'
14728 # QNX uses GNU C++, but need to define -shared option too, otherwise
14729 # it will coredump.
14730 lt_prog_compiler_pic_CXX='-fPIC -shared'
14733 lt_prog_compiler_pic_CXX='-fPIC'
14739 # All AIX code is PIC.
14740 if test "$host_cpu" = ia64; then
14741 # AIX 5 now supports IA64 processor
14742 lt_prog_compiler_static_CXX='-Bstatic'
14744 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14748 case $cc_basename in
14750 # Green Hills C++ Compiler
14751 # _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"
14756 case $cc_basename in
14758 lt_prog_compiler_pic_CXX='-KPIC'
14761 # Green Hills C++ Compiler
14762 lt_prog_compiler_pic_CXX='-pic'
14768 freebsd* | dragonfly*)
14769 # FreeBSD uses GNU C++
14771 hpux9* | hpux10* | hpux11*)
14772 case $cc_basename in
14774 lt_prog_compiler_wl_CXX='-Wl,'
14775 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14776 if test "$host_cpu" != ia64; then
14777 lt_prog_compiler_pic_CXX='+Z'
14781 lt_prog_compiler_wl_CXX='-Wl,'
14782 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14788 lt_prog_compiler_pic_CXX='+Z'
14797 # This is c89, which is MS Visual C++ (no shared libs)
14798 # Anyone wants to do a port?
14800 irix5* | irix6* | nonstopux*)
14801 case $cc_basename in
14803 lt_prog_compiler_wl_CXX='-Wl,'
14804 lt_prog_compiler_static_CXX='-non_shared'
14805 # CC pic flag -KPIC is the default.
14811 linux* | k*bsd*-gnu)
14812 case $cc_basename in
14815 lt_prog_compiler_wl_CXX='--backend -Wl,'
14816 lt_prog_compiler_pic_CXX='-fPIC'
14819 # old Intel C++ for x86_64 which still supported -KPIC.
14820 lt_prog_compiler_wl_CXX='-Wl,'
14821 lt_prog_compiler_pic_CXX='-KPIC'
14822 lt_prog_compiler_static_CXX='-static'
14825 # Intel C++, used to be incompatible with GCC.
14826 # ICC 10 doesn't accept -KPIC any more.
14827 lt_prog_compiler_wl_CXX='-Wl,'
14828 lt_prog_compiler_pic_CXX='-fPIC'
14829 lt_prog_compiler_static_CXX='-static'
14832 # Portland Group C++ compiler
14833 lt_prog_compiler_wl_CXX='-Wl,'
14834 lt_prog_compiler_pic_CXX='-fpic'
14835 lt_prog_compiler_static_CXX='-Bstatic'
14839 # Make sure the PIC flag is empty. It appears that all Alpha
14840 # Linux and Compaq Tru64 Unix objects are PIC.
14841 lt_prog_compiler_pic_CXX=
14842 lt_prog_compiler_static_CXX='-non_shared'
14845 # IBM XL 8.0 on PPC
14846 lt_prog_compiler_wl_CXX='-Wl,'
14847 lt_prog_compiler_pic_CXX='-qpic'
14848 lt_prog_compiler_static_CXX='-qstaticlink'
14851 case `$CC -V 2>&1 | sed 5q` in
14854 lt_prog_compiler_pic_CXX='-KPIC'
14855 lt_prog_compiler_static_CXX='-Bstatic'
14856 lt_prog_compiler_wl_CXX='-Qoption ld '
14867 case $cc_basename in
14869 lt_prog_compiler_pic_CXX='-W c,exportall'
14878 # QNX uses GNU C++, but need to define -shared option too, otherwise
14879 # it will coredump.
14880 lt_prog_compiler_pic_CXX='-fPIC -shared'
14882 osf3* | osf4* | osf5*)
14883 case $cc_basename in
14885 lt_prog_compiler_wl_CXX='--backend -Wl,'
14888 # Rational C++ 2.4.1
14889 lt_prog_compiler_pic_CXX='-pic'
14892 # Digital/Compaq C++
14893 lt_prog_compiler_wl_CXX='-Wl,'
14894 # Make sure the PIC flag is empty. It appears that all Alpha
14895 # Linux and Compaq Tru64 Unix objects are PIC.
14896 lt_prog_compiler_pic_CXX=
14897 lt_prog_compiler_static_CXX='-non_shared'
14906 case $cc_basename in
14908 # Sun C++ 4.2, 5.x and Centerline C++
14909 lt_prog_compiler_pic_CXX='-KPIC'
14910 lt_prog_compiler_static_CXX='-Bstatic'
14911 lt_prog_compiler_wl_CXX='-Qoption ld '
14914 # Green Hills C++ Compiler
14915 lt_prog_compiler_pic_CXX='-PIC'
14922 case $cc_basename in
14925 lt_prog_compiler_pic_CXX='-pic'
14926 lt_prog_compiler_static_CXX='-Bstatic'
14930 lt_prog_compiler_pic_CXX='-pic'
14936 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14937 case $cc_basename in
14939 lt_prog_compiler_wl_CXX='-Wl,'
14940 lt_prog_compiler_pic_CXX='-KPIC'
14941 lt_prog_compiler_static_CXX='-Bstatic'
14946 case $cc_basename in
14948 # NonStop-UX NCC 3.20
14949 lt_prog_compiler_pic_CXX='-KPIC'
14958 lt_prog_compiler_can_build_shared_CXX=no
14964 # For platforms which do not support PIC, -DPIC is meaningless:
14966 lt_prog_compiler_pic_CXX=
14969 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14972 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14973 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14978 # Check to make sure the PIC flag actually works.
14980 if test -n "$lt_prog_compiler_pic_CXX"; then
14981 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14982 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14983 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14984 $as_echo_n "(cached) " >&6
14986 lt_cv_prog_compiler_pic_works_CXX=no
14987 ac_outfile=conftest.$ac_objext
14988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14989 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14990 # Insert the option either (1) after the last *FLAGS variable, or
14991 # (2) before a word containing "conftest.", or (3) at the end.
14992 # Note that $ac_compile itself does not contain backslashes and begins
14993 # with a dollar sign (not a hyphen), so the echo should work correctly.
14994 # The option is referenced via a variable to avoid confusing sed.
14995 lt_compile=`echo "$ac_compile" | $SED \
14996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14998 -e 's:$: $lt_compiler_flag:'`
14999 (eval echo "\"\$as_me:14999: $lt_compile\"" >&5)
15000 (eval "$lt_compile" 2>conftest.err)
15002 cat conftest.err >&5
15003 echo "$as_me:15003: \$? = $ac_status" >&5
15004 if (exit $ac_status) && test -s "$ac_outfile"; then
15005 # The compiler can only warn and ignore the option if not recognized
15006 # So say no if there are warnings other than the usual output.
15007 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15010 lt_cv_prog_compiler_pic_works_CXX=yes
15016 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15017 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15019 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15020 case $lt_prog_compiler_pic_CXX in
15022 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15025 lt_prog_compiler_pic_CXX=
15026 lt_prog_compiler_can_build_shared_CXX=no
15034 # Check to make sure the static flag actually works.
15036 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15037 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15038 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15039 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15040 $as_echo_n "(cached) " >&6
15042 lt_cv_prog_compiler_static_works_CXX=no
15043 save_LDFLAGS="$LDFLAGS"
15044 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15045 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15046 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15047 # The linker can only warn and ignore the option if not recognized
15048 # So say no if there are warnings
15049 if test -s conftest.err; then
15050 # Append any errors to the config.log.
15051 cat conftest.err 1>&5
15052 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15054 if diff conftest.exp conftest.er2 >/dev/null; then
15055 lt_cv_prog_compiler_static_works_CXX=yes
15058 lt_cv_prog_compiler_static_works_CXX=yes
15062 LDFLAGS="$save_LDFLAGS"
15065 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15066 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15068 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15071 lt_prog_compiler_static_CXX=
15077 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15078 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15079 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15080 $as_echo_n "(cached) " >&6
15082 lt_cv_prog_compiler_c_o_CXX=no
15083 $RM -r conftest 2>/dev/null
15087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15089 lt_compiler_flag="-o out/conftest2.$ac_objext"
15090 # Insert the option either (1) after the last *FLAGS variable, or
15091 # (2) before a word containing "conftest.", or (3) at the end.
15092 # Note that $ac_compile itself does not contain backslashes and begins
15093 # with a dollar sign (not a hyphen), so the echo should work correctly.
15094 lt_compile=`echo "$ac_compile" | $SED \
15095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15097 -e 's:$: $lt_compiler_flag:'`
15098 (eval echo "\"\$as_me:15098: $lt_compile\"" >&5)
15099 (eval "$lt_compile" 2>out/conftest.err)
15101 cat out/conftest.err >&5
15102 echo "$as_me:15102: \$? = $ac_status" >&5
15103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15105 # The compiler can only warn and ignore the option if not recognized
15106 # So say no if there are warnings
15107 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15110 lt_cv_prog_compiler_c_o_CXX=yes
15115 # SGI C++ compiler will create directory out/ii_files/ for
15116 # template instantiation
15117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15118 $RM out/* && rmdir out
15124 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15125 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15129 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15130 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15131 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15132 $as_echo_n "(cached) " >&6
15134 lt_cv_prog_compiler_c_o_CXX=no
15135 $RM -r conftest 2>/dev/null
15139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15141 lt_compiler_flag="-o out/conftest2.$ac_objext"
15142 # Insert the option either (1) after the last *FLAGS variable, or
15143 # (2) before a word containing "conftest.", or (3) at the end.
15144 # Note that $ac_compile itself does not contain backslashes and begins
15145 # with a dollar sign (not a hyphen), so the echo should work correctly.
15146 lt_compile=`echo "$ac_compile" | $SED \
15147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15149 -e 's:$: $lt_compiler_flag:'`
15150 (eval echo "\"\$as_me:15150: $lt_compile\"" >&5)
15151 (eval "$lt_compile" 2>out/conftest.err)
15153 cat out/conftest.err >&5
15154 echo "$as_me:15154: \$? = $ac_status" >&5
15155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15157 # The compiler can only warn and ignore the option if not recognized
15158 # So say no if there are warnings
15159 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15162 lt_cv_prog_compiler_c_o_CXX=yes
15167 # SGI C++ compiler will create directory out/ii_files/ for
15168 # template instantiation
15169 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15170 $RM out/* && rmdir out
15176 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15177 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15182 hard_links="nottested"
15183 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15184 # do not overwrite the value of need_locks provided by the user
15185 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15186 $as_echo_n "checking if we can lock with hard links... " >&6; }
15189 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15191 ln conftest.a conftest.b 2>&5 || hard_links=no
15192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15193 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15194 $as_echo "$hard_links" >&6; }
15195 if test "$hard_links" = no; then
15196 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15197 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15206 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15207 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15209 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15212 # If we're using GNU nm, then we don't want the "-C" option.
15213 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15214 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15215 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'
15217 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'
15221 export_symbols_cmds_CXX="$ltdll_cmds"
15223 cygwin* | mingw* | cegcc*)
15224 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'
15227 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15230 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15232 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15233 $as_echo "$ld_shlibs_CXX" >&6; }
15234 test "$ld_shlibs_CXX" = no && can_build_shared=no
15236 with_gnu_ld_CXX=$with_gnu_ld
15244 # Do we need to explicitly link libc?
15246 case "x$archive_cmds_need_lc_CXX" in
15248 # Assume -lc should be added
15249 archive_cmds_need_lc_CXX=yes
15251 if test "$enable_shared" = yes && test "$GCC" = yes; then
15252 case $archive_cmds_CXX in
15254 # FIXME: we may have to deal with multi-command sequences.
15257 # Test whether the compiler implicitly links with -lc since on some
15258 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15259 # to ld, don't add -lc before -lgcc.
15260 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15261 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15266 (eval $ac_compile) 2>&5
15268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } 2>conftest.err; then
15272 libobjs=conftest.$ac_objext
15274 wl=$lt_prog_compiler_wl_CXX
15275 pic_flag=$lt_prog_compiler_pic_CXX
15281 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15282 allow_undefined_flag_CXX=
15283 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15284 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }
15289 archive_cmds_need_lc_CXX=no
15291 archive_cmds_need_lc_CXX=yes
15293 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15295 cat conftest.err 1>&5
15298 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15299 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15369 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15370 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15372 library_names_spec=
15373 libname_spec='lib$name'
15377 postuninstall_cmds=
15381 shlibpath_overrides_runpath=unknown
15383 dynamic_linker="$host_os ld.so"
15384 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15385 need_lib_prefix=unknown
15386 hardcode_into_libs=no
15388 # when you set need_version to no, make sure it does not cause -set_version
15389 # flags to be left without arguments
15390 need_version=unknown
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15396 shlibpath_var=LIBPATH
15398 # AIX 3 has no versioning support, so we append a major version to the name.
15399 soname_spec='${libname}${release}${shared_ext}$major'
15406 hardcode_into_libs=yes
15407 if test "$host_cpu" = ia64; then
15408 # AIX 5 supports IA64
15409 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15410 shlibpath_var=LD_LIBRARY_PATH
15412 # With GCC up to 2.95.x, collect2 would create an import file
15413 # for dependence libraries. The import file would start with
15414 # the line `#! .'. This would cause the generated library to
15415 # depend on `.', always an invalid library. This was fixed in
15416 # development snapshots of GCC prior to 3.0.
15418 aix4 | aix4.[01] | aix4.[01].*)
15419 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15421 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15424 can_build_shared=no
15428 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15429 # soname into executable. Probably we can add versioning support to
15430 # collect2, so additional links can be useful in future.
15431 if test "$aix_use_runtimelinking" = yes; then
15432 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15433 # instead of lib<name>.a to let people know that these are not
15434 # typical AIX shared libraries.
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437 # We preserve .a as extension for shared libraries through AIX4.2
15438 # and later when we are not doing run time linking.
15439 library_names_spec='${libname}${release}.a $libname.a'
15440 soname_spec='${libname}${release}${shared_ext}$major'
15442 shlibpath_var=LIBPATH
15449 # Since July 2007 AmigaOS4 officially supports .so libraries.
15450 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 library_names_spec='$libname.ixlibrary $libname.a'
15455 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15456 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'
15462 library_names_spec='${libname}${shared_ext}'
15463 dynamic_linker="$host_os ld.so"
15464 shlibpath_var=LIBRARY_PATH
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15476 # the default ld.so.conf also contains /usr/contrib/lib and
15477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15478 # libtool to hard-code these into programs
15481 cygwin* | mingw* | pw32* | cegcc*)
15482 version_type=windows
15487 case $GCC,$host_os in
15488 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15489 library_names_spec='$libname.dll.a'
15490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15491 postinstall_cmds='base_file=`basename \${file}`~
15492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15493 dldir=$destdir/`dirname \$dlpath`~
15494 test -d \$dldir || mkdir -p \$dldir~
15495 $install_prog $dir/$dlname \$dldir/$dlname~
15496 chmod a+x \$dldir/$dlname~
15497 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15498 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15500 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15501 dlpath=$dir/\$dldll~
15503 shlibpath_overrides_runpath=yes
15507 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15508 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15509 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15512 # MinGW DLLs use traditional 'lib' prefix
15513 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15514 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15515 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15516 # It is most probably a Windows format PATH printed by
15517 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15518 # path with ; separators, and with drive letters. We can handle the
15519 # drive letters (cygwin fileutils understands them), so leave them,
15520 # especially as we might pass files found there to a mingw objdump,
15521 # which wouldn't understand a cygwinified path. Ahh.
15522 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15524 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15528 # pw32 DLLs use 'pw' prefix rather than 'lib'
15529 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15535 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15538 dynamic_linker='Win32 ld.exe'
15539 # FIXME: first we should search . and the directory the executable is in
15543 darwin* | rhapsody*)
15544 dynamic_linker="$host_os dyld"
15545 version_type=darwin
15548 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15549 soname_spec='${libname}${release}${major}$shared_ext'
15550 shlibpath_overrides_runpath=yes
15551 shlibpath_var=DYLD_LIBRARY_PATH
15552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 shlibpath_var=LD_LIBRARY_PATH
15570 freebsd* | dragonfly*)
15571 # DragonFly does not have aout. When/if they implement a new
15572 # versioning mechanism, adjust this.
15573 if test -x /usr/bin/objformat; then
15574 objformat=`/usr/bin/objformat`
15577 freebsd[123]*) objformat=aout ;;
15578 *) objformat=elf ;;
15581 version_type=freebsd-$objformat
15582 case $version_type in
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15593 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15598 freebsd3.[01]* | freebsdelf3.[01]*)
15599 shlibpath_overrides_runpath=yes
15600 hardcode_into_libs=yes
15602 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15603 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15604 shlibpath_overrides_runpath=no
15605 hardcode_into_libs=yes
15607 *) # from 4.6 on, and DragonFly
15608 shlibpath_overrides_runpath=yes
15609 hardcode_into_libs=yes
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 hardcode_into_libs=yes
15624 hpux9* | hpux10* | hpux11*)
15625 # Give a soname corresponding to the major version so that dld.sl refuses to
15626 # link against other versions.
15633 hardcode_into_libs=yes
15634 dynamic_linker="$host_os dld.so"
15635 shlibpath_var=LD_LIBRARY_PATH
15636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 if test "X$HPUX_IA64_MODE" = X32; then
15640 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15642 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15648 hardcode_into_libs=yes
15649 dynamic_linker="$host_os dld.sl"
15650 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15654 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15659 dynamic_linker="$host_os dld.sl"
15660 shlibpath_var=SHLIB_PATH
15661 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15666 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15667 postinstall_cmds='chmod 555 $lib'
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15675 soname_spec='${libname}${release}${shared_ext}$major'
15676 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15677 shlibpath_var=LD_LIBRARY_PATH
15678 shlibpath_overrides_runpath=no
15679 hardcode_into_libs=yes
15682 irix5* | irix6* | nonstopux*)
15684 nonstopux*) version_type=nonstopux ;;
15686 if test "$lt_cv_prog_gnu_ld" = yes; then
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15697 irix5* | nonstopux*)
15698 libsuff= shlibsuff=
15701 case $LD in # libtool.m4 will add one of these switches to LD
15702 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15703 libsuff= shlibsuff= libmagic=32-bit;;
15704 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15705 libsuff=32 shlibsuff=N32 libmagic=N32;;
15706 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15707 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15708 *) libsuff= shlibsuff= libmagic=never-match;;
15712 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15713 shlibpath_overrides_runpath=no
15714 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15715 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15716 hardcode_into_libs=yes
15719 # No shared lib support for Linux oldld, aout, or coff.
15720 linux*oldld* | linux*aout* | linux*coff*)
15724 # This must be Linux ELF.
15725 linux* | k*bsd*-gnu)
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730 soname_spec='${libname}${release}${shared_ext}$major'
15731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15732 shlibpath_var=LD_LIBRARY_PATH
15733 shlibpath_overrides_runpath=no
15734 # Some binutils ld are patched to set DT_RUNPATH
15735 save_LDFLAGS=$LDFLAGS
15736 save_libdir=$libdir
15737 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15738 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (ac_try="$ac_link"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15761 $as_echo "$ac_try_echo") >&5
15762 (eval "$ac_link") 2>conftest.er1
15764 grep -v '^ *+' conftest.er1 >conftest.err
15766 cat conftest.err >&5
15767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } && {
15769 test -z "$ac_cxx_werror_flag" ||
15770 test ! -s conftest.err
15771 } && test -s conftest$ac_exeext && {
15772 test "$cross_compiling" = yes ||
15773 $as_test_x conftest$ac_exeext
15775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15776 shlibpath_overrides_runpath=yes
15780 $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15786 rm -rf conftest.dSYM
15787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15788 conftest$ac_exeext conftest.$ac_ext
15789 LDFLAGS=$save_LDFLAGS
15790 libdir=$save_libdir
15792 # This implies no fast_install, which is unacceptable.
15793 # Some rework will be needed to allow for fast_install
15794 # before this can be enabled.
15795 hardcode_into_libs=yes
15797 # Append ld.so.conf contents to the search path
15798 if test -f /etc/ld.so.conf; then
15799 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' ' '`
15800 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15803 # We used to test for /lib/ld.so.1 and disable shared libraries on
15804 # powerpc, because MkLinux only supported shared libraries with the
15805 # GNU dynamic linker. Since this was broken with cross compilers,
15806 # most powerpc-linux boxes support dynamic linking these days and
15807 # people can always --disable-shared, the test was removed, and we
15808 # assume the GNU/Linux dynamic linker is in use.
15809 dynamic_linker='GNU/Linux ld.so'
15816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15819 dynamic_linker='NetBSD (a.out) ld.so'
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 dynamic_linker='NetBSD ld.elf_so'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 shlibpath_overrides_runpath=yes
15827 hardcode_into_libs=yes
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833 shlibpath_var=LD_LIBRARY_PATH
15834 shlibpath_overrides_runpath=yes
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 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=no
15845 hardcode_into_libs=yes
15846 dynamic_linker='ldqnx.so'
15851 sys_lib_dlsearch_path_spec="/usr/lib"
15853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15856 *) need_version=no ;;
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15860 shlibpath_var=LD_LIBRARY_PATH
15861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15863 openbsd2.[89] | openbsd2.[89].*)
15864 shlibpath_overrides_runpath=no
15867 shlibpath_overrides_runpath=yes
15871 shlibpath_overrides_runpath=yes
15876 libname_spec='$name'
15879 library_names_spec='$libname${shared_ext} $libname.a'
15880 dynamic_linker='OS/2 ld.exe'
15881 shlibpath_var=LIBPATH
15884 osf3* | osf4* | osf5*)
15888 soname_spec='${libname}${release}${shared_ext}$major'
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 shlibpath_var=LD_LIBRARY_PATH
15891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15905 shlibpath_var=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath=yes
15907 hardcode_into_libs=yes
15908 # ldd complains unless libraries are executable
15909 postinstall_cmds='chmod +x $lib'
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 shlibpath_overrides_runpath=yes
15918 if test "$with_gnu_ld" = yes; then
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 shlibpath_var=LD_LIBRARY_PATH
15929 case $host_vendor in
15931 shlibpath_overrides_runpath=no
15933 runpath_var=LD_RUN_PATH
15941 shlibpath_overrides_runpath=no
15942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15948 if test -d /usr/nec ;then
15950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15951 soname_spec='$libname${shared_ext}.$major'
15952 shlibpath_var=LD_LIBRARY_PATH
15956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15957 version_type=freebsd-elf
15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 shlibpath_var=LD_LIBRARY_PATH
15963 shlibpath_overrides_runpath=yes
15964 hardcode_into_libs=yes
15965 if test "$with_gnu_ld" = yes; then
15966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15975 sys_lib_dlsearch_path_spec='/usr/lib'
15979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 shlibpath_overrides_runpath=no
15986 hardcode_into_libs=yes
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 shlibpath_var=LD_LIBRARY_PATH
16000 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16001 $as_echo "$dynamic_linker" >&6; }
16002 test "$dynamic_linker" = no && can_build_shared=no
16004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16005 if test "$GCC" = yes; then
16006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16009 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16012 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16051 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16052 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16053 hardcode_action_CXX=
16054 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16055 test -n "$runpath_var_CXX" ||
16056 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16058 # We can hardcode non-existent directories.
16059 if test "$hardcode_direct_CXX" != no &&
16060 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16061 # have to relink, otherwise we might link with an installed library
16062 # when we should be linking with a yet-to-be-installed one
16063 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16064 test "$hardcode_minus_L_CXX" != no; then
16065 # Linking always hardcodes the temporary library directory.
16066 hardcode_action_CXX=relink
16068 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16069 hardcode_action_CXX=immediate
16072 # We cannot hardcode anything, or else we can only hardcode existing
16074 hardcode_action_CXX=unsupported
16076 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16077 $as_echo "$hardcode_action_CXX" >&6; }
16079 if test "$hardcode_action_CXX" = relink ||
16080 test "$inherit_rpath_CXX" = yes; then
16081 # Fast installation is not supported
16082 enable_fast_install=no
16083 elif test "$shlibpath_overrides_runpath" = yes ||
16084 test "$enable_shared" = no; then
16085 # Fast installation is not necessary
16086 enable_fast_install=needless
16095 fi # test -n "$compiler"
16101 with_gnu_ld=$lt_save_with_gnu_ld
16102 lt_cv_path_LDCXX=$lt_cv_path_LD
16103 lt_cv_path_LD=$lt_save_path_LD
16104 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16105 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16106 fi # test "$_lt_caught_CXX_error" != yes
16109 ac_cpp='$CPP $CPPFLAGS'
16110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16126 ac_config_commands="$ac_config_commands libtool"
16131 # Only expand once:
16136 if test x$use_libtool != xno; then
16137 DEFAULT_OBJECT_TYPE=".lo"
16138 DEFAULT_ARCHIVE_TYPE=".la"
16139 DEFAULT_SHARED_OBJECT_TYPE=".la"
16140 LIBTOOL="\$(LIBTOOL)"
16141 LIBTOOL_INSTALL_TARGET="libtool-install"
16142 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16143 LIBTOOL_CLEAN_TARGET="libtool-clean"
16144 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16145 FD_PLUGIN_DIR="src/plugins/fd"
16148 DEFAULT_OBJECT_TYPE=".o"
16149 DEFAULT_ARCHIVE_TYPE=".a"
16150 DEFAULT_SHARED_OBJECT_TYPE=".so"
16151 LIBTOOL="# \$(LIBTOOL)"
16152 LIBTOOL_INSTALL_TARGET=""
16153 LIBTOOL_UNINSTALL_TARGET=""
16154 LIBTOOL_CLEAN_TARGET=""
16155 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16170 # Check whether --enable-includes was given.
16171 if test "${enable_includes+set}" = set; then
16172 enableval=$enable_includes;
16173 if test x$enableval = xyes; then
16174 install_includes=yes
16182 if test x$use_libtool != xno -a x$install_includes = xyes; then
16183 INCLUDE_INSTALL_TARGET="install-includes"
16184 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16186 INCLUDE_INSTALL_TARGET=""
16187 INCLUDE_UNINSTALL_TARGET=""
16193 { $as_echo "$as_me:$LINENO: checking host system type" >&5
16194 $as_echo_n "checking host system type... " >&6; }
16195 if test "${ac_cv_host+set}" = set; then
16196 $as_echo_n "(cached) " >&6
16198 if test "x$host_alias" = x; then
16199 ac_cv_host=$ac_cv_build
16201 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16202 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16203 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16204 { (exit 1); exit 1; }; }
16208 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16209 $as_echo "$ac_cv_host" >&6; }
16210 case $ac_cv_host in
16212 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16213 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
16214 { (exit 1); exit 1; }; };;
16217 ac_save_IFS=$IFS; IFS='-'
16223 # Remember, the first character of IFS is used to create $*,
16224 # except with old shells:
16227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16231 *cygwin* ) CYGWIN=yes;;
16235 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16241 HAVE_SUN_OS_FALSE='#'
16243 HAVE_SUN_OS_TRUE='#'
16246 cat >>confdefs.h <<\_ACEOF
16247 #define HAVE_SUN_OS 1
16255 HAVE_SUN_OS_FALSE='#'
16257 HAVE_SUN_OS_TRUE='#'
16262 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16268 HAVE_OSF1_OS_FALSE='#'
16270 HAVE_OSF1_OS_TRUE='#'
16271 HAVE_OSF1_OS_FALSE=
16273 cat >>confdefs.h <<\_ACEOF
16274 #define HAVE_OSF1_OS 1
16282 HAVE_OSF1_OS_FALSE='#'
16284 HAVE_OSF1_OS_TRUE='#'
16285 HAVE_OSF1_OS_FALSE=
16289 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16295 HAVE_AIX_OS_FALSE='#'
16297 HAVE_AIX_OS_TRUE='#'
16300 cat >>confdefs.h <<\_ACEOF
16301 #define HAVE_AIX_OS 1
16309 HAVE_AIX_OS_FALSE='#'
16311 HAVE_AIX_OS_TRUE='#'
16316 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16322 HAVE_HPUX_OS_FALSE='#'
16324 HAVE_HPUX_OS_TRUE='#'
16325 HAVE_HPUX_OS_FALSE=
16327 cat >>confdefs.h <<\_ACEOF
16328 #define HAVE_HPUX_OS 1
16336 HAVE_HPUX_OS_FALSE='#'
16338 HAVE_HPUX_OS_TRUE='#'
16339 HAVE_HPUX_OS_FALSE=
16343 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16348 HAVE_LINUX_OS_TRUE=
16349 HAVE_LINUX_OS_FALSE='#'
16351 HAVE_LINUX_OS_TRUE='#'
16352 HAVE_LINUX_OS_FALSE=
16354 cat >>confdefs.h <<\_ACEOF
16355 #define HAVE_LINUX_OS 1
16362 HAVE_LINUX_OS_TRUE=
16363 HAVE_LINUX_OS_FALSE='#'
16365 HAVE_LINUX_OS_TRUE='#'
16366 HAVE_LINUX_OS_FALSE=
16370 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16375 HAVE_FREEBSD_OS_TRUE=
16376 HAVE_FREEBSD_OS_FALSE='#'
16378 HAVE_FREEBSD_OS_TRUE='#'
16379 HAVE_FREEBSD_OS_FALSE=
16381 cat >>confdefs.h <<\_ACEOF
16382 #define HAVE_FREEBSD_OS 1
16389 HAVE_FREEBSD_OS_TRUE=
16390 HAVE_FREEBSD_OS_FALSE='#'
16392 HAVE_FREEBSD_OS_TRUE='#'
16393 HAVE_FREEBSD_OS_FALSE=
16397 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16402 HAVE_NETBSD_OS_TRUE=
16403 HAVE_NETBSD_OS_FALSE='#'
16405 HAVE_NETBSD_OS_TRUE='#'
16406 HAVE_NETBSD_OS_FALSE=
16408 cat >>confdefs.h <<\_ACEOF
16409 #define HAVE_NETBSD_OS 1
16416 HAVE_NETBSD_OS_TRUE=
16417 HAVE_NETBSD_OS_FALSE='#'
16419 HAVE_NETBSD_OS_TRUE='#'
16420 HAVE_NETBSD_OS_FALSE=
16424 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16429 HAVE_OPENBSD_OS_TRUE=
16430 HAVE_OPENBSD_OS_FALSE='#'
16432 HAVE_OPENBSD_OS_TRUE='#'
16433 HAVE_OPENBSD_OS_FALSE=
16435 cat >>confdefs.h <<\_ACEOF
16436 #define HAVE_OPENBSD_OS 1
16443 HAVE_OPENBSD_OS_TRUE=
16444 HAVE_OPENBSD_OS_FALSE='#'
16446 HAVE_OPENBSD_OS_TRUE='#'
16447 HAVE_OPENBSD_OS_FALSE=
16451 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16457 HAVE_BSDI_OS_FALSE='#'
16459 HAVE_BSDI_OS_TRUE='#'
16460 HAVE_BSDI_OS_FALSE=
16462 cat >>confdefs.h <<\_ACEOF
16463 #define HAVE_BSDI_OS 1
16471 HAVE_BSDI_OS_FALSE='#'
16473 HAVE_BSDI_OS_TRUE='#'
16474 HAVE_BSDI_OS_FALSE=
16478 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16484 HAVE_SGI_OS_FALSE='#'
16486 HAVE_SGI_OS_TRUE='#'
16489 cat >>confdefs.h <<\_ACEOF
16490 #define HAVE_SGI_OS 1
16498 HAVE_SGI_OS_FALSE='#'
16500 HAVE_SGI_OS_TRUE='#'
16505 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16511 HAVE_IRIX_OS_FALSE='#'
16513 HAVE_IRIX_OS_TRUE='#'
16514 HAVE_IRIX_OS_FALSE=
16516 cat >>confdefs.h <<\_ACEOF
16517 #define HAVE_IRIX_OS 1
16525 HAVE_IRIX_OS_FALSE='#'
16527 HAVE_IRIX_OS_TRUE='#'
16528 HAVE_IRIX_OS_FALSE=
16532 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16537 HAVE_DARWIN_OS_TRUE=
16538 HAVE_DARWIN_OS_FALSE='#'
16540 HAVE_DARWIN_OS_TRUE='#'
16541 HAVE_DARWIN_OS_FALSE=
16543 cat >>confdefs.h <<\_ACEOF
16544 #define HAVE_DARWIN_OS 1
16551 HAVE_DARWIN_OS_TRUE=
16552 HAVE_DARWIN_OS_FALSE='#'
16554 HAVE_DARWIN_OS_TRUE='#'
16555 HAVE_DARWIN_OS_FALSE=
16560 { $as_echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16561 $as_echo_n "checking for Operating System Distribution... " >&6; }
16562 if test "x$DISTNAME" != "x"
16564 echo "distname set to $DISTNAME"
16565 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16568 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16571 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16574 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16577 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16580 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16583 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16586 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16589 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16592 elif test -f /etc/SuSE-release
16595 elif test -d /etc/SuSEconfig
16598 elif test -f /etc/mandrake-release
16601 elif test -f /etc/whitebox-release
16604 elif test -f /etc/redhat-release
16607 elif test -f /etc/gentoo-release
16610 elif test -f /etc/debian_version
16613 elif test -f /etc/slackware-version
16616 elif test x$host_vendor = xapple
16619 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16622 elif test -f /etc/engarde-version
16625 elif test "$CYGWIN" = yes
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_CYGWIN 1
16635 { $as_echo "$as_me:$LINENO: result: done" >&5
16636 $as_echo "done" >&6; }
16639 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16640 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16642 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16643 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16644 $as_echo_n "(cached) " >&6
16646 cat >conftest.make <<\_ACEOF
16649 @echo '@@@%%%=$(MAKE)=@@@%%%'
16651 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16652 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16653 *@@@%%%=?*=@@@%%%*)
16654 eval ac_cv_prog_make_${ac_make}_set=yes;;
16656 eval ac_cv_prog_make_${ac_make}_set=no;;
16658 rm -f conftest.make
16660 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16661 { $as_echo "$as_me:$LINENO: result: yes" >&5
16662 $as_echo "yes" >&6; }
16665 { $as_echo "$as_me:$LINENO: result: no" >&5
16666 $as_echo "no" >&6; }
16667 SET_MAKE="MAKE=${MAKE-make}"
16673 if test -n "$ac_aux_dir"; then
16674 case "$ac_aux_dir" in
16675 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16676 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16679 if test -z "$MKINSTALLDIRS"; then
16680 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16685 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16686 $as_echo_n "checking whether NLS is requested... " >&6; }
16687 # Check whether --enable-nls was given.
16688 if test "${enable_nls+set}" = set; then
16689 enableval=$enable_nls; USE_NLS=$enableval
16694 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16695 $as_echo "$USE_NLS" >&6; }
16702 # Prepare PATH_SEPARATOR.
16703 # The user is always right.
16704 if test "${PATH_SEPARATOR+set}" != set; then
16705 echo "#! /bin/sh" >conf$$.sh
16706 echo "exit 0" >>conf$$.sh
16708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16716 # Find out how to test for executable files. Don't use a zero-byte file,
16717 # as systems may use methods other than mode bits to determine executability.
16718 cat >conf$$.file <<_ASEOF
16722 chmod +x conf$$.file
16723 if test -x conf$$.file >/dev/null 2>&1; then
16724 ac_executable_p="test -x"
16726 ac_executable_p="test -f"
16730 # Extract the first word of "msgfmt", so it can be a program name with args.
16731 set dummy msgfmt; ac_word=$2
16732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16733 $as_echo_n "checking for $ac_word... " >&6; }
16734 if test "${ac_cv_path_MSGFMT+set}" = set; then
16735 $as_echo_n "(cached) " >&6
16739 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16742 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16743 for ac_dir in $PATH; do
16745 test -z "$ac_dir" && ac_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16748 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16749 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16750 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16751 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16758 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16762 MSGFMT="$ac_cv_path_MSGFMT"
16763 if test "$MSGFMT" != ":"; then
16764 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16765 $as_echo "$MSGFMT" >&6; }
16767 { $as_echo "$as_me:$LINENO: result: no" >&5
16768 $as_echo "no" >&6; }
16771 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16772 set dummy gmsgfmt; ac_word=$2
16773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16774 $as_echo_n "checking for $ac_word... " >&6; }
16775 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16776 $as_echo_n "(cached) " >&6
16780 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16784 for as_dir in $PATH
16787 test -z "$as_dir" && as_dir=.
16788 for ac_exec_ext in '' $ac_executable_extensions; do
16789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16790 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16798 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16802 GMSGFMT=$ac_cv_path_GMSGFMT
16803 if test -n "$GMSGFMT"; then
16804 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16805 $as_echo "$GMSGFMT" >&6; }
16807 { $as_echo "$as_me:$LINENO: result: no" >&5
16808 $as_echo "no" >&6; }
16814 # Prepare PATH_SEPARATOR.
16815 # The user is always right.
16816 if test "${PATH_SEPARATOR+set}" != set; then
16817 echo "#! /bin/sh" >conf$$.sh
16818 echo "exit 0" >>conf$$.sh
16820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16828 # Find out how to test for executable files. Don't use a zero-byte file,
16829 # as systems may use methods other than mode bits to determine executability.
16830 cat >conf$$.file <<_ASEOF
16834 chmod +x conf$$.file
16835 if test -x conf$$.file >/dev/null 2>&1; then
16836 ac_executable_p="test -x"
16838 ac_executable_p="test -f"
16842 # Extract the first word of "xgettext", so it can be a program name with args.
16843 set dummy xgettext; ac_word=$2
16844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16845 $as_echo_n "checking for $ac_word... " >&6; }
16846 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16847 $as_echo_n "(cached) " >&6
16849 case "$XGETTEXT" in
16851 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16854 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16855 for ac_dir in $PATH; do
16857 test -z "$ac_dir" && ac_dir=.
16858 for ac_exec_ext in '' $ac_executable_extensions; do
16859 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16860 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16861 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16862 (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
16863 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16870 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16874 XGETTEXT="$ac_cv_path_XGETTEXT"
16875 if test "$XGETTEXT" != ":"; then
16876 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16877 $as_echo "$XGETTEXT" >&6; }
16879 { $as_echo "$as_me:$LINENO: result: no" >&5
16880 $as_echo "no" >&6; }
16886 # Prepare PATH_SEPARATOR.
16887 # The user is always right.
16888 if test "${PATH_SEPARATOR+set}" != set; then
16889 echo "#! /bin/sh" >conf$$.sh
16890 echo "exit 0" >>conf$$.sh
16892 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16900 # Find out how to test for executable files. Don't use a zero-byte file,
16901 # as systems may use methods other than mode bits to determine executability.
16902 cat >conf$$.file <<_ASEOF
16906 chmod +x conf$$.file
16907 if test -x conf$$.file >/dev/null 2>&1; then
16908 ac_executable_p="test -x"
16910 ac_executable_p="test -f"
16914 # Extract the first word of "msgmerge", so it can be a program name with args.
16915 set dummy msgmerge; ac_word=$2
16916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16917 $as_echo_n "checking for $ac_word... " >&6; }
16918 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16919 $as_echo_n "(cached) " >&6
16921 case "$MSGMERGE" in
16923 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16926 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16927 for ac_dir in $PATH; do
16929 test -z "$ac_dir" && ac_dir=.
16930 for ac_exec_ext in '' $ac_executable_extensions; do
16931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16932 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16933 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16934 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16941 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16945 MSGMERGE="$ac_cv_path_MSGMERGE"
16946 if test "$MSGMERGE" != ":"; then
16947 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16948 $as_echo "$MSGMERGE" >&6; }
16950 { $as_echo "$as_me:$LINENO: result: no" >&5
16951 $as_echo "no" >&6; }
16955 if test "$GMSGFMT" != ":"; then
16956 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16957 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16960 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16961 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16962 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16967 if test "$XGETTEXT" != ":"; then
16968 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16969 (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
16972 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16973 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16979 ac_config_commands="$ac_config_commands default-1"
16983 if test "X$prefix" = "XNONE"; then
16984 acl_final_prefix="$ac_default_prefix"
16986 acl_final_prefix="$prefix"
16988 if test "X$exec_prefix" = "XNONE"; then
16989 acl_final_exec_prefix='${prefix}'
16991 acl_final_exec_prefix="$exec_prefix"
16993 acl_save_prefix="$prefix"
16994 prefix="$acl_final_prefix"
16995 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16996 prefix="$acl_save_prefix"
16999 # Check whether --with-gnu-ld was given.
17000 if test "${with_gnu_ld+set}" = set; then
17001 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17006 # Prepare PATH_SEPARATOR.
17007 # The user is always right.
17008 if test "${PATH_SEPARATOR+set}" != set; then
17009 echo "#! /bin/sh" >conf$$.sh
17010 echo "exit 0" >>conf$$.sh
17012 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17020 if test "$GCC" = yes; then
17021 # Check if gcc -print-prog-name=ld gives a path.
17022 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
17023 $as_echo_n "checking for ld used by GCC... " >&6; }
17026 # gcc leaves a trailing carriage return which upsets mingw
17027 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17029 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17032 # Accept absolute paths.
17033 [\\/]* | [A-Za-z]:[\\/]*)
17034 re_direlt='/[^/][^/]*/\.\./'
17035 # Canonicalize the path of ld
17036 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17037 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17038 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17040 test -z "$LD" && LD="$ac_prog"
17043 # If it fails, then pretend we aren't using GCC.
17047 # If it is relative, then search for the first ld in PATH.
17048 with_gnu_ld=unknown
17051 elif test "$with_gnu_ld" = yes; then
17052 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
17053 $as_echo_n "checking for GNU ld... " >&6; }
17055 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17056 $as_echo_n "checking for non-GNU ld... " >&6; }
17058 if test "${acl_cv_path_LD+set}" = set; then
17059 $as_echo_n "(cached) " >&6
17061 if test -z "$LD"; then
17062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17063 for ac_dir in $PATH; do
17064 test -z "$ac_dir" && ac_dir=.
17065 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17066 acl_cv_path_LD="$ac_dir/$ac_prog"
17067 # Check to see if the program is GNU ld. I'd rather use --version,
17068 # but apparently some GNU ld's only accept -v.
17069 # Break only if it was the GNU/non-GNU ld that we prefer.
17070 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17071 *GNU* | *'with BFD'*)
17072 test "$with_gnu_ld" != no && break ;;
17074 test "$with_gnu_ld" != yes && break ;;
17080 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17084 LD="$acl_cv_path_LD"
17085 if test -n "$LD"; then
17086 { $as_echo "$as_me:$LINENO: result: $LD" >&5
17087 $as_echo "$LD" >&6; }
17089 { $as_echo "$as_me:$LINENO: result: no" >&5
17090 $as_echo "no" >&6; }
17092 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17093 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17094 { (exit 1); exit 1; }; }
17095 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17096 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17097 if test "${acl_cv_prog_gnu_ld+set}" = set; then
17098 $as_echo_n "(cached) " >&6
17100 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17101 case `$LD -v 2>&1 </dev/null` in
17102 *GNU* | *'with BFD'*)
17103 acl_cv_prog_gnu_ld=yes ;;
17105 acl_cv_prog_gnu_ld=no ;;
17108 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
17109 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17110 with_gnu_ld=$acl_cv_prog_gnu_ld
17115 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
17116 $as_echo_n "checking for shared library run path origin... " >&6; }
17117 if test "${acl_cv_rpath+set}" = set; then
17118 $as_echo_n "(cached) " >&6
17121 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17122 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17124 rm -f ./conftest.sh
17128 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
17129 $as_echo "$acl_cv_rpath" >&6; }
17131 libext="$acl_cv_libext"
17132 shlibext="$acl_cv_shlibext"
17133 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17134 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17135 hardcode_direct="$acl_cv_hardcode_direct"
17136 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17137 # Check whether --enable-rpath was given.
17138 if test "${enable_rpath+set}" = set; then
17139 enableval=$enable_rpath; :
17153 acl_save_prefix="$prefix"
17154 prefix="$acl_final_prefix"
17155 acl_save_exec_prefix="$exec_prefix"
17156 exec_prefix="$acl_final_exec_prefix"
17158 eval additional_includedir=\"$includedir\"
17159 eval additional_libdir=\"$libdir\"
17161 exec_prefix="$acl_save_exec_prefix"
17162 prefix="$acl_save_prefix"
17165 # Check whether --with-libiconv-prefix was given.
17166 if test "${with_libiconv_prefix+set}" = set; then
17167 withval=$with_libiconv_prefix;
17168 if test "X$withval" = "Xno"; then
17171 if test "X$withval" = "X"; then
17173 acl_save_prefix="$prefix"
17174 prefix="$acl_final_prefix"
17175 acl_save_exec_prefix="$exec_prefix"
17176 exec_prefix="$acl_final_exec_prefix"
17178 eval additional_includedir=\"$includedir\"
17179 eval additional_libdir=\"$libdir\"
17181 exec_prefix="$acl_save_exec_prefix"
17182 prefix="$acl_save_prefix"
17185 additional_includedir="$withval/include"
17186 additional_libdir="$withval/lib"
17197 names_already_handled=
17198 names_next_round='iconv '
17199 while test -n "$names_next_round"; do
17200 names_this_round="$names_next_round"
17202 for name in $names_this_round; do
17204 for n in $names_already_handled; do
17205 if test "$n" = "$name"; then
17206 already_handled=yes
17210 if test -z "$already_handled"; then
17211 names_already_handled="$names_already_handled $name"
17212 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17213 eval value=\"\$HAVE_LIB$uppername\"
17214 if test -n "$value"; then
17215 if test "$value" = yes; then
17216 eval value=\"\$LIB$uppername\"
17217 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17218 eval value=\"\$LTLIB$uppername\"
17219 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17228 if test $use_additional = yes; then
17229 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17230 found_dir="$additional_libdir"
17231 found_so="$additional_libdir/lib$name.$shlibext"
17232 if test -f "$additional_libdir/lib$name.la"; then
17233 found_la="$additional_libdir/lib$name.la"
17236 if test -f "$additional_libdir/lib$name.$libext"; then
17237 found_dir="$additional_libdir"
17238 found_a="$additional_libdir/lib$name.$libext"
17239 if test -f "$additional_libdir/lib$name.la"; then
17240 found_la="$additional_libdir/lib$name.la"
17245 if test "X$found_dir" = "X"; then
17246 for x in $LDFLAGS $LTLIBICONV; do
17248 acl_save_prefix="$prefix"
17249 prefix="$acl_final_prefix"
17250 acl_save_exec_prefix="$exec_prefix"
17251 exec_prefix="$acl_final_exec_prefix"
17253 exec_prefix="$acl_save_exec_prefix"
17254 prefix="$acl_save_prefix"
17258 dir=`echo "X$x" | sed -e 's/^X-L//'`
17259 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17261 found_so="$dir/lib$name.$shlibext"
17262 if test -f "$dir/lib$name.la"; then
17263 found_la="$dir/lib$name.la"
17266 if test -f "$dir/lib$name.$libext"; then
17268 found_a="$dir/lib$name.$libext"
17269 if test -f "$dir/lib$name.la"; then
17270 found_la="$dir/lib$name.la"
17276 if test "X$found_dir" != "X"; then
17281 if test "X$found_dir" != "X"; then
17282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17283 if test "X$found_so" != "X"; then
17284 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17288 for x in $ltrpathdirs; do
17289 if test "X$x" = "X$found_dir"; then
17294 if test -z "$haveit"; then
17295 ltrpathdirs="$ltrpathdirs $found_dir"
17297 if test "$hardcode_direct" = yes; then
17298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17300 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17301 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17303 for x in $rpathdirs; do
17304 if test "X$x" = "X$found_dir"; then
17309 if test -z "$haveit"; then
17310 rpathdirs="$rpathdirs $found_dir"
17314 for x in $LDFLAGS $LIBICONV; do
17316 acl_save_prefix="$prefix"
17317 prefix="$acl_final_prefix"
17318 acl_save_exec_prefix="$exec_prefix"
17319 exec_prefix="$acl_final_exec_prefix"
17321 exec_prefix="$acl_save_exec_prefix"
17322 prefix="$acl_save_prefix"
17324 if test "X$x" = "X-L$found_dir"; then
17329 if test -z "$haveit"; then
17330 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17332 if test "$hardcode_minus_L" != no; then
17333 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17335 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17341 if test "X$found_a" != "X"; then
17342 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17344 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17347 additional_includedir=
17348 case "$found_dir" in
17350 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17351 additional_includedir="$basedir/include"
17354 if test "X$additional_includedir" != "X"; then
17355 if test "X$additional_includedir" != "X/usr/include"; then
17357 if test "X$additional_includedir" = "X/usr/local/include"; then
17358 if test -n "$GCC"; then
17360 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17364 if test -z "$haveit"; then
17365 for x in $CPPFLAGS $INCICONV; do
17367 acl_save_prefix="$prefix"
17368 prefix="$acl_final_prefix"
17369 acl_save_exec_prefix="$exec_prefix"
17370 exec_prefix="$acl_final_exec_prefix"
17372 exec_prefix="$acl_save_exec_prefix"
17373 prefix="$acl_save_prefix"
17375 if test "X$x" = "X-I$additional_includedir"; then
17380 if test -z "$haveit"; then
17381 if test -d "$additional_includedir"; then
17382 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17388 if test -n "$found_la"; then
17389 save_libdir="$libdir"
17390 case "$found_la" in
17391 */* | *\\*) . "$found_la" ;;
17392 *) . "./$found_la" ;;
17394 libdir="$save_libdir"
17395 for dep in $dependency_libs; do
17398 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17399 if test "X$additional_libdir" != "X/usr/lib"; then
17401 if test "X$additional_libdir" = "X/usr/local/lib"; then
17402 if test -n "$GCC"; then
17404 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17408 if test -z "$haveit"; then
17410 for x in $LDFLAGS $LIBICONV; do
17412 acl_save_prefix="$prefix"
17413 prefix="$acl_final_prefix"
17414 acl_save_exec_prefix="$exec_prefix"
17415 exec_prefix="$acl_final_exec_prefix"
17417 exec_prefix="$acl_save_exec_prefix"
17418 prefix="$acl_save_prefix"
17420 if test "X$x" = "X-L$additional_libdir"; then
17425 if test -z "$haveit"; then
17426 if test -d "$additional_libdir"; then
17427 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17431 for x in $LDFLAGS $LTLIBICONV; do
17433 acl_save_prefix="$prefix"
17434 prefix="$acl_final_prefix"
17435 acl_save_exec_prefix="$exec_prefix"
17436 exec_prefix="$acl_final_exec_prefix"
17438 exec_prefix="$acl_save_exec_prefix"
17439 prefix="$acl_save_prefix"
17441 if test "X$x" = "X-L$additional_libdir"; then
17446 if test -z "$haveit"; then
17447 if test -d "$additional_libdir"; then
17448 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17455 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17456 if test "$enable_rpath" != no; then
17458 for x in $rpathdirs; do
17459 if test "X$x" = "X$dir"; then
17464 if test -z "$haveit"; then
17465 rpathdirs="$rpathdirs $dir"
17468 for x in $ltrpathdirs; do
17469 if test "X$x" = "X$dir"; then
17474 if test -z "$haveit"; then
17475 ltrpathdirs="$ltrpathdirs $dir"
17480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17483 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17486 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17487 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17493 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17494 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17500 if test "X$rpathdirs" != "X"; then
17501 if test -n "$hardcode_libdir_separator"; then
17503 for found_dir in $rpathdirs; do
17504 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17506 acl_save_libdir="$libdir"
17508 eval flag=\"$hardcode_libdir_flag_spec\"
17509 libdir="$acl_save_libdir"
17510 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17512 for found_dir in $rpathdirs; do
17513 acl_save_libdir="$libdir"
17514 libdir="$found_dir"
17515 eval flag=\"$hardcode_libdir_flag_spec\"
17516 libdir="$acl_save_libdir"
17517 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17521 if test "X$ltrpathdirs" != "X"; then
17522 for found_dir in $ltrpathdirs; do
17523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17544 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17545 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17546 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17547 $as_echo_n "(cached) " >&6
17549 gt_save_CPPFLAGS="$CPPFLAGS"
17550 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17551 gt_save_LIBS="$LIBS"
17552 LIBS="$LIBS -framework CoreFoundation"
17553 cat >conftest.$ac_ext <<_ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17559 #include <CFPreferences.h>
17563 CFPreferencesCopyAppValue(NULL, NULL)
17568 rm -f conftest.$ac_objext conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17575 $as_echo "$ac_try_echo") >&5
17576 (eval "$ac_link") 2>conftest.er1
17578 grep -v '^ *+' conftest.er1 >conftest.err
17580 cat conftest.err >&5
17581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } && {
17583 test -z "$ac_c_werror_flag" ||
17584 test ! -s conftest.err
17585 } && test -s conftest$ac_exeext && {
17586 test "$cross_compiling" = yes ||
17587 $as_test_x conftest$ac_exeext
17589 gt_cv_func_CFPreferencesCopyAppValue=yes
17591 $as_echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 gt_cv_func_CFPreferencesCopyAppValue=no
17597 rm -rf conftest.dSYM
17598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17599 conftest$ac_exeext conftest.$ac_ext
17600 CPPFLAGS="$gt_save_CPPFLAGS"
17601 LIBS="$gt_save_LIBS"
17603 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17604 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17605 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17607 cat >>confdefs.h <<\_ACEOF
17608 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17612 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17613 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17614 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17615 $as_echo_n "(cached) " >&6
17617 gt_save_CPPFLAGS="$CPPFLAGS"
17618 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17619 gt_save_LIBS="$LIBS"
17620 LIBS="$LIBS -framework CoreFoundation"
17621 cat >conftest.$ac_ext <<_ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627 #include <CFLocale.h>
17631 CFLocaleCopyCurrent();
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17643 $as_echo "$ac_try_echo") >&5
17644 (eval "$ac_link") 2>conftest.er1
17646 grep -v '^ *+' conftest.er1 >conftest.err
17648 cat conftest.err >&5
17649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } && {
17651 test -z "$ac_c_werror_flag" ||
17652 test ! -s conftest.err
17653 } && test -s conftest$ac_exeext && {
17654 test "$cross_compiling" = yes ||
17655 $as_test_x conftest$ac_exeext
17657 gt_cv_func_CFLocaleCopyCurrent=yes
17659 $as_echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 gt_cv_func_CFLocaleCopyCurrent=no
17665 rm -rf conftest.dSYM
17666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17667 conftest$ac_exeext conftest.$ac_ext
17668 CPPFLAGS="$gt_save_CPPFLAGS"
17669 LIBS="$gt_save_LIBS"
17671 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17672 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17673 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17675 cat >>confdefs.h <<\_ACEOF
17676 #define HAVE_CFLOCALECOPYCURRENT 1
17681 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17682 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17688 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17689 $as_echo_n "checking whether NLS is requested... " >&6; }
17690 # Check whether --enable-nls was given.
17691 if test "${enable_nls+set}" = set; then
17692 enableval=$enable_nls; USE_NLS=$enableval
17697 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17698 $as_echo "$USE_NLS" >&6; }
17707 if test "$USE_NLS" = "yes"; then
17708 gt_use_preinstalled_gnugettext=no
17715 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17716 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17717 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17718 $as_echo_n "(cached) " >&6
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 #include <libintl.h>
17727 extern int _nl_msg_cat_cntr;
17728 extern int *_nl_domain_bindings;
17732 bindtextdomain ("", "");
17733 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17745 $as_echo "$ac_try_echo") >&5
17746 (eval "$ac_link") 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && {
17753 test -z "$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 } && test -s conftest$ac_exeext && {
17756 test "$cross_compiling" = yes ||
17757 $as_test_x conftest$ac_exeext
17759 gt_cv_func_gnugettext1_libc=yes
17761 $as_echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 gt_cv_func_gnugettext1_libc=no
17767 rm -rf conftest.dSYM
17768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17769 conftest$ac_exeext conftest.$ac_ext
17771 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17772 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17774 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17780 am_save_CPPFLAGS="$CPPFLAGS"
17782 for element in $INCICONV; do
17784 for x in $CPPFLAGS; do
17786 acl_save_prefix="$prefix"
17787 prefix="$acl_final_prefix"
17788 acl_save_exec_prefix="$exec_prefix"
17789 exec_prefix="$acl_final_exec_prefix"
17791 exec_prefix="$acl_save_exec_prefix"
17792 prefix="$acl_save_prefix"
17794 if test "X$x" = "X$element"; then
17799 if test -z "$haveit"; then
17800 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17805 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
17806 $as_echo_n "checking for iconv... " >&6; }
17807 if test "${am_cv_func_iconv+set}" = set; then
17808 $as_echo_n "(cached) " >&6
17811 am_cv_func_iconv="no, consider installing GNU libiconv"
17813 cat >conftest.$ac_ext <<_ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819 #include <stdlib.h>
17824 iconv_t cd = iconv_open("","");
17825 iconv(cd,NULL,NULL,NULL,NULL);
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (ac_try="$ac_link"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17838 $as_echo "$ac_try_echo") >&5
17839 (eval "$ac_link") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext && {
17849 test "$cross_compiling" = yes ||
17850 $as_test_x conftest$ac_exeext
17852 am_cv_func_iconv=yes
17854 $as_echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17860 rm -rf conftest.dSYM
17861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17862 conftest$ac_exeext conftest.$ac_ext
17863 if test "$am_cv_func_iconv" != yes; then
17864 am_save_LIBS="$LIBS"
17865 LIBS="$LIBS $LIBICONV"
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 #include <stdlib.h>
17877 iconv_t cd = iconv_open("","");
17878 iconv(cd,NULL,NULL,NULL,NULL);
17884 rm -f conftest.$ac_objext conftest$ac_exeext
17885 if { (ac_try="$ac_link"
17886 case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17891 $as_echo "$ac_try_echo") >&5
17892 (eval "$ac_link") 2>conftest.er1
17894 grep -v '^ *+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest$ac_exeext && {
17902 test "$cross_compiling" = yes ||
17903 $as_test_x conftest$ac_exeext
17905 am_cv_lib_iconv=yes
17906 am_cv_func_iconv=yes
17908 $as_echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17914 rm -rf conftest.dSYM
17915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17916 conftest$ac_exeext conftest.$ac_ext
17917 LIBS="$am_save_LIBS"
17921 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17922 $as_echo "$am_cv_func_iconv" >&6; }
17923 if test "$am_cv_func_iconv" = yes; then
17925 cat >>confdefs.h <<\_ACEOF
17926 #define HAVE_ICONV 1
17930 if test "$am_cv_lib_iconv" = yes; then
17931 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17932 $as_echo_n "checking how to link with libiconv... " >&6; }
17933 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
17934 $as_echo "$LIBICONV" >&6; }
17936 CPPFLAGS="$am_save_CPPFLAGS"
17948 acl_save_prefix="$prefix"
17949 prefix="$acl_final_prefix"
17950 acl_save_exec_prefix="$exec_prefix"
17951 exec_prefix="$acl_final_exec_prefix"
17953 eval additional_includedir=\"$includedir\"
17954 eval additional_libdir=\"$libdir\"
17956 exec_prefix="$acl_save_exec_prefix"
17957 prefix="$acl_save_prefix"
17960 # Check whether --with-libintl-prefix was given.
17961 if test "${with_libintl_prefix+set}" = set; then
17962 withval=$with_libintl_prefix;
17963 if test "X$withval" = "Xno"; then
17966 if test "X$withval" = "X"; then
17968 acl_save_prefix="$prefix"
17969 prefix="$acl_final_prefix"
17970 acl_save_exec_prefix="$exec_prefix"
17971 exec_prefix="$acl_final_exec_prefix"
17973 eval additional_includedir=\"$includedir\"
17974 eval additional_libdir=\"$libdir\"
17976 exec_prefix="$acl_save_exec_prefix"
17977 prefix="$acl_save_prefix"
17980 additional_includedir="$withval/include"
17981 additional_libdir="$withval/lib"
17992 names_already_handled=
17993 names_next_round='intl '
17994 while test -n "$names_next_round"; do
17995 names_this_round="$names_next_round"
17997 for name in $names_this_round; do
17999 for n in $names_already_handled; do
18000 if test "$n" = "$name"; then
18001 already_handled=yes
18005 if test -z "$already_handled"; then
18006 names_already_handled="$names_already_handled $name"
18007 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18008 eval value=\"\$HAVE_LIB$uppername\"
18009 if test -n "$value"; then
18010 if test "$value" = yes; then
18011 eval value=\"\$LIB$uppername\"
18012 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18013 eval value=\"\$LTLIB$uppername\"
18014 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18023 if test $use_additional = yes; then
18024 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18025 found_dir="$additional_libdir"
18026 found_so="$additional_libdir/lib$name.$shlibext"
18027 if test -f "$additional_libdir/lib$name.la"; then
18028 found_la="$additional_libdir/lib$name.la"
18031 if test -f "$additional_libdir/lib$name.$libext"; then
18032 found_dir="$additional_libdir"
18033 found_a="$additional_libdir/lib$name.$libext"
18034 if test -f "$additional_libdir/lib$name.la"; then
18035 found_la="$additional_libdir/lib$name.la"
18040 if test "X$found_dir" = "X"; then
18041 for x in $LDFLAGS $LTLIBINTL; do
18043 acl_save_prefix="$prefix"
18044 prefix="$acl_final_prefix"
18045 acl_save_exec_prefix="$exec_prefix"
18046 exec_prefix="$acl_final_exec_prefix"
18048 exec_prefix="$acl_save_exec_prefix"
18049 prefix="$acl_save_prefix"
18053 dir=`echo "X$x" | sed -e 's/^X-L//'`
18054 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18056 found_so="$dir/lib$name.$shlibext"
18057 if test -f "$dir/lib$name.la"; then
18058 found_la="$dir/lib$name.la"
18061 if test -f "$dir/lib$name.$libext"; then
18063 found_a="$dir/lib$name.$libext"
18064 if test -f "$dir/lib$name.la"; then
18065 found_la="$dir/lib$name.la"
18071 if test "X$found_dir" != "X"; then
18076 if test "X$found_dir" != "X"; then
18077 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18078 if test "X$found_so" != "X"; then
18079 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18080 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18083 for x in $ltrpathdirs; do
18084 if test "X$x" = "X$found_dir"; then
18089 if test -z "$haveit"; then
18090 ltrpathdirs="$ltrpathdirs $found_dir"
18092 if test "$hardcode_direct" = yes; then
18093 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18095 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18096 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18098 for x in $rpathdirs; do
18099 if test "X$x" = "X$found_dir"; then
18104 if test -z "$haveit"; then
18105 rpathdirs="$rpathdirs $found_dir"
18109 for x in $LDFLAGS $LIBINTL; do
18111 acl_save_prefix="$prefix"
18112 prefix="$acl_final_prefix"
18113 acl_save_exec_prefix="$exec_prefix"
18114 exec_prefix="$acl_final_exec_prefix"
18116 exec_prefix="$acl_save_exec_prefix"
18117 prefix="$acl_save_prefix"
18119 if test "X$x" = "X-L$found_dir"; then
18124 if test -z "$haveit"; then
18125 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18127 if test "$hardcode_minus_L" != no; then
18128 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18130 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18136 if test "X$found_a" != "X"; then
18137 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18139 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18142 additional_includedir=
18143 case "$found_dir" in
18145 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18146 additional_includedir="$basedir/include"
18149 if test "X$additional_includedir" != "X"; then
18150 if test "X$additional_includedir" != "X/usr/include"; then
18152 if test "X$additional_includedir" = "X/usr/local/include"; then
18153 if test -n "$GCC"; then
18155 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18159 if test -z "$haveit"; then
18160 for x in $CPPFLAGS $INCINTL; do
18162 acl_save_prefix="$prefix"
18163 prefix="$acl_final_prefix"
18164 acl_save_exec_prefix="$exec_prefix"
18165 exec_prefix="$acl_final_exec_prefix"
18167 exec_prefix="$acl_save_exec_prefix"
18168 prefix="$acl_save_prefix"
18170 if test "X$x" = "X-I$additional_includedir"; then
18175 if test -z "$haveit"; then
18176 if test -d "$additional_includedir"; then
18177 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18183 if test -n "$found_la"; then
18184 save_libdir="$libdir"
18185 case "$found_la" in
18186 */* | *\\*) . "$found_la" ;;
18187 *) . "./$found_la" ;;
18189 libdir="$save_libdir"
18190 for dep in $dependency_libs; do
18193 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18194 if test "X$additional_libdir" != "X/usr/lib"; then
18196 if test "X$additional_libdir" = "X/usr/local/lib"; then
18197 if test -n "$GCC"; then
18199 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18203 if test -z "$haveit"; then
18205 for x in $LDFLAGS $LIBINTL; do
18207 acl_save_prefix="$prefix"
18208 prefix="$acl_final_prefix"
18209 acl_save_exec_prefix="$exec_prefix"
18210 exec_prefix="$acl_final_exec_prefix"
18212 exec_prefix="$acl_save_exec_prefix"
18213 prefix="$acl_save_prefix"
18215 if test "X$x" = "X-L$additional_libdir"; then
18220 if test -z "$haveit"; then
18221 if test -d "$additional_libdir"; then
18222 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18226 for x in $LDFLAGS $LTLIBINTL; do
18228 acl_save_prefix="$prefix"
18229 prefix="$acl_final_prefix"
18230 acl_save_exec_prefix="$exec_prefix"
18231 exec_prefix="$acl_final_exec_prefix"
18233 exec_prefix="$acl_save_exec_prefix"
18234 prefix="$acl_save_prefix"
18236 if test "X$x" = "X-L$additional_libdir"; then
18241 if test -z "$haveit"; then
18242 if test -d "$additional_libdir"; then
18243 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18250 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18251 if test "$enable_rpath" != no; then
18253 for x in $rpathdirs; do
18254 if test "X$x" = "X$dir"; then
18259 if test -z "$haveit"; then
18260 rpathdirs="$rpathdirs $dir"
18263 for x in $ltrpathdirs; do
18264 if test "X$x" = "X$dir"; then
18269 if test -z "$haveit"; then
18270 ltrpathdirs="$ltrpathdirs $dir"
18275 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18278 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18281 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18282 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18288 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18289 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18295 if test "X$rpathdirs" != "X"; then
18296 if test -n "$hardcode_libdir_separator"; then
18298 for found_dir in $rpathdirs; do
18299 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18301 acl_save_libdir="$libdir"
18303 eval flag=\"$hardcode_libdir_flag_spec\"
18304 libdir="$acl_save_libdir"
18305 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18307 for found_dir in $rpathdirs; do
18308 acl_save_libdir="$libdir"
18309 libdir="$found_dir"
18310 eval flag=\"$hardcode_libdir_flag_spec\"
18311 libdir="$acl_save_libdir"
18312 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18316 if test "X$ltrpathdirs" != "X"; then
18317 for found_dir in $ltrpathdirs; do
18318 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18322 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18323 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18324 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18325 $as_echo_n "(cached) " >&6
18327 gt_save_CPPFLAGS="$CPPFLAGS"
18328 CPPFLAGS="$CPPFLAGS $INCINTL"
18329 gt_save_LIBS="$LIBS"
18330 LIBS="$LIBS $LIBINTL"
18331 cat >conftest.$ac_ext <<_ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 #include <libintl.h>
18338 extern int _nl_msg_cat_cntr;
18343 const char *_nl_expand_alias (const char *);
18347 bindtextdomain ("", "");
18348 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18360 $as_echo "$ac_try_echo") >&5
18361 (eval "$ac_link") 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest$ac_exeext && {
18371 test "$cross_compiling" = yes ||
18372 $as_test_x conftest$ac_exeext
18374 gt_cv_func_gnugettext1_libintl=yes
18376 $as_echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 gt_cv_func_gnugettext1_libintl=no
18382 rm -rf conftest.dSYM
18383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18384 conftest$ac_exeext conftest.$ac_ext
18385 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18386 LIBS="$LIBS $LIBICONV"
18387 cat >conftest.$ac_ext <<_ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18393 #include <libintl.h>
18394 extern int _nl_msg_cat_cntr;
18399 const char *_nl_expand_alias (const char *);
18403 bindtextdomain ("", "");
18404 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18409 rm -f conftest.$ac_objext conftest$ac_exeext
18410 if { (ac_try="$ac_link"
18411 case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18416 $as_echo "$ac_try_echo") >&5
18417 (eval "$ac_link") 2>conftest.er1
18419 grep -v '^ *+' conftest.er1 >conftest.err
18421 cat conftest.err >&5
18422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } && {
18424 test -z "$ac_c_werror_flag" ||
18425 test ! -s conftest.err
18426 } && test -s conftest$ac_exeext && {
18427 test "$cross_compiling" = yes ||
18428 $as_test_x conftest$ac_exeext
18430 LIBINTL="$LIBINTL $LIBICONV"
18431 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18432 gt_cv_func_gnugettext1_libintl=yes
18435 $as_echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18441 rm -rf conftest.dSYM
18442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18443 conftest$ac_exeext conftest.$ac_ext
18445 CPPFLAGS="$gt_save_CPPFLAGS"
18446 LIBS="$gt_save_LIBS"
18448 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18449 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18452 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18453 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18454 && test "$PACKAGE" != gettext-runtime \
18455 && test "$PACKAGE" != gettext-tools; }; then
18456 gt_use_preinstalled_gnugettext=yes
18465 if test -n "$INTL_MACOSX_LIBS"; then
18466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18468 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18469 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18473 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18474 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18476 cat >>confdefs.h <<\_ACEOF
18477 #define ENABLE_NLS 1
18485 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
18486 $as_echo_n "checking whether to use NLS... " >&6; }
18487 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
18488 $as_echo "$USE_NLS" >&6; }
18489 if test "$USE_NLS" = "yes"; then
18490 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18491 $as_echo_n "checking where the gettext function comes from... " >&6; }
18492 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18493 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18494 gt_source="external libintl"
18499 gt_source="included intl directory"
18501 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
18502 $as_echo "$gt_source" >&6; }
18505 if test "$USE_NLS" = "yes"; then
18507 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18508 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18509 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
18510 $as_echo_n "checking how to link with libintl... " >&6; }
18511 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
18512 $as_echo "$LIBINTL" >&6; }
18514 for element in $INCINTL; do
18516 for x in $CPPFLAGS; do
18518 acl_save_prefix="$prefix"
18519 prefix="$acl_final_prefix"
18520 acl_save_exec_prefix="$exec_prefix"
18521 exec_prefix="$acl_final_exec_prefix"
18523 exec_prefix="$acl_save_exec_prefix"
18524 prefix="$acl_save_prefix"
18526 if test "X$x" = "X$element"; then
18531 if test -z "$haveit"; then
18532 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE_GETTEXT 1
18544 cat >>confdefs.h <<\_ACEOF
18545 #define HAVE_DCGETTEXT 1
18555 INTLLIBS="$LIBINTL"
18563 os_name=`uname -s 2>/dev/null`
18564 if test x${prefix} = xNONE ; then
18565 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18566 sysconfdir=/etc/bacula
18569 if test `eval echo ${libdir}` = NONE/lib ; then
18572 os_processor=`uname -p 2>/dev/null`
18573 case ${os_processor} in
18588 if test `eval echo ${includedir}` = NONE/include ; then
18589 includedir=/usr/include
18592 if test `eval echo ${datarootdir}` = NONE/share ; then
18593 datarootdir=/usr/share
18598 if test x${exec_prefix} = xNONE ; then
18599 exec_prefix=${prefix}
18602 sysconfdir=`eval echo ${sysconfdir}`
18603 datarootdir=`eval echo ${datarootdir}`
18604 docdir=`eval echo ${docdir}`
18605 htmldir=`eval echo ${htmldir}`
18606 libdir=`eval echo ${libdir}`
18607 includedir=`eval echo ${includedir}`
18608 localedir=`eval echo ${datarootdir}/locale`
18609 cat >>confdefs.h <<_ACEOF
18610 #define SYSCONFDIR "$sysconfdir"
18613 cat >>confdefs.h <<_ACEOF
18614 #define LOCALEDIR "$localedir"
18618 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18619 sbindir=${exec_prefix}/sbin
18621 sbindir=`eval echo ${sbindir}`
18623 if test x$mandir = x'${prefix}/man' ; then
18624 mandir=/usr/share/man
18627 if test x$htmldir = x${docdir} ; then
18628 htmldir=`eval echo ${docdir}bacula/html`
18631 if test x$docdir = x'/usr/share/doc/' ; then
18632 docdir=`eval echo ${docdir}bacula`
18636 for ac_prog in msgfmt
18638 # Extract the first word of "$ac_prog", so it can be a program name with args.
18639 set dummy $ac_prog; ac_word=$2
18640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18641 $as_echo_n "checking for $ac_word... " >&6; }
18642 if test "${ac_cv_path_MSGFMT+set}" = set; then
18643 $as_echo_n "(cached) " >&6
18647 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18651 for as_dir in $PATH
18654 test -z "$as_dir" && as_dir=.
18655 for ac_exec_ext in '' $ac_executable_extensions; do
18656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18657 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18668 MSGFMT=$ac_cv_path_MSGFMT
18669 if test -n "$MSGFMT"; then
18670 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
18671 $as_echo "$MSGFMT" >&6; }
18673 { $as_echo "$as_me:$LINENO: result: no" >&5
18674 $as_echo "no" >&6; }
18678 test -n "$MSGFMT" && break
18680 test -n "$MSGFMT" || MSGFMT="no"
18682 if test "$MSGFMT" = "no"
18684 echo 'msgfmt program not found, disabling NLS !'
18686 USE_INCLUDED_LIBINTL=no
18689 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18690 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18691 if test "${ac_cv_gnu_library_2+set}" = set; then
18692 $as_echo_n "(cached) " >&6
18694 cat >conftest.$ac_ext <<_ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18701 #include <features.h>
18702 #ifdef __GNU_LIBRARY__
18703 #if (__GLIBC__ >= 2)
18709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18710 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18711 ac_cv_gnu_library_2=yes
18713 ac_cv_gnu_library_2=no
18720 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18721 $as_echo "$ac_cv_gnu_library_2" >&6; }
18723 GLIBC2="$ac_cv_gnu_library_2"
18726 if test -n "$ac_tool_prefix"; then
18727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18730 $as_echo_n "checking for $ac_word... " >&6; }
18731 if test "${ac_cv_prog_RANLIB+set}" = set; then
18732 $as_echo_n "(cached) " >&6
18734 if test -n "$RANLIB"; then
18735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738 for as_dir in $PATH
18741 test -z "$as_dir" && as_dir=.
18742 for ac_exec_ext in '' $ac_executable_extensions; do
18743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18754 RANLIB=$ac_cv_prog_RANLIB
18755 if test -n "$RANLIB"; then
18756 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
18757 $as_echo "$RANLIB" >&6; }
18759 { $as_echo "$as_me:$LINENO: result: no" >&5
18760 $as_echo "no" >&6; }
18765 if test -z "$ac_cv_prog_RANLIB"; then
18766 ac_ct_RANLIB=$RANLIB
18767 # Extract the first word of "ranlib", so it can be a program name with args.
18768 set dummy ranlib; ac_word=$2
18769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18770 $as_echo_n "checking for $ac_word... " >&6; }
18771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18772 $as_echo_n "(cached) " >&6
18774 if test -n "$ac_ct_RANLIB"; then
18775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18778 for as_dir in $PATH
18781 test -z "$as_dir" && as_dir=.
18782 for ac_exec_ext in '' $ac_executable_extensions; do
18783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18784 ac_cv_prog_ac_ct_RANLIB="ranlib"
18785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18795 if test -n "$ac_ct_RANLIB"; then
18796 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18797 $as_echo "$ac_ct_RANLIB" >&6; }
18799 { $as_echo "$as_me:$LINENO: result: no" >&5
18800 $as_echo "no" >&6; }
18803 if test "x$ac_ct_RANLIB" = x; then
18806 case $cross_compiling:$ac_tool_warned in
18808 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18810 ac_tool_warned=yes ;;
18812 RANLIB=$ac_ct_RANLIB
18815 RANLIB="$ac_cv_prog_RANLIB"
18819 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18820 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18821 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18822 $as_echo_n "(cached) " >&6
18824 ac_check_lib_save_LIBS=$LIBS
18825 LIBS="-lcposix $LIBS"
18826 cat >conftest.$ac_ext <<_ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18843 return strerror ();
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (ac_try="$ac_link"
18850 case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18855 $as_echo "$ac_try_echo") >&5
18856 (eval "$ac_link") 2>conftest.er1
18858 grep -v '^ *+' conftest.er1 >conftest.err
18860 cat conftest.err >&5
18861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } && {
18863 test -z "$ac_c_werror_flag" ||
18864 test ! -s conftest.err
18865 } && test -s conftest$ac_exeext && {
18866 test "$cross_compiling" = yes ||
18867 $as_test_x conftest$ac_exeext
18869 ac_cv_lib_cposix_strerror=yes
18871 $as_echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18874 ac_cv_lib_cposix_strerror=no
18877 rm -rf conftest.dSYM
18878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18879 conftest$ac_exeext conftest.$ac_ext
18880 LIBS=$ac_check_lib_save_LIBS
18882 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18883 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18884 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
18885 LIBS="$LIBS -lcposix"
18890 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18891 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18892 if test "${ac_cv_c_const+set}" = set; then
18893 $as_echo_n "(cached) " >&6
18895 cat >conftest.$ac_ext <<_ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18905 /* FIXME: Include the comments suggested by Paul. */
18906 #ifndef __cplusplus
18907 /* Ultrix mips cc rejects this. */
18908 typedef int charset[2];
18910 /* SunOS 4.1.1 cc rejects this. */
18911 char const *const *pcpcc;
18913 /* NEC SVR4.0.2 mips cc rejects this. */
18914 struct point {int x, y;};
18915 static struct point const zero = {0,0};
18916 /* AIX XL C 1.02.0.0 rejects this.
18917 It does not let you subtract one const X* pointer from another in
18918 an arm of an if-expression whose if-part is not a constant
18920 const char *g = "string";
18921 pcpcc = &g + (g ? g-g : 0);
18922 /* HPUX 7.0 cc rejects these. */
18924 ppc = (char**) pcpcc;
18925 pcpcc = (char const *const *) ppc;
18926 { /* SCO 3.2v4 cc rejects this. */
18928 char const *s = 0 ? (char *) 0 : (char const *) 0;
18933 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18934 int x[] = {25, 17};
18935 const int *foo = &x[0];
18938 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18939 typedef const int *iptr;
18943 { /* AIX XL C 1.02.0.0 rejects this saying
18944 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18945 struct s { int j; const int *ap[3]; };
18946 struct s *b; b->j = 5;
18948 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18949 const int foo = 10;
18950 if (!foo) return 0;
18952 return !cs[0] && !zero.x;
18959 rm -f conftest.$ac_objext
18960 if { (ac_try="$ac_compile"
18961 case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18966 $as_echo "$ac_try_echo") >&5
18967 (eval "$ac_compile") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest.$ac_objext; then
18979 $as_echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18987 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18988 $as_echo "$ac_cv_c_const" >&6; }
18989 if test $ac_cv_c_const = no; then
18991 cat >>confdefs.h <<\_ACEOF
18998 { $as_echo "$as_me:$LINENO: checking for signed" >&5
18999 $as_echo_n "checking for signed... " >&6; }
19000 if test "${bh_cv_c_signed+set}" = set; then
19001 $as_echo_n "(cached) " >&6
19003 cat >conftest.$ac_ext <<_ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19018 rm -f conftest.$ac_objext
19019 if { (ac_try="$ac_compile"
19020 case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19025 $as_echo "$ac_try_echo") >&5
19026 (eval "$ac_compile") 2>conftest.er1
19028 grep -v '^ *+' conftest.er1 >conftest.err
19030 cat conftest.err >&5
19031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } && {
19033 test -z "$ac_c_werror_flag" ||
19034 test ! -s conftest.err
19035 } && test -s conftest.$ac_objext; then
19038 $as_echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19046 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
19047 $as_echo "$bh_cv_c_signed" >&6; }
19048 if test $bh_cv_c_signed = no; then
19050 cat >>confdefs.h <<\_ACEOF
19051 #define signed /**/
19056 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19057 $as_echo_n "checking for inline... " >&6; }
19058 if test "${ac_cv_c_inline+set}" = set; then
19059 $as_echo_n "(cached) " >&6
19062 for ac_kw in inline __inline__ __inline; do
19063 cat >conftest.$ac_ext <<_ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19069 #ifndef __cplusplus
19071 static $ac_kw foo_t static_foo () {return 0; }
19072 $ac_kw foo_t foo () {return 0; }
19076 rm -f conftest.$ac_objext
19077 if { (ac_try="$ac_compile"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19083 $as_echo "$ac_try_echo") >&5
19084 (eval "$ac_compile") 2>conftest.er1
19086 grep -v '^ *+' conftest.er1 >conftest.err
19088 cat conftest.err >&5
19089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } && {
19091 test -z "$ac_c_werror_flag" ||
19092 test ! -s conftest.err
19093 } && test -s conftest.$ac_objext; then
19094 ac_cv_c_inline=$ac_kw
19096 $as_echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103 test "$ac_cv_c_inline" != no && break
19107 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19108 $as_echo "$ac_cv_c_inline" >&6; }
19111 case $ac_cv_c_inline in
19114 case $ac_cv_c_inline in
19116 *) ac_val=$ac_cv_c_inline;;
19118 cat >>confdefs.h <<_ACEOF
19119 #ifndef __cplusplus
19120 #define inline $ac_val
19126 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19127 $as_echo_n "checking for off_t... " >&6; }
19128 if test "${ac_cv_type_off_t+set}" = set; then
19129 $as_echo_n "(cached) " >&6
19131 ac_cv_type_off_t=no
19132 cat >conftest.$ac_ext <<_ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 $ac_includes_default
19142 if (sizeof (off_t))
19148 rm -f conftest.$ac_objext
19149 if { (ac_try="$ac_compile"
19150 case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19155 $as_echo "$ac_try_echo") >&5
19156 (eval "$ac_compile") 2>conftest.er1
19158 grep -v '^ *+' conftest.er1 >conftest.err
19160 cat conftest.err >&5
19161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } && {
19163 test -z "$ac_c_werror_flag" ||
19164 test ! -s conftest.err
19165 } && test -s conftest.$ac_objext; then
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172 $ac_includes_default
19176 if (sizeof ((off_t)))
19182 rm -f conftest.$ac_objext
19183 if { (ac_try="$ac_compile"
19184 case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19189 $as_echo "$ac_try_echo") >&5
19190 (eval "$ac_compile") 2>conftest.er1
19192 grep -v '^ *+' conftest.er1 >conftest.err
19194 cat conftest.err >&5
19195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } && {
19197 test -z "$ac_c_werror_flag" ||
19198 test ! -s conftest.err
19199 } && test -s conftest.$ac_objext; then
19202 $as_echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19205 ac_cv_type_off_t=yes
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210 $as_echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19219 $as_echo "$ac_cv_type_off_t" >&6; }
19220 if test "x$ac_cv_type_off_t" = x""yes; then
19224 cat >>confdefs.h <<_ACEOF
19225 #define off_t long int
19230 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19231 $as_echo_n "checking for size_t... " >&6; }
19232 if test "${ac_cv_type_size_t+set}" = set; then
19233 $as_echo_n "(cached) " >&6
19235 ac_cv_type_size_t=no
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 $ac_includes_default
19246 if (sizeof (size_t))
19252 rm -f conftest.$ac_objext
19253 if { (ac_try="$ac_compile"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19259 $as_echo "$ac_try_echo") >&5
19260 (eval "$ac_compile") 2>conftest.er1
19262 grep -v '^ *+' conftest.er1 >conftest.err
19264 cat conftest.err >&5
19265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } && {
19267 test -z "$ac_c_werror_flag" ||
19268 test ! -s conftest.err
19269 } && test -s conftest.$ac_objext; then
19270 cat >conftest.$ac_ext <<_ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19276 $ac_includes_default
19280 if (sizeof ((size_t)))
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19293 $as_echo "$ac_try_echo") >&5
19294 (eval "$ac_compile") 2>conftest.er1
19296 grep -v '^ *+' conftest.er1 >conftest.err
19298 cat conftest.err >&5
19299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } && {
19301 test -z "$ac_c_werror_flag" ||
19302 test ! -s conftest.err
19303 } && test -s conftest.$ac_objext; then
19306 $as_echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_cv_type_size_t=yes
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 $as_echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19322 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19323 $as_echo "$ac_cv_type_size_t" >&6; }
19324 if test "x$ac_cv_type_size_t" = x""yes; then
19328 cat >>confdefs.h <<_ACEOF
19329 #define size_t unsigned int
19335 { $as_echo "$as_me:$LINENO: checking for long long" >&5
19336 $as_echo_n "checking for long long... " >&6; }
19337 if test "${ac_cv_type_long_long+set}" = set; then
19338 $as_echo_n "(cached) " >&6
19340 cat >conftest.$ac_ext <<_ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 long long ll = 1LL; int i = 63;
19350 long long llmax = (long long) -1;
19351 return ll << i | ll >> i | llmax / ll | llmax % ll;
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19363 $as_echo "$ac_try_echo") >&5
19364 (eval "$ac_link") 2>conftest.er1
19366 grep -v '^ *+' conftest.er1 >conftest.err
19368 cat conftest.err >&5
19369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } && {
19371 test -z "$ac_c_werror_flag" ||
19372 test ! -s conftest.err
19373 } && test -s conftest$ac_exeext && {
19374 test "$cross_compiling" = yes ||
19375 $as_test_x conftest$ac_exeext
19377 ac_cv_type_long_long=yes
19379 $as_echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_type_long_long=no
19385 rm -rf conftest.dSYM
19386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19387 conftest$ac_exeext conftest.$ac_ext
19389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19390 $as_echo "$ac_cv_type_long_long" >&6; }
19391 if test $ac_cv_type_long_long = yes; then
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_LONG_LONG 1
19400 { $as_echo "$as_me:$LINENO: checking for long double" >&5
19401 $as_echo_n "checking for long double... " >&6; }
19402 if test "${gt_cv_c_long_double+set}" = set; then
19403 $as_echo_n "(cached) " >&6
19405 if test "$GCC" = yes; then
19406 gt_cv_c_long_double=yes
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19415 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19416 long double foo = 0.0;
19417 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19418 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19435 $as_echo "$ac_try_echo") >&5
19436 (eval "$ac_compile") 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19440 cat conftest.err >&5
19441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } && {
19443 test -z "$ac_c_werror_flag" ||
19444 test ! -s conftest.err
19445 } && test -s conftest.$ac_objext; then
19446 gt_cv_c_long_double=yes
19448 $as_echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 gt_cv_c_long_double=no
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19458 $as_echo "$gt_cv_c_long_double" >&6; }
19459 if test $gt_cv_c_long_double = yes; then
19461 cat >>confdefs.h <<\_ACEOF
19462 #define HAVE_LONG_DOUBLE 1
19468 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
19469 $as_echo_n "checking for wchar_t... " >&6; }
19470 if test "${gt_cv_c_wchar_t+set}" = set; then
19471 $as_echo_n "(cached) " >&6
19473 cat >conftest.$ac_ext <<_ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479 #include <stddef.h>
19480 wchar_t foo = (wchar_t)'\0';
19489 rm -f conftest.$ac_objext
19490 if { (ac_try="$ac_compile"
19491 case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19496 $as_echo "$ac_try_echo") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && {
19504 test -z "$ac_c_werror_flag" ||
19505 test ! -s conftest.err
19506 } && test -s conftest.$ac_objext; then
19507 gt_cv_c_wchar_t=yes
19509 $as_echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19518 $as_echo "$gt_cv_c_wchar_t" >&6; }
19519 if test $gt_cv_c_wchar_t = yes; then
19521 cat >>confdefs.h <<\_ACEOF
19522 #define HAVE_WCHAR_T 1
19528 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
19529 $as_echo_n "checking for wint_t... " >&6; }
19530 if test "${gt_cv_c_wint_t+set}" = set; then
19531 $as_echo_n "(cached) " >&6
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19540 wint_t foo = (wchar_t)'\0';
19549 rm -f conftest.$ac_objext
19550 if { (ac_try="$ac_compile"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19556 $as_echo "$ac_try_echo") >&5
19557 (eval "$ac_compile") 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest.$ac_objext; then
19569 $as_echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19578 $as_echo "$gt_cv_c_wint_t" >&6; }
19579 if test $gt_cv_c_wint_t = yes; then
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE_WINT_T 1
19588 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
19589 $as_echo_n "checking for inttypes.h... " >&6; }
19590 if test "${gl_cv_header_inttypes_h+set}" = set; then
19591 $as_echo_n "(cached) " >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 #include <sys/types.h>
19600 #include <inttypes.h>
19604 uintmax_t i = (uintmax_t) -1;
19609 rm -f conftest.$ac_objext
19610 if { (ac_try="$ac_compile"
19611 case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19616 $as_echo "$ac_try_echo") >&5
19617 (eval "$ac_compile") 2>conftest.er1
19619 grep -v '^ *+' conftest.er1 >conftest.err
19621 cat conftest.err >&5
19622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } && {
19624 test -z "$ac_c_werror_flag" ||
19625 test ! -s conftest.err
19626 } && test -s conftest.$ac_objext; then
19627 gl_cv_header_inttypes_h=yes
19629 $as_echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 gl_cv_header_inttypes_h=no
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19638 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19639 if test $gl_cv_header_inttypes_h = yes; then
19641 cat >>confdefs.h <<_ACEOF
19642 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19648 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
19649 $as_echo_n "checking for stdint.h... " >&6; }
19650 if test "${gl_cv_header_stdint_h+set}" = set; then
19651 $as_echo_n "(cached) " >&6
19653 cat >conftest.$ac_ext <<_ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h. */
19659 #include <sys/types.h>
19660 #include <stdint.h>
19664 uintmax_t i = (uintmax_t) -1;
19669 rm -f conftest.$ac_objext
19670 if { (ac_try="$ac_compile"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19676 $as_echo "$ac_try_echo") >&5
19677 (eval "$ac_compile") 2>conftest.er1
19679 grep -v '^ *+' conftest.er1 >conftest.err
19681 cat conftest.err >&5
19682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } && {
19684 test -z "$ac_c_werror_flag" ||
19685 test ! -s conftest.err
19686 } && test -s conftest.$ac_objext; then
19687 gl_cv_header_stdint_h=yes
19689 $as_echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19692 gl_cv_header_stdint_h=no
19695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19697 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19698 $as_echo "$gl_cv_header_stdint_h" >&6; }
19699 if test $gl_cv_header_stdint_h = yes; then
19701 cat >>confdefs.h <<_ACEOF
19702 #define HAVE_STDINT_H_WITH_UINTMAX 1
19710 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
19711 $as_echo_n "checking for intmax_t... " >&6; }
19712 if test "${gt_cv_c_intmax_t+set}" = set; then
19713 $as_echo_n "(cached) " >&6
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19722 #include <stddef.h>
19723 #include <stdlib.h>
19724 #if HAVE_STDINT_H_WITH_UINTMAX
19725 #include <stdint.h>
19727 #if HAVE_INTTYPES_H_WITH_UINTMAX
19728 #include <inttypes.h>
19739 rm -f conftest.$ac_objext
19740 if { (ac_try="$ac_compile"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19746 $as_echo "$ac_try_echo") >&5
19747 (eval "$ac_compile") 2>conftest.er1
19749 grep -v '^ *+' conftest.er1 >conftest.err
19751 cat conftest.err >&5
19752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } && {
19754 test -z "$ac_c_werror_flag" ||
19755 test ! -s conftest.err
19756 } && test -s conftest.$ac_objext; then
19757 gt_cv_c_intmax_t=yes
19759 $as_echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 gt_cv_c_intmax_t=no
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19767 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19768 $as_echo "$gt_cv_c_intmax_t" >&6; }
19769 if test $gt_cv_c_intmax_t = yes; then
19771 cat >>confdefs.h <<\_ACEOF
19772 #define HAVE_INTMAX_T 1
19779 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19780 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19781 if test "${gt_cv_func_printf_posix+set}" = set; then
19782 $as_echo_n "(cached) " >&6
19785 if test "$cross_compiling" = yes; then
19787 cat >conftest.$ac_ext <<_ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19794 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19800 $EGREP "notposix" >/dev/null 2>&1; then
19801 gt_cv_func_printf_posix="guessing no"
19803 gt_cv_func_printf_posix="guessing yes"
19809 cat >conftest.$ac_ext <<_ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19817 #include <string.h>
19818 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19819 dollar expansion (possibly an autoconf bug). */
19820 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19821 static char buf[100];
19824 sprintf (buf, format, 33, 55);
19825 return (strcmp (buf, "55 33") != 0);
19828 rm -f conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19835 $as_echo "$ac_try_echo") >&5
19836 (eval "$ac_link") 2>&5
19838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19840 { (case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19845 $as_echo "$ac_try_echo") >&5
19846 (eval "$ac_try") 2>&5
19848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; }; then
19850 gt_cv_func_printf_posix=yes
19852 $as_echo "$as_me: program exited with status $ac_status" >&5
19853 $as_echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 ( exit $ac_status )
19857 gt_cv_func_printf_posix=no
19859 rm -rf conftest.dSYM
19860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19866 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19867 $as_echo "$gt_cv_func_printf_posix" >&6; }
19868 case $gt_cv_func_printf_posix in
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_POSIX_PRINTF 1
19878 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19879 # for constant arguments. Useless!
19880 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19881 $as_echo_n "checking for working alloca.h... " >&6; }
19882 if test "${ac_cv_working_alloca_h+set}" = set; then
19883 $as_echo_n "(cached) " >&6
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 #include <alloca.h>
19895 char *p = (char *) alloca (2 * sizeof (int));
19901 rm -f conftest.$ac_objext conftest$ac_exeext
19902 if { (ac_try="$ac_link"
19903 case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19908 $as_echo "$ac_try_echo") >&5
19909 (eval "$ac_link") 2>conftest.er1
19911 grep -v '^ *+' conftest.er1 >conftest.err
19913 cat conftest.err >&5
19914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } && {
19916 test -z "$ac_c_werror_flag" ||
19917 test ! -s conftest.err
19918 } && test -s conftest$ac_exeext && {
19919 test "$cross_compiling" = yes ||
19920 $as_test_x conftest$ac_exeext
19922 ac_cv_working_alloca_h=yes
19924 $as_echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_cv_working_alloca_h=no
19930 rm -rf conftest.dSYM
19931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19932 conftest$ac_exeext conftest.$ac_ext
19934 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19935 $as_echo "$ac_cv_working_alloca_h" >&6; }
19936 if test $ac_cv_working_alloca_h = yes; then
19938 cat >>confdefs.h <<\_ACEOF
19939 #define HAVE_ALLOCA_H 1
19944 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19945 $as_echo_n "checking for alloca... " >&6; }
19946 if test "${ac_cv_func_alloca_works+set}" = set; then
19947 $as_echo_n "(cached) " >&6
19949 cat >conftest.$ac_ext <<_ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19956 # define alloca __builtin_alloca
19959 # include <malloc.h>
19960 # define alloca _alloca
19962 # ifdef HAVE_ALLOCA_H
19963 # include <alloca.h>
19968 # ifndef alloca /* predefined by HP cc +Olibcalls */
19979 char *p = (char *) alloca (1);
19985 rm -f conftest.$ac_objext conftest$ac_exeext
19986 if { (ac_try="$ac_link"
19987 case "(($ac_try" in
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989 *) ac_try_echo=$ac_try;;
19991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19992 $as_echo "$ac_try_echo") >&5
19993 (eval "$ac_link") 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest$ac_exeext && {
20003 test "$cross_compiling" = yes ||
20004 $as_test_x conftest$ac_exeext
20006 ac_cv_func_alloca_works=yes
20008 $as_echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20011 ac_cv_func_alloca_works=no
20014 rm -rf conftest.dSYM
20015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20016 conftest$ac_exeext conftest.$ac_ext
20018 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20019 $as_echo "$ac_cv_func_alloca_works" >&6; }
20021 if test $ac_cv_func_alloca_works = yes; then
20023 cat >>confdefs.h <<\_ACEOF
20024 #define HAVE_ALLOCA 1
20028 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20029 # that cause trouble. Some versions do not even contain alloca or
20030 # contain a buggy version. If you still want to use their alloca,
20031 # use ar to extract alloca.o from them instead of compiling alloca.c.
20033 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20035 cat >>confdefs.h <<\_ACEOF
20040 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20041 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20042 if test "${ac_cv_os_cray+set}" = set; then
20043 $as_echo_n "(cached) " >&6
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #if defined CRAY && ! defined CRAY2
20058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059 $EGREP "webecray" >/dev/null 2>&1; then
20067 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20068 $as_echo "$ac_cv_os_cray" >&6; }
20069 if test $ac_cv_os_cray = yes; then
20070 for ac_func in _getb67 GETB67 getb67; do
20071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20072 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20073 $as_echo_n "checking for $ac_func... " >&6; }
20074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20075 $as_echo_n "(cached) " >&6
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20085 #define $ac_func innocuous_$ac_func
20087 /* System header to define __stub macros and hopefully few prototypes,
20088 which can conflict with char $ac_func (); below.
20089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20090 <limits.h> exists even on freestanding compilers. */
20093 # include <limits.h>
20095 # include <assert.h>
20100 /* Override any GCC internal prototype to avoid an error.
20101 Use char because int might match the return type of a GCC
20102 builtin and then its argument prototype would still apply. */
20107 /* The GNU C library defines this for functions which it implements
20108 to always fail with ENOSYS. Some functions are actually named
20109 something starting with __ and the normal name is an alias. */
20110 #if defined __stub_$ac_func || defined __stub___$ac_func
20117 return $ac_func ();
20122 rm -f conftest.$ac_objext conftest$ac_exeext
20123 if { (ac_try="$ac_link"
20124 case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20129 $as_echo "$ac_try_echo") >&5
20130 (eval "$ac_link") 2>conftest.er1
20132 grep -v '^ *+' conftest.er1 >conftest.err
20134 cat conftest.err >&5
20135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); } && {
20137 test -z "$ac_c_werror_flag" ||
20138 test ! -s conftest.err
20139 } && test -s conftest$ac_exeext && {
20140 test "$cross_compiling" = yes ||
20141 $as_test_x conftest$ac_exeext
20143 eval "$as_ac_var=yes"
20145 $as_echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 eval "$as_ac_var=no"
20151 rm -rf conftest.dSYM
20152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20153 conftest$ac_exeext conftest.$ac_ext
20155 ac_res=`eval 'as_val=${'$as_ac_var'}
20156 $as_echo "$as_val"'`
20157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20158 $as_echo "$ac_res" >&6; }
20159 as_val=`eval 'as_val=${'$as_ac_var'}
20160 $as_echo "$as_val"'`
20161 if test "x$as_val" = x""yes; then
20163 cat >>confdefs.h <<_ACEOF
20164 #define CRAY_STACKSEG_END $ac_func
20173 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20174 $as_echo_n "checking stack direction for C alloca... " >&6; }
20175 if test "${ac_cv_c_stack_direction+set}" = set; then
20176 $as_echo_n "(cached) " >&6
20178 if test "$cross_compiling" = yes; then
20179 ac_cv_c_stack_direction=0
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 $ac_includes_default
20189 find_stack_direction ()
20191 static char *addr = 0;
20196 return find_stack_direction ();
20199 return (&dummy > addr) ? 1 : -1;
20205 return find_stack_direction () < 0;
20208 rm -f conftest$ac_exeext
20209 if { (ac_try="$ac_link"
20210 case "(($ac_try" in
20211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212 *) ac_try_echo=$ac_try;;
20214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20215 $as_echo "$ac_try_echo") >&5
20216 (eval "$ac_link") 2>&5
20218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20220 { (case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20225 $as_echo "$ac_try_echo") >&5
20226 (eval "$ac_try") 2>&5
20228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_c_stack_direction=1
20232 $as_echo "$as_me: program exited with status $ac_status" >&5
20233 $as_echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ( exit $ac_status )
20237 ac_cv_c_stack_direction=-1
20239 rm -rf conftest.dSYM
20240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20245 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20246 $as_echo "$ac_cv_c_stack_direction" >&6; }
20248 cat >>confdefs.h <<_ACEOF
20249 #define STACK_DIRECTION $ac_cv_c_stack_direction
20257 for ac_header in stdlib.h unistd.h
20259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20262 $as_echo_n "checking for $ac_header... " >&6; }
20263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20264 $as_echo_n "(cached) " >&6
20266 ac_res=`eval 'as_val=${'$as_ac_Header'}
20267 $as_echo "$as_val"'`
20268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20269 $as_echo "$ac_res" >&6; }
20271 # Is the header compilable?
20272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20273 $as_echo_n "checking $ac_header usability... " >&6; }
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 $ac_includes_default
20281 #include <$ac_header>
20283 rm -f conftest.$ac_objext
20284 if { (ac_try="$ac_compile"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20290 $as_echo "$ac_try_echo") >&5
20291 (eval "$ac_compile") 2>conftest.er1
20293 grep -v '^ *+' conftest.er1 >conftest.err
20295 cat conftest.err >&5
20296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } && {
20298 test -z "$ac_c_werror_flag" ||
20299 test ! -s conftest.err
20300 } && test -s conftest.$ac_objext; then
20301 ac_header_compiler=yes
20303 $as_echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20306 ac_header_compiler=no
20309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20311 $as_echo "$ac_header_compiler" >&6; }
20313 # Is the header present?
20314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20315 $as_echo_n "checking $ac_header presence... " >&6; }
20316 cat >conftest.$ac_ext <<_ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20322 #include <$ac_header>
20324 if { (ac_try="$ac_cpp conftest.$ac_ext"
20325 case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20330 $as_echo "$ac_try_echo") >&5
20331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } >/dev/null && {
20338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20341 ac_header_preproc=yes
20343 $as_echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_header_preproc=no
20349 rm -f conftest.err conftest.$ac_ext
20350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20351 $as_echo "$ac_header_preproc" >&6; }
20353 # So? What about this header?
20354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20360 ac_header_preproc=yes
20363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20366 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20370 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20379 $as_echo_n "checking for $ac_header... " >&6; }
20380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20381 $as_echo_n "(cached) " >&6
20383 eval "$as_ac_Header=\$ac_header_preproc"
20385 ac_res=`eval 'as_val=${'$as_ac_Header'}
20386 $as_echo "$as_val"'`
20387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20388 $as_echo "$ac_res" >&6; }
20391 as_val=`eval 'as_val=${'$as_ac_Header'}
20392 $as_echo "$as_val"'`
20393 if test "x$as_val" = x""yes; then
20394 cat >>confdefs.h <<_ACEOF
20395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20403 for ac_func in getpagesize
20405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20406 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20407 $as_echo_n "checking for $ac_func... " >&6; }
20408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20409 $as_echo_n "(cached) " >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20419 #define $ac_func innocuous_$ac_func
20421 /* System header to define __stub macros and hopefully few prototypes,
20422 which can conflict with char $ac_func (); below.
20423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20424 <limits.h> exists even on freestanding compilers. */
20427 # include <limits.h>
20429 # include <assert.h>
20434 /* Override any GCC internal prototype to avoid an error.
20435 Use char because int might match the return type of a GCC
20436 builtin and then its argument prototype would still apply. */
20441 /* The GNU C library defines this for functions which it implements
20442 to always fail with ENOSYS. Some functions are actually named
20443 something starting with __ and the normal name is an alias. */
20444 #if defined __stub_$ac_func || defined __stub___$ac_func
20451 return $ac_func ();
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20463 $as_echo "$ac_try_echo") >&5
20464 (eval "$ac_link") 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } && {
20471 test -z "$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20473 } && test -s conftest$ac_exeext && {
20474 test "$cross_compiling" = yes ||
20475 $as_test_x conftest$ac_exeext
20477 eval "$as_ac_var=yes"
20479 $as_echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 eval "$as_ac_var=no"
20485 rm -rf conftest.dSYM
20486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20487 conftest$ac_exeext conftest.$ac_ext
20489 ac_res=`eval 'as_val=${'$as_ac_var'}
20490 $as_echo "$as_val"'`
20491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20492 $as_echo "$ac_res" >&6; }
20493 as_val=`eval 'as_val=${'$as_ac_var'}
20494 $as_echo "$as_val"'`
20495 if test "x$as_val" = x""yes; then
20496 cat >>confdefs.h <<_ACEOF
20497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20503 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
20504 $as_echo_n "checking for working mmap... " >&6; }
20505 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20506 $as_echo_n "(cached) " >&6
20508 if test "$cross_compiling" = yes; then
20509 ac_cv_func_mmap_fixed_mapped=no
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517 $ac_includes_default
20518 /* malloc might have been renamed as rpl_malloc. */
20521 /* Thanks to Mike Haertel and Jim Avera for this test.
20522 Here is a matrix of mmap possibilities:
20523 mmap private not fixed
20524 mmap private fixed at somewhere currently unmapped
20525 mmap private fixed at somewhere already mapped
20526 mmap shared not fixed
20527 mmap shared fixed at somewhere currently unmapped
20528 mmap shared fixed at somewhere already mapped
20529 For private mappings, we should verify that changes cannot be read()
20530 back from the file, nor mmap's back from the file at a different
20531 address. (There have been systems where private was not correctly
20532 implemented like the infamous i386 svr4.0, and systems where the
20533 VM page cache was not coherent with the file system buffer cache
20534 like early versions of FreeBSD and possibly contemporary NetBSD.)
20535 For shared mappings, we should conversely verify that changes get
20536 propagated back to all the places they're supposed to be.
20538 Grep wants private fixed already mapped.
20539 The main things grep needs to know about mmap are:
20540 * does it exist and is it safe to write into the mmap'd area
20541 * how to use it (BSD variants) */
20544 #include <sys/mman.h>
20546 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20550 /* This mess was copied from the GNU getpagesize.h. */
20551 #ifndef HAVE_GETPAGESIZE
20552 /* Assume that all systems that can run configure have sys/param.h. */
20553 # ifndef HAVE_SYS_PARAM_H
20554 # define HAVE_SYS_PARAM_H 1
20557 # ifdef _SC_PAGESIZE
20558 # define getpagesize() sysconf(_SC_PAGESIZE)
20559 # else /* no _SC_PAGESIZE */
20560 # ifdef HAVE_SYS_PARAM_H
20561 # include <sys/param.h>
20562 # ifdef EXEC_PAGESIZE
20563 # define getpagesize() EXEC_PAGESIZE
20564 # else /* no EXEC_PAGESIZE */
20566 # define getpagesize() NBPG * CLSIZE
20569 # endif /* no CLSIZE */
20570 # else /* no NBPG */
20572 # define getpagesize() NBPC
20573 # else /* no NBPC */
20575 # define getpagesize() PAGESIZE
20576 # endif /* PAGESIZE */
20577 # endif /* no NBPC */
20578 # endif /* no NBPG */
20579 # endif /* no EXEC_PAGESIZE */
20580 # else /* no HAVE_SYS_PARAM_H */
20581 # define getpagesize() 8192 /* punt totally */
20582 # endif /* no HAVE_SYS_PARAM_H */
20583 # endif /* no _SC_PAGESIZE */
20585 #endif /* no HAVE_GETPAGESIZE */
20590 char *data, *data2, *data3;
20594 pagesize = getpagesize ();
20596 /* First, make a file with some known garbage in it. */
20597 data = (char *) malloc (pagesize);
20600 for (i = 0; i < pagesize; ++i)
20601 *(data + i) = rand ();
20603 fd = creat ("conftest.mmap", 0600);
20606 if (write (fd, data, pagesize) != pagesize)
20610 /* Next, try to mmap the file at a fixed address which already has
20611 something else allocated at it. If we can, also make sure that
20612 we see the same garbage. */
20613 fd = open ("conftest.mmap", O_RDWR);
20616 data2 = (char *) malloc (2 * pagesize);
20619 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20620 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20621 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20623 for (i = 0; i < pagesize; ++i)
20624 if (*(data + i) != *(data2 + i))
20627 /* Finally, make sure that changes to the mapped area do not
20628 percolate back to the file as seen by read(). (This is a bug on
20629 some variants of i386 svr4.0.) */
20630 for (i = 0; i < pagesize; ++i)
20631 *(data2 + i) = *(data2 + i) + 1;
20632 data3 = (char *) malloc (pagesize);
20635 if (read (fd, data3, pagesize) != pagesize)
20637 for (i = 0; i < pagesize; ++i)
20638 if (*(data + i) != *(data3 + i))
20644 rm -f conftest$ac_exeext
20645 if { (ac_try="$ac_link"
20646 case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20651 $as_echo "$ac_try_echo") >&5
20652 (eval "$ac_link") 2>&5
20654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20661 $as_echo "$ac_try_echo") >&5
20662 (eval "$ac_try") 2>&5
20664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_func_mmap_fixed_mapped=yes
20668 $as_echo "$as_me: program exited with status $ac_status" >&5
20669 $as_echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20672 ( exit $ac_status )
20673 ac_cv_func_mmap_fixed_mapped=no
20675 rm -rf conftest.dSYM
20676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20681 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20682 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20683 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_MMAP 1
20690 rm -f conftest.mmap
20693 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20694 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20695 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20696 $as_echo_n "(cached) " >&6
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 #include <features.h>
20706 #ifdef __GNU_LIBRARY__
20707 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20714 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20715 ac_cv_gnu_library_2_1=yes
20717 ac_cv_gnu_library_2_1=no
20724 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20725 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20727 GLIBC21="$ac_cv_gnu_library_2_1"
20732 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20733 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20734 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20735 $as_echo_n "(cached) " >&6
20738 if test "$cross_compiling" = yes; then
20740 # Guess based on the CPU.
20741 case "$host_cpu" in
20742 alpha* | i3456786 | m68k | s390*)
20743 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20745 gt_cv_int_divbyzero_sigfpe="guessing no";;
20749 cat >conftest.$ac_ext <<_ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20756 #include <stdlib.h>
20757 #include <signal.h>
20761 sigfpe_handler (int sig)
20763 sigfpe_handler (sig) int sig;
20766 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20767 exit (sig != SIGFPE);
20777 signal (SIGFPE, sigfpe_handler);
20778 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20779 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20780 signal (SIGTRAP, sigfpe_handler);
20782 /* Linux/SPARC yields signal SIGILL. */
20783 #if defined (__sparc__) && defined (__linux__)
20784 signal (SIGILL, sigfpe_handler);
20793 rm -f conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>&5
20803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20805 { (case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20810 $as_echo "$ac_try_echo") >&5
20811 (eval "$ac_try") 2>&5
20813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
20815 gt_cv_int_divbyzero_sigfpe=yes
20817 $as_echo "$as_me: program exited with status $ac_status" >&5
20818 $as_echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 ( exit $ac_status )
20822 gt_cv_int_divbyzero_sigfpe=no
20824 rm -rf conftest.dSYM
20825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20831 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20832 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20833 case "$gt_cv_int_divbyzero_sigfpe" in
20838 cat >>confdefs.h <<_ACEOF
20839 #define INTDIV0_RAISES_SIGFPE $value
20844 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20845 $as_echo_n "checking for unsigned long long... " >&6; }
20846 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20847 $as_echo_n "(cached) " >&6
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 unsigned long long ull = 1ULL; int i = 63;
20859 unsigned long long ullmax = (unsigned long long) -1;
20860 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20865 rm -f conftest.$ac_objext conftest$ac_exeext
20866 if { (ac_try="$ac_link"
20867 case "(($ac_try" in
20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869 *) ac_try_echo=$ac_try;;
20871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20872 $as_echo "$ac_try_echo") >&5
20873 (eval "$ac_link") 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest$ac_exeext && {
20883 test "$cross_compiling" = yes ||
20884 $as_test_x conftest$ac_exeext
20886 ac_cv_type_unsigned_long_long=yes
20888 $as_echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ac_cv_type_unsigned_long_long=no
20894 rm -rf conftest.dSYM
20895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20896 conftest$ac_exeext conftest.$ac_ext
20898 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20899 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20900 if test $ac_cv_type_unsigned_long_long = yes; then
20902 cat >>confdefs.h <<\_ACEOF
20903 #define HAVE_UNSIGNED_LONG_LONG 1
20911 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20913 test $ac_cv_type_unsigned_long_long = yes \
20914 && ac_type='unsigned long long' \
20915 || ac_type='unsigned long'
20917 cat >>confdefs.h <<_ACEOF
20918 #define uintmax_t $ac_type
20923 cat >>confdefs.h <<\_ACEOF
20924 #define HAVE_UINTMAX_T 1
20930 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
20931 $as_echo_n "checking for inttypes.h... " >&6; }
20932 if test "${gt_cv_header_inttypes_h+set}" = set; then
20933 $as_echo_n "(cached) " >&6
20936 cat >conftest.$ac_ext <<_ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 #include <sys/types.h>
20943 #include <inttypes.h>
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20959 $as_echo "$ac_try_echo") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20962 grep -v '^ *+' conftest.er1 >conftest.err
20964 cat conftest.err >&5
20965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
20970 gt_cv_header_inttypes_h=yes
20972 $as_echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20975 gt_cv_header_inttypes_h=no
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20981 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20982 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20983 if test $gt_cv_header_inttypes_h = yes; then
20985 cat >>confdefs.h <<_ACEOF
20986 #define HAVE_INTTYPES_H 1
20993 if test $gt_cv_header_inttypes_h = yes; then
20994 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20995 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20996 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20997 $as_echo_n "(cached) " >&6
21000 cat >conftest.$ac_ext <<_ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <inttypes.h>
21019 rm -f conftest.$ac_objext
21020 if { (ac_try="$ac_compile"
21021 case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21026 $as_echo "$ac_try_echo") >&5
21027 (eval "$ac_compile") 2>conftest.er1
21029 grep -v '^ *+' conftest.er1 >conftest.err
21031 cat conftest.err >&5
21032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && {
21034 test -z "$ac_c_werror_flag" ||
21035 test ! -s conftest.err
21036 } && test -s conftest.$ac_objext; then
21037 gt_cv_inttypes_pri_broken=no
21039 $as_echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042 gt_cv_inttypes_pri_broken=yes
21045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
21049 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21051 if test "$gt_cv_inttypes_pri_broken" = yes; then
21053 cat >>confdefs.h <<_ACEOF
21054 #define PRI_MACROS_BROKEN 1
21061 for ac_header in stdint.h
21063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21065 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21066 $as_echo_n "checking for $ac_header... " >&6; }
21067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21068 $as_echo_n "(cached) " >&6
21070 ac_res=`eval 'as_val=${'$as_ac_Header'}
21071 $as_echo "$as_val"'`
21072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21073 $as_echo "$ac_res" >&6; }
21075 # Is the header compilable?
21076 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21077 $as_echo_n "checking $ac_header usability... " >&6; }
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 $ac_includes_default
21085 #include <$ac_header>
21087 rm -f conftest.$ac_objext
21088 if { (ac_try="$ac_compile"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21094 $as_echo "$ac_try_echo") >&5
21095 (eval "$ac_compile") 2>conftest.er1
21097 grep -v '^ *+' conftest.er1 >conftest.err
21099 cat conftest.err >&5
21100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } && {
21102 test -z "$ac_c_werror_flag" ||
21103 test ! -s conftest.err
21104 } && test -s conftest.$ac_objext; then
21105 ac_header_compiler=yes
21107 $as_echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 ac_header_compiler=no
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21115 $as_echo "$ac_header_compiler" >&6; }
21117 # Is the header present?
21118 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21119 $as_echo_n "checking $ac_header presence... " >&6; }
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 #include <$ac_header>
21128 if { (ac_try="$ac_cpp conftest.$ac_ext"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21134 $as_echo "$ac_try_echo") >&5
21135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21137 grep -v '^ *+' conftest.er1 >conftest.err
21139 cat conftest.err >&5
21140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } >/dev/null && {
21142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21143 test ! -s conftest.err
21145 ac_header_preproc=yes
21147 $as_echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_header_preproc=no
21153 rm -f conftest.err conftest.$ac_ext
21154 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21155 $as_echo "$ac_header_preproc" >&6; }
21157 # So? What about this header?
21158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21161 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21164 ac_header_preproc=yes
21167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21168 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21170 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21172 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21174 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21178 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21183 $as_echo_n "checking for $ac_header... " >&6; }
21184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21185 $as_echo_n "(cached) " >&6
21187 eval "$as_ac_Header=\$ac_header_preproc"
21189 ac_res=`eval 'as_val=${'$as_ac_Header'}
21190 $as_echo "$as_val"'`
21191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21192 $as_echo "$ac_res" >&6; }
21195 as_val=`eval 'as_val=${'$as_ac_Header'}
21196 $as_echo "$as_val"'`
21197 if test "x$as_val" = x""yes; then
21198 cat >>confdefs.h <<_ACEOF
21199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21206 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
21207 $as_echo_n "checking for SIZE_MAX... " >&6; }
21209 cat >conftest.$ac_ext <<_ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21216 #include <limits.h>
21218 #include <stdint.h>
21225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21226 $EGREP "Found it" >/dev/null 2>&1; then
21231 if test -z "$result"; then
21232 if test "$cross_compiling" = yes; then
21233 # Depending upon the size, compute the lo and hi bounds.
21234 cat >conftest.$ac_ext <<_ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 #include <stddef.h>
21244 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21258 $as_echo "$ac_try_echo") >&5
21259 (eval "$ac_compile") 2>conftest.er1
21261 grep -v '^ *+' conftest.er1 >conftest.err
21263 cat conftest.err >&5
21264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } && {
21266 test -z "$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21268 } && test -s conftest.$ac_objext; then
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include <stddef.h>
21281 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21295 $as_echo "$ac_try_echo") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_hi=$ac_mid; break
21308 $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_lo=`expr $ac_mid + 1`
21312 if test $ac_lo -le $ac_mid; then
21316 ac_mid=`expr 2 '*' $ac_mid + 1`
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 $as_echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 cat >conftest.$ac_ext <<_ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21331 #include <stddef.h>
21335 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
21342 rm -f conftest.$ac_objext
21343 if { (ac_try="$ac_compile"
21344 case "(($ac_try" in
21345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346 *) ac_try_echo=$ac_try;;
21348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21349 $as_echo "$ac_try_echo") >&5
21350 (eval "$ac_compile") 2>conftest.er1
21352 grep -v '^ *+' conftest.er1 >conftest.err
21354 cat conftest.err >&5
21355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && {
21357 test -z "$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21359 } && test -s conftest.$ac_objext; then
21362 cat >conftest.$ac_ext <<_ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 #include <stddef.h>
21372 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21379 rm -f conftest.$ac_objext
21380 if { (ac_try="$ac_compile"
21381 case "(($ac_try" in
21382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383 *) ac_try_echo=$ac_try;;
21385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21386 $as_echo "$ac_try_echo") >&5
21387 (eval "$ac_compile") 2>conftest.er1
21389 grep -v '^ *+' conftest.er1 >conftest.err
21391 cat conftest.err >&5
21392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } && {
21394 test -z "$ac_c_werror_flag" ||
21395 test ! -s conftest.err
21396 } && test -s conftest.$ac_objext; then
21397 ac_lo=$ac_mid; break
21399 $as_echo "$as_me: failed program was:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21402 ac_hi=`expr '(' $ac_mid ')' - 1`
21403 if test $ac_mid -le $ac_hi; then
21407 ac_mid=`expr 2 '*' $ac_mid`
21410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 $as_echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21423 # Binary search between lo and hi bounds.
21424 while test "x$ac_lo" != "x$ac_hi"; do
21425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 #include <stddef.h>
21436 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21443 rm -f conftest.$ac_objext
21444 if { (ac_try="$ac_compile"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21450 $as_echo "$ac_try_echo") >&5
21451 (eval "$ac_compile") 2>conftest.er1
21453 grep -v '^ *+' conftest.er1 >conftest.err
21455 cat conftest.err >&5
21456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } && {
21458 test -z "$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 } && test -s conftest.$ac_objext; then
21463 $as_echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ac_lo=`expr '(' $ac_mid ')' + 1`
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 ?*) res_hi=$ac_lo;;
21476 cat >conftest.$ac_ext <<_ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 #include <stddef.h>
21483 static long int longval () { return ~(size_t)0 / 10; }
21484 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21486 #include <stdlib.h>
21491 FILE *f = fopen ("conftest.val", "w");
21494 if ((~(size_t)0 / 10) < 0)
21496 long int i = longval ();
21497 if (i != (~(size_t)0 / 10))
21499 fprintf (f, "%ld", i);
21503 unsigned long int i = ulongval ();
21504 if (i != (~(size_t)0 / 10))
21506 fprintf (f, "%lu", i);
21508 /* Do not output a trailing newline, as this causes \r\n confusion
21509 on some platforms. */
21510 return ferror (f) || fclose (f) != 0;
21516 rm -f conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21523 $as_echo "$ac_try_echo") >&5
21524 (eval "$ac_link") 2>&5
21526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528 { (case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21533 $as_echo "$ac_try_echo") >&5
21534 (eval "$ac_try") 2>&5
21536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 res_hi=`cat conftest.val`
21540 $as_echo "$as_me: program exited with status $ac_status" >&5
21541 $as_echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ( exit $ac_status )
21547 rm -rf conftest.dSYM
21548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21552 if test "$cross_compiling" = yes; then
21553 # Depending upon the size, compute the lo and hi bounds.
21554 cat >conftest.$ac_ext <<_ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h. */
21560 #include <stddef.h>
21564 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21578 $as_echo "$ac_try_echo") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest.$ac_objext; then
21591 cat >conftest.$ac_ext <<_ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h. */
21597 #include <stddef.h>
21601 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21615 $as_echo "$ac_try_echo") >&5
21616 (eval "$ac_compile") 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest.$ac_objext; then
21626 ac_hi=$ac_mid; break
21628 $as_echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 ac_lo=`expr $ac_mid + 1`
21632 if test $ac_lo -le $ac_mid; then
21636 ac_mid=`expr 2 '*' $ac_mid + 1`
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 $as_echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21645 cat >conftest.$ac_ext <<_ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <stddef.h>
21655 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21669 $as_echo "$ac_try_echo") >&5
21670 (eval "$ac_compile") 2>conftest.er1
21672 grep -v '^ *+' conftest.er1 >conftest.err
21674 cat conftest.err >&5
21675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } && {
21677 test -z "$ac_c_werror_flag" ||
21678 test ! -s conftest.err
21679 } && test -s conftest.$ac_objext; then
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 #include <stddef.h>
21692 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21706 $as_echo "$ac_try_echo") >&5
21707 (eval "$ac_compile") 2>conftest.er1
21709 grep -v '^ *+' conftest.er1 >conftest.err
21711 cat conftest.err >&5
21712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest.$ac_objext; then
21717 ac_lo=$ac_mid; break
21719 $as_echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_hi=`expr '(' $ac_mid ')' - 1`
21723 if test $ac_mid -le $ac_hi; then
21727 ac_mid=`expr 2 '*' $ac_mid`
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733 $as_echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21743 # Binary search between lo and hi bounds.
21744 while test "x$ac_lo" != "x$ac_hi"; do
21745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21746 cat >conftest.$ac_ext <<_ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h. */
21752 #include <stddef.h>
21756 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21763 rm -f conftest.$ac_objext
21764 if { (ac_try="$ac_compile"
21765 case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21770 $as_echo "$ac_try_echo") >&5
21771 (eval "$ac_compile") 2>conftest.er1
21773 grep -v '^ *+' conftest.er1 >conftest.err
21775 cat conftest.err >&5
21776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && {
21778 test -z "$ac_c_werror_flag" ||
21779 test ! -s conftest.err
21780 } && test -s conftest.$ac_objext; then
21783 $as_echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21786 ac_lo=`expr '(' $ac_mid ')' + 1`
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792 ?*) res_lo=$ac_lo;;
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 #include <stddef.h>
21803 static long int longval () { return ~(size_t)0 % 10; }
21804 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21806 #include <stdlib.h>
21811 FILE *f = fopen ("conftest.val", "w");
21814 if ((~(size_t)0 % 10) < 0)
21816 long int i = longval ();
21817 if (i != (~(size_t)0 % 10))
21819 fprintf (f, "%ld", i);
21823 unsigned long int i = ulongval ();
21824 if (i != (~(size_t)0 % 10))
21826 fprintf (f, "%lu", i);
21828 /* Do not output a trailing newline, as this causes \r\n confusion
21829 on some platforms. */
21830 return ferror (f) || fclose (f) != 0;
21836 rm -f conftest$ac_exeext
21837 if { (ac_try="$ac_link"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21843 $as_echo "$ac_try_echo") >&5
21844 (eval "$ac_link") 2>&5
21846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21848 { (case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21853 $as_echo "$ac_try_echo") >&5
21854 (eval "$ac_try") 2>&5
21856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); }; }; then
21858 res_lo=`cat conftest.val`
21860 $as_echo "$as_me: program exited with status $ac_status" >&5
21861 $as_echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ( exit $ac_status )
21867 rm -rf conftest.dSYM
21868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21872 if test "$cross_compiling" = yes; then
21873 # Depending upon the size, compute the lo and hi bounds.
21874 cat >conftest.$ac_ext <<_ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h. */
21880 #include <stddef.h>
21884 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21891 rm -f conftest.$ac_objext
21892 if { (ac_try="$ac_compile"
21893 case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21898 $as_echo "$ac_try_echo") >&5
21899 (eval "$ac_compile") 2>conftest.er1
21901 grep -v '^ *+' conftest.er1 >conftest.err
21903 cat conftest.err >&5
21904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && {
21906 test -z "$ac_c_werror_flag" ||
21907 test ! -s conftest.err
21908 } && test -s conftest.$ac_objext; then
21911 cat >conftest.$ac_ext <<_ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 #include <stddef.h>
21921 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21928 rm -f conftest.$ac_objext
21929 if { (ac_try="$ac_compile"
21930 case "(($ac_try" in
21931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932 *) ac_try_echo=$ac_try;;
21934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21935 $as_echo "$ac_try_echo") >&5
21936 (eval "$ac_compile") 2>conftest.er1
21938 grep -v '^ *+' conftest.er1 >conftest.err
21940 cat conftest.err >&5
21941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } && {
21943 test -z "$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21945 } && test -s conftest.$ac_objext; then
21946 ac_hi=$ac_mid; break
21948 $as_echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21951 ac_lo=`expr $ac_mid + 1`
21952 if test $ac_lo -le $ac_mid; then
21956 ac_mid=`expr 2 '*' $ac_mid + 1`
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962 $as_echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965 cat >conftest.$ac_ext <<_ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21971 #include <stddef.h>
21975 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21982 rm -f conftest.$ac_objext
21983 if { (ac_try="$ac_compile"
21984 case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21989 $as_echo "$ac_try_echo") >&5
21990 (eval "$ac_compile") 2>conftest.er1
21992 grep -v '^ *+' conftest.er1 >conftest.err
21994 cat conftest.err >&5
21995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest.$ac_objext; then
22002 cat >conftest.$ac_ext <<_ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 #include <stddef.h>
22012 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22019 rm -f conftest.$ac_objext
22020 if { (ac_try="$ac_compile"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22026 $as_echo "$ac_try_echo") >&5
22027 (eval "$ac_compile") 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } && {
22034 test -z "$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22036 } && test -s conftest.$ac_objext; then
22037 ac_lo=$ac_mid; break
22039 $as_echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 ac_hi=`expr '(' $ac_mid ')' - 1`
22043 if test $ac_mid -le $ac_hi; then
22047 ac_mid=`expr 2 '*' $ac_mid`
22050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 $as_echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 # Binary search between lo and hi bounds.
22064 while test "x$ac_lo" != "x$ac_hi"; do
22065 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22066 cat >conftest.$ac_ext <<_ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072 #include <stddef.h>
22076 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22083 rm -f conftest.$ac_objext
22084 if { (ac_try="$ac_compile"
22085 case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22090 $as_echo "$ac_try_echo") >&5
22091 (eval "$ac_compile") 2>conftest.er1
22093 grep -v '^ *+' conftest.er1 >conftest.err
22095 cat conftest.err >&5
22096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } && {
22098 test -z "$ac_c_werror_flag" ||
22099 test ! -s conftest.err
22100 } && test -s conftest.$ac_objext; then
22103 $as_echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ac_lo=`expr '(' $ac_mid ')' + 1`
22109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22112 ?*) fits_in_uint=$ac_lo;;
22116 cat >conftest.$ac_ext <<_ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22122 #include <stddef.h>
22123 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22124 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22126 #include <stdlib.h>
22131 FILE *f = fopen ("conftest.val", "w");
22134 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22136 long int i = longval ();
22137 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22139 fprintf (f, "%ld", i);
22143 unsigned long int i = ulongval ();
22144 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22146 fprintf (f, "%lu", i);
22148 /* Do not output a trailing newline, as this causes \r\n confusion
22149 on some platforms. */
22150 return ferror (f) || fclose (f) != 0;
22156 rm -f conftest$ac_exeext
22157 if { (ac_try="$ac_link"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22163 $as_echo "$ac_try_echo") >&5
22164 (eval "$ac_link") 2>&5
22166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22168 { (case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22173 $as_echo "$ac_try_echo") >&5
22174 (eval "$ac_try") 2>&5
22176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 fits_in_uint=`cat conftest.val`
22180 $as_echo "$as_me: program exited with status $ac_status" >&5
22181 $as_echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ( exit $ac_status )
22187 rm -rf conftest.dSYM
22188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22192 if test "$fits_in_uint" = 1; then
22193 cat >conftest.$ac_ext <<_ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22199 #include <stddef.h>
22201 extern unsigned long foo;
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22218 $as_echo "$ac_try_echo") >&5
22219 (eval "$ac_compile") 2>conftest.er1
22221 grep -v '^ *+' conftest.er1 >conftest.err
22223 cat conftest.err >&5
22224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest.$ac_objext; then
22231 $as_echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239 if test -z "$result"; then
22240 if test "$fits_in_uint" = 1; then
22241 result="$res_hi$res_lo"U
22243 result="$res_hi$res_lo"UL
22246 result='~(size_t)0'
22249 { $as_echo "$as_me:$LINENO: result: $result" >&5
22250 $as_echo "$result" >&6; }
22251 if test "$result" != yes; then
22253 cat >>confdefs.h <<_ACEOF
22254 #define SIZE_MAX $result
22263 for ac_header in stdint.h
22265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22267 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22268 $as_echo_n "checking for $ac_header... " >&6; }
22269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22270 $as_echo_n "(cached) " >&6
22272 ac_res=`eval 'as_val=${'$as_ac_Header'}
22273 $as_echo "$as_val"'`
22274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22275 $as_echo "$ac_res" >&6; }
22277 # Is the header compilable?
22278 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22279 $as_echo_n "checking $ac_header usability... " >&6; }
22280 cat >conftest.$ac_ext <<_ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 $ac_includes_default
22287 #include <$ac_header>
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22296 $as_echo "$ac_try_echo") >&5
22297 (eval "$ac_compile") 2>conftest.er1
22299 grep -v '^ *+' conftest.er1 >conftest.err
22301 cat conftest.err >&5
22302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } && {
22304 test -z "$ac_c_werror_flag" ||
22305 test ! -s conftest.err
22306 } && test -s conftest.$ac_objext; then
22307 ac_header_compiler=yes
22309 $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22312 ac_header_compiler=no
22315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22317 $as_echo "$ac_header_compiler" >&6; }
22319 # Is the header present?
22320 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22321 $as_echo_n "checking $ac_header presence... " >&6; }
22322 cat >conftest.$ac_ext <<_ACEOF
22325 cat confdefs.h >>conftest.$ac_ext
22326 cat >>conftest.$ac_ext <<_ACEOF
22327 /* end confdefs.h. */
22328 #include <$ac_header>
22330 if { (ac_try="$ac_cpp conftest.$ac_ext"
22331 case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22336 $as_echo "$ac_try_echo") >&5
22337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22339 grep -v '^ *+' conftest.er1 >conftest.err
22341 cat conftest.err >&5
22342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } >/dev/null && {
22344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22347 ac_header_preproc=yes
22349 $as_echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22352 ac_header_preproc=no
22355 rm -f conftest.err conftest.$ac_ext
22356 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22357 $as_echo "$ac_header_preproc" >&6; }
22359 # So? What about this header?
22360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22363 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22366 ac_header_preproc=yes
22369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22370 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22372 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22374 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22376 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22380 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22385 $as_echo_n "checking for $ac_header... " >&6; }
22386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22387 $as_echo_n "(cached) " >&6
22389 eval "$as_ac_Header=\$ac_header_preproc"
22391 ac_res=`eval 'as_val=${'$as_ac_Header'}
22392 $as_echo "$as_val"'`
22393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22394 $as_echo "$ac_res" >&6; }
22397 as_val=`eval 'as_val=${'$as_ac_Header'}
22398 $as_echo "$as_val"'`
22399 if test "x$as_val" = x""yes; then
22400 cat >>confdefs.h <<_ACEOF
22401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22415 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22416 $as_echo_n "checking for ptrdiff_t... " >&6; }
22417 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22418 $as_echo_n "(cached) " >&6
22420 ac_cv_type_ptrdiff_t=no
22421 cat >conftest.$ac_ext <<_ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h. */
22427 $ac_includes_default
22431 if (sizeof (ptrdiff_t))
22437 rm -f conftest.$ac_objext
22438 if { (ac_try="$ac_compile"
22439 case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22444 $as_echo "$ac_try_echo") >&5
22445 (eval "$ac_compile") 2>conftest.er1
22447 grep -v '^ *+' conftest.er1 >conftest.err
22449 cat conftest.err >&5
22450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); } && {
22452 test -z "$ac_c_werror_flag" ||
22453 test ! -s conftest.err
22454 } && test -s conftest.$ac_objext; then
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 $ac_includes_default
22465 if (sizeof ((ptrdiff_t)))
22471 rm -f conftest.$ac_objext
22472 if { (ac_try="$ac_compile"
22473 case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22478 $as_echo "$ac_try_echo") >&5
22479 (eval "$ac_compile") 2>conftest.er1
22481 grep -v '^ *+' conftest.er1 >conftest.err
22483 cat conftest.err >&5
22484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } && {
22486 test -z "$ac_c_werror_flag" ||
22487 test ! -s conftest.err
22488 } && test -s conftest.$ac_objext; then
22491 $as_echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_cv_type_ptrdiff_t=yes
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22499 $as_echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22508 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
22509 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
22513 cat >>confdefs.h <<\_ACEOF
22514 #define ptrdiff_t long
22530 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22531 stdlib.h string.h unistd.h sys/param.h
22533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22535 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22536 $as_echo_n "checking for $ac_header... " >&6; }
22537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22538 $as_echo_n "(cached) " >&6
22540 ac_res=`eval 'as_val=${'$as_ac_Header'}
22541 $as_echo "$as_val"'`
22542 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22543 $as_echo "$ac_res" >&6; }
22545 # Is the header compilable?
22546 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22547 $as_echo_n "checking $ac_header usability... " >&6; }
22548 cat >conftest.$ac_ext <<_ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22554 $ac_includes_default
22555 #include <$ac_header>
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561 *) ac_try_echo=$ac_try;;
22563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22564 $as_echo "$ac_try_echo") >&5
22565 (eval "$ac_compile") 2>conftest.er1
22567 grep -v '^ *+' conftest.er1 >conftest.err
22569 cat conftest.err >&5
22570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } && {
22572 test -z "$ac_c_werror_flag" ||
22573 test ! -s conftest.err
22574 } && test -s conftest.$ac_objext; then
22575 ac_header_compiler=yes
22577 $as_echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22580 ac_header_compiler=no
22583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22584 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22585 $as_echo "$ac_header_compiler" >&6; }
22587 # Is the header present?
22588 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22589 $as_echo_n "checking $ac_header presence... " >&6; }
22590 cat >conftest.$ac_ext <<_ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22596 #include <$ac_header>
22598 if { (ac_try="$ac_cpp conftest.$ac_ext"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22604 $as_echo "$ac_try_echo") >&5
22605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } >/dev/null && {
22612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22613 test ! -s conftest.err
22615 ac_header_preproc=yes
22617 $as_echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 ac_header_preproc=no
22623 rm -f conftest.err conftest.$ac_ext
22624 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22625 $as_echo "$ac_header_preproc" >&6; }
22627 # So? What about this header?
22628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22631 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22633 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22634 ac_header_preproc=yes
22637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22638 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22640 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22642 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22644 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22648 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22653 $as_echo_n "checking for $ac_header... " >&6; }
22654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22655 $as_echo_n "(cached) " >&6
22657 eval "$as_ac_Header=\$ac_header_preproc"
22659 ac_res=`eval 'as_val=${'$as_ac_Header'}
22660 $as_echo "$as_val"'`
22661 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22662 $as_echo "$ac_res" >&6; }
22665 as_val=`eval 'as_val=${'$as_ac_Header'}
22666 $as_echo "$as_val"'`
22667 if test "x$as_val" = x""yes; then
22668 cat >>confdefs.h <<_ACEOF
22669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22699 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22700 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22701 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22705 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22706 $as_echo_n "checking for $ac_func... " >&6; }
22707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22708 $as_echo_n "(cached) " >&6
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22718 #define $ac_func innocuous_$ac_func
22720 /* System header to define __stub macros and hopefully few prototypes,
22721 which can conflict with char $ac_func (); below.
22722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22723 <limits.h> exists even on freestanding compilers. */
22726 # include <limits.h>
22728 # include <assert.h>
22733 /* Override any GCC internal prototype to avoid an error.
22734 Use char because int might match the return type of a GCC
22735 builtin and then its argument prototype would still apply. */
22740 /* The GNU C library defines this for functions which it implements
22741 to always fail with ENOSYS. Some functions are actually named
22742 something starting with __ and the normal name is an alias. */
22743 #if defined __stub_$ac_func || defined __stub___$ac_func
22750 return $ac_func ();
22755 rm -f conftest.$ac_objext conftest$ac_exeext
22756 if { (ac_try="$ac_link"
22757 case "(($ac_try" in
22758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759 *) ac_try_echo=$ac_try;;
22761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22762 $as_echo "$ac_try_echo") >&5
22763 (eval "$ac_link") 2>conftest.er1
22765 grep -v '^ *+' conftest.er1 >conftest.err
22767 cat conftest.err >&5
22768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); } && {
22770 test -z "$ac_c_werror_flag" ||
22771 test ! -s conftest.err
22772 } && test -s conftest$ac_exeext && {
22773 test "$cross_compiling" = yes ||
22774 $as_test_x conftest$ac_exeext
22776 eval "$as_ac_var=yes"
22778 $as_echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22781 eval "$as_ac_var=no"
22784 rm -rf conftest.dSYM
22785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22786 conftest$ac_exeext conftest.$ac_ext
22788 ac_res=`eval 'as_val=${'$as_ac_var'}
22789 $as_echo "$as_val"'`
22790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22791 $as_echo "$ac_res" >&6; }
22792 as_val=`eval 'as_val=${'$as_ac_var'}
22793 $as_echo "$as_val"'`
22794 if test "x$as_val" = x""yes; then
22795 cat >>confdefs.h <<_ACEOF
22796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22804 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22805 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22806 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22807 $as_echo_n "(cached) " >&6
22809 cat >conftest.$ac_ext <<_ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22821 char *p = (char *) _snprintf;
22828 rm -f conftest.$ac_objext
22829 if { (ac_try="$ac_compile"
22830 case "(($ac_try" in
22831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832 *) ac_try_echo=$ac_try;;
22834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22835 $as_echo "$ac_try_echo") >&5
22836 (eval "$ac_compile") 2>conftest.er1
22838 grep -v '^ *+' conftest.er1 >conftest.err
22840 cat conftest.err >&5
22841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && {
22843 test -z "$ac_c_werror_flag" ||
22844 test ! -s conftest.err
22845 } && test -s conftest.$ac_objext; then
22846 ac_cv_have_decl__snprintf=yes
22848 $as_echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22851 ac_cv_have_decl__snprintf=no
22854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22857 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22858 if test $ac_cv_have_decl__snprintf = yes; then
22864 cat >>confdefs.h <<_ACEOF
22865 #define HAVE_DECL__SNPRINTF $gt_value
22870 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22871 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
22872 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22873 $as_echo_n "(cached) " >&6
22875 cat >conftest.$ac_ext <<_ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h. */
22887 char *p = (char *) _snwprintf;
22894 rm -f conftest.$ac_objext
22895 if { (ac_try="$ac_compile"
22896 case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22901 $as_echo "$ac_try_echo") >&5
22902 (eval "$ac_compile") 2>conftest.er1
22904 grep -v '^ *+' conftest.er1 >conftest.err
22906 cat conftest.err >&5
22907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest.$ac_objext; then
22912 ac_cv_have_decl__snwprintf=yes
22914 $as_echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22917 ac_cv_have_decl__snwprintf=no
22920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22922 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22923 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
22924 if test $ac_cv_have_decl__snwprintf = yes; then
22930 cat >>confdefs.h <<_ACEOF
22931 #define HAVE_DECL__SNWPRINTF $gt_value
22937 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22938 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
22939 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22940 $as_echo_n "(cached) " >&6
22942 cat >conftest.$ac_ext <<_ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22953 #ifndef feof_unlocked
22954 char *p = (char *) feof_unlocked;
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22968 $as_echo "$ac_try_echo") >&5
22969 (eval "$ac_compile") 2>conftest.er1
22971 grep -v '^ *+' conftest.er1 >conftest.err
22973 cat conftest.err >&5
22974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } && {
22976 test -z "$ac_c_werror_flag" ||
22977 test ! -s conftest.err
22978 } && test -s conftest.$ac_objext; then
22979 ac_cv_have_decl_feof_unlocked=yes
22981 $as_echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 ac_cv_have_decl_feof_unlocked=no
22987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22990 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
22991 if test $ac_cv_have_decl_feof_unlocked = yes; then
22997 cat >>confdefs.h <<_ACEOF
22998 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
23003 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23004 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
23005 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23006 $as_echo_n "(cached) " >&6
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23019 #ifndef fgets_unlocked
23020 char *p = (char *) fgets_unlocked;
23027 rm -f conftest.$ac_objext
23028 if { (ac_try="$ac_compile"
23029 case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23034 $as_echo "$ac_try_echo") >&5
23035 (eval "$ac_compile") 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } && {
23042 test -z "$ac_c_werror_flag" ||
23043 test ! -s conftest.err
23044 } && test -s conftest.$ac_objext; then
23045 ac_cv_have_decl_fgets_unlocked=yes
23047 $as_echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23050 ac_cv_have_decl_fgets_unlocked=no
23053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23055 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23056 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
23057 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23063 cat >>confdefs.h <<_ACEOF
23064 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
23069 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23070 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
23071 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23072 $as_echo_n "(cached) " >&6
23074 cat >conftest.$ac_ext <<_ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h. */
23085 #ifndef getc_unlocked
23086 char *p = (char *) getc_unlocked;
23093 rm -f conftest.$ac_objext
23094 if { (ac_try="$ac_compile"
23095 case "(($ac_try" in
23096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23097 *) ac_try_echo=$ac_try;;
23099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23100 $as_echo "$ac_try_echo") >&5
23101 (eval "$ac_compile") 2>conftest.er1
23103 grep -v '^ *+' conftest.er1 >conftest.err
23105 cat conftest.err >&5
23106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } && {
23108 test -z "$ac_c_werror_flag" ||
23109 test ! -s conftest.err
23110 } && test -s conftest.$ac_objext; then
23111 ac_cv_have_decl_getc_unlocked=yes
23113 $as_echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23116 ac_cv_have_decl_getc_unlocked=no
23119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23121 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23122 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
23123 if test $ac_cv_have_decl_getc_unlocked = yes; then
23129 cat >>confdefs.h <<_ACEOF
23130 #define HAVE_DECL_GETC_UNLOCKED $gt_value
23135 case $gt_cv_func_printf_posix in
23136 *yes) HAVE_POSIX_PRINTF=1 ;;
23137 *) HAVE_POSIX_PRINTF=0 ;;
23140 if test "$ac_cv_func_asprintf" = yes; then
23146 if test "$ac_cv_func_snprintf" = yes; then
23152 if test "$ac_cv_func_wprintf" = yes; then
23164 am_save_CPPFLAGS="$CPPFLAGS"
23166 for element in $INCICONV; do
23168 for x in $CPPFLAGS; do
23170 acl_save_prefix="$prefix"
23171 prefix="$acl_final_prefix"
23172 acl_save_exec_prefix="$exec_prefix"
23173 exec_prefix="$acl_final_exec_prefix"
23175 exec_prefix="$acl_save_exec_prefix"
23176 prefix="$acl_save_prefix"
23178 if test "X$x" = "X$element"; then
23183 if test -z "$haveit"; then
23184 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23189 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
23190 $as_echo_n "checking for iconv... " >&6; }
23191 if test "${am_cv_func_iconv+set}" = set; then
23192 $as_echo_n "(cached) " >&6
23195 am_cv_func_iconv="no, consider installing GNU libiconv"
23197 cat >conftest.$ac_ext <<_ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 #include <stdlib.h>
23208 iconv_t cd = iconv_open("","");
23209 iconv(cd,NULL,NULL,NULL,NULL);
23215 rm -f conftest.$ac_objext conftest$ac_exeext
23216 if { (ac_try="$ac_link"
23217 case "(($ac_try" in
23218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219 *) ac_try_echo=$ac_try;;
23221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23222 $as_echo "$ac_try_echo") >&5
23223 (eval "$ac_link") 2>conftest.er1
23225 grep -v '^ *+' conftest.er1 >conftest.err
23227 cat conftest.err >&5
23228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); } && {
23230 test -z "$ac_c_werror_flag" ||
23231 test ! -s conftest.err
23232 } && test -s conftest$ac_exeext && {
23233 test "$cross_compiling" = yes ||
23234 $as_test_x conftest$ac_exeext
23236 am_cv_func_iconv=yes
23238 $as_echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23244 rm -rf conftest.dSYM
23245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23246 conftest$ac_exeext conftest.$ac_ext
23247 if test "$am_cv_func_iconv" != yes; then
23248 am_save_LIBS="$LIBS"
23249 LIBS="$LIBS $LIBICONV"
23250 cat >conftest.$ac_ext <<_ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 #include <stdlib.h>
23261 iconv_t cd = iconv_open("","");
23262 iconv(cd,NULL,NULL,NULL,NULL);
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23275 $as_echo "$ac_try_echo") >&5
23276 (eval "$ac_link") 2>conftest.er1
23278 grep -v '^ *+' conftest.er1 >conftest.err
23280 cat conftest.err >&5
23281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); } && {
23283 test -z "$ac_c_werror_flag" ||
23284 test ! -s conftest.err
23285 } && test -s conftest$ac_exeext && {
23286 test "$cross_compiling" = yes ||
23287 $as_test_x conftest$ac_exeext
23289 am_cv_lib_iconv=yes
23290 am_cv_func_iconv=yes
23292 $as_echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23298 rm -rf conftest.dSYM
23299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23300 conftest$ac_exeext conftest.$ac_ext
23301 LIBS="$am_save_LIBS"
23305 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23306 $as_echo "$am_cv_func_iconv" >&6; }
23307 if test "$am_cv_func_iconv" = yes; then
23309 cat >>confdefs.h <<\_ACEOF
23310 #define HAVE_ICONV 1
23314 if test "$am_cv_lib_iconv" = yes; then
23315 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23316 $as_echo_n "checking how to link with libiconv... " >&6; }
23317 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
23318 $as_echo "$LIBICONV" >&6; }
23320 CPPFLAGS="$am_save_CPPFLAGS"
23327 if test "$am_cv_func_iconv" = yes; then
23328 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
23329 $as_echo_n "checking for iconv declaration... " >&6; }
23330 if test "${am_cv_proto_iconv+set}" = set; then
23331 $as_echo_n "(cached) " >&6
23334 cat >conftest.$ac_ext <<_ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h. */
23341 #include <stdlib.h>
23347 #if defined(__STDC__) || defined(__cplusplus)
23348 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23361 rm -f conftest.$ac_objext
23362 if { (ac_try="$ac_compile"
23363 case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369 (eval "$ac_compile") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest.$ac_objext; then
23379 am_cv_proto_iconv_arg1=""
23381 $as_echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 am_cv_proto_iconv_arg1="const"
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 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);"
23391 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23392 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
23393 }$am_cv_proto_iconv" >&5
23395 }$am_cv_proto_iconv" >&6; }
23397 cat >>confdefs.h <<_ACEOF
23398 #define ICONV_CONST $am_cv_proto_iconv_arg1
23404 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23405 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23406 if test "${am_cv_langinfo_codeset+set}" = set; then
23407 $as_echo_n "(cached) " >&6
23409 cat >conftest.$ac_ext <<_ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23415 #include <langinfo.h>
23419 char* cs = nl_langinfo(CODESET);
23424 rm -f conftest.$ac_objext conftest$ac_exeext
23425 if { (ac_try="$ac_link"
23426 case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23431 $as_echo "$ac_try_echo") >&5
23432 (eval "$ac_link") 2>conftest.er1
23434 grep -v '^ *+' conftest.er1 >conftest.err
23436 cat conftest.err >&5
23437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); } && {
23439 test -z "$ac_c_werror_flag" ||
23440 test ! -s conftest.err
23441 } && test -s conftest$ac_exeext && {
23442 test "$cross_compiling" = yes ||
23443 $as_test_x conftest$ac_exeext
23445 am_cv_langinfo_codeset=yes
23447 $as_echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23450 am_cv_langinfo_codeset=no
23453 rm -rf conftest.dSYM
23454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23455 conftest$ac_exeext conftest.$ac_ext
23458 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
23459 $as_echo "$am_cv_langinfo_codeset" >&6; }
23460 if test $am_cv_langinfo_codeset = yes; then
23462 cat >>confdefs.h <<\_ACEOF
23463 #define HAVE_LANGINFO_CODESET 1
23468 if test $ac_cv_header_locale_h = yes; then
23470 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23471 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23472 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
23473 $as_echo_n "(cached) " >&6
23475 cat >conftest.$ac_ext <<_ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h. */
23481 #include <locale.h>
23490 rm -f conftest.$ac_objext conftest$ac_exeext
23491 if { (ac_try="$ac_link"
23492 case "(($ac_try" in
23493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494 *) ac_try_echo=$ac_try;;
23496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23497 $as_echo "$ac_try_echo") >&5
23498 (eval "$ac_link") 2>conftest.er1
23500 grep -v '^ *+' conftest.er1 >conftest.err
23502 cat conftest.err >&5
23503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && {
23505 test -z "$ac_c_werror_flag" ||
23506 test ! -s conftest.err
23507 } && test -s conftest$ac_exeext && {
23508 test "$cross_compiling" = yes ||
23509 $as_test_x conftest$ac_exeext
23511 gt_cv_val_LC_MESSAGES=yes
23513 $as_echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 gt_cv_val_LC_MESSAGES=no
23519 rm -rf conftest.dSYM
23520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23521 conftest$ac_exeext conftest.$ac_ext
23523 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23524 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
23525 if test $gt_cv_val_LC_MESSAGES = yes; then
23527 cat >>confdefs.h <<\_ACEOF
23528 #define HAVE_LC_MESSAGES 1
23535 if test -n "$INTL_MACOSX_LIBS"; then
23536 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23539 for ac_prog in bison
23541 # Extract the first word of "$ac_prog", so it can be a program name with args.
23542 set dummy $ac_prog; ac_word=$2
23543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23544 $as_echo_n "checking for $ac_word... " >&6; }
23545 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23546 $as_echo_n "(cached) " >&6
23548 if test -n "$INTLBISON"; then
23549 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23552 for as_dir in $PATH
23555 test -z "$as_dir" && as_dir=.
23556 for ac_exec_ext in '' $ac_executable_extensions; do
23557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23558 ac_cv_prog_INTLBISON="$ac_prog"
23559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23568 INTLBISON=$ac_cv_prog_INTLBISON
23569 if test -n "$INTLBISON"; then
23570 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
23571 $as_echo "$INTLBISON" >&6; }
23573 { $as_echo "$as_me:$LINENO: result: no" >&5
23574 $as_echo "no" >&6; }
23578 test -n "$INTLBISON" && break
23581 if test -z "$INTLBISON"; then
23584 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
23585 $as_echo_n "checking version of bison... " >&6; }
23586 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23587 case $ac_prog_version in
23588 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23589 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23590 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23591 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23593 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23594 $as_echo "$ac_prog_version" >&6; }
23596 if test $ac_verc_fail = yes; then
23615 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23616 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23617 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23618 $as_echo_n "(cached) " >&6
23620 gt_save_CPPFLAGS="$CPPFLAGS"
23621 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23622 gt_save_LIBS="$LIBS"
23623 LIBS="$LIBS -framework CoreFoundation"
23624 cat >conftest.$ac_ext <<_ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h. */
23630 #include <CFPreferences.h>
23634 CFPreferencesCopyAppValue(NULL, NULL)
23639 rm -f conftest.$ac_objext conftest$ac_exeext
23640 if { (ac_try="$ac_link"
23641 case "(($ac_try" in
23642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23643 *) ac_try_echo=$ac_try;;
23645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23646 $as_echo "$ac_try_echo") >&5
23647 (eval "$ac_link") 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && {
23654 test -z "$ac_c_werror_flag" ||
23655 test ! -s conftest.err
23656 } && test -s conftest$ac_exeext && {
23657 test "$cross_compiling" = yes ||
23658 $as_test_x conftest$ac_exeext
23660 gt_cv_func_CFPreferencesCopyAppValue=yes
23662 $as_echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23665 gt_cv_func_CFPreferencesCopyAppValue=no
23668 rm -rf conftest.dSYM
23669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23670 conftest$ac_exeext conftest.$ac_ext
23671 CPPFLAGS="$gt_save_CPPFLAGS"
23672 LIBS="$gt_save_LIBS"
23674 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23675 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23676 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23678 cat >>confdefs.h <<\_ACEOF
23679 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23683 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23684 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
23685 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23686 $as_echo_n "(cached) " >&6
23688 gt_save_CPPFLAGS="$CPPFLAGS"
23689 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23690 gt_save_LIBS="$LIBS"
23691 LIBS="$LIBS -framework CoreFoundation"
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 #include <CFLocale.h>
23702 CFLocaleCopyCurrent();
23707 rm -f conftest.$ac_objext conftest$ac_exeext
23708 if { (ac_try="$ac_link"
23709 case "(($ac_try" in
23710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23711 *) ac_try_echo=$ac_try;;
23713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23714 $as_echo "$ac_try_echo") >&5
23715 (eval "$ac_link") 2>conftest.er1
23717 grep -v '^ *+' conftest.er1 >conftest.err
23719 cat conftest.err >&5
23720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } && {
23722 test -z "$ac_c_werror_flag" ||
23723 test ! -s conftest.err
23724 } && test -s conftest$ac_exeext && {
23725 test "$cross_compiling" = yes ||
23726 $as_test_x conftest$ac_exeext
23728 gt_cv_func_CFLocaleCopyCurrent=yes
23730 $as_echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23733 gt_cv_func_CFLocaleCopyCurrent=no
23736 rm -rf conftest.dSYM
23737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23738 conftest$ac_exeext conftest.$ac_ext
23739 CPPFLAGS="$gt_save_CPPFLAGS"
23740 LIBS="$gt_save_LIBS"
23742 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23743 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23744 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23746 cat >>confdefs.h <<\_ACEOF
23747 #define HAVE_CFLOCALECOPYCURRENT 1
23752 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23753 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23759 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23760 $as_echo_n "checking whether NLS is requested... " >&6; }
23761 # Check whether --enable-nls was given.
23762 if test "${enable_nls+set}" = set; then
23763 enableval=$enable_nls; USE_NLS=$enableval
23768 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
23769 $as_echo "$USE_NLS" >&6; }
23774 BUILD_INCLUDED_LIBINTL=no
23775 USE_INCLUDED_LIBINTL=no
23781 if test "$USE_NLS" = "yes"; then
23782 gt_use_preinstalled_gnugettext=no
23784 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23785 $as_echo_n "checking whether included gettext is requested... " >&6; }
23787 # Check whether --with-included-gettext was given.
23788 if test "${with_included_gettext+set}" = set; then
23789 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23791 nls_cv_force_use_gnu_gettext=no
23794 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23795 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
23797 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23798 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23805 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23806 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23807 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23808 $as_echo_n "(cached) " >&6
23810 cat >conftest.$ac_ext <<_ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h. */
23816 #include <libintl.h>
23817 extern int _nl_msg_cat_cntr;
23818 extern int *_nl_domain_bindings;
23822 bindtextdomain ("", "");
23823 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23828 rm -f conftest.$ac_objext conftest$ac_exeext
23829 if { (ac_try="$ac_link"
23830 case "(($ac_try" in
23831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832 *) ac_try_echo=$ac_try;;
23834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23835 $as_echo "$ac_try_echo") >&5
23836 (eval "$ac_link") 2>conftest.er1
23838 grep -v '^ *+' conftest.er1 >conftest.err
23840 cat conftest.err >&5
23841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest$ac_exeext && {
23846 test "$cross_compiling" = yes ||
23847 $as_test_x conftest$ac_exeext
23849 gt_cv_func_gnugettext1_libc=yes
23851 $as_echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23854 gt_cv_func_gnugettext1_libc=no
23857 rm -rf conftest.dSYM
23858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23859 conftest$ac_exeext conftest.$ac_ext
23861 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23862 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
23864 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23870 acl_save_prefix="$prefix"
23871 prefix="$acl_final_prefix"
23872 acl_save_exec_prefix="$exec_prefix"
23873 exec_prefix="$acl_final_exec_prefix"
23875 eval additional_includedir=\"$includedir\"
23876 eval additional_libdir=\"$libdir\"
23878 exec_prefix="$acl_save_exec_prefix"
23879 prefix="$acl_save_prefix"
23882 # Check whether --with-libintl-prefix was given.
23883 if test "${with_libintl_prefix+set}" = set; then
23884 withval=$with_libintl_prefix;
23885 if test "X$withval" = "Xno"; then
23888 if test "X$withval" = "X"; then
23890 acl_save_prefix="$prefix"
23891 prefix="$acl_final_prefix"
23892 acl_save_exec_prefix="$exec_prefix"
23893 exec_prefix="$acl_final_exec_prefix"
23895 eval additional_includedir=\"$includedir\"
23896 eval additional_libdir=\"$libdir\"
23898 exec_prefix="$acl_save_exec_prefix"
23899 prefix="$acl_save_prefix"
23902 additional_includedir="$withval/include"
23903 additional_libdir="$withval/lib"
23914 names_already_handled=
23915 names_next_round='intl '
23916 while test -n "$names_next_round"; do
23917 names_this_round="$names_next_round"
23919 for name in $names_this_round; do
23921 for n in $names_already_handled; do
23922 if test "$n" = "$name"; then
23923 already_handled=yes
23927 if test -z "$already_handled"; then
23928 names_already_handled="$names_already_handled $name"
23929 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23930 eval value=\"\$HAVE_LIB$uppername\"
23931 if test -n "$value"; then
23932 if test "$value" = yes; then
23933 eval value=\"\$LIB$uppername\"
23934 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23935 eval value=\"\$LTLIB$uppername\"
23936 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23945 if test $use_additional = yes; then
23946 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23947 found_dir="$additional_libdir"
23948 found_so="$additional_libdir/lib$name.$shlibext"
23949 if test -f "$additional_libdir/lib$name.la"; then
23950 found_la="$additional_libdir/lib$name.la"
23953 if test -f "$additional_libdir/lib$name.$libext"; then
23954 found_dir="$additional_libdir"
23955 found_a="$additional_libdir/lib$name.$libext"
23956 if test -f "$additional_libdir/lib$name.la"; then
23957 found_la="$additional_libdir/lib$name.la"
23962 if test "X$found_dir" = "X"; then
23963 for x in $LDFLAGS $LTLIBINTL; do
23965 acl_save_prefix="$prefix"
23966 prefix="$acl_final_prefix"
23967 acl_save_exec_prefix="$exec_prefix"
23968 exec_prefix="$acl_final_exec_prefix"
23970 exec_prefix="$acl_save_exec_prefix"
23971 prefix="$acl_save_prefix"
23975 dir=`echo "X$x" | sed -e 's/^X-L//'`
23976 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23978 found_so="$dir/lib$name.$shlibext"
23979 if test -f "$dir/lib$name.la"; then
23980 found_la="$dir/lib$name.la"
23983 if test -f "$dir/lib$name.$libext"; then
23985 found_a="$dir/lib$name.$libext"
23986 if test -f "$dir/lib$name.la"; then
23987 found_la="$dir/lib$name.la"
23993 if test "X$found_dir" != "X"; then
23998 if test "X$found_dir" != "X"; then
23999 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24000 if test "X$found_so" != "X"; then
24001 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24002 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24005 for x in $ltrpathdirs; do
24006 if test "X$x" = "X$found_dir"; then
24011 if test -z "$haveit"; then
24012 ltrpathdirs="$ltrpathdirs $found_dir"
24014 if test "$hardcode_direct" = yes; then
24015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24018 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24020 for x in $rpathdirs; do
24021 if test "X$x" = "X$found_dir"; then
24026 if test -z "$haveit"; then
24027 rpathdirs="$rpathdirs $found_dir"
24031 for x in $LDFLAGS $LIBINTL; do
24033 acl_save_prefix="$prefix"
24034 prefix="$acl_final_prefix"
24035 acl_save_exec_prefix="$exec_prefix"
24036 exec_prefix="$acl_final_exec_prefix"
24038 exec_prefix="$acl_save_exec_prefix"
24039 prefix="$acl_save_prefix"
24041 if test "X$x" = "X-L$found_dir"; then
24046 if test -z "$haveit"; then
24047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24049 if test "$hardcode_minus_L" != no; then
24050 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24052 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24058 if test "X$found_a" != "X"; then
24059 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24061 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24064 additional_includedir=
24065 case "$found_dir" in
24067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24068 additional_includedir="$basedir/include"
24071 if test "X$additional_includedir" != "X"; then
24072 if test "X$additional_includedir" != "X/usr/include"; then
24074 if test "X$additional_includedir" = "X/usr/local/include"; then
24075 if test -n "$GCC"; then
24077 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24081 if test -z "$haveit"; then
24082 for x in $CPPFLAGS $INCINTL; do
24084 acl_save_prefix="$prefix"
24085 prefix="$acl_final_prefix"
24086 acl_save_exec_prefix="$exec_prefix"
24087 exec_prefix="$acl_final_exec_prefix"
24089 exec_prefix="$acl_save_exec_prefix"
24090 prefix="$acl_save_prefix"
24092 if test "X$x" = "X-I$additional_includedir"; then
24097 if test -z "$haveit"; then
24098 if test -d "$additional_includedir"; then
24099 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24105 if test -n "$found_la"; then
24106 save_libdir="$libdir"
24107 case "$found_la" in
24108 */* | *\\*) . "$found_la" ;;
24109 *) . "./$found_la" ;;
24111 libdir="$save_libdir"
24112 for dep in $dependency_libs; do
24115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24116 if test "X$additional_libdir" != "X/usr/lib"; then
24118 if test "X$additional_libdir" = "X/usr/local/lib"; then
24119 if test -n "$GCC"; then
24121 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24125 if test -z "$haveit"; then
24127 for x in $LDFLAGS $LIBINTL; do
24129 acl_save_prefix="$prefix"
24130 prefix="$acl_final_prefix"
24131 acl_save_exec_prefix="$exec_prefix"
24132 exec_prefix="$acl_final_exec_prefix"
24134 exec_prefix="$acl_save_exec_prefix"
24135 prefix="$acl_save_prefix"
24137 if test "X$x" = "X-L$additional_libdir"; then
24142 if test -z "$haveit"; then
24143 if test -d "$additional_libdir"; then
24144 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24148 for x in $LDFLAGS $LTLIBINTL; do
24150 acl_save_prefix="$prefix"
24151 prefix="$acl_final_prefix"
24152 acl_save_exec_prefix="$exec_prefix"
24153 exec_prefix="$acl_final_exec_prefix"
24155 exec_prefix="$acl_save_exec_prefix"
24156 prefix="$acl_save_prefix"
24158 if test "X$x" = "X-L$additional_libdir"; then
24163 if test -z "$haveit"; then
24164 if test -d "$additional_libdir"; then
24165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24173 if test "$enable_rpath" != no; then
24175 for x in $rpathdirs; do
24176 if test "X$x" = "X$dir"; then
24181 if test -z "$haveit"; then
24182 rpathdirs="$rpathdirs $dir"
24185 for x in $ltrpathdirs; do
24186 if test "X$x" = "X$dir"; then
24191 if test -z "$haveit"; then
24192 ltrpathdirs="$ltrpathdirs $dir"
24197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24203 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24210 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24217 if test "X$rpathdirs" != "X"; then
24218 if test -n "$hardcode_libdir_separator"; then
24220 for found_dir in $rpathdirs; do
24221 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24223 acl_save_libdir="$libdir"
24225 eval flag=\"$hardcode_libdir_flag_spec\"
24226 libdir="$acl_save_libdir"
24227 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24229 for found_dir in $rpathdirs; do
24230 acl_save_libdir="$libdir"
24231 libdir="$found_dir"
24232 eval flag=\"$hardcode_libdir_flag_spec\"
24233 libdir="$acl_save_libdir"
24234 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24238 if test "X$ltrpathdirs" != "X"; then
24239 for found_dir in $ltrpathdirs; do
24240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24244 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24245 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24246 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
24247 $as_echo_n "(cached) " >&6
24249 gt_save_CPPFLAGS="$CPPFLAGS"
24250 CPPFLAGS="$CPPFLAGS $INCINTL"
24251 gt_save_LIBS="$LIBS"
24252 LIBS="$LIBS $LIBINTL"
24253 cat >conftest.$ac_ext <<_ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h. */
24259 #include <libintl.h>
24260 extern int _nl_msg_cat_cntr;
24265 const char *_nl_expand_alias (const char *);
24269 bindtextdomain ("", "");
24270 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24275 rm -f conftest.$ac_objext conftest$ac_exeext
24276 if { (ac_try="$ac_link"
24277 case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24282 $as_echo "$ac_try_echo") >&5
24283 (eval "$ac_link") 2>conftest.er1
24285 grep -v '^ *+' conftest.er1 >conftest.err
24287 cat conftest.err >&5
24288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest$ac_exeext && {
24293 test "$cross_compiling" = yes ||
24294 $as_test_x conftest$ac_exeext
24296 gt_cv_func_gnugettext1_libintl=yes
24298 $as_echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24301 gt_cv_func_gnugettext1_libintl=no
24304 rm -rf conftest.dSYM
24305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24306 conftest$ac_exeext conftest.$ac_ext
24307 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
24308 LIBS="$LIBS $LIBICONV"
24309 cat >conftest.$ac_ext <<_ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24315 #include <libintl.h>
24316 extern int _nl_msg_cat_cntr;
24321 const char *_nl_expand_alias (const char *);
24325 bindtextdomain ("", "");
24326 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24331 rm -f conftest.$ac_objext conftest$ac_exeext
24332 if { (ac_try="$ac_link"
24333 case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24338 $as_echo "$ac_try_echo") >&5
24339 (eval "$ac_link") 2>conftest.er1
24341 grep -v '^ *+' conftest.er1 >conftest.err
24343 cat conftest.err >&5
24344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); } && {
24346 test -z "$ac_c_werror_flag" ||
24347 test ! -s conftest.err
24348 } && test -s conftest$ac_exeext && {
24349 test "$cross_compiling" = yes ||
24350 $as_test_x conftest$ac_exeext
24352 LIBINTL="$LIBINTL $LIBICONV"
24353 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24354 gt_cv_func_gnugettext1_libintl=yes
24357 $as_echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24363 rm -rf conftest.dSYM
24364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24365 conftest$ac_exeext conftest.$ac_ext
24367 CPPFLAGS="$gt_save_CPPFLAGS"
24368 LIBS="$gt_save_LIBS"
24370 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
24371 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
24374 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
24375 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
24376 && test "$PACKAGE" != gettext-runtime \
24377 && test "$PACKAGE" != gettext-tools; }; then
24378 gt_use_preinstalled_gnugettext=yes
24386 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
24387 nls_cv_use_gnu_gettext=yes
24391 if test "$nls_cv_use_gnu_gettext" = "yes"; then
24392 BUILD_INCLUDED_LIBINTL=yes
24393 USE_INCLUDED_LIBINTL=yes
24394 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
24395 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
24396 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
24400 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24401 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24406 if test -n "$INTL_MACOSX_LIBS"; then
24407 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24408 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24409 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24410 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24414 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24415 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24417 cat >>confdefs.h <<\_ACEOF
24418 #define ENABLE_NLS 1
24426 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
24427 $as_echo_n "checking whether to use NLS... " >&6; }
24428 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
24429 $as_echo "$USE_NLS" >&6; }
24430 if test "$USE_NLS" = "yes"; then
24431 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
24432 $as_echo_n "checking where the gettext function comes from... " >&6; }
24433 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24434 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24435 gt_source="external libintl"
24440 gt_source="included intl directory"
24442 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
24443 $as_echo "$gt_source" >&6; }
24446 if test "$USE_NLS" = "yes"; then
24448 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24449 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24450 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
24451 $as_echo_n "checking how to link with libintl... " >&6; }
24452 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
24453 $as_echo "$LIBINTL" >&6; }
24455 for element in $INCINTL; do
24457 for x in $CPPFLAGS; do
24459 acl_save_prefix="$prefix"
24460 prefix="$acl_final_prefix"
24461 acl_save_exec_prefix="$exec_prefix"
24462 exec_prefix="$acl_final_exec_prefix"
24464 exec_prefix="$acl_save_exec_prefix"
24465 prefix="$acl_save_prefix"
24467 if test "X$x" = "X$element"; then
24472 if test -z "$haveit"; then
24473 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24480 cat >>confdefs.h <<\_ACEOF
24481 #define HAVE_GETTEXT 1
24485 cat >>confdefs.h <<\_ACEOF
24486 #define HAVE_DCGETTEXT 1
24495 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
24496 BUILD_INCLUDED_LIBINTL=yes
24503 nls_cv_header_intl=
24504 nls_cv_header_libgt=
24516 if test "$USE_INCLUDED_LIBINTL" = yes; then
24517 INTLOBJS="\$(GETTOBJS)"
24521 INTL_LIBTOOL_SUFFIX_PREFIX=
24525 INTLLIBS="$LIBINTL"
24537 support_postgresql=no
24540 support_smartalloc=yes
24541 support_readline=yes
24545 support_wx_console=no
24546 support_tray_monitor=no
24551 support_static_tools=no
24552 support_static_fd=no
24553 support_static_sd=no
24554 support_static_dir=no
24555 support_static_cons=no
24557 build_client_only=no
24566 # Check whether --enable-gnome was given.
24567 if test "${enable_gnome+set}" = set; then
24568 enableval=$enable_gnome;
24569 if test x$enableval = xyes; then
24578 if test x$support_gnome = xyes; then
24579 { { $as_echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24580 $as_echo "$as_me: error: bgnome-console no longer supported" >&2;}
24581 { (exit 1); exit 1; }; }
24582 { { $as_echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24583 $as_echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24584 { (exit 1); exit 1; }; }
24586 # AC_SUBST(GNOME_DIR)
24588 # Check whether --enable-bat was given.
24589 if test "${enable_bat+set}" = set; then
24590 enableval=$enable_bat;
24591 if test x$enableval = xyes; then
24593 cat >>confdefs.h <<\_ACEOF
24605 if test x$support_bat = xyes; then
24606 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24608 if test $pkg = 0; then
24609 BAT_DIR=src/qt-console
24611 { { $as_echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24612 $as_echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24613 { (exit 1); exit 1; }; }
24631 # Check whether --enable-bwx-console was given.
24632 if test "${enable_bwx_console+set}" = set; then
24633 enableval=$enable_bwx_console;
24634 if test x$enableval = xyes; then
24635 support_wx_console=yes
24643 if test x$support_wx_console = xyes; then
24644 abc=`$WXCONFIG $WXFLAGS --cppflags`
24646 if test $pkg = 0; then
24647 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24648 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24649 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24653 WX_DIR="src/wx-console"
24656 echo "wx-config program not found. bwx-console disabled."
24658 support_wx_console=no
24663 # Check whether --enable-tray-monitor was given.
24664 if test "${enable_tray_monitor+set}" = set; then
24665 enableval=$enable_tray_monitor;
24666 if test x$enableval = xyes; then
24667 support_tray_monitor=yes
24675 if test x$support_tray_monitor = xyes; then
24676 abc=`$PKGCONFIG --exists gtk+-2.0`
24678 if test $pkg = 0; then
24679 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24680 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24683 TRAY_MONITOR_DIR=src/tray-monitor
24684 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24686 if test $pkg = 0; then
24688 cat >>confdefs.h <<\_ACEOF
24689 #define HAVE_GTK_2_4 1
24697 # Check whether --enable-smartalloc was given.
24698 if test "${enable_smartalloc+set}" = set; then
24699 enableval=$enable_smartalloc;
24700 if test x$enableval = xno; then
24701 support_smartalloc=no
24708 if test x$support_smartalloc = xyes; then
24710 cat >>confdefs.h <<\_ACEOF
24711 #define SMARTALLOC 1
24716 # Check whether --enable-lockmgr was given.
24717 if test "${enable_lockmgr+set}" = set; then
24718 enableval=$enable_lockmgr;
24719 if test x$enableval = xyes; then
24720 support_lockmgr=yes
24727 if test x$support_lockmgr = xyes; then
24729 cat >>confdefs.h <<\_ACEOF
24730 #define _USE_LOCKMGR 1
24736 # Check whether --enable-static-tools was given.
24737 if test "${enable_static_tools+set}" = set; then
24738 enableval=$enable_static_tools;
24739 if test x$enableval = xyes; then
24740 if test x$use_libtool = xyes; then
24741 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24742 please rerun configure with --disable-libtool" >&5
24743 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24744 please rerun configure with --disable-libtool" >&2;}
24745 { (exit 1); exit 1; }; }
24747 support_static_tools=yes
24755 if test x$support_static_tools = xyes; then
24756 TTOOL_LDFLAGS="-static"
24760 # Check whether --enable-static-fd was given.
24761 if test "${enable_static_fd+set}" = set; then
24762 enableval=$enable_static_fd;
24763 if test x$enableval = xyes; then
24764 if test x$use_libtool = xyes; then
24765 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24766 please rerun configure with --disable-libtool" >&5
24767 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24768 please rerun configure with --disable-libtool" >&2;}
24769 { (exit 1); exit 1; }; }
24771 support_static_fd=yes
24779 if test x$support_static_fd = xyes; then
24780 STATIC_FD="static-bacula-fd"
24784 # Check whether --enable-static-sd was given.
24785 if test "${enable_static_sd+set}" = set; then
24786 enableval=$enable_static_sd;
24787 if test x$enableval = xyes; then
24788 if test x$use_libtool = xyes; then
24789 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24790 please rerun configure with --disable-libtool" >&5
24791 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24792 please rerun configure with --disable-libtool" >&2;}
24793 { (exit 1); exit 1; }; }
24795 support_static_sd=yes
24803 if test x$support_static_sd = xyes; then
24804 STATIC_SD="static-bacula-sd"
24808 # Check whether --enable-static-dir was given.
24809 if test "${enable_static_dir+set}" = set; then
24810 enableval=$enable_static_dir;
24811 if test x$enableval = xyes; then
24812 if test x$use_libtool = xyes; then
24813 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24814 please rerun configure with --disable-libtool" >&5
24815 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24816 please rerun configure with --disable-libtool" >&2;}
24817 { (exit 1); exit 1; }; }
24819 support_static_dir=yes
24827 if test x$support_static_dir = xyes; then
24828 STATIC_DIR="static-bacula-dir"
24832 # Check whether --enable-static-cons was given.
24833 if test "${enable_static_cons+set}" = set; then
24834 enableval=$enable_static_cons;
24835 if test x$enableval = xyes; then
24836 if test x$use_libtool = xyes; then
24837 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24838 please rerun configure with --disable-libtool" >&5
24839 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24840 please rerun configure with --disable-libtool" >&2;}
24841 { (exit 1); exit 1; }; }
24843 support_static_cons=yes
24853 if test x$support_static_cons = xyes; then
24854 STATIC_CONS="static-bconsole"
24855 STATIC_GNOME_CONS="static-bgnome-console"
24856 STATIC_WX_CONS="static-bwx-console"
24862 # Check whether --enable-client-only was given.
24863 if test "${enable_client_only+set}" = set; then
24864 enableval=$enable_client_only;
24865 if test x$enableval = xyes; then
24866 build_client_only=yes
24874 if test x$build_client_only = xno; then
24881 # Check whether --enable-build-dird was given.
24882 if test "${enable_build_dird+set}" = set; then
24883 enableval=$enable_build_dird;
24884 if test x$enableval = xno; then
24891 if test x$build_dird = xyes; then
24892 DIRD_DIR="src/dird"
24893 DIR_TOOLS="DIRTOOLS"
24896 DIR_TOOLS="NODIRTOOLS"
24901 # Check whether --enable-build-stored was given.
24902 if test "${enable_build_stored+set}" = set; then
24903 enableval=$enable_build_stored;
24904 if test x$enableval = xno; then
24911 if test x$build_stored = xyes; then
24912 STORED_DIR="src/stored"
24918 # Check whether --enable-conio was given.
24919 if test "${enable_conio+set}" = set; then
24920 enableval=$enable_conio;
24921 if test x$enableval = xno; then
24931 # Check whether --enable-ipv6 was given.
24932 if test "${enable_ipv6+set}" = set; then
24933 enableval=$enable_ipv6;
24934 if test x$enableval = xno; then
24942 if test x$support_ipv6 = xyes; then
24943 cat >conftest.$ac_ext <<_ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 #include <sys/types.h>
24950 #include <sys/socket.h>
24951 #include <netinet/in.h>
24955 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24960 rm -f conftest.$ac_objext conftest$ac_exeext
24961 if { (ac_try="$ac_link"
24962 case "(($ac_try" in
24963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964 *) ac_try_echo=$ac_try;;
24966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24967 $as_echo "$ac_try_echo") >&5
24968 (eval "$ac_link") 2>conftest.er1
24970 grep -v '^ *+' conftest.er1 >conftest.err
24972 cat conftest.err >&5
24973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } && {
24975 test -z "$ac_c_werror_flag" ||
24976 test ! -s conftest.err
24977 } && test -s conftest$ac_exeext && {
24978 test "$cross_compiling" = yes ||
24979 $as_test_x conftest$ac_exeext
24983 $as_echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24989 rm -rf conftest.dSYM
24990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24991 conftest$ac_exeext conftest.$ac_ext
24994 if test x$support_ipv6 = xyes; then
24996 cat >>confdefs.h <<\_ACEOF
24997 #define HAVE_IPV6 1
25003 if test "${ac_cv_header_curses_h+set}" = set; then
25004 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25005 $as_echo_n "checking for curses.h... " >&6; }
25006 if test "${ac_cv_header_curses_h+set}" = set; then
25007 $as_echo_n "(cached) " >&6
25009 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25010 $as_echo "$ac_cv_header_curses_h" >&6; }
25012 # Is the header compilable?
25013 { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
25014 $as_echo_n "checking curses.h usability... " >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 $ac_includes_default
25022 #include <curses.h>
25024 rm -f conftest.$ac_objext
25025 if { (ac_try="$ac_compile"
25026 case "(($ac_try" in
25027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028 *) ac_try_echo=$ac_try;;
25030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25031 $as_echo "$ac_try_echo") >&5
25032 (eval "$ac_compile") 2>conftest.er1
25034 grep -v '^ *+' conftest.er1 >conftest.err
25036 cat conftest.err >&5
25037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } && {
25039 test -z "$ac_c_werror_flag" ||
25040 test ! -s conftest.err
25041 } && test -s conftest.$ac_objext; then
25042 ac_header_compiler=yes
25044 $as_echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25047 ac_header_compiler=no
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25052 $as_echo "$ac_header_compiler" >&6; }
25054 # Is the header present?
25055 { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
25056 $as_echo_n "checking curses.h presence... " >&6; }
25057 cat >conftest.$ac_ext <<_ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25063 #include <curses.h>
25065 if { (ac_try="$ac_cpp conftest.$ac_ext"
25066 case "(($ac_try" in
25067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068 *) ac_try_echo=$ac_try;;
25070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25071 $as_echo "$ac_try_echo") >&5
25072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25074 grep -v '^ *+' conftest.er1 >conftest.err
25076 cat conftest.err >&5
25077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } >/dev/null && {
25079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25082 ac_header_preproc=yes
25084 $as_echo "$as_me: failed program was:" >&5
25085 sed 's/^/| /' conftest.$ac_ext >&5
25087 ac_header_preproc=no
25090 rm -f conftest.err conftest.$ac_ext
25091 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25092 $as_echo "$ac_header_preproc" >&6; }
25094 # So? What about this header?
25095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25097 { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
25098 $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25099 { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
25100 $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
25101 ac_header_preproc=yes
25104 { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
25105 $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
25106 { $as_echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
25107 $as_echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
25108 { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
25109 $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
25110 { $as_echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
25111 $as_echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
25112 { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
25113 $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
25114 { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
25115 $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
25119 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25120 $as_echo_n "checking for curses.h... " >&6; }
25121 if test "${ac_cv_header_curses_h+set}" = set; then
25122 $as_echo_n "(cached) " >&6
25124 ac_cv_header_curses_h=$ac_header_preproc
25126 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25127 $as_echo "$ac_cv_header_curses_h" >&6; }
25130 if test "x$ac_cv_header_curses_h" = x""yes; then
25131 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
25132 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
25133 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
25134 $as_echo_n "(cached) " >&6
25136 ac_check_lib_save_LIBS=$LIBS
25137 LIBS="-lncurses $LIBS"
25138 cat >conftest.$ac_ext <<_ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h. */
25145 /* Override any GCC internal prototype to avoid an error.
25146 Use char because int might match the return type of a GCC
25147 builtin and then its argument prototype would still apply. */
25160 rm -f conftest.$ac_objext conftest$ac_exeext
25161 if { (ac_try="$ac_link"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25167 $as_echo "$ac_try_echo") >&5
25168 (eval "$ac_link") 2>conftest.er1
25170 grep -v '^ *+' conftest.er1 >conftest.err
25172 cat conftest.err >&5
25173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } && {
25175 test -z "$ac_c_werror_flag" ||
25176 test ! -s conftest.err
25177 } && test -s conftest$ac_exeext && {
25178 test "$cross_compiling" = yes ||
25179 $as_test_x conftest$ac_exeext
25181 ac_cv_lib_ncurses_tgetent=yes
25183 $as_echo "$as_me: failed program was:" >&5
25184 sed 's/^/| /' conftest.$ac_ext >&5
25186 ac_cv_lib_ncurses_tgetent=no
25189 rm -rf conftest.dSYM
25190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25191 conftest$ac_exeext conftest.$ac_ext
25192 LIBS=$ac_check_lib_save_LIBS
25194 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
25195 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
25196 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
25197 TERM_LIB="-lncurses"
25199 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
25200 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
25201 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
25202 $as_echo_n "(cached) " >&6
25204 ac_check_lib_save_LIBS=$LIBS
25205 LIBS="-ltermcap $LIBS"
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25213 /* Override any GCC internal prototype to avoid an error.
25214 Use char because int might match the return type of a GCC
25215 builtin and then its argument prototype would still apply. */
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (ac_try="$ac_link"
25230 case "(($ac_try" in
25231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232 *) ac_try_echo=$ac_try;;
25234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25235 $as_echo "$ac_try_echo") >&5
25236 (eval "$ac_link") 2>conftest.er1
25238 grep -v '^ *+' conftest.er1 >conftest.err
25240 cat conftest.err >&5
25241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } && {
25243 test -z "$ac_c_werror_flag" ||
25244 test ! -s conftest.err
25245 } && test -s conftest$ac_exeext && {
25246 test "$cross_compiling" = yes ||
25247 $as_test_x conftest$ac_exeext
25249 ac_cv_lib_termcap_tgetent=yes
25251 $as_echo "$as_me: failed program was:" >&5
25252 sed 's/^/| /' conftest.$ac_ext >&5
25254 ac_cv_lib_termcap_tgetent=no
25257 rm -rf conftest.dSYM
25258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25259 conftest$ac_exeext conftest.$ac_ext
25260 LIBS=$ac_check_lib_save_LIBS
25262 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
25263 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
25264 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
25265 TERM_LIB="-ltermcap"
25274 for ac_header in curses.h
25276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25278 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25279 $as_echo_n "checking for $ac_header... " >&6; }
25280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25281 $as_echo_n "(cached) " >&6
25283 ac_res=`eval 'as_val=${'$as_ac_Header'}
25284 $as_echo "$as_val"'`
25285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25286 $as_echo "$ac_res" >&6; }
25288 # Is the header compilable?
25289 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25290 $as_echo_n "checking $ac_header usability... " >&6; }
25291 cat >conftest.$ac_ext <<_ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h. */
25297 $ac_includes_default
25298 #include <$ac_header>
25300 rm -f conftest.$ac_objext
25301 if { (ac_try="$ac_compile"
25302 case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25307 $as_echo "$ac_try_echo") >&5
25308 (eval "$ac_compile") 2>conftest.er1
25310 grep -v '^ *+' conftest.er1 >conftest.err
25312 cat conftest.err >&5
25313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } && {
25315 test -z "$ac_c_werror_flag" ||
25316 test ! -s conftest.err
25317 } && test -s conftest.$ac_objext; then
25318 ac_header_compiler=yes
25320 $as_echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25323 ac_header_compiler=no
25326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25328 $as_echo "$ac_header_compiler" >&6; }
25330 # Is the header present?
25331 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25332 $as_echo_n "checking $ac_header presence... " >&6; }
25333 cat >conftest.$ac_ext <<_ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25339 #include <$ac_header>
25341 if { (ac_try="$ac_cpp conftest.$ac_ext"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25347 $as_echo "$ac_try_echo") >&5
25348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25350 grep -v '^ *+' conftest.er1 >conftest.err
25352 cat conftest.err >&5
25353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } >/dev/null && {
25355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25356 test ! -s conftest.err
25358 ac_header_preproc=yes
25360 $as_echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 ac_header_preproc=no
25366 rm -f conftest.err conftest.$ac_ext
25367 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25368 $as_echo "$ac_header_preproc" >&6; }
25370 # So? What about this header?
25371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25374 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25377 ac_header_preproc=yes
25380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25381 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25383 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25385 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25387 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25389 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25391 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25396 $as_echo_n "checking for $ac_header... " >&6; }
25397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25398 $as_echo_n "(cached) " >&6
25400 eval "$as_ac_Header=\$ac_header_preproc"
25402 ac_res=`eval 'as_val=${'$as_ac_Header'}
25403 $as_echo "$as_val"'`
25404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25405 $as_echo "$ac_res" >&6; }
25408 as_val=`eval 'as_val=${'$as_ac_Header'}
25409 $as_echo "$as_val"'`
25410 if test "x$as_val" = x""yes; then
25411 cat >>confdefs.h <<_ACEOF
25412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25419 if test "${ac_cv_header_term_h+set}" = set; then
25420 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25421 $as_echo_n "checking for term.h... " >&6; }
25422 if test "${ac_cv_header_term_h+set}" = set; then
25423 $as_echo_n "(cached) " >&6
25425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25426 $as_echo "$ac_cv_header_term_h" >&6; }
25428 # Is the header compilable?
25429 { $as_echo "$as_me:$LINENO: checking term.h usability" >&5
25430 $as_echo_n "checking term.h usability... " >&6; }
25431 cat >conftest.$ac_ext <<_ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25437 $ac_includes_default
25440 rm -f conftest.$ac_objext
25441 if { (ac_try="$ac_compile"
25442 case "(($ac_try" in
25443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444 *) ac_try_echo=$ac_try;;
25446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25447 $as_echo "$ac_try_echo") >&5
25448 (eval "$ac_compile") 2>conftest.er1
25450 grep -v '^ *+' conftest.er1 >conftest.err
25452 cat conftest.err >&5
25453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } && {
25455 test -z "$ac_c_werror_flag" ||
25456 test ! -s conftest.err
25457 } && test -s conftest.$ac_objext; then
25458 ac_header_compiler=yes
25460 $as_echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25463 ac_header_compiler=no
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25468 $as_echo "$ac_header_compiler" >&6; }
25470 # Is the header present?
25471 { $as_echo "$as_me:$LINENO: checking term.h presence" >&5
25472 $as_echo_n "checking term.h presence... " >&6; }
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25481 if { (ac_try="$ac_cpp conftest.$ac_ext"
25482 case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25487 $as_echo "$ac_try_echo") >&5
25488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25490 grep -v '^ *+' conftest.er1 >conftest.err
25492 cat conftest.err >&5
25493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } >/dev/null && {
25495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25496 test ! -s conftest.err
25498 ac_header_preproc=yes
25500 $as_echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25503 ac_header_preproc=no
25506 rm -f conftest.err conftest.$ac_ext
25507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25508 $as_echo "$ac_header_preproc" >&6; }
25510 # So? What about this header?
25511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25513 { $as_echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
25514 $as_echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25515 { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
25516 $as_echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
25517 ac_header_preproc=yes
25520 { $as_echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
25521 $as_echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
25522 { $as_echo "$as_me:$LINENO: WARNING: term.h: check for missing prerequisite headers?" >&5
25523 $as_echo "$as_me: WARNING: term.h: check for missing prerequisite headers?" >&2;}
25524 { $as_echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
25525 $as_echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
25526 { $as_echo "$as_me:$LINENO: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&5
25527 $as_echo "$as_me: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&2;}
25528 { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
25529 $as_echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
25530 { $as_echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
25531 $as_echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
25535 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25536 $as_echo_n "checking for term.h... " >&6; }
25537 if test "${ac_cv_header_term_h+set}" = set; then
25538 $as_echo_n "(cached) " >&6
25540 ac_cv_header_term_h=$ac_header_preproc
25542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25543 $as_echo "$ac_cv_header_term_h" >&6; }
25546 if test "x$ac_cv_header_term_h" = x""yes; then
25547 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25548 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
25549 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25550 $as_echo_n "(cached) " >&6
25552 ac_check_lib_save_LIBS=$LIBS
25553 LIBS="-lcurses $LIBS"
25554 cat >conftest.$ac_ext <<_ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h. */
25561 /* Override any GCC internal prototype to avoid an error.
25562 Use char because int might match the return type of a GCC
25563 builtin and then its argument prototype would still apply. */
25576 rm -f conftest.$ac_objext conftest$ac_exeext
25577 if { (ac_try="$ac_link"
25578 case "(($ac_try" in
25579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580 *) ac_try_echo=$ac_try;;
25582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25583 $as_echo "$ac_try_echo") >&5
25584 (eval "$ac_link") 2>conftest.er1
25586 grep -v '^ *+' conftest.er1 >conftest.err
25588 cat conftest.err >&5
25589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } && {
25591 test -z "$ac_c_werror_flag" ||
25592 test ! -s conftest.err
25593 } && test -s conftest$ac_exeext && {
25594 test "$cross_compiling" = yes ||
25595 $as_test_x conftest$ac_exeext
25597 ac_cv_lib_curses_tgetent=yes
25599 $as_echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25602 ac_cv_lib_curses_tgetent=no
25605 rm -rf conftest.dSYM
25606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25607 conftest$ac_exeext conftest.$ac_ext
25608 LIBS=$ac_check_lib_save_LIBS
25610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25611 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
25612 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
25613 TERM_LIB="-lcurses"
25627 if test x$support_conio = xyes; then
25628 if test x$TERM_LIB != x; then
25629 CONS_LIBS=$TERM_LIB
25633 support_readline=no
25635 cat >>confdefs.h <<\_ACEOF
25636 #define HAVE_CONIO 1
25640 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25645 # Check whether --enable-readline was given.
25646 if test "${enable_readline+set}" = set; then
25647 enableval=$enable_readline;
25648 if test x$enableval = xno; then
25649 support_readline=no
25655 if test x$TERM_LIB = x ; then
25656 support_readline=no
25661 if test x$support_readline = xyes; then
25663 # Check whether --with-readline was given.
25664 if test "${with_readline+set}" = set; then
25665 withval=$with_readline;
25666 case "$with_readline" in
25671 if test -f ${with_readline}/readline.h; then
25672 CONS_INC="-I${with_readline}"
25673 CONS_LDFLAGS="-L$with_readline"
25674 elif test -f ${with_readline}/include/readline/readline.h; then
25675 CONS_INC="-I${with_readline}/include/readline"
25676 CONS_LDFLAGS="-L${with_readline}/lib"
25677 with_readline="${with_readline}/include/readline"
25679 with_readline="/usr/include/readline"
25682 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25684 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25685 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25687 $as_echo_n "(cached) " >&6
25689 ac_res=`eval 'as_val=${'$as_ac_Header'}
25690 $as_echo "$as_val"'`
25691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25692 $as_echo "$ac_res" >&6; }
25694 # Is the header compilable?
25695 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25696 $as_echo_n "checking ${with_readline}/readline.h usability... " >&6; }
25697 cat >conftest.$ac_ext <<_ACEOF
25700 cat confdefs.h >>conftest.$ac_ext
25701 cat >>conftest.$ac_ext <<_ACEOF
25702 /* end confdefs.h. */
25703 $ac_includes_default
25704 #include <${with_readline}/readline.h>
25706 rm -f conftest.$ac_objext
25707 if { (ac_try="$ac_compile"
25708 case "(($ac_try" in
25709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25710 *) ac_try_echo=$ac_try;;
25712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25713 $as_echo "$ac_try_echo") >&5
25714 (eval "$ac_compile") 2>conftest.er1
25716 grep -v '^ *+' conftest.er1 >conftest.err
25718 cat conftest.err >&5
25719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); } && {
25721 test -z "$ac_c_werror_flag" ||
25722 test ! -s conftest.err
25723 } && test -s conftest.$ac_objext; then
25724 ac_header_compiler=yes
25726 $as_echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25729 ac_header_compiler=no
25732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25734 $as_echo "$ac_header_compiler" >&6; }
25736 # Is the header present?
25737 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25738 $as_echo_n "checking ${with_readline}/readline.h presence... " >&6; }
25739 cat >conftest.$ac_ext <<_ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25745 #include <${with_readline}/readline.h>
25747 if { (ac_try="$ac_cpp conftest.$ac_ext"
25748 case "(($ac_try" in
25749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750 *) ac_try_echo=$ac_try;;
25752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25753 $as_echo "$ac_try_echo") >&5
25754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } >/dev/null && {
25761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25762 test ! -s conftest.err
25764 ac_header_preproc=yes
25766 $as_echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25769 ac_header_preproc=no
25772 rm -f conftest.err conftest.$ac_ext
25773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25774 $as_echo "$ac_header_preproc" >&6; }
25776 # So? What about this header?
25777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25779 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25780 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25781 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25782 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25783 ac_header_preproc=yes
25786 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25787 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25788 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25789 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25790 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25791 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25792 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25793 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25794 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25795 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25796 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25797 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25801 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25802 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25804 $as_echo_n "(cached) " >&6
25806 eval "$as_ac_Header=\$ac_header_preproc"
25808 ac_res=`eval 'as_val=${'$as_ac_Header'}
25809 $as_echo "$as_val"'`
25810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25811 $as_echo "$ac_res" >&6; }
25814 as_val=`eval 'as_val=${'$as_ac_Header'}
25815 $as_echo "$as_val"'`
25816 if test "x$as_val" = x""yes; then
25819 cat >>confdefs.h <<\_ACEOF
25820 #define HAVE_READLINE 1
25823 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25829 echo "readline.h not found. readline turned off ..."
25841 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25842 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25843 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25844 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25845 $as_echo_n "(cached) " >&6
25847 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25848 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25850 # Is the header compilable?
25851 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25852 $as_echo_n "checking /usr/include/readline/readline.h usability... " >&6; }
25853 cat >conftest.$ac_ext <<_ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h. */
25859 $ac_includes_default
25860 #include </usr/include/readline/readline.h>
25862 rm -f conftest.$ac_objext
25863 if { (ac_try="$ac_compile"
25864 case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25869 $as_echo "$ac_try_echo") >&5
25870 (eval "$ac_compile") 2>conftest.er1
25872 grep -v '^ *+' conftest.er1 >conftest.err
25874 cat conftest.err >&5
25875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); } && {
25877 test -z "$ac_c_werror_flag" ||
25878 test ! -s conftest.err
25879 } && test -s conftest.$ac_objext; then
25880 ac_header_compiler=yes
25882 $as_echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25885 ac_header_compiler=no
25888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25889 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25890 $as_echo "$ac_header_compiler" >&6; }
25892 # Is the header present?
25893 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25894 $as_echo_n "checking /usr/include/readline/readline.h presence... " >&6; }
25895 cat >conftest.$ac_ext <<_ACEOF
25898 cat confdefs.h >>conftest.$ac_ext
25899 cat >>conftest.$ac_ext <<_ACEOF
25900 /* end confdefs.h. */
25901 #include </usr/include/readline/readline.h>
25903 if { (ac_try="$ac_cpp conftest.$ac_ext"
25904 case "(($ac_try" in
25905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25906 *) ac_try_echo=$ac_try;;
25908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25909 $as_echo "$ac_try_echo") >&5
25910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25912 grep -v '^ *+' conftest.er1 >conftest.err
25914 cat conftest.err >&5
25915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } >/dev/null && {
25917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25918 test ! -s conftest.err
25920 ac_header_preproc=yes
25922 $as_echo "$as_me: failed program was:" >&5
25923 sed 's/^/| /' conftest.$ac_ext >&5
25925 ac_header_preproc=no
25928 rm -f conftest.err conftest.$ac_ext
25929 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25930 $as_echo "$ac_header_preproc" >&6; }
25932 # So? What about this header?
25933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25935 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25936 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25937 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25938 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25939 ac_header_preproc=yes
25942 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25943 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25944 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25945 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25946 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25947 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25948 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25949 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25950 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25951 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25952 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25953 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25957 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25958 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25959 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25960 $as_echo_n "(cached) " >&6
25962 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25964 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25965 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25968 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then
25971 cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_READLINE 1
25976 CONS_INC="-I/usr/include/readline"
25977 CONS_LIBS="-lreadline $TERM_LIB"
25981 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25983 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25984 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
25985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25986 $as_echo_n "(cached) " >&6
25988 ac_res=`eval 'as_val=${'$as_ac_Header'}
25989 $as_echo "$as_val"'`
25990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25991 $as_echo "$ac_res" >&6; }
25993 # Is the header compilable?
25994 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25995 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h usability... " >&6; }
25996 cat >conftest.$ac_ext <<_ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h. */
26002 $ac_includes_default
26003 #include <${TOP_DIR}/depkgs/readline/readline.h>
26005 rm -f conftest.$ac_objext
26006 if { (ac_try="$ac_compile"
26007 case "(($ac_try" in
26008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009 *) ac_try_echo=$ac_try;;
26011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26012 $as_echo "$ac_try_echo") >&5
26013 (eval "$ac_compile") 2>conftest.er1
26015 grep -v '^ *+' conftest.er1 >conftest.err
26017 cat conftest.err >&5
26018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } && {
26020 test -z "$ac_c_werror_flag" ||
26021 test ! -s conftest.err
26022 } && test -s conftest.$ac_objext; then
26023 ac_header_compiler=yes
26025 $as_echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26028 ac_header_compiler=no
26031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26033 $as_echo "$ac_header_compiler" >&6; }
26035 # Is the header present?
26036 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
26037 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h presence... " >&6; }
26038 cat >conftest.$ac_ext <<_ACEOF
26041 cat confdefs.h >>conftest.$ac_ext
26042 cat >>conftest.$ac_ext <<_ACEOF
26043 /* end confdefs.h. */
26044 #include <${TOP_DIR}/depkgs/readline/readline.h>
26046 if { (ac_try="$ac_cpp conftest.$ac_ext"
26047 case "(($ac_try" in
26048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049 *) ac_try_echo=$ac_try;;
26051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26052 $as_echo "$ac_try_echo") >&5
26053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26055 grep -v '^ *+' conftest.er1 >conftest.err
26057 cat conftest.err >&5
26058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } >/dev/null && {
26060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26061 test ! -s conftest.err
26063 ac_header_preproc=yes
26065 $as_echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.$ac_ext >&5
26068 ac_header_preproc=no
26071 rm -f conftest.err conftest.$ac_ext
26072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26073 $as_echo "$ac_header_preproc" >&6; }
26075 # So? What about this header?
26076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26078 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
26079 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26080 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
26081 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
26082 ac_header_preproc=yes
26085 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
26086 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
26087 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
26088 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
26089 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
26090 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
26091 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
26092 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
26093 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
26094 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
26095 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
26096 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
26100 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
26101 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103 $as_echo_n "(cached) " >&6
26105 eval "$as_ac_Header=\$ac_header_preproc"
26107 ac_res=`eval 'as_val=${'$as_ac_Header'}
26108 $as_echo "$as_val"'`
26109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26110 $as_echo "$ac_res" >&6; }
26113 as_val=`eval 'as_val=${'$as_ac_Header'}
26114 $as_echo "$as_val"'`
26115 if test "x$as_val" = x""yes; then
26118 cat >>confdefs.h <<\_ACEOF
26119 #define HAVE_READLINE 1
26123 CONS_INC="-I${TOP_DIR}/depkgs/readline"
26124 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
26125 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
26126 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
26131 echo "readline.h not found. readline turned off ..."
26158 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26159 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26160 if test "${ac_cv_header_stat_broken+set}" = set; then
26161 $as_echo_n "(cached) " >&6
26163 cat >conftest.$ac_ext <<_ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h. */
26169 #include <sys/types.h>
26170 #include <sys/stat.h>
26172 #if defined S_ISBLK && defined S_IFDIR
26173 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26176 #if defined S_ISBLK && defined S_IFCHR
26177 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26180 #if defined S_ISLNK && defined S_IFREG
26181 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26184 #if defined S_ISSOCK && defined S_IFREG
26185 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26189 rm -f conftest.$ac_objext
26190 if { (ac_try="$ac_compile"
26191 case "(($ac_try" in
26192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26193 *) ac_try_echo=$ac_try;;
26195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26196 $as_echo "$ac_try_echo") >&5
26197 (eval "$ac_compile") 2>conftest.er1
26199 grep -v '^ *+' conftest.er1 >conftest.err
26201 cat conftest.err >&5
26202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } && {
26204 test -z "$ac_c_werror_flag" ||
26205 test ! -s conftest.err
26206 } && test -s conftest.$ac_objext; then
26207 ac_cv_header_stat_broken=no
26209 $as_echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26212 ac_cv_header_stat_broken=yes
26215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26218 $as_echo "$ac_cv_header_stat_broken" >&6; }
26219 if test $ac_cv_header_stat_broken = yes; then
26221 cat >>confdefs.h <<\_ACEOF
26222 #define STAT_MACROS_BROKEN 1
26232 ac_header_dirent=no
26233 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26234 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26235 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26236 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26238 $as_echo_n "(cached) " >&6
26240 cat >conftest.$ac_ext <<_ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26246 #include <sys/types.h>
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262 *) ac_try_echo=$ac_try;;
26264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26265 $as_echo "$ac_try_echo") >&5
26266 (eval "$ac_compile") 2>conftest.er1
26268 grep -v '^ *+' conftest.er1 >conftest.err
26270 cat conftest.err >&5
26271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } && {
26273 test -z "$ac_c_werror_flag" ||
26274 test ! -s conftest.err
26275 } && test -s conftest.$ac_objext; then
26276 eval "$as_ac_Header=yes"
26278 $as_echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26281 eval "$as_ac_Header=no"
26284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26286 ac_res=`eval 'as_val=${'$as_ac_Header'}
26287 $as_echo "$as_val"'`
26288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26289 $as_echo "$ac_res" >&6; }
26290 as_val=`eval 'as_val=${'$as_ac_Header'}
26291 $as_echo "$as_val"'`
26292 if test "x$as_val" = x""yes; then
26293 cat >>confdefs.h <<_ACEOF
26294 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26297 ac_header_dirent=$ac_hdr; break
26301 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26302 if test $ac_header_dirent = dirent.h; then
26303 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26304 $as_echo_n "checking for library containing opendir... " >&6; }
26305 if test "${ac_cv_search_opendir+set}" = set; then
26306 $as_echo_n "(cached) " >&6
26308 ac_func_search_save_LIBS=$LIBS
26309 cat >conftest.$ac_ext <<_ACEOF
26312 cat confdefs.h >>conftest.$ac_ext
26313 cat >>conftest.$ac_ext <<_ACEOF
26314 /* end confdefs.h. */
26316 /* Override any GCC internal prototype to avoid an error.
26317 Use char because int might match the return type of a GCC
26318 builtin and then its argument prototype would still apply. */
26331 for ac_lib in '' dir; do
26332 if test -z "$ac_lib"; then
26333 ac_res="none required"
26336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26338 rm -f conftest.$ac_objext conftest$ac_exeext
26339 if { (ac_try="$ac_link"
26340 case "(($ac_try" in
26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26345 $as_echo "$ac_try_echo") >&5
26346 (eval "$ac_link") 2>conftest.er1
26348 grep -v '^ *+' conftest.er1 >conftest.err
26350 cat conftest.err >&5
26351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } && {
26353 test -z "$ac_c_werror_flag" ||
26354 test ! -s conftest.err
26355 } && test -s conftest$ac_exeext && {
26356 test "$cross_compiling" = yes ||
26357 $as_test_x conftest$ac_exeext
26359 ac_cv_search_opendir=$ac_res
26361 $as_echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26367 rm -rf conftest.dSYM
26368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26370 if test "${ac_cv_search_opendir+set}" = set; then
26374 if test "${ac_cv_search_opendir+set}" = set; then
26377 ac_cv_search_opendir=no
26379 rm conftest.$ac_ext
26380 LIBS=$ac_func_search_save_LIBS
26382 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26383 $as_echo "$ac_cv_search_opendir" >&6; }
26384 ac_res=$ac_cv_search_opendir
26385 if test "$ac_res" != no; then
26386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26391 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26392 $as_echo_n "checking for library containing opendir... " >&6; }
26393 if test "${ac_cv_search_opendir+set}" = set; then
26394 $as_echo_n "(cached) " >&6
26396 ac_func_search_save_LIBS=$LIBS
26397 cat >conftest.$ac_ext <<_ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h. */
26404 /* Override any GCC internal prototype to avoid an error.
26405 Use char because int might match the return type of a GCC
26406 builtin and then its argument prototype would still apply. */
26419 for ac_lib in '' x; do
26420 if test -z "$ac_lib"; then
26421 ac_res="none required"
26424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26426 rm -f conftest.$ac_objext conftest$ac_exeext
26427 if { (ac_try="$ac_link"
26428 case "(($ac_try" in
26429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26430 *) ac_try_echo=$ac_try;;
26432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26433 $as_echo "$ac_try_echo") >&5
26434 (eval "$ac_link") 2>conftest.er1
26436 grep -v '^ *+' conftest.er1 >conftest.err
26438 cat conftest.err >&5
26439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } && {
26441 test -z "$ac_c_werror_flag" ||
26442 test ! -s conftest.err
26443 } && test -s conftest$ac_exeext && {
26444 test "$cross_compiling" = yes ||
26445 $as_test_x conftest$ac_exeext
26447 ac_cv_search_opendir=$ac_res
26449 $as_echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26455 rm -rf conftest.dSYM
26456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26458 if test "${ac_cv_search_opendir+set}" = set; then
26462 if test "${ac_cv_search_opendir+set}" = set; then
26465 ac_cv_search_opendir=no
26467 rm conftest.$ac_ext
26468 LIBS=$ac_func_search_save_LIBS
26470 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26471 $as_echo "$ac_cv_search_opendir" >&6; }
26472 ac_res=$ac_cv_search_opendir
26473 if test "$ac_res" != no; then
26474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26487 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
26489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26490 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26491 $as_echo_n "checking for $ac_func... " >&6; }
26492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26493 $as_echo_n "(cached) " >&6
26495 cat >conftest.$ac_ext <<_ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h. */
26501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26503 #define $ac_func innocuous_$ac_func
26505 /* System header to define __stub macros and hopefully few prototypes,
26506 which can conflict with char $ac_func (); below.
26507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26508 <limits.h> exists even on freestanding compilers. */
26511 # include <limits.h>
26513 # include <assert.h>
26518 /* Override any GCC internal prototype to avoid an error.
26519 Use char because int might match the return type of a GCC
26520 builtin and then its argument prototype would still apply. */
26525 /* The GNU C library defines this for functions which it implements
26526 to always fail with ENOSYS. Some functions are actually named
26527 something starting with __ and the normal name is an alias. */
26528 #if defined __stub_$ac_func || defined __stub___$ac_func
26535 return $ac_func ();
26540 rm -f conftest.$ac_objext conftest$ac_exeext
26541 if { (ac_try="$ac_link"
26542 case "(($ac_try" in
26543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544 *) ac_try_echo=$ac_try;;
26546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26547 $as_echo "$ac_try_echo") >&5
26548 (eval "$ac_link") 2>conftest.er1
26550 grep -v '^ *+' conftest.er1 >conftest.err
26552 cat conftest.err >&5
26553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554 (exit $ac_status); } && {
26555 test -z "$ac_c_werror_flag" ||
26556 test ! -s conftest.err
26557 } && test -s conftest$ac_exeext && {
26558 test "$cross_compiling" = yes ||
26559 $as_test_x conftest$ac_exeext
26561 eval "$as_ac_var=yes"
26563 $as_echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26566 eval "$as_ac_var=no"
26569 rm -rf conftest.dSYM
26570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26571 conftest$ac_exeext conftest.$ac_ext
26573 ac_res=`eval 'as_val=${'$as_ac_var'}
26574 $as_echo "$as_val"'`
26575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26576 $as_echo "$ac_res" >&6; }
26577 as_val=`eval 'as_val=${'$as_ac_var'}
26578 $as_echo "$as_val"'`
26579 if test "x$as_val" = x""yes; then
26580 cat >>confdefs.h <<_ACEOF
26581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26589 for ac_func in nanosleep nl_langinfo
26591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26592 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26593 $as_echo_n "checking for $ac_func... " >&6; }
26594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26595 $as_echo_n "(cached) " >&6
26597 cat >conftest.$ac_ext <<_ACEOF
26600 cat confdefs.h >>conftest.$ac_ext
26601 cat >>conftest.$ac_ext <<_ACEOF
26602 /* end confdefs.h. */
26603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26605 #define $ac_func innocuous_$ac_func
26607 /* System header to define __stub macros and hopefully few prototypes,
26608 which can conflict with char $ac_func (); below.
26609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26610 <limits.h> exists even on freestanding compilers. */
26613 # include <limits.h>
26615 # include <assert.h>
26620 /* Override any GCC internal prototype to avoid an error.
26621 Use char because int might match the return type of a GCC
26622 builtin and then its argument prototype would still apply. */
26627 /* The GNU C library defines this for functions which it implements
26628 to always fail with ENOSYS. Some functions are actually named
26629 something starting with __ and the normal name is an alias. */
26630 #if defined __stub_$ac_func || defined __stub___$ac_func
26637 return $ac_func ();
26642 rm -f conftest.$ac_objext conftest$ac_exeext
26643 if { (ac_try="$ac_link"
26644 case "(($ac_try" in
26645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26646 *) ac_try_echo=$ac_try;;
26648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26649 $as_echo "$ac_try_echo") >&5
26650 (eval "$ac_link") 2>conftest.er1
26652 grep -v '^ *+' conftest.er1 >conftest.err
26654 cat conftest.err >&5
26655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); } && {
26657 test -z "$ac_c_werror_flag" ||
26658 test ! -s conftest.err
26659 } && test -s conftest$ac_exeext && {
26660 test "$cross_compiling" = yes ||
26661 $as_test_x conftest$ac_exeext
26663 eval "$as_ac_var=yes"
26665 $as_echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26668 eval "$as_ac_var=no"
26671 rm -rf conftest.dSYM
26672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26673 conftest$ac_exeext conftest.$ac_ext
26675 ac_res=`eval 'as_val=${'$as_ac_var'}
26676 $as_echo "$as_val"'`
26677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26678 $as_echo "$ac_res" >&6; }
26679 as_val=`eval 'as_val=${'$as_ac_var'}
26680 $as_echo "$as_val"'`
26681 if test "x$as_val" = x""yes; then
26682 cat >>confdefs.h <<_ACEOF
26683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26690 for ac_header in varargs.h
26692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26695 $as_echo_n "checking for $ac_header... " >&6; }
26696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26697 $as_echo_n "(cached) " >&6
26699 ac_res=`eval 'as_val=${'$as_ac_Header'}
26700 $as_echo "$as_val"'`
26701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26702 $as_echo "$ac_res" >&6; }
26704 # Is the header compilable?
26705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26706 $as_echo_n "checking $ac_header usability... " >&6; }
26707 cat >conftest.$ac_ext <<_ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h. */
26713 $ac_includes_default
26714 #include <$ac_header>
26716 rm -f conftest.$ac_objext
26717 if { (ac_try="$ac_compile"
26718 case "(($ac_try" in
26719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26720 *) ac_try_echo=$ac_try;;
26722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26723 $as_echo "$ac_try_echo") >&5
26724 (eval "$ac_compile") 2>conftest.er1
26726 grep -v '^ *+' conftest.er1 >conftest.err
26728 cat conftest.err >&5
26729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); } && {
26731 test -z "$ac_c_werror_flag" ||
26732 test ! -s conftest.err
26733 } && test -s conftest.$ac_objext; then
26734 ac_header_compiler=yes
26736 $as_echo "$as_me: failed program was:" >&5
26737 sed 's/^/| /' conftest.$ac_ext >&5
26739 ac_header_compiler=no
26742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26744 $as_echo "$ac_header_compiler" >&6; }
26746 # Is the header present?
26747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26748 $as_echo_n "checking $ac_header presence... " >&6; }
26749 cat >conftest.$ac_ext <<_ACEOF
26752 cat confdefs.h >>conftest.$ac_ext
26753 cat >>conftest.$ac_ext <<_ACEOF
26754 /* end confdefs.h. */
26755 #include <$ac_header>
26757 if { (ac_try="$ac_cpp conftest.$ac_ext"
26758 case "(($ac_try" in
26759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760 *) ac_try_echo=$ac_try;;
26762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26763 $as_echo "$ac_try_echo") >&5
26764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26766 grep -v '^ *+' conftest.er1 >conftest.err
26768 cat conftest.err >&5
26769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } >/dev/null && {
26771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26772 test ! -s conftest.err
26774 ac_header_preproc=yes
26776 $as_echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26779 ac_header_preproc=no
26782 rm -f conftest.err conftest.$ac_ext
26783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26784 $as_echo "$ac_header_preproc" >&6; }
26786 # So? What about this header?
26787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26793 ac_header_preproc=yes
26796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26799 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26803 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26812 $as_echo_n "checking for $ac_header... " >&6; }
26813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26814 $as_echo_n "(cached) " >&6
26816 eval "$as_ac_Header=\$ac_header_preproc"
26818 ac_res=`eval 'as_val=${'$as_ac_Header'}
26819 $as_echo "$as_val"'`
26820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26821 $as_echo "$ac_res" >&6; }
26824 as_val=`eval 'as_val=${'$as_ac_Header'}
26825 $as_echo "$as_val"'`
26826 if test "x$as_val" = x""yes; then
26827 cat >>confdefs.h <<_ACEOF
26828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26837 { $as_echo "$as_me:$LINENO: checking for Python support" >&5
26838 $as_echo_n "checking for Python support... " >&6; }
26840 # Check whether --with-python was given.
26841 if test "${with_python+set}" = set; then
26842 withval=$with_python;
26845 if test "$withval" != "no"; then
26846 if test "$withval" = "yes"; then
26847 if test -e /usr/bin/python-config ; then
26848 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26849 PYTHON_LIBS=`/usr/bin/python-config --libs`
26851 for python_root in /usr /usr/local /usr/sfw; do
26852 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26853 if test -f $python_root/include/${ver}/Python.h; then
26854 PYTHON_INCDIR=-I$python_root/include/${ver}
26855 if test -d $python_root/lib64/${ver}/config; then
26856 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26858 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26865 if test x$PYTHON_INCDIR = x; then
26866 if test -f $prefix/include/Python.h; then
26867 PYTHON_INCDIR=-I$prefix/include
26868 if test -d $prefix/lib64/config; then
26869 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26871 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26874 { $as_echo "$as_me:$LINENO: result: no" >&5
26875 $as_echo "no" >&6; }
26876 { { $as_echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26877 $as_echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26878 { (exit 1); exit 1; }; }
26883 if test -e $withval/bin/python-config ; then
26884 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26885 PYTHON_LIBS=`$withval/bin/python-config --libs`
26886 elif test -f $withval/Python.h; then
26887 PYTHON_INCDIR=-I$withval
26888 PYTHON_LIBS="-L$withval/config -lpython"
26889 elif test -f $withval/include/Python.h; then
26890 PYTHON_INCDIR=-I$withval/include
26891 if test -d $withval/lib64/config; then
26892 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26894 PYTHON_LIBS="-L$withval/lib/config -lpython"
26896 elif test -f $withval/include/python/Python.h; then
26897 PYTHON_INCDIR=-I$withval/include/python
26898 if test -d $withval/lib64/python/config; then
26899 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26901 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26904 { $as_echo "$as_me:$LINENO: result: no" >&5
26905 $as_echo "no" >&6; }
26906 { { $as_echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26907 $as_echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26908 { (exit 1); exit 1; }; }
26912 cat >>confdefs.h <<\_ACEOF
26913 #define HAVE_PYTHON 1
26916 { $as_echo "$as_me:$LINENO: result: yes" >&5
26917 $as_echo "yes" >&6; }
26919 { $as_echo "$as_me:$LINENO: checking for more Python libs" >&5
26920 $as_echo "$as_me: checking for more Python libs" >&6;}
26921 saved_LIBS="$LIBS"; LIBS=
26922 { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26923 $as_echo_n "checking for library containing shm_open... " >&6; }
26924 if test "${ac_cv_search_shm_open+set}" = set; then
26925 $as_echo_n "(cached) " >&6
26927 ac_func_search_save_LIBS=$LIBS
26928 cat >conftest.$ac_ext <<_ACEOF
26931 cat confdefs.h >>conftest.$ac_ext
26932 cat >>conftest.$ac_ext <<_ACEOF
26933 /* end confdefs.h. */
26935 /* Override any GCC internal prototype to avoid an error.
26936 Use char because int might match the return type of a GCC
26937 builtin and then its argument prototype would still apply. */
26945 return shm_open ();
26950 for ac_lib in '' rt; do
26951 if test -z "$ac_lib"; then
26952 ac_res="none required"
26955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26957 rm -f conftest.$ac_objext conftest$ac_exeext
26958 if { (ac_try="$ac_link"
26959 case "(($ac_try" in
26960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26961 *) ac_try_echo=$ac_try;;
26963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26964 $as_echo "$ac_try_echo") >&5
26965 (eval "$ac_link") 2>conftest.er1
26967 grep -v '^ *+' conftest.er1 >conftest.err
26969 cat conftest.err >&5
26970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); } && {
26972 test -z "$ac_c_werror_flag" ||
26973 test ! -s conftest.err
26974 } && test -s conftest$ac_exeext && {
26975 test "$cross_compiling" = yes ||
26976 $as_test_x conftest$ac_exeext
26978 ac_cv_search_shm_open=$ac_res
26980 $as_echo "$as_me: failed program was:" >&5
26981 sed 's/^/| /' conftest.$ac_ext >&5
26986 rm -rf conftest.dSYM
26987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26989 if test "${ac_cv_search_shm_open+set}" = set; then
26993 if test "${ac_cv_search_shm_open+set}" = set; then
26996 ac_cv_search_shm_open=no
26998 rm conftest.$ac_ext
26999 LIBS=$ac_func_search_save_LIBS
27001 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
27002 $as_echo "$ac_cv_search_shm_open" >&6; }
27003 ac_res=$ac_cv_search_shm_open
27004 if test "$ac_res" != no; then
27005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27010 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27011 $as_echo_n "checking for openpty in -lutil... " >&6; }
27012 if test "${ac_cv_lib_util_openpty+set}" = set; then
27013 $as_echo_n "(cached) " >&6
27015 ac_check_lib_save_LIBS=$LIBS
27016 LIBS="-lutil $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. */
27039 rm -f conftest.$ac_objext conftest$ac_exeext
27040 if { (ac_try="$ac_link"
27041 case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27046 $as_echo "$ac_try_echo") >&5
27047 (eval "$ac_link") 2>conftest.er1
27049 grep -v '^ *+' conftest.er1 >conftest.err
27051 cat conftest.err >&5
27052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); } && {
27054 test -z "$ac_c_werror_flag" ||
27055 test ! -s conftest.err
27056 } && test -s conftest$ac_exeext && {
27057 test "$cross_compiling" = yes ||
27058 $as_test_x conftest$ac_exeext
27060 ac_cv_lib_util_openpty=yes
27062 $as_echo "$as_me: failed program was:" >&5
27063 sed 's/^/| /' conftest.$ac_ext >&5
27065 ac_cv_lib_util_openpty=no
27068 rm -rf conftest.dSYM
27069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27070 conftest$ac_exeext conftest.$ac_ext
27071 LIBS=$ac_check_lib_save_LIBS
27073 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27074 $as_echo "$ac_cv_lib_util_openpty" >&6; }
27075 if test "x$ac_cv_lib_util_openpty" = x""yes; then
27076 cat >>confdefs.h <<_ACEOF
27077 #define HAVE_LIBUTIL 1
27080 LIBS="-lutil $LIBS"
27084 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
27087 { $as_echo "$as_me:$LINENO: result: no" >&5
27088 $as_echo "no" >&6; }
27093 { $as_echo "$as_me:$LINENO: result: no" >&5
27094 $as_echo "no" >&6; }
27102 { $as_echo "$as_me:$LINENO: checking for socket" >&5
27103 $as_echo_n "checking for socket... " >&6; }
27104 if test "${ac_cv_func_socket+set}" = set; then
27105 $as_echo_n "(cached) " >&6
27107 cat >conftest.$ac_ext <<_ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
27114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27115 #define socket innocuous_socket
27117 /* System header to define __stub macros and hopefully few prototypes,
27118 which can conflict with char socket (); below.
27119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27120 <limits.h> exists even on freestanding compilers. */
27123 # include <limits.h>
27125 # include <assert.h>
27130 /* Override any GCC internal prototype to avoid an error.
27131 Use char because int might match the return type of a GCC
27132 builtin and then its argument prototype would still apply. */
27137 /* The GNU C library defines this for functions which it implements
27138 to always fail with ENOSYS. Some functions are actually named
27139 something starting with __ and the normal name is an alias. */
27140 #if defined __stub_socket || defined __stub___socket
27152 rm -f conftest.$ac_objext conftest$ac_exeext
27153 if { (ac_try="$ac_link"
27154 case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27159 $as_echo "$ac_try_echo") >&5
27160 (eval "$ac_link") 2>conftest.er1
27162 grep -v '^ *+' conftest.er1 >conftest.err
27164 cat conftest.err >&5
27165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } && {
27167 test -z "$ac_c_werror_flag" ||
27168 test ! -s conftest.err
27169 } && test -s conftest$ac_exeext && {
27170 test "$cross_compiling" = yes ||
27171 $as_test_x conftest$ac_exeext
27173 ac_cv_func_socket=yes
27175 $as_echo "$as_me: failed program was:" >&5
27176 sed 's/^/| /' conftest.$ac_ext >&5
27178 ac_cv_func_socket=no
27181 rm -rf conftest.dSYM
27182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27183 conftest$ac_exeext conftest.$ac_ext
27185 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27186 $as_echo "$ac_cv_func_socket" >&6; }
27187 if test "x$ac_cv_func_socket" = x""yes; then
27188 { $as_echo "$as_me:$LINENO: result: using libc's socket" >&5
27189 $as_echo "using libc's socket" >&6; }
27192 { $as_echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
27193 $as_echo_n "checking for socket in -lxnet... " >&6; }
27194 if test "${ac_cv_lib_xnet_socket+set}" = set; then
27195 $as_echo_n "(cached) " >&6
27197 ac_check_lib_save_LIBS=$LIBS
27198 LIBS="-lxnet $LIBS"
27199 cat >conftest.$ac_ext <<_ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h. */
27206 /* Override any GCC internal prototype to avoid an error.
27207 Use char because int might match the return type of a GCC
27208 builtin and then its argument prototype would still apply. */
27221 rm -f conftest.$ac_objext conftest$ac_exeext
27222 if { (ac_try="$ac_link"
27223 case "(($ac_try" in
27224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225 *) ac_try_echo=$ac_try;;
27227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27228 $as_echo "$ac_try_echo") >&5
27229 (eval "$ac_link") 2>conftest.er1
27231 grep -v '^ *+' conftest.er1 >conftest.err
27233 cat conftest.err >&5
27234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); } && {
27236 test -z "$ac_c_werror_flag" ||
27237 test ! -s conftest.err
27238 } && test -s conftest$ac_exeext && {
27239 test "$cross_compiling" = yes ||
27240 $as_test_x conftest$ac_exeext
27242 ac_cv_lib_xnet_socket=yes
27244 $as_echo "$as_me: failed program was:" >&5
27245 sed 's/^/| /' conftest.$ac_ext >&5
27247 ac_cv_lib_xnet_socket=no
27250 rm -rf conftest.dSYM
27251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27252 conftest$ac_exeext conftest.$ac_ext
27253 LIBS=$ac_check_lib_save_LIBS
27255 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
27256 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
27257 if test "x$ac_cv_lib_xnet_socket" = x""yes; then
27258 cat >>confdefs.h <<_ACEOF
27259 #define HAVE_LIBXNET 1
27262 LIBS="-lxnet $LIBS"
27267 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27268 $as_echo_n "checking for socket in -lsocket... " >&6; }
27269 if test "${ac_cv_lib_socket_socket+set}" = set; then
27270 $as_echo_n "(cached) " >&6
27272 ac_check_lib_save_LIBS=$LIBS
27273 LIBS="-lsocket $LIBS"
27274 cat >conftest.$ac_ext <<_ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h. */
27281 /* Override any GCC internal prototype to avoid an error.
27282 Use char because int might match the return type of a GCC
27283 builtin and then its argument prototype would still apply. */
27296 rm -f conftest.$ac_objext conftest$ac_exeext
27297 if { (ac_try="$ac_link"
27298 case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303 $as_echo "$ac_try_echo") >&5
27304 (eval "$ac_link") 2>conftest.er1
27306 grep -v '^ *+' conftest.er1 >conftest.err
27308 cat conftest.err >&5
27309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } && {
27311 test -z "$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27313 } && test -s conftest$ac_exeext && {
27314 test "$cross_compiling" = yes ||
27315 $as_test_x conftest$ac_exeext
27317 ac_cv_lib_socket_socket=yes
27319 $as_echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27322 ac_cv_lib_socket_socket=no
27325 rm -rf conftest.dSYM
27326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27327 conftest$ac_exeext conftest.$ac_ext
27328 LIBS=$ac_check_lib_save_LIBS
27330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27331 $as_echo "$ac_cv_lib_socket_socket" >&6; }
27332 if test "x$ac_cv_lib_socket_socket" = x""yes; then
27333 cat >>confdefs.h <<_ACEOF
27334 #define HAVE_LIBSOCKET 1
27337 LIBS="-lsocket $LIBS"
27342 { $as_echo "$as_me:$LINENO: checking for socket in -linet" >&5
27343 $as_echo_n "checking for socket in -linet... " >&6; }
27344 if test "${ac_cv_lib_inet_socket+set}" = set; then
27345 $as_echo_n "(cached) " >&6
27347 ac_check_lib_save_LIBS=$LIBS
27348 LIBS="-linet $LIBS"
27349 cat >conftest.$ac_ext <<_ACEOF
27352 cat confdefs.h >>conftest.$ac_ext
27353 cat >>conftest.$ac_ext <<_ACEOF
27354 /* end confdefs.h. */
27356 /* Override any GCC internal prototype to avoid an error.
27357 Use char because int might match the return type of a GCC
27358 builtin and then its argument prototype would still apply. */
27371 rm -f conftest.$ac_objext conftest$ac_exeext
27372 if { (ac_try="$ac_link"
27373 case "(($ac_try" in
27374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27375 *) ac_try_echo=$ac_try;;
27377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27378 $as_echo "$ac_try_echo") >&5
27379 (eval "$ac_link") 2>conftest.er1
27381 grep -v '^ *+' conftest.er1 >conftest.err
27383 cat conftest.err >&5
27384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } && {
27386 test -z "$ac_c_werror_flag" ||
27387 test ! -s conftest.err
27388 } && test -s conftest$ac_exeext && {
27389 test "$cross_compiling" = yes ||
27390 $as_test_x conftest$ac_exeext
27392 ac_cv_lib_inet_socket=yes
27394 $as_echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27397 ac_cv_lib_inet_socket=no
27400 rm -rf conftest.dSYM
27401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27402 conftest$ac_exeext conftest.$ac_ext
27403 LIBS=$ac_check_lib_save_LIBS
27405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
27406 $as_echo "$ac_cv_lib_inet_socket" >&6; }
27407 if test "x$ac_cv_lib_inet_socket" = x""yes; then
27408 cat >>confdefs.h <<_ACEOF
27409 #define HAVE_LIBINET 1
27412 LIBS="-linet $LIBS"
27422 # Check whether --with-tcp-wrappers was given.
27423 if test "${with_tcp_wrappers+set}" = set; then
27424 withval=$with_tcp_wrappers;
27425 if test "x$withval" != "xno" ; then
27427 LIBS="$saved_LIBS -lwrap"
27428 { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
27429 $as_echo_n "checking for library containing nanosleep... " >&6; }
27430 if test "${ac_cv_search_nanosleep+set}" = set; then
27431 $as_echo_n "(cached) " >&6
27433 ac_func_search_save_LIBS=$LIBS
27434 cat >conftest.$ac_ext <<_ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h. */
27441 /* Override any GCC internal prototype to avoid an error.
27442 Use char because int might match the return type of a GCC
27443 builtin and then its argument prototype would still apply. */
27451 return nanosleep ();
27456 for ac_lib in '' rt; do
27457 if test -z "$ac_lib"; then
27458 ac_res="none required"
27461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27463 rm -f conftest.$ac_objext conftest$ac_exeext
27464 if { (ac_try="$ac_link"
27465 case "(($ac_try" in
27466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27467 *) ac_try_echo=$ac_try;;
27469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27470 $as_echo "$ac_try_echo") >&5
27471 (eval "$ac_link") 2>conftest.er1
27473 grep -v '^ *+' conftest.er1 >conftest.err
27475 cat conftest.err >&5
27476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); } && {
27478 test -z "$ac_c_werror_flag" ||
27479 test ! -s conftest.err
27480 } && test -s conftest$ac_exeext && {
27481 test "$cross_compiling" = yes ||
27482 $as_test_x conftest$ac_exeext
27484 ac_cv_search_nanosleep=$ac_res
27486 $as_echo "$as_me: failed program was:" >&5
27487 sed 's/^/| /' conftest.$ac_ext >&5
27492 rm -rf conftest.dSYM
27493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27495 if test "${ac_cv_search_nanosleep+set}" = set; then
27499 if test "${ac_cv_search_nanosleep+set}" = set; then
27502 ac_cv_search_nanosleep=no
27504 rm conftest.$ac_ext
27505 LIBS=$ac_func_search_save_LIBS
27507 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
27508 $as_echo "$ac_cv_search_nanosleep" >&6; }
27509 ac_res=$ac_cv_search_nanosleep
27510 if test "$ac_res" != no; then
27511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27515 { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
27516 $as_echo_n "checking for libwrap... " >&6; }
27517 cat >conftest.$ac_ext <<_ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h. */
27524 #include <sys/types.h>
27526 int deny_severity = 0;
27527 int allow_severity = 0;
27528 struct request_info *req;
27540 rm -f conftest.$ac_objext conftest$ac_exeext
27541 if { (ac_try="$ac_link"
27542 case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27547 $as_echo "$ac_try_echo") >&5
27548 (eval "$ac_link") 2>conftest.er1
27550 grep -v '^ *+' conftest.er1 >conftest.err
27552 cat conftest.err >&5
27553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); } && {
27555 test -z "$ac_c_werror_flag" ||
27556 test ! -s conftest.err
27557 } && test -s conftest$ac_exeext && {
27558 test "$cross_compiling" = yes ||
27559 $as_test_x conftest$ac_exeext
27562 { $as_echo "$as_me:$LINENO: result: yes" >&5
27563 $as_echo "yes" >&6; }
27565 cat >>confdefs.h <<\_ACEOF
27566 #define HAVE_LIBWRAP 1
27574 $as_echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27578 LIBS="$saved_LIBS -lwrap -lnsl"
27579 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
27580 cat >conftest.$ac_ext <<_ACEOF
27583 cat confdefs.h >>conftest.$ac_ext
27584 cat >>conftest.$ac_ext <<_ACEOF
27585 /* end confdefs.h. */
27587 #include <sys/types.h>
27589 int deny_severity = 0;
27590 int allow_severity = 0;
27591 struct request_info *req;
27603 rm -f conftest.$ac_objext conftest$ac_exeext
27604 if { (ac_try="$ac_link"
27605 case "(($ac_try" in
27606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27607 *) ac_try_echo=$ac_try;;
27609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27610 $as_echo "$ac_try_echo") >&5
27611 (eval "$ac_link") 2>conftest.er1
27613 grep -v '^ *+' conftest.er1 >conftest.err
27615 cat conftest.err >&5
27616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); } && {
27618 test -z "$ac_c_werror_flag" ||
27619 test ! -s conftest.err
27620 } && test -s conftest$ac_exeext && {
27621 test "$cross_compiling" = yes ||
27622 $as_test_x conftest$ac_exeext
27625 { $as_echo "$as_me:$LINENO: result: yes" >&5
27626 $as_echo "yes" >&6; }
27628 cat >>confdefs.h <<\_ACEOF
27629 #define HAVE_LIBWRAP 1
27637 $as_echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27641 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27642 $as_echo "$as_me: error: *** libwrap missing" >&2;}
27643 { (exit 1); exit 1; }; }
27648 rm -rf conftest.dSYM
27649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27650 conftest$ac_exeext conftest.$ac_ext
27655 rm -rf conftest.dSYM
27656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27657 conftest$ac_exeext conftest.$ac_ext
27664 { $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
27665 $as_echo_n "checking for OpenSSL... " >&6; }
27667 # Check whether --with-openssl was given.
27668 if test "${with_openssl+set}" = set; then
27669 withval=$with_openssl;
27670 with_openssl_directory=${withval}
27676 if test "x$with_openssl_directory" != "xno"; then
27677 OPENSSL_LIBS="-lssl -lcrypto"
27680 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27682 # Make sure the $with_openssl_directory also makes sense
27684 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27685 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27686 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27690 saved_LIBS="${LIBS}"
27691 saved_CFLAGS="${CFLAGS}"
27692 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27693 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27695 cat >conftest.$ac_ext <<_ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27702 #include <openssl/ssl.h>
27708 CRYPTO_set_id_callback(NULL);
27714 rm -f conftest.$ac_objext conftest$ac_exeext
27715 if { (ac_try="$ac_link"
27716 case "(($ac_try" in
27717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27718 *) ac_try_echo=$ac_try;;
27720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27721 $as_echo "$ac_try_echo") >&5
27722 (eval "$ac_link") 2>conftest.er1
27724 grep -v '^ *+' conftest.er1 >conftest.err
27726 cat conftest.err >&5
27727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } && {
27729 test -z "$ac_c_werror_flag" ||
27730 test ! -s conftest.err
27731 } && test -s conftest$ac_exeext && {
27732 test "$cross_compiling" = yes ||
27733 $as_test_x conftest$ac_exeext
27737 support_crypto="yes"
27740 $as_echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27745 support_crypto="no"
27750 rm -rf conftest.dSYM
27751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27752 conftest$ac_exeext conftest.$ac_ext
27754 cat >conftest.$ac_ext <<_ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h. */
27761 #include <openssl/evp.h>
27773 rm -f conftest.$ac_objext conftest$ac_exeext
27774 if { (ac_try="$ac_link"
27775 case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27780 $as_echo "$ac_try_echo") >&5
27781 (eval "$ac_link") 2>conftest.er1
27783 grep -v '^ *+' conftest.er1 >conftest.err
27785 cat conftest.err >&5
27786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); } && {
27788 test -z "$ac_c_werror_flag" ||
27789 test ! -s conftest.err
27790 } && test -s conftest$ac_exeext && {
27791 test "$cross_compiling" = yes ||
27792 $as_test_x conftest$ac_exeext
27795 ac_cv_openssl_sha2="yes"
27798 $as_echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27802 ac_cv_openssl_sha2="no"
27807 rm -rf conftest.dSYM
27808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27809 conftest$ac_exeext conftest.$ac_ext
27811 cat >conftest.$ac_ext <<_ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h. */
27818 #include <openssl/evp.h>
27830 rm -f conftest.$ac_objext conftest$ac_exeext
27831 if { (ac_try="$ac_link"
27832 case "(($ac_try" in
27833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27834 *) ac_try_echo=$ac_try;;
27836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27837 $as_echo "$ac_try_echo") >&5
27838 (eval "$ac_link") 2>conftest.er1
27840 grep -v '^ *+' conftest.er1 >conftest.err
27842 cat conftest.err >&5
27843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } && {
27845 test -z "$ac_c_werror_flag" ||
27846 test ! -s conftest.err
27847 } && test -s conftest$ac_exeext && {
27848 test "$cross_compiling" = yes ||
27849 $as_test_x conftest$ac_exeext
27852 ac_cv_openssl_export="no"
27855 $as_echo "$as_me: failed program was:" >&5
27856 sed 's/^/| /' conftest.$ac_ext >&5
27859 ac_cv_openssl_export="yes"
27864 rm -rf conftest.dSYM
27865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27866 conftest$ac_exeext conftest.$ac_ext
27868 LIBS="${saved_LIBS}"
27869 CFLAGS="${saved_CFLAGS}"
27871 if test "$support_tls" = "yes"; then
27873 cat >>confdefs.h <<\_ACEOF
27874 #define HAVE_OPENSSL 1
27878 cat >>confdefs.h <<\_ACEOF
27883 cat >>confdefs.h <<\_ACEOF
27884 #define HAVE_CRYPTO 1
27889 if test "$ac_cv_openssl_sha2" = "yes"; then
27891 cat >>confdefs.h <<\_ACEOF
27892 #define HAVE_SHA2 1
27897 if test "$ac_cv_openssl_export" = "yes"; then
27899 cat >>confdefs.h <<\_ACEOF
27900 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27906 support_crypto="no"
27910 { $as_echo "$as_me:$LINENO: result: $support_tls" >&5
27911 $as_echo "$support_tls" >&6; }
27913 if test "$support_tls" = "no"; then
27917 if test "$support_crypto" = "no"; then
27921 { $as_echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27922 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
27923 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27924 $as_echo_n "(cached) " >&6
27926 ac_check_lib_save_LIBS=$LIBS
27928 cat >conftest.$ac_ext <<_ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27935 /* Override any GCC internal prototype to avoid an error.
27936 Use char because int might match the return type of a GCC
27937 builtin and then its argument prototype would still apply. */
27941 char EVP_PKEY_encrypt_old ();
27945 return EVP_PKEY_encrypt_old ();
27950 rm -f conftest.$ac_objext conftest$ac_exeext
27951 if { (ac_try="$ac_link"
27952 case "(($ac_try" in
27953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954 *) ac_try_echo=$ac_try;;
27956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27957 $as_echo "$ac_try_echo") >&5
27958 (eval "$ac_link") 2>conftest.er1
27960 grep -v '^ *+' conftest.er1 >conftest.err
27962 cat conftest.err >&5
27963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); } && {
27965 test -z "$ac_c_werror_flag" ||
27966 test ! -s conftest.err
27967 } && test -s conftest$ac_exeext && {
27968 test "$cross_compiling" = yes ||
27969 $as_test_x conftest$ac_exeext
27971 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27973 $as_echo "$as_me: failed program was:" >&5
27974 sed 's/^/| /' conftest.$ac_ext >&5
27976 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27979 rm -rf conftest.dSYM
27980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27981 conftest$ac_exeext conftest.$ac_ext
27982 LIBS=$ac_check_lib_save_LIBS
27984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27985 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27986 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then
27988 cat >>confdefs.h <<\_ACEOF
27989 #define HAVE_OPENSSLv1 1
27999 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
28000 $as_echo_n "checking for library containing dlopen... " >&6; }
28001 if test "${ac_cv_search_dlopen+set}" = set; then
28002 $as_echo_n "(cached) " >&6
28004 ac_func_search_save_LIBS=$LIBS
28005 cat >conftest.$ac_ext <<_ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h. */
28012 /* Override any GCC internal prototype to avoid an error.
28013 Use char because int might match the return type of a GCC
28014 builtin and then its argument prototype would still apply. */
28027 for ac_lib in '' dl; do
28028 if test -z "$ac_lib"; then
28029 ac_res="none required"
28032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28034 rm -f conftest.$ac_objext conftest$ac_exeext
28035 if { (ac_try="$ac_link"
28036 case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28041 $as_echo "$ac_try_echo") >&5
28042 (eval "$ac_link") 2>conftest.er1
28044 grep -v '^ *+' conftest.er1 >conftest.err
28046 cat conftest.err >&5
28047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); } && {
28049 test -z "$ac_c_werror_flag" ||
28050 test ! -s conftest.err
28051 } && test -s conftest$ac_exeext && {
28052 test "$cross_compiling" = yes ||
28053 $as_test_x conftest$ac_exeext
28055 ac_cv_search_dlopen=$ac_res
28057 $as_echo "$as_me: failed program was:" >&5
28058 sed 's/^/| /' conftest.$ac_ext >&5
28063 rm -rf conftest.dSYM
28064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28066 if test "${ac_cv_search_dlopen+set}" = set; then
28070 if test "${ac_cv_search_dlopen+set}" = set; then
28073 ac_cv_search_dlopen=no
28075 rm conftest.$ac_ext
28076 LIBS=$ac_func_search_save_LIBS
28078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
28079 $as_echo "$ac_cv_search_dlopen" >&6; }
28080 ac_res=$ac_cv_search_dlopen
28081 if test "$ac_res" != no; then
28082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28087 working_dir=`eval echo ${prefix}/var/bacula/working`
28089 # Check whether --with-working-dir was given.
28090 if test "${with_working_dir+set}" = set; then
28091 withval=$with_working_dir;
28092 if test "x$withval" != "xno" ; then
28093 working_dir=$withval
28104 # Check whether --with-archivedir was given.
28105 if test "${with_archivedir+set}" = set; then
28106 withval=$with_archivedir;
28107 if test "x$withval" != "xno" ; then
28108 archivedir=$withval
28117 basename=`hostname`
28119 # Check whether --with-basename was given.
28120 if test "${with_basename+set}" = set; then
28121 withval=$with_basename;
28122 if test "x$withval" != "xno" ; then
28132 hostname=`uname -n | cut -d '.' -f 1`
28133 if test x${hostname} = x ; then
28134 hostname="localhost"
28137 # Check whether --with-hostname was given.
28138 if test "${with_hostname+set}" = set; then
28139 withval=$with_hostname;
28140 if test "x$withval" != "xno" ; then
28151 scriptdir=`eval echo ${sysconfdir}`
28153 # Check whether --with-scriptdir was given.
28154 if test "${with_scriptdir+set}" = set; then
28155 withval=$with_scriptdir;
28156 if test "x$withval" != "xno" ; then
28169 # Check whether --with-bsrdir was given.
28170 if test "${with_bsrdir+set}" = set; then
28171 withval=$with_bsrdir;
28172 if test "x$withval" != "xno" ; then
28184 # Check whether --with-logdir was given.
28185 if test "${with_logdir+set}" = set; then
28186 withval=$with_logdir;
28187 if test "x$withval" != "xno" ; then
28198 # ------------------------------------------
28199 # Where to place plugindir (plugin files)
28200 # ------------------------------------------
28201 plugindir=`eval echo ${libdir}`
28203 # Check whether --with-plugindir was given.
28204 if test "${with_plugindir+set}" = set; then
28205 withval=$with_plugindir;
28206 if test "x$withval" != "xno" ; then
28216 dump_email=root@localhost
28218 # Check whether --with-dump-email was given.
28219 if test "${with_dump_email+set}" = set; then
28220 withval=$with_dump_email;
28221 if test "x$withval" != "xno" ; then
28222 dump_email=$withval
28231 job_email=root@localhost
28233 # Check whether --with-job-email was given.
28234 if test "${with_job_email+set}" = set; then
28235 withval=$with_job_email;
28236 if test "x$withval" != "xno" ; then
28246 smtp_host=localhost
28248 # Check whether --with-smtp_host was given.
28249 if test "${with_smtp_host+set}" = set; then
28250 withval=$with_smtp_host;
28251 if test "x$withval" != "xno" ; then
28263 # Check whether --with-pid-dir was given.
28264 if test "${with_pid_dir+set}" = set; then
28265 withval=$with_pid_dir;
28266 if test "x$withval" != "xno" ; then
28274 cat >>confdefs.h <<_ACEOF
28275 #define _PATH_BACULA_PIDDIR "$piddir"
28280 subsysdir=/var/run/subsys
28281 if test -d /var/run/subsys; then
28282 subsysdir=/var/run/subsys
28283 elif test -d /var/lock/subsys; then
28284 subsysdir=/var/lock/subsys
28286 subsysdir=/var/run/subsys
28289 # Check whether --with-subsys-dir was given.
28290 if test "${with_subsys_dir+set}" = set; then
28291 withval=$with_subsys_dir;
28292 if test "x$withval" != "xno" ; then
28304 # Check whether --with-baseport was given.
28305 if test "${with_baseport+set}" = set; then
28306 withval=$with_baseport;
28307 if test "x$withval" != "xno" ; then
28316 dir_port=`expr $baseport`
28317 fd_port=`expr $baseport + 1`
28318 sd_port=`expr $fd_port + 1`
28326 # Check whether --with-dir-password was given.
28327 if test "${with_dir_password+set}" = set; then
28328 withval=$with_dir_password;
28329 if test "x$withval" != "xno" ; then
28330 dir_password=$withval
28337 if test "x$dir_password" = "x" ; then
28338 if test "x$OPENSSL" = "xnone" ; then
28339 key=`autoconf/randpass 33`
28341 key=`openssl rand -base64 33`
28348 # Check whether --with-fd-password was given.
28349 if test "${with_fd_password+set}" = set; then
28350 withval=$with_fd_password;
28351 if test "x$withval" != "xno" ; then
28352 fd_password=$withval
28359 if test "x$fd_password" = "x" ; then
28360 if test "x$OPENSSL" = "xnone" ; then
28361 key=`autoconf/randpass 37`
28363 key=`openssl rand -base64 33`
28370 # Check whether --with-sd-password was given.
28371 if test "${with_sd_password+set}" = set; then
28372 withval=$with_sd_password;
28373 if test "x$withval" != "xno" ; then
28374 sd_password=$withval
28381 if test "x$sd_password" = "x" ; then
28382 if test "x$OPENSSL" = "xnone" ; then
28383 key=`autoconf/randpass 41`
28385 key=`openssl rand -base64 33`
28392 # Check whether --with-mon-dir-password was given.
28393 if test "${with_mon_dir_password+set}" = set; then
28394 withval=$with_mon_dir_password;
28395 if test "x$withval" != "xno" ; then
28396 mon_dir_password=$withval
28403 if test "x$mon_dir_password" = "x" ; then
28404 if test "x$OPENSSL" = "xnone" ; then
28405 key=`autoconf/randpass 33`
28407 key=`openssl rand -base64 33`
28409 mon_dir_password=$key
28414 # Check whether --with-mon-fd-password was given.
28415 if test "${with_mon_fd_password+set}" = set; then
28416 withval=$with_mon_fd_password;
28417 if test "x$withval" != "xno" ; then
28418 mon_fd_password=$withval
28425 if test "x$mon_fd_password" = "x" ; then
28426 if test "x$OPENSSL" = "xnone" ; then
28427 key=`autoconf/randpass 37`
28429 key=`openssl rand -base64 33`
28431 mon_fd_password=$key
28436 # Check whether --with-mon-sd-password was given.
28437 if test "${with_mon_sd_password+set}" = set; then
28438 withval=$with_mon_sd_password;
28439 if test "x$withval" != "xno" ; then
28440 mon_sd_password=$withval
28447 if test "x$mon_sd_password" = "x" ; then
28448 if test "x$OPENSSL" = "xnone" ; then
28449 key=`autoconf/randpass 41`
28451 key=`openssl rand -base64 33`
28453 mon_sd_password=$key
28465 # Check whether --with-db_name was given.
28466 if test "${with_db_name+set}" = set; then
28467 withval=$with_db_name;
28468 if test "x$withval" != "x" ; then
28479 # Check whether --with-db_user was given.
28480 if test "${with_db_user+set}" = set; then
28481 withval=$with_db_user;
28482 if test "x$withval" != "x" ; then
28493 # Check whether --with-db_password was given.
28494 if test "${with_db_password+set}" = set; then
28495 withval=$with_db_password;
28496 if test "x$withval" != "x" ; then
28497 db_password=$withval
28507 # Check whether --with-db_port was given.
28508 if test "${with_db_port+set}" = set; then
28509 withval=$with_db_port;
28510 if test "x$withval" != "x" ; then
28520 # Handle users and groups for each daemon
28524 # Check whether --with-dir_user was given.
28525 if test "${with_dir_user+set}" = set; then
28526 withval=$with_dir_user;
28527 if test "x$withval" != "x" ; then
28537 # Check whether --with-dir_group was given.
28538 if test "${with_dir_group+set}" = set; then
28539 withval=$with_dir_group;
28540 if test "x$withval" != "x" ; then
28550 # Check whether --with-sd_user was given.
28551 if test "${with_sd_user+set}" = set; then
28552 withval=$with_sd_user;
28553 if test "x$withval" != "x" ; then
28563 # Check whether --with-sd_group was given.
28564 if test "${with_sd_group+set}" = set; then
28565 withval=$with_sd_group;
28566 if test "x$withval" != "x" ; then
28576 # Check whether --with-fd_user was given.
28577 if test "${with_fd_user+set}" = set; then
28578 withval=$with_fd_user;
28579 if test "x$withval" != "x" ; then
28589 # Check whether --with-fd_group was given.
28590 if test "${with_fd_group+set}" = set; then
28591 withval=$with_fd_group;
28592 if test "x$withval" != "x" ; then
28609 # Check whether --with-sbin-perm was given.
28610 if test "${with_sbin_perm+set}" = set; then
28611 withval=$with_sbin_perm;
28612 if test "x$withval" != "x" ; then
28625 { $as_echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
28626 $as_echo_n "checking for PostgreSQL support... " >&6; }
28628 # Check whether --with-postgresql was given.
28629 if test "${with_postgresql+set}" = set; then
28630 withval=$with_postgresql;
28631 if test "$withval" != "no"; then
28632 if test "$db_found" = "yes"; then
28633 { $as_echo "$as_me:$LINENO: result: error" >&5
28634 $as_echo "error" >&6; }
28635 { { $as_echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
28636 $as_echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
28637 { (exit 1); exit 1; }; };
28639 if test "$withval" = "yes"; then
28640 PG_CONFIG=`which pg_config`
28641 if test -n "$PG_CONFIG";then
28642 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
28643 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
28644 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
28645 elif test -f /usr/local/include/libpq-fe.h; then
28646 POSTGRESQL_INCDIR=/usr/local/include
28647 if test -d /usr/local/lib64; then
28648 POSTGRESQL_LIBDIR=/usr/local/lib64
28650 POSTGRESQL_LIBDIR=/usr/local/lib
28652 POSTGRESQL_BINDIR=/usr/local/bin
28653 elif test -f /usr/include/libpq-fe.h; then
28654 POSTGRESQL_INCDIR=/usr/include
28655 if test -d /usr/lib64; then
28656 POSTGRESQL_LIBDIR=/usr/lib64
28658 POSTGRESQL_LIBDIR=/usr/lib
28660 POSTGRESQL_BINDIR=/usr/bin
28661 elif test -f /usr/include/pgsql/libpq-fe.h; then
28662 POSTGRESQL_INCDIR=/usr/include/pgsql
28663 if test -d /usr/lib64/pgsql; then
28664 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28666 POSTGRESQL_LIBDIR=/usr/lib/pgsql
28668 POSTGRESQL_BINDIR=/usr/bin
28669 elif test -f /usr/include/postgresql/libpq-fe.h; then
28670 POSTGRESQL_INCDIR=/usr/include/postgresql
28671 if test -d /usr/lib64/postgresql; then
28672 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28674 POSTGRESQL_LIBDIR=/usr/lib/postgresql
28676 POSTGRESQL_BINDIR=/usr/bin
28678 { $as_echo "$as_me:$LINENO: result: no" >&5
28679 $as_echo "no" >&6; }
28680 { { $as_echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28681 $as_echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28682 { (exit 1); exit 1; }; }
28684 elif test -f $withval/include/libpq-fe.h; then
28685 POSTGRESQL_INCDIR=$withval/include
28686 POSTGRESQL_LIBDIR=$withval/lib
28687 POSTGRESQL_BINDIR=$withval/bin
28688 elif test -f $withval/include/postgresql/libpq-fe.h; then
28689 POSTGRESQL_INCDIR=$withval/include/postgresql
28690 if test -d $withval/lib64; then
28691 POSTGRESQL_LIBDIR=$withval/lib64
28693 POSTGRESQL_LIBDIR=$withval/lib
28695 POSTGRESQL_BINDIR=$withval/bin
28697 { $as_echo "$as_me:$LINENO: result: no" >&5
28698 $as_echo "no" >&6; }
28699 { { $as_echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28700 $as_echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28701 { (exit 1); exit 1; }; }
28703 cat >>confdefs.h <<\_ACEOF
28704 #define HAVE_POSTGRESQL 1
28707 { $as_echo "$as_me:$LINENO: result: yes" >&5
28708 $as_echo "yes" >&6; }
28709 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28710 { $as_echo "$as_me:$LINENO: checking for crypt" >&5
28711 $as_echo_n "checking for crypt... " >&6; }
28712 if test "${ac_cv_func_crypt+set}" = set; then
28713 $as_echo_n "(cached) " >&6
28715 cat >conftest.$ac_ext <<_ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h. */
28721 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28723 #define crypt innocuous_crypt
28725 /* System header to define __stub macros and hopefully few prototypes,
28726 which can conflict with char crypt (); below.
28727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28728 <limits.h> exists even on freestanding compilers. */
28731 # include <limits.h>
28733 # include <assert.h>
28738 /* Override any GCC internal prototype to avoid an error.
28739 Use char because int might match the return type of a GCC
28740 builtin and then its argument prototype would still apply. */
28745 /* The GNU C library defines this for functions which it implements
28746 to always fail with ENOSYS. Some functions are actually named
28747 something starting with __ and the normal name is an alias. */
28748 #if defined __stub_crypt || defined __stub___crypt
28760 rm -f conftest.$ac_objext conftest$ac_exeext
28761 if { (ac_try="$ac_link"
28762 case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28767 $as_echo "$ac_try_echo") >&5
28768 (eval "$ac_link") 2>conftest.er1
28770 grep -v '^ *+' conftest.er1 >conftest.err
28772 cat conftest.err >&5
28773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } && {
28775 test -z "$ac_c_werror_flag" ||
28776 test ! -s conftest.err
28777 } && test -s conftest$ac_exeext && {
28778 test "$cross_compiling" = yes ||
28779 $as_test_x conftest$ac_exeext
28781 ac_cv_func_crypt=yes
28783 $as_echo "$as_me: failed program was:" >&5
28784 sed 's/^/| /' conftest.$ac_ext >&5
28786 ac_cv_func_crypt=no
28789 rm -rf conftest.dSYM
28790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28791 conftest$ac_exeext conftest.$ac_ext
28793 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28794 $as_echo "$ac_cv_func_crypt" >&6; }
28795 if test "x$ac_cv_func_crypt" = x""yes; then
28798 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28799 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
28800 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28801 $as_echo_n "(cached) " >&6
28803 ac_check_lib_save_LIBS=$LIBS
28804 LIBS="-lcrypt $LIBS"
28805 cat >conftest.$ac_ext <<_ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h. */
28812 /* Override any GCC internal prototype to avoid an error.
28813 Use char because int might match the return type of a GCC
28814 builtin and then its argument prototype would still apply. */
28827 rm -f conftest.$ac_objext conftest$ac_exeext
28828 if { (ac_try="$ac_link"
28829 case "(($ac_try" in
28830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28831 *) ac_try_echo=$ac_try;;
28833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28834 $as_echo "$ac_try_echo") >&5
28835 (eval "$ac_link") 2>conftest.er1
28837 grep -v '^ *+' conftest.er1 >conftest.err
28839 cat conftest.err >&5
28840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); } && {
28842 test -z "$ac_c_werror_flag" ||
28843 test ! -s conftest.err
28844 } && test -s conftest$ac_exeext && {
28845 test "$cross_compiling" = yes ||
28846 $as_test_x conftest$ac_exeext
28848 ac_cv_lib_crypt_crypt=yes
28850 $as_echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28853 ac_cv_lib_crypt_crypt=no
28856 rm -rf conftest.dSYM
28857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28858 conftest$ac_exeext conftest.$ac_ext
28859 LIBS=$ac_check_lib_save_LIBS
28861 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28862 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
28863 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
28864 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28869 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28870 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28871 SQL_BINDIR=$POSTGRESQL_BINDIR
28872 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28875 support_postgresql=yes
28879 { $as_echo "$as_me:$LINENO: result: no" >&5
28880 $as_echo "no" >&6; }
28885 { $as_echo "$as_me:$LINENO: result: no" >&5
28886 $as_echo "no" >&6; }
28898 { $as_echo "$as_me:$LINENO: checking for MySQL support" >&5
28899 $as_echo_n "checking for MySQL support... " >&6; }
28901 # Check whether --with-mysql was given.
28902 if test "${with_mysql+set}" = set; then
28903 withval=$with_mysql;
28904 if test "$withval" != "no"; then
28905 if test "$withval" = "yes"; then
28906 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28907 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28908 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28909 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28910 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28912 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28914 MYSQL_BINDIR=/usr/local/mysql/bin
28915 elif test -f /usr/include/mysql/mysql.h; then
28916 MYSQL_INCDIR=/usr/include/mysql
28917 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28918 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28919 MYSQL_LIBDIR=/usr/lib64/mysql
28920 elif test -f /usr/lib64/libmysqlclient_r.a \
28921 -o -f /usr/lib64/libmysqlclient_r.so; then
28922 MYSQL_LIBDIR=/usr/lib64
28923 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28924 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28925 MYSQL_LIBDIR=/usr/lib/mysql
28927 MYSQL_LIBDIR=/usr/lib
28929 MYSQL_BINDIR=/usr/bin
28930 elif test -f /usr/include/mysql.h; then
28931 MYSQL_INCDIR=/usr/include
28932 if test -f /usr/lib64/libmysqlclient_r.a \
28933 -o -f /usr/lib64/libmysqlclient_r.so; then
28934 MYSQL_LIBDIR=/usr/lib64
28936 MYSQL_LIBDIR=/usr/lib
28938 MYSQL_BINDIR=/usr/bin
28939 elif test -f /usr/local/include/mysql/mysql.h; then
28940 MYSQL_INCDIR=/usr/local/include/mysql
28941 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28942 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28943 MYSQL_LIBDIR=/usr/local/lib64/mysql
28945 MYSQL_LIBDIR=/usr/local/lib/mysql
28947 MYSQL_BINDIR=/usr/local/bin
28948 elif test -f /usr/local/include/mysql.h; then
28949 MYSQL_INCDIR=/usr/local/include
28950 if test -f /usr/local/lib64/libmysqlclient_r.a \
28951 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28952 MYSQL_LIBDIR=/usr/local/lib64
28954 MYSQL_LIBDIR=/usr/local/lib
28956 MYSQL_BINDIR=/usr/local/bin
28958 { $as_echo "$as_me:$LINENO: result: no" >&5
28959 $as_echo "no" >&6; }
28960 { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28961 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28962 { (exit 1); exit 1; }; }
28965 if test -f $withval/include/mysql/mysql.h; then
28966 MYSQL_INCDIR=$withval/include/mysql
28967 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28968 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28969 MYSQL_LIBDIR=$withval/lib64/mysql
28970 elif test -f $withval/lib64/libmysqlclient_r.a \
28971 -o -f $withval/lib64/libmysqlclient_r.so; then
28972 MYSQL_LIBDIR=$withval/lib64
28973 elif test -f $withval/lib/libmysqlclient_r.a \
28974 -o -f $withval/lib/libmysqlclient_r.so; then
28975 MYSQL_LIBDIR=$withval/lib
28977 MYSQL_LIBDIR=$withval/lib/mysql
28979 MYSQL_BINDIR=$withval/bin
28980 elif test -f $withval/include/mysql.h; then
28981 MYSQL_INCDIR=$withval/include
28982 if test -f $withval/lib64/libmysqlclient_r.a \
28983 -o -f $withval/lib64/libmysqlclient_r.so; then
28984 MYSQL_LIBDIR=$withval/lib64
28986 MYSQL_LIBDIR=$withval/lib
28988 MYSQL_BINDIR=$withval/bin
28990 { $as_echo "$as_me:$LINENO: result: no" >&5
28991 $as_echo "no" >&6; }
28992 { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28993 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28994 { (exit 1); exit 1; }; }
28997 SQL_INCLUDE=-I$MYSQL_INCDIR
28998 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28999 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
29000 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
29001 cat >>confdefs.h <<\_ACEOF
29002 #define HAVE_THREAD_SAFE_MYSQL 1
29006 SQL_BINDIR=$MYSQL_BINDIR
29007 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
29010 cat >>confdefs.h <<\_ACEOF
29011 #define HAVE_MYSQL 1
29014 { $as_echo "$as_me:$LINENO: result: yes" >&5
29015 $as_echo "yes" >&6; }
29022 { $as_echo "$as_me:$LINENO: result: no" >&5
29023 $as_echo "no" >&6; }
29031 # Check whether --with-embedded-mysql was given.
29032 if test "${with_embedded_mysql+set}" = set; then
29033 withval=$with_embedded_mysql;
29034 if test "$withval" != "no"; then
29035 if test "$withval" = "yes"; then
29036 if test -f /usr/local/mysql/include/mysql/mysql.h; then
29037 MYSQL_INCDIR=/usr/local/mysql/include/mysql
29038 if test -d /usr/local/mysql/lib64/mysql; then
29039 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29041 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29043 MYSQL_BINDIR=/usr/local/mysql/bin
29044 elif test -f /usr/include/mysql/mysql.h; then
29045 MYSQL_INCDIR=/usr/include/mysql
29046 if test -d /usr/lib64/mysql; then
29047 MYSQL_LIBDIR=/usr/lib64/mysql
29049 MYSQL_LIBDIR=/usr/lib/mysql
29051 MYSQL_BINDIR=/usr/bin
29052 elif test -f /usr/include/mysql.h; then
29053 MYSQL_INCDIR=/usr/include
29054 if test -d /usr/lib64; then
29055 MYSQL_LIBDIR=/usr/lib64
29057 MYSQL_LIBDIR=/usr/lib
29059 MYSQL_BINDIR=/usr/bin
29060 elif test -f /usr/local/include/mysql/mysql.h; then
29061 MYSQL_INCDIR=/usr/local/include/mysql
29062 if test -d /usr/local/lib64/mysql; then
29063 MYSQL_LIBDIR=/usr/local/lib64/mysql
29065 MYSQL_LIBDIR=/usr/local/lib/mysql
29067 MYSQL_BINDIR=/usr/local/bin
29068 elif test -f /usr/local/include/mysql.h; then
29069 MYSQL_INCDIR=/usr/local/include
29070 if test -d /usr/local/lib64; then
29071 MYSQL_LIBDIR=/usr/local/lib64
29073 MYSQL_LIBDIR=/usr/local/lib
29075 MYSQL_BINDIR=/usr/local/bin
29077 { $as_echo "$as_me:$LINENO: result: no" >&5
29078 $as_echo "no" >&6; }
29079 { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
29080 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
29081 { (exit 1); exit 1; }; }
29084 if test -f $withval/include/mysql/mysql.h; then
29085 MYSQL_INCDIR=$withval/include/mysql
29086 if test -d $withval/lib64/mysql; then
29087 MYSQL_LIBDIR=$withval/lib64/mysql
29089 MYSQL_LIBDIR=$withval/lib/mysql
29091 MYSQL_BINDIR=$withval/bin
29092 elif test -f $withval/include/mysql.h; then
29093 MYSQL_INCDIR=$withval/include
29094 if test -d $withval/lib64; then
29095 MYSQL_LIBDIR=$withval/lib64
29097 MYSQL_LIBDIR=$withval/lib
29099 MYSQL_BINDIR=$withval/bin
29101 { $as_echo "$as_me:$LINENO: result: no" >&5
29102 $as_echo "no" >&6; }
29103 { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
29104 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
29105 { (exit 1); exit 1; }; }
29108 SQL_INCLUDE=-I$MYSQL_INCDIR
29109 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
29110 SQL_BINDIR=$MYSQL_BINDIR
29111 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
29113 cat >>confdefs.h <<\_ACEOF
29114 #define HAVE_MYSQL 1
29117 cat >>confdefs.h <<\_ACEOF
29118 #define HAVE_EMBEDDED_MYSQL 1
29121 { $as_echo "$as_me:$LINENO: result: yes" >&5
29122 $as_echo "yes" >&6; }
29129 { $as_echo "$as_me:$LINENO: result: no" >&5
29130 $as_echo "no" >&6; }
29146 { $as_echo "$as_me:$LINENO: checking for Ingres support" >&5
29147 $as_echo_n "checking for Ingres support... " >&6; }
29149 # Check whether --with-ingres was given.
29150 if test "${with_ingres+set}" = set; then
29151 withval=$with_ingres;
29152 if test "$withval" != "no"; then
29153 if test "$withval" = "yes"; then
29154 if test -f ${II_SYSTEM}/files/eqdefc.h; then
29155 INGRES_INCDIR=${II_SYSTEM}/files
29156 INGRES_LIBDIR=${II_SYSTEM}/lib
29157 INGRES_BINDIR=${II_SYSTEM}/bin
29158 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
29159 INGRES_INCDIR=${II_SYSTEM}/ingres/files
29160 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
29161 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
29163 { $as_echo "$as_me:$LINENO: result: no" >&5
29164 $as_echo "no" >&6; }
29165 { { $as_echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
29166 $as_echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
29167 { (exit 1); exit 1; }; }
29170 if test -f $withval/files/eqdefc.h; then
29171 INGRES_INCDIR=$withval/files
29172 INGRES_LIBDIR=$withval/lib
29173 INGRES_BINDIR=$withval/bin
29175 { $as_echo "$as_me:$LINENO: result: no" >&5
29176 $as_echo "no" >&6; }
29177 { { $as_echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
29178 $as_echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
29179 { (exit 1); exit 1; }; }
29182 SQL_INCLUDE=-I$INGRES_INCDIR
29183 SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
29184 SQL_BINDIR=$INGRES_BINDIR
29185 SQL_LIB=$INGRES_LIBDIR/libingres.a
29187 cat >>confdefs.h <<\_ACEOF
29188 #define HAVE_INGRES 1
29191 { $as_echo "$as_me:$LINENO: result: yes" >&5
29192 $as_echo "yes" >&6; }
29199 { $as_echo "$as_me:$LINENO: result: no" >&5
29200 $as_echo "no" >&6; }
29205 { $as_echo "$as_me:$LINENO: result: no" >&5
29206 $as_echo "no" >&6; }
29218 { $as_echo "$as_me:$LINENO: checking for SQLite3 support" >&5
29219 $as_echo_n "checking for SQLite3 support... " >&6; }
29221 # Check whether --with-sqlite3 was given.
29222 if test "${with_sqlite3+set}" = set; then
29223 withval=$with_sqlite3;
29224 if test "$withval" != "no"; then
29225 if test "$withval" = "yes"; then
29226 if test -f /usr/local/include/sqlite3.h; then
29227 SQLITE_INCDIR=/usr/local/include
29228 if test -d /usr/local/lib64; then
29229 SQLITE_LIBDIR=/usr/local/lib64
29231 SQLITE_LIBDIR=/usr/local/lib
29233 SQLITE_BINDIR=/usr/local/bin
29234 elif test -f /usr/include/sqlite3.h; then
29235 SQLITE_INCDIR=/usr/include
29236 if test -d /usr/lib64; then
29237 SQLITE_LIBDIR=/usr/lib64
29239 SQLITE_LIBDIR=/usr/lib
29241 SQLITE_BINDIR=/usr/bin
29242 elif test -f $prefix/include/sqlite3.h; then
29243 SQLITE_INCDIR=$prefix/include
29244 if test -d $prefix/lib64; then
29245 SQLITE_LIBDIR=$prefix/lib64
29247 SQLITE_LIBDIR=$prefix/lib
29249 SQLITE_BINDIR=$prefix/bin
29251 { $as_echo "$as_me:$LINENO: result: no" >&5
29252 $as_echo "no" >&6; }
29253 { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
29254 $as_echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
29255 { (exit 1); exit 1; }; }
29258 if test -f $withval/sqlite3.h; then
29259 SQLITE_INCDIR=$withval
29260 SQLITE_LIBDIR=$withval
29261 SQLITE_BINDIR=$withval
29262 elif test -f $withval/include/sqlite3.h; then
29263 SQLITE_INCDIR=$withval/include
29264 if test -d $withval/lib64; then
29265 SQLITE_LIBDIR=$withval/lib64
29267 SQLITE_LIBDIR=$withval/lib
29269 SQLITE_BINDIR=$withval/bin
29271 { $as_echo "$as_me:$LINENO: result: no" >&5
29272 $as_echo "no" >&6; }
29273 { { $as_echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
29274 $as_echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
29275 { (exit 1); exit 1; }; }
29278 SQL_INCLUDE=-I$SQLITE_INCDIR
29279 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
29280 SQL_BINDIR=$SQLITE_BINDIR
29281 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
29283 cat >>confdefs.h <<\_ACEOF
29284 #define HAVE_SQLITE3 1
29287 { $as_echo "$as_me:$LINENO: result: yes" >&5
29288 $as_echo "yes" >&6; }
29290 support_sqlite3=yes
29295 { $as_echo "$as_me:$LINENO: result: no" >&5
29296 $as_echo "no" >&6; }
29301 { $as_echo "$as_me:$LINENO: result: no" >&5
29302 $as_echo "no" >&6; }
29312 # BA_CHECK_SQLITE_DB
29316 { $as_echo "$as_me:$LINENO: checking for DBI support" >&5
29317 $as_echo_n "checking for DBI support... " >&6; }
29319 # Check whether --with-dbi was given.
29320 if test "${with_dbi+set}" = set; then
29322 if test "$withval" != "no"; then
29323 if test "$withval" = "yes"; then
29324 if test -f /usr/local/include/dbi/dbi.h; then
29325 DBI_INCDIR=/usr/local/dbi/include
29326 if test -d /usr/local/lib64; then
29327 DBI_LIBDIR=/usr/local/lib64
29329 DBI_LIBDIR=/usr/local/lib
29331 DBI_BINDIR=/usr/local/bin
29332 elif test -f /usr/include/dbi/dbi.h; then
29333 DBI_INCDIR=/usr/include
29334 if test -d /usr/lib64; then
29335 DBI_LIBDIR=/usr/lib64
29337 DBI_LIBDIR=/usr/lib
29339 DBI_BINDIR=/usr/bin
29340 elif test -f $prefix/include/dbi/dbi.h; then
29341 DBI_INCDIR=$prefix/include
29342 if test -d $prefix/lib64; then
29343 DBI_LIBDIR=$prefix/lib64
29345 DBI_LIBDIR=$prefix/lib
29347 DBI_BINDIR=$prefix/bin
29349 { $as_echo "$as_me:$LINENO: result: no" >&5
29350 $as_echo "no" >&6; }
29351 { { $as_echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
29352 $as_echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
29353 { (exit 1); exit 1; }; }
29355 if test -d /usr/local/lib/dbd; then
29356 DRIVERDIR=/usr/local/lib/dbd
29357 if test -d /usr/local/lib64/dbd; then
29358 DRIVERDIR=/usr/local/lib64/dbd
29360 DRIVERDIR=/usr/local/lib/dbd
29362 elif test -d /usr/lib/dbd; then
29363 DRIVERDIR=/usr/lib/dbd
29364 if test -d /usr/lib64/dbd; then
29365 DRIVERDIR=/usr/lib64/dbd
29367 DRIVERDIR=/usr/lib/dbd
29369 elif test -d $prefix/lib/dbd; then
29370 if test -d $prefix/lib64/dbd; then
29371 DRIVERDIR=$prefix/lib64/dbd
29373 DRIVERDIR=$prefix/lib/dbd
29375 elif test -d /usr/local/lib64/dbd; then
29376 DRIVERDIR=/usr/local/lib64/dbd
29377 elif test -d /usr/lib64/dbd; then
29378 DRIVERDIR=/usr/lib64/dbd
29379 elif test -d $prefix/lib64/dbd; then
29380 DRIVERDIR=$prefix/lib64/dbd
29382 { $as_echo "$as_me:$LINENO: result: no" >&5
29383 $as_echo "no" >&6; }
29384 { { $as_echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
29385 $as_echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
29386 { (exit 1); exit 1; }; }
29389 if test -f $withval/dbi.h; then
29390 DBI_INCDIR=$withval
29391 DBI_LIBDIR=$withval
29392 DBI_BINDIR=$withval
29393 elif test -f $withval/include/dbi/dbi.h; then
29394 DBI_INCDIR=$withval/include
29395 if test -d $withval/lib64; then
29396 DBI_LIBDIR=$withval/lib64
29398 DBI_LIBDIR=$withval/lib
29400 DBI_BINDIR=$withval/bin
29402 { $as_echo "$as_me:$LINENO: result: no" >&5
29403 $as_echo "no" >&6; }
29404 { { $as_echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
29405 $as_echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
29406 { (exit 1); exit 1; }; }
29408 if test -d $withval/dbd; then
29409 DRIVERDIR=$withval/dbd
29410 elif test -d $withval/lib/; then
29411 if test -d $withval/lib64/dbd; then
29412 DRIVERDIR=$withval/lib64/dbd
29414 DRIVERDIR=$withval/lib/dbd
29416 elif test -d $withval/lib64/dbd; then
29417 DRIVERDIR=$withval/lib64/dbd
29419 { $as_echo "$as_me:$LINENO: result: no" >&5
29420 $as_echo "no" >&6; }
29421 { { $as_echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
29422 $as_echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
29423 { (exit 1); exit 1; }; }
29426 SQL_INCLUDE=-I$DBI_INCDIR
29427 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
29428 SQL_BINDIR=$DBI_BINDIR
29429 SQL_LIB=$DBI_LIBDIR/libdbi.a
29430 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
29433 cat >>confdefs.h <<\_ACEOF
29437 { $as_echo "$as_me:$LINENO: result: yes" >&5
29438 $as_echo "yes" >&6; }
29446 { $as_echo "$as_me:$LINENO: result: no" >&5
29447 $as_echo "no" >&6; }
29452 { $as_echo "$as_me:$LINENO: result: no" >&5
29453 $as_echo "no" >&6; }
29468 { $as_echo "$as_me:$LINENO: checking for DBI drivers support" >&5
29469 $as_echo_n "checking for DBI drivers support... " >&6; }
29471 # Check whether --with-dbi-driver was given.
29472 if test "${with_dbi_driver+set}" = set; then
29473 withval=$with_dbi_driver;
29474 if test "$withval" != "no"; then
29478 if test -f /usr/local/mysql/bin/mysql; then
29479 SQL_BINDIR=/usr/local/mysql/bin
29480 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
29481 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
29482 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
29484 SQL_LIBDIR=/usr/local/mysql/lib/mysql
29486 elif test -f /usr/bin/mysql; then
29487 SQL_BINDIR=/usr/bin
29488 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
29489 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
29490 SQL_LIBDIR=/usr/lib64/mysql
29491 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
29492 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
29493 SQL_LIBDIR=/usr/lib/mysql
29495 SQL_LIBDIR=/usr/lib
29497 elif test -f /usr/local/bin/mysql; then
29498 SQL_BINDIR=/usr/local/bin
29499 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
29500 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
29501 SQL_LIBDIR=/usr/local/lib64/mysql
29502 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
29503 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
29504 SQL_LIBDIR=/usr/local/lib/mysql
29506 SQL_LIBDIR=/usr/local/lib
29508 elif test -f $withval/bin/mysql; then
29509 SQL_BINDIR=$withval/bin
29510 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
29511 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
29512 SQL_LIBDIR=$withval/lib64/mysql
29513 elif test -f $withval/lib64/libmysqlclient_r.a \
29514 -o -f $withval/lib64/libmysqlclient_r.so; then
29515 SQL_LIBDIR=$withval/lib64
29516 elif test -f $withval/lib/libmysqlclient_r.a \
29517 -o -f $withval/lib/libmysqlclient_r.so; then
29518 SQL_LIBDIR=$withval/lib/
29520 SQL_LIBDIR=$withval/lib/mysql
29523 { $as_echo "$as_me:$LINENO: result: no" >&5
29524 $as_echo "no" >&6; }
29525 { { $as_echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
29526 $as_echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
29527 { (exit 1); exit 1; }; }
29529 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
29530 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
29532 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
29536 db_prog="postgresql"
29537 PG_CONFIG=`which pg_config`
29538 if test -n "$PG_CONFIG"; then
29539 SQL_BINDIR=`"$PG_CONFIG" --bindir`
29540 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
29541 elif test -f /usr/local/bin/psql; then
29542 SQL_BINDIR=/usr/local/bin
29543 if test -d /usr/local/lib64; then
29544 SQL_LIBDIR=/usr/local/lib64
29546 SQL_LIBDIR=/usr/local/lib
29548 elif test -f /usr/bin/psql; then
29549 SQL_BINDIR=/usr/local/bin
29550 if test -d /usr/lib64/postgresql; then
29551 SQL_LIBDIR=/usr/lib64/postgresql
29552 elif test -d /usr/lib/postgresql; then
29553 SQL_LIBDIR=/usr/lib/postgresql
29554 elif test -d /usr/lib64; then
29555 SQL_LIBDIR=/usr/lib64
29557 SQL_LIBDIR=/usr/lib
29559 elif test -f $withval/bin/psql; then
29560 SQL_BINDIR=$withval/bin
29561 if test -d $withval/lib64; then
29562 SQL_LIBDIR=$withval/lib64
29564 SQL_LIBDIR=$withval/lib
29567 { $as_echo "$as_me:$LINENO: result: no" >&5
29568 $as_echo "no" >&6; }
29569 { { $as_echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
29570 $as_echo "$as_me: error: Unable to find psql in standard locations" >&2;}
29571 { (exit 1); exit 1; }; }
29573 if test -f $SQL_LIBDIR/libpq.so; then
29574 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
29576 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
29581 if test -f /usr/local/bin/sqlite; then
29582 SQL_BINDIR=/usr/local/bin
29583 if test -d /usr/local/lib64; then
29584 SQL_LIBDIR=/usr/local/lib64
29586 SQL_LIBDIR=/usr/local/lib
29588 elif test -f /usr/bin/sqlite; then
29589 SQL_BINDIR=/usr/bin
29590 if test -d /usr/lib64; then
29591 SQL_LIBDIR=/usr/lib64
29593 SQL_LIBDIR=/usr/lib
29595 elif test -f $withval/bin/sqlite; then
29596 SQL_BINDIR=$withval/bin
29597 if test -d $withval/lib64; then
29598 SQL_LIBDIR=$withval/lib64
29600 SQL_LIBDIR=$withval/lib
29603 { $as_echo "$as_me:$LINENO: result: no" >&5
29604 $as_echo "no" >&6; }
29605 { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29606 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29607 { (exit 1); exit 1; }; }
29609 if test -f $SQL_LIBDIR/libsqlite.so; then
29610 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
29612 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
29617 if test -f /usr/local/bin/sqlite3; then
29618 SQL_BINDIR=/usr/local/bin
29619 if test -d /usr/local/lib64; then
29620 SQL_LIBDIR=/usr/local/lib64
29622 SQL_LIBDIR=/usr/local/lib
29624 elif test -f /usr/bin/sqlite3; then
29625 SQL_BINDIR=/usr/bin
29626 if test -d /usr/lib64; then
29627 SQL_LIBDIR=/usr/lib64
29629 SQL_LIBDIR=/usr/lib
29631 elif test -f $withval/bin/sqlite3; then
29632 SQL_BINDIR=$withval/bin
29633 if test -d $withval/lib64; then
29634 SQL_LIBDIR=$withval/lib64
29636 SQL_LIBDIR=$withval/lib
29639 { $as_echo "$as_me:$LINENO: result: no" >&5
29640 $as_echo "no" >&6; }
29641 { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29642 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29643 { (exit 1); exit 1; }; }
29645 if test -f $SQL_LIBDIR/libsqlite3.so; then
29646 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
29648 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
29652 { $as_echo "$as_me:$LINENO: result: no" >&5
29653 $as_echo "no" >&6; }
29654 { { $as_echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
29655 $as_echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29656 { (exit 1); exit 1; }; }
29660 { $as_echo "$as_me:$LINENO: result: yes" >&5
29661 $as_echo "yes" >&6; }
29664 { $as_echo "$as_me:$LINENO: result: no" >&5
29665 $as_echo "no" >&6; }
29670 { $as_echo "$as_me:$LINENO: result: no" >&5
29671 $as_echo "no" >&6; }
29684 support_batch_insert=no
29685 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29687 if test $pkg = 0; then
29688 support_batch_insert=yes
29689 # Check whether --enable-batch-insert was given.
29690 if test "${enable_batch_insert+set}" = set; then
29691 enableval=$enable_batch_insert;
29692 if test x$enableval = xno; then
29693 support_batch_insert=no
29695 support_batch_insert=yes
29703 if test x$DB_TYPE = xpostgresql; then
29704 { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29705 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29706 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29707 $as_echo_n "(cached) " >&6
29709 ac_check_lib_save_LIBS=$LIBS
29711 cat >conftest.$ac_ext <<_ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h. */
29718 /* Override any GCC internal prototype to avoid an error.
29719 Use char because int might match the return type of a GCC
29720 builtin and then its argument prototype would still apply. */
29724 char PQisthreadsafe ();
29728 return PQisthreadsafe ();
29733 rm -f conftest.$ac_objext conftest$ac_exeext
29734 if { (ac_try="$ac_link"
29735 case "(($ac_try" in
29736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737 *) ac_try_echo=$ac_try;;
29739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29740 $as_echo "$ac_try_echo") >&5
29741 (eval "$ac_link") 2>conftest.er1
29743 grep -v '^ *+' conftest.er1 >conftest.err
29745 cat conftest.err >&5
29746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } && {
29748 test -z "$ac_c_werror_flag" ||
29749 test ! -s conftest.err
29750 } && test -s conftest$ac_exeext && {
29751 test "$cross_compiling" = yes ||
29752 $as_test_x conftest$ac_exeext
29754 ac_cv_lib_pq_PQisthreadsafe=yes
29756 $as_echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29759 ac_cv_lib_pq_PQisthreadsafe=no
29762 rm -rf conftest.dSYM
29763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29764 conftest$ac_exeext conftest.$ac_ext
29765 LIBS=$ac_check_lib_save_LIBS
29767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29768 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29769 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29771 cat >>confdefs.h <<\_ACEOF
29772 #define HAVE_PQISTHREADSAFE 1
29777 { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29778 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29779 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29780 $as_echo_n "(cached) " >&6
29782 ac_check_lib_save_LIBS=$LIBS
29784 cat >conftest.$ac_ext <<_ACEOF
29787 cat confdefs.h >>conftest.$ac_ext
29788 cat >>conftest.$ac_ext <<_ACEOF
29789 /* end confdefs.h. */
29791 /* Override any GCC internal prototype to avoid an error.
29792 Use char because int might match the return type of a GCC
29793 builtin and then its argument prototype would still apply. */
29797 char PQputCopyData ();
29801 return PQputCopyData ();
29806 rm -f conftest.$ac_objext conftest$ac_exeext
29807 if { (ac_try="$ac_link"
29808 case "(($ac_try" in
29809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810 *) ac_try_echo=$ac_try;;
29812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29813 $as_echo "$ac_try_echo") >&5
29814 (eval "$ac_link") 2>conftest.er1
29816 grep -v '^ *+' conftest.er1 >conftest.err
29818 cat conftest.err >&5
29819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } && {
29821 test -z "$ac_c_werror_flag" ||
29822 test ! -s conftest.err
29823 } && test -s conftest$ac_exeext && {
29824 test "$cross_compiling" = yes ||
29825 $as_test_x conftest$ac_exeext
29827 ac_cv_lib_pq_PQputCopyData=yes
29829 $as_echo "$as_me: failed program was:" >&5
29830 sed 's/^/| /' conftest.$ac_ext >&5
29832 ac_cv_lib_pq_PQputCopyData=no
29835 rm -rf conftest.dSYM
29836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29837 conftest$ac_exeext conftest.$ac_ext
29838 LIBS=$ac_check_lib_save_LIBS
29840 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29841 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
29842 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
29844 cat >>confdefs.h <<\_ACEOF
29845 #define HAVE_PQ_COPY 1
29850 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29852 support_batch_insert=no
29856 if test x$DB_TYPE = xdbi; then
29860 if test $DB_PROG = postgresql; then
29861 { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29862 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29863 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29864 $as_echo_n "(cached) " >&6
29866 ac_check_lib_save_LIBS=$LIBS
29868 cat >conftest.$ac_ext <<_ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h. */
29875 /* Override any GCC internal prototype to avoid an error.
29876 Use char because int might match the return type of a GCC
29877 builtin and then its argument prototype would still apply. */
29881 char PQisthreadsafe ();
29885 return PQisthreadsafe ();
29890 rm -f conftest.$ac_objext conftest$ac_exeext
29891 if { (ac_try="$ac_link"
29892 case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29897 $as_echo "$ac_try_echo") >&5
29898 (eval "$ac_link") 2>conftest.er1
29900 grep -v '^ *+' conftest.er1 >conftest.err
29902 cat conftest.err >&5
29903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); } && {
29905 test -z "$ac_c_werror_flag" ||
29906 test ! -s conftest.err
29907 } && test -s conftest$ac_exeext && {
29908 test "$cross_compiling" = yes ||
29909 $as_test_x conftest$ac_exeext
29911 ac_cv_lib_pq_PQisthreadsafe=yes
29913 $as_echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29916 ac_cv_lib_pq_PQisthreadsafe=no
29919 rm -rf conftest.dSYM
29920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29921 conftest$ac_exeext conftest.$ac_ext
29922 LIBS=$ac_check_lib_save_LIBS
29924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29925 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29926 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29927 cat >>confdefs.h <<\_ACEOF
29928 #define HAVE_PQISTHREADSAFE 1
29933 { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29934 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29935 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29936 $as_echo_n "(cached) " >&6
29938 ac_check_lib_save_LIBS=$LIBS
29940 cat >conftest.$ac_ext <<_ACEOF
29943 cat confdefs.h >>conftest.$ac_ext
29944 cat >>conftest.$ac_ext <<_ACEOF
29945 /* end confdefs.h. */
29947 /* Override any GCC internal prototype to avoid an error.
29948 Use char because int might match the return type of a GCC
29949 builtin and then its argument prototype would still apply. */
29953 char PQputCopyData ();
29957 return PQputCopyData ();
29962 rm -f conftest.$ac_objext conftest$ac_exeext
29963 if { (ac_try="$ac_link"
29964 case "(($ac_try" in
29965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29966 *) ac_try_echo=$ac_try;;
29968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29969 $as_echo "$ac_try_echo") >&5
29970 (eval "$ac_link") 2>conftest.er1
29972 grep -v '^ *+' conftest.er1 >conftest.err
29974 cat conftest.err >&5
29975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); } && {
29977 test -z "$ac_c_werror_flag" ||
29978 test ! -s conftest.err
29979 } && test -s conftest$ac_exeext && {
29980 test "$cross_compiling" = yes ||
29981 $as_test_x conftest$ac_exeext
29983 ac_cv_lib_pq_PQputCopyData=yes
29985 $as_echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29988 ac_cv_lib_pq_PQputCopyData=no
29991 rm -rf conftest.dSYM
29992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29993 conftest$ac_exeext conftest.$ac_ext
29994 LIBS=$ac_check_lib_save_LIBS
29996 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29997 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
29998 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
29999 cat >>confdefs.h <<\_ACEOF
30000 #define HAVE_PQ_COPY 1
30005 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
30009 if test $DB_PROG = mysql; then
30010 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30014 if test $DB_PROG = sqlite3; then
30015 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30017 { $as_echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
30018 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
30019 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
30020 $as_echo_n "(cached) " >&6
30022 ac_check_lib_save_LIBS=$LIBS
30023 LIBS="-lsqlite3 $LIBS"
30024 cat >conftest.$ac_ext <<_ACEOF
30027 cat confdefs.h >>conftest.$ac_ext
30028 cat >>conftest.$ac_ext <<_ACEOF
30029 /* end confdefs.h. */
30031 /* Override any GCC internal prototype to avoid an error.
30032 Use char because int might match the return type of a GCC
30033 builtin and then its argument prototype would still apply. */
30037 char sqlite3_threadsafe ();
30041 return sqlite3_threadsafe ();
30046 rm -f conftest.$ac_objext conftest$ac_exeext
30047 if { (ac_try="$ac_link"
30048 case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30053 $as_echo "$ac_try_echo") >&5
30054 (eval "$ac_link") 2>conftest.er1
30056 grep -v '^ *+' conftest.er1 >conftest.err
30058 cat conftest.err >&5
30059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); } && {
30061 test -z "$ac_c_werror_flag" ||
30062 test ! -s conftest.err
30063 } && test -s conftest$ac_exeext && {
30064 test "$cross_compiling" = yes ||
30065 $as_test_x conftest$ac_exeext
30067 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
30069 $as_echo "$as_me: failed program was:" >&5
30070 sed 's/^/| /' conftest.$ac_ext >&5
30072 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
30075 rm -rf conftest.dSYM
30076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30077 conftest$ac_exeext conftest.$ac_ext
30078 LIBS=$ac_check_lib_save_LIBS
30080 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
30081 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
30082 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then
30084 cat >>confdefs.h <<\_ACEOF
30085 #define HAVE_SQLITE3_THREADSAFE 1
30092 if test $pkg = 0; then
30093 # Check whether --enable-batch-insert was given.
30094 if test "${enable_batch_insert+set}" = set; then
30095 enableval=$enable_batch_insert;
30096 if test x$enableval = xno; then
30097 support_batch_insert=no
30099 support_batch_insert=yes
30112 if test x$DB_TYPE = xingres; then
30113 support_batch_insert=yes
30116 if test $support_batch_insert = yes ; then
30118 cat >>confdefs.h <<\_ACEOF
30119 #define HAVE_BATCH_FILE_INSERT 1
30124 cat >>confdefs.h <<\_ACEOF
30125 #define PROTOTYPES 1
30129 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
30130 if test -z "$CCOPTS"; then
30131 CCOPTS='-g -O2 -Wall'
30138 largefile_support="no"
30140 # Check whether --enable-largefile was given.
30141 if test "${enable_largefile+set}" = set; then
30142 enableval=$enable_largefile;
30145 if test "$enable_largefile" != no; then
30146 if test -n "$ac_tool_prefix"; then
30147 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
30148 set dummy ${ac_tool_prefix}getconf; ac_word=$2
30149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30150 $as_echo_n "checking for $ac_word... " >&6; }
30151 if test "${ac_cv_prog_GETCONF+set}" = set; then
30152 $as_echo_n "(cached) " >&6
30154 if test -n "$GETCONF"; then
30155 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
30157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30158 for as_dir in $PATH
30161 test -z "$as_dir" && as_dir=.
30162 for ac_exec_ext in '' $ac_executable_extensions; do
30163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30164 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
30165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30174 GETCONF=$ac_cv_prog_GETCONF
30175 if test -n "$GETCONF"; then
30176 { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
30177 $as_echo "$GETCONF" >&6; }
30179 { $as_echo "$as_me:$LINENO: result: no" >&5
30180 $as_echo "no" >&6; }
30185 if test -z "$ac_cv_prog_GETCONF"; then
30186 ac_ct_GETCONF=$GETCONF
30187 # Extract the first word of "getconf", so it can be a program name with args.
30188 set dummy getconf; ac_word=$2
30189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30190 $as_echo_n "checking for $ac_word... " >&6; }
30191 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
30192 $as_echo_n "(cached) " >&6
30194 if test -n "$ac_ct_GETCONF"; then
30195 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
30197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30198 for as_dir in $PATH
30201 test -z "$as_dir" && as_dir=.
30202 for ac_exec_ext in '' $ac_executable_extensions; do
30203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30204 ac_cv_prog_ac_ct_GETCONF="getconf"
30205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30214 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
30215 if test -n "$ac_ct_GETCONF"; then
30216 { $as_echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
30217 $as_echo "$ac_ct_GETCONF" >&6; }
30219 { $as_echo "$as_me:$LINENO: result: no" >&5
30220 $as_echo "no" >&6; }
30223 if test "x$ac_ct_GETCONF" = x; then
30226 case $cross_compiling:$ac_tool_warned in
30228 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30230 ac_tool_warned=yes ;;
30232 GETCONF=$ac_ct_GETCONF
30235 GETCONF="$ac_cv_prog_GETCONF"
30238 { $as_echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
30239 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
30240 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
30241 $as_echo_n "(cached) " >&6
30243 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
30244 ac_cv_sys_largefile_CFLAGS=no
30246 # IRIX 6.2 and later require cc -n32.
30247 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
30248 if test "$GCC" != yes; then
30249 ac_cv_sys_largefile_CFLAGS=-n32
30252 CC="$CC $ac_cv_sys_largefile_CFLAGS"
30253 cat >conftest.$ac_ext <<_ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h. */
30268 rm -f conftest.$ac_objext conftest$ac_exeext
30269 if { (ac_try="$ac_link"
30270 case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30275 $as_echo "$ac_try_echo") >&5
30276 (eval "$ac_link") 2>conftest.er1
30278 grep -v '^ *+' conftest.er1 >conftest.err
30280 cat conftest.err >&5
30281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); } && {
30283 test -z "$ac_c_werror_flag" ||
30284 test ! -s conftest.err
30285 } && test -s conftest$ac_exeext && {
30286 test "$cross_compiling" = yes ||
30287 $as_test_x conftest$ac_exeext
30291 $as_echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30294 ac_cv_sys_largefile_CFLAGS=no
30297 rm -rf conftest.dSYM
30298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30299 conftest$ac_exeext conftest.$ac_ext
30304 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
30305 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
30306 { $as_echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
30307 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
30308 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
30309 $as_echo_n "(cached) " >&6
30311 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
30312 ac_cv_sys_largefile_LDFLAGS=no
30316 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
30317 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
30318 { $as_echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
30319 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
30320 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
30321 $as_echo_n "(cached) " >&6
30323 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
30324 ac_cv_sys_largefile_LIBS=no
30328 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
30329 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
30331 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30334 -D_FILE_OFFSET_BITS=*) ;;
30335 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
30336 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
30341 case "$CPPFLAGS" in
30342 '') CPPFLAGS="$ac_flag" ;;
30343 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
30351 '') CFLAGS="$ac_flag" ;;
30352 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
30357 case "$ac_cv_sys_largefile_LDFLAGS" in
30361 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
30362 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
30365 case "$ac_cv_sys_largefile_LIBS" in
30369 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
30370 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
30373 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
30374 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
30375 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30376 $as_echo_n "(cached) " >&6
30378 ac_cv_sys_file_offset_bits=no
30379 ac_cv_sys_file_offset_bits=64
30380 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30382 -D_FILE_OFFSET_BITS)
30383 ac_cv_sys_file_offset_bits=1 ;;
30384 -D_FILE_OFFSET_BITS=*)
30385 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30390 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30391 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
30392 if test "$ac_cv_sys_file_offset_bits" != no; then
30394 cat >>confdefs.h <<_ACEOF
30395 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30399 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
30400 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
30401 if test "${ac_cv_sys_largefile_source+set}" = set; then
30402 $as_echo_n "(cached) " >&6
30404 ac_cv_sys_largefile_source=no
30405 ac_cv_sys_largefile_source=1
30406 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30408 -D_LARGEFILE_SOURCE)
30409 ac_cv_sys_largefile_source=1 ;;
30410 -D_LARGEFILE_SOURCE=*)
30411 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30416 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
30417 $as_echo "$ac_cv_sys_largefile_source" >&6; }
30418 if test "$ac_cv_sys_largefile_source" != no; then
30420 cat >>confdefs.h <<_ACEOF
30421 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
30425 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
30426 $as_echo_n "checking for _LARGE_FILES... " >&6; }
30427 if test "${ac_cv_sys_large_files+set}" = set; then
30428 $as_echo_n "(cached) " >&6
30430 ac_cv_sys_large_files=no
30431 ac_cv_sys_large_files=1
30432 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30435 ac_cv_sys_large_files=1 ;;
30437 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30442 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30443 $as_echo "$ac_cv_sys_large_files" >&6; }
30444 if test "$ac_cv_sys_large_files" != no; then
30446 cat >>confdefs.h <<_ACEOF
30447 #define _LARGE_FILES $ac_cv_sys_large_files
30454 { $as_echo "$as_me:$LINENO: checking for X" >&5
30455 $as_echo_n "checking for X... " >&6; }
30458 # Check whether --with-x was given.
30459 if test "${with_x+set}" = set; then
30463 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30464 if test "x$with_x" = xno; then
30465 # The user explicitly disabled X.
30468 case $x_includes,$x_libraries in #(
30469 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
30470 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
30471 { (exit 1); exit 1; }; };; #(
30472 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30473 $as_echo_n "(cached) " >&6
30475 # One or both of the vars are not set, and there is no cached value.
30476 ac_x_includes=no ac_x_libraries=no
30477 rm -f -r conftest.dir
30478 if mkdir conftest.dir; then
30480 cat >Imakefile <<'_ACEOF'
30482 @echo incroot='${INCROOT}'
30484 @echo usrlibdir='${USRLIBDIR}'
30486 @echo libdir='${LIBDIR}'
30488 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30489 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30490 for ac_var in incroot usrlibdir libdir; do
30491 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30493 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30494 for ac_extension in a so sl dylib la dll; do
30495 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30496 test -f "$ac_im_libdir/libX11.$ac_extension"; then
30497 ac_im_usrlibdir=$ac_im_libdir; break
30500 # Screen out bogus values from the imake configuration. They are
30501 # bogus both because they are the default anyway, and because
30502 # using them would break gcc on systems where it needs fixed includes.
30503 case $ac_im_incroot in
30504 /usr/include) ac_x_includes= ;;
30505 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30507 case $ac_im_usrlibdir in
30508 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30509 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30513 rm -f -r conftest.dir
30516 # Standard set of common directories for X headers.
30517 # Check X11 before X11Rn because it is often a symlink to the current release.
30529 /usr/local/X11/include
30530 /usr/local/X11R6/include
30531 /usr/local/X11R5/include
30532 /usr/local/X11R4/include
30534 /usr/local/include/X11
30535 /usr/local/include/X11R6
30536 /usr/local/include/X11R5
30537 /usr/local/include/X11R4
30541 /usr/XFree86/include/X11
30545 /usr/unsupported/include
30546 /usr/athena/include
30547 /usr/local/x11r5/include
30548 /usr/lpp/Xamples/include
30550 /usr/openwin/include
30551 /usr/openwin/share/include'
30553 if test "$ac_x_includes" = no; then
30554 # Guess where to find include files, by looking for Xlib.h.
30555 # First, try using that file with no special directory specified.
30556 cat >conftest.$ac_ext <<_ACEOF
30559 cat confdefs.h >>conftest.$ac_ext
30560 cat >>conftest.$ac_ext <<_ACEOF
30561 /* end confdefs.h. */
30562 #include <X11/Xlib.h>
30564 if { (ac_try="$ac_cpp conftest.$ac_ext"
30565 case "(($ac_try" in
30566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30567 *) ac_try_echo=$ac_try;;
30569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30570 $as_echo "$ac_try_echo") >&5
30571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30573 grep -v '^ *+' conftest.er1 >conftest.err
30575 cat conftest.err >&5
30576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); } >/dev/null && {
30578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30579 test ! -s conftest.err
30581 # We can compile using X headers with no special include directory.
30584 $as_echo "$as_me: failed program was:" >&5
30585 sed 's/^/| /' conftest.$ac_ext >&5
30587 for ac_dir in $ac_x_header_dirs; do
30588 if test -r "$ac_dir/X11/Xlib.h"; then
30589 ac_x_includes=$ac_dir
30595 rm -f conftest.err conftest.$ac_ext
30596 fi # $ac_x_includes = no
30598 if test "$ac_x_libraries" = no; then
30599 # Check for the libraries.
30600 # See if we find them without any special options.
30601 # Don't add to $LIBS permanently.
30604 cat >conftest.$ac_ext <<_ACEOF
30607 cat confdefs.h >>conftest.$ac_ext
30608 cat >>conftest.$ac_ext <<_ACEOF
30609 /* end confdefs.h. */
30610 #include <X11/Xlib.h>
30619 rm -f conftest.$ac_objext conftest$ac_exeext
30620 if { (ac_try="$ac_link"
30621 case "(($ac_try" in
30622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30623 *) ac_try_echo=$ac_try;;
30625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30626 $as_echo "$ac_try_echo") >&5
30627 (eval "$ac_link") 2>conftest.er1
30629 grep -v '^ *+' conftest.er1 >conftest.err
30631 cat conftest.err >&5
30632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); } && {
30634 test -z "$ac_c_werror_flag" ||
30635 test ! -s conftest.err
30636 } && test -s conftest$ac_exeext && {
30637 test "$cross_compiling" = yes ||
30638 $as_test_x conftest$ac_exeext
30641 # We can link X programs with no special library path.
30644 $as_echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30648 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30650 # Don't even attempt the hair of trying to link an X program!
30651 for ac_extension in a so sl dylib la dll; do
30652 if test -r "$ac_dir/libX11.$ac_extension"; then
30653 ac_x_libraries=$ac_dir
30660 rm -rf conftest.dSYM
30661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30662 conftest$ac_exeext conftest.$ac_ext
30663 fi # $ac_x_libraries = no
30665 case $ac_x_includes,$ac_x_libraries in #(
30666 no,* | *,no | *\'*)
30667 # Didn't find X, or a directory has "'" in its name.
30668 ac_cv_have_x="have_x=no";; #(
30670 # Record where we found X for the cache.
30671 ac_cv_have_x="have_x=yes\
30672 ac_x_includes='$ac_x_includes'\
30673 ac_x_libraries='$ac_x_libraries'"
30679 eval "$ac_cv_have_x"
30682 if test "$have_x" != yes; then
30683 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
30684 $as_echo "$have_x" >&6; }
30687 # If each of the values was on the command line, it overrides each guess.
30688 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30689 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30690 # Update the cache value to reflect the command line values.
30691 ac_cv_have_x="have_x=yes\
30692 ac_x_includes='$x_includes'\
30693 ac_x_libraries='$x_libraries'"
30694 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30695 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
30698 if test "$no_x" = yes; then
30699 # Not all programs may use this symbol, but it does not hurt to define it.
30701 cat >>confdefs.h <<\_ACEOF
30702 #define X_DISPLAY_MISSING 1
30705 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30707 if test -n "$x_includes"; then
30708 X_CFLAGS="$X_CFLAGS -I$x_includes"
30711 # It would also be nice to do this for all -L options, not just this one.
30712 if test -n "$x_libraries"; then
30713 X_LIBS="$X_LIBS -L$x_libraries"
30714 # For Solaris; some versions of Sun CC require a space after -R and
30715 # others require no space. Words are not sufficient . . . .
30716 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30717 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
30718 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30719 ac_xsave_c_werror_flag=$ac_c_werror_flag
30720 ac_c_werror_flag=yes
30721 cat >conftest.$ac_ext <<_ACEOF
30724 cat confdefs.h >>conftest.$ac_ext
30725 cat >>conftest.$ac_ext <<_ACEOF
30726 /* end confdefs.h. */
30736 rm -f conftest.$ac_objext conftest$ac_exeext
30737 if { (ac_try="$ac_link"
30738 case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30743 $as_echo "$ac_try_echo") >&5
30744 (eval "$ac_link") 2>conftest.er1
30746 grep -v '^ *+' conftest.er1 >conftest.err
30748 cat conftest.err >&5
30749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); } && {
30751 test -z "$ac_c_werror_flag" ||
30752 test ! -s conftest.err
30753 } && test -s conftest$ac_exeext && {
30754 test "$cross_compiling" = yes ||
30755 $as_test_x conftest$ac_exeext
30757 { $as_echo "$as_me:$LINENO: result: no" >&5
30758 $as_echo "no" >&6; }
30759 X_LIBS="$X_LIBS -R$x_libraries"
30761 $as_echo "$as_me: failed program was:" >&5
30762 sed 's/^/| /' conftest.$ac_ext >&5
30764 LIBS="$ac_xsave_LIBS -R $x_libraries"
30765 cat >conftest.$ac_ext <<_ACEOF
30768 cat confdefs.h >>conftest.$ac_ext
30769 cat >>conftest.$ac_ext <<_ACEOF
30770 /* end confdefs.h. */
30780 rm -f conftest.$ac_objext conftest$ac_exeext
30781 if { (ac_try="$ac_link"
30782 case "(($ac_try" in
30783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784 *) ac_try_echo=$ac_try;;
30786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30787 $as_echo "$ac_try_echo") >&5
30788 (eval "$ac_link") 2>conftest.er1
30790 grep -v '^ *+' conftest.er1 >conftest.err
30792 cat conftest.err >&5
30793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); } && {
30795 test -z "$ac_c_werror_flag" ||
30796 test ! -s conftest.err
30797 } && test -s conftest$ac_exeext && {
30798 test "$cross_compiling" = yes ||
30799 $as_test_x conftest$ac_exeext
30801 { $as_echo "$as_me:$LINENO: result: yes" >&5
30802 $as_echo "yes" >&6; }
30803 X_LIBS="$X_LIBS -R $x_libraries"
30805 $as_echo "$as_me: failed program was:" >&5
30806 sed 's/^/| /' conftest.$ac_ext >&5
30808 { $as_echo "$as_me:$LINENO: result: neither works" >&5
30809 $as_echo "neither works" >&6; }
30812 rm -rf conftest.dSYM
30813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30814 conftest$ac_exeext conftest.$ac_ext
30817 rm -rf conftest.dSYM
30818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30819 conftest$ac_exeext conftest.$ac_ext
30820 ac_c_werror_flag=$ac_xsave_c_werror_flag
30821 LIBS=$ac_xsave_LIBS
30824 # Check for system-dependent libraries X programs must link with.
30825 # Do this before checking for the system-independent R6 libraries
30826 # (-lICE), since we may need -lsocket or whatever for X linking.
30828 if test "$ISC" = yes; then
30829 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30831 # Martyn Johnson says this is needed for Ultrix, if the X
30832 # libraries were built with DECnet support. And Karl Berry says
30833 # the Alpha needs dnet_stub (dnet does not exist).
30834 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30835 cat >conftest.$ac_ext <<_ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h. */
30842 /* Override any GCC internal prototype to avoid an error.
30843 Use char because int might match the return type of a GCC
30844 builtin and then its argument prototype would still apply. */
30848 char XOpenDisplay ();
30852 return XOpenDisplay ();
30857 rm -f conftest.$ac_objext conftest$ac_exeext
30858 if { (ac_try="$ac_link"
30859 case "(($ac_try" in
30860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30861 *) ac_try_echo=$ac_try;;
30863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30864 $as_echo "$ac_try_echo") >&5
30865 (eval "$ac_link") 2>conftest.er1
30867 grep -v '^ *+' conftest.er1 >conftest.err
30869 cat conftest.err >&5
30870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871 (exit $ac_status); } && {
30872 test -z "$ac_c_werror_flag" ||
30873 test ! -s conftest.err
30874 } && test -s conftest$ac_exeext && {
30875 test "$cross_compiling" = yes ||
30876 $as_test_x conftest$ac_exeext
30880 $as_echo "$as_me: failed program was:" >&5
30881 sed 's/^/| /' conftest.$ac_ext >&5
30883 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30884 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30885 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30886 $as_echo_n "(cached) " >&6
30888 ac_check_lib_save_LIBS=$LIBS
30889 LIBS="-ldnet $LIBS"
30890 cat >conftest.$ac_ext <<_ACEOF
30893 cat confdefs.h >>conftest.$ac_ext
30894 cat >>conftest.$ac_ext <<_ACEOF
30895 /* end confdefs.h. */
30897 /* Override any GCC internal prototype to avoid an error.
30898 Use char because int might match the return type of a GCC
30899 builtin and then its argument prototype would still apply. */
30907 return dnet_ntoa ();
30912 rm -f conftest.$ac_objext conftest$ac_exeext
30913 if { (ac_try="$ac_link"
30914 case "(($ac_try" in
30915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30916 *) ac_try_echo=$ac_try;;
30918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30919 $as_echo "$ac_try_echo") >&5
30920 (eval "$ac_link") 2>conftest.er1
30922 grep -v '^ *+' conftest.er1 >conftest.err
30924 cat conftest.err >&5
30925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); } && {
30927 test -z "$ac_c_werror_flag" ||
30928 test ! -s conftest.err
30929 } && test -s conftest$ac_exeext && {
30930 test "$cross_compiling" = yes ||
30931 $as_test_x conftest$ac_exeext
30933 ac_cv_lib_dnet_dnet_ntoa=yes
30935 $as_echo "$as_me: failed program was:" >&5
30936 sed 's/^/| /' conftest.$ac_ext >&5
30938 ac_cv_lib_dnet_dnet_ntoa=no
30941 rm -rf conftest.dSYM
30942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30943 conftest$ac_exeext conftest.$ac_ext
30944 LIBS=$ac_check_lib_save_LIBS
30946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30947 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30948 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
30949 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30952 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30953 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30954 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30955 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30956 $as_echo_n "(cached) " >&6
30958 ac_check_lib_save_LIBS=$LIBS
30959 LIBS="-ldnet_stub $LIBS"
30960 cat >conftest.$ac_ext <<_ACEOF
30963 cat confdefs.h >>conftest.$ac_ext
30964 cat >>conftest.$ac_ext <<_ACEOF
30965 /* end confdefs.h. */
30967 /* Override any GCC internal prototype to avoid an error.
30968 Use char because int might match the return type of a GCC
30969 builtin and then its argument prototype would still apply. */
30977 return dnet_ntoa ();
30982 rm -f conftest.$ac_objext conftest$ac_exeext
30983 if { (ac_try="$ac_link"
30984 case "(($ac_try" in
30985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986 *) ac_try_echo=$ac_try;;
30988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30989 $as_echo "$ac_try_echo") >&5
30990 (eval "$ac_link") 2>conftest.er1
30992 grep -v '^ *+' conftest.er1 >conftest.err
30994 cat conftest.err >&5
30995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); } && {
30997 test -z "$ac_c_werror_flag" ||
30998 test ! -s conftest.err
30999 } && test -s conftest$ac_exeext && {
31000 test "$cross_compiling" = yes ||
31001 $as_test_x conftest$ac_exeext
31003 ac_cv_lib_dnet_stub_dnet_ntoa=yes
31005 $as_echo "$as_me: failed program was:" >&5
31006 sed 's/^/| /' conftest.$ac_ext >&5
31008 ac_cv_lib_dnet_stub_dnet_ntoa=no
31011 rm -rf conftest.dSYM
31012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31013 conftest$ac_exeext conftest.$ac_ext
31014 LIBS=$ac_check_lib_save_LIBS
31016 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31017 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31018 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
31019 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
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 LIBS="$ac_xsave_LIBS"
31030 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31031 # to get the SysV transport functions.
31032 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31034 # The nsl library prevents programs from opening the X display
31035 # on Irix 5.2, according to T.E. Dickey.
31036 # The functions gethostbyname, getservbyname, and inet_addr are
31037 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31038 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
31039 $as_echo_n "checking for gethostbyname... " >&6; }
31040 if test "${ac_cv_func_gethostbyname+set}" = set; then
31041 $as_echo_n "(cached) " >&6
31043 cat >conftest.$ac_ext <<_ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h. */
31049 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31051 #define gethostbyname innocuous_gethostbyname
31053 /* System header to define __stub macros and hopefully few prototypes,
31054 which can conflict with char gethostbyname (); below.
31055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31056 <limits.h> exists even on freestanding compilers. */
31059 # include <limits.h>
31061 # include <assert.h>
31064 #undef gethostbyname
31066 /* Override any GCC internal prototype to avoid an error.
31067 Use char because int might match the return type of a GCC
31068 builtin and then its argument prototype would still apply. */
31072 char gethostbyname ();
31073 /* The GNU C library defines this for functions which it implements
31074 to always fail with ENOSYS. Some functions are actually named
31075 something starting with __ and the normal name is an alias. */
31076 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31083 return gethostbyname ();
31088 rm -f conftest.$ac_objext conftest$ac_exeext
31089 if { (ac_try="$ac_link"
31090 case "(($ac_try" in
31091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31092 *) ac_try_echo=$ac_try;;
31094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31095 $as_echo "$ac_try_echo") >&5
31096 (eval "$ac_link") 2>conftest.er1
31098 grep -v '^ *+' conftest.er1 >conftest.err
31100 cat conftest.err >&5
31101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102 (exit $ac_status); } && {
31103 test -z "$ac_c_werror_flag" ||
31104 test ! -s conftest.err
31105 } && test -s conftest$ac_exeext && {
31106 test "$cross_compiling" = yes ||
31107 $as_test_x conftest$ac_exeext
31109 ac_cv_func_gethostbyname=yes
31111 $as_echo "$as_me: failed program was:" >&5
31112 sed 's/^/| /' conftest.$ac_ext >&5
31114 ac_cv_func_gethostbyname=no
31117 rm -rf conftest.dSYM
31118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31119 conftest$ac_exeext conftest.$ac_ext
31121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31122 $as_echo "$ac_cv_func_gethostbyname" >&6; }
31124 if test $ac_cv_func_gethostbyname = no; then
31125 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31126 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
31127 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31128 $as_echo_n "(cached) " >&6
31130 ac_check_lib_save_LIBS=$LIBS
31132 cat >conftest.$ac_ext <<_ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h. */
31139 /* Override any GCC internal prototype to avoid an error.
31140 Use char because int might match the return type of a GCC
31141 builtin and then its argument prototype would still apply. */
31145 char gethostbyname ();
31149 return gethostbyname ();
31154 rm -f conftest.$ac_objext conftest$ac_exeext
31155 if { (ac_try="$ac_link"
31156 case "(($ac_try" in
31157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158 *) ac_try_echo=$ac_try;;
31160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31161 $as_echo "$ac_try_echo") >&5
31162 (eval "$ac_link") 2>conftest.er1
31164 grep -v '^ *+' conftest.er1 >conftest.err
31166 cat conftest.err >&5
31167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); } && {
31169 test -z "$ac_c_werror_flag" ||
31170 test ! -s conftest.err
31171 } && test -s conftest$ac_exeext && {
31172 test "$cross_compiling" = yes ||
31173 $as_test_x conftest$ac_exeext
31175 ac_cv_lib_nsl_gethostbyname=yes
31177 $as_echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.$ac_ext >&5
31180 ac_cv_lib_nsl_gethostbyname=no
31183 rm -rf conftest.dSYM
31184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31185 conftest$ac_exeext conftest.$ac_ext
31186 LIBS=$ac_check_lib_save_LIBS
31188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31189 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
31190 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
31191 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31194 if test $ac_cv_lib_nsl_gethostbyname = no; then
31195 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31196 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
31197 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31198 $as_echo_n "(cached) " >&6
31200 ac_check_lib_save_LIBS=$LIBS
31202 cat >conftest.$ac_ext <<_ACEOF
31205 cat confdefs.h >>conftest.$ac_ext
31206 cat >>conftest.$ac_ext <<_ACEOF
31207 /* end confdefs.h. */
31209 /* Override any GCC internal prototype to avoid an error.
31210 Use char because int might match the return type of a GCC
31211 builtin and then its argument prototype would still apply. */
31215 char gethostbyname ();
31219 return gethostbyname ();
31224 rm -f conftest.$ac_objext conftest$ac_exeext
31225 if { (ac_try="$ac_link"
31226 case "(($ac_try" in
31227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31228 *) ac_try_echo=$ac_try;;
31230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31231 $as_echo "$ac_try_echo") >&5
31232 (eval "$ac_link") 2>conftest.er1
31234 grep -v '^ *+' conftest.er1 >conftest.err
31236 cat conftest.err >&5
31237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); } && {
31239 test -z "$ac_c_werror_flag" ||
31240 test ! -s conftest.err
31241 } && test -s conftest$ac_exeext && {
31242 test "$cross_compiling" = yes ||
31243 $as_test_x conftest$ac_exeext
31245 ac_cv_lib_bsd_gethostbyname=yes
31247 $as_echo "$as_me: failed program was:" >&5
31248 sed 's/^/| /' conftest.$ac_ext >&5
31250 ac_cv_lib_bsd_gethostbyname=no
31253 rm -rf conftest.dSYM
31254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31255 conftest$ac_exeext conftest.$ac_ext
31256 LIBS=$ac_check_lib_save_LIBS
31258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31259 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
31260 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
31261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31267 # lieder@skyler.mavd.honeywell.com says without -lsocket,
31268 # socket/setsockopt and other routines are undefined under SCO ODT
31269 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
31270 # on later versions), says Simon Leinen: it contains gethostby*
31271 # variants that don't use the name server (or something). -lsocket
31272 # must be given before -lnsl if both are needed. We assume that
31273 # if connect needs -lnsl, so does gethostbyname.
31274 { $as_echo "$as_me:$LINENO: checking for connect" >&5
31275 $as_echo_n "checking for connect... " >&6; }
31276 if test "${ac_cv_func_connect+set}" = set; then
31277 $as_echo_n "(cached) " >&6
31279 cat >conftest.$ac_ext <<_ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h. */
31285 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31287 #define connect innocuous_connect
31289 /* System header to define __stub macros and hopefully few prototypes,
31290 which can conflict with char connect (); below.
31291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31292 <limits.h> exists even on freestanding compilers. */
31295 # include <limits.h>
31297 # include <assert.h>
31302 /* Override any GCC internal prototype to avoid an error.
31303 Use char because int might match the return type of a GCC
31304 builtin and then its argument prototype would still apply. */
31309 /* The GNU C library defines this for functions which it implements
31310 to always fail with ENOSYS. Some functions are actually named
31311 something starting with __ and the normal name is an alias. */
31312 #if defined __stub_connect || defined __stub___connect
31324 rm -f conftest.$ac_objext conftest$ac_exeext
31325 if { (ac_try="$ac_link"
31326 case "(($ac_try" in
31327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328 *) ac_try_echo=$ac_try;;
31330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31331 $as_echo "$ac_try_echo") >&5
31332 (eval "$ac_link") 2>conftest.er1
31334 grep -v '^ *+' conftest.er1 >conftest.err
31336 cat conftest.err >&5
31337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); } && {
31339 test -z "$ac_c_werror_flag" ||
31340 test ! -s conftest.err
31341 } && test -s conftest$ac_exeext && {
31342 test "$cross_compiling" = yes ||
31343 $as_test_x conftest$ac_exeext
31345 ac_cv_func_connect=yes
31347 $as_echo "$as_me: failed program was:" >&5
31348 sed 's/^/| /' conftest.$ac_ext >&5
31350 ac_cv_func_connect=no
31353 rm -rf conftest.dSYM
31354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31355 conftest$ac_exeext conftest.$ac_ext
31357 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31358 $as_echo "$ac_cv_func_connect" >&6; }
31360 if test $ac_cv_func_connect = no; then
31361 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31362 $as_echo_n "checking for connect in -lsocket... " >&6; }
31363 if test "${ac_cv_lib_socket_connect+set}" = set; then
31364 $as_echo_n "(cached) " >&6
31366 ac_check_lib_save_LIBS=$LIBS
31367 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31368 cat >conftest.$ac_ext <<_ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h. */
31375 /* Override any GCC internal prototype to avoid an error.
31376 Use char because int might match the return type of a GCC
31377 builtin and then its argument prototype would still apply. */
31390 rm -f conftest.$ac_objext conftest$ac_exeext
31391 if { (ac_try="$ac_link"
31392 case "(($ac_try" in
31393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31394 *) ac_try_echo=$ac_try;;
31396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31397 $as_echo "$ac_try_echo") >&5
31398 (eval "$ac_link") 2>conftest.er1
31400 grep -v '^ *+' conftest.er1 >conftest.err
31402 cat conftest.err >&5
31403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); } && {
31405 test -z "$ac_c_werror_flag" ||
31406 test ! -s conftest.err
31407 } && test -s conftest$ac_exeext && {
31408 test "$cross_compiling" = yes ||
31409 $as_test_x conftest$ac_exeext
31411 ac_cv_lib_socket_connect=yes
31413 $as_echo "$as_me: failed program was:" >&5
31414 sed 's/^/| /' conftest.$ac_ext >&5
31416 ac_cv_lib_socket_connect=no
31419 rm -rf conftest.dSYM
31420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31421 conftest$ac_exeext conftest.$ac_ext
31422 LIBS=$ac_check_lib_save_LIBS
31424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31425 $as_echo "$ac_cv_lib_socket_connect" >&6; }
31426 if test "x$ac_cv_lib_socket_connect" = x""yes; then
31427 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31432 # Guillermo Gomez says -lposix is necessary on A/UX.
31433 { $as_echo "$as_me:$LINENO: checking for remove" >&5
31434 $as_echo_n "checking for remove... " >&6; }
31435 if test "${ac_cv_func_remove+set}" = set; then
31436 $as_echo_n "(cached) " >&6
31438 cat >conftest.$ac_ext <<_ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h. */
31444 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31446 #define remove innocuous_remove
31448 /* System header to define __stub macros and hopefully few prototypes,
31449 which can conflict with char remove (); below.
31450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31451 <limits.h> exists even on freestanding compilers. */
31454 # include <limits.h>
31456 # include <assert.h>
31461 /* Override any GCC internal prototype to avoid an error.
31462 Use char because int might match the return type of a GCC
31463 builtin and then its argument prototype would still apply. */
31468 /* The GNU C library defines this for functions which it implements
31469 to always fail with ENOSYS. Some functions are actually named
31470 something starting with __ and the normal name is an alias. */
31471 #if defined __stub_remove || defined __stub___remove
31483 rm -f conftest.$ac_objext conftest$ac_exeext
31484 if { (ac_try="$ac_link"
31485 case "(($ac_try" in
31486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487 *) ac_try_echo=$ac_try;;
31489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31490 $as_echo "$ac_try_echo") >&5
31491 (eval "$ac_link") 2>conftest.er1
31493 grep -v '^ *+' conftest.er1 >conftest.err
31495 cat conftest.err >&5
31496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); } && {
31498 test -z "$ac_c_werror_flag" ||
31499 test ! -s conftest.err
31500 } && test -s conftest$ac_exeext && {
31501 test "$cross_compiling" = yes ||
31502 $as_test_x conftest$ac_exeext
31504 ac_cv_func_remove=yes
31506 $as_echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31509 ac_cv_func_remove=no
31512 rm -rf conftest.dSYM
31513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31514 conftest$ac_exeext conftest.$ac_ext
31516 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31517 $as_echo "$ac_cv_func_remove" >&6; }
31519 if test $ac_cv_func_remove = no; then
31520 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31521 $as_echo_n "checking for remove in -lposix... " >&6; }
31522 if test "${ac_cv_lib_posix_remove+set}" = set; then
31523 $as_echo_n "(cached) " >&6
31525 ac_check_lib_save_LIBS=$LIBS
31526 LIBS="-lposix $LIBS"
31527 cat >conftest.$ac_ext <<_ACEOF
31530 cat confdefs.h >>conftest.$ac_ext
31531 cat >>conftest.$ac_ext <<_ACEOF
31532 /* end confdefs.h. */
31534 /* Override any GCC internal prototype to avoid an error.
31535 Use char because int might match the return type of a GCC
31536 builtin and then its argument prototype would still apply. */
31549 rm -f conftest.$ac_objext conftest$ac_exeext
31550 if { (ac_try="$ac_link"
31551 case "(($ac_try" in
31552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553 *) ac_try_echo=$ac_try;;
31555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31556 $as_echo "$ac_try_echo") >&5
31557 (eval "$ac_link") 2>conftest.er1
31559 grep -v '^ *+' conftest.er1 >conftest.err
31561 cat conftest.err >&5
31562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); } && {
31564 test -z "$ac_c_werror_flag" ||
31565 test ! -s conftest.err
31566 } && test -s conftest$ac_exeext && {
31567 test "$cross_compiling" = yes ||
31568 $as_test_x conftest$ac_exeext
31570 ac_cv_lib_posix_remove=yes
31572 $as_echo "$as_me: failed program was:" >&5
31573 sed 's/^/| /' conftest.$ac_ext >&5
31575 ac_cv_lib_posix_remove=no
31578 rm -rf conftest.dSYM
31579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31580 conftest$ac_exeext conftest.$ac_ext
31581 LIBS=$ac_check_lib_save_LIBS
31583 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31584 $as_echo "$ac_cv_lib_posix_remove" >&6; }
31585 if test "x$ac_cv_lib_posix_remove" = x""yes; then
31586 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31591 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31592 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
31593 $as_echo_n "checking for shmat... " >&6; }
31594 if test "${ac_cv_func_shmat+set}" = set; then
31595 $as_echo_n "(cached) " >&6
31597 cat >conftest.$ac_ext <<_ACEOF
31600 cat confdefs.h >>conftest.$ac_ext
31601 cat >>conftest.$ac_ext <<_ACEOF
31602 /* end confdefs.h. */
31603 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31605 #define shmat innocuous_shmat
31607 /* System header to define __stub macros and hopefully few prototypes,
31608 which can conflict with char shmat (); below.
31609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31610 <limits.h> exists even on freestanding compilers. */
31613 # include <limits.h>
31615 # include <assert.h>
31620 /* Override any GCC internal prototype to avoid an error.
31621 Use char because int might match the return type of a GCC
31622 builtin and then its argument prototype would still apply. */
31627 /* The GNU C library defines this for functions which it implements
31628 to always fail with ENOSYS. Some functions are actually named
31629 something starting with __ and the normal name is an alias. */
31630 #if defined __stub_shmat || defined __stub___shmat
31642 rm -f conftest.$ac_objext conftest$ac_exeext
31643 if { (ac_try="$ac_link"
31644 case "(($ac_try" in
31645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646 *) ac_try_echo=$ac_try;;
31648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31649 $as_echo "$ac_try_echo") >&5
31650 (eval "$ac_link") 2>conftest.er1
31652 grep -v '^ *+' conftest.er1 >conftest.err
31654 cat conftest.err >&5
31655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); } && {
31657 test -z "$ac_c_werror_flag" ||
31658 test ! -s conftest.err
31659 } && test -s conftest$ac_exeext && {
31660 test "$cross_compiling" = yes ||
31661 $as_test_x conftest$ac_exeext
31663 ac_cv_func_shmat=yes
31665 $as_echo "$as_me: failed program was:" >&5
31666 sed 's/^/| /' conftest.$ac_ext >&5
31668 ac_cv_func_shmat=no
31671 rm -rf conftest.dSYM
31672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31673 conftest$ac_exeext conftest.$ac_ext
31675 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31676 $as_echo "$ac_cv_func_shmat" >&6; }
31678 if test $ac_cv_func_shmat = no; then
31679 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31680 $as_echo_n "checking for shmat in -lipc... " >&6; }
31681 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31682 $as_echo_n "(cached) " >&6
31684 ac_check_lib_save_LIBS=$LIBS
31686 cat >conftest.$ac_ext <<_ACEOF
31689 cat confdefs.h >>conftest.$ac_ext
31690 cat >>conftest.$ac_ext <<_ACEOF
31691 /* end confdefs.h. */
31693 /* Override any GCC internal prototype to avoid an error.
31694 Use char because int might match the return type of a GCC
31695 builtin and then its argument prototype would still apply. */
31708 rm -f conftest.$ac_objext conftest$ac_exeext
31709 if { (ac_try="$ac_link"
31710 case "(($ac_try" in
31711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31712 *) ac_try_echo=$ac_try;;
31714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31715 $as_echo "$ac_try_echo") >&5
31716 (eval "$ac_link") 2>conftest.er1
31718 grep -v '^ *+' conftest.er1 >conftest.err
31720 cat conftest.err >&5
31721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); } && {
31723 test -z "$ac_c_werror_flag" ||
31724 test ! -s conftest.err
31725 } && test -s conftest$ac_exeext && {
31726 test "$cross_compiling" = yes ||
31727 $as_test_x conftest$ac_exeext
31729 ac_cv_lib_ipc_shmat=yes
31731 $as_echo "$as_me: failed program was:" >&5
31732 sed 's/^/| /' conftest.$ac_ext >&5
31734 ac_cv_lib_ipc_shmat=no
31737 rm -rf conftest.dSYM
31738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31739 conftest$ac_exeext conftest.$ac_ext
31740 LIBS=$ac_check_lib_save_LIBS
31742 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31743 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
31744 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
31745 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31751 # Check for libraries that X11R6 Xt/Xaw programs need.
31752 ac_save_LDFLAGS=$LDFLAGS
31753 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31754 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31755 # check for ICE first), but we must link in the order -lSM -lICE or
31756 # we get undefined symbols. So assume we have SM if we have ICE.
31757 # These have to be linked with before -lX11, unlike the other
31758 # libraries we check for below, so use a different variable.
31759 # John Interrante, Karl Berry
31760 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31761 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
31762 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31763 $as_echo_n "(cached) " >&6
31765 ac_check_lib_save_LIBS=$LIBS
31766 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31767 cat >conftest.$ac_ext <<_ACEOF
31770 cat confdefs.h >>conftest.$ac_ext
31771 cat >>conftest.$ac_ext <<_ACEOF
31772 /* end confdefs.h. */
31774 /* Override any GCC internal prototype to avoid an error.
31775 Use char because int might match the return type of a GCC
31776 builtin and then its argument prototype would still apply. */
31780 char IceConnectionNumber ();
31784 return IceConnectionNumber ();
31789 rm -f conftest.$ac_objext conftest$ac_exeext
31790 if { (ac_try="$ac_link"
31791 case "(($ac_try" in
31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793 *) ac_try_echo=$ac_try;;
31795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31796 $as_echo "$ac_try_echo") >&5
31797 (eval "$ac_link") 2>conftest.er1
31799 grep -v '^ *+' conftest.er1 >conftest.err
31801 cat conftest.err >&5
31802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); } && {
31804 test -z "$ac_c_werror_flag" ||
31805 test ! -s conftest.err
31806 } && test -s conftest$ac_exeext && {
31807 test "$cross_compiling" = yes ||
31808 $as_test_x conftest$ac_exeext
31810 ac_cv_lib_ICE_IceConnectionNumber=yes
31812 $as_echo "$as_me: failed program was:" >&5
31813 sed 's/^/| /' conftest.$ac_ext >&5
31815 ac_cv_lib_ICE_IceConnectionNumber=no
31818 rm -rf conftest.dSYM
31819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31820 conftest$ac_exeext conftest.$ac_ext
31821 LIBS=$ac_check_lib_save_LIBS
31823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31824 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31825 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
31826 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31829 LDFLAGS=$ac_save_LDFLAGS
31895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31897 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31898 $as_echo_n "checking for $ac_header... " >&6; }
31899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31900 $as_echo_n "(cached) " >&6
31902 ac_res=`eval 'as_val=${'$as_ac_Header'}
31903 $as_echo "$as_val"'`
31904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31905 $as_echo "$ac_res" >&6; }
31907 # Is the header compilable?
31908 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31909 $as_echo_n "checking $ac_header usability... " >&6; }
31910 cat >conftest.$ac_ext <<_ACEOF
31913 cat confdefs.h >>conftest.$ac_ext
31914 cat >>conftest.$ac_ext <<_ACEOF
31915 /* end confdefs.h. */
31916 $ac_includes_default
31917 #include <$ac_header>
31919 rm -f conftest.$ac_objext
31920 if { (ac_try="$ac_compile"
31921 case "(($ac_try" in
31922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31923 *) ac_try_echo=$ac_try;;
31925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31926 $as_echo "$ac_try_echo") >&5
31927 (eval "$ac_compile") 2>conftest.er1
31929 grep -v '^ *+' conftest.er1 >conftest.err
31931 cat conftest.err >&5
31932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); } && {
31934 test -z "$ac_c_werror_flag" ||
31935 test ! -s conftest.err
31936 } && test -s conftest.$ac_objext; then
31937 ac_header_compiler=yes
31939 $as_echo "$as_me: failed program was:" >&5
31940 sed 's/^/| /' conftest.$ac_ext >&5
31942 ac_header_compiler=no
31945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31946 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31947 $as_echo "$ac_header_compiler" >&6; }
31949 # Is the header present?
31950 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31951 $as_echo_n "checking $ac_header presence... " >&6; }
31952 cat >conftest.$ac_ext <<_ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h. */
31958 #include <$ac_header>
31960 if { (ac_try="$ac_cpp conftest.$ac_ext"
31961 case "(($ac_try" in
31962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963 *) ac_try_echo=$ac_try;;
31965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31966 $as_echo "$ac_try_echo") >&5
31967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31969 grep -v '^ *+' conftest.er1 >conftest.err
31971 cat conftest.err >&5
31972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); } >/dev/null && {
31974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31975 test ! -s conftest.err
31977 ac_header_preproc=yes
31979 $as_echo "$as_me: failed program was:" >&5
31980 sed 's/^/| /' conftest.$ac_ext >&5
31982 ac_header_preproc=no
31985 rm -f conftest.err conftest.$ac_ext
31986 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31987 $as_echo "$ac_header_preproc" >&6; }
31989 # So? What about this header?
31990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31993 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31995 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31996 ac_header_preproc=yes
31999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32000 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32002 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32004 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32006 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32010 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32014 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32015 $as_echo_n "checking for $ac_header... " >&6; }
32016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32017 $as_echo_n "(cached) " >&6
32019 eval "$as_ac_Header=\$ac_header_preproc"
32021 ac_res=`eval 'as_val=${'$as_ac_Header'}
32022 $as_echo "$as_val"'`
32023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32024 $as_echo "$ac_res" >&6; }
32027 as_val=`eval 'as_val=${'$as_ac_Header'}
32028 $as_echo "$as_val"'`
32029 if test "x$as_val" = x""yes; then
32030 cat >>confdefs.h <<_ACEOF
32031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32038 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32039 $as_echo_n "checking for ANSI C header files... " >&6; }
32040 if test "${ac_cv_header_stdc+set}" = set; then
32041 $as_echo_n "(cached) " >&6
32043 cat >conftest.$ac_ext <<_ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h. */
32049 #include <stdlib.h>
32050 #include <stdarg.h>
32051 #include <string.h>
32062 rm -f conftest.$ac_objext
32063 if { (ac_try="$ac_compile"
32064 case "(($ac_try" in
32065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066 *) ac_try_echo=$ac_try;;
32068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32069 $as_echo "$ac_try_echo") >&5
32070 (eval "$ac_compile") 2>conftest.er1
32072 grep -v '^ *+' conftest.er1 >conftest.err
32074 cat conftest.err >&5
32075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); } && {
32077 test -z "$ac_c_werror_flag" ||
32078 test ! -s conftest.err
32079 } && test -s conftest.$ac_objext; then
32080 ac_cv_header_stdc=yes
32082 $as_echo "$as_me: failed program was:" >&5
32083 sed 's/^/| /' conftest.$ac_ext >&5
32085 ac_cv_header_stdc=no
32088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32090 if test $ac_cv_header_stdc = yes; then
32091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32092 cat >conftest.$ac_ext <<_ACEOF
32095 cat confdefs.h >>conftest.$ac_ext
32096 cat >>conftest.$ac_ext <<_ACEOF
32097 /* end confdefs.h. */
32098 #include <string.h>
32101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32102 $EGREP "memchr" >/dev/null 2>&1; then
32105 ac_cv_header_stdc=no
32111 if test $ac_cv_header_stdc = yes; then
32112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32113 cat >conftest.$ac_ext <<_ACEOF
32116 cat confdefs.h >>conftest.$ac_ext
32117 cat >>conftest.$ac_ext <<_ACEOF
32118 /* end confdefs.h. */
32119 #include <stdlib.h>
32122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32123 $EGREP "free" >/dev/null 2>&1; then
32126 ac_cv_header_stdc=no
32132 if test $ac_cv_header_stdc = yes; then
32133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32134 if test "$cross_compiling" = yes; then
32137 cat >conftest.$ac_ext <<_ACEOF
32140 cat confdefs.h >>conftest.$ac_ext
32141 cat >>conftest.$ac_ext <<_ACEOF
32142 /* end confdefs.h. */
32144 #include <stdlib.h>
32145 #if ((' ' & 0x0FF) == 0x020)
32146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32149 # define ISLOWER(c) \
32150 (('a' <= (c) && (c) <= 'i') \
32151 || ('j' <= (c) && (c) <= 'r') \
32152 || ('s' <= (c) && (c) <= 'z'))
32153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32161 for (i = 0; i < 256; i++)
32162 if (XOR (islower (i), ISLOWER (i))
32163 || toupper (i) != TOUPPER (i))
32168 rm -f conftest$ac_exeext
32169 if { (ac_try="$ac_link"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32175 $as_echo "$ac_try_echo") >&5
32176 (eval "$ac_link") 2>&5
32178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32180 { (case "(($ac_try" in
32181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32182 *) ac_try_echo=$ac_try;;
32184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32185 $as_echo "$ac_try_echo") >&5
32186 (eval "$ac_try") 2>&5
32188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; }; then
32192 $as_echo "$as_me: program exited with status $ac_status" >&5
32193 $as_echo "$as_me: failed program was:" >&5
32194 sed 's/^/| /' conftest.$ac_ext >&5
32196 ( exit $ac_status )
32197 ac_cv_header_stdc=no
32199 rm -rf conftest.dSYM
32200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32207 $as_echo "$ac_cv_header_stdc" >&6; }
32208 if test $ac_cv_header_stdc = yes; then
32210 cat >>confdefs.h <<\_ACEOF
32211 #define STDC_HEADERS 1
32216 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
32217 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
32218 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
32219 $as_echo_n "(cached) " >&6
32221 cat >conftest.$ac_ext <<_ACEOF
32224 cat confdefs.h >>conftest.$ac_ext
32225 cat >>conftest.$ac_ext <<_ACEOF
32226 /* end confdefs.h. */
32227 #include <sys/types.h>
32231 return makedev(0, 0);
32236 rm -f conftest.$ac_objext conftest$ac_exeext
32237 if { (ac_try="$ac_link"
32238 case "(($ac_try" in
32239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240 *) ac_try_echo=$ac_try;;
32242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32243 $as_echo "$ac_try_echo") >&5
32244 (eval "$ac_link") 2>conftest.er1
32246 grep -v '^ *+' conftest.er1 >conftest.err
32248 cat conftest.err >&5
32249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); } && {
32251 test -z "$ac_c_werror_flag" ||
32252 test ! -s conftest.err
32253 } && test -s conftest$ac_exeext && {
32254 test "$cross_compiling" = yes ||
32255 $as_test_x conftest$ac_exeext
32257 ac_cv_header_sys_types_h_makedev=yes
32259 $as_echo "$as_me: failed program was:" >&5
32260 sed 's/^/| /' conftest.$ac_ext >&5
32262 ac_cv_header_sys_types_h_makedev=no
32265 rm -rf conftest.dSYM
32266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32267 conftest$ac_exeext conftest.$ac_ext
32270 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
32271 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
32273 if test $ac_cv_header_sys_types_h_makedev = no; then
32274 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32275 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32276 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32277 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32278 $as_echo_n "(cached) " >&6
32280 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32281 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32283 # Is the header compilable?
32284 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
32285 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
32286 cat >conftest.$ac_ext <<_ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h. */
32292 $ac_includes_default
32293 #include <sys/mkdev.h>
32295 rm -f conftest.$ac_objext
32296 if { (ac_try="$ac_compile"
32297 case "(($ac_try" in
32298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32299 *) ac_try_echo=$ac_try;;
32301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32302 $as_echo "$ac_try_echo") >&5
32303 (eval "$ac_compile") 2>conftest.er1
32305 grep -v '^ *+' conftest.er1 >conftest.err
32307 cat conftest.err >&5
32308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); } && {
32310 test -z "$ac_c_werror_flag" ||
32311 test ! -s conftest.err
32312 } && test -s conftest.$ac_objext; then
32313 ac_header_compiler=yes
32315 $as_echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32318 ac_header_compiler=no
32321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32322 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32323 $as_echo "$ac_header_compiler" >&6; }
32325 # Is the header present?
32326 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
32327 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
32328 cat >conftest.$ac_ext <<_ACEOF
32331 cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h. */
32334 #include <sys/mkdev.h>
32336 if { (ac_try="$ac_cpp conftest.$ac_ext"
32337 case "(($ac_try" in
32338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339 *) ac_try_echo=$ac_try;;
32341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32342 $as_echo "$ac_try_echo") >&5
32343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32345 grep -v '^ *+' conftest.er1 >conftest.err
32347 cat conftest.err >&5
32348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); } >/dev/null && {
32350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32351 test ! -s conftest.err
32353 ac_header_preproc=yes
32355 $as_echo "$as_me: failed program was:" >&5
32356 sed 's/^/| /' conftest.$ac_ext >&5
32358 ac_header_preproc=no
32361 rm -f conftest.err conftest.$ac_ext
32362 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32363 $as_echo "$ac_header_preproc" >&6; }
32365 # So? What about this header?
32366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32368 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32369 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32370 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
32371 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
32372 ac_header_preproc=yes
32375 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
32376 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
32377 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
32378 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
32379 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
32380 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
32381 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
32382 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
32383 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
32384 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
32385 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
32386 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
32390 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32391 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32392 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32393 $as_echo_n "(cached) " >&6
32395 ac_cv_header_sys_mkdev_h=$ac_header_preproc
32397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32398 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32401 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
32403 cat >>confdefs.h <<\_ACEOF
32404 #define MAJOR_IN_MKDEV 1
32411 if test $ac_cv_header_sys_mkdev_h = no; then
32412 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32413 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32414 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32415 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32416 $as_echo_n "(cached) " >&6
32418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32419 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32421 # Is the header compilable?
32422 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
32423 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
32424 cat >conftest.$ac_ext <<_ACEOF
32427 cat confdefs.h >>conftest.$ac_ext
32428 cat >>conftest.$ac_ext <<_ACEOF
32429 /* end confdefs.h. */
32430 $ac_includes_default
32431 #include <sys/sysmacros.h>
32433 rm -f conftest.$ac_objext
32434 if { (ac_try="$ac_compile"
32435 case "(($ac_try" in
32436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32437 *) ac_try_echo=$ac_try;;
32439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32440 $as_echo "$ac_try_echo") >&5
32441 (eval "$ac_compile") 2>conftest.er1
32443 grep -v '^ *+' conftest.er1 >conftest.err
32445 cat conftest.err >&5
32446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447 (exit $ac_status); } && {
32448 test -z "$ac_c_werror_flag" ||
32449 test ! -s conftest.err
32450 } && test -s conftest.$ac_objext; then
32451 ac_header_compiler=yes
32453 $as_echo "$as_me: failed program was:" >&5
32454 sed 's/^/| /' conftest.$ac_ext >&5
32456 ac_header_compiler=no
32459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32461 $as_echo "$ac_header_compiler" >&6; }
32463 # Is the header present?
32464 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
32465 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
32466 cat >conftest.$ac_ext <<_ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h. */
32472 #include <sys/sysmacros.h>
32474 if { (ac_try="$ac_cpp conftest.$ac_ext"
32475 case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32480 $as_echo "$ac_try_echo") >&5
32481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32483 grep -v '^ *+' conftest.er1 >conftest.err
32485 cat conftest.err >&5
32486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); } >/dev/null && {
32488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32489 test ! -s conftest.err
32491 ac_header_preproc=yes
32493 $as_echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32496 ac_header_preproc=no
32499 rm -f conftest.err conftest.$ac_ext
32500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32501 $as_echo "$ac_header_preproc" >&6; }
32503 # So? What about this header?
32504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32506 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
32507 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32508 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
32509 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
32510 ac_header_preproc=yes
32513 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
32514 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
32515 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
32516 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
32517 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
32518 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
32519 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
32520 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
32521 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
32522 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
32523 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
32524 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
32528 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32529 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32530 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32531 $as_echo_n "(cached) " >&6
32533 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
32535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32536 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32539 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
32541 cat >>confdefs.h <<\_ACEOF
32542 #define MAJOR_IN_SYSMACROS 1
32556 ac_header_dirent=no
32557 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
32558 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
32559 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
32560 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
32561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32562 $as_echo_n "(cached) " >&6
32564 cat >conftest.$ac_ext <<_ACEOF
32567 cat confdefs.h >>conftest.$ac_ext
32568 cat >>conftest.$ac_ext <<_ACEOF
32569 /* end confdefs.h. */
32570 #include <sys/types.h>
32582 rm -f conftest.$ac_objext
32583 if { (ac_try="$ac_compile"
32584 case "(($ac_try" in
32585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586 *) ac_try_echo=$ac_try;;
32588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32589 $as_echo "$ac_try_echo") >&5
32590 (eval "$ac_compile") 2>conftest.er1
32592 grep -v '^ *+' conftest.er1 >conftest.err
32594 cat conftest.err >&5
32595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); } && {
32597 test -z "$ac_c_werror_flag" ||
32598 test ! -s conftest.err
32599 } && test -s conftest.$ac_objext; then
32600 eval "$as_ac_Header=yes"
32602 $as_echo "$as_me: failed program was:" >&5
32603 sed 's/^/| /' conftest.$ac_ext >&5
32605 eval "$as_ac_Header=no"
32608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32610 ac_res=`eval 'as_val=${'$as_ac_Header'}
32611 $as_echo "$as_val"'`
32612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32613 $as_echo "$ac_res" >&6; }
32614 as_val=`eval 'as_val=${'$as_ac_Header'}
32615 $as_echo "$as_val"'`
32616 if test "x$as_val" = x""yes; then
32617 cat >>confdefs.h <<_ACEOF
32618 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
32621 ac_header_dirent=$ac_hdr; break
32625 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
32626 if test $ac_header_dirent = dirent.h; then
32627 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32628 $as_echo_n "checking for library containing opendir... " >&6; }
32629 if test "${ac_cv_search_opendir+set}" = set; then
32630 $as_echo_n "(cached) " >&6
32632 ac_func_search_save_LIBS=$LIBS
32633 cat >conftest.$ac_ext <<_ACEOF
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h. */
32640 /* Override any GCC internal prototype to avoid an error.
32641 Use char because int might match the return type of a GCC
32642 builtin and then its argument prototype would still apply. */
32655 for ac_lib in '' dir; do
32656 if test -z "$ac_lib"; then
32657 ac_res="none required"
32660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32662 rm -f conftest.$ac_objext conftest$ac_exeext
32663 if { (ac_try="$ac_link"
32664 case "(($ac_try" in
32665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32666 *) ac_try_echo=$ac_try;;
32668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32669 $as_echo "$ac_try_echo") >&5
32670 (eval "$ac_link") 2>conftest.er1
32672 grep -v '^ *+' conftest.er1 >conftest.err
32674 cat conftest.err >&5
32675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); } && {
32677 test -z "$ac_c_werror_flag" ||
32678 test ! -s conftest.err
32679 } && test -s conftest$ac_exeext && {
32680 test "$cross_compiling" = yes ||
32681 $as_test_x conftest$ac_exeext
32683 ac_cv_search_opendir=$ac_res
32685 $as_echo "$as_me: failed program was:" >&5
32686 sed 's/^/| /' conftest.$ac_ext >&5
32691 rm -rf conftest.dSYM
32692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32694 if test "${ac_cv_search_opendir+set}" = set; then
32698 if test "${ac_cv_search_opendir+set}" = set; then
32701 ac_cv_search_opendir=no
32703 rm conftest.$ac_ext
32704 LIBS=$ac_func_search_save_LIBS
32706 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32707 $as_echo "$ac_cv_search_opendir" >&6; }
32708 ac_res=$ac_cv_search_opendir
32709 if test "$ac_res" != no; then
32710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32715 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32716 $as_echo_n "checking for library containing opendir... " >&6; }
32717 if test "${ac_cv_search_opendir+set}" = set; then
32718 $as_echo_n "(cached) " >&6
32720 ac_func_search_save_LIBS=$LIBS
32721 cat >conftest.$ac_ext <<_ACEOF
32724 cat confdefs.h >>conftest.$ac_ext
32725 cat >>conftest.$ac_ext <<_ACEOF
32726 /* end confdefs.h. */
32728 /* Override any GCC internal prototype to avoid an error.
32729 Use char because int might match the return type of a GCC
32730 builtin and then its argument prototype would still apply. */
32743 for ac_lib in '' x; do
32744 if test -z "$ac_lib"; then
32745 ac_res="none required"
32748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32750 rm -f conftest.$ac_objext conftest$ac_exeext
32751 if { (ac_try="$ac_link"
32752 case "(($ac_try" in
32753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754 *) ac_try_echo=$ac_try;;
32756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32757 $as_echo "$ac_try_echo") >&5
32758 (eval "$ac_link") 2>conftest.er1
32760 grep -v '^ *+' conftest.er1 >conftest.err
32762 cat conftest.err >&5
32763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); } && {
32765 test -z "$ac_c_werror_flag" ||
32766 test ! -s conftest.err
32767 } && test -s conftest$ac_exeext && {
32768 test "$cross_compiling" = yes ||
32769 $as_test_x conftest$ac_exeext
32771 ac_cv_search_opendir=$ac_res
32773 $as_echo "$as_me: failed program was:" >&5
32774 sed 's/^/| /' conftest.$ac_ext >&5
32779 rm -rf conftest.dSYM
32780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32782 if test "${ac_cv_search_opendir+set}" = set; then
32786 if test "${ac_cv_search_opendir+set}" = set; then
32789 ac_cv_search_opendir=no
32791 rm conftest.$ac_ext
32792 LIBS=$ac_func_search_save_LIBS
32794 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32795 $as_echo "$ac_cv_search_opendir" >&6; }
32796 ac_res=$ac_cv_search_opendir
32797 if test "$ac_res" != no; then
32798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32804 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32805 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
32806 if test "${ac_cv_header_stat_broken+set}" = set; then
32807 $as_echo_n "(cached) " >&6
32809 cat >conftest.$ac_ext <<_ACEOF
32812 cat confdefs.h >>conftest.$ac_ext
32813 cat >>conftest.$ac_ext <<_ACEOF
32814 /* end confdefs.h. */
32815 #include <sys/types.h>
32816 #include <sys/stat.h>
32818 #if defined S_ISBLK && defined S_IFDIR
32819 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32822 #if defined S_ISBLK && defined S_IFCHR
32823 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32826 #if defined S_ISLNK && defined S_IFREG
32827 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32830 #if defined S_ISSOCK && defined S_IFREG
32831 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32835 rm -f conftest.$ac_objext
32836 if { (ac_try="$ac_compile"
32837 case "(($ac_try" in
32838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839 *) ac_try_echo=$ac_try;;
32841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32842 $as_echo "$ac_try_echo") >&5
32843 (eval "$ac_compile") 2>conftest.er1
32845 grep -v '^ *+' conftest.er1 >conftest.err
32847 cat conftest.err >&5
32848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849 (exit $ac_status); } && {
32850 test -z "$ac_c_werror_flag" ||
32851 test ! -s conftest.err
32852 } && test -s conftest.$ac_objext; then
32853 ac_cv_header_stat_broken=no
32855 $as_echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32858 ac_cv_header_stat_broken=yes
32861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32864 $as_echo "$ac_cv_header_stat_broken" >&6; }
32865 if test $ac_cv_header_stat_broken = yes; then
32867 cat >>confdefs.h <<\_ACEOF
32868 #define STAT_MACROS_BROKEN 1
32873 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32874 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
32875 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32876 $as_echo_n "(cached) " >&6
32878 cat >conftest.$ac_ext <<_ACEOF
32881 cat confdefs.h >>conftest.$ac_ext
32882 cat >>conftest.$ac_ext <<_ACEOF
32883 /* end confdefs.h. */
32884 #include <sys/types.h>
32885 #include <sys/wait.h>
32886 #ifndef WEXITSTATUS
32887 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32890 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32898 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32903 rm -f conftest.$ac_objext
32904 if { (ac_try="$ac_compile"
32905 case "(($ac_try" in
32906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32907 *) ac_try_echo=$ac_try;;
32909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32910 $as_echo "$ac_try_echo") >&5
32911 (eval "$ac_compile") 2>conftest.er1
32913 grep -v '^ *+' conftest.er1 >conftest.err
32915 cat conftest.err >&5
32916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917 (exit $ac_status); } && {
32918 test -z "$ac_c_werror_flag" ||
32919 test ! -s conftest.err
32920 } && test -s conftest.$ac_objext; then
32921 ac_cv_header_sys_wait_h=yes
32923 $as_echo "$as_me: failed program was:" >&5
32924 sed 's/^/| /' conftest.$ac_ext >&5
32926 ac_cv_header_sys_wait_h=no
32929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32932 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
32933 if test $ac_cv_header_sys_wait_h = yes; then
32935 cat >>confdefs.h <<\_ACEOF
32936 #define HAVE_SYS_WAIT_H 1
32941 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32942 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
32943 if test "${ac_cv_header_time+set}" = set; then
32944 $as_echo_n "(cached) " >&6
32946 cat >conftest.$ac_ext <<_ACEOF
32949 cat confdefs.h >>conftest.$ac_ext
32950 cat >>conftest.$ac_ext <<_ACEOF
32951 /* end confdefs.h. */
32952 #include <sys/types.h>
32953 #include <sys/time.h>
32959 if ((struct tm *) 0)
32965 rm -f conftest.$ac_objext
32966 if { (ac_try="$ac_compile"
32967 case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32972 $as_echo "$ac_try_echo") >&5
32973 (eval "$ac_compile") 2>conftest.er1
32975 grep -v '^ *+' conftest.er1 >conftest.err
32977 cat conftest.err >&5
32978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 (exit $ac_status); } && {
32980 test -z "$ac_c_werror_flag" ||
32981 test ! -s conftest.err
32982 } && test -s conftest.$ac_objext; then
32983 ac_cv_header_time=yes
32985 $as_echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32988 ac_cv_header_time=no
32991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32994 $as_echo "$ac_cv_header_time" >&6; }
32995 if test $ac_cv_header_time = yes; then
32997 cat >>confdefs.h <<\_ACEOF
32998 #define TIME_WITH_SYS_TIME 1
33003 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33004 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
33005 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33006 $as_echo_n "(cached) " >&6
33008 cat >conftest.$ac_ext <<_ACEOF
33011 cat confdefs.h >>conftest.$ac_ext
33012 cat >>conftest.$ac_ext <<_ACEOF
33013 /* end confdefs.h. */
33014 $ac_includes_default
33018 static struct stat ac_aggr;
33019 if (ac_aggr.st_blksize)
33025 rm -f conftest.$ac_objext
33026 if { (ac_try="$ac_compile"
33027 case "(($ac_try" in
33028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029 *) ac_try_echo=$ac_try;;
33031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33032 $as_echo "$ac_try_echo") >&5
33033 (eval "$ac_compile") 2>conftest.er1
33035 grep -v '^ *+' conftest.er1 >conftest.err
33037 cat conftest.err >&5
33038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039 (exit $ac_status); } && {
33040 test -z "$ac_c_werror_flag" ||
33041 test ! -s conftest.err
33042 } && test -s conftest.$ac_objext; then
33043 ac_cv_member_struct_stat_st_blksize=yes
33045 $as_echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33048 cat >conftest.$ac_ext <<_ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33054 $ac_includes_default
33058 static struct stat ac_aggr;
33059 if (sizeof ac_aggr.st_blksize)
33065 rm -f conftest.$ac_objext
33066 if { (ac_try="$ac_compile"
33067 case "(($ac_try" in
33068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069 *) ac_try_echo=$ac_try;;
33071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33072 $as_echo "$ac_try_echo") >&5
33073 (eval "$ac_compile") 2>conftest.er1
33075 grep -v '^ *+' conftest.er1 >conftest.err
33077 cat conftest.err >&5
33078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } && {
33080 test -z "$ac_c_werror_flag" ||
33081 test ! -s conftest.err
33082 } && test -s conftest.$ac_objext; then
33083 ac_cv_member_struct_stat_st_blksize=yes
33085 $as_echo "$as_me: failed program was:" >&5
33086 sed 's/^/| /' conftest.$ac_ext >&5
33088 ac_cv_member_struct_stat_st_blksize=no
33091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33096 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33097 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
33098 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
33100 cat >>confdefs.h <<_ACEOF
33101 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33105 cat >>confdefs.h <<\_ACEOF
33106 #define HAVE_ST_BLKSIZE 1
33112 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33113 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
33114 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33115 $as_echo_n "(cached) " >&6
33117 cat >conftest.$ac_ext <<_ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33123 $ac_includes_default
33127 static struct stat ac_aggr;
33128 if (ac_aggr.st_blocks)
33134 rm -f conftest.$ac_objext
33135 if { (ac_try="$ac_compile"
33136 case "(($ac_try" in
33137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33138 *) ac_try_echo=$ac_try;;
33140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33141 $as_echo "$ac_try_echo") >&5
33142 (eval "$ac_compile") 2>conftest.er1
33144 grep -v '^ *+' conftest.er1 >conftest.err
33146 cat conftest.err >&5
33147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); } && {
33149 test -z "$ac_c_werror_flag" ||
33150 test ! -s conftest.err
33151 } && test -s conftest.$ac_objext; then
33152 ac_cv_member_struct_stat_st_blocks=yes
33154 $as_echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33157 cat >conftest.$ac_ext <<_ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h. */
33163 $ac_includes_default
33167 static struct stat ac_aggr;
33168 if (sizeof ac_aggr.st_blocks)
33174 rm -f conftest.$ac_objext
33175 if { (ac_try="$ac_compile"
33176 case "(($ac_try" in
33177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178 *) ac_try_echo=$ac_try;;
33180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33181 $as_echo "$ac_try_echo") >&5
33182 (eval "$ac_compile") 2>conftest.er1
33184 grep -v '^ *+' conftest.er1 >conftest.err
33186 cat conftest.err >&5
33187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); } && {
33189 test -z "$ac_c_werror_flag" ||
33190 test ! -s conftest.err
33191 } && test -s conftest.$ac_objext; then
33192 ac_cv_member_struct_stat_st_blocks=yes
33194 $as_echo "$as_me: failed program was:" >&5
33195 sed 's/^/| /' conftest.$ac_ext >&5
33197 ac_cv_member_struct_stat_st_blocks=no
33200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33205 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33206 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
33207 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
33209 cat >>confdefs.h <<_ACEOF
33210 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33214 cat >>confdefs.h <<\_ACEOF
33215 #define HAVE_ST_BLOCKS 1
33219 case " $LIBOBJS " in
33220 *" fileblocks.$ac_objext "* ) ;;
33221 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33228 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33229 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
33230 if test "${ac_cv_struct_tm+set}" = set; then
33231 $as_echo_n "(cached) " >&6
33233 cat >conftest.$ac_ext <<_ACEOF
33236 cat confdefs.h >>conftest.$ac_ext
33237 cat >>conftest.$ac_ext <<_ACEOF
33238 /* end confdefs.h. */
33239 #include <sys/types.h>
33246 int *p = &tm.tm_sec;
33252 rm -f conftest.$ac_objext
33253 if { (ac_try="$ac_compile"
33254 case "(($ac_try" in
33255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256 *) ac_try_echo=$ac_try;;
33258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33259 $as_echo "$ac_try_echo") >&5
33260 (eval "$ac_compile") 2>conftest.er1
33262 grep -v '^ *+' conftest.er1 >conftest.err
33264 cat conftest.err >&5
33265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); } && {
33267 test -z "$ac_c_werror_flag" ||
33268 test ! -s conftest.err
33269 } && test -s conftest.$ac_objext; then
33270 ac_cv_struct_tm=time.h
33272 $as_echo "$as_me: failed program was:" >&5
33273 sed 's/^/| /' conftest.$ac_ext >&5
33275 ac_cv_struct_tm=sys/time.h
33278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33280 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33281 $as_echo "$ac_cv_struct_tm" >&6; }
33282 if test $ac_cv_struct_tm = sys/time.h; then
33284 cat >>confdefs.h <<\_ACEOF
33285 #define TM_IN_SYS_TIME 1
33290 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
33291 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
33292 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
33293 $as_echo_n "(cached) " >&6
33295 cat >conftest.$ac_ext <<_ACEOF
33298 cat confdefs.h >>conftest.$ac_ext
33299 cat >>conftest.$ac_ext <<_ACEOF
33300 /* end confdefs.h. */
33301 #include <sys/types.h>
33302 #include <$ac_cv_struct_tm>
33308 static struct tm ac_aggr;
33309 if (ac_aggr.tm_zone)
33315 rm -f conftest.$ac_objext
33316 if { (ac_try="$ac_compile"
33317 case "(($ac_try" in
33318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33319 *) ac_try_echo=$ac_try;;
33321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33322 $as_echo "$ac_try_echo") >&5
33323 (eval "$ac_compile") 2>conftest.er1
33325 grep -v '^ *+' conftest.er1 >conftest.err
33327 cat conftest.err >&5
33328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 (exit $ac_status); } && {
33330 test -z "$ac_c_werror_flag" ||
33331 test ! -s conftest.err
33332 } && test -s conftest.$ac_objext; then
33333 ac_cv_member_struct_tm_tm_zone=yes
33335 $as_echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33338 cat >conftest.$ac_ext <<_ACEOF
33341 cat confdefs.h >>conftest.$ac_ext
33342 cat >>conftest.$ac_ext <<_ACEOF
33343 /* end confdefs.h. */
33344 #include <sys/types.h>
33345 #include <$ac_cv_struct_tm>
33351 static struct tm ac_aggr;
33352 if (sizeof ac_aggr.tm_zone)
33358 rm -f conftest.$ac_objext
33359 if { (ac_try="$ac_compile"
33360 case "(($ac_try" in
33361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362 *) ac_try_echo=$ac_try;;
33364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33365 $as_echo "$ac_try_echo") >&5
33366 (eval "$ac_compile") 2>conftest.er1
33368 grep -v '^ *+' conftest.er1 >conftest.err
33370 cat conftest.err >&5
33371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); } && {
33373 test -z "$ac_c_werror_flag" ||
33374 test ! -s conftest.err
33375 } && test -s conftest.$ac_objext; then
33376 ac_cv_member_struct_tm_tm_zone=yes
33378 $as_echo "$as_me: failed program was:" >&5
33379 sed 's/^/| /' conftest.$ac_ext >&5
33381 ac_cv_member_struct_tm_tm_zone=no
33384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33389 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
33390 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
33391 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
33393 cat >>confdefs.h <<_ACEOF
33394 #define HAVE_STRUCT_TM_TM_ZONE 1
33400 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
33402 cat >>confdefs.h <<\_ACEOF
33403 #define HAVE_TM_ZONE 1
33407 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
33408 $as_echo_n "checking whether tzname is declared... " >&6; }
33409 if test "${ac_cv_have_decl_tzname+set}" = set; then
33410 $as_echo_n "(cached) " >&6
33412 cat >conftest.$ac_ext <<_ACEOF
33415 cat confdefs.h >>conftest.$ac_ext
33416 cat >>conftest.$ac_ext <<_ACEOF
33417 /* end confdefs.h. */
33431 rm -f conftest.$ac_objext
33432 if { (ac_try="$ac_compile"
33433 case "(($ac_try" in
33434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33435 *) ac_try_echo=$ac_try;;
33437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33438 $as_echo "$ac_try_echo") >&5
33439 (eval "$ac_compile") 2>conftest.er1
33441 grep -v '^ *+' conftest.er1 >conftest.err
33443 cat conftest.err >&5
33444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445 (exit $ac_status); } && {
33446 test -z "$ac_c_werror_flag" ||
33447 test ! -s conftest.err
33448 } && test -s conftest.$ac_objext; then
33449 ac_cv_have_decl_tzname=yes
33451 $as_echo "$as_me: failed program was:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33454 ac_cv_have_decl_tzname=no
33457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33459 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
33460 $as_echo "$ac_cv_have_decl_tzname" >&6; }
33461 if test "x$ac_cv_have_decl_tzname" = x""yes; then
33463 cat >>confdefs.h <<_ACEOF
33464 #define HAVE_DECL_TZNAME 1
33469 cat >>confdefs.h <<_ACEOF
33470 #define HAVE_DECL_TZNAME 0
33477 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
33478 $as_echo_n "checking for tzname... " >&6; }
33479 if test "${ac_cv_var_tzname+set}" = set; then
33480 $as_echo_n "(cached) " >&6
33482 cat >conftest.$ac_ext <<_ACEOF
33485 cat confdefs.h >>conftest.$ac_ext
33486 cat >>conftest.$ac_ext <<_ACEOF
33487 /* end confdefs.h. */
33489 #if !HAVE_DECL_TZNAME
33490 extern char *tzname[];
33496 return tzname[0][0];
33501 rm -f conftest.$ac_objext conftest$ac_exeext
33502 if { (ac_try="$ac_link"
33503 case "(($ac_try" in
33504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33505 *) ac_try_echo=$ac_try;;
33507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33508 $as_echo "$ac_try_echo") >&5
33509 (eval "$ac_link") 2>conftest.er1
33511 grep -v '^ *+' conftest.er1 >conftest.err
33513 cat conftest.err >&5
33514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515 (exit $ac_status); } && {
33516 test -z "$ac_c_werror_flag" ||
33517 test ! -s conftest.err
33518 } && test -s conftest$ac_exeext && {
33519 test "$cross_compiling" = yes ||
33520 $as_test_x conftest$ac_exeext
33522 ac_cv_var_tzname=yes
33524 $as_echo "$as_me: failed program was:" >&5
33525 sed 's/^/| /' conftest.$ac_ext >&5
33527 ac_cv_var_tzname=no
33530 rm -rf conftest.dSYM
33531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33532 conftest$ac_exeext conftest.$ac_ext
33534 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
33535 $as_echo "$ac_cv_var_tzname" >&6; }
33536 if test $ac_cv_var_tzname = yes; then
33538 cat >>confdefs.h <<\_ACEOF
33539 #define HAVE_TZNAME 1
33546 { $as_echo "$as_me:$LINENO: checking for utime.h" >&5
33547 $as_echo_n "checking for utime.h... " >&6; }
33548 if test "${ba_cv_header_utime_h+set}" = set; then
33549 $as_echo_n "(cached) " >&6
33552 cat >conftest.$ac_ext <<_ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h. */
33559 #include <sys/types.h>
33572 rm -f conftest.$ac_objext
33573 if { (ac_try="$ac_compile"
33574 case "(($ac_try" in
33575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576 *) ac_try_echo=$ac_try;;
33578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33579 $as_echo "$ac_try_echo") >&5
33580 (eval "$ac_compile") 2>conftest.er1
33582 grep -v '^ *+' conftest.er1 >conftest.err
33584 cat conftest.err >&5
33585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); } && {
33587 test -z "$ac_c_werror_flag" ||
33588 test ! -s conftest.err
33589 } && test -s conftest.$ac_objext; then
33591 ba_cv_header_utime_h=yes
33594 $as_echo "$as_me: failed program was:" >&5
33595 sed 's/^/| /' conftest.$ac_ext >&5
33598 ba_cv_header_utime_h=no
33603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33607 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
33608 $as_echo "$ba_cv_header_utime_h" >&6; }
33609 test $ba_cv_header_utime_h = yes &&
33610 cat >>confdefs.h <<\_ACEOF
33611 #define HAVE_UTIME_H 1
33615 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
33616 $as_echo_n "checking for socklen_t... " >&6; }
33617 if test "${ba_cv_header_socklen_t+set}" = set; then
33618 $as_echo_n "(cached) " >&6
33621 cat >conftest.$ac_ext <<_ACEOF
33624 cat confdefs.h >>conftest.$ac_ext
33625 cat >>conftest.$ac_ext <<_ACEOF
33626 /* end confdefs.h. */
33628 #include <sys/types.h>
33629 #include <sys/socket.h>
33641 rm -f conftest.$ac_objext
33642 if { (ac_try="$ac_compile"
33643 case "(($ac_try" in
33644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645 *) ac_try_echo=$ac_try;;
33647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33648 $as_echo "$ac_try_echo") >&5
33649 (eval "$ac_compile") 2>conftest.er1
33651 grep -v '^ *+' conftest.er1 >conftest.err
33653 cat conftest.err >&5
33654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); } && {
33656 test -z "$ac_c_werror_flag" ||
33657 test ! -s conftest.err
33658 } && test -s conftest.$ac_objext; then
33660 ba_cv_header_socklen_t=yes
33663 $as_echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33667 ba_cv_header_socklen_t=no
33672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33676 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
33677 $as_echo "$ba_cv_header_socklen_t" >&6; }
33678 test $ba_cv_header_socklen_t = yes &&
33679 cat >>confdefs.h <<\_ACEOF
33680 #define HAVE_SOCKLEN_T 1
33685 ac_cpp='$CXXCPP $CPPFLAGS'
33686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33690 { $as_echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
33691 $as_echo_n "checking for ioctl_req_t... " >&6; }
33692 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
33693 $as_echo_n "(cached) " >&6
33696 cat >conftest.$ac_ext <<_ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h. */
33703 #include <unistd.h>
33704 #include <sys/types.h>
33705 #include <sys/ioctl.h>
33711 int (*d_ioctl)(int fd, unsigned long int request, ...);
33718 rm -f conftest.$ac_objext
33719 if { (ac_try="$ac_compile"
33720 case "(($ac_try" in
33721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33722 *) ac_try_echo=$ac_try;;
33724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33725 $as_echo "$ac_try_echo") >&5
33726 (eval "$ac_compile") 2>conftest.er1
33728 grep -v '^ *+' conftest.er1 >conftest.err
33730 cat conftest.err >&5
33731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732 (exit $ac_status); } && {
33733 test -z "$ac_cxx_werror_flag" ||
33734 test ! -s conftest.err
33735 } && test -s conftest.$ac_objext; then
33737 ba_cv_header_ioctl_req_t=yes
33740 $as_echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33744 ba_cv_header_ioctl_req_t=no
33749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33753 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
33754 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
33755 test $ba_cv_header_ioctl_req_t = yes &&
33756 cat >>confdefs.h <<\_ACEOF
33757 #define HAVE_IOCTL_ULINT_REQUEST 1
33762 ac_cpp='$CPP $CPPFLAGS'
33763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33769 ac_cpp='$CXXCPP $CPPFLAGS'
33770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33774 { $as_echo "$as_me:$LINENO: checking for typeof" >&5
33775 $as_echo_n "checking for typeof... " >&6; }
33776 if test "${ba_cv_have_typeof+set}" = set; then
33777 $as_echo_n "(cached) " >&6
33780 if test "$cross_compiling" = yes; then
33782 ba_cv_have_typeof=no
33786 cat >conftest.$ac_ext <<_ACEOF
33789 cat confdefs.h >>conftest.$ac_ext
33790 cat >>conftest.$ac_ext <<_ACEOF
33791 /* end confdefs.h. */
33793 main(){char *a = 0; a = (typeof a)a;}
33796 rm -f conftest$ac_exeext
33797 if { (ac_try="$ac_link"
33798 case "(($ac_try" in
33799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800 *) ac_try_echo=$ac_try;;
33802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33803 $as_echo "$ac_try_echo") >&5
33804 (eval "$ac_link") 2>&5
33806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33808 { (case "(($ac_try" in
33809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33810 *) ac_try_echo=$ac_try;;
33812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33813 $as_echo "$ac_try_echo") >&5
33814 (eval "$ac_try") 2>&5
33816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; }; then
33819 ba_cv_have_typeof=yes
33822 $as_echo "$as_me: program exited with status $ac_status" >&5
33823 $as_echo "$as_me: failed program was:" >&5
33824 sed 's/^/| /' conftest.$ac_ext >&5
33826 ( exit $ac_status )
33828 ba_cv_have_typeof=no
33831 rm -rf conftest.dSYM
33832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33839 { $as_echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33840 $as_echo "$ba_cv_have_typeof" >&6; }
33841 test $ba_cv_have_typeof = yes &&
33842 cat >>confdefs.h <<\_ACEOF
33843 #define HAVE_TYPEOF 1
33847 ac_cpp='$CPP $CPPFLAGS'
33848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33853 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33854 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33855 if test "${ac_cv_c_const+set}" = set; then
33856 $as_echo_n "(cached) " >&6
33858 cat >conftest.$ac_ext <<_ACEOF
33861 cat confdefs.h >>conftest.$ac_ext
33862 cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h. */
33868 /* FIXME: Include the comments suggested by Paul. */
33869 #ifndef __cplusplus
33870 /* Ultrix mips cc rejects this. */
33871 typedef int charset[2];
33873 /* SunOS 4.1.1 cc rejects this. */
33874 char const *const *pcpcc;
33876 /* NEC SVR4.0.2 mips cc rejects this. */
33877 struct point {int x, y;};
33878 static struct point const zero = {0,0};
33879 /* AIX XL C 1.02.0.0 rejects this.
33880 It does not let you subtract one const X* pointer from another in
33881 an arm of an if-expression whose if-part is not a constant
33883 const char *g = "string";
33884 pcpcc = &g + (g ? g-g : 0);
33885 /* HPUX 7.0 cc rejects these. */
33887 ppc = (char**) pcpcc;
33888 pcpcc = (char const *const *) ppc;
33889 { /* SCO 3.2v4 cc rejects this. */
33891 char const *s = 0 ? (char *) 0 : (char const *) 0;
33896 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33897 int x[] = {25, 17};
33898 const int *foo = &x[0];
33901 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33902 typedef const int *iptr;
33906 { /* AIX XL C 1.02.0.0 rejects this saying
33907 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33908 struct s { int j; const int *ap[3]; };
33909 struct s *b; b->j = 5;
33911 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33912 const int foo = 10;
33913 if (!foo) return 0;
33915 return !cs[0] && !zero.x;
33922 rm -f conftest.$ac_objext
33923 if { (ac_try="$ac_compile"
33924 case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33929 $as_echo "$ac_try_echo") >&5
33930 (eval "$ac_compile") 2>conftest.er1
33932 grep -v '^ *+' conftest.er1 >conftest.err
33934 cat conftest.err >&5
33935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); } && {
33937 test -z "$ac_c_werror_flag" ||
33938 test ! -s conftest.err
33939 } && test -s conftest.$ac_objext; then
33942 $as_echo "$as_me: failed program was:" >&5
33943 sed 's/^/| /' conftest.$ac_ext >&5
33948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33950 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33951 $as_echo "$ac_cv_c_const" >&6; }
33952 if test $ac_cv_c_const = no; then
33954 cat >>confdefs.h <<\_ACEOF
33961 { $as_echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33962 $as_echo_n "checking how to get filesystem type... " >&6; }
33964 # The order of these tests is important.
33965 cat >conftest.$ac_ext <<_ACEOF
33968 cat confdefs.h >>conftest.$ac_ext
33969 cat >>conftest.$ac_ext <<_ACEOF
33970 /* end confdefs.h. */
33972 #include <sys/statvfs.h>
33973 #include <sys/fstyp.h>
33976 if { (ac_try="$ac_cpp conftest.$ac_ext"
33977 case "(($ac_try" in
33978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33979 *) ac_try_echo=$ac_try;;
33981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33982 $as_echo "$ac_try_echo") >&5
33983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33985 grep -v '^ *+' conftest.er1 >conftest.err
33987 cat conftest.err >&5
33988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); } >/dev/null && {
33990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33991 test ! -s conftest.err
33993 cat >>confdefs.h <<\_ACEOF
33994 #define FSTYPE_STATVFS 1
33999 $as_echo "$as_me: failed program was:" >&5
34000 sed 's/^/| /' conftest.$ac_ext >&5
34005 rm -f conftest.err conftest.$ac_ext
34006 if test $fstype = no; then
34007 cat >conftest.$ac_ext <<_ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h. */
34014 #include <sys/statfs.h>
34015 #include <sys/fstyp.h>
34018 if { (ac_try="$ac_cpp conftest.$ac_ext"
34019 case "(($ac_try" in
34020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34021 *) ac_try_echo=$ac_try;;
34023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34024 $as_echo "$ac_try_echo") >&5
34025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34027 grep -v '^ *+' conftest.er1 >conftest.err
34029 cat conftest.err >&5
34030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); } >/dev/null && {
34032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34033 test ! -s conftest.err
34035 cat >>confdefs.h <<\_ACEOF
34036 #define FSTYPE_USG_STATFS 1
34041 $as_echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34047 rm -f conftest.err conftest.$ac_ext
34049 if test $fstype = no; then
34050 cat >conftest.$ac_ext <<_ACEOF
34053 cat confdefs.h >>conftest.$ac_ext
34054 cat >>conftest.$ac_ext <<_ACEOF
34055 /* end confdefs.h. */
34057 #include <sys/statfs.h>
34058 #include <sys/vmount.h>
34061 if { (ac_try="$ac_cpp conftest.$ac_ext"
34062 case "(($ac_try" in
34063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064 *) ac_try_echo=$ac_try;;
34066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34067 $as_echo "$ac_try_echo") >&5
34068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34070 grep -v '^ *+' conftest.er1 >conftest.err
34072 cat conftest.err >&5
34073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074 (exit $ac_status); } >/dev/null && {
34075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34076 test ! -s conftest.err
34078 cat >>confdefs.h <<\_ACEOF
34079 #define FSTYPE_AIX_STATFS 1
34084 $as_echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34090 rm -f conftest.err conftest.$ac_ext
34092 if test $fstype = no; then
34093 cat >conftest.$ac_ext <<_ACEOF
34096 cat confdefs.h >>conftest.$ac_ext
34097 cat >>conftest.$ac_ext <<_ACEOF
34098 /* end confdefs.h. */
34100 #include <mntent.h>
34103 if { (ac_try="$ac_cpp conftest.$ac_ext"
34104 case "(($ac_try" in
34105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34106 *) ac_try_echo=$ac_try;;
34108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34109 $as_echo "$ac_try_echo") >&5
34110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34112 grep -v '^ *+' conftest.er1 >conftest.err
34114 cat conftest.err >&5
34115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); } >/dev/null && {
34117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34118 test ! -s conftest.err
34120 cat >>confdefs.h <<\_ACEOF
34121 #define FSTYPE_MNTENT 1
34126 $as_echo "$as_me: failed program was:" >&5
34127 sed 's/^/| /' conftest.$ac_ext >&5
34132 rm -f conftest.err conftest.$ac_ext
34134 if test $fstype = no; then
34135 cat >conftest.$ac_ext <<_ACEOF
34138 cat confdefs.h >>conftest.$ac_ext
34139 cat >>conftest.$ac_ext <<_ACEOF
34140 /* end confdefs.h. */
34141 #include <sys/mount.h>
34144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34145 $EGREP "f_type;" >/dev/null 2>&1; then
34146 cat >>confdefs.h <<\_ACEOF
34147 #define FSTYPE_STATFS 1
34154 if test $fstype = no; then
34155 cat >conftest.$ac_ext <<_ACEOF
34158 cat confdefs.h >>conftest.$ac_ext
34159 cat >>conftest.$ac_ext <<_ACEOF
34160 /* end confdefs.h. */
34162 #include <sys/mount.h>
34163 #include <sys/fs_types.h>
34166 if { (ac_try="$ac_cpp conftest.$ac_ext"
34167 case "(($ac_try" in
34168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34169 *) ac_try_echo=$ac_try;;
34171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34172 $as_echo "$ac_try_echo") >&5
34173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34175 grep -v '^ *+' conftest.er1 >conftest.err
34177 cat conftest.err >&5
34178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); } >/dev/null && {
34180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34181 test ! -s conftest.err
34183 cat >>confdefs.h <<\_ACEOF
34184 #define FSTYPE_GETMNT 1
34189 $as_echo "$as_me: failed program was:" >&5
34190 sed 's/^/| /' conftest.$ac_ext >&5
34195 rm -f conftest.err conftest.$ac_ext
34197 { $as_echo "$as_me:$LINENO: result: $fstype" >&5
34198 $as_echo "$fstype" >&6; }
34200 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34201 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34202 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34203 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34204 $as_echo_n "(cached) " >&6
34206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34207 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34209 # Is the header compilable?
34210 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
34211 $as_echo_n "checking sys/statvfs.h usability... " >&6; }
34212 cat >conftest.$ac_ext <<_ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h. */
34218 $ac_includes_default
34219 #include <sys/statvfs.h>
34221 rm -f conftest.$ac_objext
34222 if { (ac_try="$ac_compile"
34223 case "(($ac_try" in
34224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225 *) ac_try_echo=$ac_try;;
34227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34228 $as_echo "$ac_try_echo") >&5
34229 (eval "$ac_compile") 2>conftest.er1
34231 grep -v '^ *+' conftest.er1 >conftest.err
34233 cat conftest.err >&5
34234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235 (exit $ac_status); } && {
34236 test -z "$ac_c_werror_flag" ||
34237 test ! -s conftest.err
34238 } && test -s conftest.$ac_objext; then
34239 ac_header_compiler=yes
34241 $as_echo "$as_me: failed program was:" >&5
34242 sed 's/^/| /' conftest.$ac_ext >&5
34244 ac_header_compiler=no
34247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34249 $as_echo "$ac_header_compiler" >&6; }
34251 # Is the header present?
34252 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
34253 $as_echo_n "checking sys/statvfs.h presence... " >&6; }
34254 cat >conftest.$ac_ext <<_ACEOF
34257 cat confdefs.h >>conftest.$ac_ext
34258 cat >>conftest.$ac_ext <<_ACEOF
34259 /* end confdefs.h. */
34260 #include <sys/statvfs.h>
34262 if { (ac_try="$ac_cpp conftest.$ac_ext"
34263 case "(($ac_try" in
34264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265 *) ac_try_echo=$ac_try;;
34267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34268 $as_echo "$ac_try_echo") >&5
34269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34271 grep -v '^ *+' conftest.er1 >conftest.err
34273 cat conftest.err >&5
34274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275 (exit $ac_status); } >/dev/null && {
34276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34277 test ! -s conftest.err
34279 ac_header_preproc=yes
34281 $as_echo "$as_me: failed program was:" >&5
34282 sed 's/^/| /' conftest.$ac_ext >&5
34284 ac_header_preproc=no
34287 rm -f conftest.err conftest.$ac_ext
34288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34289 $as_echo "$ac_header_preproc" >&6; }
34291 # So? What about this header?
34292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34294 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34295 $as_echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34296 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
34297 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
34298 ac_header_preproc=yes
34301 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
34302 $as_echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
34303 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
34304 $as_echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
34305 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
34306 $as_echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
34307 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
34308 $as_echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
34309 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
34310 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
34311 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
34312 $as_echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
34316 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34317 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34318 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34319 $as_echo_n "(cached) " >&6
34321 ac_cv_header_sys_statvfs_h=$ac_header_preproc
34323 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34324 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34327 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then
34329 cat >>confdefs.h <<\_ACEOF
34330 #define HAVE_SYS_STATVFS_H 1
34337 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34338 $as_echo_n "checking return type of signal handlers... " >&6; }
34339 if test "${ac_cv_type_signal+set}" = set; then
34340 $as_echo_n "(cached) " >&6
34342 cat >conftest.$ac_ext <<_ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h. */
34348 #include <sys/types.h>
34349 #include <signal.h>
34354 return *(signal (0, 0)) (0) == 1;
34359 rm -f conftest.$ac_objext
34360 if { (ac_try="$ac_compile"
34361 case "(($ac_try" in
34362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363 *) ac_try_echo=$ac_try;;
34365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34366 $as_echo "$ac_try_echo") >&5
34367 (eval "$ac_compile") 2>conftest.er1
34369 grep -v '^ *+' conftest.er1 >conftest.err
34371 cat conftest.err >&5
34372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } && {
34374 test -z "$ac_c_werror_flag" ||
34375 test ! -s conftest.err
34376 } && test -s conftest.$ac_objext; then
34377 ac_cv_type_signal=int
34379 $as_echo "$as_me: failed program was:" >&5
34380 sed 's/^/| /' conftest.$ac_ext >&5
34382 ac_cv_type_signal=void
34385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34387 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34388 $as_echo "$ac_cv_type_signal" >&6; }
34390 cat >>confdefs.h <<_ACEOF
34391 #define RETSIGTYPE $ac_cv_type_signal
34396 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
34397 $as_echo_n "checking for type of signal functions... " >&6; }
34398 if test "${bash_cv_signal_vintage+set}" = set; then
34399 $as_echo_n "(cached) " >&6
34402 cat >conftest.$ac_ext <<_ACEOF
34405 cat confdefs.h >>conftest.$ac_ext
34406 cat >>conftest.$ac_ext <<_ACEOF
34407 /* end confdefs.h. */
34408 #include <signal.h>
34414 struct sigaction sa;
34415 sigemptyset(&ss); sigsuspend(&ss);
34416 sigaction(SIGINT, &sa, (struct sigaction *) 0);
34417 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
34423 rm -f conftest.$ac_objext conftest$ac_exeext
34424 if { (ac_try="$ac_link"
34425 case "(($ac_try" in
34426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34427 *) ac_try_echo=$ac_try;;
34429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34430 $as_echo "$ac_try_echo") >&5
34431 (eval "$ac_link") 2>conftest.er1
34433 grep -v '^ *+' conftest.er1 >conftest.err
34435 cat conftest.err >&5
34436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); } && {
34438 test -z "$ac_c_werror_flag" ||
34439 test ! -s conftest.err
34440 } && test -s conftest$ac_exeext && {
34441 test "$cross_compiling" = yes ||
34442 $as_test_x conftest$ac_exeext
34444 bash_cv_signal_vintage="posix"
34446 $as_echo "$as_me: failed program was:" >&5
34447 sed 's/^/| /' conftest.$ac_ext >&5
34450 cat >conftest.$ac_ext <<_ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h. */
34456 #include <signal.h>
34461 int mask = sigmask(SIGINT);
34462 sigsetmask(mask); sigblock(mask); sigpause(mask);
34468 rm -f conftest.$ac_objext conftest$ac_exeext
34469 if { (ac_try="$ac_link"
34470 case "(($ac_try" in
34471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34472 *) ac_try_echo=$ac_try;;
34474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34475 $as_echo "$ac_try_echo") >&5
34476 (eval "$ac_link") 2>conftest.er1
34478 grep -v '^ *+' conftest.er1 >conftest.err
34480 cat conftest.err >&5
34481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); } && {
34483 test -z "$ac_c_werror_flag" ||
34484 test ! -s conftest.err
34485 } && test -s conftest$ac_exeext && {
34486 test "$cross_compiling" = yes ||
34487 $as_test_x conftest$ac_exeext
34489 bash_cv_signal_vintage="4.2bsd"
34491 $as_echo "$as_me: failed program was:" >&5
34492 sed 's/^/| /' conftest.$ac_ext >&5
34495 cat >conftest.$ac_ext <<_ACEOF
34498 cat confdefs.h >>conftest.$ac_ext
34499 cat >>conftest.$ac_ext <<_ACEOF
34500 /* end confdefs.h. */
34502 #include <signal.h>
34503 RETSIGTYPE foo() { }
34508 int mask = sigmask(SIGINT);
34509 sigset(SIGINT, foo); sigrelse(SIGINT);
34510 sighold(SIGINT); sigpause(SIGINT);
34516 rm -f conftest.$ac_objext conftest$ac_exeext
34517 if { (ac_try="$ac_link"
34518 case "(($ac_try" in
34519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34520 *) ac_try_echo=$ac_try;;
34522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34523 $as_echo "$ac_try_echo") >&5
34524 (eval "$ac_link") 2>conftest.er1
34526 grep -v '^ *+' conftest.er1 >conftest.err
34528 cat conftest.err >&5
34529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); } && {
34531 test -z "$ac_c_werror_flag" ||
34532 test ! -s conftest.err
34533 } && test -s conftest$ac_exeext && {
34534 test "$cross_compiling" = yes ||
34535 $as_test_x conftest$ac_exeext
34537 bash_cv_signal_vintage="svr3"
34539 $as_echo "$as_me: failed program was:" >&5
34540 sed 's/^/| /' conftest.$ac_ext >&5
34542 bash_cv_signal_vintage="v7"
34546 rm -rf conftest.dSYM
34547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34548 conftest$ac_exeext conftest.$ac_ext
34552 rm -rf conftest.dSYM
34553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34554 conftest$ac_exeext conftest.$ac_ext
34558 rm -rf conftest.dSYM
34559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34560 conftest$ac_exeext conftest.$ac_ext
34564 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
34565 $as_echo "$bash_cv_signal_vintage" >&6; }
34566 if test "$bash_cv_signal_vintage" = "posix"; then
34567 cat >>confdefs.h <<\_ACEOF
34568 #define HAVE_POSIX_SIGNALS 1
34571 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
34572 cat >>confdefs.h <<\_ACEOF
34573 #define HAVE_BSD_SIGNALS 1
34576 elif test "$bash_cv_signal_vintage" = "svr3"; then
34577 cat >>confdefs.h <<\_ACEOF
34578 #define HAVE_USG_SIGHOLD 1
34583 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
34584 $as_echo_n "checking for mode_t... " >&6; }
34585 if test "${ac_cv_type_mode_t+set}" = set; then
34586 $as_echo_n "(cached) " >&6
34588 ac_cv_type_mode_t=no
34589 cat >conftest.$ac_ext <<_ACEOF
34592 cat confdefs.h >>conftest.$ac_ext
34593 cat >>conftest.$ac_ext <<_ACEOF
34594 /* end confdefs.h. */
34595 $ac_includes_default
34599 if (sizeof (mode_t))
34605 rm -f conftest.$ac_objext
34606 if { (ac_try="$ac_compile"
34607 case "(($ac_try" in
34608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34609 *) ac_try_echo=$ac_try;;
34611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34612 $as_echo "$ac_try_echo") >&5
34613 (eval "$ac_compile") 2>conftest.er1
34615 grep -v '^ *+' conftest.er1 >conftest.err
34617 cat conftest.err >&5
34618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); } && {
34620 test -z "$ac_c_werror_flag" ||
34621 test ! -s conftest.err
34622 } && test -s conftest.$ac_objext; then
34623 cat >conftest.$ac_ext <<_ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h. */
34629 $ac_includes_default
34633 if (sizeof ((mode_t)))
34639 rm -f conftest.$ac_objext
34640 if { (ac_try="$ac_compile"
34641 case "(($ac_try" in
34642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34643 *) ac_try_echo=$ac_try;;
34645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34646 $as_echo "$ac_try_echo") >&5
34647 (eval "$ac_compile") 2>conftest.er1
34649 grep -v '^ *+' conftest.er1 >conftest.err
34651 cat conftest.err >&5
34652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653 (exit $ac_status); } && {
34654 test -z "$ac_c_werror_flag" ||
34655 test ! -s conftest.err
34656 } && test -s conftest.$ac_objext; then
34659 $as_echo "$as_me: failed program was:" >&5
34660 sed 's/^/| /' conftest.$ac_ext >&5
34662 ac_cv_type_mode_t=yes
34665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34667 $as_echo "$as_me: failed program was:" >&5
34668 sed 's/^/| /' conftest.$ac_ext >&5
34673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34675 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34676 $as_echo "$ac_cv_type_mode_t" >&6; }
34677 if test "x$ac_cv_type_mode_t" = x""yes; then
34681 cat >>confdefs.h <<_ACEOF
34687 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34688 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
34689 if test "${ac_cv_type_uid_t+set}" = set; then
34690 $as_echo_n "(cached) " >&6
34692 cat >conftest.$ac_ext <<_ACEOF
34695 cat confdefs.h >>conftest.$ac_ext
34696 cat >>conftest.$ac_ext <<_ACEOF
34697 /* end confdefs.h. */
34698 #include <sys/types.h>
34701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34702 $EGREP "uid_t" >/dev/null 2>&1; then
34703 ac_cv_type_uid_t=yes
34705 ac_cv_type_uid_t=no
34710 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34711 $as_echo "$ac_cv_type_uid_t" >&6; }
34712 if test $ac_cv_type_uid_t = no; then
34714 cat >>confdefs.h <<\_ACEOF
34719 cat >>confdefs.h <<\_ACEOF
34725 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
34726 $as_echo_n "checking for size_t... " >&6; }
34727 if test "${ac_cv_type_size_t+set}" = set; then
34728 $as_echo_n "(cached) " >&6
34730 ac_cv_type_size_t=no
34731 cat >conftest.$ac_ext <<_ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h. */
34737 $ac_includes_default
34741 if (sizeof (size_t))
34747 rm -f conftest.$ac_objext
34748 if { (ac_try="$ac_compile"
34749 case "(($ac_try" in
34750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34751 *) ac_try_echo=$ac_try;;
34753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34754 $as_echo "$ac_try_echo") >&5
34755 (eval "$ac_compile") 2>conftest.er1
34757 grep -v '^ *+' conftest.er1 >conftest.err
34759 cat conftest.err >&5
34760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761 (exit $ac_status); } && {
34762 test -z "$ac_c_werror_flag" ||
34763 test ! -s conftest.err
34764 } && test -s conftest.$ac_objext; then
34765 cat >conftest.$ac_ext <<_ACEOF
34768 cat confdefs.h >>conftest.$ac_ext
34769 cat >>conftest.$ac_ext <<_ACEOF
34770 /* end confdefs.h. */
34771 $ac_includes_default
34775 if (sizeof ((size_t)))
34781 rm -f conftest.$ac_objext
34782 if { (ac_try="$ac_compile"
34783 case "(($ac_try" in
34784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34785 *) ac_try_echo=$ac_try;;
34787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34788 $as_echo "$ac_try_echo") >&5
34789 (eval "$ac_compile") 2>conftest.er1
34791 grep -v '^ *+' conftest.er1 >conftest.err
34793 cat conftest.err >&5
34794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795 (exit $ac_status); } && {
34796 test -z "$ac_c_werror_flag" ||
34797 test ! -s conftest.err
34798 } && test -s conftest.$ac_objext; then
34801 $as_echo "$as_me: failed program was:" >&5
34802 sed 's/^/| /' conftest.$ac_ext >&5
34804 ac_cv_type_size_t=yes
34807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34809 $as_echo "$as_me: failed program was:" >&5
34810 sed 's/^/| /' conftest.$ac_ext >&5
34815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34818 $as_echo "$ac_cv_type_size_t" >&6; }
34819 if test "x$ac_cv_type_size_t" = x""yes; then
34823 cat >>confdefs.h <<_ACEOF
34824 #define size_t unsigned int
34829 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
34830 $as_echo_n "checking for pid_t... " >&6; }
34831 if test "${ac_cv_type_pid_t+set}" = set; then
34832 $as_echo_n "(cached) " >&6
34834 ac_cv_type_pid_t=no
34835 cat >conftest.$ac_ext <<_ACEOF
34838 cat confdefs.h >>conftest.$ac_ext
34839 cat >>conftest.$ac_ext <<_ACEOF
34840 /* end confdefs.h. */
34841 $ac_includes_default
34845 if (sizeof (pid_t))
34851 rm -f conftest.$ac_objext
34852 if { (ac_try="$ac_compile"
34853 case "(($ac_try" in
34854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34855 *) ac_try_echo=$ac_try;;
34857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34858 $as_echo "$ac_try_echo") >&5
34859 (eval "$ac_compile") 2>conftest.er1
34861 grep -v '^ *+' conftest.er1 >conftest.err
34863 cat conftest.err >&5
34864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); } && {
34866 test -z "$ac_c_werror_flag" ||
34867 test ! -s conftest.err
34868 } && test -s conftest.$ac_objext; then
34869 cat >conftest.$ac_ext <<_ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h. */
34875 $ac_includes_default
34879 if (sizeof ((pid_t)))
34885 rm -f conftest.$ac_objext
34886 if { (ac_try="$ac_compile"
34887 case "(($ac_try" in
34888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34889 *) ac_try_echo=$ac_try;;
34891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34892 $as_echo "$ac_try_echo") >&5
34893 (eval "$ac_compile") 2>conftest.er1
34895 grep -v '^ *+' conftest.er1 >conftest.err
34897 cat conftest.err >&5
34898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34899 (exit $ac_status); } && {
34900 test -z "$ac_c_werror_flag" ||
34901 test ! -s conftest.err
34902 } && test -s conftest.$ac_objext; then
34905 $as_echo "$as_me: failed program was:" >&5
34906 sed 's/^/| /' conftest.$ac_ext >&5
34908 ac_cv_type_pid_t=yes
34911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34913 $as_echo "$as_me: failed program was:" >&5
34914 sed 's/^/| /' conftest.$ac_ext >&5
34919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34921 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34922 $as_echo "$ac_cv_type_pid_t" >&6; }
34923 if test "x$ac_cv_type_pid_t" = x""yes; then
34927 cat >>confdefs.h <<_ACEOF
34933 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
34934 $as_echo_n "checking for off_t... " >&6; }
34935 if test "${ac_cv_type_off_t+set}" = set; then
34936 $as_echo_n "(cached) " >&6
34938 ac_cv_type_off_t=no
34939 cat >conftest.$ac_ext <<_ACEOF
34942 cat confdefs.h >>conftest.$ac_ext
34943 cat >>conftest.$ac_ext <<_ACEOF
34944 /* end confdefs.h. */
34945 $ac_includes_default
34949 if (sizeof (off_t))
34955 rm -f conftest.$ac_objext
34956 if { (ac_try="$ac_compile"
34957 case "(($ac_try" in
34958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34959 *) ac_try_echo=$ac_try;;
34961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34962 $as_echo "$ac_try_echo") >&5
34963 (eval "$ac_compile") 2>conftest.er1
34965 grep -v '^ *+' conftest.er1 >conftest.err
34967 cat conftest.err >&5
34968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); } && {
34970 test -z "$ac_c_werror_flag" ||
34971 test ! -s conftest.err
34972 } && test -s conftest.$ac_objext; then
34973 cat >conftest.$ac_ext <<_ACEOF
34976 cat confdefs.h >>conftest.$ac_ext
34977 cat >>conftest.$ac_ext <<_ACEOF
34978 /* end confdefs.h. */
34979 $ac_includes_default
34983 if (sizeof ((off_t)))
34989 rm -f conftest.$ac_objext
34990 if { (ac_try="$ac_compile"
34991 case "(($ac_try" in
34992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34993 *) ac_try_echo=$ac_try;;
34995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34996 $as_echo "$ac_try_echo") >&5
34997 (eval "$ac_compile") 2>conftest.er1
34999 grep -v '^ *+' conftest.er1 >conftest.err
35001 cat conftest.err >&5
35002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); } && {
35004 test -z "$ac_c_werror_flag" ||
35005 test ! -s conftest.err
35006 } && test -s conftest.$ac_objext; then
35009 $as_echo "$as_me: failed program was:" >&5
35010 sed 's/^/| /' conftest.$ac_ext >&5
35012 ac_cv_type_off_t=yes
35015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35017 $as_echo "$as_me: failed program was:" >&5
35018 sed 's/^/| /' conftest.$ac_ext >&5
35023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35025 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35026 $as_echo "$ac_cv_type_off_t" >&6; }
35027 if test "x$ac_cv_type_off_t" = x""yes; then
35031 cat >>confdefs.h <<_ACEOF
35032 #define off_t long int
35038 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
35039 $as_echo_n "checking for intptr_t... " >&6; }
35040 if test "${ac_cv_type_intptr_t+set}" = set; then
35041 $as_echo_n "(cached) " >&6
35043 ac_cv_type_intptr_t=no
35044 cat >conftest.$ac_ext <<_ACEOF
35047 cat confdefs.h >>conftest.$ac_ext
35048 cat >>conftest.$ac_ext <<_ACEOF
35049 /* end confdefs.h. */
35050 $ac_includes_default
35054 if (sizeof (intptr_t))
35060 rm -f conftest.$ac_objext
35061 if { (ac_try="$ac_compile"
35062 case "(($ac_try" in
35063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35064 *) ac_try_echo=$ac_try;;
35066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35067 $as_echo "$ac_try_echo") >&5
35068 (eval "$ac_compile") 2>conftest.er1
35070 grep -v '^ *+' conftest.er1 >conftest.err
35072 cat conftest.err >&5
35073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); } && {
35075 test -z "$ac_c_werror_flag" ||
35076 test ! -s conftest.err
35077 } && test -s conftest.$ac_objext; then
35078 cat >conftest.$ac_ext <<_ACEOF
35081 cat confdefs.h >>conftest.$ac_ext
35082 cat >>conftest.$ac_ext <<_ACEOF
35083 /* end confdefs.h. */
35084 $ac_includes_default
35088 if (sizeof ((intptr_t)))
35094 rm -f conftest.$ac_objext
35095 if { (ac_try="$ac_compile"
35096 case "(($ac_try" in
35097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098 *) ac_try_echo=$ac_try;;
35100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35101 $as_echo "$ac_try_echo") >&5
35102 (eval "$ac_compile") 2>conftest.er1
35104 grep -v '^ *+' conftest.er1 >conftest.err
35106 cat conftest.err >&5
35107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); } && {
35109 test -z "$ac_c_werror_flag" ||
35110 test ! -s conftest.err
35111 } && test -s conftest.$ac_objext; then
35114 $as_echo "$as_me: failed program was:" >&5
35115 sed 's/^/| /' conftest.$ac_ext >&5
35117 ac_cv_type_intptr_t=yes
35120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35122 $as_echo "$as_me: failed program was:" >&5
35123 sed 's/^/| /' conftest.$ac_ext >&5
35128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35130 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
35131 $as_echo "$ac_cv_type_intptr_t" >&6; }
35132 if test "x$ac_cv_type_intptr_t" = x""yes; then
35134 cat >>confdefs.h <<\_ACEOF
35135 #define HAVE_INTPTR_T 1
35139 for ac_type in 'int' 'long int' 'long long int'; do
35140 cat >conftest.$ac_ext <<_ACEOF
35143 cat confdefs.h >>conftest.$ac_ext
35144 cat >>conftest.$ac_ext <<_ACEOF
35145 /* end confdefs.h. */
35146 $ac_includes_default
35150 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35157 rm -f conftest.$ac_objext
35158 if { (ac_try="$ac_compile"
35159 case "(($ac_try" in
35160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35161 *) ac_try_echo=$ac_try;;
35163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35164 $as_echo "$ac_try_echo") >&5
35165 (eval "$ac_compile") 2>conftest.er1
35167 grep -v '^ *+' conftest.er1 >conftest.err
35169 cat conftest.err >&5
35170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); } && {
35172 test -z "$ac_c_werror_flag" ||
35173 test ! -s conftest.err
35174 } && test -s conftest.$ac_objext; then
35176 cat >>confdefs.h <<_ACEOF
35177 #define intptr_t $ac_type
35182 $as_echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35189 test -z "$ac_type" && break
35195 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
35196 $as_echo_n "checking for uintptr_t... " >&6; }
35197 if test "${ac_cv_type_uintptr_t+set}" = set; then
35198 $as_echo_n "(cached) " >&6
35200 ac_cv_type_uintptr_t=no
35201 cat >conftest.$ac_ext <<_ACEOF
35204 cat confdefs.h >>conftest.$ac_ext
35205 cat >>conftest.$ac_ext <<_ACEOF
35206 /* end confdefs.h. */
35207 $ac_includes_default
35211 if (sizeof (uintptr_t))
35217 rm -f conftest.$ac_objext
35218 if { (ac_try="$ac_compile"
35219 case "(($ac_try" in
35220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35221 *) ac_try_echo=$ac_try;;
35223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35224 $as_echo "$ac_try_echo") >&5
35225 (eval "$ac_compile") 2>conftest.er1
35227 grep -v '^ *+' conftest.er1 >conftest.err
35229 cat conftest.err >&5
35230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); } && {
35232 test -z "$ac_c_werror_flag" ||
35233 test ! -s conftest.err
35234 } && test -s conftest.$ac_objext; then
35235 cat >conftest.$ac_ext <<_ACEOF
35238 cat confdefs.h >>conftest.$ac_ext
35239 cat >>conftest.$ac_ext <<_ACEOF
35240 /* end confdefs.h. */
35241 $ac_includes_default
35245 if (sizeof ((uintptr_t)))
35251 rm -f conftest.$ac_objext
35252 if { (ac_try="$ac_compile"
35253 case "(($ac_try" in
35254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35255 *) ac_try_echo=$ac_try;;
35257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35258 $as_echo "$ac_try_echo") >&5
35259 (eval "$ac_compile") 2>conftest.er1
35261 grep -v '^ *+' conftest.er1 >conftest.err
35263 cat conftest.err >&5
35264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); } && {
35266 test -z "$ac_c_werror_flag" ||
35267 test ! -s conftest.err
35268 } && test -s conftest.$ac_objext; then
35271 $as_echo "$as_me: failed program was:" >&5
35272 sed 's/^/| /' conftest.$ac_ext >&5
35274 ac_cv_type_uintptr_t=yes
35277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35279 $as_echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35287 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
35288 $as_echo "$ac_cv_type_uintptr_t" >&6; }
35289 if test "x$ac_cv_type_uintptr_t" = x""yes; then
35291 cat >>confdefs.h <<\_ACEOF
35292 #define HAVE_UINTPTR_T 1
35296 for ac_type in 'unsigned int' 'unsigned long int' \
35297 'unsigned long long int'; do
35298 cat >conftest.$ac_ext <<_ACEOF
35301 cat confdefs.h >>conftest.$ac_ext
35302 cat >>conftest.$ac_ext <<_ACEOF
35303 /* end confdefs.h. */
35304 $ac_includes_default
35308 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35315 rm -f conftest.$ac_objext
35316 if { (ac_try="$ac_compile"
35317 case "(($ac_try" in
35318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35319 *) ac_try_echo=$ac_try;;
35321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35322 $as_echo "$ac_try_echo") >&5
35323 (eval "$ac_compile") 2>conftest.er1
35325 grep -v '^ *+' conftest.er1 >conftest.err
35327 cat conftest.err >&5
35328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329 (exit $ac_status); } && {
35330 test -z "$ac_c_werror_flag" ||
35331 test ! -s conftest.err
35332 } && test -s conftest.$ac_objext; then
35334 cat >>confdefs.h <<_ACEOF
35335 #define uintptr_t $ac_type
35340 $as_echo "$as_me: failed program was:" >&5
35341 sed 's/^/| /' conftest.$ac_ext >&5
35346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35347 test -z "$ac_type" && break
35352 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
35353 $as_echo_n "checking for ino_t... " >&6; }
35354 if test "${ac_cv_type_ino_t+set}" = set; then
35355 $as_echo_n "(cached) " >&6
35357 ac_cv_type_ino_t=no
35358 cat >conftest.$ac_ext <<_ACEOF
35361 cat confdefs.h >>conftest.$ac_ext
35362 cat >>conftest.$ac_ext <<_ACEOF
35363 /* end confdefs.h. */
35364 $ac_includes_default
35368 if (sizeof (ino_t))
35374 rm -f conftest.$ac_objext
35375 if { (ac_try="$ac_compile"
35376 case "(($ac_try" in
35377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35378 *) ac_try_echo=$ac_try;;
35380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35381 $as_echo "$ac_try_echo") >&5
35382 (eval "$ac_compile") 2>conftest.er1
35384 grep -v '^ *+' conftest.er1 >conftest.err
35386 cat conftest.err >&5
35387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35388 (exit $ac_status); } && {
35389 test -z "$ac_c_werror_flag" ||
35390 test ! -s conftest.err
35391 } && test -s conftest.$ac_objext; then
35392 cat >conftest.$ac_ext <<_ACEOF
35395 cat confdefs.h >>conftest.$ac_ext
35396 cat >>conftest.$ac_ext <<_ACEOF
35397 /* end confdefs.h. */
35398 $ac_includes_default
35402 if (sizeof ((ino_t)))
35408 rm -f conftest.$ac_objext
35409 if { (ac_try="$ac_compile"
35410 case "(($ac_try" in
35411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35412 *) ac_try_echo=$ac_try;;
35414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35415 $as_echo "$ac_try_echo") >&5
35416 (eval "$ac_compile") 2>conftest.er1
35418 grep -v '^ *+' conftest.er1 >conftest.err
35420 cat conftest.err >&5
35421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422 (exit $ac_status); } && {
35423 test -z "$ac_c_werror_flag" ||
35424 test ! -s conftest.err
35425 } && test -s conftest.$ac_objext; then
35428 $as_echo "$as_me: failed program was:" >&5
35429 sed 's/^/| /' conftest.$ac_ext >&5
35431 ac_cv_type_ino_t=yes
35434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35436 $as_echo "$as_me: failed program was:" >&5
35437 sed 's/^/| /' conftest.$ac_ext >&5
35442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35444 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
35445 $as_echo "$ac_cv_type_ino_t" >&6; }
35446 if test "x$ac_cv_type_ino_t" = x""yes; then
35450 cat >>confdefs.h <<_ACEOF
35451 #define ino_t unsigned long
35456 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
35457 $as_echo_n "checking for dev_t... " >&6; }
35458 if test "${ac_cv_type_dev_t+set}" = set; then
35459 $as_echo_n "(cached) " >&6
35461 ac_cv_type_dev_t=no
35462 cat >conftest.$ac_ext <<_ACEOF
35465 cat confdefs.h >>conftest.$ac_ext
35466 cat >>conftest.$ac_ext <<_ACEOF
35467 /* end confdefs.h. */
35468 $ac_includes_default
35472 if (sizeof (dev_t))
35478 rm -f conftest.$ac_objext
35479 if { (ac_try="$ac_compile"
35480 case "(($ac_try" in
35481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35482 *) ac_try_echo=$ac_try;;
35484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35485 $as_echo "$ac_try_echo") >&5
35486 (eval "$ac_compile") 2>conftest.er1
35488 grep -v '^ *+' conftest.er1 >conftest.err
35490 cat conftest.err >&5
35491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35492 (exit $ac_status); } && {
35493 test -z "$ac_c_werror_flag" ||
35494 test ! -s conftest.err
35495 } && test -s conftest.$ac_objext; then
35496 cat >conftest.$ac_ext <<_ACEOF
35499 cat confdefs.h >>conftest.$ac_ext
35500 cat >>conftest.$ac_ext <<_ACEOF
35501 /* end confdefs.h. */
35502 $ac_includes_default
35506 if (sizeof ((dev_t)))
35512 rm -f conftest.$ac_objext
35513 if { (ac_try="$ac_compile"
35514 case "(($ac_try" in
35515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35516 *) ac_try_echo=$ac_try;;
35518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35519 $as_echo "$ac_try_echo") >&5
35520 (eval "$ac_compile") 2>conftest.er1
35522 grep -v '^ *+' conftest.er1 >conftest.err
35524 cat conftest.err >&5
35525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); } && {
35527 test -z "$ac_c_werror_flag" ||
35528 test ! -s conftest.err
35529 } && test -s conftest.$ac_objext; then
35532 $as_echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35535 ac_cv_type_dev_t=yes
35538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35540 $as_echo "$as_me: failed program was:" >&5
35541 sed 's/^/| /' conftest.$ac_ext >&5
35546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35548 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
35549 $as_echo "$ac_cv_type_dev_t" >&6; }
35550 if test "x$ac_cv_type_dev_t" = x""yes; then
35554 cat >>confdefs.h <<_ACEOF
35555 #define dev_t unsigned long
35560 { $as_echo "$as_me:$LINENO: checking for daddr_t" >&5
35561 $as_echo_n "checking for daddr_t... " >&6; }
35562 if test "${ac_cv_type_daddr_t+set}" = set; then
35563 $as_echo_n "(cached) " >&6
35565 ac_cv_type_daddr_t=no
35566 cat >conftest.$ac_ext <<_ACEOF
35569 cat confdefs.h >>conftest.$ac_ext
35570 cat >>conftest.$ac_ext <<_ACEOF
35571 /* end confdefs.h. */
35572 $ac_includes_default
35576 if (sizeof (daddr_t))
35582 rm -f conftest.$ac_objext
35583 if { (ac_try="$ac_compile"
35584 case "(($ac_try" in
35585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35586 *) ac_try_echo=$ac_try;;
35588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35589 $as_echo "$ac_try_echo") >&5
35590 (eval "$ac_compile") 2>conftest.er1
35592 grep -v '^ *+' conftest.er1 >conftest.err
35594 cat conftest.err >&5
35595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596 (exit $ac_status); } && {
35597 test -z "$ac_c_werror_flag" ||
35598 test ! -s conftest.err
35599 } && test -s conftest.$ac_objext; then
35600 cat >conftest.$ac_ext <<_ACEOF
35603 cat confdefs.h >>conftest.$ac_ext
35604 cat >>conftest.$ac_ext <<_ACEOF
35605 /* end confdefs.h. */
35606 $ac_includes_default
35610 if (sizeof ((daddr_t)))
35616 rm -f conftest.$ac_objext
35617 if { (ac_try="$ac_compile"
35618 case "(($ac_try" in
35619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35620 *) ac_try_echo=$ac_try;;
35622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35623 $as_echo "$ac_try_echo") >&5
35624 (eval "$ac_compile") 2>conftest.er1
35626 grep -v '^ *+' conftest.er1 >conftest.err
35628 cat conftest.err >&5
35629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630 (exit $ac_status); } && {
35631 test -z "$ac_c_werror_flag" ||
35632 test ! -s conftest.err
35633 } && test -s conftest.$ac_objext; then
35636 $as_echo "$as_me: failed program was:" >&5
35637 sed 's/^/| /' conftest.$ac_ext >&5
35639 ac_cv_type_daddr_t=yes
35642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35644 $as_echo "$as_me: failed program was:" >&5
35645 sed 's/^/| /' conftest.$ac_ext >&5
35650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35652 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
35653 $as_echo "$ac_cv_type_daddr_t" >&6; }
35654 if test "x$ac_cv_type_daddr_t" = x""yes; then
35658 cat >>confdefs.h <<_ACEOF
35659 #define daddr_t long
35664 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
35665 $as_echo_n "checking for major_t... " >&6; }
35666 if test "${ac_cv_type_major_t+set}" = set; then
35667 $as_echo_n "(cached) " >&6
35669 ac_cv_type_major_t=no
35670 cat >conftest.$ac_ext <<_ACEOF
35673 cat confdefs.h >>conftest.$ac_ext
35674 cat >>conftest.$ac_ext <<_ACEOF
35675 /* end confdefs.h. */
35676 $ac_includes_default
35680 if (sizeof (major_t))
35686 rm -f conftest.$ac_objext
35687 if { (ac_try="$ac_compile"
35688 case "(($ac_try" in
35689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35690 *) ac_try_echo=$ac_try;;
35692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35693 $as_echo "$ac_try_echo") >&5
35694 (eval "$ac_compile") 2>conftest.er1
35696 grep -v '^ *+' conftest.er1 >conftest.err
35698 cat conftest.err >&5
35699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); } && {
35701 test -z "$ac_c_werror_flag" ||
35702 test ! -s conftest.err
35703 } && test -s conftest.$ac_objext; then
35704 cat >conftest.$ac_ext <<_ACEOF
35707 cat confdefs.h >>conftest.$ac_ext
35708 cat >>conftest.$ac_ext <<_ACEOF
35709 /* end confdefs.h. */
35710 $ac_includes_default
35714 if (sizeof ((major_t)))
35720 rm -f conftest.$ac_objext
35721 if { (ac_try="$ac_compile"
35722 case "(($ac_try" in
35723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35724 *) ac_try_echo=$ac_try;;
35726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35727 $as_echo "$ac_try_echo") >&5
35728 (eval "$ac_compile") 2>conftest.er1
35730 grep -v '^ *+' conftest.er1 >conftest.err
35732 cat conftest.err >&5
35733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); } && {
35735 test -z "$ac_c_werror_flag" ||
35736 test ! -s conftest.err
35737 } && test -s conftest.$ac_objext; then
35740 $as_echo "$as_me: failed program was:" >&5
35741 sed 's/^/| /' conftest.$ac_ext >&5
35743 ac_cv_type_major_t=yes
35746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35748 $as_echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35756 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
35757 $as_echo "$ac_cv_type_major_t" >&6; }
35758 if test "x$ac_cv_type_major_t" = x""yes; then
35762 cat >>confdefs.h <<_ACEOF
35763 #define major_t int
35768 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
35769 $as_echo_n "checking for minor_t... " >&6; }
35770 if test "${ac_cv_type_minor_t+set}" = set; then
35771 $as_echo_n "(cached) " >&6
35773 ac_cv_type_minor_t=no
35774 cat >conftest.$ac_ext <<_ACEOF
35777 cat confdefs.h >>conftest.$ac_ext
35778 cat >>conftest.$ac_ext <<_ACEOF
35779 /* end confdefs.h. */
35780 $ac_includes_default
35784 if (sizeof (minor_t))
35790 rm -f conftest.$ac_objext
35791 if { (ac_try="$ac_compile"
35792 case "(($ac_try" in
35793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35794 *) ac_try_echo=$ac_try;;
35796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35797 $as_echo "$ac_try_echo") >&5
35798 (eval "$ac_compile") 2>conftest.er1
35800 grep -v '^ *+' conftest.er1 >conftest.err
35802 cat conftest.err >&5
35803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); } && {
35805 test -z "$ac_c_werror_flag" ||
35806 test ! -s conftest.err
35807 } && test -s conftest.$ac_objext; then
35808 cat >conftest.$ac_ext <<_ACEOF
35811 cat confdefs.h >>conftest.$ac_ext
35812 cat >>conftest.$ac_ext <<_ACEOF
35813 /* end confdefs.h. */
35814 $ac_includes_default
35818 if (sizeof ((minor_t)))
35824 rm -f conftest.$ac_objext
35825 if { (ac_try="$ac_compile"
35826 case "(($ac_try" in
35827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35828 *) ac_try_echo=$ac_try;;
35830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35831 $as_echo "$ac_try_echo") >&5
35832 (eval "$ac_compile") 2>conftest.er1
35834 grep -v '^ *+' conftest.er1 >conftest.err
35836 cat conftest.err >&5
35837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838 (exit $ac_status); } && {
35839 test -z "$ac_c_werror_flag" ||
35840 test ! -s conftest.err
35841 } && test -s conftest.$ac_objext; then
35844 $as_echo "$as_me: failed program was:" >&5
35845 sed 's/^/| /' conftest.$ac_ext >&5
35847 ac_cv_type_minor_t=yes
35850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35852 $as_echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35860 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
35861 $as_echo "$ac_cv_type_minor_t" >&6; }
35862 if test "x$ac_cv_type_minor_t" = x""yes; then
35866 cat >>confdefs.h <<_ACEOF
35867 #define minor_t int
35872 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
35873 $as_echo_n "checking for ssize_t... " >&6; }
35874 if test "${ac_cv_type_ssize_t+set}" = set; then
35875 $as_echo_n "(cached) " >&6
35877 ac_cv_type_ssize_t=no
35878 cat >conftest.$ac_ext <<_ACEOF
35881 cat confdefs.h >>conftest.$ac_ext
35882 cat >>conftest.$ac_ext <<_ACEOF
35883 /* end confdefs.h. */
35884 $ac_includes_default
35888 if (sizeof (ssize_t))
35894 rm -f conftest.$ac_objext
35895 if { (ac_try="$ac_compile"
35896 case "(($ac_try" in
35897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35898 *) ac_try_echo=$ac_try;;
35900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35901 $as_echo "$ac_try_echo") >&5
35902 (eval "$ac_compile") 2>conftest.er1
35904 grep -v '^ *+' conftest.er1 >conftest.err
35906 cat conftest.err >&5
35907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } && {
35909 test -z "$ac_c_werror_flag" ||
35910 test ! -s conftest.err
35911 } && test -s conftest.$ac_objext; then
35912 cat >conftest.$ac_ext <<_ACEOF
35915 cat confdefs.h >>conftest.$ac_ext
35916 cat >>conftest.$ac_ext <<_ACEOF
35917 /* end confdefs.h. */
35918 $ac_includes_default
35922 if (sizeof ((ssize_t)))
35928 rm -f conftest.$ac_objext
35929 if { (ac_try="$ac_compile"
35930 case "(($ac_try" in
35931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35932 *) ac_try_echo=$ac_try;;
35934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35935 $as_echo "$ac_try_echo") >&5
35936 (eval "$ac_compile") 2>conftest.er1
35938 grep -v '^ *+' conftest.er1 >conftest.err
35940 cat conftest.err >&5
35941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); } && {
35943 test -z "$ac_c_werror_flag" ||
35944 test ! -s conftest.err
35945 } && test -s conftest.$ac_objext; then
35948 $as_echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35951 ac_cv_type_ssize_t=yes
35954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35956 $as_echo "$as_me: failed program was:" >&5
35957 sed 's/^/| /' conftest.$ac_ext >&5
35962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35964 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35965 $as_echo "$ac_cv_type_ssize_t" >&6; }
35966 if test "x$ac_cv_type_ssize_t" = x""yes; then
35970 cat >>confdefs.h <<_ACEOF
35971 #define ssize_t int
35976 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
35977 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
35978 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
35979 $as_echo_n "(cached) " >&6
35981 cat >conftest.$ac_ext <<_ACEOF
35984 cat confdefs.h >>conftest.$ac_ext
35985 cat >>conftest.$ac_ext <<_ACEOF
35986 /* end confdefs.h. */
35987 $ac_includes_default
35991 static struct stat ac_aggr;
35992 if (ac_aggr.st_blocks)
35998 rm -f conftest.$ac_objext
35999 if { (ac_try="$ac_compile"
36000 case "(($ac_try" in
36001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36002 *) ac_try_echo=$ac_try;;
36004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36005 $as_echo "$ac_try_echo") >&5
36006 (eval "$ac_compile") 2>conftest.er1
36008 grep -v '^ *+' conftest.er1 >conftest.err
36010 cat conftest.err >&5
36011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012 (exit $ac_status); } && {
36013 test -z "$ac_c_werror_flag" ||
36014 test ! -s conftest.err
36015 } && test -s conftest.$ac_objext; then
36016 ac_cv_member_struct_stat_st_blocks=yes
36018 $as_echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36021 cat >conftest.$ac_ext <<_ACEOF
36024 cat confdefs.h >>conftest.$ac_ext
36025 cat >>conftest.$ac_ext <<_ACEOF
36026 /* end confdefs.h. */
36027 $ac_includes_default
36031 static struct stat ac_aggr;
36032 if (sizeof ac_aggr.st_blocks)
36038 rm -f conftest.$ac_objext
36039 if { (ac_try="$ac_compile"
36040 case "(($ac_try" in
36041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36042 *) ac_try_echo=$ac_try;;
36044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36045 $as_echo "$ac_try_echo") >&5
36046 (eval "$ac_compile") 2>conftest.er1
36048 grep -v '^ *+' conftest.er1 >conftest.err
36050 cat conftest.err >&5
36051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052 (exit $ac_status); } && {
36053 test -z "$ac_c_werror_flag" ||
36054 test ! -s conftest.err
36055 } && test -s conftest.$ac_objext; then
36056 ac_cv_member_struct_stat_st_blocks=yes
36058 $as_echo "$as_me: failed program was:" >&5
36059 sed 's/^/| /' conftest.$ac_ext >&5
36061 ac_cv_member_struct_stat_st_blocks=no
36064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36069 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
36070 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
36071 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
36073 cat >>confdefs.h <<_ACEOF
36074 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
36078 cat >>confdefs.h <<\_ACEOF
36079 #define HAVE_ST_BLOCKS 1
36083 case " $LIBOBJS " in
36084 *" fileblocks.$ac_objext "* ) ;;
36085 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
36092 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
36093 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
36094 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
36095 $as_echo_n "(cached) " >&6
36097 cat >conftest.$ac_ext <<_ACEOF
36100 cat confdefs.h >>conftest.$ac_ext
36101 cat >>conftest.$ac_ext <<_ACEOF
36102 /* end confdefs.h. */
36103 $ac_includes_default
36107 static struct stat ac_aggr;
36108 if (ac_aggr.st_rdev)
36114 rm -f conftest.$ac_objext
36115 if { (ac_try="$ac_compile"
36116 case "(($ac_try" in
36117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36118 *) ac_try_echo=$ac_try;;
36120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36121 $as_echo "$ac_try_echo") >&5
36122 (eval "$ac_compile") 2>conftest.er1
36124 grep -v '^ *+' conftest.er1 >conftest.err
36126 cat conftest.err >&5
36127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128 (exit $ac_status); } && {
36129 test -z "$ac_c_werror_flag" ||
36130 test ! -s conftest.err
36131 } && test -s conftest.$ac_objext; then
36132 ac_cv_member_struct_stat_st_rdev=yes
36134 $as_echo "$as_me: failed program was:" >&5
36135 sed 's/^/| /' conftest.$ac_ext >&5
36137 cat >conftest.$ac_ext <<_ACEOF
36140 cat confdefs.h >>conftest.$ac_ext
36141 cat >>conftest.$ac_ext <<_ACEOF
36142 /* end confdefs.h. */
36143 $ac_includes_default
36147 static struct stat ac_aggr;
36148 if (sizeof ac_aggr.st_rdev)
36154 rm -f conftest.$ac_objext
36155 if { (ac_try="$ac_compile"
36156 case "(($ac_try" in
36157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36158 *) ac_try_echo=$ac_try;;
36160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36161 $as_echo "$ac_try_echo") >&5
36162 (eval "$ac_compile") 2>conftest.er1
36164 grep -v '^ *+' conftest.er1 >conftest.err
36166 cat conftest.err >&5
36167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); } && {
36169 test -z "$ac_c_werror_flag" ||
36170 test ! -s conftest.err
36171 } && test -s conftest.$ac_objext; then
36172 ac_cv_member_struct_stat_st_rdev=yes
36174 $as_echo "$as_me: failed program was:" >&5
36175 sed 's/^/| /' conftest.$ac_ext >&5
36177 ac_cv_member_struct_stat_st_rdev=no
36180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36185 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
36186 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
36187 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
36189 cat >>confdefs.h <<_ACEOF
36190 #define HAVE_STRUCT_STAT_ST_RDEV 1
36194 cat >>confdefs.h <<\_ACEOF
36195 #define HAVE_ST_RDEV 1
36201 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
36202 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
36203 if test "${ac_cv_struct_tm+set}" = set; then
36204 $as_echo_n "(cached) " >&6
36206 cat >conftest.$ac_ext <<_ACEOF
36209 cat confdefs.h >>conftest.$ac_ext
36210 cat >>conftest.$ac_ext <<_ACEOF
36211 /* end confdefs.h. */
36212 #include <sys/types.h>
36219 int *p = &tm.tm_sec;
36225 rm -f conftest.$ac_objext
36226 if { (ac_try="$ac_compile"
36227 case "(($ac_try" in
36228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36229 *) ac_try_echo=$ac_try;;
36231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36232 $as_echo "$ac_try_echo") >&5
36233 (eval "$ac_compile") 2>conftest.er1
36235 grep -v '^ *+' conftest.er1 >conftest.err
36237 cat conftest.err >&5
36238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); } && {
36240 test -z "$ac_c_werror_flag" ||
36241 test ! -s conftest.err
36242 } && test -s conftest.$ac_objext; then
36243 ac_cv_struct_tm=time.h
36245 $as_echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36248 ac_cv_struct_tm=sys/time.h
36251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36253 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
36254 $as_echo "$ac_cv_struct_tm" >&6; }
36255 if test $ac_cv_struct_tm = sys/time.h; then
36257 cat >>confdefs.h <<\_ACEOF
36258 #define TM_IN_SYS_TIME 1
36263 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
36264 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
36265 if test "${ac_cv_c_const+set}" = set; then
36266 $as_echo_n "(cached) " >&6
36268 cat >conftest.$ac_ext <<_ACEOF
36271 cat confdefs.h >>conftest.$ac_ext
36272 cat >>conftest.$ac_ext <<_ACEOF
36273 /* end confdefs.h. */
36278 /* FIXME: Include the comments suggested by Paul. */
36279 #ifndef __cplusplus
36280 /* Ultrix mips cc rejects this. */
36281 typedef int charset[2];
36283 /* SunOS 4.1.1 cc rejects this. */
36284 char const *const *pcpcc;
36286 /* NEC SVR4.0.2 mips cc rejects this. */
36287 struct point {int x, y;};
36288 static struct point const zero = {0,0};
36289 /* AIX XL C 1.02.0.0 rejects this.
36290 It does not let you subtract one const X* pointer from another in
36291 an arm of an if-expression whose if-part is not a constant
36293 const char *g = "string";
36294 pcpcc = &g + (g ? g-g : 0);
36295 /* HPUX 7.0 cc rejects these. */
36297 ppc = (char**) pcpcc;
36298 pcpcc = (char const *const *) ppc;
36299 { /* SCO 3.2v4 cc rejects this. */
36301 char const *s = 0 ? (char *) 0 : (char const *) 0;
36306 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
36307 int x[] = {25, 17};
36308 const int *foo = &x[0];
36311 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
36312 typedef const int *iptr;
36316 { /* AIX XL C 1.02.0.0 rejects this saying
36317 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
36318 struct s { int j; const int *ap[3]; };
36319 struct s *b; b->j = 5;
36321 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
36322 const int foo = 10;
36323 if (!foo) return 0;
36325 return !cs[0] && !zero.x;
36332 rm -f conftest.$ac_objext
36333 if { (ac_try="$ac_compile"
36334 case "(($ac_try" in
36335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36336 *) ac_try_echo=$ac_try;;
36338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36339 $as_echo "$ac_try_echo") >&5
36340 (eval "$ac_compile") 2>conftest.er1
36342 grep -v '^ *+' conftest.er1 >conftest.err
36344 cat conftest.err >&5
36345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346 (exit $ac_status); } && {
36347 test -z "$ac_c_werror_flag" ||
36348 test ! -s conftest.err
36349 } && test -s conftest.$ac_objext; then
36352 $as_echo "$as_me: failed program was:" >&5
36353 sed 's/^/| /' conftest.$ac_ext >&5
36358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36360 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
36361 $as_echo "$ac_cv_c_const" >&6; }
36362 if test $ac_cv_c_const = no; then
36364 cat >>confdefs.h <<\_ACEOF
36371 # The cast to long int works around a bug in the HP C Compiler
36372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36374 # This bug is HP SR number 8606223364.
36375 { $as_echo "$as_me:$LINENO: checking size of char" >&5
36376 $as_echo_n "checking size of char... " >&6; }
36377 if test "${ac_cv_sizeof_char+set}" = set; then
36378 $as_echo_n "(cached) " >&6
36380 if test "$cross_compiling" = yes; then
36381 # Depending upon the size, compute the lo and hi bounds.
36382 cat >conftest.$ac_ext <<_ACEOF
36385 cat confdefs.h >>conftest.$ac_ext
36386 cat >>conftest.$ac_ext <<_ACEOF
36387 /* end confdefs.h. */
36388 $ac_includes_default
36392 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
36399 rm -f conftest.$ac_objext
36400 if { (ac_try="$ac_compile"
36401 case "(($ac_try" in
36402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36403 *) ac_try_echo=$ac_try;;
36405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36406 $as_echo "$ac_try_echo") >&5
36407 (eval "$ac_compile") 2>conftest.er1
36409 grep -v '^ *+' conftest.er1 >conftest.err
36411 cat conftest.err >&5
36412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); } && {
36414 test -z "$ac_c_werror_flag" ||
36415 test ! -s conftest.err
36416 } && test -s conftest.$ac_objext; then
36419 cat >conftest.$ac_ext <<_ACEOF
36422 cat confdefs.h >>conftest.$ac_ext
36423 cat >>conftest.$ac_ext <<_ACEOF
36424 /* end confdefs.h. */
36425 $ac_includes_default
36429 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36436 rm -f conftest.$ac_objext
36437 if { (ac_try="$ac_compile"
36438 case "(($ac_try" in
36439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36440 *) ac_try_echo=$ac_try;;
36442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36443 $as_echo "$ac_try_echo") >&5
36444 (eval "$ac_compile") 2>conftest.er1
36446 grep -v '^ *+' conftest.er1 >conftest.err
36448 cat conftest.err >&5
36449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); } && {
36451 test -z "$ac_c_werror_flag" ||
36452 test ! -s conftest.err
36453 } && test -s conftest.$ac_objext; then
36454 ac_hi=$ac_mid; break
36456 $as_echo "$as_me: failed program was:" >&5
36457 sed 's/^/| /' conftest.$ac_ext >&5
36459 ac_lo=`expr $ac_mid + 1`
36460 if test $ac_lo -le $ac_mid; then
36464 ac_mid=`expr 2 '*' $ac_mid + 1`
36467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36470 $as_echo "$as_me: failed program was:" >&5
36471 sed 's/^/| /' conftest.$ac_ext >&5
36473 cat >conftest.$ac_ext <<_ACEOF
36476 cat confdefs.h >>conftest.$ac_ext
36477 cat >>conftest.$ac_ext <<_ACEOF
36478 /* end confdefs.h. */
36479 $ac_includes_default
36483 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
36490 rm -f conftest.$ac_objext
36491 if { (ac_try="$ac_compile"
36492 case "(($ac_try" in
36493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36494 *) ac_try_echo=$ac_try;;
36496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36497 $as_echo "$ac_try_echo") >&5
36498 (eval "$ac_compile") 2>conftest.er1
36500 grep -v '^ *+' conftest.er1 >conftest.err
36502 cat conftest.err >&5
36503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504 (exit $ac_status); } && {
36505 test -z "$ac_c_werror_flag" ||
36506 test ! -s conftest.err
36507 } && test -s conftest.$ac_objext; then
36510 cat >conftest.$ac_ext <<_ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h. */
36516 $ac_includes_default
36520 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
36527 rm -f conftest.$ac_objext
36528 if { (ac_try="$ac_compile"
36529 case "(($ac_try" in
36530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36531 *) ac_try_echo=$ac_try;;
36533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36534 $as_echo "$ac_try_echo") >&5
36535 (eval "$ac_compile") 2>conftest.er1
36537 grep -v '^ *+' conftest.er1 >conftest.err
36539 cat conftest.err >&5
36540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541 (exit $ac_status); } && {
36542 test -z "$ac_c_werror_flag" ||
36543 test ! -s conftest.err
36544 } && test -s conftest.$ac_objext; then
36545 ac_lo=$ac_mid; break
36547 $as_echo "$as_me: failed program was:" >&5
36548 sed 's/^/| /' conftest.$ac_ext >&5
36550 ac_hi=`expr '(' $ac_mid ')' - 1`
36551 if test $ac_mid -le $ac_hi; then
36555 ac_mid=`expr 2 '*' $ac_mid`
36558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36561 $as_echo "$as_me: failed program was:" >&5
36562 sed 's/^/| /' conftest.$ac_ext >&5
36567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36571 # Binary search between lo and hi bounds.
36572 while test "x$ac_lo" != "x$ac_hi"; do
36573 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36574 cat >conftest.$ac_ext <<_ACEOF
36577 cat confdefs.h >>conftest.$ac_ext
36578 cat >>conftest.$ac_ext <<_ACEOF
36579 /* end confdefs.h. */
36580 $ac_includes_default
36584 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36591 rm -f conftest.$ac_objext
36592 if { (ac_try="$ac_compile"
36593 case "(($ac_try" in
36594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36595 *) ac_try_echo=$ac_try;;
36597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36598 $as_echo "$ac_try_echo") >&5
36599 (eval "$ac_compile") 2>conftest.er1
36601 grep -v '^ *+' conftest.er1 >conftest.err
36603 cat conftest.err >&5
36604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); } && {
36606 test -z "$ac_c_werror_flag" ||
36607 test ! -s conftest.err
36608 } && test -s conftest.$ac_objext; then
36611 $as_echo "$as_me: failed program was:" >&5
36612 sed 's/^/| /' conftest.$ac_ext >&5
36614 ac_lo=`expr '(' $ac_mid ')' + 1`
36617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36620 ?*) ac_cv_sizeof_char=$ac_lo;;
36621 '') if test "$ac_cv_type_char" = yes; then
36622 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36624 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36625 See \`config.log' for more details." >&5
36626 $as_echo "$as_me: error: cannot compute sizeof (char)
36627 See \`config.log' for more details." >&2;}
36628 { (exit 77); exit 77; }; }; }
36630 ac_cv_sizeof_char=0
36634 cat >conftest.$ac_ext <<_ACEOF
36637 cat confdefs.h >>conftest.$ac_ext
36638 cat >>conftest.$ac_ext <<_ACEOF
36639 /* end confdefs.h. */
36640 $ac_includes_default
36641 static long int longval () { return (long int) (sizeof (char)); }
36642 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
36644 #include <stdlib.h>
36649 FILE *f = fopen ("conftest.val", "w");
36652 if (((long int) (sizeof (char))) < 0)
36654 long int i = longval ();
36655 if (i != ((long int) (sizeof (char))))
36657 fprintf (f, "%ld", i);
36661 unsigned long int i = ulongval ();
36662 if (i != ((long int) (sizeof (char))))
36664 fprintf (f, "%lu", i);
36666 /* Do not output a trailing newline, as this causes \r\n confusion
36667 on some platforms. */
36668 return ferror (f) || fclose (f) != 0;
36674 rm -f conftest$ac_exeext
36675 if { (ac_try="$ac_link"
36676 case "(($ac_try" in
36677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36678 *) ac_try_echo=$ac_try;;
36680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36681 $as_echo "$ac_try_echo") >&5
36682 (eval "$ac_link") 2>&5
36684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36686 { (case "(($ac_try" in
36687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36688 *) ac_try_echo=$ac_try;;
36690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36691 $as_echo "$ac_try_echo") >&5
36692 (eval "$ac_try") 2>&5
36694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695 (exit $ac_status); }; }; then
36696 ac_cv_sizeof_char=`cat conftest.val`
36698 $as_echo "$as_me: program exited with status $ac_status" >&5
36699 $as_echo "$as_me: failed program was:" >&5
36700 sed 's/^/| /' conftest.$ac_ext >&5
36702 ( exit $ac_status )
36703 if test "$ac_cv_type_char" = yes; then
36704 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36706 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36707 See \`config.log' for more details." >&5
36708 $as_echo "$as_me: error: cannot compute sizeof (char)
36709 See \`config.log' for more details." >&2;}
36710 { (exit 77); exit 77; }; }; }
36712 ac_cv_sizeof_char=0
36715 rm -rf conftest.dSYM
36716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36720 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
36721 $as_echo "$ac_cv_sizeof_char" >&6; }
36725 cat >>confdefs.h <<_ACEOF
36726 #define SIZEOF_CHAR $ac_cv_sizeof_char
36730 # The cast to long int works around a bug in the HP C Compiler
36731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36733 # This bug is HP SR number 8606223364.
36734 { $as_echo "$as_me:$LINENO: checking size of short int" >&5
36735 $as_echo_n "checking size of short int... " >&6; }
36736 if test "${ac_cv_sizeof_short_int+set}" = set; then
36737 $as_echo_n "(cached) " >&6
36739 if test "$cross_compiling" = yes; then
36740 # Depending upon the size, compute the lo and hi bounds.
36741 cat >conftest.$ac_ext <<_ACEOF
36744 cat confdefs.h >>conftest.$ac_ext
36745 cat >>conftest.$ac_ext <<_ACEOF
36746 /* end confdefs.h. */
36747 $ac_includes_default
36751 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)];
36758 rm -f conftest.$ac_objext
36759 if { (ac_try="$ac_compile"
36760 case "(($ac_try" in
36761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36762 *) ac_try_echo=$ac_try;;
36764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36765 $as_echo "$ac_try_echo") >&5
36766 (eval "$ac_compile") 2>conftest.er1
36768 grep -v '^ *+' conftest.er1 >conftest.err
36770 cat conftest.err >&5
36771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); } && {
36773 test -z "$ac_c_werror_flag" ||
36774 test ! -s conftest.err
36775 } && test -s conftest.$ac_objext; then
36778 cat >conftest.$ac_ext <<_ACEOF
36781 cat confdefs.h >>conftest.$ac_ext
36782 cat >>conftest.$ac_ext <<_ACEOF
36783 /* end confdefs.h. */
36784 $ac_includes_default
36788 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36795 rm -f conftest.$ac_objext
36796 if { (ac_try="$ac_compile"
36797 case "(($ac_try" in
36798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36799 *) ac_try_echo=$ac_try;;
36801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36802 $as_echo "$ac_try_echo") >&5
36803 (eval "$ac_compile") 2>conftest.er1
36805 grep -v '^ *+' conftest.er1 >conftest.err
36807 cat conftest.err >&5
36808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } && {
36810 test -z "$ac_c_werror_flag" ||
36811 test ! -s conftest.err
36812 } && test -s conftest.$ac_objext; then
36813 ac_hi=$ac_mid; break
36815 $as_echo "$as_me: failed program was:" >&5
36816 sed 's/^/| /' conftest.$ac_ext >&5
36818 ac_lo=`expr $ac_mid + 1`
36819 if test $ac_lo -le $ac_mid; then
36823 ac_mid=`expr 2 '*' $ac_mid + 1`
36826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36829 $as_echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36832 cat >conftest.$ac_ext <<_ACEOF
36835 cat confdefs.h >>conftest.$ac_ext
36836 cat >>conftest.$ac_ext <<_ACEOF
36837 /* end confdefs.h. */
36838 $ac_includes_default
36842 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)];
36849 rm -f conftest.$ac_objext
36850 if { (ac_try="$ac_compile"
36851 case "(($ac_try" in
36852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36853 *) ac_try_echo=$ac_try;;
36855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36856 $as_echo "$ac_try_echo") >&5
36857 (eval "$ac_compile") 2>conftest.er1
36859 grep -v '^ *+' conftest.er1 >conftest.err
36861 cat conftest.err >&5
36862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36863 (exit $ac_status); } && {
36864 test -z "$ac_c_werror_flag" ||
36865 test ! -s conftest.err
36866 } && test -s conftest.$ac_objext; then
36869 cat >conftest.$ac_ext <<_ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h. */
36875 $ac_includes_default
36879 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)];
36886 rm -f conftest.$ac_objext
36887 if { (ac_try="$ac_compile"
36888 case "(($ac_try" in
36889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36890 *) ac_try_echo=$ac_try;;
36892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36893 $as_echo "$ac_try_echo") >&5
36894 (eval "$ac_compile") 2>conftest.er1
36896 grep -v '^ *+' conftest.er1 >conftest.err
36898 cat conftest.err >&5
36899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900 (exit $ac_status); } && {
36901 test -z "$ac_c_werror_flag" ||
36902 test ! -s conftest.err
36903 } && test -s conftest.$ac_objext; then
36904 ac_lo=$ac_mid; break
36906 $as_echo "$as_me: failed program was:" >&5
36907 sed 's/^/| /' conftest.$ac_ext >&5
36909 ac_hi=`expr '(' $ac_mid ')' - 1`
36910 if test $ac_mid -le $ac_hi; then
36914 ac_mid=`expr 2 '*' $ac_mid`
36917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36920 $as_echo "$as_me: failed program was:" >&5
36921 sed 's/^/| /' conftest.$ac_ext >&5
36926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36930 # Binary search between lo and hi bounds.
36931 while test "x$ac_lo" != "x$ac_hi"; do
36932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36933 cat >conftest.$ac_ext <<_ACEOF
36936 cat confdefs.h >>conftest.$ac_ext
36937 cat >>conftest.$ac_ext <<_ACEOF
36938 /* end confdefs.h. */
36939 $ac_includes_default
36943 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36950 rm -f conftest.$ac_objext
36951 if { (ac_try="$ac_compile"
36952 case "(($ac_try" in
36953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36954 *) ac_try_echo=$ac_try;;
36956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36957 $as_echo "$ac_try_echo") >&5
36958 (eval "$ac_compile") 2>conftest.er1
36960 grep -v '^ *+' conftest.er1 >conftest.err
36962 cat conftest.err >&5
36963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964 (exit $ac_status); } && {
36965 test -z "$ac_c_werror_flag" ||
36966 test ! -s conftest.err
36967 } && test -s conftest.$ac_objext; then
36970 $as_echo "$as_me: failed program was:" >&5
36971 sed 's/^/| /' conftest.$ac_ext >&5
36973 ac_lo=`expr '(' $ac_mid ')' + 1`
36976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36979 ?*) ac_cv_sizeof_short_int=$ac_lo;;
36980 '') if test "$ac_cv_type_short_int" = yes; then
36981 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36983 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
36984 See \`config.log' for more details." >&5
36985 $as_echo "$as_me: error: cannot compute sizeof (short int)
36986 See \`config.log' for more details." >&2;}
36987 { (exit 77); exit 77; }; }; }
36989 ac_cv_sizeof_short_int=0
36993 cat >conftest.$ac_ext <<_ACEOF
36996 cat confdefs.h >>conftest.$ac_ext
36997 cat >>conftest.$ac_ext <<_ACEOF
36998 /* end confdefs.h. */
36999 $ac_includes_default
37000 static long int longval () { return (long int) (sizeof (short int)); }
37001 static unsigned long int ulongval () { return (long int) (sizeof (short int)); }
37003 #include <stdlib.h>
37008 FILE *f = fopen ("conftest.val", "w");
37011 if (((long int) (sizeof (short int))) < 0)
37013 long int i = longval ();
37014 if (i != ((long int) (sizeof (short int))))
37016 fprintf (f, "%ld", i);
37020 unsigned long int i = ulongval ();
37021 if (i != ((long int) (sizeof (short int))))
37023 fprintf (f, "%lu", i);
37025 /* Do not output a trailing newline, as this causes \r\n confusion
37026 on some platforms. */
37027 return ferror (f) || fclose (f) != 0;
37033 rm -f conftest$ac_exeext
37034 if { (ac_try="$ac_link"
37035 case "(($ac_try" in
37036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37037 *) ac_try_echo=$ac_try;;
37039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37040 $as_echo "$ac_try_echo") >&5
37041 (eval "$ac_link") 2>&5
37043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37045 { (case "(($ac_try" in
37046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37047 *) ac_try_echo=$ac_try;;
37049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37050 $as_echo "$ac_try_echo") >&5
37051 (eval "$ac_try") 2>&5
37053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; }; then
37055 ac_cv_sizeof_short_int=`cat conftest.val`
37057 $as_echo "$as_me: program exited with status $ac_status" >&5
37058 $as_echo "$as_me: failed program was:" >&5
37059 sed 's/^/| /' conftest.$ac_ext >&5
37061 ( exit $ac_status )
37062 if test "$ac_cv_type_short_int" = yes; then
37063 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37065 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37066 See \`config.log' for more details." >&5
37067 $as_echo "$as_me: error: cannot compute sizeof (short int)
37068 See \`config.log' for more details." >&2;}
37069 { (exit 77); exit 77; }; }; }
37071 ac_cv_sizeof_short_int=0
37074 rm -rf conftest.dSYM
37075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37079 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
37080 $as_echo "$ac_cv_sizeof_short_int" >&6; }
37084 cat >>confdefs.h <<_ACEOF
37085 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
37089 # The cast to long int works around a bug in the HP C Compiler
37090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37092 # This bug is HP SR number 8606223364.
37093 { $as_echo "$as_me:$LINENO: checking size of int" >&5
37094 $as_echo_n "checking size of int... " >&6; }
37095 if test "${ac_cv_sizeof_int+set}" = set; then
37096 $as_echo_n "(cached) " >&6
37098 if test "$cross_compiling" = yes; then
37099 # Depending upon the size, compute the lo and hi bounds.
37100 cat >conftest.$ac_ext <<_ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h. */
37106 $ac_includes_default
37110 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
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 cat >conftest.$ac_ext <<_ACEOF
37140 cat confdefs.h >>conftest.$ac_ext
37141 cat >>conftest.$ac_ext <<_ACEOF
37142 /* end confdefs.h. */
37143 $ac_includes_default
37147 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37154 rm -f conftest.$ac_objext
37155 if { (ac_try="$ac_compile"
37156 case "(($ac_try" in
37157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37158 *) ac_try_echo=$ac_try;;
37160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37161 $as_echo "$ac_try_echo") >&5
37162 (eval "$ac_compile") 2>conftest.er1
37164 grep -v '^ *+' conftest.er1 >conftest.err
37166 cat conftest.err >&5
37167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168 (exit $ac_status); } && {
37169 test -z "$ac_c_werror_flag" ||
37170 test ! -s conftest.err
37171 } && test -s conftest.$ac_objext; then
37172 ac_hi=$ac_mid; break
37174 $as_echo "$as_me: failed program was:" >&5
37175 sed 's/^/| /' conftest.$ac_ext >&5
37177 ac_lo=`expr $ac_mid + 1`
37178 if test $ac_lo -le $ac_mid; then
37182 ac_mid=`expr 2 '*' $ac_mid + 1`
37185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37188 $as_echo "$as_me: failed program was:" >&5
37189 sed 's/^/| /' conftest.$ac_ext >&5
37191 cat >conftest.$ac_ext <<_ACEOF
37194 cat confdefs.h >>conftest.$ac_ext
37195 cat >>conftest.$ac_ext <<_ACEOF
37196 /* end confdefs.h. */
37197 $ac_includes_default
37201 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
37208 rm -f conftest.$ac_objext
37209 if { (ac_try="$ac_compile"
37210 case "(($ac_try" in
37211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37212 *) ac_try_echo=$ac_try;;
37214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37215 $as_echo "$ac_try_echo") >&5
37216 (eval "$ac_compile") 2>conftest.er1
37218 grep -v '^ *+' conftest.er1 >conftest.err
37220 cat conftest.err >&5
37221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222 (exit $ac_status); } && {
37223 test -z "$ac_c_werror_flag" ||
37224 test ! -s conftest.err
37225 } && test -s conftest.$ac_objext; then
37228 cat >conftest.$ac_ext <<_ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h. */
37234 $ac_includes_default
37238 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
37245 rm -f conftest.$ac_objext
37246 if { (ac_try="$ac_compile"
37247 case "(($ac_try" in
37248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37249 *) ac_try_echo=$ac_try;;
37251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37252 $as_echo "$ac_try_echo") >&5
37253 (eval "$ac_compile") 2>conftest.er1
37255 grep -v '^ *+' conftest.er1 >conftest.err
37257 cat conftest.err >&5
37258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37259 (exit $ac_status); } && {
37260 test -z "$ac_c_werror_flag" ||
37261 test ! -s conftest.err
37262 } && test -s conftest.$ac_objext; then
37263 ac_lo=$ac_mid; break
37265 $as_echo "$as_me: failed program was:" >&5
37266 sed 's/^/| /' conftest.$ac_ext >&5
37268 ac_hi=`expr '(' $ac_mid ')' - 1`
37269 if test $ac_mid -le $ac_hi; then
37273 ac_mid=`expr 2 '*' $ac_mid`
37276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37279 $as_echo "$as_me: failed program was:" >&5
37280 sed 's/^/| /' conftest.$ac_ext >&5
37285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37289 # Binary search between lo and hi bounds.
37290 while test "x$ac_lo" != "x$ac_hi"; do
37291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37292 cat >conftest.$ac_ext <<_ACEOF
37295 cat confdefs.h >>conftest.$ac_ext
37296 cat >>conftest.$ac_ext <<_ACEOF
37297 /* end confdefs.h. */
37298 $ac_includes_default
37302 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37309 rm -f conftest.$ac_objext
37310 if { (ac_try="$ac_compile"
37311 case "(($ac_try" in
37312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37313 *) ac_try_echo=$ac_try;;
37315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37316 $as_echo "$ac_try_echo") >&5
37317 (eval "$ac_compile") 2>conftest.er1
37319 grep -v '^ *+' conftest.er1 >conftest.err
37321 cat conftest.err >&5
37322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323 (exit $ac_status); } && {
37324 test -z "$ac_c_werror_flag" ||
37325 test ! -s conftest.err
37326 } && test -s conftest.$ac_objext; then
37329 $as_echo "$as_me: failed program was:" >&5
37330 sed 's/^/| /' conftest.$ac_ext >&5
37332 ac_lo=`expr '(' $ac_mid ')' + 1`
37335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37338 ?*) ac_cv_sizeof_int=$ac_lo;;
37339 '') if test "$ac_cv_type_int" = yes; then
37340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37342 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37343 See \`config.log' for more details." >&5
37344 $as_echo "$as_me: error: cannot compute sizeof (int)
37345 See \`config.log' for more details." >&2;}
37346 { (exit 77); exit 77; }; }; }
37352 cat >conftest.$ac_ext <<_ACEOF
37355 cat confdefs.h >>conftest.$ac_ext
37356 cat >>conftest.$ac_ext <<_ACEOF
37357 /* end confdefs.h. */
37358 $ac_includes_default
37359 static long int longval () { return (long int) (sizeof (int)); }
37360 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
37362 #include <stdlib.h>
37367 FILE *f = fopen ("conftest.val", "w");
37370 if (((long int) (sizeof (int))) < 0)
37372 long int i = longval ();
37373 if (i != ((long int) (sizeof (int))))
37375 fprintf (f, "%ld", i);
37379 unsigned long int i = ulongval ();
37380 if (i != ((long int) (sizeof (int))))
37382 fprintf (f, "%lu", i);
37384 /* Do not output a trailing newline, as this causes \r\n confusion
37385 on some platforms. */
37386 return ferror (f) || fclose (f) != 0;
37392 rm -f conftest$ac_exeext
37393 if { (ac_try="$ac_link"
37394 case "(($ac_try" in
37395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37396 *) ac_try_echo=$ac_try;;
37398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37399 $as_echo "$ac_try_echo") >&5
37400 (eval "$ac_link") 2>&5
37402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37404 { (case "(($ac_try" in
37405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37406 *) ac_try_echo=$ac_try;;
37408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37409 $as_echo "$ac_try_echo") >&5
37410 (eval "$ac_try") 2>&5
37412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37413 (exit $ac_status); }; }; then
37414 ac_cv_sizeof_int=`cat conftest.val`
37416 $as_echo "$as_me: program exited with status $ac_status" >&5
37417 $as_echo "$as_me: failed program was:" >&5
37418 sed 's/^/| /' conftest.$ac_ext >&5
37420 ( exit $ac_status )
37421 if test "$ac_cv_type_int" = yes; then
37422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37424 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37425 See \`config.log' for more details." >&5
37426 $as_echo "$as_me: error: cannot compute sizeof (int)
37427 See \`config.log' for more details." >&2;}
37428 { (exit 77); exit 77; }; }; }
37433 rm -rf conftest.dSYM
37434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37438 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
37439 $as_echo "$ac_cv_sizeof_int" >&6; }
37443 cat >>confdefs.h <<_ACEOF
37444 #define SIZEOF_INT $ac_cv_sizeof_int
37448 # The cast to long int works around a bug in the HP C Compiler
37449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37451 # This bug is HP SR number 8606223364.
37452 { $as_echo "$as_me:$LINENO: checking size of long int" >&5
37453 $as_echo_n "checking size of long int... " >&6; }
37454 if test "${ac_cv_sizeof_long_int+set}" = set; then
37455 $as_echo_n "(cached) " >&6
37457 if test "$cross_compiling" = yes; then
37458 # Depending upon the size, compute the lo and hi bounds.
37459 cat >conftest.$ac_ext <<_ACEOF
37462 cat confdefs.h >>conftest.$ac_ext
37463 cat >>conftest.$ac_ext <<_ACEOF
37464 /* end confdefs.h. */
37465 $ac_includes_default
37469 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)];
37476 rm -f conftest.$ac_objext
37477 if { (ac_try="$ac_compile"
37478 case "(($ac_try" in
37479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37480 *) ac_try_echo=$ac_try;;
37482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37483 $as_echo "$ac_try_echo") >&5
37484 (eval "$ac_compile") 2>conftest.er1
37486 grep -v '^ *+' conftest.er1 >conftest.err
37488 cat conftest.err >&5
37489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490 (exit $ac_status); } && {
37491 test -z "$ac_c_werror_flag" ||
37492 test ! -s conftest.err
37493 } && test -s conftest.$ac_objext; then
37496 cat >conftest.$ac_ext <<_ACEOF
37499 cat confdefs.h >>conftest.$ac_ext
37500 cat >>conftest.$ac_ext <<_ACEOF
37501 /* end confdefs.h. */
37502 $ac_includes_default
37506 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37513 rm -f conftest.$ac_objext
37514 if { (ac_try="$ac_compile"
37515 case "(($ac_try" in
37516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37517 *) ac_try_echo=$ac_try;;
37519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37520 $as_echo "$ac_try_echo") >&5
37521 (eval "$ac_compile") 2>conftest.er1
37523 grep -v '^ *+' conftest.er1 >conftest.err
37525 cat conftest.err >&5
37526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527 (exit $ac_status); } && {
37528 test -z "$ac_c_werror_flag" ||
37529 test ! -s conftest.err
37530 } && test -s conftest.$ac_objext; then
37531 ac_hi=$ac_mid; break
37533 $as_echo "$as_me: failed program was:" >&5
37534 sed 's/^/| /' conftest.$ac_ext >&5
37536 ac_lo=`expr $ac_mid + 1`
37537 if test $ac_lo -le $ac_mid; then
37541 ac_mid=`expr 2 '*' $ac_mid + 1`
37544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37547 $as_echo "$as_me: failed program was:" >&5
37548 sed 's/^/| /' conftest.$ac_ext >&5
37550 cat >conftest.$ac_ext <<_ACEOF
37553 cat confdefs.h >>conftest.$ac_ext
37554 cat >>conftest.$ac_ext <<_ACEOF
37555 /* end confdefs.h. */
37556 $ac_includes_default
37560 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)];
37567 rm -f conftest.$ac_objext
37568 if { (ac_try="$ac_compile"
37569 case "(($ac_try" in
37570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37571 *) ac_try_echo=$ac_try;;
37573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37574 $as_echo "$ac_try_echo") >&5
37575 (eval "$ac_compile") 2>conftest.er1
37577 grep -v '^ *+' conftest.er1 >conftest.err
37579 cat conftest.err >&5
37580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37581 (exit $ac_status); } && {
37582 test -z "$ac_c_werror_flag" ||
37583 test ! -s conftest.err
37584 } && test -s conftest.$ac_objext; then
37587 cat >conftest.$ac_ext <<_ACEOF
37590 cat confdefs.h >>conftest.$ac_ext
37591 cat >>conftest.$ac_ext <<_ACEOF
37592 /* end confdefs.h. */
37593 $ac_includes_default
37597 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)];
37604 rm -f conftest.$ac_objext
37605 if { (ac_try="$ac_compile"
37606 case "(($ac_try" in
37607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37608 *) ac_try_echo=$ac_try;;
37610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37611 $as_echo "$ac_try_echo") >&5
37612 (eval "$ac_compile") 2>conftest.er1
37614 grep -v '^ *+' conftest.er1 >conftest.err
37616 cat conftest.err >&5
37617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); } && {
37619 test -z "$ac_c_werror_flag" ||
37620 test ! -s conftest.err
37621 } && test -s conftest.$ac_objext; then
37622 ac_lo=$ac_mid; break
37624 $as_echo "$as_me: failed program was:" >&5
37625 sed 's/^/| /' conftest.$ac_ext >&5
37627 ac_hi=`expr '(' $ac_mid ')' - 1`
37628 if test $ac_mid -le $ac_hi; then
37632 ac_mid=`expr 2 '*' $ac_mid`
37635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37638 $as_echo "$as_me: failed program was:" >&5
37639 sed 's/^/| /' conftest.$ac_ext >&5
37644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37648 # Binary search between lo and hi bounds.
37649 while test "x$ac_lo" != "x$ac_hi"; do
37650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37651 cat >conftest.$ac_ext <<_ACEOF
37654 cat confdefs.h >>conftest.$ac_ext
37655 cat >>conftest.$ac_ext <<_ACEOF
37656 /* end confdefs.h. */
37657 $ac_includes_default
37661 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37668 rm -f conftest.$ac_objext
37669 if { (ac_try="$ac_compile"
37670 case "(($ac_try" in
37671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37672 *) ac_try_echo=$ac_try;;
37674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37675 $as_echo "$ac_try_echo") >&5
37676 (eval "$ac_compile") 2>conftest.er1
37678 grep -v '^ *+' conftest.er1 >conftest.err
37680 cat conftest.err >&5
37681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682 (exit $ac_status); } && {
37683 test -z "$ac_c_werror_flag" ||
37684 test ! -s conftest.err
37685 } && test -s conftest.$ac_objext; then
37688 $as_echo "$as_me: failed program was:" >&5
37689 sed 's/^/| /' conftest.$ac_ext >&5
37691 ac_lo=`expr '(' $ac_mid ')' + 1`
37694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37697 ?*) ac_cv_sizeof_long_int=$ac_lo;;
37698 '') if test "$ac_cv_type_long_int" = yes; then
37699 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37701 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37702 See \`config.log' for more details." >&5
37703 $as_echo "$as_me: error: cannot compute sizeof (long int)
37704 See \`config.log' for more details." >&2;}
37705 { (exit 77); exit 77; }; }; }
37707 ac_cv_sizeof_long_int=0
37711 cat >conftest.$ac_ext <<_ACEOF
37714 cat confdefs.h >>conftest.$ac_ext
37715 cat >>conftest.$ac_ext <<_ACEOF
37716 /* end confdefs.h. */
37717 $ac_includes_default
37718 static long int longval () { return (long int) (sizeof (long int)); }
37719 static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
37721 #include <stdlib.h>
37726 FILE *f = fopen ("conftest.val", "w");
37729 if (((long int) (sizeof (long int))) < 0)
37731 long int i = longval ();
37732 if (i != ((long int) (sizeof (long int))))
37734 fprintf (f, "%ld", i);
37738 unsigned long int i = ulongval ();
37739 if (i != ((long int) (sizeof (long int))))
37741 fprintf (f, "%lu", i);
37743 /* Do not output a trailing newline, as this causes \r\n confusion
37744 on some platforms. */
37745 return ferror (f) || fclose (f) != 0;
37751 rm -f conftest$ac_exeext
37752 if { (ac_try="$ac_link"
37753 case "(($ac_try" in
37754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37755 *) ac_try_echo=$ac_try;;
37757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37758 $as_echo "$ac_try_echo") >&5
37759 (eval "$ac_link") 2>&5
37761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37763 { (case "(($ac_try" in
37764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37765 *) ac_try_echo=$ac_try;;
37767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37768 $as_echo "$ac_try_echo") >&5
37769 (eval "$ac_try") 2>&5
37771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772 (exit $ac_status); }; }; then
37773 ac_cv_sizeof_long_int=`cat conftest.val`
37775 $as_echo "$as_me: program exited with status $ac_status" >&5
37776 $as_echo "$as_me: failed program was:" >&5
37777 sed 's/^/| /' conftest.$ac_ext >&5
37779 ( exit $ac_status )
37780 if test "$ac_cv_type_long_int" = yes; then
37781 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37783 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37784 See \`config.log' for more details." >&5
37785 $as_echo "$as_me: error: cannot compute sizeof (long int)
37786 See \`config.log' for more details." >&2;}
37787 { (exit 77); exit 77; }; }; }
37789 ac_cv_sizeof_long_int=0
37792 rm -rf conftest.dSYM
37793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37797 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
37798 $as_echo "$ac_cv_sizeof_long_int" >&6; }
37802 cat >>confdefs.h <<_ACEOF
37803 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
37807 # The cast to long int works around a bug in the HP C Compiler
37808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37810 # This bug is HP SR number 8606223364.
37811 { $as_echo "$as_me:$LINENO: checking size of long long int" >&5
37812 $as_echo_n "checking size of long long int... " >&6; }
37813 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
37814 $as_echo_n "(cached) " >&6
37816 if test "$cross_compiling" = yes; then
37817 # Depending upon the size, compute the lo and hi bounds.
37818 cat >conftest.$ac_ext <<_ACEOF
37821 cat confdefs.h >>conftest.$ac_ext
37822 cat >>conftest.$ac_ext <<_ACEOF
37823 /* end confdefs.h. */
37824 $ac_includes_default
37828 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)];
37835 rm -f conftest.$ac_objext
37836 if { (ac_try="$ac_compile"
37837 case "(($ac_try" in
37838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37839 *) ac_try_echo=$ac_try;;
37841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37842 $as_echo "$ac_try_echo") >&5
37843 (eval "$ac_compile") 2>conftest.er1
37845 grep -v '^ *+' conftest.er1 >conftest.err
37847 cat conftest.err >&5
37848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849 (exit $ac_status); } && {
37850 test -z "$ac_c_werror_flag" ||
37851 test ! -s conftest.err
37852 } && test -s conftest.$ac_objext; then
37855 cat >conftest.$ac_ext <<_ACEOF
37858 cat confdefs.h >>conftest.$ac_ext
37859 cat >>conftest.$ac_ext <<_ACEOF
37860 /* end confdefs.h. */
37861 $ac_includes_default
37865 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
37872 rm -f conftest.$ac_objext
37873 if { (ac_try="$ac_compile"
37874 case "(($ac_try" in
37875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37876 *) ac_try_echo=$ac_try;;
37878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37879 $as_echo "$ac_try_echo") >&5
37880 (eval "$ac_compile") 2>conftest.er1
37882 grep -v '^ *+' conftest.er1 >conftest.err
37884 cat conftest.err >&5
37885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); } && {
37887 test -z "$ac_c_werror_flag" ||
37888 test ! -s conftest.err
37889 } && test -s conftest.$ac_objext; then
37890 ac_hi=$ac_mid; break
37892 $as_echo "$as_me: failed program was:" >&5
37893 sed 's/^/| /' conftest.$ac_ext >&5
37895 ac_lo=`expr $ac_mid + 1`
37896 if test $ac_lo -le $ac_mid; then
37900 ac_mid=`expr 2 '*' $ac_mid + 1`
37903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37906 $as_echo "$as_me: failed program was:" >&5
37907 sed 's/^/| /' conftest.$ac_ext >&5
37909 cat >conftest.$ac_ext <<_ACEOF
37912 cat confdefs.h >>conftest.$ac_ext
37913 cat >>conftest.$ac_ext <<_ACEOF
37914 /* end confdefs.h. */
37915 $ac_includes_default
37919 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)];
37926 rm -f conftest.$ac_objext
37927 if { (ac_try="$ac_compile"
37928 case "(($ac_try" in
37929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37930 *) ac_try_echo=$ac_try;;
37932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37933 $as_echo "$ac_try_echo") >&5
37934 (eval "$ac_compile") 2>conftest.er1
37936 grep -v '^ *+' conftest.er1 >conftest.err
37938 cat conftest.err >&5
37939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940 (exit $ac_status); } && {
37941 test -z "$ac_c_werror_flag" ||
37942 test ! -s conftest.err
37943 } && test -s conftest.$ac_objext; then
37946 cat >conftest.$ac_ext <<_ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h. */
37952 $ac_includes_default
37956 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)];
37963 rm -f conftest.$ac_objext
37964 if { (ac_try="$ac_compile"
37965 case "(($ac_try" in
37966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37967 *) ac_try_echo=$ac_try;;
37969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37970 $as_echo "$ac_try_echo") >&5
37971 (eval "$ac_compile") 2>conftest.er1
37973 grep -v '^ *+' conftest.er1 >conftest.err
37975 cat conftest.err >&5
37976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); } && {
37978 test -z "$ac_c_werror_flag" ||
37979 test ! -s conftest.err
37980 } && test -s conftest.$ac_objext; then
37981 ac_lo=$ac_mid; break
37983 $as_echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37986 ac_hi=`expr '(' $ac_mid ')' - 1`
37987 if test $ac_mid -le $ac_hi; then
37991 ac_mid=`expr 2 '*' $ac_mid`
37994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37997 $as_echo "$as_me: failed program was:" >&5
37998 sed 's/^/| /' conftest.$ac_ext >&5
38003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38007 # Binary search between lo and hi bounds.
38008 while test "x$ac_lo" != "x$ac_hi"; do
38009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38010 cat >conftest.$ac_ext <<_ACEOF
38013 cat confdefs.h >>conftest.$ac_ext
38014 cat >>conftest.$ac_ext <<_ACEOF
38015 /* end confdefs.h. */
38016 $ac_includes_default
38020 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
38027 rm -f conftest.$ac_objext
38028 if { (ac_try="$ac_compile"
38029 case "(($ac_try" in
38030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38031 *) ac_try_echo=$ac_try;;
38033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38034 $as_echo "$ac_try_echo") >&5
38035 (eval "$ac_compile") 2>conftest.er1
38037 grep -v '^ *+' conftest.er1 >conftest.err
38039 cat conftest.err >&5
38040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); } && {
38042 test -z "$ac_c_werror_flag" ||
38043 test ! -s conftest.err
38044 } && test -s conftest.$ac_objext; then
38047 $as_echo "$as_me: failed program was:" >&5
38048 sed 's/^/| /' conftest.$ac_ext >&5
38050 ac_lo=`expr '(' $ac_mid ')' + 1`
38053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38056 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
38057 '') if test "$ac_cv_type_long_long_int" = yes; then
38058 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38060 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38061 See \`config.log' for more details." >&5
38062 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38063 See \`config.log' for more details." >&2;}
38064 { (exit 77); exit 77; }; }; }
38066 ac_cv_sizeof_long_long_int=0
38070 cat >conftest.$ac_ext <<_ACEOF
38073 cat confdefs.h >>conftest.$ac_ext
38074 cat >>conftest.$ac_ext <<_ACEOF
38075 /* end confdefs.h. */
38076 $ac_includes_default
38077 static long int longval () { return (long int) (sizeof (long long int)); }
38078 static unsigned long int ulongval () { return (long int) (sizeof (long long int)); }
38080 #include <stdlib.h>
38085 FILE *f = fopen ("conftest.val", "w");
38088 if (((long int) (sizeof (long long int))) < 0)
38090 long int i = longval ();
38091 if (i != ((long int) (sizeof (long long int))))
38093 fprintf (f, "%ld", i);
38097 unsigned long int i = ulongval ();
38098 if (i != ((long int) (sizeof (long long int))))
38100 fprintf (f, "%lu", i);
38102 /* Do not output a trailing newline, as this causes \r\n confusion
38103 on some platforms. */
38104 return ferror (f) || fclose (f) != 0;
38110 rm -f conftest$ac_exeext
38111 if { (ac_try="$ac_link"
38112 case "(($ac_try" in
38113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38114 *) ac_try_echo=$ac_try;;
38116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38117 $as_echo "$ac_try_echo") >&5
38118 (eval "$ac_link") 2>&5
38120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38122 { (case "(($ac_try" in
38123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38124 *) ac_try_echo=$ac_try;;
38126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38127 $as_echo "$ac_try_echo") >&5
38128 (eval "$ac_try") 2>&5
38130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131 (exit $ac_status); }; }; then
38132 ac_cv_sizeof_long_long_int=`cat conftest.val`
38134 $as_echo "$as_me: program exited with status $ac_status" >&5
38135 $as_echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38138 ( exit $ac_status )
38139 if test "$ac_cv_type_long_long_int" = yes; then
38140 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38142 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38143 See \`config.log' for more details." >&5
38144 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38145 See \`config.log' for more details." >&2;}
38146 { (exit 77); exit 77; }; }; }
38148 ac_cv_sizeof_long_long_int=0
38151 rm -rf conftest.dSYM
38152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38156 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
38157 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
38161 cat >>confdefs.h <<_ACEOF
38162 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
38166 # The cast to long int works around a bug in the HP C Compiler
38167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38169 # This bug is HP SR number 8606223364.
38170 { $as_echo "$as_me:$LINENO: checking size of int *" >&5
38171 $as_echo_n "checking size of int *... " >&6; }
38172 if test "${ac_cv_sizeof_int_p+set}" = set; then
38173 $as_echo_n "(cached) " >&6
38175 if test "$cross_compiling" = yes; then
38176 # Depending upon the size, compute the lo and hi bounds.
38177 cat >conftest.$ac_ext <<_ACEOF
38180 cat confdefs.h >>conftest.$ac_ext
38181 cat >>conftest.$ac_ext <<_ACEOF
38182 /* end confdefs.h. */
38183 $ac_includes_default
38187 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= 0)];
38194 rm -f conftest.$ac_objext
38195 if { (ac_try="$ac_compile"
38196 case "(($ac_try" in
38197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38198 *) ac_try_echo=$ac_try;;
38200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38201 $as_echo "$ac_try_echo") >&5
38202 (eval "$ac_compile") 2>conftest.er1
38204 grep -v '^ *+' conftest.er1 >conftest.err
38206 cat conftest.err >&5
38207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208 (exit $ac_status); } && {
38209 test -z "$ac_c_werror_flag" ||
38210 test ! -s conftest.err
38211 } && test -s conftest.$ac_objext; then
38214 cat >conftest.$ac_ext <<_ACEOF
38217 cat confdefs.h >>conftest.$ac_ext
38218 cat >>conftest.$ac_ext <<_ACEOF
38219 /* end confdefs.h. */
38220 $ac_includes_default
38224 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38231 rm -f conftest.$ac_objext
38232 if { (ac_try="$ac_compile"
38233 case "(($ac_try" in
38234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235 *) ac_try_echo=$ac_try;;
38237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38238 $as_echo "$ac_try_echo") >&5
38239 (eval "$ac_compile") 2>conftest.er1
38241 grep -v '^ *+' conftest.er1 >conftest.err
38243 cat conftest.err >&5
38244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245 (exit $ac_status); } && {
38246 test -z "$ac_c_werror_flag" ||
38247 test ! -s conftest.err
38248 } && test -s conftest.$ac_objext; then
38249 ac_hi=$ac_mid; break
38251 $as_echo "$as_me: failed program was:" >&5
38252 sed 's/^/| /' conftest.$ac_ext >&5
38254 ac_lo=`expr $ac_mid + 1`
38255 if test $ac_lo -le $ac_mid; then
38259 ac_mid=`expr 2 '*' $ac_mid + 1`
38262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38265 $as_echo "$as_me: failed program was:" >&5
38266 sed 's/^/| /' conftest.$ac_ext >&5
38268 cat >conftest.$ac_ext <<_ACEOF
38271 cat confdefs.h >>conftest.$ac_ext
38272 cat >>conftest.$ac_ext <<_ACEOF
38273 /* end confdefs.h. */
38274 $ac_includes_default
38278 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) < 0)];
38285 rm -f conftest.$ac_objext
38286 if { (ac_try="$ac_compile"
38287 case "(($ac_try" in
38288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38289 *) ac_try_echo=$ac_try;;
38291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38292 $as_echo "$ac_try_echo") >&5
38293 (eval "$ac_compile") 2>conftest.er1
38295 grep -v '^ *+' conftest.er1 >conftest.err
38297 cat conftest.err >&5
38298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); } && {
38300 test -z "$ac_c_werror_flag" ||
38301 test ! -s conftest.err
38302 } && test -s conftest.$ac_objext; then
38305 cat >conftest.$ac_ext <<_ACEOF
38308 cat confdefs.h >>conftest.$ac_ext
38309 cat >>conftest.$ac_ext <<_ACEOF
38310 /* end confdefs.h. */
38311 $ac_includes_default
38315 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= $ac_mid)];
38322 rm -f conftest.$ac_objext
38323 if { (ac_try="$ac_compile"
38324 case "(($ac_try" in
38325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38326 *) ac_try_echo=$ac_try;;
38328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38329 $as_echo "$ac_try_echo") >&5
38330 (eval "$ac_compile") 2>conftest.er1
38332 grep -v '^ *+' conftest.er1 >conftest.err
38334 cat conftest.err >&5
38335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336 (exit $ac_status); } && {
38337 test -z "$ac_c_werror_flag" ||
38338 test ! -s conftest.err
38339 } && test -s conftest.$ac_objext; then
38340 ac_lo=$ac_mid; break
38342 $as_echo "$as_me: failed program was:" >&5
38343 sed 's/^/| /' conftest.$ac_ext >&5
38345 ac_hi=`expr '(' $ac_mid ')' - 1`
38346 if test $ac_mid -le $ac_hi; then
38350 ac_mid=`expr 2 '*' $ac_mid`
38353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38356 $as_echo "$as_me: failed program was:" >&5
38357 sed 's/^/| /' conftest.$ac_ext >&5
38362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38366 # Binary search between lo and hi bounds.
38367 while test "x$ac_lo" != "x$ac_hi"; do
38368 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38369 cat >conftest.$ac_ext <<_ACEOF
38372 cat confdefs.h >>conftest.$ac_ext
38373 cat >>conftest.$ac_ext <<_ACEOF
38374 /* end confdefs.h. */
38375 $ac_includes_default
38379 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38386 rm -f conftest.$ac_objext
38387 if { (ac_try="$ac_compile"
38388 case "(($ac_try" in
38389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38390 *) ac_try_echo=$ac_try;;
38392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38393 $as_echo "$ac_try_echo") >&5
38394 (eval "$ac_compile") 2>conftest.er1
38396 grep -v '^ *+' conftest.er1 >conftest.err
38398 cat conftest.err >&5
38399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400 (exit $ac_status); } && {
38401 test -z "$ac_c_werror_flag" ||
38402 test ! -s conftest.err
38403 } && test -s conftest.$ac_objext; then
38406 $as_echo "$as_me: failed program was:" >&5
38407 sed 's/^/| /' conftest.$ac_ext >&5
38409 ac_lo=`expr '(' $ac_mid ')' + 1`
38412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38415 ?*) ac_cv_sizeof_int_p=$ac_lo;;
38416 '') if test "$ac_cv_type_int_p" = yes; then
38417 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38419 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38420 See \`config.log' for more details." >&5
38421 $as_echo "$as_me: error: cannot compute sizeof (int *)
38422 See \`config.log' for more details." >&2;}
38423 { (exit 77); exit 77; }; }; }
38425 ac_cv_sizeof_int_p=0
38429 cat >conftest.$ac_ext <<_ACEOF
38432 cat confdefs.h >>conftest.$ac_ext
38433 cat >>conftest.$ac_ext <<_ACEOF
38434 /* end confdefs.h. */
38435 $ac_includes_default
38436 static long int longval () { return (long int) (sizeof (int *)); }
38437 static unsigned long int ulongval () { return (long int) (sizeof (int *)); }
38439 #include <stdlib.h>
38444 FILE *f = fopen ("conftest.val", "w");
38447 if (((long int) (sizeof (int *))) < 0)
38449 long int i = longval ();
38450 if (i != ((long int) (sizeof (int *))))
38452 fprintf (f, "%ld", i);
38456 unsigned long int i = ulongval ();
38457 if (i != ((long int) (sizeof (int *))))
38459 fprintf (f, "%lu", i);
38461 /* Do not output a trailing newline, as this causes \r\n confusion
38462 on some platforms. */
38463 return ferror (f) || fclose (f) != 0;
38469 rm -f conftest$ac_exeext
38470 if { (ac_try="$ac_link"
38471 case "(($ac_try" in
38472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38473 *) ac_try_echo=$ac_try;;
38475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38476 $as_echo "$ac_try_echo") >&5
38477 (eval "$ac_link") 2>&5
38479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38481 { (case "(($ac_try" in
38482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38483 *) ac_try_echo=$ac_try;;
38485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38486 $as_echo "$ac_try_echo") >&5
38487 (eval "$ac_try") 2>&5
38489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38490 (exit $ac_status); }; }; then
38491 ac_cv_sizeof_int_p=`cat conftest.val`
38493 $as_echo "$as_me: program exited with status $ac_status" >&5
38494 $as_echo "$as_me: failed program was:" >&5
38495 sed 's/^/| /' conftest.$ac_ext >&5
38497 ( exit $ac_status )
38498 if test "$ac_cv_type_int_p" = yes; then
38499 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38501 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38502 See \`config.log' for more details." >&5
38503 $as_echo "$as_me: error: cannot compute sizeof (int *)
38504 See \`config.log' for more details." >&2;}
38505 { (exit 77); exit 77; }; }; }
38507 ac_cv_sizeof_int_p=0
38510 rm -rf conftest.dSYM
38511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38515 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
38516 $as_echo "$ac_cv_sizeof_int_p" >&6; }
38520 cat >>confdefs.h <<_ACEOF
38521 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
38526 { $as_echo "$as_me:$LINENO: checking for u_int type" >&5
38527 $as_echo_n "checking for u_int type... " >&6; }
38528 if test "${ac_cv_have_u_int+set}" = set; then
38529 $as_echo_n "(cached) " >&6
38532 cat >conftest.$ac_ext <<_ACEOF
38535 cat confdefs.h >>conftest.$ac_ext
38536 cat >>conftest.$ac_ext <<_ACEOF
38537 /* end confdefs.h. */
38539 #include <sys/types.h>
38551 rm -f conftest.$ac_objext
38552 if { (ac_try="$ac_compile"
38553 case "(($ac_try" in
38554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38555 *) ac_try_echo=$ac_try;;
38557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38558 $as_echo "$ac_try_echo") >&5
38559 (eval "$ac_compile") 2>conftest.er1
38561 grep -v '^ *+' conftest.er1 >conftest.err
38563 cat conftest.err >&5
38564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565 (exit $ac_status); } && {
38566 test -z "$ac_c_werror_flag" ||
38567 test ! -s conftest.err
38568 } && test -s conftest.$ac_objext; then
38570 ac_cv_have_u_int="yes"
38573 $as_echo "$as_me: failed program was:" >&5
38574 sed 's/^/| /' conftest.$ac_ext >&5
38577 ac_cv_have_u_int="no"
38582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38586 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
38587 $as_echo "$ac_cv_have_u_int" >&6; }
38588 if test "x$ac_cv_have_u_int" = "xyes" ; then
38589 cat >>confdefs.h <<\_ACEOF
38590 #define HAVE_U_INT 1
38596 { $as_echo "$as_me:$LINENO: checking for intmax_t type" >&5
38597 $as_echo_n "checking for intmax_t type... " >&6; }
38598 if test "${ac_cv_have_intmax_t+set}" = set; then
38599 $as_echo_n "(cached) " >&6
38602 cat >conftest.$ac_ext <<_ACEOF
38605 cat confdefs.h >>conftest.$ac_ext
38606 cat >>conftest.$ac_ext <<_ACEOF
38607 /* end confdefs.h. */
38609 #include <sys/types.h>
38621 rm -f conftest.$ac_objext
38622 if { (ac_try="$ac_compile"
38623 case "(($ac_try" in
38624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38625 *) ac_try_echo=$ac_try;;
38627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38628 $as_echo "$ac_try_echo") >&5
38629 (eval "$ac_compile") 2>conftest.er1
38631 grep -v '^ *+' conftest.er1 >conftest.err
38633 cat conftest.err >&5
38634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38635 (exit $ac_status); } && {
38636 test -z "$ac_c_werror_flag" ||
38637 test ! -s conftest.err
38638 } && test -s conftest.$ac_objext; then
38640 ac_cv_have_intmax_t="yes"
38643 $as_echo "$as_me: failed program was:" >&5
38644 sed 's/^/| /' conftest.$ac_ext >&5
38647 cat >conftest.$ac_ext <<_ACEOF
38650 cat confdefs.h >>conftest.$ac_ext
38651 cat >>conftest.$ac_ext <<_ACEOF
38652 /* end confdefs.h. */
38654 #include <stdint.h>
38666 rm -f conftest.$ac_objext
38667 if { (ac_try="$ac_compile"
38668 case "(($ac_try" in
38669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38670 *) ac_try_echo=$ac_try;;
38672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38673 $as_echo "$ac_try_echo") >&5
38674 (eval "$ac_compile") 2>conftest.er1
38676 grep -v '^ *+' conftest.er1 >conftest.err
38678 cat conftest.err >&5
38679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38680 (exit $ac_status); } && {
38681 test -z "$ac_c_werror_flag" ||
38682 test ! -s conftest.err
38683 } && test -s conftest.$ac_objext; then
38685 ac_cv_have_intmax_t="yes"
38688 $as_echo "$as_me: failed program was:" >&5
38689 sed 's/^/| /' conftest.$ac_ext >&5
38692 ac_cv_have_intmax_t="no"
38697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38706 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
38707 $as_echo "$ac_cv_have_intmax_t" >&6; }
38708 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
38709 cat >>confdefs.h <<\_ACEOF
38710 #define HAVE_INTMAX_T 1
38716 { $as_echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
38717 $as_echo_n "checking for u_intmax_t type... " >&6; }
38718 if test "${ac_cv_have_u_intmax_t+set}" = set; then
38719 $as_echo_n "(cached) " >&6
38722 cat >conftest.$ac_ext <<_ACEOF
38725 cat confdefs.h >>conftest.$ac_ext
38726 cat >>conftest.$ac_ext <<_ACEOF
38727 /* end confdefs.h. */
38729 #include <sys/types.h>
38735 u_intmax_t a; a = 1;
38741 rm -f conftest.$ac_objext
38742 if { (ac_try="$ac_compile"
38743 case "(($ac_try" in
38744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38745 *) ac_try_echo=$ac_try;;
38747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38748 $as_echo "$ac_try_echo") >&5
38749 (eval "$ac_compile") 2>conftest.er1
38751 grep -v '^ *+' conftest.er1 >conftest.err
38753 cat conftest.err >&5
38754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755 (exit $ac_status); } && {
38756 test -z "$ac_c_werror_flag" ||
38757 test ! -s conftest.err
38758 } && test -s conftest.$ac_objext; then
38760 ac_cv_have_u_intmax_t="yes"
38763 $as_echo "$as_me: failed program was:" >&5
38764 sed 's/^/| /' conftest.$ac_ext >&5
38767 cat >conftest.$ac_ext <<_ACEOF
38770 cat confdefs.h >>conftest.$ac_ext
38771 cat >>conftest.$ac_ext <<_ACEOF
38772 /* end confdefs.h. */
38774 #include <stdint.h>
38780 u_intmax_t a; a = 1;
38786 rm -f conftest.$ac_objext
38787 if { (ac_try="$ac_compile"
38788 case "(($ac_try" in
38789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38790 *) ac_try_echo=$ac_try;;
38792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38793 $as_echo "$ac_try_echo") >&5
38794 (eval "$ac_compile") 2>conftest.er1
38796 grep -v '^ *+' conftest.er1 >conftest.err
38798 cat conftest.err >&5
38799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800 (exit $ac_status); } && {
38801 test -z "$ac_c_werror_flag" ||
38802 test ! -s conftest.err
38803 } && test -s conftest.$ac_objext; then
38805 ac_cv_have_u_intmax_t="yes"
38808 $as_echo "$as_me: failed program was:" >&5
38809 sed 's/^/| /' conftest.$ac_ext >&5
38812 ac_cv_have_u_intmax_t="no"
38817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38826 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
38827 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
38828 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
38829 cat >>confdefs.h <<\_ACEOF
38830 #define HAVE_U_INTMAX_T 1
38836 { $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5
38837 $as_echo_n "checking for intXX_t types... " >&6; }
38838 if test "${ac_cv_have_intxx_t+set}" = set; then
38839 $as_echo_n "(cached) " >&6
38842 cat >conftest.$ac_ext <<_ACEOF
38845 cat confdefs.h >>conftest.$ac_ext
38846 cat >>conftest.$ac_ext <<_ACEOF
38847 /* end confdefs.h. */
38849 #include <sys/types.h>
38855 int8_t a; int16_t b; int32_t c; a = b = c = 1;
38861 rm -f conftest.$ac_objext
38862 if { (ac_try="$ac_compile"
38863 case "(($ac_try" in
38864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38865 *) ac_try_echo=$ac_try;;
38867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38868 $as_echo "$ac_try_echo") >&5
38869 (eval "$ac_compile") 2>conftest.er1
38871 grep -v '^ *+' conftest.er1 >conftest.err
38873 cat conftest.err >&5
38874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38875 (exit $ac_status); } && {
38876 test -z "$ac_c_werror_flag" ||
38877 test ! -s conftest.err
38878 } && test -s conftest.$ac_objext; then
38880 ac_cv_have_intxx_t="yes"
38883 $as_echo "$as_me: failed program was:" >&5
38884 sed 's/^/| /' conftest.$ac_ext >&5
38887 ac_cv_have_intxx_t="no"
38892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38896 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
38897 $as_echo "$ac_cv_have_intxx_t" >&6; }
38898 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
38899 cat >>confdefs.h <<\_ACEOF
38900 #define HAVE_INTXX_T 1
38906 { $as_echo "$as_me:$LINENO: checking for int64_t type" >&5
38907 $as_echo_n "checking for int64_t type... " >&6; }
38908 if test "${ac_cv_have_int64_t+set}" = set; then
38909 $as_echo_n "(cached) " >&6
38912 cat >conftest.$ac_ext <<_ACEOF
38915 cat confdefs.h >>conftest.$ac_ext
38916 cat >>conftest.$ac_ext <<_ACEOF
38917 /* end confdefs.h. */
38919 #include <sys/types.h>
38931 rm -f conftest.$ac_objext
38932 if { (ac_try="$ac_compile"
38933 case "(($ac_try" in
38934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38935 *) ac_try_echo=$ac_try;;
38937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38938 $as_echo "$ac_try_echo") >&5
38939 (eval "$ac_compile") 2>conftest.er1
38941 grep -v '^ *+' conftest.er1 >conftest.err
38943 cat conftest.err >&5
38944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945 (exit $ac_status); } && {
38946 test -z "$ac_c_werror_flag" ||
38947 test ! -s conftest.err
38948 } && test -s conftest.$ac_objext; then
38950 ac_cv_have_int64_t="yes"
38953 $as_echo "$as_me: failed program was:" >&5
38954 sed 's/^/| /' conftest.$ac_ext >&5
38957 ac_cv_have_int64_t="no"
38962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38966 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
38967 $as_echo "$ac_cv_have_int64_t" >&6; }
38968 if test "x$ac_cv_have_int64_t" = "xyes" ; then
38969 cat >>confdefs.h <<\_ACEOF
38970 #define HAVE_INT64_T 1
38976 { $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
38977 $as_echo_n "checking for u_intXX_t types... " >&6; }
38978 if test "${ac_cv_have_u_intxx_t+set}" = set; then
38979 $as_echo_n "(cached) " >&6
38982 cat >conftest.$ac_ext <<_ACEOF
38985 cat confdefs.h >>conftest.$ac_ext
38986 cat >>conftest.$ac_ext <<_ACEOF
38987 /* end confdefs.h. */
38989 #include <sys/types.h>
38995 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
39001 rm -f conftest.$ac_objext
39002 if { (ac_try="$ac_compile"
39003 case "(($ac_try" in
39004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39005 *) ac_try_echo=$ac_try;;
39007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39008 $as_echo "$ac_try_echo") >&5
39009 (eval "$ac_compile") 2>conftest.er1
39011 grep -v '^ *+' conftest.er1 >conftest.err
39013 cat conftest.err >&5
39014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); } && {
39016 test -z "$ac_c_werror_flag" ||
39017 test ! -s conftest.err
39018 } && test -s conftest.$ac_objext; then
39020 ac_cv_have_u_intxx_t="yes"
39023 $as_echo "$as_me: failed program was:" >&5
39024 sed 's/^/| /' conftest.$ac_ext >&5
39027 ac_cv_have_u_intxx_t="no"
39032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39036 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
39037 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
39038 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
39039 cat >>confdefs.h <<\_ACEOF
39040 #define HAVE_U_INTXX_T 1
39046 { $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5
39047 $as_echo_n "checking for u_int64_t types... " >&6; }
39048 if test "${ac_cv_have_u_int64_t+set}" = set; then
39049 $as_echo_n "(cached) " >&6
39052 cat >conftest.$ac_ext <<_ACEOF
39055 cat confdefs.h >>conftest.$ac_ext
39056 cat >>conftest.$ac_ext <<_ACEOF
39057 /* end confdefs.h. */
39059 #include <sys/types.h>
39065 u_int64_t a; a = 1;
39071 rm -f conftest.$ac_objext
39072 if { (ac_try="$ac_compile"
39073 case "(($ac_try" in
39074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39075 *) ac_try_echo=$ac_try;;
39077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39078 $as_echo "$ac_try_echo") >&5
39079 (eval "$ac_compile") 2>conftest.er1
39081 grep -v '^ *+' conftest.er1 >conftest.err
39083 cat conftest.err >&5
39084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39085 (exit $ac_status); } && {
39086 test -z "$ac_c_werror_flag" ||
39087 test ! -s conftest.err
39088 } && test -s conftest.$ac_objext; then
39090 ac_cv_have_u_int64_t="yes"
39093 $as_echo "$as_me: failed program was:" >&5
39094 sed 's/^/| /' conftest.$ac_ext >&5
39097 ac_cv_have_u_int64_t="no"
39102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39106 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
39107 $as_echo "$ac_cv_have_u_int64_t" >&6; }
39108 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
39109 cat >>confdefs.h <<\_ACEOF
39110 #define HAVE_U_INT64_T 1
39116 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
39117 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39119 { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
39120 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
39121 cat >conftest.$ac_ext <<_ACEOF
39124 cat confdefs.h >>conftest.$ac_ext
39125 cat >>conftest.$ac_ext <<_ACEOF
39126 /* end confdefs.h. */
39128 #include <sys/bitypes.h>
39134 int8_t a; int16_t b; int32_t c;
39135 u_int8_t e; u_int16_t f; u_int32_t g;
39136 a = b = c = e = f = g = 1;
39142 rm -f conftest.$ac_objext
39143 if { (ac_try="$ac_compile"
39144 case "(($ac_try" in
39145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39146 *) ac_try_echo=$ac_try;;
39148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39149 $as_echo "$ac_try_echo") >&5
39150 (eval "$ac_compile") 2>conftest.er1
39152 grep -v '^ *+' conftest.er1 >conftest.err
39154 cat conftest.err >&5
39155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 (exit $ac_status); } && {
39157 test -z "$ac_c_werror_flag" ||
39158 test ! -s conftest.err
39159 } && test -s conftest.$ac_objext; then
39161 cat >>confdefs.h <<\_ACEOF
39162 #define HAVE_U_INTXX_T 1
39165 cat >>confdefs.h <<\_ACEOF
39166 #define HAVE_INTXX_T 1
39169 cat >>confdefs.h <<\_ACEOF
39170 #define HAVE_SYS_BITYPES_H 1
39173 { $as_echo "$as_me:$LINENO: result: yes" >&5
39174 $as_echo "yes" >&6; }
39177 $as_echo "$as_me: failed program was:" >&5
39178 sed 's/^/| /' conftest.$ac_ext >&5
39181 { $as_echo "$as_me:$LINENO: result: no" >&5
39182 $as_echo "no" >&6; }
39187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39190 if test -z "$have_u_intxx_t" ; then
39191 { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5
39192 $as_echo_n "checking for uintXX_t types... " >&6; }
39193 if test "${ac_cv_have_uintxx_t+set}" = set; then
39194 $as_echo_n "(cached) " >&6
39197 cat >conftest.$ac_ext <<_ACEOF
39200 cat confdefs.h >>conftest.$ac_ext
39201 cat >>conftest.$ac_ext <<_ACEOF
39202 /* end confdefs.h. */
39204 #include <sys/types.h>
39210 uint8_t a; uint16_t b;
39211 uint32_t c; a = b = c = 1;
39217 rm -f conftest.$ac_objext
39218 if { (ac_try="$ac_compile"
39219 case "(($ac_try" in
39220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39221 *) ac_try_echo=$ac_try;;
39223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39224 $as_echo "$ac_try_echo") >&5
39225 (eval "$ac_compile") 2>conftest.er1
39227 grep -v '^ *+' conftest.er1 >conftest.err
39229 cat conftest.err >&5
39230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231 (exit $ac_status); } && {
39232 test -z "$ac_c_werror_flag" ||
39233 test ! -s conftest.err
39234 } && test -s conftest.$ac_objext; then
39236 ac_cv_have_uintxx_t="yes"
39239 $as_echo "$as_me: failed program was:" >&5
39240 sed 's/^/| /' conftest.$ac_ext >&5
39243 ac_cv_have_uintxx_t="no"
39248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39252 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
39253 $as_echo "$ac_cv_have_uintxx_t" >&6; }
39254 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
39255 cat >>confdefs.h <<\_ACEOF
39256 #define HAVE_UINTXX_T 1
39262 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
39263 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39265 { $as_echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
39266 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
39267 cat >conftest.$ac_ext <<_ACEOF
39270 cat confdefs.h >>conftest.$ac_ext
39271 cat >>conftest.$ac_ext <<_ACEOF
39272 /* end confdefs.h. */
39274 #include <sys/bitypes.h>
39280 int64_t a; u_int64_t b;
39287 rm -f conftest.$ac_objext
39288 if { (ac_try="$ac_compile"
39289 case "(($ac_try" in
39290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39291 *) ac_try_echo=$ac_try;;
39293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39294 $as_echo "$ac_try_echo") >&5
39295 (eval "$ac_compile") 2>conftest.er1
39297 grep -v '^ *+' conftest.er1 >conftest.err
39299 cat conftest.err >&5
39300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39301 (exit $ac_status); } && {
39302 test -z "$ac_c_werror_flag" ||
39303 test ! -s conftest.err
39304 } && test -s conftest.$ac_objext; then
39306 cat >>confdefs.h <<\_ACEOF
39307 #define HAVE_U_INT64_T 1
39310 cat >>confdefs.h <<\_ACEOF
39311 #define HAVE_INT64_T 1
39314 { $as_echo "$as_me:$LINENO: result: yes" >&5
39315 $as_echo "yes" >&6; }
39318 $as_echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.$ac_ext >&5
39322 { $as_echo "$as_me:$LINENO: result: no" >&5
39323 $as_echo "no" >&6; }
39328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39331 if (test -z "$have_uintxx_t" && \
39332 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39334 { $as_echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
39335 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
39336 cat >conftest.$ac_ext <<_ACEOF
39339 cat confdefs.h >>conftest.$ac_ext
39340 cat >>conftest.$ac_ext <<_ACEOF
39341 /* end confdefs.h. */
39343 #include <sys/bitypes.h>
39349 uint8_t a; uint16_t b;
39350 uint32_t c; a = b = c = 1;
39356 rm -f conftest.$ac_objext
39357 if { (ac_try="$ac_compile"
39358 case "(($ac_try" in
39359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39360 *) ac_try_echo=$ac_try;;
39362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39363 $as_echo "$ac_try_echo") >&5
39364 (eval "$ac_compile") 2>conftest.er1
39366 grep -v '^ *+' conftest.er1 >conftest.err
39368 cat conftest.err >&5
39369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39370 (exit $ac_status); } && {
39371 test -z "$ac_c_werror_flag" ||
39372 test ! -s conftest.err
39373 } && test -s conftest.$ac_objext; then
39375 cat >>confdefs.h <<\_ACEOF
39376 #define HAVE_UINTXX_T 1
39379 { $as_echo "$as_me:$LINENO: result: yes" >&5
39380 $as_echo "yes" >&6; }
39383 $as_echo "$as_me: failed program was:" >&5
39384 sed 's/^/| /' conftest.$ac_ext >&5
39387 { $as_echo "$as_me:$LINENO: result: no" >&5
39388 $as_echo "no" >&6; }
39393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39427 $as_echo_n "checking for $ac_func... " >&6; }
39428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39429 $as_echo_n "(cached) " >&6
39431 cat >conftest.$ac_ext <<_ACEOF
39434 cat confdefs.h >>conftest.$ac_ext
39435 cat >>conftest.$ac_ext <<_ACEOF
39436 /* end confdefs.h. */
39437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39439 #define $ac_func innocuous_$ac_func
39441 /* System header to define __stub macros and hopefully few prototypes,
39442 which can conflict with char $ac_func (); below.
39443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39444 <limits.h> exists even on freestanding compilers. */
39447 # include <limits.h>
39449 # include <assert.h>
39454 /* Override any GCC internal prototype to avoid an error.
39455 Use char because int might match the return type of a GCC
39456 builtin and then its argument prototype would still apply. */
39461 /* The GNU C library defines this for functions which it implements
39462 to always fail with ENOSYS. Some functions are actually named
39463 something starting with __ and the normal name is an alias. */
39464 #if defined __stub_$ac_func || defined __stub___$ac_func
39471 return $ac_func ();
39476 rm -f conftest.$ac_objext conftest$ac_exeext
39477 if { (ac_try="$ac_link"
39478 case "(($ac_try" in
39479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480 *) ac_try_echo=$ac_try;;
39482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39483 $as_echo "$ac_try_echo") >&5
39484 (eval "$ac_link") 2>conftest.er1
39486 grep -v '^ *+' conftest.er1 >conftest.err
39488 cat conftest.err >&5
39489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490 (exit $ac_status); } && {
39491 test -z "$ac_c_werror_flag" ||
39492 test ! -s conftest.err
39493 } && test -s conftest$ac_exeext && {
39494 test "$cross_compiling" = yes ||
39495 $as_test_x conftest$ac_exeext
39497 eval "$as_ac_var=yes"
39499 $as_echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39502 eval "$as_ac_var=no"
39505 rm -rf conftest.dSYM
39506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39507 conftest$ac_exeext conftest.$ac_ext
39509 ac_res=`eval 'as_val=${'$as_ac_var'}
39510 $as_echo "$as_val"'`
39511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39512 $as_echo "$ac_res" >&6; }
39513 as_val=`eval 'as_val=${'$as_ac_var'}
39514 $as_echo "$as_val"'`
39515 if test "x$as_val" = x""yes; then
39516 cat >>confdefs.h <<_ACEOF
39517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39521 echo 'configure: cannot find needed function.'; exit 1
39528 for ac_func in fchdir
39530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39531 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39532 $as_echo_n "checking for $ac_func... " >&6; }
39533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39534 $as_echo_n "(cached) " >&6
39536 cat >conftest.$ac_ext <<_ACEOF
39539 cat confdefs.h >>conftest.$ac_ext
39540 cat >>conftest.$ac_ext <<_ACEOF
39541 /* end confdefs.h. */
39542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39544 #define $ac_func innocuous_$ac_func
39546 /* System header to define __stub macros and hopefully few prototypes,
39547 which can conflict with char $ac_func (); below.
39548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39549 <limits.h> exists even on freestanding compilers. */
39552 # include <limits.h>
39554 # include <assert.h>
39559 /* Override any GCC internal prototype to avoid an error.
39560 Use char because int might match the return type of a GCC
39561 builtin and then its argument prototype would still apply. */
39566 /* The GNU C library defines this for functions which it implements
39567 to always fail with ENOSYS. Some functions are actually named
39568 something starting with __ and the normal name is an alias. */
39569 #if defined __stub_$ac_func || defined __stub___$ac_func
39576 return $ac_func ();
39581 rm -f conftest.$ac_objext conftest$ac_exeext
39582 if { (ac_try="$ac_link"
39583 case "(($ac_try" in
39584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39585 *) ac_try_echo=$ac_try;;
39587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39588 $as_echo "$ac_try_echo") >&5
39589 (eval "$ac_link") 2>conftest.er1
39591 grep -v '^ *+' conftest.er1 >conftest.err
39593 cat conftest.err >&5
39594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595 (exit $ac_status); } && {
39596 test -z "$ac_c_werror_flag" ||
39597 test ! -s conftest.err
39598 } && test -s conftest$ac_exeext && {
39599 test "$cross_compiling" = yes ||
39600 $as_test_x conftest$ac_exeext
39602 eval "$as_ac_var=yes"
39604 $as_echo "$as_me: failed program was:" >&5
39605 sed 's/^/| /' conftest.$ac_ext >&5
39607 eval "$as_ac_var=no"
39610 rm -rf conftest.dSYM
39611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39612 conftest$ac_exeext conftest.$ac_ext
39614 ac_res=`eval 'as_val=${'$as_ac_var'}
39615 $as_echo "$as_val"'`
39616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39617 $as_echo "$ac_res" >&6; }
39618 as_val=`eval 'as_val=${'$as_ac_var'}
39619 $as_echo "$as_val"'`
39620 if test "x$as_val" = x""yes; then
39621 cat >>confdefs.h <<_ACEOF
39622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39624 cat >>confdefs.h <<\_ACEOF
39625 #define HAVE_FCHDIR 1
39632 for ac_func in strtoll
39634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39635 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39636 $as_echo_n "checking for $ac_func... " >&6; }
39637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39638 $as_echo_n "(cached) " >&6
39640 cat >conftest.$ac_ext <<_ACEOF
39643 cat confdefs.h >>conftest.$ac_ext
39644 cat >>conftest.$ac_ext <<_ACEOF
39645 /* end confdefs.h. */
39646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39648 #define $ac_func innocuous_$ac_func
39650 /* System header to define __stub macros and hopefully few prototypes,
39651 which can conflict with char $ac_func (); below.
39652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39653 <limits.h> exists even on freestanding compilers. */
39656 # include <limits.h>
39658 # include <assert.h>
39663 /* Override any GCC internal prototype to avoid an error.
39664 Use char because int might match the return type of a GCC
39665 builtin and then its argument prototype would still apply. */
39670 /* The GNU C library defines this for functions which it implements
39671 to always fail with ENOSYS. Some functions are actually named
39672 something starting with __ and the normal name is an alias. */
39673 #if defined __stub_$ac_func || defined __stub___$ac_func
39680 return $ac_func ();
39685 rm -f conftest.$ac_objext conftest$ac_exeext
39686 if { (ac_try="$ac_link"
39687 case "(($ac_try" in
39688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39689 *) ac_try_echo=$ac_try;;
39691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39692 $as_echo "$ac_try_echo") >&5
39693 (eval "$ac_link") 2>conftest.er1
39695 grep -v '^ *+' conftest.er1 >conftest.err
39697 cat conftest.err >&5
39698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699 (exit $ac_status); } && {
39700 test -z "$ac_c_werror_flag" ||
39701 test ! -s conftest.err
39702 } && test -s conftest$ac_exeext && {
39703 test "$cross_compiling" = yes ||
39704 $as_test_x conftest$ac_exeext
39706 eval "$as_ac_var=yes"
39708 $as_echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.$ac_ext >&5
39711 eval "$as_ac_var=no"
39714 rm -rf conftest.dSYM
39715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39716 conftest$ac_exeext conftest.$ac_ext
39718 ac_res=`eval 'as_val=${'$as_ac_var'}
39719 $as_echo "$as_val"'`
39720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39721 $as_echo "$ac_res" >&6; }
39722 as_val=`eval 'as_val=${'$as_ac_var'}
39723 $as_echo "$as_val"'`
39724 if test "x$as_val" = x""yes; then
39725 cat >>confdefs.h <<_ACEOF
39726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39728 cat >>confdefs.h <<\_ACEOF
39729 #define HAVE_STRTOLL 1
39736 for ac_func in posix_fadvise
39738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39739 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39740 $as_echo_n "checking for $ac_func... " >&6; }
39741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39742 $as_echo_n "(cached) " >&6
39744 cat >conftest.$ac_ext <<_ACEOF
39747 cat confdefs.h >>conftest.$ac_ext
39748 cat >>conftest.$ac_ext <<_ACEOF
39749 /* end confdefs.h. */
39750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39752 #define $ac_func innocuous_$ac_func
39754 /* System header to define __stub macros and hopefully few prototypes,
39755 which can conflict with char $ac_func (); below.
39756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39757 <limits.h> exists even on freestanding compilers. */
39760 # include <limits.h>
39762 # include <assert.h>
39767 /* Override any GCC internal prototype to avoid an error.
39768 Use char because int might match the return type of a GCC
39769 builtin and then its argument prototype would still apply. */
39774 /* The GNU C library defines this for functions which it implements
39775 to always fail with ENOSYS. Some functions are actually named
39776 something starting with __ and the normal name is an alias. */
39777 #if defined __stub_$ac_func || defined __stub___$ac_func
39784 return $ac_func ();
39789 rm -f conftest.$ac_objext conftest$ac_exeext
39790 if { (ac_try="$ac_link"
39791 case "(($ac_try" in
39792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39793 *) ac_try_echo=$ac_try;;
39795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39796 $as_echo "$ac_try_echo") >&5
39797 (eval "$ac_link") 2>conftest.er1
39799 grep -v '^ *+' conftest.er1 >conftest.err
39801 cat conftest.err >&5
39802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39803 (exit $ac_status); } && {
39804 test -z "$ac_c_werror_flag" ||
39805 test ! -s conftest.err
39806 } && test -s conftest$ac_exeext && {
39807 test "$cross_compiling" = yes ||
39808 $as_test_x conftest$ac_exeext
39810 eval "$as_ac_var=yes"
39812 $as_echo "$as_me: failed program was:" >&5
39813 sed 's/^/| /' conftest.$ac_ext >&5
39815 eval "$as_ac_var=no"
39818 rm -rf conftest.dSYM
39819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39820 conftest$ac_exeext conftest.$ac_ext
39822 ac_res=`eval 'as_val=${'$as_ac_var'}
39823 $as_echo "$as_val"'`
39824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39825 $as_echo "$ac_res" >&6; }
39826 as_val=`eval 'as_val=${'$as_ac_var'}
39827 $as_echo "$as_val"'`
39828 if test "x$as_val" = x""yes; then
39829 cat >>confdefs.h <<_ACEOF
39830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39837 for ac_func in fdatasync
39839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39841 $as_echo_n "checking for $ac_func... " >&6; }
39842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39843 $as_echo_n "(cached) " >&6
39845 cat >conftest.$ac_ext <<_ACEOF
39848 cat confdefs.h >>conftest.$ac_ext
39849 cat >>conftest.$ac_ext <<_ACEOF
39850 /* end confdefs.h. */
39851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39853 #define $ac_func innocuous_$ac_func
39855 /* System header to define __stub macros and hopefully few prototypes,
39856 which can conflict with char $ac_func (); below.
39857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39858 <limits.h> exists even on freestanding compilers. */
39861 # include <limits.h>
39863 # include <assert.h>
39868 /* Override any GCC internal prototype to avoid an error.
39869 Use char because int might match the return type of a GCC
39870 builtin and then its argument prototype would still apply. */
39875 /* The GNU C library defines this for functions which it implements
39876 to always fail with ENOSYS. Some functions are actually named
39877 something starting with __ and the normal name is an alias. */
39878 #if defined __stub_$ac_func || defined __stub___$ac_func
39885 return $ac_func ();
39890 rm -f conftest.$ac_objext conftest$ac_exeext
39891 if { (ac_try="$ac_link"
39892 case "(($ac_try" in
39893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39894 *) ac_try_echo=$ac_try;;
39896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39897 $as_echo "$ac_try_echo") >&5
39898 (eval "$ac_link") 2>conftest.er1
39900 grep -v '^ *+' conftest.er1 >conftest.err
39902 cat conftest.err >&5
39903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904 (exit $ac_status); } && {
39905 test -z "$ac_c_werror_flag" ||
39906 test ! -s conftest.err
39907 } && test -s conftest$ac_exeext && {
39908 test "$cross_compiling" = yes ||
39909 $as_test_x conftest$ac_exeext
39911 eval "$as_ac_var=yes"
39913 $as_echo "$as_me: failed program was:" >&5
39914 sed 's/^/| /' conftest.$ac_ext >&5
39916 eval "$as_ac_var=no"
39919 rm -rf conftest.dSYM
39920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39921 conftest$ac_exeext conftest.$ac_ext
39923 ac_res=`eval 'as_val=${'$as_ac_var'}
39924 $as_echo "$as_val"'`
39925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39926 $as_echo "$ac_res" >&6; }
39927 as_val=`eval 'as_val=${'$as_ac_var'}
39928 $as_echo "$as_val"'`
39929 if test "x$as_val" = x""yes; then
39930 cat >>confdefs.h <<_ACEOF
39931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39939 for ac_func in chflags
39941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39942 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39943 $as_echo_n "checking for $ac_func... " >&6; }
39944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39945 $as_echo_n "(cached) " >&6
39947 cat >conftest.$ac_ext <<_ACEOF
39950 cat confdefs.h >>conftest.$ac_ext
39951 cat >>conftest.$ac_ext <<_ACEOF
39952 /* end confdefs.h. */
39953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39955 #define $ac_func innocuous_$ac_func
39957 /* System header to define __stub macros and hopefully few prototypes,
39958 which can conflict with char $ac_func (); below.
39959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39960 <limits.h> exists even on freestanding compilers. */
39963 # include <limits.h>
39965 # include <assert.h>
39970 /* Override any GCC internal prototype to avoid an error.
39971 Use char because int might match the return type of a GCC
39972 builtin and then its argument prototype would still apply. */
39977 /* The GNU C library defines this for functions which it implements
39978 to always fail with ENOSYS. Some functions are actually named
39979 something starting with __ and the normal name is an alias. */
39980 #if defined __stub_$ac_func || defined __stub___$ac_func
39987 return $ac_func ();
39992 rm -f conftest.$ac_objext conftest$ac_exeext
39993 if { (ac_try="$ac_link"
39994 case "(($ac_try" in
39995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39996 *) ac_try_echo=$ac_try;;
39998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39999 $as_echo "$ac_try_echo") >&5
40000 (eval "$ac_link") 2>conftest.er1
40002 grep -v '^ *+' conftest.er1 >conftest.err
40004 cat conftest.err >&5
40005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006 (exit $ac_status); } && {
40007 test -z "$ac_c_werror_flag" ||
40008 test ! -s conftest.err
40009 } && test -s conftest$ac_exeext && {
40010 test "$cross_compiling" = yes ||
40011 $as_test_x conftest$ac_exeext
40013 eval "$as_ac_var=yes"
40015 $as_echo "$as_me: failed program was:" >&5
40016 sed 's/^/| /' conftest.$ac_ext >&5
40018 eval "$as_ac_var=no"
40021 rm -rf conftest.dSYM
40022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40023 conftest$ac_exeext conftest.$ac_ext
40025 ac_res=`eval 'as_val=${'$as_ac_var'}
40026 $as_echo "$as_val"'`
40027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40028 $as_echo "$ac_res" >&6; }
40029 as_val=`eval 'as_val=${'$as_ac_var'}
40030 $as_echo "$as_val"'`
40031 if test "x$as_val" = x""yes; then
40032 cat >>confdefs.h <<_ACEOF
40033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40044 for ac_func in snprintf vsnprintf gethostid fseeko
40046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40047 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40048 $as_echo_n "checking for $ac_func... " >&6; }
40049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40050 $as_echo_n "(cached) " >&6
40052 cat >conftest.$ac_ext <<_ACEOF
40055 cat confdefs.h >>conftest.$ac_ext
40056 cat >>conftest.$ac_ext <<_ACEOF
40057 /* end confdefs.h. */
40058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40060 #define $ac_func innocuous_$ac_func
40062 /* System header to define __stub macros and hopefully few prototypes,
40063 which can conflict with char $ac_func (); below.
40064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40065 <limits.h> exists even on freestanding compilers. */
40068 # include <limits.h>
40070 # include <assert.h>
40075 /* Override any GCC internal prototype to avoid an error.
40076 Use char because int might match the return type of a GCC
40077 builtin and then its argument prototype would still apply. */
40082 /* The GNU C library defines this for functions which it implements
40083 to always fail with ENOSYS. Some functions are actually named
40084 something starting with __ and the normal name is an alias. */
40085 #if defined __stub_$ac_func || defined __stub___$ac_func
40092 return $ac_func ();
40097 rm -f conftest.$ac_objext conftest$ac_exeext
40098 if { (ac_try="$ac_link"
40099 case "(($ac_try" in
40100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40101 *) ac_try_echo=$ac_try;;
40103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40104 $as_echo "$ac_try_echo") >&5
40105 (eval "$ac_link") 2>conftest.er1
40107 grep -v '^ *+' conftest.er1 >conftest.err
40109 cat conftest.err >&5
40110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40111 (exit $ac_status); } && {
40112 test -z "$ac_c_werror_flag" ||
40113 test ! -s conftest.err
40114 } && test -s conftest$ac_exeext && {
40115 test "$cross_compiling" = yes ||
40116 $as_test_x conftest$ac_exeext
40118 eval "$as_ac_var=yes"
40120 $as_echo "$as_me: failed program was:" >&5
40121 sed 's/^/| /' conftest.$ac_ext >&5
40123 eval "$as_ac_var=no"
40126 rm -rf conftest.dSYM
40127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40128 conftest$ac_exeext conftest.$ac_ext
40130 ac_res=`eval 'as_val=${'$as_ac_var'}
40131 $as_echo "$as_val"'`
40132 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40133 $as_echo "$ac_res" >&6; }
40134 as_val=`eval 'as_val=${'$as_ac_var'}
40135 $as_echo "$as_val"'`
40136 if test "x$as_val" = x""yes; then
40137 cat >>confdefs.h <<_ACEOF
40138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40145 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
40146 $as_echo_n "checking for va_copy... " >&6; }
40147 if test "${ba_cv_va_copy+set}" = set; then
40148 $as_echo_n "(cached) " >&6
40151 cat >conftest.$ac_ext <<_ACEOF
40154 cat confdefs.h >>conftest.$ac_ext
40155 cat >>conftest.$ac_ext <<_ACEOF
40156 /* end confdefs.h. */
40158 #include <stdarg.h>
40159 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
40160 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
40166 call_use_va_copy(1,2,3)
40172 rm -f conftest.$ac_objext conftest$ac_exeext
40173 if { (ac_try="$ac_link"
40174 case "(($ac_try" in
40175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40176 *) ac_try_echo=$ac_try;;
40178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40179 $as_echo "$ac_try_echo") >&5
40180 (eval "$ac_link") 2>conftest.er1
40182 grep -v '^ *+' conftest.er1 >conftest.err
40184 cat conftest.err >&5
40185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); } && {
40187 test -z "$ac_c_werror_flag" ||
40188 test ! -s conftest.err
40189 } && test -s conftest$ac_exeext && {
40190 test "$cross_compiling" = yes ||
40191 $as_test_x conftest$ac_exeext
40197 $as_echo "$as_me: failed program was:" >&5
40198 sed 's/^/| /' conftest.$ac_ext >&5
40206 rm -rf conftest.dSYM
40207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40208 conftest$ac_exeext conftest.$ac_ext
40212 { $as_echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
40213 $as_echo "$ba_cv_va_copy" >&6; }
40214 test $ba_cv_va_copy = yes &&
40215 cat >>confdefs.h <<\_ACEOF
40216 #define HAVE_VA_COPY 1
40224 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
40226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40227 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40228 $as_echo_n "checking for $ac_func... " >&6; }
40229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40230 $as_echo_n "(cached) " >&6
40232 cat >conftest.$ac_ext <<_ACEOF
40235 cat confdefs.h >>conftest.$ac_ext
40236 cat >>conftest.$ac_ext <<_ACEOF
40237 /* end confdefs.h. */
40238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40240 #define $ac_func innocuous_$ac_func
40242 /* System header to define __stub macros and hopefully few prototypes,
40243 which can conflict with char $ac_func (); below.
40244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40245 <limits.h> exists even on freestanding compilers. */
40248 # include <limits.h>
40250 # include <assert.h>
40255 /* Override any GCC internal prototype to avoid an error.
40256 Use char because int might match the return type of a GCC
40257 builtin and then its argument prototype would still apply. */
40262 /* The GNU C library defines this for functions which it implements
40263 to always fail with ENOSYS. Some functions are actually named
40264 something starting with __ and the normal name is an alias. */
40265 #if defined __stub_$ac_func || defined __stub___$ac_func
40272 return $ac_func ();
40277 rm -f conftest.$ac_objext conftest$ac_exeext
40278 if { (ac_try="$ac_link"
40279 case "(($ac_try" in
40280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40281 *) ac_try_echo=$ac_try;;
40283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40284 $as_echo "$ac_try_echo") >&5
40285 (eval "$ac_link") 2>conftest.er1
40287 grep -v '^ *+' conftest.er1 >conftest.err
40289 cat conftest.err >&5
40290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40291 (exit $ac_status); } && {
40292 test -z "$ac_c_werror_flag" ||
40293 test ! -s conftest.err
40294 } && test -s conftest$ac_exeext && {
40295 test "$cross_compiling" = yes ||
40296 $as_test_x conftest$ac_exeext
40298 eval "$as_ac_var=yes"
40300 $as_echo "$as_me: failed program was:" >&5
40301 sed 's/^/| /' conftest.$ac_ext >&5
40303 eval "$as_ac_var=no"
40306 rm -rf conftest.dSYM
40307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40308 conftest$ac_exeext conftest.$ac_ext
40310 ac_res=`eval 'as_val=${'$as_ac_var'}
40311 $as_echo "$as_val"'`
40312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40313 $as_echo "$ac_res" >&6; }
40314 as_val=`eval 'as_val=${'$as_ac_var'}
40315 $as_echo "$as_val"'`
40316 if test "x$as_val" = x""yes; then
40317 cat >>confdefs.h <<_ACEOF
40318 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40325 # If resolver functions are not in libc check for -lnsl or -lresolv.
40326 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
40327 $as_echo_n "checking for gethostbyname_r... " >&6; }
40328 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
40329 $as_echo_n "(cached) " >&6
40331 cat >conftest.$ac_ext <<_ACEOF
40334 cat confdefs.h >>conftest.$ac_ext
40335 cat >>conftest.$ac_ext <<_ACEOF
40336 /* end confdefs.h. */
40337 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
40338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40339 #define gethostbyname_r innocuous_gethostbyname_r
40341 /* System header to define __stub macros and hopefully few prototypes,
40342 which can conflict with char gethostbyname_r (); below.
40343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40344 <limits.h> exists even on freestanding compilers. */
40347 # include <limits.h>
40349 # include <assert.h>
40352 #undef gethostbyname_r
40354 /* Override any GCC internal prototype to avoid an error.
40355 Use char because int might match the return type of a GCC
40356 builtin and then its argument prototype would still apply. */
40360 char gethostbyname_r ();
40361 /* The GNU C library defines this for functions which it implements
40362 to always fail with ENOSYS. Some functions are actually named
40363 something starting with __ and the normal name is an alias. */
40364 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
40371 return gethostbyname_r ();
40376 rm -f conftest.$ac_objext conftest$ac_exeext
40377 if { (ac_try="$ac_link"
40378 case "(($ac_try" in
40379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40380 *) ac_try_echo=$ac_try;;
40382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40383 $as_echo "$ac_try_echo") >&5
40384 (eval "$ac_link") 2>conftest.er1
40386 grep -v '^ *+' conftest.er1 >conftest.err
40388 cat conftest.err >&5
40389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390 (exit $ac_status); } && {
40391 test -z "$ac_c_werror_flag" ||
40392 test ! -s conftest.err
40393 } && test -s conftest$ac_exeext && {
40394 test "$cross_compiling" = yes ||
40395 $as_test_x conftest$ac_exeext
40397 ac_cv_func_gethostbyname_r=yes
40399 $as_echo "$as_me: failed program was:" >&5
40400 sed 's/^/| /' conftest.$ac_ext >&5
40402 ac_cv_func_gethostbyname_r=no
40405 rm -rf conftest.dSYM
40406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40407 conftest$ac_exeext conftest.$ac_ext
40409 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
40410 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
40411 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
40412 { $as_echo "$as_me:$LINENO: result: using libc's resolver" >&5
40413 $as_echo "using libc's resolver" >&6; }
40416 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
40417 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
40418 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
40419 $as_echo_n "(cached) " >&6
40421 ac_check_lib_save_LIBS=$LIBS
40423 cat >conftest.$ac_ext <<_ACEOF
40426 cat confdefs.h >>conftest.$ac_ext
40427 cat >>conftest.$ac_ext <<_ACEOF
40428 /* end confdefs.h. */
40430 /* Override any GCC internal prototype to avoid an error.
40431 Use char because int might match the return type of a GCC
40432 builtin and then its argument prototype would still apply. */
40436 char gethostbyname_r ();
40440 return gethostbyname_r ();
40445 rm -f conftest.$ac_objext conftest$ac_exeext
40446 if { (ac_try="$ac_link"
40447 case "(($ac_try" in
40448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40449 *) ac_try_echo=$ac_try;;
40451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40452 $as_echo "$ac_try_echo") >&5
40453 (eval "$ac_link") 2>conftest.er1
40455 grep -v '^ *+' conftest.er1 >conftest.err
40457 cat conftest.err >&5
40458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40459 (exit $ac_status); } && {
40460 test -z "$ac_c_werror_flag" ||
40461 test ! -s conftest.err
40462 } && test -s conftest$ac_exeext && {
40463 test "$cross_compiling" = yes ||
40464 $as_test_x conftest$ac_exeext
40466 ac_cv_lib_nsl_gethostbyname_r=yes
40468 $as_echo "$as_me: failed program was:" >&5
40469 sed 's/^/| /' conftest.$ac_ext >&5
40471 ac_cv_lib_nsl_gethostbyname_r=no
40474 rm -rf conftest.dSYM
40475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40476 conftest$ac_exeext conftest.$ac_ext
40477 LIBS=$ac_check_lib_save_LIBS
40479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
40480 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
40481 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
40482 cat >>confdefs.h <<_ACEOF
40483 #define HAVE_LIBNSL 1
40491 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
40492 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
40493 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
40494 $as_echo_n "(cached) " >&6
40496 ac_check_lib_save_LIBS=$LIBS
40497 LIBS="-lresolv $LIBS"
40498 cat >conftest.$ac_ext <<_ACEOF
40501 cat confdefs.h >>conftest.$ac_ext
40502 cat >>conftest.$ac_ext <<_ACEOF
40503 /* end confdefs.h. */
40505 /* Override any GCC internal prototype to avoid an error.
40506 Use char because int might match the return type of a GCC
40507 builtin and then its argument prototype would still apply. */
40511 char gethostbyname_r ();
40515 return gethostbyname_r ();
40520 rm -f conftest.$ac_objext conftest$ac_exeext
40521 if { (ac_try="$ac_link"
40522 case "(($ac_try" in
40523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40524 *) ac_try_echo=$ac_try;;
40526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40527 $as_echo "$ac_try_echo") >&5
40528 (eval "$ac_link") 2>conftest.er1
40530 grep -v '^ *+' conftest.er1 >conftest.err
40532 cat conftest.err >&5
40533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534 (exit $ac_status); } && {
40535 test -z "$ac_c_werror_flag" ||
40536 test ! -s conftest.err
40537 } && test -s conftest$ac_exeext && {
40538 test "$cross_compiling" = yes ||
40539 $as_test_x conftest$ac_exeext
40541 ac_cv_lib_resolv_gethostbyname_r=yes
40543 $as_echo "$as_me: failed program was:" >&5
40544 sed 's/^/| /' conftest.$ac_ext >&5
40546 ac_cv_lib_resolv_gethostbyname_r=no
40549 rm -rf conftest.dSYM
40550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40551 conftest$ac_exeext conftest.$ac_ext
40552 LIBS=$ac_check_lib_save_LIBS
40554 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
40555 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
40556 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then
40557 cat >>confdefs.h <<_ACEOF
40558 #define HAVE_LIBRESOLV 1
40561 LIBS="-lresolv $LIBS"
40569 for ac_func in inet_pton
40571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40572 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40573 $as_echo_n "checking for $ac_func... " >&6; }
40574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40575 $as_echo_n "(cached) " >&6
40577 cat >conftest.$ac_ext <<_ACEOF
40580 cat confdefs.h >>conftest.$ac_ext
40581 cat >>conftest.$ac_ext <<_ACEOF
40582 /* end confdefs.h. */
40583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40585 #define $ac_func innocuous_$ac_func
40587 /* System header to define __stub macros and hopefully few prototypes,
40588 which can conflict with char $ac_func (); below.
40589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40590 <limits.h> exists even on freestanding compilers. */
40593 # include <limits.h>
40595 # include <assert.h>
40600 /* Override any GCC internal prototype to avoid an error.
40601 Use char because int might match the return type of a GCC
40602 builtin and then its argument prototype would still apply. */
40607 /* The GNU C library defines this for functions which it implements
40608 to always fail with ENOSYS. Some functions are actually named
40609 something starting with __ and the normal name is an alias. */
40610 #if defined __stub_$ac_func || defined __stub___$ac_func
40617 return $ac_func ();
40622 rm -f conftest.$ac_objext conftest$ac_exeext
40623 if { (ac_try="$ac_link"
40624 case "(($ac_try" in
40625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40626 *) ac_try_echo=$ac_try;;
40628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40629 $as_echo "$ac_try_echo") >&5
40630 (eval "$ac_link") 2>conftest.er1
40632 grep -v '^ *+' conftest.er1 >conftest.err
40634 cat conftest.err >&5
40635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636 (exit $ac_status); } && {
40637 test -z "$ac_c_werror_flag" ||
40638 test ! -s conftest.err
40639 } && test -s conftest$ac_exeext && {
40640 test "$cross_compiling" = yes ||
40641 $as_test_x conftest$ac_exeext
40643 eval "$as_ac_var=yes"
40645 $as_echo "$as_me: failed program was:" >&5
40646 sed 's/^/| /' conftest.$ac_ext >&5
40648 eval "$as_ac_var=no"
40651 rm -rf conftest.dSYM
40652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40653 conftest$ac_exeext conftest.$ac_ext
40655 ac_res=`eval 'as_val=${'$as_ac_var'}
40656 $as_echo "$as_val"'`
40657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40658 $as_echo "$ac_res" >&6; }
40659 as_val=`eval 'as_val=${'$as_ac_var'}
40660 $as_echo "$as_val"'`
40661 if test "x$as_val" = x""yes; then
40662 cat >>confdefs.h <<_ACEOF
40663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40665 cat >>confdefs.h <<\_ACEOF
40666 #define HAVE_INET_PTON 1
40673 for ac_func in inet_ntop
40675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40676 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40677 $as_echo_n "checking for $ac_func... " >&6; }
40678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40679 $as_echo_n "(cached) " >&6
40681 cat >conftest.$ac_ext <<_ACEOF
40684 cat confdefs.h >>conftest.$ac_ext
40685 cat >>conftest.$ac_ext <<_ACEOF
40686 /* end confdefs.h. */
40687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40689 #define $ac_func innocuous_$ac_func
40691 /* System header to define __stub macros and hopefully few prototypes,
40692 which can conflict with char $ac_func (); below.
40693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40694 <limits.h> exists even on freestanding compilers. */
40697 # include <limits.h>
40699 # include <assert.h>
40704 /* Override any GCC internal prototype to avoid an error.
40705 Use char because int might match the return type of a GCC
40706 builtin and then its argument prototype would still apply. */
40711 /* The GNU C library defines this for functions which it implements
40712 to always fail with ENOSYS. Some functions are actually named
40713 something starting with __ and the normal name is an alias. */
40714 #if defined __stub_$ac_func || defined __stub___$ac_func
40721 return $ac_func ();
40726 rm -f conftest.$ac_objext conftest$ac_exeext
40727 if { (ac_try="$ac_link"
40728 case "(($ac_try" in
40729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40730 *) ac_try_echo=$ac_try;;
40732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40733 $as_echo "$ac_try_echo") >&5
40734 (eval "$ac_link") 2>conftest.er1
40736 grep -v '^ *+' conftest.er1 >conftest.err
40738 cat conftest.err >&5
40739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40740 (exit $ac_status); } && {
40741 test -z "$ac_c_werror_flag" ||
40742 test ! -s conftest.err
40743 } && test -s conftest$ac_exeext && {
40744 test "$cross_compiling" = yes ||
40745 $as_test_x conftest$ac_exeext
40747 eval "$as_ac_var=yes"
40749 $as_echo "$as_me: failed program was:" >&5
40750 sed 's/^/| /' conftest.$ac_ext >&5
40752 eval "$as_ac_var=no"
40755 rm -rf conftest.dSYM
40756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40757 conftest$ac_exeext conftest.$ac_ext
40759 ac_res=`eval 'as_val=${'$as_ac_var'}
40760 $as_echo "$as_val"'`
40761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40762 $as_echo "$ac_res" >&6; }
40763 as_val=`eval 'as_val=${'$as_ac_var'}
40764 $as_echo "$as_val"'`
40765 if test "x$as_val" = x""yes; then
40766 cat >>confdefs.h <<_ACEOF
40767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40769 cat >>confdefs.h <<\_ACEOF
40770 #define HAVE_INET_NTOP 1
40777 for ac_func in gethostbyname2
40779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40780 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40781 $as_echo_n "checking for $ac_func... " >&6; }
40782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40783 $as_echo_n "(cached) " >&6
40785 cat >conftest.$ac_ext <<_ACEOF
40788 cat confdefs.h >>conftest.$ac_ext
40789 cat >>conftest.$ac_ext <<_ACEOF
40790 /* end confdefs.h. */
40791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40793 #define $ac_func innocuous_$ac_func
40795 /* System header to define __stub macros and hopefully few prototypes,
40796 which can conflict with char $ac_func (); below.
40797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40798 <limits.h> exists even on freestanding compilers. */
40801 # include <limits.h>
40803 # include <assert.h>
40808 /* Override any GCC internal prototype to avoid an error.
40809 Use char because int might match the return type of a GCC
40810 builtin and then its argument prototype would still apply. */
40815 /* The GNU C library defines this for functions which it implements
40816 to always fail with ENOSYS. Some functions are actually named
40817 something starting with __ and the normal name is an alias. */
40818 #if defined __stub_$ac_func || defined __stub___$ac_func
40825 return $ac_func ();
40830 rm -f conftest.$ac_objext conftest$ac_exeext
40831 if { (ac_try="$ac_link"
40832 case "(($ac_try" in
40833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40834 *) ac_try_echo=$ac_try;;
40836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40837 $as_echo "$ac_try_echo") >&5
40838 (eval "$ac_link") 2>conftest.er1
40840 grep -v '^ *+' conftest.er1 >conftest.err
40842 cat conftest.err >&5
40843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844 (exit $ac_status); } && {
40845 test -z "$ac_c_werror_flag" ||
40846 test ! -s conftest.err
40847 } && test -s conftest$ac_exeext && {
40848 test "$cross_compiling" = yes ||
40849 $as_test_x conftest$ac_exeext
40851 eval "$as_ac_var=yes"
40853 $as_echo "$as_me: failed program was:" >&5
40854 sed 's/^/| /' conftest.$ac_ext >&5
40856 eval "$as_ac_var=no"
40859 rm -rf conftest.dSYM
40860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40861 conftest$ac_exeext conftest.$ac_ext
40863 ac_res=`eval 'as_val=${'$as_ac_var'}
40864 $as_echo "$as_val"'`
40865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40866 $as_echo "$ac_res" >&6; }
40867 as_val=`eval 'as_val=${'$as_ac_var'}
40868 $as_echo "$as_val"'`
40869 if test "x$as_val" = x""yes; then
40870 cat >>confdefs.h <<_ACEOF
40871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40873 cat >>confdefs.h <<\_ACEOF
40874 #define HAVE_GETHOSTBYNAME2 1
40881 { $as_echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
40882 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
40883 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
40884 $as_echo_n "(cached) " >&6
40887 cat >conftest.$ac_ext <<_ACEOF
40890 cat confdefs.h >>conftest.$ac_ext
40891 cat >>conftest.$ac_ext <<_ACEOF
40892 /* end confdefs.h. */
40894 #include <sys/socket.h>
40900 struct sockaddr s; s.sa_len;
40906 rm -f conftest.$ac_objext
40907 if { (ac_try="$ac_compile"
40908 case "(($ac_try" in
40909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40910 *) ac_try_echo=$ac_try;;
40912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40913 $as_echo "$ac_try_echo") >&5
40914 (eval "$ac_compile") 2>conftest.er1
40916 grep -v '^ *+' conftest.er1 >conftest.err
40918 cat conftest.err >&5
40919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40920 (exit $ac_status); } && {
40921 test -z "$ac_c_werror_flag" ||
40922 test ! -s conftest.err
40923 } && test -s conftest.$ac_objext; then
40925 ac_cv_struct_sockaddr_sa_len=yes
40928 $as_echo "$as_me: failed program was:" >&5
40929 sed 's/^/| /' conftest.$ac_ext >&5
40931 ac_cv_struct_sockaddr_sa_len=no
40936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40940 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
40941 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
40943 if test $ac_cv_struct_sockaddr_sa_len = yes; then
40945 cat >>confdefs.h <<\_ACEOF
40946 #define HAVE_SA_LEN 1
40952 for ac_func in strftime
40954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40955 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40956 $as_echo_n "checking for $ac_func... " >&6; }
40957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40958 $as_echo_n "(cached) " >&6
40960 cat >conftest.$ac_ext <<_ACEOF
40963 cat confdefs.h >>conftest.$ac_ext
40964 cat >>conftest.$ac_ext <<_ACEOF
40965 /* end confdefs.h. */
40966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40968 #define $ac_func innocuous_$ac_func
40970 /* System header to define __stub macros and hopefully few prototypes,
40971 which can conflict with char $ac_func (); below.
40972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40973 <limits.h> exists even on freestanding compilers. */
40976 # include <limits.h>
40978 # include <assert.h>
40983 /* Override any GCC internal prototype to avoid an error.
40984 Use char because int might match the return type of a GCC
40985 builtin and then its argument prototype would still apply. */
40990 /* The GNU C library defines this for functions which it implements
40991 to always fail with ENOSYS. Some functions are actually named
40992 something starting with __ and the normal name is an alias. */
40993 #if defined __stub_$ac_func || defined __stub___$ac_func
41000 return $ac_func ();
41005 rm -f conftest.$ac_objext conftest$ac_exeext
41006 if { (ac_try="$ac_link"
41007 case "(($ac_try" in
41008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41009 *) ac_try_echo=$ac_try;;
41011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41012 $as_echo "$ac_try_echo") >&5
41013 (eval "$ac_link") 2>conftest.er1
41015 grep -v '^ *+' conftest.er1 >conftest.err
41017 cat conftest.err >&5
41018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019 (exit $ac_status); } && {
41020 test -z "$ac_c_werror_flag" ||
41021 test ! -s conftest.err
41022 } && test -s conftest$ac_exeext && {
41023 test "$cross_compiling" = yes ||
41024 $as_test_x conftest$ac_exeext
41026 eval "$as_ac_var=yes"
41028 $as_echo "$as_me: failed program was:" >&5
41029 sed 's/^/| /' conftest.$ac_ext >&5
41031 eval "$as_ac_var=no"
41034 rm -rf conftest.dSYM
41035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41036 conftest$ac_exeext conftest.$ac_ext
41038 ac_res=`eval 'as_val=${'$as_ac_var'}
41039 $as_echo "$as_val"'`
41040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41041 $as_echo "$ac_res" >&6; }
41042 as_val=`eval 'as_val=${'$as_ac_var'}
41043 $as_echo "$as_val"'`
41044 if test "x$as_val" = x""yes; then
41045 cat >>confdefs.h <<_ACEOF
41046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41050 # strftime is in -lintl on SCO UNIX.
41051 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
41052 $as_echo_n "checking for strftime in -lintl... " >&6; }
41053 if test "${ac_cv_lib_intl_strftime+set}" = set; then
41054 $as_echo_n "(cached) " >&6
41056 ac_check_lib_save_LIBS=$LIBS
41057 LIBS="-lintl $LIBS"
41058 cat >conftest.$ac_ext <<_ACEOF
41061 cat confdefs.h >>conftest.$ac_ext
41062 cat >>conftest.$ac_ext <<_ACEOF
41063 /* end confdefs.h. */
41065 /* Override any GCC internal prototype to avoid an error.
41066 Use char because int might match the return type of a GCC
41067 builtin and then its argument prototype would still apply. */
41075 return strftime ();
41080 rm -f conftest.$ac_objext conftest$ac_exeext
41081 if { (ac_try="$ac_link"
41082 case "(($ac_try" in
41083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41084 *) ac_try_echo=$ac_try;;
41086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41087 $as_echo "$ac_try_echo") >&5
41088 (eval "$ac_link") 2>conftest.er1
41090 grep -v '^ *+' conftest.er1 >conftest.err
41092 cat conftest.err >&5
41093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094 (exit $ac_status); } && {
41095 test -z "$ac_c_werror_flag" ||
41096 test ! -s conftest.err
41097 } && test -s conftest$ac_exeext && {
41098 test "$cross_compiling" = yes ||
41099 $as_test_x conftest$ac_exeext
41101 ac_cv_lib_intl_strftime=yes
41103 $as_echo "$as_me: failed program was:" >&5
41104 sed 's/^/| /' conftest.$ac_ext >&5
41106 ac_cv_lib_intl_strftime=no
41109 rm -rf conftest.dSYM
41110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41111 conftest$ac_exeext conftest.$ac_ext
41112 LIBS=$ac_check_lib_save_LIBS
41114 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
41115 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
41116 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
41117 cat >>confdefs.h <<\_ACEOF
41118 #define HAVE_STRFTIME 1
41121 LIBS="-lintl $LIBS"
41128 for ac_func in vprintf
41130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41132 $as_echo_n "checking for $ac_func... " >&6; }
41133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41134 $as_echo_n "(cached) " >&6
41136 cat >conftest.$ac_ext <<_ACEOF
41139 cat confdefs.h >>conftest.$ac_ext
41140 cat >>conftest.$ac_ext <<_ACEOF
41141 /* end confdefs.h. */
41142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41144 #define $ac_func innocuous_$ac_func
41146 /* System header to define __stub macros and hopefully few prototypes,
41147 which can conflict with char $ac_func (); below.
41148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41149 <limits.h> exists even on freestanding compilers. */
41152 # include <limits.h>
41154 # include <assert.h>
41159 /* Override any GCC internal prototype to avoid an error.
41160 Use char because int might match the return type of a GCC
41161 builtin and then its argument prototype would still apply. */
41166 /* The GNU C library defines this for functions which it implements
41167 to always fail with ENOSYS. Some functions are actually named
41168 something starting with __ and the normal name is an alias. */
41169 #if defined __stub_$ac_func || defined __stub___$ac_func
41176 return $ac_func ();
41181 rm -f conftest.$ac_objext conftest$ac_exeext
41182 if { (ac_try="$ac_link"
41183 case "(($ac_try" in
41184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41185 *) ac_try_echo=$ac_try;;
41187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41188 $as_echo "$ac_try_echo") >&5
41189 (eval "$ac_link") 2>conftest.er1
41191 grep -v '^ *+' conftest.er1 >conftest.err
41193 cat conftest.err >&5
41194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195 (exit $ac_status); } && {
41196 test -z "$ac_c_werror_flag" ||
41197 test ! -s conftest.err
41198 } && test -s conftest$ac_exeext && {
41199 test "$cross_compiling" = yes ||
41200 $as_test_x conftest$ac_exeext
41202 eval "$as_ac_var=yes"
41204 $as_echo "$as_me: failed program was:" >&5
41205 sed 's/^/| /' conftest.$ac_ext >&5
41207 eval "$as_ac_var=no"
41210 rm -rf conftest.dSYM
41211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41212 conftest$ac_exeext conftest.$ac_ext
41214 ac_res=`eval 'as_val=${'$as_ac_var'}
41215 $as_echo "$as_val"'`
41216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41217 $as_echo "$ac_res" >&6; }
41218 as_val=`eval 'as_val=${'$as_ac_var'}
41219 $as_echo "$as_val"'`
41220 if test "x$as_val" = x""yes; then
41221 cat >>confdefs.h <<_ACEOF
41222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41225 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
41226 $as_echo_n "checking for _doprnt... " >&6; }
41227 if test "${ac_cv_func__doprnt+set}" = set; then
41228 $as_echo_n "(cached) " >&6
41230 cat >conftest.$ac_ext <<_ACEOF
41233 cat confdefs.h >>conftest.$ac_ext
41234 cat >>conftest.$ac_ext <<_ACEOF
41235 /* end confdefs.h. */
41236 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41238 #define _doprnt innocuous__doprnt
41240 /* System header to define __stub macros and hopefully few prototypes,
41241 which can conflict with char _doprnt (); below.
41242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41243 <limits.h> exists even on freestanding compilers. */
41246 # include <limits.h>
41248 # include <assert.h>
41253 /* Override any GCC internal prototype to avoid an error.
41254 Use char because int might match the return type of a GCC
41255 builtin and then its argument prototype would still apply. */
41260 /* The GNU C library defines this for functions which it implements
41261 to always fail with ENOSYS. Some functions are actually named
41262 something starting with __ and the normal name is an alias. */
41263 #if defined __stub__doprnt || defined __stub____doprnt
41275 rm -f conftest.$ac_objext conftest$ac_exeext
41276 if { (ac_try="$ac_link"
41277 case "(($ac_try" in
41278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41279 *) ac_try_echo=$ac_try;;
41281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41282 $as_echo "$ac_try_echo") >&5
41283 (eval "$ac_link") 2>conftest.er1
41285 grep -v '^ *+' conftest.er1 >conftest.err
41287 cat conftest.err >&5
41288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289 (exit $ac_status); } && {
41290 test -z "$ac_c_werror_flag" ||
41291 test ! -s conftest.err
41292 } && test -s conftest$ac_exeext && {
41293 test "$cross_compiling" = yes ||
41294 $as_test_x conftest$ac_exeext
41296 ac_cv_func__doprnt=yes
41298 $as_echo "$as_me: failed program was:" >&5
41299 sed 's/^/| /' conftest.$ac_ext >&5
41301 ac_cv_func__doprnt=no
41304 rm -rf conftest.dSYM
41305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41306 conftest$ac_exeext conftest.$ac_ext
41308 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41309 $as_echo "$ac_cv_func__doprnt" >&6; }
41310 if test "x$ac_cv_func__doprnt" = x""yes; then
41312 cat >>confdefs.h <<\_ACEOF
41313 #define HAVE_DOPRNT 1
41322 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
41323 # for constant arguments. Useless!
41324 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
41325 $as_echo_n "checking for working alloca.h... " >&6; }
41326 if test "${ac_cv_working_alloca_h+set}" = set; then
41327 $as_echo_n "(cached) " >&6
41329 cat >conftest.$ac_ext <<_ACEOF
41332 cat confdefs.h >>conftest.$ac_ext
41333 cat >>conftest.$ac_ext <<_ACEOF
41334 /* end confdefs.h. */
41335 #include <alloca.h>
41339 char *p = (char *) alloca (2 * sizeof (int));
41345 rm -f conftest.$ac_objext conftest$ac_exeext
41346 if { (ac_try="$ac_link"
41347 case "(($ac_try" in
41348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41349 *) ac_try_echo=$ac_try;;
41351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41352 $as_echo "$ac_try_echo") >&5
41353 (eval "$ac_link") 2>conftest.er1
41355 grep -v '^ *+' conftest.er1 >conftest.err
41357 cat conftest.err >&5
41358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41359 (exit $ac_status); } && {
41360 test -z "$ac_c_werror_flag" ||
41361 test ! -s conftest.err
41362 } && test -s conftest$ac_exeext && {
41363 test "$cross_compiling" = yes ||
41364 $as_test_x conftest$ac_exeext
41366 ac_cv_working_alloca_h=yes
41368 $as_echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41371 ac_cv_working_alloca_h=no
41374 rm -rf conftest.dSYM
41375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41376 conftest$ac_exeext conftest.$ac_ext
41378 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
41379 $as_echo "$ac_cv_working_alloca_h" >&6; }
41380 if test $ac_cv_working_alloca_h = yes; then
41382 cat >>confdefs.h <<\_ACEOF
41383 #define HAVE_ALLOCA_H 1
41388 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
41389 $as_echo_n "checking for alloca... " >&6; }
41390 if test "${ac_cv_func_alloca_works+set}" = set; then
41391 $as_echo_n "(cached) " >&6
41393 cat >conftest.$ac_ext <<_ACEOF
41396 cat confdefs.h >>conftest.$ac_ext
41397 cat >>conftest.$ac_ext <<_ACEOF
41398 /* end confdefs.h. */
41400 # define alloca __builtin_alloca
41403 # include <malloc.h>
41404 # define alloca _alloca
41406 # ifdef HAVE_ALLOCA_H
41407 # include <alloca.h>
41412 # ifndef alloca /* predefined by HP cc +Olibcalls */
41423 char *p = (char *) alloca (1);
41429 rm -f conftest.$ac_objext conftest$ac_exeext
41430 if { (ac_try="$ac_link"
41431 case "(($ac_try" in
41432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41433 *) ac_try_echo=$ac_try;;
41435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41436 $as_echo "$ac_try_echo") >&5
41437 (eval "$ac_link") 2>conftest.er1
41439 grep -v '^ *+' conftest.er1 >conftest.err
41441 cat conftest.err >&5
41442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443 (exit $ac_status); } && {
41444 test -z "$ac_c_werror_flag" ||
41445 test ! -s conftest.err
41446 } && test -s conftest$ac_exeext && {
41447 test "$cross_compiling" = yes ||
41448 $as_test_x conftest$ac_exeext
41450 ac_cv_func_alloca_works=yes
41452 $as_echo "$as_me: failed program was:" >&5
41453 sed 's/^/| /' conftest.$ac_ext >&5
41455 ac_cv_func_alloca_works=no
41458 rm -rf conftest.dSYM
41459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41460 conftest$ac_exeext conftest.$ac_ext
41462 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
41463 $as_echo "$ac_cv_func_alloca_works" >&6; }
41465 if test $ac_cv_func_alloca_works = yes; then
41467 cat >>confdefs.h <<\_ACEOF
41468 #define HAVE_ALLOCA 1
41472 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
41473 # that cause trouble. Some versions do not even contain alloca or
41474 # contain a buggy version. If you still want to use their alloca,
41475 # use ar to extract alloca.o from them instead of compiling alloca.c.
41477 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
41479 cat >>confdefs.h <<\_ACEOF
41484 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
41485 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
41486 if test "${ac_cv_os_cray+set}" = set; then
41487 $as_echo_n "(cached) " >&6
41489 cat >conftest.$ac_ext <<_ACEOF
41492 cat confdefs.h >>conftest.$ac_ext
41493 cat >>conftest.$ac_ext <<_ACEOF
41494 /* end confdefs.h. */
41495 #if defined CRAY && ! defined CRAY2
41502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41503 $EGREP "webecray" >/dev/null 2>&1; then
41511 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
41512 $as_echo "$ac_cv_os_cray" >&6; }
41513 if test $ac_cv_os_cray = yes; then
41514 for ac_func in _getb67 GETB67 getb67; do
41515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41516 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41517 $as_echo_n "checking for $ac_func... " >&6; }
41518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41519 $as_echo_n "(cached) " >&6
41521 cat >conftest.$ac_ext <<_ACEOF
41524 cat confdefs.h >>conftest.$ac_ext
41525 cat >>conftest.$ac_ext <<_ACEOF
41526 /* end confdefs.h. */
41527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41529 #define $ac_func innocuous_$ac_func
41531 /* System header to define __stub macros and hopefully few prototypes,
41532 which can conflict with char $ac_func (); below.
41533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41534 <limits.h> exists even on freestanding compilers. */
41537 # include <limits.h>
41539 # include <assert.h>
41544 /* Override any GCC internal prototype to avoid an error.
41545 Use char because int might match the return type of a GCC
41546 builtin and then its argument prototype would still apply. */
41551 /* The GNU C library defines this for functions which it implements
41552 to always fail with ENOSYS. Some functions are actually named
41553 something starting with __ and the normal name is an alias. */
41554 #if defined __stub_$ac_func || defined __stub___$ac_func
41561 return $ac_func ();
41566 rm -f conftest.$ac_objext conftest$ac_exeext
41567 if { (ac_try="$ac_link"
41568 case "(($ac_try" in
41569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41570 *) ac_try_echo=$ac_try;;
41572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41573 $as_echo "$ac_try_echo") >&5
41574 (eval "$ac_link") 2>conftest.er1
41576 grep -v '^ *+' conftest.er1 >conftest.err
41578 cat conftest.err >&5
41579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41580 (exit $ac_status); } && {
41581 test -z "$ac_c_werror_flag" ||
41582 test ! -s conftest.err
41583 } && test -s conftest$ac_exeext && {
41584 test "$cross_compiling" = yes ||
41585 $as_test_x conftest$ac_exeext
41587 eval "$as_ac_var=yes"
41589 $as_echo "$as_me: failed program was:" >&5
41590 sed 's/^/| /' conftest.$ac_ext >&5
41592 eval "$as_ac_var=no"
41595 rm -rf conftest.dSYM
41596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41597 conftest$ac_exeext conftest.$ac_ext
41599 ac_res=`eval 'as_val=${'$as_ac_var'}
41600 $as_echo "$as_val"'`
41601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41602 $as_echo "$ac_res" >&6; }
41603 as_val=`eval 'as_val=${'$as_ac_var'}
41604 $as_echo "$as_val"'`
41605 if test "x$as_val" = x""yes; then
41607 cat >>confdefs.h <<_ACEOF
41608 #define CRAY_STACKSEG_END $ac_func
41617 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
41618 $as_echo_n "checking stack direction for C alloca... " >&6; }
41619 if test "${ac_cv_c_stack_direction+set}" = set; then
41620 $as_echo_n "(cached) " >&6
41622 if test "$cross_compiling" = yes; then
41623 ac_cv_c_stack_direction=0
41625 cat >conftest.$ac_ext <<_ACEOF
41628 cat confdefs.h >>conftest.$ac_ext
41629 cat >>conftest.$ac_ext <<_ACEOF
41630 /* end confdefs.h. */
41631 $ac_includes_default
41633 find_stack_direction ()
41635 static char *addr = 0;
41640 return find_stack_direction ();
41643 return (&dummy > addr) ? 1 : -1;
41649 return find_stack_direction () < 0;
41652 rm -f conftest$ac_exeext
41653 if { (ac_try="$ac_link"
41654 case "(($ac_try" in
41655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41656 *) ac_try_echo=$ac_try;;
41658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41659 $as_echo "$ac_try_echo") >&5
41660 (eval "$ac_link") 2>&5
41662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41664 { (case "(($ac_try" in
41665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41666 *) ac_try_echo=$ac_try;;
41668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41669 $as_echo "$ac_try_echo") >&5
41670 (eval "$ac_try") 2>&5
41672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41673 (exit $ac_status); }; }; then
41674 ac_cv_c_stack_direction=1
41676 $as_echo "$as_me: program exited with status $ac_status" >&5
41677 $as_echo "$as_me: failed program was:" >&5
41678 sed 's/^/| /' conftest.$ac_ext >&5
41680 ( exit $ac_status )
41681 ac_cv_c_stack_direction=-1
41683 rm -rf conftest.dSYM
41684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41689 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
41690 $as_echo "$ac_cv_c_stack_direction" >&6; }
41692 cat >>confdefs.h <<_ACEOF
41693 #define STACK_DIRECTION $ac_cv_c_stack_direction
41699 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
41700 # -lseq on Dynix/PTX, -lgen on Unixware.
41701 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
41702 $as_echo_n "checking for library containing getmntent... " >&6; }
41703 if test "${ac_cv_search_getmntent+set}" = set; then
41704 $as_echo_n "(cached) " >&6
41706 ac_func_search_save_LIBS=$LIBS
41707 cat >conftest.$ac_ext <<_ACEOF
41710 cat confdefs.h >>conftest.$ac_ext
41711 cat >>conftest.$ac_ext <<_ACEOF
41712 /* end confdefs.h. */
41714 /* Override any GCC internal prototype to avoid an error.
41715 Use char because int might match the return type of a GCC
41716 builtin and then its argument prototype would still apply. */
41724 return getmntent ();
41729 for ac_lib in '' sun seq gen; do
41730 if test -z "$ac_lib"; then
41731 ac_res="none required"
41734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
41736 rm -f conftest.$ac_objext conftest$ac_exeext
41737 if { (ac_try="$ac_link"
41738 case "(($ac_try" in
41739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41740 *) ac_try_echo=$ac_try;;
41742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41743 $as_echo "$ac_try_echo") >&5
41744 (eval "$ac_link") 2>conftest.er1
41746 grep -v '^ *+' conftest.er1 >conftest.err
41748 cat conftest.err >&5
41749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750 (exit $ac_status); } && {
41751 test -z "$ac_c_werror_flag" ||
41752 test ! -s conftest.err
41753 } && test -s conftest$ac_exeext && {
41754 test "$cross_compiling" = yes ||
41755 $as_test_x conftest$ac_exeext
41757 ac_cv_search_getmntent=$ac_res
41759 $as_echo "$as_me: failed program was:" >&5
41760 sed 's/^/| /' conftest.$ac_ext >&5
41765 rm -rf conftest.dSYM
41766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41768 if test "${ac_cv_search_getmntent+set}" = set; then
41772 if test "${ac_cv_search_getmntent+set}" = set; then
41775 ac_cv_search_getmntent=no
41777 rm conftest.$ac_ext
41778 LIBS=$ac_func_search_save_LIBS
41780 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
41781 $as_echo "$ac_cv_search_getmntent" >&6; }
41782 ac_res=$ac_cv_search_getmntent
41783 if test "$ac_res" != no; then
41784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41785 ac_cv_func_getmntent=yes
41787 cat >>confdefs.h <<\_ACEOF
41788 #define HAVE_GETMNTENT 1
41792 ac_cv_func_getmntent=no
41796 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
41797 $as_echo_n "checking whether closedir returns void... " >&6; }
41798 if test "${ac_cv_func_closedir_void+set}" = set; then
41799 $as_echo_n "(cached) " >&6
41801 if test "$cross_compiling" = yes; then
41802 ac_cv_func_closedir_void=yes
41804 cat >conftest.$ac_ext <<_ACEOF
41807 cat confdefs.h >>conftest.$ac_ext
41808 cat >>conftest.$ac_ext <<_ACEOF
41809 /* end confdefs.h. */
41810 $ac_includes_default
41811 #include <$ac_header_dirent>
41812 #ifndef __cplusplus
41819 return closedir (opendir (".")) != 0;
41824 rm -f conftest$ac_exeext
41825 if { (ac_try="$ac_link"
41826 case "(($ac_try" in
41827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41828 *) ac_try_echo=$ac_try;;
41830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41831 $as_echo "$ac_try_echo") >&5
41832 (eval "$ac_link") 2>&5
41834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41836 { (case "(($ac_try" in
41837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41838 *) ac_try_echo=$ac_try;;
41840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41841 $as_echo "$ac_try_echo") >&5
41842 (eval "$ac_try") 2>&5
41844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845 (exit $ac_status); }; }; then
41846 ac_cv_func_closedir_void=no
41848 $as_echo "$as_me: program exited with status $ac_status" >&5
41849 $as_echo "$as_me: failed program was:" >&5
41850 sed 's/^/| /' conftest.$ac_ext >&5
41852 ( exit $ac_status )
41853 ac_cv_func_closedir_void=yes
41855 rm -rf conftest.dSYM
41856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41861 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
41862 $as_echo "$ac_cv_func_closedir_void" >&6; }
41863 if test $ac_cv_func_closedir_void = yes; then
41865 cat >>confdefs.h <<\_ACEOF
41866 #define CLOSEDIR_VOID 1
41871 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
41872 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
41873 if test "${ac_cv_func_setpgrp_void+set}" = set; then
41874 $as_echo_n "(cached) " >&6
41876 if test "$cross_compiling" = yes; then
41877 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
41878 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
41879 { (exit 1); exit 1; }; }
41881 cat >conftest.$ac_ext <<_ACEOF
41884 cat confdefs.h >>conftest.$ac_ext
41885 cat >>conftest.$ac_ext <<_ACEOF
41886 /* end confdefs.h. */
41887 $ac_includes_default
41891 /* If this system has a BSD-style setpgrp which takes arguments,
41892 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
41893 exit successfully. */
41894 return setpgrp (1,1) != -1;
41899 rm -f conftest$ac_exeext
41900 if { (ac_try="$ac_link"
41901 case "(($ac_try" in
41902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41903 *) ac_try_echo=$ac_try;;
41905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41906 $as_echo "$ac_try_echo") >&5
41907 (eval "$ac_link") 2>&5
41909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41911 { (case "(($ac_try" in
41912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41913 *) ac_try_echo=$ac_try;;
41915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41916 $as_echo "$ac_try_echo") >&5
41917 (eval "$ac_try") 2>&5
41919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41920 (exit $ac_status); }; }; then
41921 ac_cv_func_setpgrp_void=no
41923 $as_echo "$as_me: program exited with status $ac_status" >&5
41924 $as_echo "$as_me: failed program was:" >&5
41925 sed 's/^/| /' conftest.$ac_ext >&5
41927 ( exit $ac_status )
41928 ac_cv_func_setpgrp_void=yes
41930 rm -rf conftest.dSYM
41931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41936 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
41937 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
41938 if test $ac_cv_func_setpgrp_void = yes; then
41940 cat >>confdefs.h <<\_ACEOF
41941 #define SETPGRP_VOID 1
41945 # AC_FUNC_FNMATCH dnl use local version
41947 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
41948 $as_echo_n "checking for gettext in -lintl... " >&6; }
41949 if test "${ac_cv_lib_intl_gettext+set}" = set; then
41950 $as_echo_n "(cached) " >&6
41952 ac_check_lib_save_LIBS=$LIBS
41953 LIBS="-lintl $LIBS"
41954 cat >conftest.$ac_ext <<_ACEOF
41957 cat confdefs.h >>conftest.$ac_ext
41958 cat >>conftest.$ac_ext <<_ACEOF
41959 /* end confdefs.h. */
41961 /* Override any GCC internal prototype to avoid an error.
41962 Use char because int might match the return type of a GCC
41963 builtin and then its argument prototype would still apply. */
41976 rm -f conftest.$ac_objext conftest$ac_exeext
41977 if { (ac_try="$ac_link"
41978 case "(($ac_try" in
41979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41980 *) ac_try_echo=$ac_try;;
41982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41983 $as_echo "$ac_try_echo") >&5
41984 (eval "$ac_link") 2>conftest.er1
41986 grep -v '^ *+' conftest.er1 >conftest.err
41988 cat conftest.err >&5
41989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41990 (exit $ac_status); } && {
41991 test -z "$ac_c_werror_flag" ||
41992 test ! -s conftest.err
41993 } && test -s conftest$ac_exeext && {
41994 test "$cross_compiling" = yes ||
41995 $as_test_x conftest$ac_exeext
41997 ac_cv_lib_intl_gettext=yes
41999 $as_echo "$as_me: failed program was:" >&5
42000 sed 's/^/| /' conftest.$ac_ext >&5
42002 ac_cv_lib_intl_gettext=no
42005 rm -rf conftest.dSYM
42006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42007 conftest$ac_exeext conftest.$ac_ext
42008 LIBS=$ac_check_lib_save_LIBS
42010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
42011 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
42012 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
42013 LIBS="$LIBS -lintl"
42018 { $as_echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
42019 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
42020 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
42021 $as_echo_n "(cached) " >&6
42023 ac_check_lib_save_LIBS=$LIBS
42025 cat >conftest.$ac_ext <<_ACEOF
42028 cat confdefs.h >>conftest.$ac_ext
42029 cat >>conftest.$ac_ext <<_ACEOF
42030 /* end confdefs.h. */
42032 /* Override any GCC internal prototype to avoid an error.
42033 Use char because int might match the return type of a GCC
42034 builtin and then its argument prototype would still apply. */
42042 return getpwnam ();
42047 rm -f conftest.$ac_objext conftest$ac_exeext
42048 if { (ac_try="$ac_link"
42049 case "(($ac_try" in
42050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42051 *) ac_try_echo=$ac_try;;
42053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42054 $as_echo "$ac_try_echo") >&5
42055 (eval "$ac_link") 2>conftest.er1
42057 grep -v '^ *+' conftest.er1 >conftest.err
42059 cat conftest.err >&5
42060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061 (exit $ac_status); } && {
42062 test -z "$ac_c_werror_flag" ||
42063 test ! -s conftest.err
42064 } && test -s conftest$ac_exeext && {
42065 test "$cross_compiling" = yes ||
42066 $as_test_x conftest$ac_exeext
42068 ac_cv_lib_sun_getpwnam=yes
42070 $as_echo "$as_me: failed program was:" >&5
42071 sed 's/^/| /' conftest.$ac_ext >&5
42073 ac_cv_lib_sun_getpwnam=no
42076 rm -rf conftest.dSYM
42077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42078 conftest$ac_exeext conftest.$ac_ext
42079 LIBS=$ac_check_lib_save_LIBS
42081 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
42082 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
42083 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then
42084 cat >>confdefs.h <<_ACEOF
42085 #define HAVE_LIBSUN 1
42094 for ac_header in zlib.h
42096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42099 $as_echo_n "checking for $ac_header... " >&6; }
42100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42101 $as_echo_n "(cached) " >&6
42103 ac_res=`eval 'as_val=${'$as_ac_Header'}
42104 $as_echo "$as_val"'`
42105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42106 $as_echo "$ac_res" >&6; }
42108 # Is the header compilable?
42109 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42110 $as_echo_n "checking $ac_header usability... " >&6; }
42111 cat >conftest.$ac_ext <<_ACEOF
42114 cat confdefs.h >>conftest.$ac_ext
42115 cat >>conftest.$ac_ext <<_ACEOF
42116 /* end confdefs.h. */
42117 $ac_includes_default
42118 #include <$ac_header>
42120 rm -f conftest.$ac_objext
42121 if { (ac_try="$ac_compile"
42122 case "(($ac_try" in
42123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42124 *) ac_try_echo=$ac_try;;
42126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42127 $as_echo "$ac_try_echo") >&5
42128 (eval "$ac_compile") 2>conftest.er1
42130 grep -v '^ *+' conftest.er1 >conftest.err
42132 cat conftest.err >&5
42133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134 (exit $ac_status); } && {
42135 test -z "$ac_c_werror_flag" ||
42136 test ! -s conftest.err
42137 } && test -s conftest.$ac_objext; then
42138 ac_header_compiler=yes
42140 $as_echo "$as_me: failed program was:" >&5
42141 sed 's/^/| /' conftest.$ac_ext >&5
42143 ac_header_compiler=no
42146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42148 $as_echo "$ac_header_compiler" >&6; }
42150 # Is the header present?
42151 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42152 $as_echo_n "checking $ac_header presence... " >&6; }
42153 cat >conftest.$ac_ext <<_ACEOF
42156 cat confdefs.h >>conftest.$ac_ext
42157 cat >>conftest.$ac_ext <<_ACEOF
42158 /* end confdefs.h. */
42159 #include <$ac_header>
42161 if { (ac_try="$ac_cpp conftest.$ac_ext"
42162 case "(($ac_try" in
42163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42164 *) ac_try_echo=$ac_try;;
42166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42167 $as_echo "$ac_try_echo") >&5
42168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42170 grep -v '^ *+' conftest.er1 >conftest.err
42172 cat conftest.err >&5
42173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42174 (exit $ac_status); } >/dev/null && {
42175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42176 test ! -s conftest.err
42178 ac_header_preproc=yes
42180 $as_echo "$as_me: failed program was:" >&5
42181 sed 's/^/| /' conftest.$ac_ext >&5
42183 ac_header_preproc=no
42186 rm -f conftest.err conftest.$ac_ext
42187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42188 $as_echo "$ac_header_preproc" >&6; }
42190 # So? What about this header?
42191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42194 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42197 ac_header_preproc=yes
42200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42201 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42203 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42205 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42207 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42209 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42211 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42215 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42216 $as_echo_n "checking for $ac_header... " >&6; }
42217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42218 $as_echo_n "(cached) " >&6
42220 eval "$as_ac_Header=\$ac_header_preproc"
42222 ac_res=`eval 'as_val=${'$as_ac_Header'}
42223 $as_echo "$as_val"'`
42224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42225 $as_echo "$ac_res" >&6; }
42228 as_val=`eval 'as_val=${'$as_ac_Header'}
42229 $as_echo "$as_val"'`
42230 if test "x$as_val" = x""yes; then
42231 cat >>confdefs.h <<_ACEOF
42232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42239 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
42240 $as_echo_n "checking for deflate in -lz... " >&6; }
42241 if test "${ac_cv_lib_z_deflate+set}" = set; then
42242 $as_echo_n "(cached) " >&6
42244 ac_check_lib_save_LIBS=$LIBS
42246 cat >conftest.$ac_ext <<_ACEOF
42249 cat confdefs.h >>conftest.$ac_ext
42250 cat >>conftest.$ac_ext <<_ACEOF
42251 /* end confdefs.h. */
42253 /* Override any GCC internal prototype to avoid an error.
42254 Use char because int might match the return type of a GCC
42255 builtin and then its argument prototype would still apply. */
42268 rm -f conftest.$ac_objext conftest$ac_exeext
42269 if { (ac_try="$ac_link"
42270 case "(($ac_try" in
42271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42272 *) ac_try_echo=$ac_try;;
42274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42275 $as_echo "$ac_try_echo") >&5
42276 (eval "$ac_link") 2>conftest.er1
42278 grep -v '^ *+' conftest.er1 >conftest.err
42280 cat conftest.err >&5
42281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42282 (exit $ac_status); } && {
42283 test -z "$ac_c_werror_flag" ||
42284 test ! -s conftest.err
42285 } && test -s conftest$ac_exeext && {
42286 test "$cross_compiling" = yes ||
42287 $as_test_x conftest$ac_exeext
42289 ac_cv_lib_z_deflate=yes
42291 $as_echo "$as_me: failed program was:" >&5
42292 sed 's/^/| /' conftest.$ac_ext >&5
42294 ac_cv_lib_z_deflate=no
42297 rm -rf conftest.dSYM
42298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42299 conftest$ac_exeext conftest.$ac_ext
42300 LIBS=$ac_check_lib_save_LIBS
42302 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
42303 $as_echo "$ac_cv_lib_z_deflate" >&6; }
42304 if test "x$ac_cv_lib_z_deflate" = x""yes; then
42309 if test x$ZLIBS = x-lz; then
42310 cat >>confdefs.h <<\_ACEOF
42311 #define HAVE_LIBZ 1
42319 # Check whether --enable-acl was given.
42320 if test "${enable_acl+set}" = set; then
42321 enableval=$enable_acl;
42322 if test x$enableval = xyes; then
42324 elif test x$enableval = xno; then
42333 have_extended_acl=no
42334 if test x$support_acl = xyes -o x$support_acl = xauto; then
42335 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42336 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42337 $as_echo_n "checking for sys/acl.h... " >&6; }
42338 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42339 $as_echo_n "(cached) " >&6
42341 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42342 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42344 # Is the header compilable?
42345 { $as_echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
42346 $as_echo_n "checking sys/acl.h usability... " >&6; }
42347 cat >conftest.$ac_ext <<_ACEOF
42350 cat confdefs.h >>conftest.$ac_ext
42351 cat >>conftest.$ac_ext <<_ACEOF
42352 /* end confdefs.h. */
42353 $ac_includes_default
42354 #include <sys/acl.h>
42356 rm -f conftest.$ac_objext
42357 if { (ac_try="$ac_compile"
42358 case "(($ac_try" in
42359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42360 *) ac_try_echo=$ac_try;;
42362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42363 $as_echo "$ac_try_echo") >&5
42364 (eval "$ac_compile") 2>conftest.er1
42366 grep -v '^ *+' conftest.er1 >conftest.err
42368 cat conftest.err >&5
42369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42370 (exit $ac_status); } && {
42371 test -z "$ac_c_werror_flag" ||
42372 test ! -s conftest.err
42373 } && test -s conftest.$ac_objext; then
42374 ac_header_compiler=yes
42376 $as_echo "$as_me: failed program was:" >&5
42377 sed 's/^/| /' conftest.$ac_ext >&5
42379 ac_header_compiler=no
42382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42383 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42384 $as_echo "$ac_header_compiler" >&6; }
42386 # Is the header present?
42387 { $as_echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
42388 $as_echo_n "checking sys/acl.h presence... " >&6; }
42389 cat >conftest.$ac_ext <<_ACEOF
42392 cat confdefs.h >>conftest.$ac_ext
42393 cat >>conftest.$ac_ext <<_ACEOF
42394 /* end confdefs.h. */
42395 #include <sys/acl.h>
42397 if { (ac_try="$ac_cpp conftest.$ac_ext"
42398 case "(($ac_try" in
42399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42400 *) ac_try_echo=$ac_try;;
42402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42403 $as_echo "$ac_try_echo") >&5
42404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42406 grep -v '^ *+' conftest.er1 >conftest.err
42408 cat conftest.err >&5
42409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410 (exit $ac_status); } >/dev/null && {
42411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42412 test ! -s conftest.err
42414 ac_header_preproc=yes
42416 $as_echo "$as_me: failed program was:" >&5
42417 sed 's/^/| /' conftest.$ac_ext >&5
42419 ac_header_preproc=no
42422 rm -f conftest.err conftest.$ac_ext
42423 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42424 $as_echo "$ac_header_preproc" >&6; }
42426 # So? What about this header?
42427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42429 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
42430 $as_echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42431 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
42432 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
42433 ac_header_preproc=yes
42436 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
42437 $as_echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
42438 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
42439 $as_echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
42440 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
42441 $as_echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
42442 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
42443 $as_echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
42444 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
42445 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
42446 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
42447 $as_echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
42451 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42452 $as_echo_n "checking for sys/acl.h... " >&6; }
42453 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42454 $as_echo_n "(cached) " >&6
42456 ac_cv_header_sys_acl_h=$ac_header_preproc
42458 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42459 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42462 if test "x$ac_cv_header_sys_acl_h" = x""yes; then
42464 cat >>confdefs.h <<\_ACEOF
42465 #define HAVE_SYS_ACL_H 1
42471 { $as_echo "$as_me:$LINENO: checking for acl_get_file" >&5
42472 $as_echo_n "checking for acl_get_file... " >&6; }
42473 if test "${ac_cv_func_acl_get_file+set}" = set; then
42474 $as_echo_n "(cached) " >&6
42476 cat >conftest.$ac_ext <<_ACEOF
42479 cat confdefs.h >>conftest.$ac_ext
42480 cat >>conftest.$ac_ext <<_ACEOF
42481 /* end confdefs.h. */
42482 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
42483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42484 #define acl_get_file innocuous_acl_get_file
42486 /* System header to define __stub macros and hopefully few prototypes,
42487 which can conflict with char acl_get_file (); below.
42488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42489 <limits.h> exists even on freestanding compilers. */
42492 # include <limits.h>
42494 # include <assert.h>
42497 #undef acl_get_file
42499 /* Override any GCC internal prototype to avoid an error.
42500 Use char because int might match the return type of a GCC
42501 builtin and then its argument prototype would still apply. */
42505 char acl_get_file ();
42506 /* The GNU C library defines this for functions which it implements
42507 to always fail with ENOSYS. Some functions are actually named
42508 something starting with __ and the normal name is an alias. */
42509 #if defined __stub_acl_get_file || defined __stub___acl_get_file
42516 return acl_get_file ();
42521 rm -f conftest.$ac_objext conftest$ac_exeext
42522 if { (ac_try="$ac_link"
42523 case "(($ac_try" in
42524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42525 *) ac_try_echo=$ac_try;;
42527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42528 $as_echo "$ac_try_echo") >&5
42529 (eval "$ac_link") 2>conftest.er1
42531 grep -v '^ *+' conftest.er1 >conftest.err
42533 cat conftest.err >&5
42534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42535 (exit $ac_status); } && {
42536 test -z "$ac_c_werror_flag" ||
42537 test ! -s conftest.err
42538 } && test -s conftest$ac_exeext && {
42539 test "$cross_compiling" = yes ||
42540 $as_test_x conftest$ac_exeext
42542 ac_cv_func_acl_get_file=yes
42544 $as_echo "$as_me: failed program was:" >&5
42545 sed 's/^/| /' conftest.$ac_ext >&5
42547 ac_cv_func_acl_get_file=no
42550 rm -rf conftest.dSYM
42551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42552 conftest$ac_exeext conftest.$ac_ext
42554 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
42555 $as_echo "$ac_cv_func_acl_get_file" >&6; }
42556 if test "x$ac_cv_func_acl_get_file" = x""yes; then
42562 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
42563 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
42564 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
42565 $as_echo_n "(cached) " >&6
42567 ac_check_lib_save_LIBS=$LIBS
42569 cat >conftest.$ac_ext <<_ACEOF
42572 cat confdefs.h >>conftest.$ac_ext
42573 cat >>conftest.$ac_ext <<_ACEOF
42574 /* end confdefs.h. */
42576 /* Override any GCC internal prototype to avoid an error.
42577 Use char because int might match the return type of a GCC
42578 builtin and then its argument prototype would still apply. */
42582 char acl_get_file ();
42586 return acl_get_file ();
42591 rm -f conftest.$ac_objext conftest$ac_exeext
42592 if { (ac_try="$ac_link"
42593 case "(($ac_try" in
42594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42595 *) ac_try_echo=$ac_try;;
42597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42598 $as_echo "$ac_try_echo") >&5
42599 (eval "$ac_link") 2>conftest.er1
42601 grep -v '^ *+' conftest.er1 >conftest.err
42603 cat conftest.err >&5
42604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42605 (exit $ac_status); } && {
42606 test -z "$ac_c_werror_flag" ||
42607 test ! -s conftest.err
42608 } && test -s conftest$ac_exeext && {
42609 test "$cross_compiling" = yes ||
42610 $as_test_x conftest$ac_exeext
42612 ac_cv_lib_acl_acl_get_file=yes
42614 $as_echo "$as_me: failed program was:" >&5
42615 sed 's/^/| /' conftest.$ac_ext >&5
42617 ac_cv_lib_acl_acl_get_file=no
42620 rm -rf conftest.dSYM
42621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42622 conftest$ac_exeext conftest.$ac_ext
42623 LIBS=$ac_check_lib_save_LIBS
42625 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
42626 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
42627 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
42630 FDLIBS="-lacl $FDLIBS"
42634 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
42635 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
42636 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
42637 $as_echo_n "(cached) " >&6
42639 ac_check_lib_save_LIBS=$LIBS
42640 LIBS="-lpacl $LIBS"
42641 cat >conftest.$ac_ext <<_ACEOF
42644 cat confdefs.h >>conftest.$ac_ext
42645 cat >>conftest.$ac_ext <<_ACEOF
42646 /* end confdefs.h. */
42648 /* Override any GCC internal prototype to avoid an error.
42649 Use char because int might match the return type of a GCC
42650 builtin and then its argument prototype would still apply. */
42654 char acl_get_file ();
42658 return acl_get_file ();
42663 rm -f conftest.$ac_objext conftest$ac_exeext
42664 if { (ac_try="$ac_link"
42665 case "(($ac_try" in
42666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42667 *) ac_try_echo=$ac_try;;
42669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42670 $as_echo "$ac_try_echo") >&5
42671 (eval "$ac_link") 2>conftest.er1
42673 grep -v '^ *+' conftest.er1 >conftest.err
42675 cat conftest.err >&5
42676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42677 (exit $ac_status); } && {
42678 test -z "$ac_c_werror_flag" ||
42679 test ! -s conftest.err
42680 } && test -s conftest$ac_exeext && {
42681 test "$cross_compiling" = yes ||
42682 $as_test_x conftest$ac_exeext
42684 ac_cv_lib_pacl_acl_get_file=yes
42686 $as_echo "$as_me: failed program was:" >&5
42687 sed 's/^/| /' conftest.$ac_ext >&5
42689 ac_cv_lib_pacl_acl_get_file=no
42692 rm -rf conftest.dSYM
42693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42694 conftest$ac_exeext conftest.$ac_ext
42695 LIBS=$ac_check_lib_save_LIBS
42697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
42698 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
42699 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then
42702 FDLIBS="-lpacl $FDLIBS"
42706 { $as_echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
42707 $as_echo_n "checking for acltotext in -lsec... " >&6; }
42708 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
42709 $as_echo_n "(cached) " >&6
42711 ac_check_lib_save_LIBS=$LIBS
42713 cat >conftest.$ac_ext <<_ACEOF
42716 cat confdefs.h >>conftest.$ac_ext
42717 cat >>conftest.$ac_ext <<_ACEOF
42718 /* end confdefs.h. */
42720 /* Override any GCC internal prototype to avoid an error.
42721 Use char because int might match the return type of a GCC
42722 builtin and then its argument prototype would still apply. */
42730 return acltotext ();
42735 rm -f conftest.$ac_objext conftest$ac_exeext
42736 if { (ac_try="$ac_link"
42737 case "(($ac_try" in
42738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42739 *) ac_try_echo=$ac_try;;
42741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42742 $as_echo "$ac_try_echo") >&5
42743 (eval "$ac_link") 2>conftest.er1
42745 grep -v '^ *+' conftest.er1 >conftest.err
42747 cat conftest.err >&5
42748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42749 (exit $ac_status); } && {
42750 test -z "$ac_c_werror_flag" ||
42751 test ! -s conftest.err
42752 } && test -s conftest$ac_exeext && {
42753 test "$cross_compiling" = yes ||
42754 $as_test_x conftest$ac_exeext
42756 ac_cv_lib_sec_acltotext=yes
42758 $as_echo "$as_me: failed program was:" >&5
42759 sed 's/^/| /' conftest.$ac_ext >&5
42761 ac_cv_lib_sec_acltotext=no
42764 rm -rf conftest.dSYM
42765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42766 conftest$ac_exeext conftest.$ac_ext
42767 LIBS=$ac_check_lib_save_LIBS
42769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
42770 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
42771 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then
42774 FDLIBS="-lsec $FDLIBS"
42776 { $as_echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
42777 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
42778 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
42779 $as_echo_n "(cached) " >&6
42781 ac_check_lib_save_LIBS=$LIBS
42783 cat >conftest.$ac_ext <<_ACEOF
42786 cat confdefs.h >>conftest.$ac_ext
42787 cat >>conftest.$ac_ext <<_ACEOF
42788 /* end confdefs.h. */
42790 /* Override any GCC internal prototype to avoid an error.
42791 Use char because int might match the return type of a GCC
42792 builtin and then its argument prototype would still apply. */
42796 char acl_totext ();
42800 return acl_totext ();
42805 rm -f conftest.$ac_objext conftest$ac_exeext
42806 if { (ac_try="$ac_link"
42807 case "(($ac_try" in
42808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42809 *) ac_try_echo=$ac_try;;
42811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42812 $as_echo "$ac_try_echo") >&5
42813 (eval "$ac_link") 2>conftest.er1
42815 grep -v '^ *+' conftest.er1 >conftest.err
42817 cat conftest.err >&5
42818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819 (exit $ac_status); } && {
42820 test -z "$ac_c_werror_flag" ||
42821 test ! -s conftest.err
42822 } && test -s conftest$ac_exeext && {
42823 test "$cross_compiling" = yes ||
42824 $as_test_x conftest$ac_exeext
42826 ac_cv_lib_sec_acl_totext=yes
42828 $as_echo "$as_me: failed program was:" >&5
42829 sed 's/^/| /' conftest.$ac_ext >&5
42831 ac_cv_lib_sec_acl_totext=no
42834 rm -rf conftest.dSYM
42835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42836 conftest$ac_exeext conftest.$ac_ext
42837 LIBS=$ac_check_lib_save_LIBS
42839 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
42840 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
42841 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then
42843 have_extended_acl=yes
42865 if test x$support_acl = xyes -a $have_acl != yes; then
42866 { { $as_echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
42867 please either load the acl libraries or rerun configure without --enable-acl" >&5
42868 $as_echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
42869 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
42870 { (exit 1); exit 1; }; }
42872 if test $have_acl = yes; then
42874 cat >>confdefs.h <<\_ACEOF
42880 if test $have_extended_acl = yes; then
42882 cat >>confdefs.h <<\_ACEOF
42883 #define HAVE_EXTENDED_ACL 1
42891 # Check whether --enable-xattr was given.
42892 if test "${enable_xattr+set}" = set; then
42893 enableval=$enable_xattr;
42894 if test x$enableval = xyes; then
42896 elif test x$enableval = xno; then
42905 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
42906 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42907 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42908 $as_echo_n "checking for sys/extattr.h... " >&6; }
42909 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42910 $as_echo_n "(cached) " >&6
42912 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42913 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
42915 # Is the header compilable?
42916 { $as_echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
42917 $as_echo_n "checking sys/extattr.h usability... " >&6; }
42918 cat >conftest.$ac_ext <<_ACEOF
42921 cat confdefs.h >>conftest.$ac_ext
42922 cat >>conftest.$ac_ext <<_ACEOF
42923 /* end confdefs.h. */
42924 $ac_includes_default
42925 #include <sys/extattr.h>
42927 rm -f conftest.$ac_objext
42928 if { (ac_try="$ac_compile"
42929 case "(($ac_try" in
42930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42931 *) ac_try_echo=$ac_try;;
42933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42934 $as_echo "$ac_try_echo") >&5
42935 (eval "$ac_compile") 2>conftest.er1
42937 grep -v '^ *+' conftest.er1 >conftest.err
42939 cat conftest.err >&5
42940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941 (exit $ac_status); } && {
42942 test -z "$ac_c_werror_flag" ||
42943 test ! -s conftest.err
42944 } && test -s conftest.$ac_objext; then
42945 ac_header_compiler=yes
42947 $as_echo "$as_me: failed program was:" >&5
42948 sed 's/^/| /' conftest.$ac_ext >&5
42950 ac_header_compiler=no
42953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42955 $as_echo "$ac_header_compiler" >&6; }
42957 # Is the header present?
42958 { $as_echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
42959 $as_echo_n "checking sys/extattr.h presence... " >&6; }
42960 cat >conftest.$ac_ext <<_ACEOF
42963 cat confdefs.h >>conftest.$ac_ext
42964 cat >>conftest.$ac_ext <<_ACEOF
42965 /* end confdefs.h. */
42966 #include <sys/extattr.h>
42968 if { (ac_try="$ac_cpp conftest.$ac_ext"
42969 case "(($ac_try" in
42970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42971 *) ac_try_echo=$ac_try;;
42973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42974 $as_echo "$ac_try_echo") >&5
42975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42977 grep -v '^ *+' conftest.er1 >conftest.err
42979 cat conftest.err >&5
42980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981 (exit $ac_status); } >/dev/null && {
42982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42983 test ! -s conftest.err
42985 ac_header_preproc=yes
42987 $as_echo "$as_me: failed program was:" >&5
42988 sed 's/^/| /' conftest.$ac_ext >&5
42990 ac_header_preproc=no
42993 rm -f conftest.err conftest.$ac_ext
42994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42995 $as_echo "$ac_header_preproc" >&6; }
42997 # So? What about this header?
42998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43000 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43001 $as_echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43002 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
43003 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
43004 ac_header_preproc=yes
43007 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
43008 $as_echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
43009 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
43010 $as_echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
43011 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
43012 $as_echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
43013 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
43014 $as_echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
43015 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
43016 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
43017 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
43018 $as_echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
43022 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
43023 $as_echo_n "checking for sys/extattr.h... " >&6; }
43024 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43025 $as_echo_n "(cached) " >&6
43027 ac_cv_header_sys_extattr_h=$ac_header_preproc
43029 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
43030 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
43033 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then
43035 cat >>confdefs.h <<\_ACEOF
43036 #define HAVE_SYS_EXTATTR_H 1
43042 if test "${ac_cv_header_libutil_h+set}" = set; then
43043 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43044 $as_echo_n "checking for libutil.h... " >&6; }
43045 if test "${ac_cv_header_libutil_h+set}" = set; then
43046 $as_echo_n "(cached) " >&6
43048 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43049 $as_echo "$ac_cv_header_libutil_h" >&6; }
43051 # Is the header compilable?
43052 { $as_echo "$as_me:$LINENO: checking libutil.h usability" >&5
43053 $as_echo_n "checking libutil.h usability... " >&6; }
43054 cat >conftest.$ac_ext <<_ACEOF
43057 cat confdefs.h >>conftest.$ac_ext
43058 cat >>conftest.$ac_ext <<_ACEOF
43059 /* end confdefs.h. */
43060 $ac_includes_default
43061 #include <libutil.h>
43063 rm -f conftest.$ac_objext
43064 if { (ac_try="$ac_compile"
43065 case "(($ac_try" in
43066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43067 *) ac_try_echo=$ac_try;;
43069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43070 $as_echo "$ac_try_echo") >&5
43071 (eval "$ac_compile") 2>conftest.er1
43073 grep -v '^ *+' conftest.er1 >conftest.err
43075 cat conftest.err >&5
43076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43077 (exit $ac_status); } && {
43078 test -z "$ac_c_werror_flag" ||
43079 test ! -s conftest.err
43080 } && test -s conftest.$ac_objext; then
43081 ac_header_compiler=yes
43083 $as_echo "$as_me: failed program was:" >&5
43084 sed 's/^/| /' conftest.$ac_ext >&5
43086 ac_header_compiler=no
43089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43090 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43091 $as_echo "$ac_header_compiler" >&6; }
43093 # Is the header present?
43094 { $as_echo "$as_me:$LINENO: checking libutil.h presence" >&5
43095 $as_echo_n "checking libutil.h presence... " >&6; }
43096 cat >conftest.$ac_ext <<_ACEOF
43099 cat confdefs.h >>conftest.$ac_ext
43100 cat >>conftest.$ac_ext <<_ACEOF
43101 /* end confdefs.h. */
43102 #include <libutil.h>
43104 if { (ac_try="$ac_cpp conftest.$ac_ext"
43105 case "(($ac_try" in
43106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43107 *) ac_try_echo=$ac_try;;
43109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43110 $as_echo "$ac_try_echo") >&5
43111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43113 grep -v '^ *+' conftest.er1 >conftest.err
43115 cat conftest.err >&5
43116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43117 (exit $ac_status); } >/dev/null && {
43118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43119 test ! -s conftest.err
43121 ac_header_preproc=yes
43123 $as_echo "$as_me: failed program was:" >&5
43124 sed 's/^/| /' conftest.$ac_ext >&5
43126 ac_header_preproc=no
43129 rm -f conftest.err conftest.$ac_ext
43130 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43131 $as_echo "$ac_header_preproc" >&6; }
43133 # So? What about this header?
43134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43136 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
43137 $as_echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43138 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
43139 $as_echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
43140 ac_header_preproc=yes
43143 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
43144 $as_echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
43145 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
43146 $as_echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
43147 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
43148 $as_echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
43149 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
43150 $as_echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
43151 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
43152 $as_echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
43153 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
43154 $as_echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
43158 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43159 $as_echo_n "checking for libutil.h... " >&6; }
43160 if test "${ac_cv_header_libutil_h+set}" = set; then
43161 $as_echo_n "(cached) " >&6
43163 ac_cv_header_libutil_h=$ac_header_preproc
43165 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43166 $as_echo "$ac_cv_header_libutil_h" >&6; }
43169 if test "x$ac_cv_header_libutil_h" = x""yes; then
43171 cat >>confdefs.h <<\_ACEOF
43172 #define HAVE_LIBUTIL_H 1
43181 for ac_func in extattr_get_link extattr_set_link extattr_list_link
43183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43184 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43185 $as_echo_n "checking for $ac_func... " >&6; }
43186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43187 $as_echo_n "(cached) " >&6
43189 cat >conftest.$ac_ext <<_ACEOF
43192 cat confdefs.h >>conftest.$ac_ext
43193 cat >>conftest.$ac_ext <<_ACEOF
43194 /* end confdefs.h. */
43195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43197 #define $ac_func innocuous_$ac_func
43199 /* System header to define __stub macros and hopefully few prototypes,
43200 which can conflict with char $ac_func (); below.
43201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43202 <limits.h> exists even on freestanding compilers. */
43205 # include <limits.h>
43207 # include <assert.h>
43212 /* Override any GCC internal prototype to avoid an error.
43213 Use char because int might match the return type of a GCC
43214 builtin and then its argument prototype would still apply. */
43219 /* The GNU C library defines this for functions which it implements
43220 to always fail with ENOSYS. Some functions are actually named
43221 something starting with __ and the normal name is an alias. */
43222 #if defined __stub_$ac_func || defined __stub___$ac_func
43229 return $ac_func ();
43234 rm -f conftest.$ac_objext conftest$ac_exeext
43235 if { (ac_try="$ac_link"
43236 case "(($ac_try" in
43237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43238 *) ac_try_echo=$ac_try;;
43240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43241 $as_echo "$ac_try_echo") >&5
43242 (eval "$ac_link") 2>conftest.er1
43244 grep -v '^ *+' conftest.er1 >conftest.err
43246 cat conftest.err >&5
43247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43248 (exit $ac_status); } && {
43249 test -z "$ac_c_werror_flag" ||
43250 test ! -s conftest.err
43251 } && test -s conftest$ac_exeext && {
43252 test "$cross_compiling" = yes ||
43253 $as_test_x conftest$ac_exeext
43255 eval "$as_ac_var=yes"
43257 $as_echo "$as_me: failed program was:" >&5
43258 sed 's/^/| /' conftest.$ac_ext >&5
43260 eval "$as_ac_var=no"
43263 rm -rf conftest.dSYM
43264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43265 conftest$ac_exeext conftest.$ac_ext
43267 ac_res=`eval 'as_val=${'$as_ac_var'}
43268 $as_echo "$as_val"'`
43269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43270 $as_echo "$ac_res" >&6; }
43271 as_val=`eval 'as_val=${'$as_ac_var'}
43272 $as_echo "$as_val"'`
43273 if test "x$as_val" = x""yes; then
43274 cat >>confdefs.h <<_ACEOF
43275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43280 cat >>confdefs.h <<\_ACEOF
43281 #define HAVE_EXTATTR_GET_LINK 1
43285 cat >>confdefs.h <<\_ACEOF
43286 #define HAVE_EXTATTR_SET_LINK 1
43290 cat >>confdefs.h <<\_ACEOF
43291 #define HAVE_EXTATTR_LIST_LINK 1
43300 if test $have_xattr = no; then
43304 for ac_func in extattr_get_file extattr_set_file extattr_list_file
43306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43307 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43308 $as_echo_n "checking for $ac_func... " >&6; }
43309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43310 $as_echo_n "(cached) " >&6
43312 cat >conftest.$ac_ext <<_ACEOF
43315 cat confdefs.h >>conftest.$ac_ext
43316 cat >>conftest.$ac_ext <<_ACEOF
43317 /* end confdefs.h. */
43318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43320 #define $ac_func innocuous_$ac_func
43322 /* System header to define __stub macros and hopefully few prototypes,
43323 which can conflict with char $ac_func (); below.
43324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43325 <limits.h> exists even on freestanding compilers. */
43328 # include <limits.h>
43330 # include <assert.h>
43335 /* Override any GCC internal prototype to avoid an error.
43336 Use char because int might match the return type of a GCC
43337 builtin and then its argument prototype would still apply. */
43342 /* The GNU C library defines this for functions which it implements
43343 to always fail with ENOSYS. Some functions are actually named
43344 something starting with __ and the normal name is an alias. */
43345 #if defined __stub_$ac_func || defined __stub___$ac_func
43352 return $ac_func ();
43357 rm -f conftest.$ac_objext conftest$ac_exeext
43358 if { (ac_try="$ac_link"
43359 case "(($ac_try" in
43360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43361 *) ac_try_echo=$ac_try;;
43363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43364 $as_echo "$ac_try_echo") >&5
43365 (eval "$ac_link") 2>conftest.er1
43367 grep -v '^ *+' conftest.er1 >conftest.err
43369 cat conftest.err >&5
43370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43371 (exit $ac_status); } && {
43372 test -z "$ac_c_werror_flag" ||
43373 test ! -s conftest.err
43374 } && test -s conftest$ac_exeext && {
43375 test "$cross_compiling" = yes ||
43376 $as_test_x conftest$ac_exeext
43378 eval "$as_ac_var=yes"
43380 $as_echo "$as_me: failed program was:" >&5
43381 sed 's/^/| /' conftest.$ac_ext >&5
43383 eval "$as_ac_var=no"
43386 rm -rf conftest.dSYM
43387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43388 conftest$ac_exeext conftest.$ac_ext
43390 ac_res=`eval 'as_val=${'$as_ac_var'}
43391 $as_echo "$as_val"'`
43392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43393 $as_echo "$ac_res" >&6; }
43394 as_val=`eval 'as_val=${'$as_ac_var'}
43395 $as_echo "$as_val"'`
43396 if test "x$as_val" = x""yes; then
43397 cat >>confdefs.h <<_ACEOF
43398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43403 cat >>confdefs.h <<\_ACEOF
43404 #define HAVE_EXTATTR_GET_FILE 1
43408 cat >>confdefs.h <<\_ACEOF
43409 #define HAVE_EXTATTR_SET_FILE 1
43413 cat >>confdefs.h <<\_ACEOF
43414 #define HAVE_EXTATTR_LIST_FILE 1
43424 if test $have_xattr = yes; then
43425 have_extattr_string_in_libc=no
43428 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
43430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43431 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43432 $as_echo_n "checking for $ac_func... " >&6; }
43433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43434 $as_echo_n "(cached) " >&6
43436 cat >conftest.$ac_ext <<_ACEOF
43439 cat confdefs.h >>conftest.$ac_ext
43440 cat >>conftest.$ac_ext <<_ACEOF
43441 /* end confdefs.h. */
43442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43444 #define $ac_func innocuous_$ac_func
43446 /* System header to define __stub macros and hopefully few prototypes,
43447 which can conflict with char $ac_func (); below.
43448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43449 <limits.h> exists even on freestanding compilers. */
43452 # include <limits.h>
43454 # include <assert.h>
43459 /* Override any GCC internal prototype to avoid an error.
43460 Use char because int might match the return type of a GCC
43461 builtin and then its argument prototype would still apply. */
43466 /* The GNU C library defines this for functions which it implements
43467 to always fail with ENOSYS. Some functions are actually named
43468 something starting with __ and the normal name is an alias. */
43469 #if defined __stub_$ac_func || defined __stub___$ac_func
43476 return $ac_func ();
43481 rm -f conftest.$ac_objext conftest$ac_exeext
43482 if { (ac_try="$ac_link"
43483 case "(($ac_try" in
43484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43485 *) ac_try_echo=$ac_try;;
43487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43488 $as_echo "$ac_try_echo") >&5
43489 (eval "$ac_link") 2>conftest.er1
43491 grep -v '^ *+' conftest.er1 >conftest.err
43493 cat conftest.err >&5
43494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43495 (exit $ac_status); } && {
43496 test -z "$ac_c_werror_flag" ||
43497 test ! -s conftest.err
43498 } && test -s conftest$ac_exeext && {
43499 test "$cross_compiling" = yes ||
43500 $as_test_x conftest$ac_exeext
43502 eval "$as_ac_var=yes"
43504 $as_echo "$as_me: failed program was:" >&5
43505 sed 's/^/| /' conftest.$ac_ext >&5
43507 eval "$as_ac_var=no"
43510 rm -rf conftest.dSYM
43511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43512 conftest$ac_exeext conftest.$ac_ext
43514 ac_res=`eval 'as_val=${'$as_ac_var'}
43515 $as_echo "$as_val"'`
43516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43517 $as_echo "$ac_res" >&6; }
43518 as_val=`eval 'as_val=${'$as_ac_var'}
43519 $as_echo "$as_val"'`
43520 if test "x$as_val" = x""yes; then
43521 cat >>confdefs.h <<_ACEOF
43522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43525 have_extattr_string_in_libc=yes
43527 cat >>confdefs.h <<\_ACEOF
43528 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43532 cat >>confdefs.h <<\_ACEOF
43533 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43542 if test $have_extattr_string_in_libc = no; then
43543 { $as_echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
43544 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
43545 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
43546 $as_echo_n "(cached) " >&6
43548 ac_check_lib_save_LIBS=$LIBS
43549 LIBS="-lutil $LIBS"
43550 cat >conftest.$ac_ext <<_ACEOF
43553 cat confdefs.h >>conftest.$ac_ext
43554 cat >>conftest.$ac_ext <<_ACEOF
43555 /* end confdefs.h. */
43557 /* Override any GCC internal prototype to avoid an error.
43558 Use char because int might match the return type of a GCC
43559 builtin and then its argument prototype would still apply. */
43563 char extattr_namespace_to_string extattr_string_to_namespace ();
43567 return extattr_namespace_to_string extattr_string_to_namespace ();
43572 rm -f conftest.$ac_objext conftest$ac_exeext
43573 if { (ac_try="$ac_link"
43574 case "(($ac_try" in
43575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43576 *) ac_try_echo=$ac_try;;
43578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43579 $as_echo "$ac_try_echo") >&5
43580 (eval "$ac_link") 2>conftest.er1
43582 grep -v '^ *+' conftest.er1 >conftest.err
43584 cat conftest.err >&5
43585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43586 (exit $ac_status); } && {
43587 test -z "$ac_c_werror_flag" ||
43588 test ! -s conftest.err
43589 } && test -s conftest$ac_exeext && {
43590 test "$cross_compiling" = yes ||
43591 $as_test_x conftest$ac_exeext
43593 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
43595 $as_echo "$as_me: failed program was:" >&5
43596 sed 's/^/| /' conftest.$ac_ext >&5
43598 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
43601 rm -rf conftest.dSYM
43602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43603 conftest$ac_exeext conftest.$ac_ext
43604 LIBS=$ac_check_lib_save_LIBS
43606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
43607 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
43608 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then
43611 cat >>confdefs.h <<\_ACEOF
43612 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43616 cat >>confdefs.h <<\_ACEOF
43617 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43620 FDLIBS="-lutil $FDLIBS"
43628 if test $have_xattr = no; then
43629 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43630 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43631 $as_echo_n "checking for sys/xattr.h... " >&6; }
43632 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43633 $as_echo_n "(cached) " >&6
43635 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43636 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
43638 # Is the header compilable?
43639 { $as_echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
43640 $as_echo_n "checking sys/xattr.h usability... " >&6; }
43641 cat >conftest.$ac_ext <<_ACEOF
43644 cat confdefs.h >>conftest.$ac_ext
43645 cat >>conftest.$ac_ext <<_ACEOF
43646 /* end confdefs.h. */
43647 $ac_includes_default
43648 #include <sys/xattr.h>
43650 rm -f conftest.$ac_objext
43651 if { (ac_try="$ac_compile"
43652 case "(($ac_try" in
43653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43654 *) ac_try_echo=$ac_try;;
43656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43657 $as_echo "$ac_try_echo") >&5
43658 (eval "$ac_compile") 2>conftest.er1
43660 grep -v '^ *+' conftest.er1 >conftest.err
43662 cat conftest.err >&5
43663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43664 (exit $ac_status); } && {
43665 test -z "$ac_c_werror_flag" ||
43666 test ! -s conftest.err
43667 } && test -s conftest.$ac_objext; then
43668 ac_header_compiler=yes
43670 $as_echo "$as_me: failed program was:" >&5
43671 sed 's/^/| /' conftest.$ac_ext >&5
43673 ac_header_compiler=no
43676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43677 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43678 $as_echo "$ac_header_compiler" >&6; }
43680 # Is the header present?
43681 { $as_echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
43682 $as_echo_n "checking sys/xattr.h presence... " >&6; }
43683 cat >conftest.$ac_ext <<_ACEOF
43686 cat confdefs.h >>conftest.$ac_ext
43687 cat >>conftest.$ac_ext <<_ACEOF
43688 /* end confdefs.h. */
43689 #include <sys/xattr.h>
43691 if { (ac_try="$ac_cpp conftest.$ac_ext"
43692 case "(($ac_try" in
43693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43694 *) ac_try_echo=$ac_try;;
43696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43697 $as_echo "$ac_try_echo") >&5
43698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43700 grep -v '^ *+' conftest.er1 >conftest.err
43702 cat conftest.err >&5
43703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43704 (exit $ac_status); } >/dev/null && {
43705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43706 test ! -s conftest.err
43708 ac_header_preproc=yes
43710 $as_echo "$as_me: failed program was:" >&5
43711 sed 's/^/| /' conftest.$ac_ext >&5
43713 ac_header_preproc=no
43716 rm -f conftest.err conftest.$ac_ext
43717 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43718 $as_echo "$ac_header_preproc" >&6; }
43720 # So? What about this header?
43721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43723 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43724 $as_echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43725 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
43726 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
43727 ac_header_preproc=yes
43730 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
43731 $as_echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
43732 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
43733 $as_echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
43734 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
43735 $as_echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
43736 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
43737 $as_echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
43738 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
43739 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
43740 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
43741 $as_echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
43745 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43746 $as_echo_n "checking for sys/xattr.h... " >&6; }
43747 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43748 $as_echo_n "(cached) " >&6
43750 ac_cv_header_sys_xattr_h=$ac_header_preproc
43752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43753 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
43756 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then
43758 cat >>confdefs.h <<\_ACEOF
43759 #define HAVE_SYS_XATTR_H 1
43768 for ac_func in llistxattr lgetxattr lsetxattr
43770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43771 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43772 $as_echo_n "checking for $ac_func... " >&6; }
43773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43774 $as_echo_n "(cached) " >&6
43776 cat >conftest.$ac_ext <<_ACEOF
43779 cat confdefs.h >>conftest.$ac_ext
43780 cat >>conftest.$ac_ext <<_ACEOF
43781 /* end confdefs.h. */
43782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43784 #define $ac_func innocuous_$ac_func
43786 /* System header to define __stub macros and hopefully few prototypes,
43787 which can conflict with char $ac_func (); below.
43788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43789 <limits.h> exists even on freestanding compilers. */
43792 # include <limits.h>
43794 # include <assert.h>
43799 /* Override any GCC internal prototype to avoid an error.
43800 Use char because int might match the return type of a GCC
43801 builtin and then its argument prototype would still apply. */
43806 /* The GNU C library defines this for functions which it implements
43807 to always fail with ENOSYS. Some functions are actually named
43808 something starting with __ and the normal name is an alias. */
43809 #if defined __stub_$ac_func || defined __stub___$ac_func
43816 return $ac_func ();
43821 rm -f conftest.$ac_objext conftest$ac_exeext
43822 if { (ac_try="$ac_link"
43823 case "(($ac_try" in
43824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43825 *) ac_try_echo=$ac_try;;
43827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43828 $as_echo "$ac_try_echo") >&5
43829 (eval "$ac_link") 2>conftest.er1
43831 grep -v '^ *+' conftest.er1 >conftest.err
43833 cat conftest.err >&5
43834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43835 (exit $ac_status); } && {
43836 test -z "$ac_c_werror_flag" ||
43837 test ! -s conftest.err
43838 } && test -s conftest$ac_exeext && {
43839 test "$cross_compiling" = yes ||
43840 $as_test_x conftest$ac_exeext
43842 eval "$as_ac_var=yes"
43844 $as_echo "$as_me: failed program was:" >&5
43845 sed 's/^/| /' conftest.$ac_ext >&5
43847 eval "$as_ac_var=no"
43850 rm -rf conftest.dSYM
43851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43852 conftest$ac_exeext conftest.$ac_ext
43854 ac_res=`eval 'as_val=${'$as_ac_var'}
43855 $as_echo "$as_val"'`
43856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43857 $as_echo "$ac_res" >&6; }
43858 as_val=`eval 'as_val=${'$as_ac_var'}
43859 $as_echo "$as_val"'`
43860 if test "x$as_val" = x""yes; then
43861 cat >>confdefs.h <<_ACEOF
43862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43867 cat >>confdefs.h <<\_ACEOF
43868 #define HAVE_LLISTXATTR 1
43872 cat >>confdefs.h <<\_ACEOF
43873 #define HAVE_LGETXATTR 1
43877 cat >>confdefs.h <<\_ACEOF
43878 #define HAVE_LSETXATTR 1
43887 if test $have_xattr = no; then
43891 for ac_func in listxattr getxattr setxattr
43893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43895 $as_echo_n "checking for $ac_func... " >&6; }
43896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43897 $as_echo_n "(cached) " >&6
43899 cat >conftest.$ac_ext <<_ACEOF
43902 cat confdefs.h >>conftest.$ac_ext
43903 cat >>conftest.$ac_ext <<_ACEOF
43904 /* end confdefs.h. */
43905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43907 #define $ac_func innocuous_$ac_func
43909 /* System header to define __stub macros and hopefully few prototypes,
43910 which can conflict with char $ac_func (); below.
43911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43912 <limits.h> exists even on freestanding compilers. */
43915 # include <limits.h>
43917 # include <assert.h>
43922 /* Override any GCC internal prototype to avoid an error.
43923 Use char because int might match the return type of a GCC
43924 builtin and then its argument prototype would still apply. */
43929 /* The GNU C library defines this for functions which it implements
43930 to always fail with ENOSYS. Some functions are actually named
43931 something starting with __ and the normal name is an alias. */
43932 #if defined __stub_$ac_func || defined __stub___$ac_func
43939 return $ac_func ();
43944 rm -f conftest.$ac_objext conftest$ac_exeext
43945 if { (ac_try="$ac_link"
43946 case "(($ac_try" in
43947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43948 *) ac_try_echo=$ac_try;;
43950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43951 $as_echo "$ac_try_echo") >&5
43952 (eval "$ac_link") 2>conftest.er1
43954 grep -v '^ *+' conftest.er1 >conftest.err
43956 cat conftest.err >&5
43957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43958 (exit $ac_status); } && {
43959 test -z "$ac_c_werror_flag" ||
43960 test ! -s conftest.err
43961 } && test -s conftest$ac_exeext && {
43962 test "$cross_compiling" = yes ||
43963 $as_test_x conftest$ac_exeext
43965 eval "$as_ac_var=yes"
43967 $as_echo "$as_me: failed program was:" >&5
43968 sed 's/^/| /' conftest.$ac_ext >&5
43970 eval "$as_ac_var=no"
43973 rm -rf conftest.dSYM
43974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43975 conftest$ac_exeext conftest.$ac_ext
43977 ac_res=`eval 'as_val=${'$as_ac_var'}
43978 $as_echo "$as_val"'`
43979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43980 $as_echo "$ac_res" >&6; }
43981 as_val=`eval 'as_val=${'$as_ac_var'}
43982 $as_echo "$as_val"'`
43983 if test "x$as_val" = x""yes; then
43984 cat >>confdefs.h <<_ACEOF
43985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43990 cat >>confdefs.h <<\_ACEOF
43991 #define HAVE_LISTXATTR 1
43995 cat >>confdefs.h <<\_ACEOF
43996 #define HAVE_GETXATTR 1
44000 cat >>confdefs.h <<\_ACEOF
44001 #define HAVE_SETXATTR 1
44012 if test $have_xattr = no; then
44013 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44014 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44015 $as_echo_n "checking for sys/attr.h... " >&6; }
44016 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44017 $as_echo_n "(cached) " >&6
44019 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44020 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44022 # Is the header compilable?
44023 { $as_echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
44024 $as_echo_n "checking sys/attr.h usability... " >&6; }
44025 cat >conftest.$ac_ext <<_ACEOF
44028 cat confdefs.h >>conftest.$ac_ext
44029 cat >>conftest.$ac_ext <<_ACEOF
44030 /* end confdefs.h. */
44031 $ac_includes_default
44032 #include <sys/attr.h>
44034 rm -f conftest.$ac_objext
44035 if { (ac_try="$ac_compile"
44036 case "(($ac_try" in
44037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44038 *) ac_try_echo=$ac_try;;
44040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44041 $as_echo "$ac_try_echo") >&5
44042 (eval "$ac_compile") 2>conftest.er1
44044 grep -v '^ *+' conftest.er1 >conftest.err
44046 cat conftest.err >&5
44047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44048 (exit $ac_status); } && {
44049 test -z "$ac_c_werror_flag" ||
44050 test ! -s conftest.err
44051 } && test -s conftest.$ac_objext; then
44052 ac_header_compiler=yes
44054 $as_echo "$as_me: failed program was:" >&5
44055 sed 's/^/| /' conftest.$ac_ext >&5
44057 ac_header_compiler=no
44060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44062 $as_echo "$ac_header_compiler" >&6; }
44064 # Is the header present?
44065 { $as_echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
44066 $as_echo_n "checking sys/attr.h presence... " >&6; }
44067 cat >conftest.$ac_ext <<_ACEOF
44070 cat confdefs.h >>conftest.$ac_ext
44071 cat >>conftest.$ac_ext <<_ACEOF
44072 /* end confdefs.h. */
44073 #include <sys/attr.h>
44075 if { (ac_try="$ac_cpp conftest.$ac_ext"
44076 case "(($ac_try" in
44077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44078 *) ac_try_echo=$ac_try;;
44080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44081 $as_echo "$ac_try_echo") >&5
44082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44084 grep -v '^ *+' conftest.er1 >conftest.err
44086 cat conftest.err >&5
44087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44088 (exit $ac_status); } >/dev/null && {
44089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44090 test ! -s conftest.err
44092 ac_header_preproc=yes
44094 $as_echo "$as_me: failed program was:" >&5
44095 sed 's/^/| /' conftest.$ac_ext >&5
44097 ac_header_preproc=no
44100 rm -f conftest.err conftest.$ac_ext
44101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44102 $as_echo "$ac_header_preproc" >&6; }
44104 # So? What about this header?
44105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44107 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44108 $as_echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44109 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
44110 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
44111 ac_header_preproc=yes
44114 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
44115 $as_echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
44116 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
44117 $as_echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
44118 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
44119 $as_echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
44120 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
44121 $as_echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
44122 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
44123 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
44124 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
44125 $as_echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
44129 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44130 $as_echo_n "checking for sys/attr.h... " >&6; }
44131 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44132 $as_echo_n "(cached) " >&6
44134 ac_cv_header_sys_attr_h=$ac_header_preproc
44136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44137 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44140 if test "x$ac_cv_header_sys_attr_h" = x""yes; then
44142 cat >>confdefs.h <<\_ACEOF
44143 #define HAVE_SYS_ATTR_H 1
44149 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44150 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44151 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44152 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44153 $as_echo_n "(cached) " >&6
44155 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44156 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44158 # Is the header compilable?
44159 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
44160 $as_echo_n "checking sys/nvpair.h usability... " >&6; }
44161 cat >conftest.$ac_ext <<_ACEOF
44164 cat confdefs.h >>conftest.$ac_ext
44165 cat >>conftest.$ac_ext <<_ACEOF
44166 /* end confdefs.h. */
44167 $ac_includes_default
44168 #include <sys/nvpair.h>
44170 rm -f conftest.$ac_objext
44171 if { (ac_try="$ac_compile"
44172 case "(($ac_try" in
44173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44174 *) ac_try_echo=$ac_try;;
44176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44177 $as_echo "$ac_try_echo") >&5
44178 (eval "$ac_compile") 2>conftest.er1
44180 grep -v '^ *+' conftest.er1 >conftest.err
44182 cat conftest.err >&5
44183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44184 (exit $ac_status); } && {
44185 test -z "$ac_c_werror_flag" ||
44186 test ! -s conftest.err
44187 } && test -s conftest.$ac_objext; then
44188 ac_header_compiler=yes
44190 $as_echo "$as_me: failed program was:" >&5
44191 sed 's/^/| /' conftest.$ac_ext >&5
44193 ac_header_compiler=no
44196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44197 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44198 $as_echo "$ac_header_compiler" >&6; }
44200 # Is the header present?
44201 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
44202 $as_echo_n "checking sys/nvpair.h presence... " >&6; }
44203 cat >conftest.$ac_ext <<_ACEOF
44206 cat confdefs.h >>conftest.$ac_ext
44207 cat >>conftest.$ac_ext <<_ACEOF
44208 /* end confdefs.h. */
44209 #include <sys/nvpair.h>
44211 if { (ac_try="$ac_cpp conftest.$ac_ext"
44212 case "(($ac_try" in
44213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44214 *) ac_try_echo=$ac_try;;
44216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44217 $as_echo "$ac_try_echo") >&5
44218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44220 grep -v '^ *+' conftest.er1 >conftest.err
44222 cat conftest.err >&5
44223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44224 (exit $ac_status); } >/dev/null && {
44225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44226 test ! -s conftest.err
44228 ac_header_preproc=yes
44230 $as_echo "$as_me: failed program was:" >&5
44231 sed 's/^/| /' conftest.$ac_ext >&5
44233 ac_header_preproc=no
44236 rm -f conftest.err conftest.$ac_ext
44237 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44238 $as_echo "$ac_header_preproc" >&6; }
44240 # So? What about this header?
44241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44243 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
44244 $as_echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44245 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
44246 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
44247 ac_header_preproc=yes
44250 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
44251 $as_echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
44252 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
44253 $as_echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
44254 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
44255 $as_echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
44256 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
44257 $as_echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
44258 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
44259 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
44260 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
44261 $as_echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
44265 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44266 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44267 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44268 $as_echo_n "(cached) " >&6
44270 ac_cv_header_sys_nvpair_h=$ac_header_preproc
44272 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44273 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44276 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then
44278 cat >>confdefs.h <<\_ACEOF
44279 #define HAVE_SYS_NVPAIR_H 1
44285 if test "${ac_cv_header_attr_h+set}" = set; then
44286 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44287 $as_echo_n "checking for attr.h... " >&6; }
44288 if test "${ac_cv_header_attr_h+set}" = set; then
44289 $as_echo_n "(cached) " >&6
44291 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44292 $as_echo "$ac_cv_header_attr_h" >&6; }
44294 # Is the header compilable?
44295 { $as_echo "$as_me:$LINENO: checking attr.h usability" >&5
44296 $as_echo_n "checking attr.h usability... " >&6; }
44297 cat >conftest.$ac_ext <<_ACEOF
44300 cat confdefs.h >>conftest.$ac_ext
44301 cat >>conftest.$ac_ext <<_ACEOF
44302 /* end confdefs.h. */
44303 $ac_includes_default
44306 rm -f conftest.$ac_objext
44307 if { (ac_try="$ac_compile"
44308 case "(($ac_try" in
44309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44310 *) ac_try_echo=$ac_try;;
44312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44313 $as_echo "$ac_try_echo") >&5
44314 (eval "$ac_compile") 2>conftest.er1
44316 grep -v '^ *+' conftest.er1 >conftest.err
44318 cat conftest.err >&5
44319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44320 (exit $ac_status); } && {
44321 test -z "$ac_c_werror_flag" ||
44322 test ! -s conftest.err
44323 } && test -s conftest.$ac_objext; then
44324 ac_header_compiler=yes
44326 $as_echo "$as_me: failed program was:" >&5
44327 sed 's/^/| /' conftest.$ac_ext >&5
44329 ac_header_compiler=no
44332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44334 $as_echo "$ac_header_compiler" >&6; }
44336 # Is the header present?
44337 { $as_echo "$as_me:$LINENO: checking attr.h presence" >&5
44338 $as_echo_n "checking attr.h presence... " >&6; }
44339 cat >conftest.$ac_ext <<_ACEOF
44342 cat confdefs.h >>conftest.$ac_ext
44343 cat >>conftest.$ac_ext <<_ACEOF
44344 /* end confdefs.h. */
44347 if { (ac_try="$ac_cpp conftest.$ac_ext"
44348 case "(($ac_try" in
44349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44350 *) ac_try_echo=$ac_try;;
44352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44353 $as_echo "$ac_try_echo") >&5
44354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44356 grep -v '^ *+' conftest.er1 >conftest.err
44358 cat conftest.err >&5
44359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44360 (exit $ac_status); } >/dev/null && {
44361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44362 test ! -s conftest.err
44364 ac_header_preproc=yes
44366 $as_echo "$as_me: failed program was:" >&5
44367 sed 's/^/| /' conftest.$ac_ext >&5
44369 ac_header_preproc=no
44372 rm -f conftest.err conftest.$ac_ext
44373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44374 $as_echo "$ac_header_preproc" >&6; }
44376 # So? What about this header?
44377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44379 { $as_echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44380 $as_echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44381 { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
44382 $as_echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
44383 ac_header_preproc=yes
44386 { $as_echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
44387 $as_echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
44388 { $as_echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
44389 $as_echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
44390 { $as_echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
44391 $as_echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
44392 { $as_echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
44393 $as_echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
44394 { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
44395 $as_echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
44396 { $as_echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
44397 $as_echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
44401 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44402 $as_echo_n "checking for attr.h... " >&6; }
44403 if test "${ac_cv_header_attr_h+set}" = set; then
44404 $as_echo_n "(cached) " >&6
44406 ac_cv_header_attr_h=$ac_header_preproc
44408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44409 $as_echo "$ac_cv_header_attr_h" >&6; }
44412 if test "x$ac_cv_header_attr_h" = x""yes; then
44414 cat >>confdefs.h <<\_ACEOF
44415 #define HAVE_ATTR_H 1
44427 for ac_func in openat fstatat unlinkat fchownat futimesat
44429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44431 $as_echo_n "checking for $ac_func... " >&6; }
44432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44433 $as_echo_n "(cached) " >&6
44435 cat >conftest.$ac_ext <<_ACEOF
44438 cat confdefs.h >>conftest.$ac_ext
44439 cat >>conftest.$ac_ext <<_ACEOF
44440 /* end confdefs.h. */
44441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44443 #define $ac_func innocuous_$ac_func
44445 /* System header to define __stub macros and hopefully few prototypes,
44446 which can conflict with char $ac_func (); below.
44447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44448 <limits.h> exists even on freestanding compilers. */
44451 # include <limits.h>
44453 # include <assert.h>
44458 /* Override any GCC internal prototype to avoid an error.
44459 Use char because int might match the return type of a GCC
44460 builtin and then its argument prototype would still apply. */
44465 /* The GNU C library defines this for functions which it implements
44466 to always fail with ENOSYS. Some functions are actually named
44467 something starting with __ and the normal name is an alias. */
44468 #if defined __stub_$ac_func || defined __stub___$ac_func
44475 return $ac_func ();
44480 rm -f conftest.$ac_objext conftest$ac_exeext
44481 if { (ac_try="$ac_link"
44482 case "(($ac_try" in
44483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44484 *) ac_try_echo=$ac_try;;
44486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44487 $as_echo "$ac_try_echo") >&5
44488 (eval "$ac_link") 2>conftest.er1
44490 grep -v '^ *+' conftest.er1 >conftest.err
44492 cat conftest.err >&5
44493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44494 (exit $ac_status); } && {
44495 test -z "$ac_c_werror_flag" ||
44496 test ! -s conftest.err
44497 } && test -s conftest$ac_exeext && {
44498 test "$cross_compiling" = yes ||
44499 $as_test_x conftest$ac_exeext
44501 eval "$as_ac_var=yes"
44503 $as_echo "$as_me: failed program was:" >&5
44504 sed 's/^/| /' conftest.$ac_ext >&5
44506 eval "$as_ac_var=no"
44509 rm -rf conftest.dSYM
44510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44511 conftest$ac_exeext conftest.$ac_ext
44513 ac_res=`eval 'as_val=${'$as_ac_var'}
44514 $as_echo "$as_val"'`
44515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44516 $as_echo "$ac_res" >&6; }
44517 as_val=`eval 'as_val=${'$as_ac_var'}
44518 $as_echo "$as_val"'`
44519 if test "x$as_val" = x""yes; then
44520 cat >>confdefs.h <<_ACEOF
44521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44526 cat >>confdefs.h <<\_ACEOF
44527 #define HAVE_OPENAT 1
44531 cat >>confdefs.h <<\_ACEOF
44532 #define HAVE_FSTATAT 1
44536 cat >>confdefs.h <<\_ACEOF
44537 #define HAVE_UNLINKAT 1
44541 cat >>confdefs.h <<\_ACEOF
44542 #define HAVE_FCHOWNAT 1
44546 cat >>confdefs.h <<\_ACEOF
44547 #define HAVE_FUTIMESAT 1
44556 if test $have_xattr = yes; then
44557 { $as_echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
44558 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
44559 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
44560 $as_echo_n "(cached) " >&6
44562 ac_check_lib_save_LIBS=$LIBS
44563 LIBS="-lnvpair $LIBS"
44564 cat >conftest.$ac_ext <<_ACEOF
44567 cat confdefs.h >>conftest.$ac_ext
44568 cat >>conftest.$ac_ext <<_ACEOF
44569 /* end confdefs.h. */
44571 /* Override any GCC internal prototype to avoid an error.
44572 Use char because int might match the return type of a GCC
44573 builtin and then its argument prototype would still apply. */
44577 char nvlist_next_nvpair ();
44581 return nvlist_next_nvpair ();
44586 rm -f conftest.$ac_objext conftest$ac_exeext
44587 if { (ac_try="$ac_link"
44588 case "(($ac_try" in
44589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44590 *) ac_try_echo=$ac_try;;
44592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44593 $as_echo "$ac_try_echo") >&5
44594 (eval "$ac_link") 2>conftest.er1
44596 grep -v '^ *+' conftest.er1 >conftest.err
44598 cat conftest.err >&5
44599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44600 (exit $ac_status); } && {
44601 test -z "$ac_c_werror_flag" ||
44602 test ! -s conftest.err
44603 } && test -s conftest$ac_exeext && {
44604 test "$cross_compiling" = yes ||
44605 $as_test_x conftest$ac_exeext
44607 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
44609 $as_echo "$as_me: failed program was:" >&5
44610 sed 's/^/| /' conftest.$ac_ext >&5
44612 ac_cv_lib_nvpair_nvlist_next_nvpair=no
44615 rm -rf conftest.dSYM
44616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44617 conftest$ac_exeext conftest.$ac_ext
44618 LIBS=$ac_check_lib_save_LIBS
44620 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
44621 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
44622 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then
44625 cat >>confdefs.h <<\_ACEOF
44626 #define HAVE_NVLIST_NEXT_NVPAIR 1
44629 FDLIBS="-lnvpair $FDLIBS"
44637 if test x$support_xattr = xyes -a $have_xattr != yes; then
44638 { { $as_echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
44639 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
44640 $as_echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
44641 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
44642 { (exit 1); exit 1; }; }
44644 if test $have_xattr = yes; then
44646 cat >>confdefs.h <<\_ACEOF
44647 #define HAVE_XATTR 1
44655 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
44656 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
44657 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
44658 $as_echo_n "(cached) " >&6
44660 ac_check_lib_save_LIBS=$LIBS
44661 LIBS="-lpthread $LIBS"
44662 cat >conftest.$ac_ext <<_ACEOF
44665 cat confdefs.h >>conftest.$ac_ext
44666 cat >>conftest.$ac_ext <<_ACEOF
44667 /* end confdefs.h. */
44669 /* Override any GCC internal prototype to avoid an error.
44670 Use char because int might match the return type of a GCC
44671 builtin and then its argument prototype would still apply. */
44675 char pthread_create ();
44679 return pthread_create ();
44684 rm -f conftest.$ac_objext conftest$ac_exeext
44685 if { (ac_try="$ac_link"
44686 case "(($ac_try" in
44687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44688 *) ac_try_echo=$ac_try;;
44690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44691 $as_echo "$ac_try_echo") >&5
44692 (eval "$ac_link") 2>conftest.er1
44694 grep -v '^ *+' conftest.er1 >conftest.err
44696 cat conftest.err >&5
44697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698 (exit $ac_status); } && {
44699 test -z "$ac_c_werror_flag" ||
44700 test ! -s conftest.err
44701 } && test -s conftest$ac_exeext && {
44702 test "$cross_compiling" = yes ||
44703 $as_test_x conftest$ac_exeext
44705 ac_cv_lib_pthread_pthread_create=yes
44707 $as_echo "$as_me: failed program was:" >&5
44708 sed 's/^/| /' conftest.$ac_ext >&5
44710 ac_cv_lib_pthread_pthread_create=no
44713 rm -rf conftest.dSYM
44714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44715 conftest$ac_exeext conftest.$ac_ext
44716 LIBS=$ac_check_lib_save_LIBS
44718 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
44719 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
44720 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
44721 PTHREAD_LIB="-lpthread"
44724 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
44725 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
44726 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
44727 $as_echo_n "(cached) " >&6
44729 ac_check_lib_save_LIBS=$LIBS
44730 LIBS="-lpthreads $LIBS"
44731 cat >conftest.$ac_ext <<_ACEOF
44734 cat confdefs.h >>conftest.$ac_ext
44735 cat >>conftest.$ac_ext <<_ACEOF
44736 /* end confdefs.h. */
44738 /* Override any GCC internal prototype to avoid an error.
44739 Use char because int might match the return type of a GCC
44740 builtin and then its argument prototype would still apply. */
44744 char pthread_create ();
44748 return pthread_create ();
44753 rm -f conftest.$ac_objext conftest$ac_exeext
44754 if { (ac_try="$ac_link"
44755 case "(($ac_try" in
44756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44757 *) ac_try_echo=$ac_try;;
44759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44760 $as_echo "$ac_try_echo") >&5
44761 (eval "$ac_link") 2>conftest.er1
44763 grep -v '^ *+' conftest.er1 >conftest.err
44765 cat conftest.err >&5
44766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44767 (exit $ac_status); } && {
44768 test -z "$ac_c_werror_flag" ||
44769 test ! -s conftest.err
44770 } && test -s conftest$ac_exeext && {
44771 test "$cross_compiling" = yes ||
44772 $as_test_x conftest$ac_exeext
44774 ac_cv_lib_pthreads_pthread_create=yes
44776 $as_echo "$as_me: failed program was:" >&5
44777 sed 's/^/| /' conftest.$ac_ext >&5
44779 ac_cv_lib_pthreads_pthread_create=no
44782 rm -rf conftest.dSYM
44783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44784 conftest$ac_exeext conftest.$ac_ext
44785 LIBS=$ac_check_lib_save_LIBS
44787 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
44788 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
44789 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
44790 PTHREAD_LIB="-lpthreads"
44793 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
44794 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
44795 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
44796 $as_echo_n "(cached) " >&6
44798 ac_check_lib_save_LIBS=$LIBS
44800 cat >conftest.$ac_ext <<_ACEOF
44803 cat confdefs.h >>conftest.$ac_ext
44804 cat >>conftest.$ac_ext <<_ACEOF
44805 /* end confdefs.h. */
44807 /* Override any GCC internal prototype to avoid an error.
44808 Use char because int might match the return type of a GCC
44809 builtin and then its argument prototype would still apply. */
44813 char pthread_create ();
44817 return pthread_create ();
44822 rm -f conftest.$ac_objext conftest$ac_exeext
44823 if { (ac_try="$ac_link"
44824 case "(($ac_try" in
44825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44826 *) ac_try_echo=$ac_try;;
44828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44829 $as_echo "$ac_try_echo") >&5
44830 (eval "$ac_link") 2>conftest.er1
44832 grep -v '^ *+' conftest.er1 >conftest.err
44834 cat conftest.err >&5
44835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44836 (exit $ac_status); } && {
44837 test -z "$ac_c_werror_flag" ||
44838 test ! -s conftest.err
44839 } && test -s conftest$ac_exeext && {
44840 test "$cross_compiling" = yes ||
44841 $as_test_x conftest$ac_exeext
44843 ac_cv_lib_c_r_pthread_create=yes
44845 $as_echo "$as_me: failed program was:" >&5
44846 sed 's/^/| /' conftest.$ac_ext >&5
44848 ac_cv_lib_c_r_pthread_create=no
44851 rm -rf conftest.dSYM
44852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44853 conftest$ac_exeext conftest.$ac_ext
44854 LIBS=$ac_check_lib_save_LIBS
44856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
44857 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
44858 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
44859 PTHREAD_LIB="-lc_r"
44862 { $as_echo "$as_me:$LINENO: checking for pthread_create" >&5
44863 $as_echo_n "checking for pthread_create... " >&6; }
44864 if test "${ac_cv_func_pthread_create+set}" = set; then
44865 $as_echo_n "(cached) " >&6
44867 cat >conftest.$ac_ext <<_ACEOF
44870 cat confdefs.h >>conftest.$ac_ext
44871 cat >>conftest.$ac_ext <<_ACEOF
44872 /* end confdefs.h. */
44873 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
44874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44875 #define pthread_create innocuous_pthread_create
44877 /* System header to define __stub macros and hopefully few prototypes,
44878 which can conflict with char pthread_create (); below.
44879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44880 <limits.h> exists even on freestanding compilers. */
44883 # include <limits.h>
44885 # include <assert.h>
44888 #undef pthread_create
44890 /* Override any GCC internal prototype to avoid an error.
44891 Use char because int might match the return type of a GCC
44892 builtin and then its argument prototype would still apply. */
44896 char pthread_create ();
44897 /* The GNU C library defines this for functions which it implements
44898 to always fail with ENOSYS. Some functions are actually named
44899 something starting with __ and the normal name is an alias. */
44900 #if defined __stub_pthread_create || defined __stub___pthread_create
44907 return pthread_create ();
44912 rm -f conftest.$ac_objext conftest$ac_exeext
44913 if { (ac_try="$ac_link"
44914 case "(($ac_try" in
44915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44916 *) ac_try_echo=$ac_try;;
44918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44919 $as_echo "$ac_try_echo") >&5
44920 (eval "$ac_link") 2>conftest.er1
44922 grep -v '^ *+' conftest.er1 >conftest.err
44924 cat conftest.err >&5
44925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926 (exit $ac_status); } && {
44927 test -z "$ac_c_werror_flag" ||
44928 test ! -s conftest.err
44929 } && test -s conftest$ac_exeext && {
44930 test "$cross_compiling" = yes ||
44931 $as_test_x conftest$ac_exeext
44933 ac_cv_func_pthread_create=yes
44935 $as_echo "$as_me: failed program was:" >&5
44936 sed 's/^/| /' conftest.$ac_ext >&5
44938 ac_cv_func_pthread_create=no
44941 rm -rf conftest.dSYM
44942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44943 conftest$ac_exeext conftest.$ac_ext
44945 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
44946 $as_echo "$ac_cv_func_pthread_create" >&6; }
44963 for ac_header in sys/prctl.h sys/capability.h
44965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44967 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44968 $as_echo_n "checking for $ac_header... " >&6; }
44969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44970 $as_echo_n "(cached) " >&6
44972 ac_res=`eval 'as_val=${'$as_ac_Header'}
44973 $as_echo "$as_val"'`
44974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44975 $as_echo "$ac_res" >&6; }
44977 # Is the header compilable?
44978 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
44979 $as_echo_n "checking $ac_header usability... " >&6; }
44980 cat >conftest.$ac_ext <<_ACEOF
44983 cat confdefs.h >>conftest.$ac_ext
44984 cat >>conftest.$ac_ext <<_ACEOF
44985 /* end confdefs.h. */
44986 $ac_includes_default
44987 #include <$ac_header>
44989 rm -f conftest.$ac_objext
44990 if { (ac_try="$ac_compile"
44991 case "(($ac_try" in
44992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44993 *) ac_try_echo=$ac_try;;
44995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44996 $as_echo "$ac_try_echo") >&5
44997 (eval "$ac_compile") 2>conftest.er1
44999 grep -v '^ *+' conftest.er1 >conftest.err
45001 cat conftest.err >&5
45002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45003 (exit $ac_status); } && {
45004 test -z "$ac_c_werror_flag" ||
45005 test ! -s conftest.err
45006 } && test -s conftest.$ac_objext; then
45007 ac_header_compiler=yes
45009 $as_echo "$as_me: failed program was:" >&5
45010 sed 's/^/| /' conftest.$ac_ext >&5
45012 ac_header_compiler=no
45015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45016 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45017 $as_echo "$ac_header_compiler" >&6; }
45019 # Is the header present?
45020 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
45021 $as_echo_n "checking $ac_header presence... " >&6; }
45022 cat >conftest.$ac_ext <<_ACEOF
45025 cat confdefs.h >>conftest.$ac_ext
45026 cat >>conftest.$ac_ext <<_ACEOF
45027 /* end confdefs.h. */
45028 #include <$ac_header>
45030 if { (ac_try="$ac_cpp conftest.$ac_ext"
45031 case "(($ac_try" in
45032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45033 *) ac_try_echo=$ac_try;;
45035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45036 $as_echo "$ac_try_echo") >&5
45037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45039 grep -v '^ *+' conftest.er1 >conftest.err
45041 cat conftest.err >&5
45042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45043 (exit $ac_status); } >/dev/null && {
45044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45045 test ! -s conftest.err
45047 ac_header_preproc=yes
45049 $as_echo "$as_me: failed program was:" >&5
45050 sed 's/^/| /' conftest.$ac_ext >&5
45052 ac_header_preproc=no
45055 rm -f conftest.err conftest.$ac_ext
45056 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45057 $as_echo "$ac_header_preproc" >&6; }
45059 # So? What about this header?
45060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45063 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45066 ac_header_preproc=yes
45069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45070 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45072 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45074 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45076 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45078 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45080 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45084 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45085 $as_echo_n "checking for $ac_header... " >&6; }
45086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45087 $as_echo_n "(cached) " >&6
45089 eval "$as_ac_Header=\$ac_header_preproc"
45091 ac_res=`eval 'as_val=${'$as_ac_Header'}
45092 $as_echo "$as_val"'`
45093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45094 $as_echo "$ac_res" >&6; }
45097 as_val=`eval 'as_val=${'$as_ac_Header'}
45098 $as_echo "$as_val"'`
45099 if test "x$as_val" = x""yes; then
45100 cat >>confdefs.h <<_ACEOF
45101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45110 for ac_func in prctl setreuid
45112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45113 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45114 $as_echo_n "checking for $ac_func... " >&6; }
45115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45116 $as_echo_n "(cached) " >&6
45118 cat >conftest.$ac_ext <<_ACEOF
45121 cat confdefs.h >>conftest.$ac_ext
45122 cat >>conftest.$ac_ext <<_ACEOF
45123 /* end confdefs.h. */
45124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45126 #define $ac_func innocuous_$ac_func
45128 /* System header to define __stub macros and hopefully few prototypes,
45129 which can conflict with char $ac_func (); below.
45130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45131 <limits.h> exists even on freestanding compilers. */
45134 # include <limits.h>
45136 # include <assert.h>
45141 /* Override any GCC internal prototype to avoid an error.
45142 Use char because int might match the return type of a GCC
45143 builtin and then its argument prototype would still apply. */
45148 /* The GNU C library defines this for functions which it implements
45149 to always fail with ENOSYS. Some functions are actually named
45150 something starting with __ and the normal name is an alias. */
45151 #if defined __stub_$ac_func || defined __stub___$ac_func
45158 return $ac_func ();
45163 rm -f conftest.$ac_objext conftest$ac_exeext
45164 if { (ac_try="$ac_link"
45165 case "(($ac_try" in
45166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45167 *) ac_try_echo=$ac_try;;
45169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45170 $as_echo "$ac_try_echo") >&5
45171 (eval "$ac_link") 2>conftest.er1
45173 grep -v '^ *+' conftest.er1 >conftest.err
45175 cat conftest.err >&5
45176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45177 (exit $ac_status); } && {
45178 test -z "$ac_c_werror_flag" ||
45179 test ! -s conftest.err
45180 } && test -s conftest$ac_exeext && {
45181 test "$cross_compiling" = yes ||
45182 $as_test_x conftest$ac_exeext
45184 eval "$as_ac_var=yes"
45186 $as_echo "$as_me: failed program was:" >&5
45187 sed 's/^/| /' conftest.$ac_ext >&5
45189 eval "$as_ac_var=no"
45192 rm -rf conftest.dSYM
45193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45194 conftest$ac_exeext conftest.$ac_ext
45196 ac_res=`eval 'as_val=${'$as_ac_var'}
45197 $as_echo "$as_val"'`
45198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45199 $as_echo "$ac_res" >&6; }
45200 as_val=`eval 'as_val=${'$as_ac_var'}
45201 $as_echo "$as_val"'`
45202 if test "x$as_val" = x""yes; then
45203 cat >>confdefs.h <<_ACEOF
45204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45210 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
45211 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
45212 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
45213 $as_echo_n "(cached) " >&6
45215 ac_check_lib_save_LIBS=$LIBS
45217 cat >conftest.$ac_ext <<_ACEOF
45220 cat confdefs.h >>conftest.$ac_ext
45221 cat >>conftest.$ac_ext <<_ACEOF
45222 /* end confdefs.h. */
45224 /* Override any GCC internal prototype to avoid an error.
45225 Use char because int might match the return type of a GCC
45226 builtin and then its argument prototype would still apply. */
45230 char cap_set_proc ();
45234 return cap_set_proc ();
45239 rm -f conftest.$ac_objext conftest$ac_exeext
45240 if { (ac_try="$ac_link"
45241 case "(($ac_try" in
45242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45243 *) ac_try_echo=$ac_try;;
45245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45246 $as_echo "$ac_try_echo") >&5
45247 (eval "$ac_link") 2>conftest.er1
45249 grep -v '^ *+' conftest.er1 >conftest.err
45251 cat conftest.err >&5
45252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45253 (exit $ac_status); } && {
45254 test -z "$ac_c_werror_flag" ||
45255 test ! -s conftest.err
45256 } && test -s conftest$ac_exeext && {
45257 test "$cross_compiling" = yes ||
45258 $as_test_x conftest$ac_exeext
45260 ac_cv_lib_cap_cap_set_proc=yes
45262 $as_echo "$as_me: failed program was:" >&5
45263 sed 's/^/| /' conftest.$ac_ext >&5
45265 ac_cv_lib_cap_cap_set_proc=no
45268 rm -rf conftest.dSYM
45269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45270 conftest$ac_exeext conftest.$ac_ext
45271 LIBS=$ac_check_lib_save_LIBS
45273 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
45274 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
45275 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then
45281 if test x$CAP_LIBS = x-lcap; then
45283 cat >>confdefs.h <<\_ACEOF
45284 #define HAVE_LIBCAP 1
45291 cat >>confdefs.h <<\_ACEOF
45296 CFLAGS=${CFLAGS--O}
45298 if test x$have_gcc = xyes ; then
45299 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45300 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45302 LDFLAGS=${LDFLAGS--O}
45303 DB_LIBS="${SQL_LFLAGS}"
45304 CPPFLAGS="$CPPFLAGS"
45331 PFILES="platforms/Makefile"
45336 hostname=`uname -n | cut -d '.' -f 1`
45337 if test x${hostname} = x ; then
45338 hostname="localhost"
45340 ping -c 1 $hostname 2>/dev/null 1>/dev/null
45341 if test ! $? = 0; then
45342 hostname="localhost"
45345 case "$DISTNAME" in
45348 PSCMD="ps -e -o pid,comm"
45349 PFILES="${PFILES} \
45350 platforms/aix/Makefile"
45351 TAPEDRIVE="/dev/rmt0.1"
45355 PTHREAD_LIB="-lpthread -lexc"
45356 if test "${CC}" = "gcc" ; then
45363 TAPEDRIVE="/dev/nrmt0"
45366 DISTVER=`uname -a |awk '{print $3}'`
45367 TAPEDRIVE="/dev/nrmt0"
45368 PTHREAD_LIB="-pthread"
45369 CFLAGS="${CFLAGS} -pthread"
45370 PSCMD="ps -ax -o pid,command"
45373 PFILES="${PFILES} \
45374 platforms/bsdi/Makefile \
45375 platforms/bsdi/bacula-fd \
45376 platforms/bsdi/bacula-sd \
45377 platforms/bsdi/bacula-dir"
45378 largefile_support="yes"
45381 DISTVER=`uname -a |awk '{print $3}'`
45382 TAPEDRIVE="/dev/nrst0"
45384 WCFLAGS="-mwindows"
45385 WLDFLAGS="-mwindows"
45389 TAPEDRIVE="/dev/nst0"
45390 PSCMD="ps -e -o pid,command"
45392 PFILES="${PFILES} \
45393 platforms/darwin/Makefile"
45397 TAPEDRIVE="/dev/nst0"
45398 PSCMD="ps -e -o pid,command"
45400 PFILES="${PFILES} \
45401 platforms/osx/Makefile"
45404 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
45407 DISTVER=`cat /etc/debian_version`
45408 if test -f /etc/lsb-release ; then
45410 if test "x$DISTRIB_ID" != "x" ; then
45411 DISTNAME=$DISTRIB_ID
45413 if test "x$DISTRIB_RELEASE" != "x" ; then
45414 DISTVER=$DISTRIB_RELEASE
45417 if test "$DISTNAME" = "Ubuntu" ; then
45420 TAPEDRIVE="/dev/nst0"
45421 PSCMD="ps -e -o pid,command"
45422 if test "$DISTNAME" = "ubuntu" ; then
45423 PFILES="${PFILES} \
45424 platforms/ubuntu/Makefile \
45425 platforms/ubuntu/bacula-fd \
45426 platforms/ubuntu/bacula-sd \
45427 platforms/ubuntu/bacula-dir"
45429 PFILES="${PFILES} \
45430 platforms/debian/Makefile \
45431 platforms/debian/bacula-fd \
45432 platforms/debian/bacula-sd \
45433 platforms/debian/bacula-dir"
45437 DISTVER=`uname -a |awk '{print $3}'`
45438 VER=`echo $DISTVER | cut -c 1`
45439 if test x$VER = x4 ; then
45440 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
45441 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
45445 TAPEDRIVE="/dev/nrsa0"
45446 PSCMD="ps -ax -o pid,command"
45447 PFILES="${PFILES} \
45448 platforms/freebsd/Makefile \
45449 platforms/freebsd/bacula-fd \
45450 platforms/freebsd/bacula-sd \
45451 platforms/freebsd/bacula-dir"
45452 largefile_support="yes"
45455 PSCMD="UNIX95=1; ps -e -o pid,comm"
45456 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
45458 TAPEDRIVE="/dev/rmt/0hnb"
45459 PTHREAD_LIB="-lpthread"
45460 cat >>confdefs.h <<\_ACEOF
45461 #define _INCLUDE_LONGLONG 1
45467 TAPEDRIVE="/dev/rmt/0cbn"
45468 PSCMD="ps -e -o pid,comm"
45469 PFILES="${PFILES} \
45470 platforms/irix/Makefile \
45471 platforms/irix/bacula-fd \
45472 platforms/irix/bacula-sd \
45473 platforms/irix/bacula-dir"
45476 DISTVER=`uname -a |awk '{print $3}'`
45479 TAPEDRIVE="/dev/nrst0"
45480 PSCMD="ps -ax -o pid,command"
45481 PTHREAD_LIB="-pthread"
45482 CFLAGS="${CFLAGS} -pthread"
45485 DISTVER=`uname -a |awk '{print $3}'`
45488 TAPEDRIVE="/dev/nrst0"
45489 PSCMD="ps -ax -o pid,command"
45490 PTHREAD_LIB="-pthread"
45491 CFLAGS="${CFLAGS} -pthread"
45492 PFILES="${PFILES} \
45493 platforms/openbsd/Makefile \
45494 platforms/openbsd/bacula-fd \
45495 platforms/openbsd/bacula-sd \
45496 platforms/openbsd/bacula-dir"
45499 if test -f /etc/whitebox-release ; then
45500 f=/etc/whitebox-release
45502 f=/etc/redhat-release
45504 if test `cat $f | grep release |\
45505 cut -f 3 -d ' '`x = "Enterprise"x ; then
45506 DISTVER="Enterprise "`cat $f | grep release |\
45509 DISTVER=`cat /etc/redhat-release | grep release |\
45512 TAPEDRIVE="/dev/nst0"
45513 PSCMD="ps -e -o pid,command"
45514 PFILES="${PFILES} \
45515 platforms/redhat/Makefile \
45516 platforms/redhat/bacula-fd \
45517 platforms/redhat/bacula-sd \
45518 platforms/redhat/bacula-dir
45522 DISTVER=`cat /etc/mandrake-release | grep release |\
45524 TAPEDRIVE="/dev/nst0"
45525 PSCMD="ps -e -o pid,command"
45526 PFILES="${PFILES} \
45527 platforms/mandrake/Makefile \
45528 platforms/mandrake/bacula-fd \
45529 platforms/mandrake/bacula-sd \
45530 platforms/mandrake/bacula-dir \
45534 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
45535 TAPEDRIVE="/dev/nst0"
45536 PSCMD="ps -e -o pid,command"
45537 PFILES="${PFILES} \
45538 platforms/gentoo/Makefile \
45539 platforms/gentoo/bacula-init \
45540 platforms/gentoo/bacula-fd \
45541 platforms/gentoo/bacula-sd \
45542 platforms/gentoo/bacula-dir"
45545 DISTVER=`cat /etc/slackware-version`
45546 TAPEDRIVE="/dev/nst0"
45547 PSCMD="ps -e -o pid,command"
45548 PFILES="${PFILES} \
45549 platforms/slackware/Makefile \
45550 platforms/slackware/rc.bacula-fd \
45551 platforms/slackware/rc.bacula-sd \
45552 platforms/slackware/rc.bacula-dir\
45553 platforms/slackware/functions.bacula"
45557 TAPEDRIVE="/dev/rmt/0cbn"
45558 PSCMD="ps -e -o pid,comm"
45559 PFILES="${PFILES} \
45560 platforms/solaris/Makefile \
45561 platforms/solaris/bacula-fd \
45562 platforms/solaris/bacula-sd \
45563 platforms/solaris/bacula-dir"
45564 if test x$DISTVER = x5.6 ; then
45565 cat >>confdefs.h <<\_ACEOF
45566 #define HAVE_OLD_SOCKOPT 1
45570 LIBS="$LIBS -lresolv -lrt"
45573 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
45575 TAPEDRIVE="/dev/nst0"
45576 PSCMD="ps -e -o pid,command"
45577 PFILES="${PFILES} \
45578 platforms/suse/Makefile \
45579 platforms/suse/bacula-fd \
45580 platforms/suse/bacula-sd \
45581 platforms/suse/bacula-dir \
45582 platforms/suse/bacula"
45587 TAPEDRIVE="/dev/nst0"
45588 PSCMD="ps -e -o pid,command"
45589 PFILES="${PFILES} \
45590 platforms/suse/Makefile \
45591 platforms/suse/bacula-fd \
45592 platforms/suse/bacula-sd \
45593 platforms/suse/bacula-dir"
45597 TAPEDRIVE="/dev/nst0"
45600 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
45606 LIBS="$PTHREAD_LIB $LIBS"
45608 cat >>confdefs.h <<_ACEOF
45612 cat >>confdefs.h <<_ACEOF
45623 MCOMMON=./autoconf/Make.common
45626 if test "x${subsysdir}" = "x${sbindir}" ; then
45629 echo "You have set both --sbindir and --with-subsys-dir"
45630 echo " equal to: ${subsysdir} "
45631 echo "This is not permitted. Please reconfigure."
45633 echo "Aborting configuration ..."
45639 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
45641 ac_config_commands="$ac_config_commands default"
45643 cat >confcache <<\_ACEOF
45644 # This file is a shell script that caches the results of configure
45645 # tests run on this system so they can be shared between configure
45646 # scripts and configure runs, see configure's option --config-cache.
45647 # It is not useful on other systems. If it contains results you don't
45648 # want to keep, you may remove or edit it.
45650 # config.status only pays attention to the cache file if you give it
45651 # the --recheck option to rerun configure.
45653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45655 # following values.
45659 # The following way of writing the cache mishandles newlines in values,
45660 # but we know of no workaround that is simple, portable, and efficient.
45661 # So, we kill variables containing newlines.
45662 # Ultrix sh set writes to stderr and can't be redirected directly,
45663 # and sets the high bit in the cache file unless we assign to the vars.
45665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45666 eval ac_val=\$$ac_var
45670 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
45671 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45674 _ | IFS | as_nl) ;; #(
45675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45676 *) $as_unset $ac_var ;;
45682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45683 *${as_nl}ac_space=\ *)
45684 # `set' does not quote correctly, so add quotes (double-quote
45685 # substitution turns \\\\ into \\, and sed turns \\ into \).
45688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45691 # `set' quotes correctly as required by POSIX, so do not add quotes.
45692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45706 if test -w "$cache_file"; then
45707 test "x$cache_file" != "x/dev/null" &&
45708 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
45709 $as_echo "$as_me: updating cache $cache_file" >&6;}
45710 cat confcache >$cache_file
45712 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45713 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45719 # Let make expand exec_prefix.
45720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45722 DEFS=-DHAVE_CONFIG_H
45726 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45727 # 1. Remove the extension, and $U if already installed.
45728 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45729 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45730 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45731 # will be set to the directory where LIBOBJS objects are built.
45732 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45733 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45735 LIBOBJS=$ac_libobjs
45737 LTLIBOBJS=$ac_ltlibobjs
45741 : ${CONFIG_STATUS=./config.status}
45743 ac_clean_files_save=$ac_clean_files
45744 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45745 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45746 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45747 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45749 # Generated by $as_me.
45750 # Run this file to recreate the current configuration.
45751 # Compiler output produced by configure, useful for debugging
45752 # configure, is in config.log if it exists.
45755 ac_cs_recheck=false
45757 SHELL=\${CONFIG_SHELL-$SHELL}
45760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45761 ## --------------------- ##
45762 ## M4sh Initialization. ##
45763 ## --------------------- ##
45765 # Be more Bourne compatible
45766 DUALCASE=1; export DUALCASE # for MKS sh
45767 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45770 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45771 # is contrary to our usage. Disable this feature.
45772 alias -g '${1+"$@"}'='"$@"'
45773 setopt NO_GLOB_SUBST
45775 case `(set -o) 2>/dev/null` in
45776 *posix*) set -o posix ;;
45785 # Avoid depending upon Character Ranges.
45786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45789 as_cr_digits='0123456789'
45790 as_cr_alnum=$as_cr_Letters$as_cr_digits
45795 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45796 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45799 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45800 as_echo='printf %s\n'
45801 as_echo_n='printf %s'
45803 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45804 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45805 as_echo_n='/usr/ucb/echo -n'
45807 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45808 as_echo_n_body='eval
45812 expr "X$arg" : "X\\(.*\\)$as_nl";
45813 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45815 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45817 export as_echo_n_body
45818 as_echo_n='sh -c $as_echo_n_body as_echo'
45820 export as_echo_body
45821 as_echo='sh -c $as_echo_body as_echo'
45824 # The user is always right.
45825 if test "${PATH_SEPARATOR+set}" != set; then
45827 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45828 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45833 # Support unset when possible.
45834 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45842 # We need space, tab and new line, in precisely that order. Quoting is
45843 # there to prevent editors from complaining about space-tab.
45844 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45845 # splitting by setting IFS to empty value.)
45848 # Find who we are. Look in the path if we contain no directory separator.
45850 *[\\/]* ) as_myself=$0 ;;
45851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45852 for as_dir in $PATH
45855 test -z "$as_dir" && as_dir=.
45856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45862 # We did not find ourselves, most probably we were run as `sh COMMAND'
45863 # in which case we are not to be found in the path.
45864 if test "x$as_myself" = x; then
45867 if test ! -f "$as_myself"; then
45868 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45869 { (exit 1); exit 1; }
45872 # Work around bugs in pre-3.0 UWIN ksh.
45873 for as_var in ENV MAIL MAILPATH
45874 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45886 # Required to use basename.
45887 if expr a : '\(a\)' >/dev/null 2>&1 &&
45888 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45894 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45895 as_basename=basename
45901 # Name of the executable.
45902 as_me=`$as_basename -- "$0" ||
45903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45904 X"$0" : 'X\(//\)$' \| \
45905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45907 sed '/^.*\/\([^/][^/]*\)\/*$/{
45926 as_lineno_1=$LINENO
45927 as_lineno_2=$LINENO
45928 test "x$as_lineno_1" != "x$as_lineno_2" &&
45929 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
45931 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45932 # uniformly replaced by the line number. The first 'sed' inserts a
45933 # line-number line after each line using $LINENO; the second 'sed'
45934 # does the real work. The second script uses 'N' to pair each
45935 # line-number line with the line containing $LINENO, and appends
45936 # trailing '-' during substitution so that $LINENO is not a special
45937 # case at line end.
45938 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45939 # scripts with optimization help from Paolo Bonzini. Blame Lee
45940 # E. McMahon (1931-1989) for sed's syntax. :-)
45952 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45955 ' >$as_me.lineno &&
45956 chmod +x "$as_me.lineno" ||
45957 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
45958 { (exit 1); exit 1; }; }
45960 # Don't try to exec as it changes $[0], causing all sort of problems
45961 # (the dirname of $[0] is not the place where we might find the
45962 # original and so on. Autoconf is especially sensitive to this).
45963 . "./$as_me.lineno"
45964 # Exit status is that of the last command.
45969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45975 ECHO_C= ECHO_N= ECHO_T=
45976 case `echo -n x` in
45978 case `echo 'x\c'` in
45979 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
45985 if expr a : '\(a\)' >/dev/null 2>&1 &&
45986 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45992 rm -f conf$$ conf$$.exe conf$$.file
45993 if test -d conf$$.dir; then
45994 rm -f conf$$.dir/conf$$.file
45997 mkdir conf$$.dir 2>/dev/null
45999 if (echo >conf$$.file) 2>/dev/null; then
46000 if ln -s conf$$.file conf$$ 2>/dev/null; then
46002 # ... but there are two gotchas:
46003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46005 # In both cases, we have to default to `cp -p'.
46006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46008 elif ln conf$$.file conf$$ 2>/dev/null; then
46016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46017 rmdir conf$$.dir 2>/dev/null
46019 if mkdir -p . 2>/dev/null; then
46022 test -d ./-p && rmdir ./-p
46026 if test -x / >/dev/null 2>&1; then
46027 as_test_x='test -x'
46029 if ls -dL / >/dev/null 2>&1; then
46036 if test -d "$1"; then
46042 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46043 ???[sx]*):;;*)false;;esac;fi
46047 as_executable_p=$as_test_x
46049 # Sed expression to map a string onto a valid CPP name.
46050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46052 # Sed expression to map a string onto a valid variable name.
46053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46058 # Save the log message, to keep $[0] and so on meaningful, and to
46059 # report actual input values of CONFIG_FILES etc. instead of their
46060 # values after options handling.
46062 This file was extended by $as_me, which was
46063 generated by GNU Autoconf 2.63. Invocation command line was
46065 CONFIG_FILES = $CONFIG_FILES
46066 CONFIG_HEADERS = $CONFIG_HEADERS
46067 CONFIG_LINKS = $CONFIG_LINKS
46068 CONFIG_COMMANDS = $CONFIG_COMMANDS
46071 on `(hostname || uname -n) 2>/dev/null | sed 1q`
46076 case $ac_config_files in *"
46077 "*) set x $ac_config_files; shift; ac_config_files=$*;;
46080 case $ac_config_headers in *"
46081 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46086 # Files that config.status was made for.
46087 config_files="$ac_config_files"
46088 config_headers="$ac_config_headers"
46089 config_commands="$ac_config_commands"
46093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46095 \`$as_me' instantiates files from templates according to the
46096 current configuration.
46098 Usage: $0 [OPTION]... [FILE]...
46100 -h, --help print this help, then exit
46101 -V, --version print version number and configuration settings, then exit
46102 -q, --quiet, --silent
46103 do not print progress messages
46104 -d, --debug don't remove temporary files
46105 --recheck update $as_me by reconfiguring in the same conditions
46106 --file=FILE[:TEMPLATE]
46107 instantiate the configuration file FILE
46108 --header=FILE[:TEMPLATE]
46109 instantiate the configuration header FILE
46111 Configuration files:
46114 Configuration headers:
46117 Configuration commands:
46120 Report bugs to <bug-autoconf@gnu.org>."
46123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46126 configured by $0, generated by GNU Autoconf 2.63,
46127 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
46129 Copyright (C) 2008 Free Software Foundation, Inc.
46130 This config.status script is free software; the Free Software Foundation
46131 gives unlimited permission to copy, distribute and modify it."
46137 test -n "\$AWK" || AWK=awk
46140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46141 # The default lists apply if the user does not specify any file.
46147 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46148 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46159 # Handling of the options.
46160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46162 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46163 $as_echo "$ac_cs_version"; exit ;;
46164 --debug | --debu | --deb | --de | --d | -d )
46166 --file | --fil | --fi | --f )
46169 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46171 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
46172 ac_need_defaults=false;;
46173 --header | --heade | --head | --hea )
46176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46178 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
46179 ac_need_defaults=false;;
46181 # Conflict between --help and --header
46182 { $as_echo "$as_me: error: ambiguous option: $1
46183 Try \`$0 --help' for more information." >&2
46184 { (exit 1); exit 1; }; };;
46185 --help | --hel | -h )
46186 $as_echo "$ac_cs_usage"; exit ;;
46187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46188 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46191 # This is an error.
46192 -*) { $as_echo "$as_me: error: unrecognized option: $1
46193 Try \`$0 --help' for more information." >&2
46194 { (exit 1); exit 1; }; } ;;
46196 *) ac_config_targets="$ac_config_targets $1"
46197 ac_need_defaults=false ;;
46203 ac_configure_extra_args=
46205 if $ac_cs_silent; then
46207 ac_configure_extra_args="$ac_configure_extra_args --silent"
46211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46212 if \$ac_cs_recheck; then
46213 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46215 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46216 CONFIG_SHELL='$SHELL'
46217 export CONFIG_SHELL
46222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46226 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46227 ## Running $as_me. ##
46233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46239 # The HP-UX ksh and POSIX shell print the target directory to stdout
46240 # if CDPATH is set.
46241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46243 sed_quote_subst='$sed_quote_subst'
46244 double_quote_subst='$double_quote_subst'
46245 delay_variable_subst='$delay_variable_subst'
46246 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46247 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46248 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46249 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46250 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46251 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46252 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46253 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46254 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46255 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46256 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46257 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46258 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46259 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46260 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46261 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46262 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46263 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46264 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46265 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46266 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46267 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46268 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46269 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46270 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46271 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46272 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46273 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46274 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46275 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46276 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46277 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46278 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46279 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46280 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46281 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46282 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46283 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46284 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46285 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46286 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46287 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46288 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46289 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46290 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"`'
46291 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"`'
46292 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46293 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46294 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46295 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46296 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46297 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46298 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46299 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46300 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46301 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46302 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46303 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46304 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46305 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46306 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46307 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46308 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46309 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46310 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46311 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46312 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46313 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46314 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46315 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46316 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46317 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46318 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46319 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46320 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46321 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46322 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46323 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46324 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46325 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46326 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46327 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46328 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46329 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46330 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46331 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46332 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46333 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46334 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46335 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46336 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46337 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46338 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46339 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46340 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46341 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46342 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46343 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46344 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46345 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46346 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46347 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46348 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46349 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46350 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46351 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46352 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46353 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46354 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46355 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46356 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46357 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46358 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46359 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46360 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46361 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46362 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46363 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
46364 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
46365 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46366 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46367 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
46368 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
46369 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
46370 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46371 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46372 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46373 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46374 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46375 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46376 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46377 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46378 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46379 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46380 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46381 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46382 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46383 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46384 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46385 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46386 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46387 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46388 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46389 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46390 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46391 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46392 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46393 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46394 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46395 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46396 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46397 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46398 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46399 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46400 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46401 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46402 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46403 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46404 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46405 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46406 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46407 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46408 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46409 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46410 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46411 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46412 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46413 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46414 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46415 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46416 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46419 LTCFLAGS='$LTCFLAGS'
46420 compiler='$compiler_DEFAULT'
46422 # Quote evaled strings.
46434 deplibs_check_method \
46443 lt_cv_sys_global_symbol_pipe \
46444 lt_cv_sys_global_symbol_to_cdecl \
46445 lt_cv_sys_global_symbol_to_c_name_address \
46446 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46449 lt_prog_compiler_no_builtin_flag \
46450 lt_prog_compiler_wl \
46451 lt_prog_compiler_pic \
46452 lt_prog_compiler_static \
46453 lt_cv_prog_compiler_c_o \
46461 export_dynamic_flag_spec \
46462 whole_archive_flag_spec \
46463 compiler_needs_object \
46465 allow_undefined_flag \
46466 no_undefined_flag \
46467 hardcode_libdir_flag_spec \
46468 hardcode_libdir_flag_spec_ld \
46469 hardcode_libdir_separator \
46474 variables_saved_for_relink \
46476 library_names_spec \
46481 compiler_lib_search_dirs \
46486 compiler_lib_search_path \
46489 lt_prog_compiler_no_builtin_flag_CXX \
46490 lt_prog_compiler_wl_CXX \
46491 lt_prog_compiler_pic_CXX \
46492 lt_prog_compiler_static_CXX \
46493 lt_cv_prog_compiler_c_o_CXX \
46494 export_dynamic_flag_spec_CXX \
46495 whole_archive_flag_spec_CXX \
46496 compiler_needs_object_CXX \
46498 allow_undefined_flag_CXX \
46499 no_undefined_flag_CXX \
46500 hardcode_libdir_flag_spec_CXX \
46501 hardcode_libdir_flag_spec_ld_CXX \
46502 hardcode_libdir_separator_CXX \
46503 fix_srcfile_path_CXX \
46504 exclude_expsyms_CXX \
46505 include_expsyms_CXX \
46506 file_list_spec_CXX \
46507 compiler_lib_search_dirs_CXX \
46508 predep_objects_CXX \
46509 postdep_objects_CXX \
46512 compiler_lib_search_path_CXX; do
46513 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46514 *[\\\\\\\`\\"\\\$]*)
46515 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46518 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46523 # Double-quote double-evaled strings.
46524 for var in reload_cmds \
46525 old_postinstall_cmds \
46526 old_postuninstall_cmds \
46528 extract_expsyms_cmds \
46529 old_archive_from_new_cmds \
46530 old_archive_from_expsyms_cmds \
46532 archive_expsym_cmds \
46534 module_expsym_cmds \
46535 export_symbols_cmds \
46538 postuninstall_cmds \
46540 sys_lib_search_path_spec \
46541 sys_lib_dlsearch_path_spec \
46542 old_archive_cmds_CXX \
46543 old_archive_from_new_cmds_CXX \
46544 old_archive_from_expsyms_cmds_CXX \
46546 archive_expsym_cmds_CXX \
46548 module_expsym_cmds_CXX \
46549 export_symbols_cmds_CXX \
46550 prelink_cmds_CXX; do
46551 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46552 *[\\\\\\\`\\"\\\$]*)
46553 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46556 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46561 # Fix-up fallback echo if it was mangled by the above quoting rules.
46563 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
46567 ac_aux_dir='$ac_aux_dir'
46568 xsi_shell='$xsi_shell'
46569 lt_shell_append='$lt_shell_append'
46571 # See if we are running on zsh, and set the options which allow our
46572 # commands through without removal of \ escapes INIT.
46573 if test -n "\${ZSH_VERSION+set}" ; then
46574 setopt NO_GLOB_SUBST
46580 TIMESTAMP='$TIMESTAMP'
46588 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
46589 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
46591 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
46592 # Capture the value of LINGUAS because we need it to compute CATALOGS.
46593 LINGUAS="${LINGUAS-%UNSET%}"
46598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46600 # Handling of arguments.
46601 for ac_config_target in $ac_config_targets
46603 case $ac_config_target in
46604 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
46605 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46606 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
46607 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
46608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46609 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
46610 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
46611 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
46612 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
46613 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
46614 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
46615 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
46616 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
46617 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
46618 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
46619 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
46620 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
46621 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
46622 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46623 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
46624 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
46625 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
46626 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
46627 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
46628 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
46629 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
46630 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
46631 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
46632 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
46633 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
46634 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
46635 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
46636 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
46637 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
46638 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
46639 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
46640 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
46641 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
46642 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
46643 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
46644 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
46645 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46646 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
46647 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
46648 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
46649 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
46650 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
46651 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
46652 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
46653 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
46654 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
46655 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
46656 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
46657 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
46658 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
46659 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
46660 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
46661 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
46662 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
46663 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
46664 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
46665 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
46666 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
46667 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
46668 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
46669 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
46670 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
46671 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
46672 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
46673 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
46674 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
46675 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
46676 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
46677 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
46678 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
46679 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
46680 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
46681 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
46682 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
46683 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
46684 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
46685 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
46686 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
46687 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
46688 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
46689 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
46690 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
46691 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
46692 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
46693 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
46694 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
46695 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
46696 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
46697 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
46698 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
46699 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
46700 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
46701 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
46702 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
46703 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
46704 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
46705 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
46706 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
46707 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
46708 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
46709 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
46710 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
46711 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
46712 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
46713 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
46714 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
46715 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
46717 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46718 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46719 { (exit 1); exit 1; }; };;
46724 # If the user did not use the arguments to specify the items to instantiate,
46725 # then the envvar interface is used. Set only those that are not.
46726 # We use the long form for the default assignment because of an extremely
46727 # bizarre bug on SunOS 4.1.3.
46728 if $ac_need_defaults; then
46729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46734 # Have a temporary directory for convenience. Make it in the build tree
46735 # simply because there is no reason against having it here, and in addition,
46736 # creating and moving files from /tmp can sometimes cause problems.
46737 # Hook for its removal unless debugging.
46738 # Note that there is a small window in which the directory will not be cleaned:
46739 # after its creation but before its name has been assigned to `$tmp'.
46743 trap 'exit_status=$?
46744 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
46746 trap '{ (exit 1); exit 1; }' 1 2 13 15
46748 # Create a (secure) tmp directory for tmp files.
46751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46752 test -n "$tmp" && test -d "$tmp"
46755 tmp=./conf$$-$RANDOM
46756 (umask 077 && mkdir "$tmp")
46759 $as_echo "$as_me: cannot create a temporary directory in ." >&2
46760 { (exit 1); exit 1; }
46763 # Set up the scripts for CONFIG_FILES section.
46764 # No need to generate them if there are no CONFIG_FILES.
46765 # This happens for instance with `./config.status config.h'.
46766 if test -n "$CONFIG_FILES"; then
46768 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
46769 ac_cs_awk_getline=:
46770 ac_cs_awk_pipe_init=
46771 ac_cs_awk_read_file='
46772 while ((getline aline < (F[key])) > 0)
46775 ac_cs_awk_pipe_fini=
46777 ac_cs_awk_getline=false
46778 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
46779 ac_cs_awk_read_file='
46781 print "cat " F[key] " &&"
46782 '$ac_cs_awk_pipe_init
46783 # The final `:' finishes the AND list.
46784 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
46787 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46788 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46791 ac_cs_awk_cr=$ac_cr
46794 echo 'BEGIN {' >"$tmp/subs1.awk" &&
46797 # Create commands to substitute file output variables.
46799 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
46800 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
46801 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
46804 } >conf$$files.sh &&
46805 . ./conf$$files.sh ||
46806 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46807 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46808 { (exit 1); exit 1; }; }
46809 rm -f conf$$files.sh
46812 echo "cat >conf$$subs.awk <<_ACEOF" &&
46813 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46815 } >conf$$subs.sh ||
46816 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46817 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46818 { (exit 1); exit 1; }; }
46819 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
46821 for ac_last_try in false false false false false :; do
46822 . ./conf$$subs.sh ||
46823 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46824 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46825 { (exit 1); exit 1; }; }
46827 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46828 if test $ac_delim_n = $ac_delim_num; then
46830 elif $ac_last_try; then
46831 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46832 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46833 { (exit 1); exit 1; }; }
46835 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46838 rm -f conf$$subs.sh
46840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46841 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
46845 s/^/S["/; s/!.*/"]=/
46855 s/\(.\{148\}\).*/\1/
46857 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46869 s/\(.\{148\}\).*/\1/
46871 s/["\\]/\\&/g; s/^/"/; s/$/"/
46875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46880 ' <conf$$subs.awk | sed '
46885 ' >>$CONFIG_STATUS || ac_write_fail=1
46886 rm -f conf$$subs.awk
46887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46889 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
46890 for (key in S) S_is_set[key] = 1
46892 \$ac_cs_awk_pipe_init
46896 nfields = split(line, field, "@")
46898 len = length(field[1])
46899 for (i = 2; i < nfields; i++) {
46901 keylen = length(key)
46902 if (S_is_set[key]) {
46904 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46905 len += length(value) + length(field[++i])
46910 if (nfields == 3 && !substed) {
46912 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
46913 \$ac_cs_awk_read_file
46919 \$ac_cs_awk_pipe_fini
46922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46923 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46924 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46927 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
46928 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
46929 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
46930 { (exit 1); exit 1; }; }
46933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46935 # trailing colons and then remove the whole line if VPATH becomes empty
46936 # (actually we leave an empty line to preserve line numbers).
46937 if test "x$srcdir" = x.; then
46938 ac_vpsub='/^[ ]*VPATH[ ]*=/{
46939 s/:*\$(srcdir):*/:/
46940 s/:*\${srcdir}:*/:/
46942 s/^\([^=]*=[ ]*\):*/\1/
46948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46949 fi # test -n "$CONFIG_FILES"
46951 # Set up the scripts for CONFIG_HEADERS section.
46952 # No need to generate them if there are no CONFIG_HEADERS.
46953 # This happens for instance with `./config.status Makefile'.
46954 if test -n "$CONFIG_HEADERS"; then
46955 cat >"$tmp/defines.awk" <<\_ACAWK ||
46959 # Transform confdefs.h into an awk script `defines.awk', embedded as
46960 # here-document in config.status, that substitutes the proper values into
46961 # config.h.in to produce config.h.
46963 # Create a delimiter string that does not exist in confdefs.h, to ease
46964 # handling of long lines.
46966 for ac_last_try in false false :; do
46967 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
46968 if test -z "$ac_t"; then
46970 elif $ac_last_try; then
46971 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
46972 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
46973 { (exit 1); exit 1; }; }
46975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46979 # For the awk script, D is an array of macro values keyed by name,
46980 # likewise P contains macro parameters if any. Preserve backslash
46981 # newline sequences.
46983 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46985 s/.\{148\}/&'"$ac_delim"'/g
46988 s/^[ ]*#[ ]*define[ ][ ]*/ /
46995 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
47001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47002 D["\1"]=" \3\\\\\\n"\\/p
47004 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47009 s/.\{148\}/&'"$ac_delim"'/g
47014 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47017 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47019 ' <confdefs.h | sed '
47020 s/'"$ac_delim"'/"\\\
47021 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47024 for (key in D) D_is_set[key] = 1
47027 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47029 split(line, arg, " ")
47030 if (arg[1] == "#") {
47034 defundef = substr(arg[1], 2)
47037 split(mac1, mac2, "(") #)
47039 prefix = substr(line, 1, index(line, defundef) - 1)
47040 if (D_is_set[macro]) {
47041 # Preserve the white space surrounding the "#".
47042 print prefix "define", macro P[macro] D[macro]
47045 # Replace #undef with comments. This is necessary, for example,
47046 # in the case of _POSIX_SOURCE, which is predefined and required
47047 # on some systems where configure will not decide to define it.
47048 if (defundef == "undef") {
47049 print "/*", prefix defundef, macro, "*/"
47057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47058 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47059 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47060 { (exit 1); exit 1; }; }
47061 fi # test -n "$CONFIG_HEADERS"
47064 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
47069 :[FHLC]) ac_mode=$ac_tag; continue;;
47071 case $ac_mode$ac_tag in
47073 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47074 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47075 { (exit 1); exit 1; }; };;
47076 :[FH]-) ac_tag=-:-;;
47077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47094 -) ac_f="$tmp/stdin";;
47095 *) # Look for the file first in the build tree, then in the source tree
47096 # (if the path is not absolute). The absolute path cannot be DOS-style,
47097 # because $ac_f cannot contain `:'.
47101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47103 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47104 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47105 { (exit 1); exit 1; }; };;
47107 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47108 ac_file_inputs="$ac_file_inputs '$ac_f'"
47111 # Let's still pretend it is `configure' which instantiates (i.e., don't
47112 # use $as_me), people would be surprised to read:
47113 # /* config.h. Generated by config.status. */
47114 configure_input='Generated from '`
47115 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47117 if test x"$ac_file" != x-; then
47118 configure_input="$ac_file. $configure_input"
47119 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
47120 $as_echo "$as_me: creating $ac_file" >&6;}
47122 # Neutralize special characters interpreted by sed in replacement strings.
47123 case $configure_input in #(
47124 *\&* | *\|* | *\\* )
47125 ac_sed_conf_input=`$as_echo "$configure_input" |
47126 sed 's/[\\\\&|]/\\\\&/g'`;; #(
47127 *) ac_sed_conf_input=$configure_input;;
47131 *:-:* | *:-) cat >"$tmp/stdin" \
47132 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47133 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47134 { (exit 1); exit 1; }; } ;;
47139 ac_dir=`$as_dirname -- "$ac_file" ||
47140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47141 X"$ac_file" : 'X\(//\)[^/]' \| \
47142 X"$ac_file" : 'X\(//\)$' \| \
47143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47144 $as_echo X"$ac_file" |
47145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47149 /^X\(\/\/\)[^/].*/{
47164 -*) as_dir=./$as_dir;;
47166 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47170 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47171 *) as_qdir=$as_dir;;
47173 as_dirs="'$as_qdir' $as_dirs"
47174 as_dir=`$as_dirname -- "$as_dir" ||
47175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47176 X"$as_dir" : 'X\(//\)[^/]' \| \
47177 X"$as_dir" : 'X\(//\)$' \| \
47178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47179 $as_echo X"$as_dir" |
47180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47184 /^X\(\/\/\)[^/].*/{
47197 test -d "$as_dir" && break
47199 test -z "$as_dirs" || eval "mkdir $as_dirs"
47200 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47201 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47202 { (exit 1); exit 1; }; }; }
47206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47208 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47209 # A ".." for each directory in $ac_dir_suffix.
47210 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47211 case $ac_top_builddir_sub in
47212 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47213 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47216 ac_abs_top_builddir=$ac_pwd
47217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47218 # for backward compatibility:
47219 ac_top_builddir=$ac_top_build_prefix
47222 .) # We are building in place.
47224 ac_top_srcdir=$ac_top_builddir_sub
47225 ac_abs_top_srcdir=$ac_pwd ;;
47226 [\\/]* | ?:[\\/]* ) # Absolute name.
47227 ac_srcdir=$srcdir$ac_dir_suffix;
47228 ac_top_srcdir=$srcdir
47229 ac_abs_top_srcdir=$srcdir ;;
47230 *) # Relative name.
47231 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47232 ac_top_srcdir=$ac_top_build_prefix$srcdir
47233 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47245 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47246 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47251 # If the template does not know about datarootdir, expand it.
47252 # FIXME: This hack should be removed a few years after 2.60.
47253 ac_datarootdir_hack=; ac_datarootdir_seen=
47266 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47267 *datarootdir*) ac_datarootdir_seen=yes;;
47268 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47269 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47270 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47273 ac_datarootdir_hack='
47274 s&@datadir@&$datadir&g
47275 s&@docdir@&$docdir&g
47276 s&@infodir@&$infodir&g
47277 s&@localedir@&$localedir&g
47278 s&@mandir@&$mandir&g
47279 s&\\\${datarootdir}&$datarootdir&g' ;;
47283 # Neutralize VPATH when `$srcdir' = `.'.
47284 # Shell code in configure.ac might set extrasub.
47285 # FIXME: do we really want to maintain this feature?
47286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47287 ac_sed_extra="$ac_vpsub
47290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47293 s|@configure_input@|$ac_sed_conf_input|;t t
47294 s&@top_builddir@&$ac_top_builddir_sub&;t t
47295 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47296 s&@srcdir@&$ac_srcdir&;t t
47297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47298 s&@top_srcdir@&$ac_top_srcdir&;t t
47299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47300 s&@builddir@&$ac_builddir&;t t
47301 s&@abs_builddir@&$ac_abs_builddir&;t t
47302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47303 s&@INSTALL@&$ac_INSTALL&;t t
47304 $ac_datarootdir_hack
47306 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
47307 if $ac_cs_awk_getline; then
47308 $AWK -f "$tmp/subs.awk"
47310 $AWK -f "$tmp/subs.awk" | $SHELL
47312 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47313 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47314 { (exit 1); exit 1; }; }
47316 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47317 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47319 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47320 which seems to be undefined. Please make sure it is defined." >&5
47321 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47322 which seems to be undefined. Please make sure it is defined." >&2;}
47326 -) cat "$tmp/out" && rm -f "$tmp/out";;
47327 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47329 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47330 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47331 { (exit 1); exit 1; }; }
47337 if test x"$ac_file" != x-; then
47339 $as_echo "/* $configure_input */" \
47340 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47341 } >"$tmp/config.h" \
47342 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47343 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47344 { (exit 1); exit 1; }; }
47345 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47346 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47347 $as_echo "$as_me: $ac_file is unchanged" >&6;}
47350 mv "$tmp/config.h" "$ac_file" \
47351 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47352 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47353 { (exit 1); exit 1; }; }
47356 $as_echo "/* $configure_input */" \
47357 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47358 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47359 $as_echo "$as_me: error: could not create -" >&2;}
47360 { (exit 1); exit 1; }; }
47364 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47365 $as_echo "$as_me: executing $ac_file commands" >&6;}
47370 case $ac_file$ac_mode in
47373 # See if we are running on zsh, and set the options which allow our
47374 # commands through without removal of \ escapes.
47375 if test -n "${ZSH_VERSION+set}" ; then
47376 setopt NO_GLOB_SUBST
47379 cfgfile="${ofile}T"
47380 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47383 cat <<_LT_EOF >> "$cfgfile"
47386 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47387 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47389 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47391 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47392 # 2006, 2007, 2008 Free Software Foundation, Inc.
47393 # Written by Gordon Matzigkeit, 1996
47395 # This file is part of GNU Libtool.
47397 # GNU Libtool is free software; you can redistribute it and/or
47398 # modify it under the terms of the GNU General Public License as
47399 # published by the Free Software Foundation; either version 2 of
47400 # the License, or (at your option) any later version.
47402 # As a special exception to the GNU General Public License,
47403 # if you distribute this file as part of a program or library that
47404 # is built using GNU Libtool, you may include this file under the
47405 # same distribution terms that you use for the rest of that program.
47407 # GNU Libtool is distributed in the hope that it will be useful,
47408 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47409 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47410 # GNU General Public License for more details.
47412 # You should have received a copy of the GNU General Public License
47413 # along with GNU Libtool; see the file COPYING. If not, a copy
47414 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47415 # obtained by writing to the Free Software Foundation, Inc.,
47416 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47419 # The names of the tagged configurations supported by this script.
47420 available_tags="CXX "
47422 # ### BEGIN LIBTOOL CONFIG
47424 # Which release of libtool.m4 was used?
47425 macro_version=$macro_version
47426 macro_revision=$macro_revision
47428 # Whether or not to build shared libraries.
47429 build_libtool_libs=$enable_shared
47431 # Whether or not to build static libraries.
47432 build_old_libs=$enable_static
47434 # What type of objects to build.
47437 # Whether or not to optimize for fast installation.
47438 fast_install=$enable_fast_install
47441 host_alias=$host_alias
47445 # The build system.
47446 build_alias=$build_alias
47450 # A sed program that does not truncate output.
47453 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47454 Xsed="\$SED -e 1s/^X//"
47456 # A grep program that handles long lines.
47462 # A literal string matcher.
47465 # A BSD- or MS-compatible name lister.
47468 # Whether we need soft or hard links.
47471 # What is the maximum length of a command?
47472 max_cmd_len=$max_cmd_len
47474 # Object file suffix (normally "o").
47477 # Executable file suffix (normally "").
47480 # whether the shell understands "unset".
47483 # turn spaces into newlines.
47486 # turn newlines into spaces.
47489 # How to create reloadable object files.
47490 reload_flag=$lt_reload_flag
47491 reload_cmds=$lt_reload_cmds
47493 # An object symbol dumper.
47494 OBJDUMP=$lt_OBJDUMP
47496 # Method to check whether dependent libraries are shared objects.
47497 deplibs_check_method=$lt_deplibs_check_method
47499 # Command to use when deplibs_check_method == "file_magic".
47500 file_magic_cmd=$lt_file_magic_cmd
47504 AR_FLAGS=$lt_AR_FLAGS
47506 # A symbol stripping program.
47509 # Commands used to install an old-style archive.
47511 old_postinstall_cmds=$lt_old_postinstall_cmds
47512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47517 # LTCC compiler flags.
47518 LTCFLAGS=$lt_CFLAGS
47520 # Take the output of nm and produce a listing of raw symbols and C names.
47521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47523 # Transform the output of nm in a proper C declaration.
47524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47526 # Transform the output of nm in a C name address pair.
47527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47529 # Transform the output of nm in a C name address pair when lib prefix is needed.
47530 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47532 # The name of the directory that contains temporary libtool files.
47535 # Shell to use when invoking shell scripts.
47538 # An echo program that does not interpret backslashes.
47541 # Used to examine libraries when file_magic_cmd begins with "file".
47542 MAGIC_CMD=$MAGIC_CMD
47544 # Must we lock files when doing compilation?
47545 need_locks=$lt_need_locks
47547 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47548 DSYMUTIL=$lt_DSYMUTIL
47550 # Tool to change global to local symbols on Mac OS X.
47553 # Tool to manipulate fat objects and archives on Mac OS X.
47556 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47559 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47560 OTOOL64=$lt_OTOOL64
47562 # Old archive suffix (normally "a").
47565 # Shared library suffix (normally ".so").
47566 shrext_cmds=$lt_shrext_cmds
47568 # The commands to extract the exported symbol list from a shared archive.
47569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47571 # Variables whose values should be saved in libtool wrapper scripts and
47572 # restored at link time.
47573 variables_saved_for_relink=$lt_variables_saved_for_relink
47575 # Do we need the "lib" prefix for modules?
47576 need_lib_prefix=$need_lib_prefix
47578 # Do we need a version for libraries?
47579 need_version=$need_version
47581 # Library versioning type.
47582 version_type=$version_type
47584 # Shared library runtime path variable.
47585 runpath_var=$runpath_var
47587 # Shared library path variable.
47588 shlibpath_var=$shlibpath_var
47590 # Is shlibpath searched before the hard-coded library search path?
47591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47593 # Format of library name prefix.
47594 libname_spec=$lt_libname_spec
47596 # List of archive names. First name is the real one, the rest are links.
47597 # The last name is the one that the linker finds with -lNAME
47598 library_names_spec=$lt_library_names_spec
47600 # The coded name of the library, if different from the real name.
47601 soname_spec=$lt_soname_spec
47603 # Command to use after installation of a shared archive.
47604 postinstall_cmds=$lt_postinstall_cmds
47606 # Command to use after uninstallation of a shared archive.
47607 postuninstall_cmds=$lt_postuninstall_cmds
47609 # Commands used to finish a libtool library installation in a directory.
47610 finish_cmds=$lt_finish_cmds
47612 # As "finish_cmds", except a single script fragment to be evaled but
47614 finish_eval=$lt_finish_eval
47616 # Whether we should hardcode library paths into libraries.
47617 hardcode_into_libs=$hardcode_into_libs
47619 # Compile-time system search path for libraries.
47620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47622 # Run-time system search path for libraries.
47623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47625 # Whether dlopen is supported.
47626 dlopen_support=$enable_dlopen
47628 # Whether dlopen of programs is supported.
47629 dlopen_self=$enable_dlopen_self
47631 # Whether dlopen of statically linked programs is supported.
47632 dlopen_self_static=$enable_dlopen_self_static
47634 # Commands to strip libraries.
47635 old_striplib=$lt_old_striplib
47636 striplib=$lt_striplib
47639 # The linker used to build libraries.
47642 # Commands used to build an old-style archive.
47643 old_archive_cmds=$lt_old_archive_cmds
47645 # A language specific compiler.
47648 # Is the compiler the GNU compiler?
47651 # Compiler flag to turn off builtin functions.
47652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47654 # How to pass a linker flag through the compiler.
47655 wl=$lt_lt_prog_compiler_wl
47657 # Additional compiler flags for building library objects.
47658 pic_flag=$lt_lt_prog_compiler_pic
47660 # Compiler flag to prevent dynamic linking.
47661 link_static_flag=$lt_lt_prog_compiler_static
47663 # Does compiler simultaneously support -c and -o options?
47664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47666 # Whether or not to add -lc for building shared libraries.
47667 build_libtool_need_lc=$archive_cmds_need_lc
47669 # Whether or not to disallow shared libs when runtime libs are static.
47670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47672 # Compiler flag to allow reflexive dlopens.
47673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47675 # Compiler flag to generate shared objects directly from archives.
47676 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47678 # Whether the compiler copes with passing no objects directly.
47679 compiler_needs_object=$lt_compiler_needs_object
47681 # Create an old-style archive from a shared archive.
47682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47684 # Create a temporary old-style archive to link instead of a shared archive.
47685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47687 # Commands used to build a shared archive.
47688 archive_cmds=$lt_archive_cmds
47689 archive_expsym_cmds=$lt_archive_expsym_cmds
47691 # Commands used to build a loadable module if different from building
47692 # a shared archive.
47693 module_cmds=$lt_module_cmds
47694 module_expsym_cmds=$lt_module_expsym_cmds
47696 # Whether we are building with GNU ld or not.
47697 with_gnu_ld=$lt_with_gnu_ld
47699 # Flag that allows shared libraries with undefined symbols to be built.
47700 allow_undefined_flag=$lt_allow_undefined_flag
47702 # Flag that enforces no undefined symbols.
47703 no_undefined_flag=$lt_no_undefined_flag
47705 # Flag to hardcode \$libdir into a binary during linking.
47706 # This must work even if \$libdir does not exist
47707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47709 # If ld is used when linking, flag to hardcode \$libdir into a binary
47710 # during linking. This must work even if \$libdir does not exist.
47711 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47713 # Whether we need a single "-rpath" flag with a separated argument.
47714 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47716 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47717 # DIR into the resulting binary.
47718 hardcode_direct=$hardcode_direct
47720 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47721 # DIR into the resulting binary and the resulting library dependency is
47722 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47723 # library is relocated.
47724 hardcode_direct_absolute=$hardcode_direct_absolute
47726 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47727 # into the resulting binary.
47728 hardcode_minus_L=$hardcode_minus_L
47730 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47731 # into the resulting binary.
47732 hardcode_shlibpath_var=$hardcode_shlibpath_var
47734 # Set to "yes" if building a shared library automatically hardcodes DIR
47735 # into the library and all subsequent libraries and executables linked
47737 hardcode_automatic=$hardcode_automatic
47739 # Set to yes if linker adds runtime paths of dependent libraries
47740 # to runtime path list.
47741 inherit_rpath=$inherit_rpath
47743 # Whether libtool must link a program against all its dependency libraries.
47744 link_all_deplibs=$link_all_deplibs
47746 # Fix the shell variable \$srcfile for the compiler.
47747 fix_srcfile_path=$lt_fix_srcfile_path
47749 # Set to "yes" if exported symbols are required.
47750 always_export_symbols=$always_export_symbols
47752 # The commands to list exported symbols.
47753 export_symbols_cmds=$lt_export_symbols_cmds
47755 # Symbols that should not be listed in the preloaded symbols.
47756 exclude_expsyms=$lt_exclude_expsyms
47758 # Symbols that must always be exported.
47759 include_expsyms=$lt_include_expsyms
47761 # Commands necessary for linking programs (against libraries) with templates.
47762 prelink_cmds=$lt_prelink_cmds
47764 # Specify filename containing input files.
47765 file_list_spec=$lt_file_list_spec
47767 # How to hardcode a shared library path into an executable.
47768 hardcode_action=$hardcode_action
47770 # The directories searched by this compiler when creating a shared library.
47771 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
47773 # Dependencies to place before and after the objects being linked to
47774 # create a shared library.
47775 predep_objects=$lt_predep_objects
47776 postdep_objects=$lt_postdep_objects
47777 predeps=$lt_predeps
47778 postdeps=$lt_postdeps
47780 # The library search path used internally by the compiler when linking
47781 # a shared library.
47782 compiler_lib_search_path=$lt_compiler_lib_search_path
47784 # ### END LIBTOOL CONFIG
47790 cat <<\_LT_EOF >> "$cfgfile"
47791 # AIX sometimes has problems with the GCC collect2 program. For some
47792 # reason, if we set the COLLECT_NAMES environment variable, the problems
47793 # vanish in a puff of smoke.
47794 if test "X${COLLECT_NAMES+set}" != Xset; then
47796 export COLLECT_NAMES
47803 ltmain="$ac_aux_dir/ltmain.sh"
47806 # We use sed instead of cat because bash on DJGPP gets confused if
47807 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47808 # text mode, it properly converts lines to CR/LF. This bash problem
47809 # is reportedly fixed, but why not run on old versions too?
47810 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47811 || (rm -f "$cfgfile"; exit 1)
47815 cat << \_LT_EOF >> "$cfgfile"
47817 # func_dirname file append nondir_replacement
47818 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
47819 # otherwise set result to NONDIR_REPLACEMENT.
47823 */*) func_dirname_result="${1%/*}${2}" ;;
47824 * ) func_dirname_result="${3}" ;;
47828 # func_basename file
47831 func_basename_result="${1##*/}"
47834 # func_dirname_and_basename file append nondir_replacement
47835 # perform func_basename and func_dirname in a single function
47837 # dirname: Compute the dirname of FILE. If nonempty,
47838 # add APPEND to the result, otherwise set result
47839 # to NONDIR_REPLACEMENT.
47840 # value returned in "$func_dirname_result"
47841 # basename: Compute filename of FILE.
47842 # value retuned in "$func_basename_result"
47843 # Implementation must be kept synchronized with func_dirname
47844 # and func_basename. For efficiency, we do not delegate to
47845 # those functions but instead duplicate the functionality here.
47846 func_dirname_and_basename ()
47849 */*) func_dirname_result="${1%/*}${2}" ;;
47850 * ) func_dirname_result="${3}" ;;
47852 func_basename_result="${1##*/}"
47855 # func_stripname prefix suffix name
47856 # strip PREFIX and SUFFIX off of NAME.
47857 # PREFIX and SUFFIX must not contain globbing or regex special
47858 # characters, hashes, percent signs, but SUFFIX may contain a leading
47859 # dot (in which case that matches only a dot).
47862 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
47863 # positional parameters, so assign one to ordinary parameter first.
47864 func_stripname_result=${3}
47865 func_stripname_result=${func_stripname_result#"${1}"}
47866 func_stripname_result=${func_stripname_result%"${2}"}
47872 func_opt_split_opt=${1%%=*}
47873 func_opt_split_arg=${1#*=}
47880 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
47881 *) func_lo2o_result=${1} ;;
47885 # func_xform libobj-or-source
47888 func_xform_result=${1%.*}.lo
47891 # func_arith arithmetic-term...
47894 func_arith_result=$(( $* ))
47898 # STRING may not start with a hyphen.
47901 func_len_result=${#1}
47906 *) # Bourne compatible functions.
47907 cat << \_LT_EOF >> "$cfgfile"
47909 # func_dirname file append nondir_replacement
47910 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
47911 # otherwise set result to NONDIR_REPLACEMENT.
47914 # Extract subdirectory from the argument.
47915 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
47916 if test "X$func_dirname_result" = "X${1}"; then
47917 func_dirname_result="${3}"
47919 func_dirname_result="$func_dirname_result${2}"
47923 # func_basename file
47926 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
47930 # func_stripname prefix suffix name
47931 # strip PREFIX and SUFFIX off of NAME.
47932 # PREFIX and SUFFIX must not contain globbing or regex special
47933 # characters, hashes, percent signs, but SUFFIX may contain a leading
47934 # dot (in which case that matches only a dot).
47935 # func_strip_suffix prefix name
47939 .*) func_stripname_result=`$ECHO "X${3}" \
47940 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
47941 *) func_stripname_result=`$ECHO "X${3}" \
47942 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
47947 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
47948 my_sed_long_arg='1s/^-[^=]*=//'
47953 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
47954 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
47960 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
47963 # func_xform libobj-or-source
47966 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
47969 # func_arith arithmetic-term...
47972 func_arith_result=`expr "$@"`
47976 # STRING may not start with a hyphen.
47979 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
47985 case $lt_shell_append in
47987 cat << \_LT_EOF >> "$cfgfile"
47989 # func_append var value
47990 # Append VALUE to the end of shell variable VAR.
47998 cat << \_LT_EOF >> "$cfgfile"
48000 # func_append var value
48001 # Append VALUE to the end of shell variable VAR.
48012 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48013 || (rm -f "$cfgfile"; exit 1)
48015 mv -f "$cfgfile" "$ofile" ||
48016 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48020 cat <<_LT_EOF >> "$ofile"
48022 # ### BEGIN LIBTOOL TAG CONFIG: CXX
48024 # The linker used to build libraries.
48027 # Commands used to build an old-style archive.
48028 old_archive_cmds=$lt_old_archive_cmds_CXX
48030 # A language specific compiler.
48031 CC=$lt_compiler_CXX
48033 # Is the compiler the GNU compiler?
48036 # Compiler flag to turn off builtin functions.
48037 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
48039 # How to pass a linker flag through the compiler.
48040 wl=$lt_lt_prog_compiler_wl_CXX
48042 # Additional compiler flags for building library objects.
48043 pic_flag=$lt_lt_prog_compiler_pic_CXX
48045 # Compiler flag to prevent dynamic linking.
48046 link_static_flag=$lt_lt_prog_compiler_static_CXX
48048 # Does compiler simultaneously support -c and -o options?
48049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
48051 # Whether or not to add -lc for building shared libraries.
48052 build_libtool_need_lc=$archive_cmds_need_lc_CXX
48054 # Whether or not to disallow shared libs when runtime libs are static.
48055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
48057 # Compiler flag to allow reflexive dlopens.
48058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
48060 # Compiler flag to generate shared objects directly from archives.
48061 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
48063 # Whether the compiler copes with passing no objects directly.
48064 compiler_needs_object=$lt_compiler_needs_object_CXX
48066 # Create an old-style archive from a shared archive.
48067 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
48069 # Create a temporary old-style archive to link instead of a shared archive.
48070 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
48072 # Commands used to build a shared archive.
48073 archive_cmds=$lt_archive_cmds_CXX
48074 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
48076 # Commands used to build a loadable module if different from building
48077 # a shared archive.
48078 module_cmds=$lt_module_cmds_CXX
48079 module_expsym_cmds=$lt_module_expsym_cmds_CXX
48081 # Whether we are building with GNU ld or not.
48082 with_gnu_ld=$lt_with_gnu_ld_CXX
48084 # Flag that allows shared libraries with undefined symbols to be built.
48085 allow_undefined_flag=$lt_allow_undefined_flag_CXX
48087 # Flag that enforces no undefined symbols.
48088 no_undefined_flag=$lt_no_undefined_flag_CXX
48090 # Flag to hardcode \$libdir into a binary during linking.
48091 # This must work even if \$libdir does not exist
48092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
48094 # If ld is used when linking, flag to hardcode \$libdir into a binary
48095 # during linking. This must work even if \$libdir does not exist.
48096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
48098 # Whether we need a single "-rpath" flag with a separated argument.
48099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
48101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48102 # DIR into the resulting binary.
48103 hardcode_direct=$hardcode_direct_CXX
48105 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48106 # DIR into the resulting binary and the resulting library dependency is
48107 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48108 # library is relocated.
48109 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
48111 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48112 # into the resulting binary.
48113 hardcode_minus_L=$hardcode_minus_L_CXX
48115 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48116 # into the resulting binary.
48117 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
48119 # Set to "yes" if building a shared library automatically hardcodes DIR
48120 # into the library and all subsequent libraries and executables linked
48122 hardcode_automatic=$hardcode_automatic_CXX
48124 # Set to yes if linker adds runtime paths of dependent libraries
48125 # to runtime path list.
48126 inherit_rpath=$inherit_rpath_CXX
48128 # Whether libtool must link a program against all its dependency libraries.
48129 link_all_deplibs=$link_all_deplibs_CXX
48131 # Fix the shell variable \$srcfile for the compiler.
48132 fix_srcfile_path=$lt_fix_srcfile_path_CXX
48134 # Set to "yes" if exported symbols are required.
48135 always_export_symbols=$always_export_symbols_CXX
48137 # The commands to list exported symbols.
48138 export_symbols_cmds=$lt_export_symbols_cmds_CXX
48140 # Symbols that should not be listed in the preloaded symbols.
48141 exclude_expsyms=$lt_exclude_expsyms_CXX
48143 # Symbols that must always be exported.
48144 include_expsyms=$lt_include_expsyms_CXX
48146 # Commands necessary for linking programs (against libraries) with templates.
48147 prelink_cmds=$lt_prelink_cmds_CXX
48149 # Specify filename containing input files.
48150 file_list_spec=$lt_file_list_spec_CXX
48152 # How to hardcode a shared library path into an executable.
48153 hardcode_action=$hardcode_action_CXX
48155 # The directories searched by this compiler when creating a shared library.
48156 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
48158 # Dependencies to place before and after the objects being linked to
48159 # create a shared library.
48160 predep_objects=$lt_predep_objects_CXX
48161 postdep_objects=$lt_postdep_objects_CXX
48162 predeps=$lt_predeps_CXX
48163 postdeps=$lt_postdeps_CXX
48165 # The library search path used internally by the compiler when linking
48166 # a shared library.
48167 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
48169 # ### END LIBTOOL TAG CONFIG: CXX
48174 for ac_file in $CONFIG_FILES; do
48175 # Support "outfile[:infile[:infile...]]"
48177 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
48179 # PO directories have a Makefile.in generated from Makefile.in.in.
48180 case "$ac_file" in */Makefile.in)
48181 # Adjust a relative srcdir.
48182 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
48183 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
48184 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
48185 # In autoconf-2.13 it is called $ac_given_srcdir.
48186 # In autoconf-2.50 it is called $srcdir.
48187 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
48188 case "$ac_given_srcdir" in
48189 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
48190 /*) top_srcdir="$ac_given_srcdir" ;;
48191 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
48193 # Treat a directory as a PO directory if and only if it has a
48194 # POTFILES.in file. This allows packages to have multiple PO
48195 # directories under different names or in different locations.
48196 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
48197 rm -f "$ac_dir/POTFILES"
48198 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
48199 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
48200 POMAKEFILEDEPS="POTFILES.in"
48201 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
48202 # on $ac_dir but don't depend on user-specified configuration
48204 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
48205 # The LINGUAS file contains the set of available languages.
48206 if test -n "$OBSOLETE_ALL_LINGUAS"; then
48207 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
48209 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
48210 # Hide the ALL_LINGUAS assigment from automake.
48211 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
48212 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
48214 # The set of available languages was given in configure.in.
48215 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
48218 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
48219 # Compute UPDATEPOFILES
48220 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
48221 # Compute DUMMYPOFILES
48222 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
48224 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
48225 case "$ac_given_srcdir" in
48227 *) srcdirpre='$(srcdir)/' ;;
48233 for lang in $ALL_LINGUAS; do
48234 POFILES="$POFILES $srcdirpre$lang.po"
48235 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
48236 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
48237 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
48239 # CATALOGS depends on both $ac_dir and the user's LINGUAS
48240 # environment variable.
48242 if test -n "$ALL_LINGUAS"; then
48243 for presentlang in $ALL_LINGUAS; do
48245 if test "%UNSET%" != "$LINGUAS"; then
48246 desiredlanguages="$LINGUAS"
48248 desiredlanguages="$ALL_LINGUAS"
48250 for desiredlang in $desiredlanguages; do
48251 # Use the presentlang catalog if desiredlang is
48252 # a. equal to presentlang, or
48253 # b. a variant of presentlang (because in this case,
48254 # presentlang can be used as a fallback for messages
48255 # which are not translated in the desiredlang catalog).
48256 case "$desiredlang" in
48257 "$presentlang"*) useit=yes;;
48260 if test $useit = yes; then
48261 INST_LINGUAS="$INST_LINGUAS $presentlang"
48266 if test -n "$INST_LINGUAS"; then
48267 for lang in $INST_LINGUAS; do
48268 CATALOGS="$CATALOGS $lang.gmo"
48271 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
48272 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"
48273 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
48274 if test -f "$f"; then
48276 *.orig | *.bak | *~) ;;
48277 *) cat "$f" >> "$ac_dir/Makefile" ;;
48292 { (exit 0); exit 0; }
48294 chmod +x $CONFIG_STATUS
48295 ac_clean_files=$ac_clean_files_save
48297 test $ac_write_fail = 0 ||
48298 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48299 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48300 { (exit 1); exit 1; }; }
48303 # configure is writing to config.log, and then calls config.status.
48304 # config.status does its own redirection, appending to config.log.
48305 # Unfortunately, on DOS this fails, as config.log is still kept open
48306 # by configure, so config.status won't be able to write to it; its
48307 # output is simply discarded. So we exec the FD to /dev/null,
48308 # effectively closing config.log, so it can be properly (re)opened and
48309 # appended to by config.status. When coming back to configure, we
48310 # need to make the FD available again.
48311 if test "$no_create" != yes; then
48313 ac_config_status_args=
48314 test "$silent" = yes &&
48315 ac_config_status_args="$ac_config_status_args --quiet"
48317 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48320 # would make configure fail if this is the last instruction.
48321 $ac_cs_success || { (exit 1); exit 1; }
48323 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48324 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48325 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48329 if test "${support_bat}" = "yes" ; then
48330 if test "x$QMAKE" = "xnone"; then
48331 { { $as_echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
48332 $as_echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
48333 { (exit 1); exit 1; }; }
48338 echo "Creating bat Makefile"
48343 ${MAKE:-make} clean
48347 if test X"$GCC" = "Xyes" ; then
48348 echo "Doing make of dependencies"
48349 ${MAKE:-make} depend
48353 chmod 755 install_conf_file build-depkgs-qt-console
48357 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
48358 chmod 755 dvd-handler dvd-simulator
48359 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
48363 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
48364 chmod 755 $c/update_postgresql_tables_10_to_11
48368 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
48369 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
48371 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
48372 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
48374 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
48375 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
48377 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
48378 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
48380 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
48381 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
48383 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
48384 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
48387 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
48388 chmod 755 $c/sqlite
48391 chmod 755 src/win32/build-depkgs-mingw32
48393 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
48394 largefile_support="yes"
48397 if test X"$GCC" = "Xyes" ; then
48398 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48399 if test "x${CCVERSION}" = "x" ; then
48400 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48402 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48403 if test x"${CXXVERSION}" = x ; then
48404 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48408 # clean up any old junk
48412 ${MAKE:-make} clean
48414 if test "x${db_type}" = "xInternal" ; then
48417 echo "You have not specified either --enable-client-only or one of the"
48418 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
48419 echo " This is not permitted. Please reconfigure."
48421 echo "Aborting the configuration ..."
48428 Configuration on `date`:
48430 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
48431 Bacula version: ${BACULA} ${VERSION} (${DATE})
48432 Source code location: ${srcdir}
48433 Install binaries: ${sbindir}
48434 Install libraries: ${libdir}
48435 Install config files: ${sysconfdir}
48436 Scripts directory: ${scriptdir}
48437 Archive directory: ${archivedir}
48438 Working directory: ${working_dir}
48439 PID directory: ${piddir}
48440 Subsys directory: ${subsysdir}
48441 Man directory: ${mandir}
48442 Data directory: ${datarootdir}
48443 Plugin directory: ${plugindir}
48444 C Compiler: ${CC} ${CCVERSION}
48445 C++ Compiler: ${CXX} ${CXXVERSION}
48446 Compiler flags: ${WCFLAGS} ${CFLAGS}
48447 Linker flags: ${WLDFLAGS} ${LDFLAGS}
48449 Statically Linked Tools: ${support_static_tools}
48450 Statically Linked FD: ${support_static_fd}
48451 Statically Linked SD: ${support_static_sd}
48452 Statically Linked DIR: ${support_static_dir}
48453 Statically Linked CONS: ${support_static_cons}
48454 Database type: ${db_type}
48455 Database port: ${db_port}
48456 Database lib: ${DB_LIBS}
48457 Database name: ${db_name}
48458 Database user: ${db_user}
48460 Job Output Email: ${job_email}
48461 Traceback Email: ${dump_email}
48462 SMTP Host Address: ${smtp_host}
48464 Director Port: ${dir_port}
48465 File daemon Port: ${fd_port}
48466 Storage daemon Port: ${sd_port}
48468 Director User: ${dir_user}
48469 Director Group: ${dir_group}
48470 Storage Daemon User: ${sd_user}
48471 Storage DaemonGroup: ${sd_group}
48472 File Daemon User: ${fd_user}
48473 File Daemon Group: ${fd_group}
48475 SQL binaries Directory ${SQL_BINDIR}
48477 Large file support: $largefile_support
48478 Bacula conio support: ${got_conio} ${CONS_LIBS}
48479 readline support: ${got_readline} ${PRTREADLINE_SRC}
48480 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
48481 TLS support: ${support_tls}
48482 Encryption support: ${support_crypto}
48483 ZLIB support: ${have_zlib}
48484 enable-smartalloc: ${support_smartalloc}
48485 enable-lockmgr: ${support_lockmgr}
48486 bat support: ${support_bat}
48487 enable-gnome: ${support_gnome} ${gnome_version}
48488 enable-bwx-console: ${support_wx_console} ${wx_version}
48489 enable-tray-monitor: ${support_tray_monitor}
48490 client-only: ${build_client_only}
48491 build-dird: ${build_dird}
48492 build-stored: ${build_stored}
48493 Plugin support: ${have_plugins}
48494 ACL support: ${have_acl}
48495 XATTR support: ${have_xattr}
48496 Python support: ${support_python} ${PYTHON_LIBS}
48497 Batch insert enabled: ${support_batch_insert}
48501 # create a small shell script useful for support with
48502 # configure options and config.out info
48503 cat > scripts/bacula_config << EOF
48506 $ $0 $ac_configure_args
48508 cat config.out >> scripts/bacula_config
48509 echo __EOC__ >> scripts/bacula_config
48510 chmod 755 scripts/bacula_config
48514 # Display a warning message if postgresql client lib is <= 8.1
48515 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
48516 -a x$support_batch_insert = xyes
48518 echo "WARNING: Your PostgreSQL client library is too old to detect "
48519 echo " if it was compiled with --enable-thread-safety, consider to"
48520 echo " upgrade it in order to avoid problems with Batch insert mode"