2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
818 LIBBACCFG_LT_REVISION
824 LIBBACSQL_LT_REVISION
826 LIBBACFIND_LT_CURRENT
827 LIBBACFIND_LT_REVISION
902 DEFAULT_SHARED_OBJECT_TYPE
903 LIBTOOL_INSTALL_TARGET
904 LIBTOOL_UNINSTALL_TARGET
908 INCLUDE_INSTALL_TARGET
909 INCLUDE_UNINSTALL_TARGET
921 HAVE_FREEBSD_OS_FALSE
925 HAVE_OPENBSD_OS_FALSE
956 BUILD_INCLUDED_LIBINTL
963 INTL_LIBTOOL_SUFFIX_PREFIX
972 TRAY_MONITOR_CPPFLAGS
1063 ac_subst_files='MCOMMON'
1064 ac_precious_vars='build_alias
1082 # Initialize some variables set by options.
1084 ac_init_version=false
1085 # The variables have the same names as the options, with
1086 # dashes changed to underlines.
1087 cache_file=/dev/null
1094 program_transform_name=s,x,x,
1102 # Installation directory options.
1103 # These are left unexpanded so users can "make install exec_prefix=/foo"
1104 # and all the variables that are supposed to be based on exec_prefix
1105 # by default will actually change.
1106 # Use braces instead of parens because sh, perl, etc. also accept them.
1107 # (The list follows the same order as the GNU Coding Standards.)
1108 bindir='${exec_prefix}/bin'
1109 sbindir='${exec_prefix}/sbin'
1110 libexecdir='${exec_prefix}/libexec'
1111 datarootdir='${prefix}/share'
1112 datadir='${datarootdir}'
1113 sysconfdir='${prefix}/etc'
1114 sharedstatedir='${prefix}/com'
1115 localstatedir='${prefix}/var'
1116 includedir='${prefix}/include'
1117 oldincludedir='/usr/include'
1118 docdir='${datarootdir}/doc/${PACKAGE}'
1119 infodir='${datarootdir}/info'
1124 libdir='${exec_prefix}/lib'
1125 localedir='${datarootdir}/locale'
1126 mandir='${datarootdir}/man'
1132 # If the previous option needs an argument, assign it.
1133 if test -n "$ac_prev"; then
1134 eval $ac_prev=\$ac_option
1140 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144 # Accept the important Cygnus configure options, so we can diagnose typos.
1146 case $ac_dashdash$ac_option in
1150 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1152 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1153 bindir=$ac_optarg ;;
1155 -build | --build | --buil | --bui | --bu)
1156 ac_prev=build_alias ;;
1157 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1158 build_alias=$ac_optarg ;;
1160 -cache-file | --cache-file | --cache-fil | --cache-fi \
1161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1162 ac_prev=cache_file ;;
1163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1165 cache_file=$ac_optarg ;;
1167 --config-cache | -C)
1168 cache_file=config.cache ;;
1170 -datadir | --datadir | --datadi | --datad)
1172 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1173 datadir=$ac_optarg ;;
1175 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1176 | --dataroo | --dataro | --datar)
1177 ac_prev=datarootdir ;;
1178 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1179 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1180 datarootdir=$ac_optarg ;;
1182 -disable-* | --disable-*)
1183 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1189 eval enable_$ac_feature=no ;;
1191 -docdir | --docdir | --docdi | --doc | --do)
1193 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1194 docdir=$ac_optarg ;;
1196 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1198 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1199 dvidir=$ac_optarg ;;
1201 -enable-* | --enable-*)
1202 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1206 { (exit 1); exit 1; }; }
1207 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1208 eval enable_$ac_feature=\$ac_optarg ;;
1210 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1211 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1212 | --exec | --exe | --ex)
1213 ac_prev=exec_prefix ;;
1214 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1215 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1216 | --exec=* | --exe=* | --ex=*)
1217 exec_prefix=$ac_optarg ;;
1219 -gas | --gas | --ga | --g)
1220 # Obsolete; use --with-gas.
1223 -help | --help | --hel | --he | -h)
1224 ac_init_help=long ;;
1225 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1226 ac_init_help=recursive ;;
1227 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1228 ac_init_help=short ;;
1230 -host | --host | --hos | --ho)
1231 ac_prev=host_alias ;;
1232 -host=* | --host=* | --hos=* | --ho=*)
1233 host_alias=$ac_optarg ;;
1235 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239 htmldir=$ac_optarg ;;
1241 -includedir | --includedir | --includedi | --included | --include \
1242 | --includ | --inclu | --incl | --inc)
1243 ac_prev=includedir ;;
1244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1245 | --includ=* | --inclu=* | --incl=* | --inc=*)
1246 includedir=$ac_optarg ;;
1248 -infodir | --infodir | --infodi | --infod | --info | --inf)
1250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1251 infodir=$ac_optarg ;;
1253 -libdir | --libdir | --libdi | --libd)
1255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1256 libdir=$ac_optarg ;;
1258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1259 | --libexe | --libex | --libe)
1260 ac_prev=libexecdir ;;
1261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1262 | --libexe=* | --libex=* | --libe=*)
1263 libexecdir=$ac_optarg ;;
1265 -localedir | --localedir | --localedi | --localed | --locale)
1266 ac_prev=localedir ;;
1267 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1268 localedir=$ac_optarg ;;
1270 -localstatedir | --localstatedir | --localstatedi | --localstated \
1271 | --localstate | --localstat | --localsta | --localst | --locals)
1272 ac_prev=localstatedir ;;
1273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1274 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1275 localstatedir=$ac_optarg ;;
1277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1280 mandir=$ac_optarg ;;
1282 -nfp | --nfp | --nf)
1283 # Obsolete; use --without-fp.
1286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1287 | --no-cr | --no-c | -n)
1290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1296 | --oldin | --oldi | --old | --ol | --o)
1297 ac_prev=oldincludedir ;;
1298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1301 oldincludedir=$ac_optarg ;;
1303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1306 prefix=$ac_optarg ;;
1308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1309 | --program-pre | --program-pr | --program-p)
1310 ac_prev=program_prefix ;;
1311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1313 program_prefix=$ac_optarg ;;
1315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1316 | --program-suf | --program-su | --program-s)
1317 ac_prev=program_suffix ;;
1318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1320 program_suffix=$ac_optarg ;;
1322 -program-transform-name | --program-transform-name \
1323 | --program-transform-nam | --program-transform-na \
1324 | --program-transform-n | --program-transform- \
1325 | --program-transform | --program-transfor \
1326 | --program-transfo | --program-transf \
1327 | --program-trans | --program-tran \
1328 | --progr-tra | --program-tr | --program-t)
1329 ac_prev=program_transform_name ;;
1330 -program-transform-name=* | --program-transform-name=* \
1331 | --program-transform-nam=* | --program-transform-na=* \
1332 | --program-transform-n=* | --program-transform-=* \
1333 | --program-transform=* | --program-transfor=* \
1334 | --program-transfo=* | --program-transf=* \
1335 | --program-trans=* | --program-tran=* \
1336 | --progr-tra=* | --program-tr=* | --program-t=*)
1337 program_transform_name=$ac_optarg ;;
1339 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1342 pdfdir=$ac_optarg ;;
1344 -psdir | --psdir | --psdi | --psd | --ps)
1346 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1350 | -silent | --silent | --silen | --sile | --sil)
1353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357 sbindir=$ac_optarg ;;
1359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1361 | --sharedst | --shareds | --shared | --share | --shar \
1363 ac_prev=sharedstatedir ;;
1364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368 sharedstatedir=$ac_optarg ;;
1370 -site | --site | --sit)
1372 -site=* | --site=* | --sit=*)
1375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1378 srcdir=$ac_optarg ;;
1380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1381 | --syscon | --sysco | --sysc | --sys | --sy)
1382 ac_prev=sysconfdir ;;
1383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1385 sysconfdir=$ac_optarg ;;
1387 -target | --target | --targe | --targ | --tar | --ta | --t)
1388 ac_prev=target_alias ;;
1389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1390 target_alias=$ac_optarg ;;
1392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1395 -version | --version | --versio | --versi | --vers | -V)
1396 ac_init_version=: ;;
1399 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402 { echo "$as_me: error: invalid package name: $ac_package" >&2
1403 { (exit 1); exit 1; }; }
1404 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1405 eval with_$ac_package=\$ac_optarg ;;
1407 -without-* | --without-*)
1408 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411 { echo "$as_me: error: invalid package name: $ac_package" >&2
1412 { (exit 1); exit 1; }; }
1413 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1414 eval with_$ac_package=no ;;
1417 # Obsolete; use --with-x.
1420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421 | --x-incl | --x-inc | --x-in | --x-i)
1422 ac_prev=x_includes ;;
1423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425 x_includes=$ac_optarg ;;
1427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429 ac_prev=x_libraries ;;
1430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432 x_libraries=$ac_optarg ;;
1434 -*) { echo "$as_me: error: unrecognized option: $ac_option
1435 Try \`$0 --help' for more information." >&2
1436 { (exit 1); exit 1; }; }
1440 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1441 # Reject names that are not valid shell variable names.
1442 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1443 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1444 { (exit 1); exit 1; }; }
1445 eval $ac_envvar=\$ac_optarg
1446 export $ac_envvar ;;
1449 # FIXME: should be removed in autoconf 3.0.
1450 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1459 if test -n "$ac_prev"; then
1460 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461 { echo "$as_me: error: missing argument to $ac_option" >&2
1462 { (exit 1); exit 1; }; }
1465 # Be sure to have absolute directory names.
1466 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1467 datadir sysconfdir sharedstatedir localstatedir includedir \
1468 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1469 libdir localedir mandir
1471 eval ac_val=\$$ac_var
1473 [\\/$]* | ?:[\\/]* ) continue;;
1474 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1476 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1477 { (exit 1); exit 1; }; }
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1485 target=$target_alias
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x; then
1489 if test "x$build_alias" = x; then
1490 cross_compiling=maybe
1491 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1492 If a cross compiler is detected then cross compile mode will be used." >&2
1493 elif test "x$build_alias" != "x$host_alias"; then
1499 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1501 test "$silent" = yes && exec 6>/dev/null
1504 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di=`ls -di .` &&
1506 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507 { echo "$as_me: error: Working directory cannot be determined" >&2
1508 { (exit 1); exit 1; }; }
1509 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1510 { echo "$as_me: error: pwd does not report name of working directory" >&2
1511 { (exit 1); exit 1; }; }
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516 ac_srcdir_defaulted=yes
1517 # Try the directory containing this script, then the parent directory.
1518 ac_confdir=`$as_dirname -- "$0" ||
1519 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520 X"$0" : 'X\(//\)[^/]' \| \
1521 X"$0" : 'X\(//\)$' \| \
1522 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1546 ac_srcdir_defaulted=no
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1551 { (exit 1); exit 1; }; }
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1556 { (exit 1); exit 1; }; }
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1566 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 for ac_var in $ac_precious_vars; do
1569 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_${ac_var}_value=\$${ac_var}
1571 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1576 # Report the --help message.
1578 if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1582 \`configure' configures this package to adapt to many kinds of systems.
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE. See below for descriptions of some of the useful variables.
1589 Defaults for the options are specified in brackets.
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602 Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
1604 [$ac_default_prefix]
1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1613 For better control, use the options below.
1615 Fine tuning of the installation directories:
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
1640 --x-includes=DIR X include files are in DIR
1641 --x-libraries=DIR X library files are in DIR
1644 --build=BUILD configure for building on BUILD [guessed]
1645 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1649 if test -n "$ac_init_help"; then
1654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1656 --enable-libtool enable building using GNU libtool [default=yes]
1657 --enable-shared[=PKGS] build shared libraries [default=yes]
1658 --enable-static[=PKGS] build static libraries [default=no]
1659 --enable-fast-install[=PKGS]
1660 optimize for fast installation [default=yes]
1661 --disable-libtool-lock avoid locking (might break parallel builds)
1662 --enable-includes enable installing of include files [default=no]
1663 --disable-nls do not use Native Language Support
1664 --disable-rpath do not hardcode runtime library paths
1665 --enable-gnome enable build of bgnome-console GUI [default=no]
1666 --enable-bat enable build of bat Qt4 GUI [default=no]
1667 --enable-bwx-console enable build of wxWidgets console [default=no]
1668 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1670 --enable-smartalloc enable smartalloc debugging support [default=no]
1671 --enable-lockmgr enable lock manager support [default=no]
1672 --enable-static-tools enable static tape tools [default=no]
1673 --enable-static-fd enable static File daemon [default=no]
1674 --enable-static-sd enable static Storage daemon [default=no]
1675 --enable-static-dir enable static Director [default=no]
1676 --enable-static-cons enable static Console [default=no]
1677 --enable-client-only build client (File daemon) only [default=no]
1678 --enable-build-dird enable building of dird (Director) [default=yes]
1679 --enable-build-stored enable building of stored (Storage daemon)
1681 --disable-conio disable conio support [default=no]
1682 --enable-ipv6 enable ipv6 support [default=yes]
1683 --disable-readline disable readline support [default=yes]
1684 --enable-batch-insert enable the DB batch insert code [default=no]
1685 --disable-largefile omit support for large files
1686 --disable-acl disable acl support [default=auto]
1687 --disable-xattr disable xattr support [default=auto]
1690 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1691 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1692 --with-pic try to use only PIC/non-PIC objects [default=use
1694 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1695 --with-gnu-ld assume the C compiler uses GNU ld default=no
1696 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1697 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1698 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1699 --without-libintl-prefix don't search for libintl in includedir and libdir
1700 --with-included-gettext use the GNU gettext library included here
1701 --with-readline[=DIR] specify readline library directory
1702 --with-python[=DIR] Include Python support. DIR is the Python base
1703 install directory, default is to search through a
1704 number of common places for the Python files.
1705 --with-tcp-wrappers[=DIR]
1706 enable tcpwrappers support
1707 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1708 --with-working-dir=PATH specify path of Bacula working directory
1709 --with-archivedir=PATH specify path of SD archive directory
1710 --with-basename=RESNAME specify base resource name for daemons
1711 --with-hostname=RESNAME specify host name for daemons
1712 --with-scriptdir=PATH specify path of Bacula scripts directory
1713 --with-bsrdir=PATH specify path of Bacula bsrs directory
1714 --with-logdir=PATH specify path of Bacula logs directory
1715 --with-plugindir=PATH specify path of Bacula plugins directory
1716 --with-dump-email=EMAIL dump email address
1717 --with-job-email=EMAIL job output email address
1718 --with-smtp-host=HOST SMTP mail host address
1719 --with-pid-dir=PATH specify location of Bacula pid files
1720 --with-subsys-dir=PATH specify location of Bacula subsys file
1721 --with-baseport=PORT specify base port address for daemons
1722 --with-dir-password=PASSWORD
1723 specify Director's password
1724 --with-fd-password=PASSWORD
1725 specify Client's password
1726 --with-sd-password=PASSWORD
1727 specify Storage daemon's password
1728 --with-mon-dir-password=PASSWORD
1729 specify Director's password used by the monitor
1730 --with-mon-fd-password=PASSWORD
1731 specify Client's password used by the monitor
1732 --with-mon-sd-password=PASSWORD
1733 specify Storage daemon's password used by the
1735 --with-db-name=DBNAME specify database name [default=bacula]
1736 --with-db-user=UNAME specify database user [default=bacula]
1737 --with-db-password=PWD specify database password [default=*none*]
1738 --with-db-port=DBPORT specify a database port [default=null]
1739 --with-dir-user=USER specify user for Director daemon
1740 --with-dir-group=GROUP specify group for Director daemon
1741 --with-sd-user=USER specify user for Storage daemon
1742 --with-sd-group=GROUP specify group for Storage daemon
1743 --with-fd-user=USER specify user for File daemon
1744 --with-fd-group=GROUP specify group for File daemon
1745 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1746 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1747 base install directory, [default=/usr/local/pgsql]
1748 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1749 directory, default is to search through a number of
1750 common places for the MySQL files.
1751 --with-embedded-mysql[=DIR]
1752 Include MySQL support. DIR is the MySQL base install
1753 directory, default is to search through a number of
1754 common places for the MySQL files.
1755 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1756 install directory, default is to search through a
1757 number of common places for the Ingres files.
1758 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1759 install directory, default is to search through a
1760 number of common places for the SQLite3 files.
1761 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1762 directory, default is to search through a number of
1763 common places for the DBI files.
1764 --with-dbi-driver[=DRIVER]
1765 Suport for DBI driver. DRIVER is the one DBI driver
1766 like Mysql, Postgresql, others. Default is to not
1767 configure any driver.
1768 --with-x use the X Window System
1770 Some influential environment variables:
1771 CC C compiler command
1772 CFLAGS C compiler flags
1773 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1774 nonstandard directory <lib dir>
1775 LIBS libraries to pass to the linker, e.g. -l<library>
1776 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1777 you have headers in a nonstandard directory <include dir>
1778 CXX C++ compiler command
1779 CXXFLAGS C++ compiler flags
1781 WXCONFIG wx-config command. On some systems, you must set it to
1782 wx-config-2.6 to use wxWidgets 2.6.
1783 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1784 CXXCPP C++ preprocessor
1785 XMKMF Path to xmkmf, Makefile generator for X Window System
1787 Use these variables to override the choices made by `configure' or to help
1788 it to find libraries and programs with nonstandard names/locations.
1794 if test "$ac_init_help" = "recursive"; then
1795 # If there are subdirs, report their specific --help.
1796 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1797 test -d "$ac_dir" || continue
1801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1804 # A ".." for each directory in $ac_dir_suffix.
1805 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1806 case $ac_top_builddir_sub in
1807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1811 ac_abs_top_builddir=$ac_pwd
1812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1813 # for backward compatibility:
1814 ac_top_builddir=$ac_top_build_prefix
1817 .) # We are building in place.
1819 ac_top_srcdir=$ac_top_builddir_sub
1820 ac_abs_top_srcdir=$ac_pwd ;;
1821 [\\/]* | ?:[\\/]* ) # Absolute name.
1822 ac_srcdir=$srcdir$ac_dir_suffix;
1823 ac_top_srcdir=$srcdir
1824 ac_abs_top_srcdir=$srcdir ;;
1826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1827 ac_top_srcdir=$ac_top_build_prefix$srcdir
1828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1832 cd "$ac_dir" || { ac_status=$?; continue; }
1833 # Check for guested configure.
1834 if test -f "$ac_srcdir/configure.gnu"; then
1836 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1837 elif test -f "$ac_srcdir/configure"; then
1839 $SHELL "$ac_srcdir/configure" --help=recursive
1841 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1843 cd "$ac_pwd" || { ac_status=$?; break; }
1847 test -n "$ac_init_help" && exit $ac_status
1848 if $ac_init_version; then
1851 generated by GNU Autoconf 2.61
1853 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1854 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1860 cat >config.log <<_ACEOF
1861 This file contains any messages produced by compilers while
1862 running configure, to aid debugging if configure makes a mistake.
1864 It was created by $as_me, which was
1865 generated by GNU Autoconf 2.61. Invocation command line was
1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 echo "PATH: $as_dir"
1917 # Keep a trace of the command line.
1918 # Strip out --no-create and --no-recursion so they do not pile up.
1919 # Strip out --silent because we don't want to record it for future runs.
1920 # Also quote any args containing shell meta-characters.
1921 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_must_keep_next=false
1931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933 | -silent | --silent | --silen | --sile | --sil)
1936 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1941 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1942 if test $ac_must_keep_next = true; then
1943 ac_must_keep_next=false # Got value, back to normal.
1946 *=* | --config-cache | -C | -disable-* | --disable-* \
1947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949 | -with-* | --with-* | -without-* | --without-* | --x)
1950 case "$ac_configure_args0 " in
1951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954 -* ) ac_must_keep_next=true ;;
1957 ac_configure_args="$ac_configure_args '$ac_arg'"
1962 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1963 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1965 # When interrupted or exit'd, cleanup temporary files, and complete
1966 # config.log. We remove comments because anyway the quotes in there
1967 # would cause problems or look ugly.
1968 # WARNING: Use '\'' to represent an apostrophe within the trap.
1969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970 trap 'exit_status=$?
1971 # Save into config.log some information that might help in debugging.
1976 ## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##
1981 # The following way of writing the cache mishandles newlines in values,
1983 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1984 eval ac_val=\$$ac_var
1988 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1989 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1992 _ | IFS | as_nl) ;; #(
1993 *) $as_unset $ac_var ;;
1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999 *${as_nl}ac_space=\ *)
2001 "s/'\''/'\''\\\\'\'''\''/g;
2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2013 ## ----------------- ##
2014 ## Output variables. ##
2015 ## ----------------- ##
2018 for ac_var in $ac_subst_vars
2020 eval ac_val=\$$ac_var
2022 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 echo "$ac_var='\''$ac_val'\''"
2028 if test -n "$ac_subst_files"; then
2030 ## ------------------- ##
2031 ## File substitutions. ##
2032 ## ------------------- ##
2035 for ac_var in $ac_subst_files
2037 eval ac_val=\$$ac_var
2039 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 echo "$ac_var='\''$ac_val'\''"
2046 if test -s confdefs.h; then
2056 test "$ac_signal" != 0 &&
2057 echo "$as_me: caught signal $ac_signal"
2058 echo "$as_me: exit $exit_status"
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2072 # Predefined preprocessor variables.
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_NAME "$PACKAGE_NAME"
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2099 # Let the site file select an alternate cache file if it wants to.
2100 # Prefer explicitly selected file to automatically selected ones.
2101 if test -n "$CONFIG_SITE"; then
2102 set x "$CONFIG_SITE"
2103 elif test "x$prefix" != xNONE; then
2104 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2106 set x "$ac_default_prefix/share/config.site" \
2107 "$ac_default_prefix/etc/config.site"
2112 if test -r "$ac_site_file"; then
2113 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2114 echo "$as_me: loading site script $ac_site_file" >&6;}
2115 sed 's/^/| /' "$ac_site_file" >&5
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special
2122 # files actually), so we avoid doing that.
2123 if test -f "$cache_file"; then
2124 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2125 echo "$as_me: loading cache $cache_file" >&6;}
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2132 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2133 echo "$as_me: creating cache $cache_file" >&6;}
2137 # Check that the precious variables saved in the cache have kept the same
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2147 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2151 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2152 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2158 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2159 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2160 echo "$as_me: former value: $ac_old_val" >&2;}
2161 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2162 echo "$as_me: current value: $ac_new_val" >&2;}
2163 ac_cache_corrupted=:
2166 # Pass precious variables to config.status.
2167 if test "$ac_new_set" = set; then
2169 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 *) ac_arg=$ac_var=$ac_new_val ;;
2172 case " $ac_configure_args " in
2173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2174 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2178 if $ac_cache_corrupted; then
2179 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2180 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2181 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2182 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2183 { (exit 1); exit 1; }; }
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2217 if test -f "$ac_dir/install-sh"; then
2219 ac_install_sh="$ac_aux_dir/install-sh -c"
2221 elif test -f "$ac_dir/install.sh"; then
2223 ac_install_sh="$ac_aux_dir/install.sh -c"
2225 elif test -f "$ac_dir/shtool"; then
2227 ac_install_sh="$ac_aux_dir/shtool install -c"
2231 if test -z "$ac_aux_dir"; then
2232 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2233 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2234 { (exit 1); exit 1; }; }
2237 # These three variables are undocumented and unsupported,
2238 # and are intended to be withdrawn in a future Autoconf release.
2239 # They can cause serious problems if a builder's source tree is in a directory
2240 # whose full name contains unusual characters.
2241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2246 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2249 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2250 WIN32MAINDIR=${BUILD_DIR}
2251 WIN32TOPDIR=${TOP_DIR}
2258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy $ac_prog; ac_word=$2
2260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2262 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 TRUEPRG=$ac_cv_path_TRUEPRG
2289 if test -n "$TRUEPRG"; then
2290 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2291 echo "${ECHO_T}$TRUEPRG" >&6; }
2293 { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2298 test -n "$TRUEPRG" && break
2300 test -n "$TRUEPRG" || TRUEPRG=":"
2302 for ac_prog in false
2304 # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 FALSEPRG=$ac_cv_path_FALSEPRG
2335 if test -n "$FALSEPRG"; then
2336 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2337 echo "${ECHO_T}$FALSEPRG" >&6; }
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2344 test -n "$FALSEPRG" && break
2346 test -n "$FALSEPRG" || FALSEPRG=":"
2351 if test "x$BACULA" != x; then
2352 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2354 BACULA=${BACULA:-Bacula}
2355 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2356 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2357 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2359 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2360 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2361 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2362 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2363 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2364 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2365 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2366 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2367 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2370 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2371 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2372 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2374 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2375 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2376 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2378 echo "configuring for ${BACULA} $VERSION ($DATE)"
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 if test -n "$ac_tool_prefix"; then
2388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_CC+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$CC"; then
2396 ac_cv_prog_CC="$CC" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 if test -n "$CC"; then
2417 { echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6; }
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2426 if test -z "$ac_cv_prog_CC"; then
2428 # Extract the first word of "gcc", so it can be a program name with args.
2429 set dummy gcc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$ac_ct_CC"; then
2436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_ac_ct_CC="gcc"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2456 if test -n "$ac_ct_CC"; then
2457 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2458 echo "${ECHO_T}$ac_ct_CC" >&6; }
2460 { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2464 if test "x$ac_ct_CC" = x; then
2467 case $cross_compiling:$ac_tool_warned in
2469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2470 whose name does not start with the host triplet. If you think this
2471 configuration is useful to you, please write to autoconf@gnu.org." >&5
2472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2475 ac_tool_warned=yes ;;
2483 if test -z "$CC"; then
2484 if test -n "$ac_tool_prefix"; then
2485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2486 set dummy ${ac_tool_prefix}cc; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_CC="${ac_tool_prefix}cc"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 if test -n "$CC"; then
2514 { echo "$as_me:$LINENO: result: $CC" >&5
2515 echo "${ECHO_T}$CC" >&6; }
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2524 if test -z "$CC"; then
2525 # Extract the first word of "cc", so it can be a program name with args.
2526 set dummy cc; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2544 ac_prog_rejected=yes
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 if test $ac_prog_rejected = yes; then
2556 # We found a bogon in the path, so make sure we never use it.
2557 set dummy $ac_cv_prog_CC
2559 if test $# != 0; then
2560 # We chose a different compiler from the bogus one.
2561 # However, it has the same basename, so the bogon will be chosen
2562 # first if we set CC to just the basename; use the full file name.
2564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570 if test -n "$CC"; then
2571 { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2580 if test -z "$CC"; then
2581 if test -n "$ac_tool_prefix"; then
2582 for ac_prog in cl.exe
2584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_CC+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test -n "$CC"; then
2592 ac_cv_prog_CC="$CC" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 if test -n "$CC"; then
2613 { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2621 test -n "$CC" && break
2624 if test -z "$CC"; then
2626 for ac_prog in cl.exe
2628 # Extract the first word of "$ac_prog", so it can be a program name with args.
2629 set dummy $ac_prog; ac_word=$2
2630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 if test -n "$ac_ct_CC"; then
2636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_ac_ct_CC="$ac_prog"
2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656 if test -n "$ac_ct_CC"; then
2657 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2658 echo "${ECHO_T}$ac_ct_CC" >&6; }
2660 { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2665 test -n "$ac_ct_CC" && break
2668 if test "x$ac_ct_CC" = x; then
2671 case $cross_compiling:$ac_tool_warned in
2673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet. If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&5
2676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2679 ac_tool_warned=yes ;;
2688 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2689 See \`config.log' for more details." >&5
2690 echo "$as_me: error: no acceptable C compiler found in \$PATH
2691 See \`config.log' for more details." >&2;}
2692 { (exit 1); exit 1; }; }
2694 # Provide some information about the compiler.
2695 echo "$as_me:$LINENO: checking for C compiler version" >&5
2696 ac_compiler=`set X $ac_compile; echo $2`
2697 { (ac_try="$ac_compiler --version >&5"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compiler --version >&5") 2>&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }
2707 { (ac_try="$ac_compiler -v >&5"
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler -v >&5") 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717 { (ac_try="$ac_compiler -V >&5"
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -V >&5") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
2728 cat >conftest.$ac_ext <<_ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2743 ac_clean_files_save=$ac_clean_files
2744 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2745 # Try to create an executable without -o first, disregard a.out.
2746 # It will help us diagnose broken compilers, and finding out an intuition
2748 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2749 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2750 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2752 # List of possible output files, starting from the most likely.
2753 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2754 # only as a last resort. b.out is created by i960 compilers.
2755 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2757 # The IRIX 6 linker writes into existing files which may not be
2758 # executable, retaining their permissions. Remove them first so a
2759 # subsequent execution test works.
2761 for ac_file in $ac_files
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2765 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770 if { (ac_try="$ac_link_default"
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_link_default") 2>&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; then
2780 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2781 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2782 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2783 # so that the user can short-circuit this test for compilers unknown to
2785 for ac_file in $ac_files ''
2787 test -f "$ac_file" || continue
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2792 # We found the default executable, but exeext='' is most
2796 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2798 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2800 # We set ac_cv_exeext here because the later test for it is not
2801 # safe: cross compilers may not add the suffix if given an `-o'
2802 # argument, so we may need to know it at that point already.
2803 # Even if this section looks crufty: it has the advantage of
2810 test "$ac_cv_exeext" = no && ac_cv_exeext=
2816 { echo "$as_me:$LINENO: result: $ac_file" >&5
2817 echo "${ECHO_T}$ac_file" >&6; }
2818 if test -z "$ac_file"; then
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2822 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: C compiler cannot create executables
2825 See \`config.log' for more details." >&2;}
2826 { (exit 77); exit 77; }; }
2829 ac_exeext=$ac_cv_exeext
2831 # Check that the compiler produces executables we can run. If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2850 if test "$cross_compiling" = maybe; then
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 cat >conftest.$ac_ext <<_ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } && {
3008 test -z "$ac_c_werror_flag" ||
3009 test ! -s conftest.err
3010 } && test -s conftest.$ac_objext; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3023 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3025 GCC=`test $ac_compiler_gnu = yes && echo yes`
3026 ac_test_CFLAGS=${CFLAGS+set}
3027 ac_save_CFLAGS=$CFLAGS
3028 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_cc_g+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 ac_save_c_werror_flag=$ac_c_werror_flag
3034 ac_c_werror_flag=yes
3037 cat >conftest.$ac_ext <<_ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3052 rm -f conftest.$ac_objext
3053 if { (ac_try="$ac_compile"
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compile") 2>conftest.er1
3061 grep -v '^ *+' conftest.er1 >conftest.err
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } && {
3066 test -z "$ac_c_werror_flag" ||
3067 test ! -s conftest.err
3068 } && test -s conftest.$ac_objext; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } && {
3104 test -z "$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 } && test -s conftest.$ac_objext; then
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 ac_c_werror_flag=$ac_save_c_werror_flag
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_c_werror_flag=$ac_save_c_werror_flag
3163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3165 if test "$ac_test_CFLAGS" = set; then
3166 CFLAGS=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168 if test "$GCC" = yes; then
3174 if test "$GCC" = yes; then
3180 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3181 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3182 if test "${ac_cv_prog_cc_c89+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 ac_cv_prog_cc_c89=no
3187 cat >conftest.$ac_ext <<_ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3198 struct buf { int x; };
3199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3200 static char *e (p, i)
3206 static char *f (char * (*g) (char **, int), char **p, ...)
3211 s = g (p, va_arg (v,int));
3216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3217 function prototypes and stuff, but not '\xHH' hex character constants.
3218 These don't provoke an error unfortunately, instead are silently treated
3219 as 'x'. The following induces an error, until -std is added to get
3220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3221 array size at least. It's necessary to write '\x00'==0 to get something
3222 that's true only with -std. */
3223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3226 inside strings and character constants. */
3228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3230 int test (int i, double x);
3231 struct s1 {int (*f) (int a);};
3232 struct s2 {int (*f) (double a);};
3233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3247 CC="$ac_save_CC $ac_arg"
3248 rm -f conftest.$ac_objext
3249 if { (ac_try="$ac_compile"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compile") 2>conftest.er1
3257 grep -v '^ *+' conftest.er1 >conftest.err
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } && {
3262 test -z "$ac_c_werror_flag" ||
3263 test ! -s conftest.err
3264 } && test -s conftest.$ac_objext; then
3265 ac_cv_prog_cc_c89=$ac_arg
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3273 rm -f core conftest.err conftest.$ac_objext
3274 test "x$ac_cv_prog_cc_c89" != "xno" && break
3276 rm -f conftest.$ac_ext
3281 case "x$ac_cv_prog_cc_c89" in
3283 { echo "$as_me:$LINENO: result: none needed" >&5
3284 echo "${ECHO_T}none needed" >&6; } ;;
3286 { echo "$as_me:$LINENO: result: unsupported" >&5
3287 echo "${ECHO_T}unsupported" >&6; } ;;
3289 CC="$CC $ac_cv_prog_cc_c89"
3290 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3291 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 ac_cpp='$CXXCPP $CPPFLAGS'
3303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3306 if test -z "$CXX"; then
3307 if test -n "$CCC"; then
3310 if test -n "$ac_tool_prefix"; then
3311 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_CXX+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$CXX"; then
3321 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 if test -n "$CXX"; then
3342 { echo "$as_me:$LINENO: result: $CXX" >&5
3343 echo "${ECHO_T}$CXX" >&6; }
3345 { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3350 test -n "$CXX" && break
3353 if test -z "$CXX"; then
3355 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 if test -n "$ac_ct_CXX"; then
3365 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374 ac_cv_prog_ac_ct_CXX="$ac_prog"
3375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3385 if test -n "$ac_ct_CXX"; then
3386 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3387 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3389 { echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6; }
3394 test -n "$ac_ct_CXX" && break
3397 if test "x$ac_ct_CXX" = x; then
3400 case $cross_compiling:$ac_tool_warned in
3402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3403 whose name does not start with the host triplet. If you think this
3404 configuration is useful to you, please write to autoconf@gnu.org." >&5
3405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3406 whose name does not start with the host triplet. If you think this
3407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3408 ac_tool_warned=yes ;;
3416 # Provide some information about the compiler.
3417 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3418 ac_compiler=`set X $ac_compile; echo $2`
3419 { (ac_try="$ac_compiler --version >&5"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compiler --version >&5") 2>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }
3429 { (ac_try="$ac_compiler -v >&5"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compiler -v >&5") 2>&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }
3439 { (ac_try="$ac_compiler -V >&5"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_compiler -V >&5") 2>&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }
3450 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 cat >conftest.$ac_ext <<_ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_cxx_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3502 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3503 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3504 GXX=`test $ac_compiler_gnu = yes && echo yes`
3505 ac_test_CXXFLAGS=${CXXFLAGS+set}
3506 ac_save_CXXFLAGS=$CXXFLAGS
3507 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3508 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3509 if test "${ac_cv_prog_cxx_g+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3513 ac_cxx_werror_flag=yes
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3531 rm -f conftest.$ac_objext
3532 if { (ac_try="$ac_compile"
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_compile") 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } && {
3545 test -z "$ac_cxx_werror_flag" ||
3546 test ! -s conftest.err
3547 } && test -s conftest.$ac_objext; then
3548 ac_cv_prog_cxx_g=yes
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_cxx_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compile") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && {
3622 test -z "$ac_cxx_werror_flag" ||
3623 test ! -s conftest.err
3624 } && test -s conftest.$ac_objext; then
3625 ac_cv_prog_cxx_g=yes
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3644 if test "$ac_test_CXXFLAGS" = set; then
3645 CXXFLAGS=$ac_save_CXXFLAGS
3646 elif test $ac_cv_prog_cxx_g = yes; then
3647 if test "$GXX" = yes; then
3653 if test "$GXX" = yes; then
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665 if test "x$CC" != xcc; then
3666 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3667 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3669 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3670 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3672 set dummy $CC; ac_cc=`echo $2 |
3673 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3674 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 # Make sure it works both with $CC and with simple cc.
3693 # We do the test twice because some compilers refuse to overwrite an
3694 # existing .o file with -o, though they will create one.
3695 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3697 if { (case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_try") 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_try") 2>&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); };
3716 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3717 if test "x$CC" != xcc; then
3718 # Test first that cc exists at all.
3719 if { ac_try='cc -c conftest.$ac_ext >&5'
3720 { (case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_try") 2>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3731 if { (case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_try") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_try") 2>&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); };
3753 # cc exists but doesn't like -o.
3754 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3759 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3761 rm -f core conftest*
3764 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3765 { echo "$as_me:$LINENO: result: yes" >&5
3766 echo "${ECHO_T}yes" >&6; }
3768 { echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6; }
3771 cat >>confdefs.h <<\_ACEOF
3772 #define NO_MINUS_C_MINUS_O 1
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3783 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3784 # On Suns, sometimes $CPP names a directory.
3785 if test -n "$CPP" && test -d "$CPP"; then
3788 if test -z "$CPP"; then
3789 if test "${ac_cv_prog_CPP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 # Double quotes because CPP needs to be expanded
3793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3796 for ac_c_preproc_warn_flag in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.$ac_ext <<_ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3811 # include <limits.h>
3813 # include <assert.h>
3817 if { (ac_try="$ac_cpp conftest.$ac_ext"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3825 grep -v '^ *+' conftest.er1 >conftest.err
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev/null && {
3830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3831 test ! -s conftest.err
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 # Broken: fails on valid input.
3842 rm -f conftest.err conftest.$ac_ext
3844 # OK, works on sane cases. Now check whether nonexistent headers
3845 # can be detected and how.
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 #include <ac_nonexistent.h>
3854 if { (ac_try="$ac_cpp conftest.$ac_ext"
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } >/dev/null && {
3867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3870 # Broken: success on invalid input.
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 # Passes both tests.
3881 rm -f conftest.err conftest.$ac_ext
3884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3885 rm -f conftest.err conftest.$ac_ext
3886 if $ac_preproc_ok; then
3898 { echo "$as_me:$LINENO: result: $CPP" >&5
3899 echo "${ECHO_T}$CPP" >&6; }
3901 for ac_c_preproc_warn_flag in '' yes
3903 # Use a header file that comes with gcc, so configuring glibc
3904 # with a fresh cross-compiler works.
3905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3906 # <limits.h> exists even on freestanding compilers.
3907 # On the NeXT, cc -E runs the code through the compiler's parser,
3908 # not just through cpp. "Syntax error" is here to catch this case.
3909 cat >conftest.$ac_ext <<_ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3916 # include <limits.h>
3918 # include <assert.h>
3922 if { (ac_try="$ac_cpp conftest.$ac_ext"
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3930 grep -v '^ *+' conftest.er1 >conftest.err
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } >/dev/null && {
3935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3936 test ! -s conftest.err
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 # Broken: fails on valid input.
3947 rm -f conftest.err conftest.$ac_ext
3949 # OK, works on sane cases. Now check whether nonexistent headers
3950 # can be detected and how.
3951 cat >conftest.$ac_ext <<_ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3957 #include <ac_nonexistent.h>
3959 if { (ac_try="$ac_cpp conftest.$ac_ext"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } >/dev/null && {
3972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3973 test ! -s conftest.err
3975 # Broken: success on invalid input.
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 # Passes both tests.
3986 rm -f conftest.err conftest.$ac_ext
3989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3990 rm -f conftest.err conftest.$ac_ext
3991 if $ac_preproc_ok; then
3994 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3995 See \`config.log' for more details." >&5
3996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3997 See \`config.log' for more details." >&2;}
3998 { (exit 1); exit 1; }; }
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4009 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4010 if test "${ac_cv_path_GREP+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 # Extract the first word of "grep ggrep" to use in msg output
4014 if test -z "$GREP"; then
4015 set dummy grep ggrep; ac_prog_name=$2
4016 if test "${ac_cv_path_GREP+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 ac_path_GREP_found=false
4020 # Loop through the user's path and test for each of PROGNAME-LIST
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4025 test -z "$as_dir" && as_dir=.
4026 for ac_prog in grep ggrep; do
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4029 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4030 # Check for GNU ac_path_GREP and select it if it is found.
4031 # Check for GNU $ac_path_GREP
4032 case `"$ac_path_GREP" --version 2>&1` in
4034 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4037 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4040 cat "conftest.in" "conftest.in" >"conftest.tmp"
4041 mv "conftest.tmp" "conftest.in"
4042 cp "conftest.in" "conftest.nl"
4043 echo 'GREP' >> "conftest.nl"
4044 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4046 ac_count=`expr $ac_count + 1`
4047 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4048 # Best one so far, save it but keep looking for a better one
4049 ac_cv_path_GREP="$ac_path_GREP"
4050 ac_path_GREP_max=$ac_count
4052 # 10*(2^10) chars as input seems more than enough
4053 test $ac_count -gt 10 && break
4055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059 $ac_path_GREP_found && break 3
4069 GREP="$ac_cv_path_GREP"
4070 if test -z "$GREP"; then
4071 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4072 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4073 { (exit 1); exit 1; }; }
4077 ac_cv_path_GREP=$GREP
4082 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4083 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4084 GREP="$ac_cv_path_GREP"
4087 { echo "$as_me:$LINENO: checking for egrep" >&5
4088 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4089 if test "${ac_cv_path_EGREP+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4093 then ac_cv_path_EGREP="$GREP -E"
4095 # Extract the first word of "egrep" to use in msg output
4096 if test -z "$EGREP"; then
4097 set dummy egrep; ac_prog_name=$2
4098 if test "${ac_cv_path_EGREP+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 ac_path_EGREP_found=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107 test -z "$as_dir" && as_dir=.
4108 for ac_prog in egrep; do
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4111 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4112 # Check for GNU ac_path_EGREP and select it if it is found.
4113 # Check for GNU $ac_path_EGREP
4114 case `"$ac_path_EGREP" --version 2>&1` in
4116 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4119 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4122 cat "conftest.in" "conftest.in" >"conftest.tmp"
4123 mv "conftest.tmp" "conftest.in"
4124 cp "conftest.in" "conftest.nl"
4125 echo 'EGREP' >> "conftest.nl"
4126 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128 ac_count=`expr $ac_count + 1`
4129 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4130 # Best one so far, save it but keep looking for a better one
4131 ac_cv_path_EGREP="$ac_path_EGREP"
4132 ac_path_EGREP_max=$ac_count
4134 # 10*(2^10) chars as input seems more than enough
4135 test $ac_count -gt 10 && break
4137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4141 $ac_path_EGREP_found && break 3
4151 EGREP="$ac_cv_path_EGREP"
4152 if test -z "$EGREP"; then
4153 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4154 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4155 { (exit 1); exit 1; }; }
4159 ac_cv_path_EGREP=$EGREP
4165 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4166 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4167 EGREP="$ac_cv_path_EGREP"
4170 if test $ac_cv_c_compiler_gnu = yes; then
4171 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4172 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 ac_pattern="Autoconf.*'x'"
4177 cat >conftest.$ac_ext <<_ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4188 ac_cv_prog_gcc_traditional=yes
4190 ac_cv_prog_gcc_traditional=no
4195 if test $ac_cv_prog_gcc_traditional = no; then
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4207 ac_cv_prog_gcc_traditional=yes
4213 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4214 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4215 if test $ac_cv_prog_gcc_traditional = yes; then
4216 CC="$CC -traditional"
4220 BASECC=`basename $CC`
4222 if test "x$BASECC" = xgcc; then
4223 cat >>confdefs.h <<\_ACEOF
4229 # Extract the first word of "$CXX", so it can be a program name with args.
4230 set dummy $CXX; ac_word=$2
4231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4233 if test "${ac_cv_path_CXX+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4261 if test -n "$CXX"; then
4262 { echo "$as_me:$LINENO: result: $CXX" >&5
4263 echo "${ECHO_T}$CXX" >&6; }
4265 { echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6; }
4270 if test ! -e $CXX; then
4271 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4272 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4273 { (exit 1); exit 1; }; }
4276 # Find a good install program. We prefer a C program (faster),
4277 # so one script is as good as another. But avoid the broken or
4278 # incompatible versions:
4279 # SysV /etc/install, /usr/sbin/install
4280 # SunOS /usr/etc/install
4281 # IRIX /sbin/install
4283 # AmigaOS /C/install, which installs bootblocks on floppy discs
4284 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4285 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4286 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4287 # OS/2's system install, which has a completely different semantic
4288 # ./install, which can be erroneously created by make from ./install.sh.
4289 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4290 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4291 if test -z "$INSTALL"; then
4292 if test "${ac_cv_path_install+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir=.
4300 # Account for people who put trailing slashes in PATH elements.
4302 ./ | .// | /cC/* | \
4303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4304 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4307 # OSF1 and SCO ODT 3.0 have their own names for install.
4308 # Don't use installbsd from OSF since it installs stuff as root
4310 for ac_prog in ginstall scoinst install; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4313 if test $ac_prog = install &&
4314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4315 # AIX install. It has an incompatible calling convention.
4317 elif test $ac_prog = install &&
4318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4319 # program-specific install script used by HP pwplus--don't use.
4322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4335 if test "${ac_cv_path_install+set}" = set; then
4336 INSTALL=$ac_cv_path_install
4338 # As a last resort, use the slow shell script. Don't cache a
4339 # value for INSTALL within a source directory, because that will
4340 # break other packages using the cache if that directory is
4341 # removed, or if the value is a relative name.
4342 INSTALL=$ac_install_sh
4345 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4346 echo "${ECHO_T}$INSTALL" >&6; }
4348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4349 # It thinks the first close brace ends the variable substitution.
4350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4356 # Extract the first word of "mv", so it can be a program name with args.
4357 set dummy mv; ac_word=$2
4358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4360 if test "${ac_cv_path_MV+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4388 if test -n "$MV"; then
4389 { echo "$as_me:$LINENO: result: $MV" >&5
4390 echo "${ECHO_T}$MV" >&6; }
4392 { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4397 # Extract the first word of "rm", so it can be a program name with args.
4398 set dummy rm; ac_word=$2
4399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401 if test "${ac_cv_path_REMOVE+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4428 REMOVE=$ac_cv_path_REMOVE
4429 if test -n "$REMOVE"; then
4430 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4431 echo "${ECHO_T}$REMOVE" >&6; }
4433 { echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6; }
4438 # Extract the first word of "cp", so it can be a program name with args.
4439 set dummy cp; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_path_CP+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4470 if test -n "$CP"; then
4471 { echo "$as_me:$LINENO: result: $CP" >&5
4472 echo "${ECHO_T}$CP" >&6; }
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4479 # Extract the first word of "sed", so it can be a program name with args.
4480 set dummy sed; ac_word=$2
4481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483 if test "${ac_cv_path_SED+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4511 if test -n "$SED"; then
4512 { echo "$as_me:$LINENO: result: $SED" >&5
4513 echo "${ECHO_T}$SED" >&6; }
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4520 # Extract the first word of "echo", so it can be a program name with args.
4521 set dummy echo; ac_word=$2
4522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4524 if test "${ac_cv_path_ECHO+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4551 ECHO=$ac_cv_path_ECHO
4552 if test -n "$ECHO"; then
4553 { echo "$as_me:$LINENO: result: $ECHO" >&5
4554 echo "${ECHO_T}$ECHO" >&6; }
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4561 # Extract the first word of "cmp", so it can be a program name with args.
4562 set dummy cmp; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_path_CMP+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4593 if test -n "$CMP"; then
4594 { echo "$as_me:$LINENO: result: $CMP" >&5
4595 echo "${ECHO_T}$CMP" >&6; }
4597 { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4602 # Extract the first word of "tbl", so it can be a program name with args.
4603 set dummy tbl; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_path_TBL+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4634 if test -n "$TBL"; then
4635 { echo "$as_me:$LINENO: result: $TBL" >&5
4636 echo "${ECHO_T}$TBL" >&6; }
4638 { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4643 # Extract the first word of "ar", so it can be a program name with args.
4644 set dummy ar; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_path_AR+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4675 if test -n "$AR"; then
4676 { echo "$as_me:$LINENO: result: $AR" >&5
4677 echo "${ECHO_T}$AR" >&6; }
4679 { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4684 # Extract the first word of "openssl", so it can be a program name with args.
4685 set dummy openssl; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_path_OPENSSL+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4715 OPENSSL=$ac_cv_path_OPENSSL
4716 if test -n "$OPENSSL"; then
4717 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4718 echo "${ECHO_T}$OPENSSL" >&6; }
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4725 # Extract the first word of "mtx", so it can be a program name with args.
4726 set dummy mtx; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_path_MTX+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4757 if test -n "$MTX"; then
4758 { echo "$as_me:$LINENO: result: $MTX" >&5
4759 echo "${ECHO_T}$MTX" >&6; }
4761 { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4766 # Extract the first word of "dd", so it can be a program name with args.
4767 set dummy dd; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_path_DD+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4798 if test -n "$DD"; then
4799 { echo "$as_me:$LINENO: result: $DD" >&5
4800 echo "${ECHO_T}$DD" >&6; }
4802 { echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6; }
4807 # Extract the first word of "mkisofs", so it can be a program name with args.
4808 set dummy mkisofs; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_path_MKISOFS+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4838 MKISOFS=$ac_cv_path_MKISOFS
4839 if test -n "$MKISOFS"; then
4840 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4841 echo "${ECHO_T}$MKISOFS" >&6; }
4843 { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4848 # Extract the first word of "python", so it can be a program name with args.
4849 set dummy python; ac_word=$2
4850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852 if test "${ac_cv_path_PYTHON+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4879 PYTHON=$ac_cv_path_PYTHON
4880 if test -n "$PYTHON"; then
4881 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4882 echo "${ECHO_T}$PYTHON" >&6; }
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4889 # Extract the first word of "growisofs", so it can be a program name with args.
4890 set dummy growisofs; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4920 GROWISOFS=$ac_cv_path_GROWISOFS
4921 if test -n "$GROWISOFS"; then
4922 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4923 echo "${ECHO_T}$GROWISOFS" >&6; }
4925 { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4930 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4931 set dummy dvd+rw-mediainfo; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 case $DVDRWMEDIAINFO in
4939 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4961 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4962 if test -n "$DVDRWMEDIAINFO"; then
4963 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4964 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4966 { echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6; }
4971 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4972 set dummy dvd+rw-format; ac_word=$2
4973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4975 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 case $DVDRWFORMAT in
4980 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5002 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5003 if test -n "$DVDRWFORMAT"; then
5004 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5005 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5007 { echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6; }
5012 # Extract the first word of "pkg-config", so it can be a program name with args.
5013 set dummy pkg-config; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5043 PKGCONFIG=$ac_cv_path_PKGCONFIG
5044 if test -n "$PKGCONFIG"; then
5045 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5046 echo "${ECHO_T}$PKGCONFIG" >&6; }
5048 { echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6; }
5053 # Extract the first word of "qmake", so it can be a program name with args.
5054 set dummy qmake; ac_word=$2
5055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5057 if test "${ac_cv_path_QMAKE+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5084 QMAKE=$ac_cv_path_QMAKE
5085 if test -n "$QMAKE"; then
5086 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5087 echo "${ECHO_T}$QMAKE" >&6; }
5089 { echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6; }
5094 # Extract the first word of "gmake", so it can be a program name with args.
5095 set dummy gmake; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_GMAKE+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5125 GMAKE=$ac_cv_path_GMAKE
5126 if test -n "$GMAKE"; then
5127 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5128 echo "${ECHO_T}$GMAKE" >&6; }
5130 { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5136 if test "x$WXCONFIG" = x; then
5139 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5140 set dummy ${WXCONFIG}; ac_word=$2
5141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5170 WXCONFIG=$ac_cv_path_WXCONFIG
5171 if test -n "$WXCONFIG"; then
5172 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5173 echo "${ECHO_T}$WXCONFIG" >&6; }
5175 { echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6; }
5181 # Extract the first word of "cdrecord", so it can be a program name with args.
5182 set dummy cdrecord; ac_word=$2
5183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185 if test "${ac_cv_path_CDRECORD+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5212 CDRECORD=$ac_cv_path_CDRECORD
5213 if test -n "$CDRECORD"; then
5214 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5215 echo "${ECHO_T}$CDRECORD" >&6; }
5217 { echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6; }
5222 # Extract the first word of "pidof", so it can be a program name with args.
5223 set dummy pidof; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_path_PIDOF+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5253 PIDOF=$ac_cv_path_PIDOF
5254 if test -n "$PIDOF"; then
5255 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5256 echo "${ECHO_T}$PIDOF" >&6; }
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5263 for ac_prog in gawk mawk nawk awk
5265 # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_prog_AWK+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 if test -n "$AWK"; then
5273 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_AWK="$ac_prog"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 if test -n "$AWK"; then
5294 { echo "$as_me:$LINENO: result: $AWK" >&5
5295 echo "${ECHO_T}$AWK" >&6; }
5297 { echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6; }
5302 test -n "$AWK" && break
5305 # Some AWK programs fail, so test it and warn the user
5306 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5307 { if ((prog == $2) || (("(" prog ")") == $2) ||
5308 (("" prog "") == $2) ||
5309 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5311 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5312 The regex engine of $AWK is too broken to be used you
5313 might want to install GNU AWK.
5314 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5315 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5316 The regex engine of $AWK is too broken to be used you
5317 might want to install GNU AWK.
5318 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5319 { (exit 1); exit 1; }; }
5322 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5323 set dummy $THE_AWK; ac_word=$2
5324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5326 if test "${ac_cv_path_AWK+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5354 if test -n "$AWK"; then
5355 { echo "$as_me:$LINENO: result: $AWK" >&5
5356 echo "${ECHO_T}$AWK" >&6; }
5358 { echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6; }
5365 test -n "$ARFLAG" || ARFLAGS="cr"
5377 # Check whether --enable-libtool was given.
5378 if test "${enable_libtool+set}" = set; then
5379 enableval=$enable_libtool;
5380 if test x$enableval = xno; then
5389 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5390 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5395 macro_version='2.2.6'
5396 macro_revision='1.3012'
5410 ltmain="$ac_aux_dir/ltmain.sh"
5412 # Make sure we can run config.sub.
5413 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5414 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5415 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5416 { (exit 1); exit 1; }; }
5418 { echo "$as_me:$LINENO: checking build system type" >&5
5419 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5420 if test "${ac_cv_build+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 ac_build_alias=$build_alias
5424 test "x$ac_build_alias" = x &&
5425 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5426 test "x$ac_build_alias" = x &&
5427 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5429 { (exit 1); exit 1; }; }
5430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5431 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5432 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5433 { (exit 1); exit 1; }; }
5436 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5437 echo "${ECHO_T}$ac_cv_build" >&6; }
5438 case $ac_cv_build in
5440 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5441 echo "$as_me: error: invalid value of canonical build" >&2;}
5442 { (exit 1); exit 1; }; };;
5445 ac_save_IFS=$IFS; IFS='-'
5451 # Remember, the first character of IFS is used to create $*,
5452 # except with old shells:
5455 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5458 { echo "$as_me:$LINENO: checking host system type" >&5
5459 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5460 if test "${ac_cv_host+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 if test "x$host_alias" = x; then
5464 ac_cv_host=$ac_cv_build
5466 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5467 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5468 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5469 { (exit 1); exit 1; }; }
5473 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5474 echo "${ECHO_T}$ac_cv_host" >&6; }
5477 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5478 echo "$as_me: error: invalid value of canonical host" >&2;}
5479 { (exit 1); exit 1; }; };;
5482 ac_save_IFS=$IFS; IFS='-'
5488 # Remember, the first character of IFS is used to create $*,
5489 # except with old shells:
5492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5495 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5496 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5497 if test "${ac_cv_path_SED+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5501 for ac_i in 1 2 3 4 5 6 7; do
5502 ac_script="$ac_script$as_nl$ac_script"
5504 echo "$ac_script" | sed 99q >conftest.sed
5505 $as_unset ac_script || ac_script=
5506 # Extract the first word of "sed gsed" to use in msg output
5507 if test -z "$SED"; then
5508 set dummy sed gsed; ac_prog_name=$2
5509 if test "${ac_cv_path_SED+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 ac_path_SED_found=false
5513 # Loop through the user's path and test for each of PROGNAME-LIST
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir=.
5519 for ac_prog in sed gsed; do
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5522 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5523 # Check for GNU ac_path_SED and select it if it is found.
5524 # Check for GNU $ac_path_SED
5525 case `"$ac_path_SED" --version 2>&1` in
5527 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5530 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5533 cat "conftest.in" "conftest.in" >"conftest.tmp"
5534 mv "conftest.tmp" "conftest.in"
5535 cp "conftest.in" "conftest.nl"
5536 echo '' >> "conftest.nl"
5537 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5539 ac_count=`expr $ac_count + 1`
5540 if test $ac_count -gt ${ac_path_SED_max-0}; then
5541 # Best one so far, save it but keep looking for a better one
5542 ac_cv_path_SED="$ac_path_SED"
5543 ac_path_SED_max=$ac_count
5545 # 10*(2^10) chars as input seems more than enough
5546 test $ac_count -gt 10 && break
5548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5552 $ac_path_SED_found && break 3
5562 SED="$ac_cv_path_SED"
5563 if test -z "$SED"; then
5564 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5565 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5566 { (exit 1); exit 1; }; }
5574 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5575 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5576 SED="$ac_cv_path_SED"
5579 test -z "$SED" && SED=sed
5580 Xsed="$SED -e 1s/^X//"
5592 { echo "$as_me:$LINENO: checking for fgrep" >&5
5593 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5594 if test "${ac_cv_path_FGREP+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5598 then ac_cv_path_FGREP="$GREP -F"
5600 # Extract the first word of "fgrep" to use in msg output
5601 if test -z "$FGREP"; then
5602 set dummy fgrep; ac_prog_name=$2
5603 if test "${ac_cv_path_FGREP+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 ac_path_FGREP_found=false
5607 # Loop through the user's path and test for each of PROGNAME-LIST
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5612 test -z "$as_dir" && as_dir=.
5613 for ac_prog in fgrep; do
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5616 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5617 # Check for GNU ac_path_FGREP and select it if it is found.
5618 # Check for GNU $ac_path_FGREP
5619 case `"$ac_path_FGREP" --version 2>&1` in
5621 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5624 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5627 cat "conftest.in" "conftest.in" >"conftest.tmp"
5628 mv "conftest.tmp" "conftest.in"
5629 cp "conftest.in" "conftest.nl"
5630 echo 'FGREP' >> "conftest.nl"
5631 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5633 ac_count=`expr $ac_count + 1`
5634 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5635 # Best one so far, save it but keep looking for a better one
5636 ac_cv_path_FGREP="$ac_path_FGREP"
5637 ac_path_FGREP_max=$ac_count
5639 # 10*(2^10) chars as input seems more than enough
5640 test $ac_count -gt 10 && break
5642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5646 $ac_path_FGREP_found && break 3
5656 FGREP="$ac_cv_path_FGREP"
5657 if test -z "$FGREP"; then
5658 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5659 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5660 { (exit 1); exit 1; }; }
5664 ac_cv_path_FGREP=$FGREP
5670 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5671 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5672 FGREP="$ac_cv_path_FGREP"
5675 test -z "$GREP" && GREP=grep
5695 # Check whether --with-gnu-ld was given.
5696 if test "${with_gnu_ld+set}" = set; then
5697 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5703 if test "$GCC" = yes; then
5704 # Check if gcc -print-prog-name=ld gives a path.
5705 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5706 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5709 # gcc leaves a trailing carriage return which upsets mingw
5710 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5712 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5715 # Accept absolute paths.
5717 re_direlt='/[^/][^/]*/\.\./'
5718 # Canonicalize the pathname of ld
5719 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5720 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5721 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5723 test -z "$LD" && LD="$ac_prog"
5726 # If it fails, then pretend we aren't using GCC.
5730 # If it is relative, then search for the first ld in PATH.
5734 elif test "$with_gnu_ld" = yes; then
5735 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5736 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5738 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5739 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5741 if test "${lt_cv_path_LD+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 if test -z "$LD"; then
5745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5746 for ac_dir in $PATH; do
5748 test -z "$ac_dir" && ac_dir=.
5749 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5750 lt_cv_path_LD="$ac_dir/$ac_prog"
5751 # Check to see if the program is GNU ld. I'd rather use --version,
5752 # but apparently some variants of GNU ld only accept -v.
5753 # Break only if it was the GNU/non-GNU ld that we prefer.
5754 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5755 *GNU* | *'with BFD'*)
5756 test "$with_gnu_ld" != no && break
5759 test "$with_gnu_ld" != yes && break
5766 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5771 if test -n "$LD"; then
5772 { echo "$as_me:$LINENO: result: $LD" >&5
5773 echo "${ECHO_T}$LD" >&6; }
5775 { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5778 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5779 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5780 { (exit 1); exit 1; }; }
5781 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5782 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5783 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5787 case `$LD -v 2>&1 </dev/null` in
5788 *GNU* | *'with BFD'*)
5789 lt_cv_prog_gnu_ld=yes
5792 lt_cv_prog_gnu_ld=no
5796 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5797 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5798 with_gnu_ld=$lt_cv_prog_gnu_ld
5808 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5809 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5810 if test "${lt_cv_path_NM+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 if test -n "$NM"; then
5814 # Let the user override the test.
5817 lt_nm_to_check="${ac_tool_prefix}nm"
5818 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5819 lt_nm_to_check="$lt_nm_to_check nm"
5821 for lt_tmp_nm in $lt_nm_to_check; do
5822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5823 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5825 test -z "$ac_dir" && ac_dir=.
5826 tmp_nm="$ac_dir/$lt_tmp_nm"
5827 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5828 # Check to see if the nm accepts a BSD-compat flag.
5829 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5830 # nm: unknown option "B" ignored
5831 # Tru64's nm complains that /dev/null is an invalid object file
5832 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5833 */dev/null* | *'Invalid file or object type'*)
5834 lt_cv_path_NM="$tmp_nm -B"
5838 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5840 lt_cv_path_NM="$tmp_nm -p"
5844 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5845 continue # so that we can try to find one that supports BSD flags
5854 : ${lt_cv_path_NM=no}
5857 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5858 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5859 if test "$lt_cv_path_NM" != "no"; then
5862 # Didn't find any BSD compatible name lister, look for dumpbin.
5863 if test -n "$ac_tool_prefix"; then
5864 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 if test -n "$DUMPBIN"; then
5874 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 DUMPBIN=$ac_cv_prog_DUMPBIN
5894 if test -n "$DUMPBIN"; then
5895 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5896 echo "${ECHO_T}$DUMPBIN" >&6; }
5898 { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5903 test -n "$DUMPBIN" && break
5906 if test -z "$DUMPBIN"; then
5907 ac_ct_DUMPBIN=$DUMPBIN
5908 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5910 # Extract the first word of "$ac_prog", so it can be a program name with args.
5911 set dummy $ac_prog; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 if test -n "$ac_ct_DUMPBIN"; then
5918 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5938 if test -n "$ac_ct_DUMPBIN"; then
5939 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5940 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5942 { echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6; }
5947 test -n "$ac_ct_DUMPBIN" && break
5950 if test "x$ac_ct_DUMPBIN" = x; then
5953 case $cross_compiling:$ac_tool_warned in
5955 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5956 whose name does not start with the host triplet. If you think this
5957 configuration is useful to you, please write to autoconf@gnu.org." >&5
5958 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5959 whose name does not start with the host triplet. If you think this
5960 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5961 ac_tool_warned=yes ;;
5963 DUMPBIN=$ac_ct_DUMPBIN
5968 if test "$DUMPBIN" != ":"; then
5972 test -z "$NM" && NM=nm
5979 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5980 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5981 if test "${lt_cv_nm_interface+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 lt_cv_nm_interface="BSD nm"
5985 echo "int some_variable = 0;" > conftest.$ac_ext
5986 (eval echo "\"\$as_me:5986: $ac_compile\"" >&5)
5987 (eval "$ac_compile" 2>conftest.err)
5988 cat conftest.err >&5
5989 (eval echo "\"\$as_me:5989: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5990 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5991 cat conftest.err >&5
5992 (eval echo "\"\$as_me:5992: output\"" >&5)
5993 cat conftest.out >&5
5994 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5995 lt_cv_nm_interface="MS dumpbin"
5999 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6000 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6002 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6003 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6005 if test "$LN_S" = "ln -s"; then
6006 { echo "$as_me:$LINENO: result: yes" >&5
6007 echo "${ECHO_T}yes" >&6; }
6009 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6010 echo "${ECHO_T}no, using $LN_S" >&6; }
6013 # find the maximum length of command line arguments
6014 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6015 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6016 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 # On DJGPP, this test can blow up pretty badly due to problems in libc
6025 # (any single argument exceeding 2000 bytes causes a buffer overrun
6026 # during glob expansion). Even if it were fixed, the result of this
6027 # check would be larger than it should be.
6028 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6032 # Under GNU Hurd, this test is not required because there is
6033 # no limit to the length of command line arguments.
6034 # Libtool will interpret -1 as no limit whatsoever
6035 lt_cv_sys_max_cmd_len=-1;
6038 cygwin* | mingw* | cegcc*)
6039 # On Win9x/ME, this test blows up -- it succeeds, but takes
6040 # about 5 minutes as the teststring grows exponentially.
6041 # Worse, since 9x/ME are not pre-emptively multitasking,
6042 # you end up with a "frozen" computer, even though with patience
6043 # the test eventually succeeds (with a max line length of 256k).
6044 # Instead, let's just punt: use the minimum linelength reported by
6045 # all of the supported platforms: 8192 (on NT/2K/XP).
6046 lt_cv_sys_max_cmd_len=8192;
6050 # On AmigaOS with pdksh, this test takes hours, literally.
6051 # So we just punt and use a minimum line length of 8192.
6052 lt_cv_sys_max_cmd_len=8192;
6055 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6056 # This has been around since 386BSD, at least. Likely further.
6057 if test -x /sbin/sysctl; then
6058 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6059 elif test -x /usr/sbin/sysctl; then
6060 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6062 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6064 # And add a safety zone
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6070 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6071 lt_cv_sys_max_cmd_len=196608
6075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6077 # nice to cause kernel panics so lets avoid the loop below.
6078 # First set a reasonable default.
6079 lt_cv_sys_max_cmd_len=16384
6081 if test -x /sbin/sysconfig; then
6082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6083 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6088 lt_cv_sys_max_cmd_len=102400
6090 sysv5* | sco5v6* | sysv4.2uw2*)
6091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6092 if test -n "$kargmax"; then
6093 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6095 lt_cv_sys_max_cmd_len=32768
6099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6100 if test -n "$lt_cv_sys_max_cmd_len"; then
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6104 # Make teststring a little bigger before we do anything with it.
6105 # a 1K string should be a reasonable start.
6106 for i in 1 2 3 4 5 6 7 8 ; do
6107 teststring=$teststring$teststring
6109 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6110 # If test is not a shell built-in, we'll probably end up computing a
6111 # maximum length that is only half of the actual maximum length, but
6113 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6114 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6115 test $i != 17 # 1/2 MB should be enough
6118 teststring=$teststring$teststring
6120 # Only check the string length outside the loop.
6121 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6123 # Add a significant safety factor because C++ compilers can tack on
6124 # massive amounts of additional arguments before passing them to the
6125 # linker. It appears as though 1/2 is a usable value.
6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6133 if test -n $lt_cv_sys_max_cmd_len ; then
6134 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6135 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6137 { echo "$as_me:$LINENO: result: none" >&5
6138 echo "${ECHO_T}none" >&6; }
6140 max_cmd_len=$lt_cv_sys_max_cmd_len
6151 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6152 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6153 # Try some XSI features
6156 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6158 && eval 'test $(( 1 + 1 )) -eq 2 \
6159 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6161 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6162 echo "${ECHO_T}$xsi_shell" >&6; }
6165 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6166 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6168 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6170 && lt_shell_append=yes
6171 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6172 echo "${ECHO_T}$lt_shell_append" >&6; }
6175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6185 # test EBCDIC or ASCII
6186 case `echo X|tr X '\101'` in
6187 A) # ASCII based system
6188 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6189 lt_SP2NL='tr \040 \012'
6190 lt_NL2SP='tr \015\012 \040\040'
6192 *) # EBCDIC based system
6193 lt_SP2NL='tr \100 \n'
6194 lt_NL2SP='tr \r\n \100\100'
6206 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6207 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6208 if test "${lt_cv_ld_reload_flag+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 lt_cv_ld_reload_flag='-r'
6213 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6214 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6215 reload_flag=$lt_cv_ld_reload_flag
6216 case $reload_flag in
6218 *) reload_flag=" $reload_flag" ;;
6220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6223 if test "$GCC" = yes; then
6224 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6226 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6239 if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6241 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 if test -n "$OBJDUMP"; then
6248 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 OBJDUMP=$ac_cv_prog_OBJDUMP
6268 if test -n "$OBJDUMP"; then
6269 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6270 echo "${ECHO_T}$OBJDUMP" >&6; }
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6278 if test -z "$ac_cv_prog_OBJDUMP"; then
6279 ac_ct_OBJDUMP=$OBJDUMP
6280 # Extract the first word of "objdump", so it can be a program name with args.
6281 set dummy objdump; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 if test -n "$ac_ct_OBJDUMP"; then
6288 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6308 if test -n "$ac_ct_OBJDUMP"; then
6309 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6310 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6312 { echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6; }
6316 if test "x$ac_ct_OBJDUMP" = x; then
6319 case $cross_compiling:$ac_tool_warned in
6321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet. If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&5
6324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet. If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6327 ac_tool_warned=yes ;;
6329 OBJDUMP=$ac_ct_OBJDUMP
6332 OBJDUMP="$ac_cv_prog_OBJDUMP"
6335 test -z "$OBJDUMP" && OBJDUMP=objdump
6345 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6346 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6347 if test "${lt_cv_deplibs_check_method+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 lt_cv_file_magic_cmd='$MAGIC_CMD'
6351 lt_cv_file_magic_test_file=
6352 lt_cv_deplibs_check_method='unknown'
6353 # Need to set the preceding variable on all platforms that support
6354 # interlibrary dependencies.
6355 # 'none' -- dependencies not supported.
6356 # `unknown' -- same as none, but documents that we really don't know.
6357 # 'pass_all' -- all dependencies passed with no checks.
6358 # 'test_compile' -- check by making test program.
6359 # 'file_magic [[regex]]' -- check by looking for files in library path
6360 # which responds to the $file_magic_cmd with a given extended regex.
6361 # If you have `file' or equivalent on your system and you're not sure
6362 # whether `pass_all' will *always* work, you probably want this one.
6366 lt_cv_deplibs_check_method=pass_all
6370 lt_cv_deplibs_check_method=pass_all
6374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6375 lt_cv_file_magic_cmd='/usr/bin/file -L'
6376 lt_cv_file_magic_test_file=/shlib/libc.so
6380 # func_win32_libid is a shell function defined in ltmain.sh
6381 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6382 lt_cv_file_magic_cmd='func_win32_libid'
6386 # Base MSYS/MinGW do not provide the 'file' command needed by
6387 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6388 # unless we find 'file', for example because we are cross-compiling.
6389 if ( file / ) >/dev/null 2>&1; then
6390 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391 lt_cv_file_magic_cmd='func_win32_libid'
6393 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6394 lt_cv_file_magic_cmd='$OBJDUMP -f'
6399 # use the weaker test based on 'objdump'. See mingw*.
6400 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6401 lt_cv_file_magic_cmd='$OBJDUMP -f'
6404 darwin* | rhapsody*)
6405 lt_cv_deplibs_check_method=pass_all
6408 freebsd* | dragonfly*)
6409 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6412 # Not sure whether the presence of OpenBSD here was a mistake.
6413 # Let's accept both of them until this is cleared up.
6414 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6415 lt_cv_file_magic_cmd=/usr/bin/file
6416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6420 lt_cv_deplibs_check_method=pass_all
6425 lt_cv_deplibs_check_method=pass_all
6428 hpux10.20* | hpux11*)
6429 lt_cv_file_magic_cmd=/usr/bin/file
6432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6433 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6436 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]'
6437 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6441 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6447 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6451 irix5* | irix6* | nonstopux*)
6453 *-32|*"-32 ") libmagic=32-bit;;
6454 *-n32|*"-n32 ") libmagic=N32;;
6455 *-64|*"-64 ") libmagic=64-bit;;
6456 *) libmagic=never-match;;
6458 lt_cv_deplibs_check_method=pass_all
6461 # This must be Linux ELF.
6462 linux* | k*bsd*-gnu)
6463 lt_cv_deplibs_check_method=pass_all
6467 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6476 lt_cv_file_magic_cmd=/usr/bin/file
6477 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6481 lt_cv_deplibs_check_method=pass_all
6485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492 osf3* | osf4* | osf5*)
6493 lt_cv_deplibs_check_method=pass_all
6497 lt_cv_deplibs_check_method=pass_all
6501 lt_cv_deplibs_check_method=pass_all
6504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6505 lt_cv_deplibs_check_method=pass_all
6509 case $host_vendor in
6511 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]'
6512 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6515 lt_cv_deplibs_check_method=pass_all
6518 lt_cv_file_magic_cmd='/bin/file'
6519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6522 lt_cv_file_magic_cmd='/bin/file'
6523 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6524 lt_cv_file_magic_test_file=/lib/libc.so
6527 lt_cv_deplibs_check_method=pass_all
6530 lt_cv_deplibs_check_method=pass_all
6536 lt_cv_deplibs_check_method=pass_all
6541 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6542 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6543 file_magic_cmd=$lt_cv_file_magic_cmd
6544 deplibs_check_method=$lt_cv_deplibs_check_method
6545 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6558 if test -n "$ac_tool_prefix"; then
6559 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ar; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_prog_AR+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 if test -n "$AR"; then
6567 ac_cv_prog_AR="$AR" # Let the user override the test.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_prog_AR="${ac_tool_prefix}ar"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 if test -n "$AR"; then
6588 { echo "$as_me:$LINENO: result: $AR" >&5
6589 echo "${ECHO_T}$AR" >&6; }
6591 { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6597 if test -z "$ac_cv_prog_AR"; then
6599 # Extract the first word of "ar", so it can be a program name with args.
6600 set dummy ar; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 if test -n "$ac_ct_AR"; then
6607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_prog_ac_ct_AR="ar"
6617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6627 if test -n "$ac_ct_AR"; then
6628 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6629 echo "${ECHO_T}$ac_ct_AR" >&6; }
6631 { echo "$as_me:$LINENO: result: no" >&5
6632 echo "${ECHO_T}no" >&6; }
6635 if test "x$ac_ct_AR" = x; then
6638 case $cross_compiling:$ac_tool_warned in
6640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6641 whose name does not start with the host triplet. If you think this
6642 configuration is useful to you, please write to autoconf@gnu.org." >&5
6643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6644 whose name does not start with the host triplet. If you think this
6645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6646 ac_tool_warned=yes ;;
6654 test -z "$AR" && AR=ar
6655 test -z "$AR_FLAGS" && AR_FLAGS=cru
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_prog_STRIP+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 if test -n "$STRIP"; then
6676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697 { echo "$as_me:$LINENO: result: $STRIP" >&5
6698 echo "${ECHO_T}$STRIP" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6706 if test -z "$ac_cv_prog_STRIP"; then
6708 # Extract the first word of "strip", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 if test -n "$ac_ct_STRIP"; then
6716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_STRIP="strip"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6738 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6744 if test "x$ac_ct_STRIP" = x; then
6747 case $cross_compiling:$ac_tool_warned in
6749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet. If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&5
6752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet. If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755 ac_tool_warned=yes ;;
6760 STRIP="$ac_cv_prog_STRIP"
6763 test -z "$STRIP" && STRIP=:
6770 if test -n "$ac_tool_prefix"; then
6771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_prog_RANLIB+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 if test -n "$RANLIB"; then
6779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 RANLIB=$ac_cv_prog_RANLIB
6799 if test -n "$RANLIB"; then
6800 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6801 echo "${ECHO_T}$RANLIB" >&6; }
6803 { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6809 if test -z "$ac_cv_prog_RANLIB"; then
6810 ac_ct_RANLIB=$RANLIB
6811 # Extract the first word of "ranlib", so it can be a program name with args.
6812 set dummy ranlib; ac_word=$2
6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 if test -n "$ac_ct_RANLIB"; then
6819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_prog_ac_ct_RANLIB="ranlib"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6839 if test -n "$ac_ct_RANLIB"; then
6840 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6841 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6847 if test "x$ac_ct_RANLIB" = x; then
6850 case $cross_compiling:$ac_tool_warned in
6852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6853 whose name does not start with the host triplet. If you think this
6854 configuration is useful to you, please write to autoconf@gnu.org." >&5
6855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet. If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6858 ac_tool_warned=yes ;;
6860 RANLIB=$ac_ct_RANLIB
6863 RANLIB="$ac_cv_prog_RANLIB"
6866 test -z "$RANLIB" && RANLIB=:
6873 # Determine commands to create old-style static archives.
6874 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6875 old_postinstall_cmds='chmod 644 $oldlib'
6876 old_postuninstall_cmds=
6878 if test -n "$RANLIB"; then
6881 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6884 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6887 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6923 # If no C compiler was specified, use CC.
6926 # If no C compiler flags were specified, use CFLAGS.
6927 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6929 # Allow CC to be a program name with arguments.
6933 # Check for command to grab the raw symbol name followed by C symbol from nm.
6934 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6935 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6936 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 # These are sane defaults that work on at least a few old systems.
6941 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6943 # Character class describing NM global symbol codes.
6944 symcode='[BCDEGRST]'
6946 # Regexp to match symbols that can be accessed directly from C.
6947 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6949 # Define system-specific variables.
6954 cygwin* | mingw* | pw32* | cegcc*)
6955 symcode='[ABCDGISTW]'
6958 if test "$host_cpu" = ia64; then
6959 symcode='[ABCDEGRST]'
6963 symcode='[BCDEGRST]'
6966 symcode='[BCDEGQRST]'
6977 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6985 # If we're using GNU nm, then use its standard symbol codes.
6986 case `$NM -V 2>&1` in
6987 *GNU* | *'with BFD'*)
6988 symcode='[ABCDGIRSTW]' ;;
6991 # Transform an extracted symbol line into a proper C declaration.
6992 # Some systems (esp. on ia64) link data and code symbols differently,
6993 # so use this general approach.
6994 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6996 # Transform an extracted symbol line into symbol name and symbol address
6997 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6998 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'"
7000 # Handle CRLF in mingw tool chain
7004 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7008 # Try without a prefix underscore, then with it.
7009 for ac_symprfx in "" "_"; do
7011 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7012 symxfrm="\\1 $ac_symprfx\\2 \\2"
7014 # Write the raw and C identifiers.
7015 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016 # Fake it for dumpbin and say T for any non-static function
7017 # and D for any global variable.
7018 # Also find C++ and __fastcall symbols from MSVC++,
7019 # which start with @ or ?.
7020 lt_cv_sys_global_symbol_pipe="$AWK '"\
7021 " {last_section=section; section=\$ 3};"\
7022 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7023 " \$ 0!~/External *\|/{next};"\
7024 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7025 " {if(hide[section]) next};"\
7026 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7027 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7028 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7029 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7030 " ' prfx=^$ac_symprfx"
7032 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7035 # Check to see that the pipe works correctly.
7039 cat > conftest.$ac_ext <<_LT_EOF
7044 void nm_test_func(void);
7045 void nm_test_func(void){}
7049 int main(){nm_test_var='a';nm_test_func();return(0);}
7052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053 (eval $ac_compile) 2>&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; then
7057 # Now try to grab the symbols.
7059 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7060 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && test -s "$nlist"; then
7064 # Try sorting and uniquifying the output.
7065 if sort "$nlist" | uniq > "$nlist"T; then
7066 mv -f "$nlist"T "$nlist"
7071 # Make sure that we snagged all the symbols we need.
7072 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7073 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7074 cat <<_LT_EOF > conftest.$ac_ext
7080 # Now generate the symbol file.
7081 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7083 cat <<_LT_EOF >> conftest.$ac_ext
7085 /* The mapping between symbol names and symbols. */
7090 lt__PROGRAM__LTX_preloaded_symbols[] =
7092 { "@PROGRAM@", (void *) 0 },
7094 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7095 cat <<\_LT_EOF >> conftest.$ac_ext
7099 /* This works around a problem in FreeBSD linker */
7100 #ifdef FREEBSD_WORKAROUND
7101 static const void *lt_preloaded_setup() {
7102 return lt__PROGRAM__LTX_preloaded_symbols;
7110 # Now try linking the two files.
7111 mv conftest.$ac_objext conftstm.$ac_objext
7112 lt_save_LIBS="$LIBS"
7113 lt_save_CFLAGS="$CFLAGS"
7114 LIBS="conftstm.$ac_objext"
7115 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117 (eval $ac_link) 2>&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7123 LIBS="$lt_save_LIBS"
7124 CFLAGS="$lt_save_CFLAGS"
7126 echo "cannot find nm_test_func in $nlist" >&5
7129 echo "cannot find nm_test_var in $nlist" >&5
7132 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7135 echo "$progname: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7138 rm -rf conftest* conftst*
7140 # Do not use the global_symbol_pipe unless it works.
7141 if test "$pipe_works" = yes; then
7144 lt_cv_sys_global_symbol_pipe=
7150 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7151 lt_cv_sys_global_symbol_to_cdecl=
7153 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7154 { echo "$as_me:$LINENO: result: failed" >&5
7155 echo "${ECHO_T}failed" >&6; }
7157 { echo "$as_me:$LINENO: result: ok" >&5
7158 echo "${ECHO_T}ok" >&6; }
7182 # Check whether --enable-libtool-lock was given.
7183 if test "${enable_libtool_lock+set}" = set; then
7184 enableval=$enable_libtool_lock;
7187 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7189 # Some flags need to be propagated to the compiler or linker for good
7193 # Find out which ABI we are using.
7194 echo 'int i;' > conftest.$ac_ext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; then
7200 case `/usr/bin/file conftest.$ac_objext` in
7212 # Find out which ABI we are using.
7213 echo '#line 7213 "configure"' > conftest.$ac_ext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; then
7219 if test "$lt_cv_prog_gnu_ld" = yes; then
7220 case `/usr/bin/file conftest.$ac_objext` in
7222 LD="${LD-ld} -melf32bsmip"
7225 LD="${LD-ld} -melf32bmipn32"
7228 LD="${LD-ld} -melf64bmip"
7232 case `/usr/bin/file conftest.$ac_objext` in
7248 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7249 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7250 # Find out which ABI we are using.
7251 echo 'int i;' > conftest.$ac_ext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; then
7257 case `/usr/bin/file conftest.o` in
7260 x86_64-*kfreebsd*-gnu)
7261 LD="${LD-ld} -m elf_i386_fbsd"
7264 LD="${LD-ld} -m elf_i386"
7266 ppc64-*linux*|powerpc64-*linux*)
7267 LD="${LD-ld} -m elf32ppclinux"
7270 LD="${LD-ld} -m elf_s390"
7273 LD="${LD-ld} -m elf32_sparc"
7279 x86_64-*kfreebsd*-gnu)
7280 LD="${LD-ld} -m elf_x86_64_fbsd"
7283 LD="${LD-ld} -m elf_x86_64"
7285 ppc*-*linux*|powerpc*-*linux*)
7286 LD="${LD-ld} -m elf64ppc"
7288 s390*-*linux*|s390*-*tpf*)
7289 LD="${LD-ld} -m elf64_s390"
7292 LD="${LD-ld} -m elf64_sparc"
7302 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7303 SAVE_CFLAGS="$CFLAGS"
7304 CFLAGS="$CFLAGS -belf"
7305 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7306 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7307 if test "${lt_cv_cc_needs_belf+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316 cat >conftest.$ac_ext <<_ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (ac_try="$ac_link"
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_link") 2>conftest.er1
7340 grep -v '^ *+' conftest.er1 >conftest.err
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } && {
7345 test -z "$ac_c_werror_flag" ||
7346 test ! -s conftest.err
7347 } && test -s conftest$ac_exeext &&
7348 $as_test_x conftest$ac_exeext; then
7349 lt_cv_cc_needs_belf=yes
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 lt_cv_cc_needs_belf=no
7357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7358 conftest$ac_exeext conftest.$ac_ext
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7366 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7367 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7368 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7369 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7370 CFLAGS="$SAVE_CFLAGS"
7374 # Find out which ABI we are using.
7375 echo 'int i;' > conftest.$ac_ext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; then
7381 case `/usr/bin/file conftest.o` in
7383 case $lt_cv_prog_gnu_ld in
7384 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7386 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7398 need_locks="$enable_libtool_lock"
7402 rhapsody* | darwin*)
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 if test -n "$DSYMUTIL"; then
7412 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7432 if test -n "$DSYMUTIL"; then
7433 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7434 echo "${ECHO_T}$DSYMUTIL" >&6; }
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7442 if test -z "$ac_cv_prog_DSYMUTIL"; then
7443 ac_ct_DSYMUTIL=$DSYMUTIL
7444 # Extract the first word of "dsymutil", so it can be a program name with args.
7445 set dummy dsymutil; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 if test -n "$ac_ct_DSYMUTIL"; then
7452 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7472 if test -n "$ac_ct_DSYMUTIL"; then
7473 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7474 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7480 if test "x$ac_ct_DSYMUTIL" = x; then
7483 case $cross_compiling:$ac_tool_warned in
7485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7486 whose name does not start with the host triplet. If you think this
7487 configuration is useful to you, please write to autoconf@gnu.org." >&5
7488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7489 whose name does not start with the host triplet. If you think this
7490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7491 ac_tool_warned=yes ;;
7493 DSYMUTIL=$ac_ct_DSYMUTIL
7496 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7499 if test -n "$ac_tool_prefix"; then
7500 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7501 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 if test -n "$NMEDIT"; then
7508 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 NMEDIT=$ac_cv_prog_NMEDIT
7528 if test -n "$NMEDIT"; then
7529 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7530 echo "${ECHO_T}$NMEDIT" >&6; }
7532 { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7538 if test -z "$ac_cv_prog_NMEDIT"; then
7539 ac_ct_NMEDIT=$NMEDIT
7540 # Extract the first word of "nmedit", so it can be a program name with args.
7541 set dummy nmedit; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 if test -n "$ac_ct_NMEDIT"; then
7548 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7568 if test -n "$ac_ct_NMEDIT"; then
7569 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7570 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7572 { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7576 if test "x$ac_ct_NMEDIT" = x; then
7579 case $cross_compiling:$ac_tool_warned in
7581 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7582 whose name does not start with the host triplet. If you think this
7583 configuration is useful to you, please write to autoconf@gnu.org." >&5
7584 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7585 whose name does not start with the host triplet. If you think this
7586 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7587 ac_tool_warned=yes ;;
7589 NMEDIT=$ac_ct_NMEDIT
7592 NMEDIT="$ac_cv_prog_NMEDIT"
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_prog_LIPO+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 if test -n "$LIPO"; then
7604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 LIPO=$ac_cv_prog_LIPO
7624 if test -n "$LIPO"; then
7625 { echo "$as_me:$LINENO: result: $LIPO" >&5
7626 echo "${ECHO_T}$LIPO" >&6; }
7628 { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7634 if test -z "$ac_cv_prog_LIPO"; then
7636 # Extract the first word of "lipo", so it can be a program name with args.
7637 set dummy lipo; ac_word=$2
7638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7640 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 if test -n "$ac_ct_LIPO"; then
7644 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_prog_ac_ct_LIPO="lipo"
7654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7664 if test -n "$ac_ct_LIPO"; then
7665 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7666 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7668 { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7672 if test "x$ac_ct_LIPO" = x; then
7675 case $cross_compiling:$ac_tool_warned in
7677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7678 whose name does not start with the host triplet. If you think this
7679 configuration is useful to you, please write to autoconf@gnu.org." >&5
7680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7681 whose name does not start with the host triplet. If you think this
7682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7683 ac_tool_warned=yes ;;
7688 LIPO="$ac_cv_prog_LIPO"
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}otool; ac_word=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_prog_OTOOL+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 if test -n "$OTOOL"; then
7700 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 OTOOL=$ac_cv_prog_OTOOL
7720 if test -n "$OTOOL"; then
7721 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7722 echo "${ECHO_T}$OTOOL" >&6; }
7724 { echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6; }
7730 if test -z "$ac_cv_prog_OTOOL"; then
7732 # Extract the first word of "otool", so it can be a program name with args.
7733 set dummy otool; ac_word=$2
7734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 if test -n "$ac_ct_OTOOL"; then
7740 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749 ac_cv_prog_ac_ct_OTOOL="otool"
7750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7760 if test -n "$ac_ct_OTOOL"; then
7761 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7762 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7764 { echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6; }
7768 if test "x$ac_ct_OTOOL" = x; then
7771 case $cross_compiling:$ac_tool_warned in
7773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7774 whose name does not start with the host triplet. If you think this
7775 configuration is useful to you, please write to autoconf@gnu.org." >&5
7776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7777 whose name does not start with the host triplet. If you think this
7778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7779 ac_tool_warned=yes ;;
7784 OTOOL="$ac_cv_prog_OTOOL"
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7792 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 if test -n "$OTOOL64"; then
7796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 OTOOL64=$ac_cv_prog_OTOOL64
7816 if test -n "$OTOOL64"; then
7817 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7818 echo "${ECHO_T}$OTOOL64" >&6; }
7820 { echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6; }
7826 if test -z "$ac_cv_prog_OTOOL64"; then
7827 ac_ct_OTOOL64=$OTOOL64
7828 # Extract the first word of "otool64", so it can be a program name with args.
7829 set dummy otool64; ac_word=$2
7830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7832 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 if test -n "$ac_ct_OTOOL64"; then
7836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_prog_ac_ct_OTOOL64="otool64"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7856 if test -n "$ac_ct_OTOOL64"; then
7857 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7858 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7860 { echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6; }
7864 if test "x$ac_ct_OTOOL64" = x; then
7867 case $cross_compiling:$ac_tool_warned in
7869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7870 whose name does not start with the host triplet. If you think this
7871 configuration is useful to you, please write to autoconf@gnu.org." >&5
7872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7873 whose name does not start with the host triplet. If you think this
7874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7875 ac_tool_warned=yes ;;
7877 OTOOL64=$ac_ct_OTOOL64
7880 OTOOL64="$ac_cv_prog_OTOOL64"
7909 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7910 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7911 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 lt_cv_apple_cc_single_mod=no
7915 if test -z "${LT_MULTI_MODULE}"; then
7916 # By default we will add the -single_module flag. You can override
7917 # by either setting the environment variable LT_MULTI_MODULE
7918 # non-empty at configure time, or by adding -multi_module to the
7920 rm -rf libconftest.dylib*
7921 echo "int foo(void){return 1;}" > conftest.c
7922 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7923 -dynamiclib -Wl,-single_module conftest.c" >&5
7924 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7925 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7927 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7928 lt_cv_apple_cc_single_mod=yes
7930 cat conftest.err >&5
7932 rm -rf libconftest.dylib*
7936 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7937 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7938 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7939 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7940 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 lt_cv_ld_exported_symbols_list=no
7944 save_LDFLAGS=$LDFLAGS
7945 echo "_main" > conftest.sym
7946 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7947 cat >conftest.$ac_ext <<_ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (ac_try="$ac_link"
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_link") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1 >conftest.err
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest$ac_exeext &&
7979 $as_test_x conftest$ac_exeext; then
7980 lt_cv_ld_exported_symbols_list=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 lt_cv_ld_exported_symbols_list=no
7988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7989 conftest$ac_exeext conftest.$ac_ext
7990 LDFLAGS="$save_LDFLAGS"
7993 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7994 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7996 rhapsody* | darwin1.[012])
7997 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7999 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8000 darwin*) # darwin 5.x on
8001 # if running on 10.5 or later, the deployment target defaults
8002 # to the OS version, if on x86, and 10.4, the deployment
8003 # target defaults to 10.4. Don't you love it?
8004 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8005 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8006 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8010 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8014 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8015 _lt_dar_single_mod='$single_module'
8017 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8018 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8020 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8022 if test "$DSYMUTIL" != ":"; then
8023 _lt_dsymutil='~$DSYMUTIL $lib || :'
8030 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8032 if test "${ac_cv_header_stdc+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest.$ac_objext; then
8071 ac_cv_header_stdc=yes
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 ac_cv_header_stdc=no
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 if test $ac_cv_header_stdc = yes; then
8082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093 $EGREP "memchr" >/dev/null 2>&1; then
8096 ac_cv_header_stdc=no
8102 if test $ac_cv_header_stdc = yes; then
8103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8114 $EGREP "free" >/dev/null 2>&1; then
8117 ac_cv_header_stdc=no
8123 if test $ac_cv_header_stdc = yes; then
8124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8125 if test "$cross_compiling" = yes; then
8128 cat >conftest.$ac_ext <<_ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8136 #if ((' ' & 0x0FF) == 0x020)
8137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8140 # define ISLOWER(c) \
8141 (('a' <= (c) && (c) <= 'i') \
8142 || ('j' <= (c) && (c) <= 'r') \
8143 || ('s' <= (c) && (c) <= 'z'))
8144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8152 for (i = 0; i < 256; i++)
8153 if (XOR (islower (i), ISLOWER (i))
8154 || toupper (i) != TOUPPER (i))
8159 rm -f conftest$ac_exeext
8160 if { (ac_try="$ac_link"
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_link") 2>&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8181 echo "$as_me: program exited with status $ac_status" >&5
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8186 ac_cv_header_stdc=no
8188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8194 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8195 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8196 if test $ac_cv_header_stdc = yes; then
8198 cat >>confdefs.h <<\_ACEOF
8199 #define STDC_HEADERS 1
8204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8215 inttypes.h stdint.h unistd.h
8217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 $ac_includes_default
8231 #include <$ac_header>
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
8250 eval "$as_ac_Header=yes"
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 eval "$as_ac_Header=no"
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260 ac_res=`eval echo '${'$as_ac_Header'}'`
8261 { echo "$as_me:$LINENO: result: $ac_res" >&5
8262 echo "${ECHO_T}$ac_res" >&6; }
8263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8264 cat >>confdefs.h <<_ACEOF
8265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274 for ac_header in dlfcn.h
8276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.$ac_ext <<_ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 $ac_includes_default
8290 #include <$ac_header>
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 eval "$as_ac_Header=yes"
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 eval "$as_ac_Header=no"
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 ac_res=`eval echo '${'$as_ac_Header'}'`
8320 { echo "$as_me:$LINENO: result: $ac_res" >&5
8321 echo "${ECHO_T}$ac_res" >&6; }
8322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8323 cat >>confdefs.h <<_ACEOF
8324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8334 ac_cpp='$CXXCPP $CPPFLAGS'
8335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8338 if test -z "$CXX"; then
8339 if test -n "$CCC"; then
8342 if test -n "$ac_tool_prefix"; then
8343 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8349 if test "${ac_cv_prog_CXX+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 if test -n "$CXX"; then
8353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 if test -n "$CXX"; then
8374 { echo "$as_me:$LINENO: result: $CXX" >&5
8375 echo "${ECHO_T}$CXX" >&6; }
8377 { echo "$as_me:$LINENO: result: no" >&5
8378 echo "${ECHO_T}no" >&6; }
8382 test -n "$CXX" && break
8385 if test -z "$CXX"; then
8387 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8389 # Extract the first word of "$ac_prog", so it can be a program name with args.
8390 set dummy $ac_prog; ac_word=$2
8391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 if test -n "$ac_ct_CXX"; then
8397 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406 ac_cv_prog_ac_ct_CXX="$ac_prog"
8407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8417 if test -n "$ac_ct_CXX"; then
8418 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8419 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8421 { echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6; }
8426 test -n "$ac_ct_CXX" && break
8429 if test "x$ac_ct_CXX" = x; then
8432 case $cross_compiling:$ac_tool_warned in
8434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8435 whose name does not start with the host triplet. If you think this
8436 configuration is useful to you, please write to autoconf@gnu.org." >&5
8437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8438 whose name does not start with the host triplet. If you think this
8439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8440 ac_tool_warned=yes ;;
8448 # Provide some information about the compiler.
8449 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8450 ac_compiler=`set X $ac_compile; echo $2`
8451 { (ac_try="$ac_compiler --version >&5"
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_compiler --version >&5") 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }
8461 { (ac_try="$ac_compiler -v >&5"
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_compiler -v >&5") 2>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }
8471 { (ac_try="$ac_compiler -V >&5"
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_compiler -V >&5") 2>&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }
8482 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8483 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_compile") 2>conftest.er1
8514 grep -v '^ *+' conftest.er1 >conftest.err
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && {
8519 test -z "$ac_cxx_werror_flag" ||
8520 test ! -s conftest.err
8521 } && test -s conftest.$ac_objext; then
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8534 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8535 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8536 GXX=`test $ac_compiler_gnu = yes && echo yes`
8537 ac_test_CXXFLAGS=${CXXFLAGS+set}
8538 ac_save_CXXFLAGS=$CXXFLAGS
8539 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8540 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8541 if test "${ac_cv_prog_cxx_g+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8545 ac_cxx_werror_flag=yes
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_cxx_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_cv_prog_cxx_g=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8586 cat >conftest.$ac_ext <<_ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8610 grep -v '^ *+' conftest.er1 >conftest.err
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } && {
8615 test -z "$ac_cxx_werror_flag" ||
8616 test ! -s conftest.err
8617 } && test -s conftest.$ac_objext; then
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8640 rm -f conftest.$ac_objext
8641 if { (ac_try="$ac_compile"
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_compile") 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && {
8654 test -z "$ac_cxx_werror_flag" ||
8655 test ! -s conftest.err
8656 } && test -s conftest.$ac_objext; then
8657 ac_cv_prog_cxx_g=yes
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8674 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8675 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8676 if test "$ac_test_CXXFLAGS" = set; then
8677 CXXFLAGS=$ac_save_CXXFLAGS
8678 elif test $ac_cv_prog_cxx_g = yes; then
8679 if test "$GXX" = yes; then
8685 if test "$GXX" = yes; then
8692 ac_cpp='$CPP $CPPFLAGS'
8693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8697 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8698 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8699 (test "X$CXX" != "Xg++"))) ; then
8701 ac_cpp='$CXXCPP $CPPFLAGS'
8702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8705 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8706 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8707 if test -z "$CXXCPP"; then
8708 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 # Double quotes because CXXCPP needs to be expanded
8712 for CXXCPP in "$CXX -E" "/lib/cpp"
8715 for ac_cxx_preproc_warn_flag in '' yes
8717 # Use a header file that comes with gcc, so configuring glibc
8718 # with a fresh cross-compiler works.
8719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 # <limits.h> exists even on freestanding compilers.
8721 # On the NeXT, cc -E runs the code through the compiler's parser,
8722 # not just through cpp. "Syntax error" is here to catch this case.
8723 cat >conftest.$ac_ext <<_ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8730 # include <limits.h>
8732 # include <assert.h>
8736 if { (ac_try="$ac_cpp conftest.$ac_ext"
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8744 grep -v '^ *+' conftest.er1 >conftest.err
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } >/dev/null && {
8749 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8750 test ! -s conftest.err
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8757 # Broken: fails on valid input.
8761 rm -f conftest.err conftest.$ac_ext
8763 # OK, works on sane cases. Now check whether nonexistent headers
8764 # can be detected and how.
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8771 #include <ac_nonexistent.h>
8773 if { (ac_try="$ac_cpp conftest.$ac_ext"
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } >/dev/null && {
8786 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8787 test ! -s conftest.err
8789 # Broken: success on invalid input.
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 # Passes both tests.
8800 rm -f conftest.err conftest.$ac_ext
8803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8804 rm -f conftest.err conftest.$ac_ext
8805 if $ac_preproc_ok; then
8810 ac_cv_prog_CXXCPP=$CXXCPP
8813 CXXCPP=$ac_cv_prog_CXXCPP
8815 ac_cv_prog_CXXCPP=$CXXCPP
8817 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8818 echo "${ECHO_T}$CXXCPP" >&6; }
8820 for ac_cxx_preproc_warn_flag in '' yes
8822 # Use a header file that comes with gcc, so configuring glibc
8823 # with a fresh cross-compiler works.
8824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8825 # <limits.h> exists even on freestanding compilers.
8826 # On the NeXT, cc -E runs the code through the compiler's parser,
8827 # not just through cpp. "Syntax error" is here to catch this case.
8828 cat >conftest.$ac_ext <<_ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8835 # include <limits.h>
8837 # include <assert.h>
8841 if { (ac_try="$ac_cpp conftest.$ac_ext"
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8849 grep -v '^ *+' conftest.er1 >conftest.err
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } >/dev/null && {
8854 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8855 test ! -s conftest.err
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 # Broken: fails on valid input.
8866 rm -f conftest.err conftest.$ac_ext
8868 # OK, works on sane cases. Now check whether nonexistent headers
8869 # can be detected and how.
8870 cat >conftest.$ac_ext <<_ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 #include <ac_nonexistent.h>
8878 if { (ac_try="$ac_cpp conftest.$ac_ext"
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } >/dev/null && {
8891 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8892 test ! -s conftest.err
8894 # Broken: success on invalid input.
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 # Passes both tests.
8905 rm -f conftest.err conftest.$ac_ext
8908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8909 rm -f conftest.err conftest.$ac_ext
8910 if $ac_preproc_ok; then
8913 _lt_caught_CXX_error=yes
8917 ac_cpp='$CPP $CPPFLAGS'
8918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8923 _lt_caught_CXX_error=yes
8931 # Check whether --enable-shared was given.
8932 if test "${enable_shared+set}" = set; then
8933 enableval=$enable_shared; p=${PACKAGE-default}
8935 yes) enable_shared=yes ;;
8936 no) enable_shared=no ;;
8939 # Look at the argument we got. We use all the common list separators.
8940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8941 for pkg in $enableval; do
8943 if test "X$pkg" = "X$p"; then
8960 # Check whether --enable-static was given.
8961 if test "${enable_static+set}" = set; then
8962 enableval=$enable_static; p=${PACKAGE-default}
8964 yes) enable_static=yes ;;
8965 no) enable_static=no ;;
8968 # Look at the argument we got. We use all the common list separators.
8969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8970 for pkg in $enableval; do
8972 if test "X$pkg" = "X$p"; then
9001 # Check whether --with-pic was given.
9002 if test "${with_pic+set}" = set; then
9003 withval=$with_pic; pic_mode="$withval"
9009 test -z "$pic_mode" && pic_mode=default
9017 # Check whether --enable-fast-install was given.
9018 if test "${enable_fast_install+set}" = set; then
9019 enableval=$enable_fast_install; p=${PACKAGE-default}
9021 yes) enable_fast_install=yes ;;
9022 no) enable_fast_install=no ;;
9024 enable_fast_install=no
9025 # Look at the argument we got. We use all the common list separators.
9026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9027 for pkg in $enableval; do
9029 if test "X$pkg" = "X$p"; then
9030 enable_fast_install=yes
9037 enable_fast_install=yes
9050 # This can be used to rebuild libtool when needed
9051 LIBTOOL_DEPS="$ltmain"
9053 # Always use our own libtool.
9054 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9080 test -z "$LN_S" && LN_S="ln -s"
9095 if test -n "${ZSH_VERSION+set}" ; then
9096 setopt NO_GLOB_SUBST
9099 { echo "$as_me:$LINENO: checking for objdir" >&5
9100 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9101 if test "${lt_cv_objdir+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 rm -f .libs 2>/dev/null
9105 mkdir .libs 2>/dev/null
9106 if test -d .libs; then
9109 # MS-DOS does not allow filenames that begin with a dot.
9112 rmdir .libs 2>/dev/null
9114 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9115 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9116 objdir=$lt_cv_objdir
9122 cat >>confdefs.h <<_ACEOF
9123 #define LT_OBJDIR "$lt_cv_objdir/"
9144 # AIX sometimes has problems with the GCC collect2 program. For some
9145 # reason, if we set the COLLECT_NAMES environment variable, the problems
9146 # vanish in a puff of smoke.
9147 if test "X${COLLECT_NAMES+set}" != Xset; then
9149 export COLLECT_NAMES
9154 # Sed substitution that helps us do robust quoting. It backslashifies
9155 # metacharacters that are still active within double-quoted strings.
9156 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9158 # Same as above, but do not quote variable references.
9159 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9161 # Sed substitution to delay expansion of an escaped shell variable in a
9162 # double_quote_subst'ed string.
9163 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9165 # Sed substitution to delay expansion of an escaped single quote.
9166 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9168 # Sed substitution to avoid accidental globbing in evaled expressions
9169 no_glob_subst='s/\*/\\\*/g'
9173 can_build_shared=yes
9175 # All known linkers require a `.a' archive for static linking (except MSVC,
9176 # which needs '.lib').
9179 with_gnu_ld="$lt_cv_prog_gnu_ld"
9182 old_CFLAGS="$CFLAGS"
9184 # Set sane defaults for various variables
9185 test -z "$CC" && CC=cc
9186 test -z "$LTCC" && LTCC=$CC
9187 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9188 test -z "$LD" && LD=ld
9189 test -z "$ac_objext" && ac_objext=o
9191 for cc_temp in $compiler""; do
9193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9199 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9202 # Only perform the check for file, if the check method requires it
9203 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9204 case $deplibs_check_method in
9206 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9207 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9208 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9209 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9217 lt_save_MAGIC_CMD="$MAGIC_CMD"
9218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9219 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9220 for ac_dir in $ac_dummy; do
9222 test -z "$ac_dir" && ac_dir=.
9223 if test -f $ac_dir/${ac_tool_prefix}file; then
9224 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9225 if test -n "$file_magic_test_file"; then
9226 case $deplibs_check_method in
9228 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9230 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9231 $EGREP "$file_magic_regex" > /dev/null; then
9236 *** Warning: the command libtool uses to detect shared libraries,
9237 *** $file_magic_cmd, produces output that libtool cannot recognize.
9238 *** The result is that libtool may fail to recognize shared libraries
9239 *** as such. This will affect the creation of libtool libraries that
9240 *** depend on shared libraries, but programs linked with such libtool
9241 *** libraries will work regardless of this problem. Nevertheless, you
9242 *** may want to report the problem to your system manager and/or to
9243 *** bug-libtool@gnu.org
9253 MAGIC_CMD="$lt_save_MAGIC_CMD"
9258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9259 if test -n "$MAGIC_CMD"; then
9260 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9261 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9263 { echo "$as_me:$LINENO: result: no" >&5
9264 echo "${ECHO_T}no" >&6; }
9271 if test -z "$lt_cv_path_MAGIC_CMD"; then
9272 if test -n "$ac_tool_prefix"; then
9273 { echo "$as_me:$LINENO: checking for file" >&5
9274 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9275 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9283 lt_save_MAGIC_CMD="$MAGIC_CMD"
9284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9286 for ac_dir in $ac_dummy; do
9288 test -z "$ac_dir" && ac_dir=.
9289 if test -f $ac_dir/file; then
9290 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9291 if test -n "$file_magic_test_file"; then
9292 case $deplibs_check_method in
9294 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9297 $EGREP "$file_magic_regex" > /dev/null; then
9302 *** Warning: the command libtool uses to detect shared libraries,
9303 *** $file_magic_cmd, produces output that libtool cannot recognize.
9304 *** The result is that libtool may fail to recognize shared libraries
9305 *** as such. This will affect the creation of libtool libraries that
9306 *** depend on shared libraries, but programs linked with such libtool
9307 *** libraries will work regardless of this problem. Nevertheless, you
9308 *** may want to report the problem to your system manager and/or to
9309 *** bug-libtool@gnu.org
9319 MAGIC_CMD="$lt_save_MAGIC_CMD"
9324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9325 if test -n "$MAGIC_CMD"; then
9326 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9327 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9329 { echo "$as_me:$LINENO: result: no" >&5
9330 echo "${ECHO_T}no" >&6; }
9343 # Use C for the default configuration in the libtool script
9347 ac_cpp='$CPP $CPPFLAGS'
9348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9353 # Source file extension for C test sources.
9356 # Object file extension for compiled C test sources.
9360 # Code to be used in simple compile tests
9361 lt_simple_compile_test_code="int some_variable = 0;"
9363 # Code to be used in simple link tests
9364 lt_simple_link_test_code='int main(){return(0);}'
9372 # If no C compiler was specified, use CC.
9375 # If no C compiler flags were specified, use CFLAGS.
9376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9378 # Allow CC to be a program name with arguments.
9381 # Save the default compiler, since it gets overwritten when the other
9382 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9383 compiler_DEFAULT=$CC
9385 # save warnings/boilerplate of simple test code
9386 ac_outfile=conftest.$ac_objext
9387 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9389 _lt_compiler_boilerplate=`cat conftest.err`
9392 ac_outfile=conftest.$ac_objext
9393 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9395 _lt_linker_boilerplate=`cat conftest.err`
9400 ## There is no encapsulation within the following macros, do not change
9401 ## the running order or otherwise move them around unless you know exactly
9402 ## what you are doing...
9403 if test -n "$compiler"; then
9405 lt_prog_compiler_no_builtin_flag=
9407 if test "$GCC" = yes; then
9408 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9410 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9411 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9412 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 lt_cv_prog_compiler_rtti_exceptions=no
9416 ac_outfile=conftest.$ac_objext
9417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418 lt_compiler_flag="-fno-rtti -fno-exceptions"
9419 # Insert the option either (1) after the last *FLAGS variable, or
9420 # (2) before a word containing "conftest.", or (3) at the end.
9421 # Note that $ac_compile itself does not contain backslashes and begins
9422 # with a dollar sign (not a hyphen), so the echo should work correctly.
9423 # The option is referenced via a variable to avoid confusing sed.
9424 lt_compile=`echo "$ac_compile" | $SED \
9425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427 -e 's:$: $lt_compiler_flag:'`
9428 (eval echo "\"\$as_me:9428: $lt_compile\"" >&5)
9429 (eval "$lt_compile" 2>conftest.err)
9431 cat conftest.err >&5
9432 echo "$as_me:9432: \$? = $ac_status" >&5
9433 if (exit $ac_status) && test -s "$ac_outfile"; then
9434 # The compiler can only warn and ignore the option if not recognized
9435 # So say no if there are warnings other than the usual output.
9436 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9439 lt_cv_prog_compiler_rtti_exceptions=yes
9445 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9446 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9448 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9449 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9461 lt_prog_compiler_wl=
9462 lt_prog_compiler_pic=
9463 lt_prog_compiler_static=
9465 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9466 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9468 if test "$GCC" = yes; then
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_static='-static'
9474 # All AIX code is PIC.
9475 if test "$host_cpu" = ia64; then
9476 # AIX 5 now supports IA64 processor
9477 lt_prog_compiler_static='-Bstatic'
9484 # see comment about AmigaOS4 .so support
9485 lt_prog_compiler_pic='-fPIC'
9488 # FIXME: we need at least 68020 code to build shared libraries, but
9489 # adding the `-m68020' flag to GCC prevents building anything better,
9491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9497 # PIC is the default for these OSes.
9500 mingw* | cygwin* | pw32* | os2* | cegcc*)
9501 # This hack is so that the source file can tell whether it is being
9502 # built for inclusion in a dll (and should export symbols for example).
9503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9504 # (--disable-auto-import) libraries
9505 lt_prog_compiler_pic='-DDLL_EXPORT'
9508 darwin* | rhapsody*)
9509 # PIC is the default on this platform
9510 # Common symbols not allowed in MH_DYLIB files
9511 lt_prog_compiler_pic='-fno-common'
9515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9517 # sets the default TLS model and affects inlining.
9523 lt_prog_compiler_pic='-fPIC'
9529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9530 # Instead, we relocate shared libraries at runtime.
9534 # Just because we use GCC doesn't mean we suddenly get shared libraries
9535 # on systems that don't support them.
9536 lt_prog_compiler_can_build_shared=no
9541 # QNX uses GNU C++, but need to define -shared option too, otherwise
9543 lt_prog_compiler_pic='-fPIC -shared'
9547 if test -d /usr/nec; then
9548 lt_prog_compiler_pic=-Kconform_pic
9553 lt_prog_compiler_pic='-fPIC'
9557 # PORTME Check for flag to pass linker flags through the system compiler.
9560 lt_prog_compiler_wl='-Wl,'
9561 if test "$host_cpu" = ia64; then
9562 # AIX 5 now supports IA64 processor
9563 lt_prog_compiler_static='-Bstatic'
9565 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9569 mingw* | cygwin* | pw32* | os2* | cegcc*)
9570 # This hack is so that the source file can tell whether it is being
9571 # built for inclusion in a dll (and should export symbols for example).
9572 lt_prog_compiler_pic='-DDLL_EXPORT'
9575 hpux9* | hpux10* | hpux11*)
9576 lt_prog_compiler_wl='-Wl,'
9577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9584 lt_prog_compiler_pic='+Z'
9587 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9588 lt_prog_compiler_static='${wl}-a ${wl}archive'
9591 irix5* | irix6* | nonstopux*)
9592 lt_prog_compiler_wl='-Wl,'
9593 # PIC (with -KPIC) is the default.
9594 lt_prog_compiler_static='-non_shared'
9597 linux* | k*bsd*-gnu)
9598 case $cc_basename in
9599 # old Intel for x86_64 which still supported -KPIC.
9601 lt_prog_compiler_wl='-Wl,'
9602 lt_prog_compiler_pic='-KPIC'
9603 lt_prog_compiler_static='-static'
9605 # icc used to be incompatible with GCC.
9606 # ICC 10 doesn't accept -KPIC any more.
9608 lt_prog_compiler_wl='-Wl,'
9609 lt_prog_compiler_pic='-fPIC'
9610 lt_prog_compiler_static='-static'
9612 # Lahey Fortran 8.1.
9614 lt_prog_compiler_wl='-Wl,'
9615 lt_prog_compiler_pic='--shared'
9616 lt_prog_compiler_static='--static'
9618 pgcc* | pgf77* | pgf90* | pgf95*)
9619 # Portland Group compilers (*not* the Pentium gcc compiler,
9620 # which looks to be a dead project)
9621 lt_prog_compiler_wl='-Wl,'
9622 lt_prog_compiler_pic='-fpic'
9623 lt_prog_compiler_static='-Bstatic'
9626 lt_prog_compiler_wl='-Wl,'
9627 # All Alpha code is PIC.
9628 lt_prog_compiler_static='-non_shared'
9631 # IBM XL C 8.0/Fortran 10.1 on PPC
9632 lt_prog_compiler_wl='-Wl,'
9633 lt_prog_compiler_pic='-qpic'
9634 lt_prog_compiler_static='-qstaticlink'
9637 case `$CC -V 2>&1 | sed 5q` in
9640 lt_prog_compiler_pic='-KPIC'
9641 lt_prog_compiler_static='-Bstatic'
9642 lt_prog_compiler_wl='-Wl,'
9645 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9646 lt_prog_compiler_pic='-KPIC'
9647 lt_prog_compiler_static='-Bstatic'
9648 lt_prog_compiler_wl=''
9656 lt_prog_compiler_pic='-KPIC'
9657 lt_prog_compiler_static='-Bstatic'
9661 # QNX uses GNU C++, but need to define -shared option too, otherwise
9663 lt_prog_compiler_pic='-fPIC -shared'
9666 osf3* | osf4* | osf5*)
9667 lt_prog_compiler_wl='-Wl,'
9668 # All OSF/1 code is PIC.
9669 lt_prog_compiler_static='-non_shared'
9673 lt_prog_compiler_static='-non_shared'
9677 lt_prog_compiler_pic='-KPIC'
9678 lt_prog_compiler_static='-Bstatic'
9679 case $cc_basename in
9681 lt_prog_compiler_wl='-Qoption ld ';;
9683 lt_prog_compiler_wl='-Wl,';;
9688 lt_prog_compiler_wl='-Qoption ld '
9689 lt_prog_compiler_pic='-PIC'
9690 lt_prog_compiler_static='-Bstatic'
9693 sysv4 | sysv4.2uw2* | sysv4.3*)
9694 lt_prog_compiler_wl='-Wl,'
9695 lt_prog_compiler_pic='-KPIC'
9696 lt_prog_compiler_static='-Bstatic'
9700 if test -d /usr/nec ;then
9701 lt_prog_compiler_pic='-Kconform_pic'
9702 lt_prog_compiler_static='-Bstatic'
9706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_pic='-KPIC'
9709 lt_prog_compiler_static='-Bstatic'
9713 lt_prog_compiler_wl='-Wl,'
9714 lt_prog_compiler_can_build_shared=no
9718 lt_prog_compiler_pic='-pic'
9719 lt_prog_compiler_static='-Bstatic'
9723 lt_prog_compiler_can_build_shared=no
9729 # For platforms which do not support PIC, -DPIC is meaningless:
9731 lt_prog_compiler_pic=
9734 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9738 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9746 # Check to make sure the PIC flag actually works.
9748 if test -n "$lt_prog_compiler_pic"; then
9749 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9750 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9751 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 lt_cv_prog_compiler_pic_works=no
9755 ac_outfile=conftest.$ac_objext
9756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9758 # Insert the option either (1) after the last *FLAGS variable, or
9759 # (2) before a word containing "conftest.", or (3) at the end.
9760 # Note that $ac_compile itself does not contain backslashes and begins
9761 # with a dollar sign (not a hyphen), so the echo should work correctly.
9762 # The option is referenced via a variable to avoid confusing sed.
9763 lt_compile=`echo "$ac_compile" | $SED \
9764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9766 -e 's:$: $lt_compiler_flag:'`
9767 (eval echo "\"\$as_me:9767: $lt_compile\"" >&5)
9768 (eval "$lt_compile" 2>conftest.err)
9770 cat conftest.err >&5
9771 echo "$as_me:9771: \$? = $ac_status" >&5
9772 if (exit $ac_status) && test -s "$ac_outfile"; then
9773 # The compiler can only warn and ignore the option if not recognized
9774 # So say no if there are warnings other than the usual output.
9775 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9778 lt_cv_prog_compiler_pic_works=yes
9784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9785 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9787 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9788 case $lt_prog_compiler_pic in
9790 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9793 lt_prog_compiler_pic=
9794 lt_prog_compiler_can_build_shared=no
9805 # Check to make sure the static flag actually works.
9807 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9808 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9809 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9810 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 lt_cv_prog_compiler_static_works=no
9814 save_LDFLAGS="$LDFLAGS"
9815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9818 # The linker can only warn and ignore the option if not recognized
9819 # So say no if there are warnings
9820 if test -s conftest.err; then
9821 # Append any errors to the config.log.
9822 cat conftest.err 1>&5
9823 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9825 if diff conftest.exp conftest.er2 >/dev/null; then
9826 lt_cv_prog_compiler_static_works=yes
9829 lt_cv_prog_compiler_static_works=yes
9833 LDFLAGS="$save_LDFLAGS"
9836 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9837 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9839 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9842 lt_prog_compiler_static=
9851 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9852 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9853 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 lt_cv_prog_compiler_c_o=no
9857 $RM -r conftest 2>/dev/null
9861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9863 lt_compiler_flag="-o out/conftest2.$ac_objext"
9864 # Insert the option either (1) after the last *FLAGS variable, or
9865 # (2) before a word containing "conftest.", or (3) at the end.
9866 # Note that $ac_compile itself does not contain backslashes and begins
9867 # with a dollar sign (not a hyphen), so the echo should work correctly.
9868 lt_compile=`echo "$ac_compile" | $SED \
9869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9871 -e 's:$: $lt_compiler_flag:'`
9872 (eval echo "\"\$as_me:9872: $lt_compile\"" >&5)
9873 (eval "$lt_compile" 2>out/conftest.err)
9875 cat out/conftest.err >&5
9876 echo "$as_me:9876: \$? = $ac_status" >&5
9877 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9879 # The compiler can only warn and ignore the option if not recognized
9880 # So say no if there are warnings
9881 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9884 lt_cv_prog_compiler_c_o=yes
9889 # SGI C++ compiler will create directory out/ii_files/ for
9890 # template instantiation
9891 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9892 $RM out/* && rmdir out
9898 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9899 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9906 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9907 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9908 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 lt_cv_prog_compiler_c_o=no
9912 $RM -r conftest 2>/dev/null
9916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9918 lt_compiler_flag="-o out/conftest2.$ac_objext"
9919 # Insert the option either (1) after the last *FLAGS variable, or
9920 # (2) before a word containing "conftest.", or (3) at the end.
9921 # Note that $ac_compile itself does not contain backslashes and begins
9922 # with a dollar sign (not a hyphen), so the echo should work correctly.
9923 lt_compile=`echo "$ac_compile" | $SED \
9924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9926 -e 's:$: $lt_compiler_flag:'`
9927 (eval echo "\"\$as_me:9927: $lt_compile\"" >&5)
9928 (eval "$lt_compile" 2>out/conftest.err)
9930 cat out/conftest.err >&5
9931 echo "$as_me:9931: \$? = $ac_status" >&5
9932 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9934 # The compiler can only warn and ignore the option if not recognized
9935 # So say no if there are warnings
9936 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9939 lt_cv_prog_compiler_c_o=yes
9944 # SGI C++ compiler will create directory out/ii_files/ for
9945 # template instantiation
9946 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9947 $RM out/* && rmdir out
9953 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9954 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9959 hard_links="nottested"
9960 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9961 # do not overwrite the value of need_locks provided by the user
9962 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9963 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9968 ln conftest.a conftest.b 2>&5 || hard_links=no
9969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9970 { echo "$as_me:$LINENO: result: $hard_links" >&5
9971 echo "${ECHO_T}$hard_links" >&6; }
9972 if test "$hard_links" = no; then
9973 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9974 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9986 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9990 allow_undefined_flag=
9991 always_export_symbols=no
9993 archive_expsym_cmds=
9994 compiler_needs_object=no
9995 enable_shared_with_static_runtimes=no
9996 export_dynamic_flag_spec=
9997 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9998 hardcode_automatic=no
10000 hardcode_direct_absolute=no
10001 hardcode_libdir_flag_spec=
10002 hardcode_libdir_flag_spec_ld=
10003 hardcode_libdir_separator=
10004 hardcode_minus_L=no
10005 hardcode_shlibpath_var=unsupported
10007 link_all_deplibs=unknown
10009 module_expsym_cmds=
10010 old_archive_from_new_cmds=
10011 old_archive_from_expsyms_cmds=
10012 thread_safe_flag_spec=
10013 whole_archive_flag_spec=
10014 # include_expsyms should be a list of space-separated symbols to be *always*
10015 # included in the symbol list
10017 # exclude_expsyms can be an extended regexp of symbols to exclude
10018 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10020 # as well as any symbol that contains `d'.
10021 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10023 # platforms (ab)use it in PIC code, but their linkers get confused if
10024 # the symbol is explicitly referenced. Since portable code cannot
10025 # rely on this symbol name, it's probably fine to never include it in
10026 # preloaded symbol tables.
10027 # Exclude shared library initialization/finalization symbols.
10028 extract_expsyms_cmds=
10031 cygwin* | mingw* | pw32* | cegcc*)
10032 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10033 # When not using gcc, we currently assume that we are using
10034 # Microsoft Visual C++.
10035 if test "$GCC" != yes; then
10040 # we just hope/assume this is gcc and not c89 (= MSVC++)
10049 if test "$with_gnu_ld" = yes; then
10050 # If archive_cmds runs LD, not CC, wlarc should be empty
10053 # Set some defaults for GNU ld with shared library support. These
10054 # are reset later if shared libraries are not supported. Putting them
10055 # here allows them to be overridden if necessary.
10056 runpath_var=LD_RUN_PATH
10057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10058 export_dynamic_flag_spec='${wl}--export-dynamic'
10059 # ancient GNU ld didn't support --whole-archive et. al.
10060 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10061 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10063 whole_archive_flag_spec=
10065 supports_anon_versioning=no
10066 case `$LD -v 2>&1` in
10067 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10068 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10069 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10070 *\ 2.11.*) ;; # other 2.11 versions
10071 *) supports_anon_versioning=yes ;;
10074 # See if GNU ld supports shared libraries.
10077 # On AIX/PPC, the GNU linker is very broken
10078 if test "$host_cpu" != ia64; then
10082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10083 *** to be unable to reliably create shared libraries on AIX.
10084 *** Therefore, libtool is disabling shared libraries support. If you
10085 *** really care for shared libraries, you may want to modify your PATH
10086 *** so that a non-GNU linker is found, and then restart.
10095 # see comment about AmigaOS4 .so support
10096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097 archive_expsym_cmds=''
10100 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)'
10101 hardcode_libdir_flag_spec='-L$libdir'
10102 hardcode_minus_L=yes
10108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10109 allow_undefined_flag=unsupported
10110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10111 # support --undefined. This deserves some investigation. FIXME
10112 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118 cygwin* | mingw* | pw32* | cegcc*)
10119 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10120 # as there is no search path for DLLs.
10121 hardcode_libdir_flag_spec='-L$libdir'
10122 allow_undefined_flag=unsupported
10123 always_export_symbols=no
10124 enable_shared_with_static_runtimes=yes
10125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10127 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10129 # If the export-symbols file already is a .def file (1st line
10130 # is EXPORTS), use it as is; otherwise, prepend...
10131 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10132 cp $export_symbols $output_objdir/$soname.def;
10134 echo EXPORTS > $output_objdir/$soname.def;
10135 cat $export_symbols >> $output_objdir/$soname.def;
10137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10145 hardcode_shlibpath_var=no
10146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10147 export_dynamic_flag_spec='${wl}-E'
10148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10149 # Instead, shared libraries are loaded at an image base (0x10000000 by
10150 # default) and relocated if they conflict, which is a slow very memory
10151 # consuming and fragmenting process. To avoid this, we pick a random,
10152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10155 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'
10158 gnu* | linux* | tpf* | k*bsd*-gnu)
10160 if test "$host_os" = linux-dietlibc; then
10161 case $cc_basename in
10162 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10165 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10166 && test "$tmp_diet" = no
10169 tmp_sharedflag='-shared'
10170 case $cc_basename,$host_cpu in
10171 pgcc*) # Portland Group C compiler
10172 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'
10173 tmp_addflag=' $pic_flag'
10175 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10176 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'
10177 tmp_addflag=' $pic_flag -Mnomain' ;;
10178 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10179 tmp_addflag=' -i_dynamic' ;;
10180 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10181 tmp_addflag=' -i_dynamic -nofor_main' ;;
10182 ifc* | ifort*) # Intel Fortran compiler
10183 tmp_addflag=' -nofor_main' ;;
10184 lf95*) # Lahey Fortran 8.1
10185 whole_archive_flag_spec=
10186 tmp_sharedflag='--shared' ;;
10187 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10188 tmp_sharedflag='-qmkshrobj'
10191 case `$CC -V 2>&1 | sed 5q` in
10192 *Sun\ C*) # Sun C 5.9
10193 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'
10194 compiler_needs_object=yes
10195 tmp_sharedflag='-G' ;;
10196 *Sun\ F*) # Sun Fortran 8.3
10197 tmp_sharedflag='-G' ;;
10199 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201 if test "x$supports_anon_versioning" = xyes; then
10202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10204 echo "local: *; };" >> $output_objdir/$libname.ver~
10205 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10208 case $cc_basename in
10210 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10211 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10212 hardcode_libdir_flag_spec=
10213 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10214 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10215 if test "x$supports_anon_versioning" = xyes; then
10216 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10218 echo "local: *; };" >> $output_objdir/$libname.ver~
10219 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10230 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10239 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10244 *** create shared libraries on Solaris systems. Therefore, libtool
10245 *** is disabling shared libraries support. We urge you to upgrade GNU
10246 *** binutils to release 2.9.1 or newer. Another option is to modify
10247 *** your PATH or compiler configuration so that the native linker is
10248 *** used, and then restart.
10251 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10260 case `$LD -v 2>&1` in
10261 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10265 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10266 *** reliably create shared libraries on SCO systems. Therefore, libtool
10267 *** is disabling shared libraries support. We urge you to upgrade GNU
10268 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10269 *** your PATH or compiler configuration so that the native linker is
10270 *** used, and then restart.
10275 # For security reasons, it is highly recommended that you always
10276 # use absolute paths for naming shared libraries, and exclude the
10277 # DT_RUNPATH tag from executables and libraries. But doing so
10278 # requires that you compile everything twice, which is a pain.
10279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10291 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_direct=yes
10294 hardcode_shlibpath_var=no
10298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10307 if test "$ld_shlibs" = no; then
10309 hardcode_libdir_flag_spec=
10310 export_dynamic_flag_spec=
10311 whole_archive_flag_spec=
10314 # PORTME fill in a description of your system's linker (not GNU ld)
10317 allow_undefined_flag=unsupported
10318 always_export_symbols=yes
10319 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'
10320 # Note: this linker hardcodes the directories in LIBPATH if there
10321 # are no directories specified by -L.
10322 hardcode_minus_L=yes
10323 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10324 # Neither direct hardcoding nor static linking is supported with a
10326 hardcode_direct=unsupported
10331 if test "$host_cpu" = ia64; then
10332 # On IA64, the linker does run time linking by default, so we don't
10333 # have to do anything special.
10334 aix_use_runtimelinking=no
10335 exp_sym_flag='-Bexport'
10338 # If we're using GNU nm, then we don't want the "-C" option.
10339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10340 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10341 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'
10343 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'
10345 aix_use_runtimelinking=no
10347 # Test if we are trying to use run time linking or normal
10348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10349 # need to do runtime linking.
10350 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10351 for ld_flag in $LDFLAGS; do
10352 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10353 aix_use_runtimelinking=yes
10360 exp_sym_flag='-bexport'
10361 no_entry_flag='-bnoentry'
10364 # When large executables or shared objects are built, AIX ld can
10365 # have problems creating the table of contents. If linking a library
10366 # or program results in "error TOC overflow" add -mminimal-toc to
10367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10371 hardcode_direct=yes
10372 hardcode_direct_absolute=yes
10373 hardcode_libdir_separator=':'
10374 link_all_deplibs=yes
10375 file_list_spec='${wl}-f,'
10377 if test "$GCC" = yes; then
10378 case $host_os in aix4.[012]|aix4.[012].*)
10379 # We only want to do this on AIX 4.2 and lower, the check
10380 # below for broken collect2 doesn't work under 4.3+
10381 collect2name=`${CC} -print-prog-name=collect2`
10382 if test -f "$collect2name" &&
10383 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10385 # We have reworked collect2
10388 # We have old collect2
10389 hardcode_direct=unsupported
10390 # It fails to find uninstalled libraries when the uninstalled
10391 # path is not listed in the libpath. Setting hardcode_minus_L
10392 # to unsupported forces relinking
10393 hardcode_minus_L=yes
10394 hardcode_libdir_flag_spec='-L$libdir'
10395 hardcode_libdir_separator=
10399 shared_flag='-shared'
10400 if test "$aix_use_runtimelinking" = yes; then
10401 shared_flag="$shared_flag "'${wl}-G'
10405 if test "$host_cpu" = ia64; then
10406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10407 # chokes on -Wl,-G. The following line is correct:
10410 if test "$aix_use_runtimelinking" = yes; then
10411 shared_flag='${wl}-G'
10413 shared_flag='${wl}-bM:SRE'
10418 export_dynamic_flag_spec='${wl}-bexpall'
10419 # It seems that -bexpall does not export symbols beginning with
10420 # underscore (_), so it is better to generate a list of symbols to export.
10421 always_export_symbols=yes
10422 if test "$aix_use_runtimelinking" = yes; then
10423 # Warning - without using the other runtime loading flags (-brtl),
10424 # -berok will link without error, but may produce a broken library.
10425 allow_undefined_flag='-berok'
10426 # Determine the default libpath from the value encoded in an
10427 # empty executable.
10428 cat >conftest.$ac_ext <<_ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (ac_try="$ac_link"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_link") 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest$ac_exeext &&
10460 $as_test_x conftest$ac_exeext; then
10462 lt_aix_libpath_sed='
10463 /Import File Strings/,/^$/ {
10469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10470 # Check for a 64-bit object if we didn't find anything.
10471 if test -z "$aix_libpath"; then
10472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10482 conftest$ac_exeext conftest.$ac_ext
10483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10486 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"
10488 if test "$host_cpu" = ia64; then
10489 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10490 allow_undefined_flag="-z nodefs"
10491 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"
10493 # Determine the default libpath from the value encoded in an
10494 # empty executable.
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && {
10524 test -z "$ac_c_werror_flag" ||
10525 test ! -s conftest.err
10526 } && test -s conftest$ac_exeext &&
10527 $as_test_x conftest$ac_exeext; then
10529 lt_aix_libpath_sed='
10530 /Import File Strings/,/^$/ {
10536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10537 # Check for a 64-bit object if we didn't find anything.
10538 if test -z "$aix_libpath"; then
10539 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10549 conftest$ac_exeext conftest.$ac_ext
10550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10552 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10553 # Warning - without using the other run time loading flags,
10554 # -berok will link without error, but may produce a broken library.
10555 no_undefined_flag=' ${wl}-bernotok'
10556 allow_undefined_flag=' ${wl}-berok'
10557 # Exported symbols can be pulled into shared objects from archives
10558 whole_archive_flag_spec='$convenience'
10559 archive_cmds_need_lc=yes
10560 # This is similar to how AIX traditionally builds its shared libraries.
10561 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'
10569 # see comment about AmigaOS4 .so support
10570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571 archive_expsym_cmds=''
10574 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)'
10575 hardcode_libdir_flag_spec='-L$libdir'
10576 hardcode_minus_L=yes
10582 export_dynamic_flag_spec=-rdynamic
10585 cygwin* | mingw* | pw32* | cegcc*)
10586 # When not using gcc, we currently assume that we are using
10587 # Microsoft Visual C++.
10588 # hardcode_libdir_flag_spec is actually meaningless, as there is
10589 # no search path for DLLs.
10590 hardcode_libdir_flag_spec=' '
10591 allow_undefined_flag=unsupported
10592 # Tell ltmain to make .lib files, not .a files.
10594 # Tell ltmain to make .dll files, not .so files.
10596 # FIXME: Setting linknames here is a bad hack.
10597 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10598 # The linker will automatically build a .lib file if we build a DLL.
10599 old_archive_from_new_cmds='true'
10600 # FIXME: Should let the user specify the lib program.
10601 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10602 fix_srcfile_path='`cygpath -w "$srcfile"`'
10603 enable_shared_with_static_runtimes=yes
10606 darwin* | rhapsody*)
10609 archive_cmds_need_lc=no
10611 hardcode_automatic=yes
10612 hardcode_shlibpath_var=unsupported
10613 whole_archive_flag_spec=''
10614 link_all_deplibs=yes
10615 allow_undefined_flag="$_lt_dar_allow_undefined"
10616 case $cc_basename in
10617 ifort*) _lt_dar_can_shared=yes ;;
10618 *) _lt_dar_can_shared=$GCC ;;
10620 if test "$_lt_dar_can_shared" = "yes"; then
10621 output_verbose_link_cmd=echo
10622 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10623 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10624 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}"
10625 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}"
10634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10635 hardcode_libdir_flag_spec='-L$libdir'
10636 hardcode_shlibpath_var=no
10643 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10644 # support. Future versions do this automatically, but an explicit c++rt0.o
10645 # does not break anything, and helps significantly (at the cost of a little
10648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10649 hardcode_libdir_flag_spec='-R$libdir'
10650 hardcode_direct=yes
10651 hardcode_shlibpath_var=no
10654 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10657 hardcode_direct=yes
10658 hardcode_minus_L=yes
10659 hardcode_shlibpath_var=no
10662 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10663 freebsd* | dragonfly*)
10664 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10665 hardcode_libdir_flag_spec='-R$libdir'
10666 hardcode_direct=yes
10667 hardcode_shlibpath_var=no
10671 if test "$GCC" = yes; then
10672 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'
10674 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'
10676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10677 hardcode_libdir_separator=:
10678 hardcode_direct=yes
10680 # hardcode_minus_L: Not really in the search PATH,
10681 # but as the default location of the library.
10682 hardcode_minus_L=yes
10683 export_dynamic_flag_spec='${wl}-E'
10687 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10690 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10692 if test "$with_gnu_ld" = no; then
10693 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10694 hardcode_libdir_flag_spec_ld='+b $libdir'
10695 hardcode_libdir_separator=:
10696 hardcode_direct=yes
10697 hardcode_direct_absolute=yes
10698 export_dynamic_flag_spec='${wl}-E'
10699 # hardcode_minus_L: Not really in the search PATH,
10700 # but as the default location of the library.
10701 hardcode_minus_L=yes
10706 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10709 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10715 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10721 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10731 if test "$with_gnu_ld" = no; then
10732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10733 hardcode_libdir_separator=:
10738 hardcode_shlibpath_var=no
10741 hardcode_direct=yes
10742 hardcode_direct_absolute=yes
10743 export_dynamic_flag_spec='${wl}-E'
10745 # hardcode_minus_L: Not really in the search PATH,
10746 # but as the default location of the library.
10747 hardcode_minus_L=yes
10753 irix5* | irix6* | nonstopux*)
10754 if test "$GCC" = yes; then
10755 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'
10756 # Try to use the -exported_symbol ld option, if it does not
10757 # work, assume that -exports_file does not work either and
10758 # implicitly export all symbols.
10759 save_LDFLAGS="$LDFLAGS"
10760 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10761 cat >conftest.$ac_ext <<_ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (ac_try="$ac_link"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_link") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && {
10778 test -z "$ac_c_werror_flag" ||
10779 test ! -s conftest.err
10780 } && test -s conftest$ac_exeext &&
10781 $as_test_x conftest$ac_exeext; then
10782 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'
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10793 LDFLAGS="$save_LDFLAGS"
10795 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'
10796 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'
10798 archive_cmds_need_lc='no'
10799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10800 hardcode_libdir_separator=:
10802 link_all_deplibs=yes
10806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10809 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10811 hardcode_libdir_flag_spec='-R$libdir'
10812 hardcode_direct=yes
10813 hardcode_shlibpath_var=no
10817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818 hardcode_direct=yes
10819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820 hardcode_libdir_separator=:
10821 hardcode_shlibpath_var=no
10828 if test -f /usr/libexec/ld.so; then
10829 hardcode_direct=yes
10830 hardcode_shlibpath_var=no
10831 hardcode_direct_absolute=yes
10832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10834 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10836 export_dynamic_flag_spec='${wl}-E'
10839 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10841 hardcode_libdir_flag_spec='-R$libdir'
10844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10855 hardcode_libdir_flag_spec='-L$libdir'
10856 hardcode_minus_L=yes
10857 allow_undefined_flag=unsupported
10858 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'
10859 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10863 if test "$GCC" = yes; then
10864 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10865 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'
10867 allow_undefined_flag=' -expect_unresolved \*'
10868 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'
10870 archive_cmds_need_lc='no'
10871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10872 hardcode_libdir_separator=:
10875 osf4* | osf5*) # as osf3* with the addition of -msym flag
10876 if test "$GCC" = yes; then
10877 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10878 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'
10879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10881 allow_undefined_flag=' -expect_unresolved \*'
10882 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'
10883 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~
10884 $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'
10886 # Both c and cxx compiler support -rpath directly
10887 hardcode_libdir_flag_spec='-rpath $libdir'
10889 archive_cmds_need_lc='no'
10890 hardcode_libdir_separator=:
10894 no_undefined_flag=' -z defs'
10895 if test "$GCC" = yes; then
10897 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10899 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10901 case `$CC -V 2>&1` in
10904 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10910 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10911 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10912 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10916 hardcode_libdir_flag_spec='-R$libdir'
10917 hardcode_shlibpath_var=no
10919 solaris2.[0-5] | solaris2.[0-5].*) ;;
10921 # The compiler driver will combine and reorder linker options,
10922 # but understands `-z linker_flag'. GCC discards it without `$wl',
10923 # but is careful enough not to reorder.
10924 # Supported since Solaris 2.6 (maybe 2.5.1?)
10925 if test "$GCC" = yes; then
10926 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10928 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10932 link_all_deplibs=yes
10936 if test "x$host_vendor" = xsequent; then
10937 # Use $CC to link under sequent, because it throws in some extra .o
10938 # files that make .init and .fini sections work.
10939 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10941 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10943 hardcode_libdir_flag_spec='-L$libdir'
10944 hardcode_direct=yes
10945 hardcode_minus_L=yes
10946 hardcode_shlibpath_var=no
10950 case $host_vendor in
10952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10953 hardcode_direct=yes # is this really true???
10956 ## LD is ld it makes a PLAMLIB
10957 ## CC just makes a GrossModule.
10958 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10959 reload_cmds='$CC -r -o $output$reload_objs'
10963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10967 runpath_var='LD_RUN_PATH'
10968 hardcode_shlibpath_var=no
10972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973 hardcode_shlibpath_var=no
10974 export_dynamic_flag_spec='-Bexport'
10978 if test -d /usr/nec; then
10979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980 hardcode_shlibpath_var=no
10981 runpath_var=LD_RUN_PATH
10982 hardcode_runpath_var=yes
10987 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10988 no_undefined_flag='${wl}-z,text'
10989 archive_cmds_need_lc=no
10990 hardcode_shlibpath_var=no
10991 runpath_var='LD_RUN_PATH'
10993 if test "$GCC" = yes; then
10994 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10997 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002 sysv5* | sco3.2v5* | sco5v6*)
11003 # Note: We can NOT use -z defs as we might desire, because we do not
11004 # link with -lc, and that would cause any symbols used from libc to
11005 # always be unresolved, which means just about no library would
11006 # ever link correctly. If we're not using GNU ld we use -z text
11007 # though, which does catch some bad symbols but isn't as heavy-handed
11009 no_undefined_flag='${wl}-z,text'
11010 allow_undefined_flag='${wl}-z,nodefs'
11011 archive_cmds_need_lc=no
11012 hardcode_shlibpath_var=no
11013 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11014 hardcode_libdir_separator=':'
11015 link_all_deplibs=yes
11016 export_dynamic_flag_spec='${wl}-Bexport'
11017 runpath_var='LD_RUN_PATH'
11019 if test "$GCC" = yes; then
11020 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11030 hardcode_libdir_flag_spec='-L$libdir'
11031 hardcode_shlibpath_var=no
11039 if test x$host_vendor = xsni; then
11041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11042 export_dynamic_flag_spec='${wl}-Blargedynsym'
11048 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11049 echo "${ECHO_T}$ld_shlibs" >&6; }
11050 test "$ld_shlibs" = no && can_build_shared=no
11052 with_gnu_ld=$with_gnu_ld
11069 # Do we need to explicitly link libc?
11071 case "x$archive_cmds_need_lc" in
11073 # Assume -lc should be added
11074 archive_cmds_need_lc=yes
11076 if test "$enable_shared" = yes && test "$GCC" = yes; then
11077 case $archive_cmds in
11079 # FIXME: we may have to deal with multi-command sequences.
11082 # Test whether the compiler implicitly links with -lc since on some
11083 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11084 # to ld, don't add -lc before -lgcc.
11085 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11086 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } 2>conftest.err; then
11097 libobjs=conftest.$ac_objext
11099 wl=$lt_prog_compiler_wl
11100 pic_flag=$lt_prog_compiler_pic
11106 lt_save_allow_undefined_flag=$allow_undefined_flag
11107 allow_undefined_flag=
11108 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11109 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }
11114 archive_cmds_need_lc=no
11116 archive_cmds_need_lc=yes
11118 allow_undefined_flag=$lt_save_allow_undefined_flag
11120 cat conftest.err 1>&5
11123 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11124 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11287 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11288 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11290 if test "$GCC" = yes; then
11292 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11293 *) lt_awk_arg="/^libraries:/" ;;
11295 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11296 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11297 # if the path contains ";" then we assume it to be the separator
11298 # otherwise default to the standard path separator (i.e. ":") - it is
11299 # assumed that no part of a normal pathname contains ";" but that should
11300 # okay in the real world where ";" in dirpaths is itself problematic.
11301 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11303 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11305 # Ok, now we have the path, separated by spaces, we can step through it
11306 # and add multilib dir if necessary.
11307 lt_tmp_lt_search_path_spec=
11308 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11309 for lt_sys_path in $lt_search_path_spec; do
11310 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11311 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11313 test -d "$lt_sys_path" && \
11314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11317 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11318 BEGIN {RS=" "; FS="/|\n";} {
11321 for (lt_i = NF; lt_i > 0; lt_i--) {
11322 if ($lt_i != "" && $lt_i != ".") {
11323 if ($lt_i == "..") {
11326 if (lt_count == 0) {
11327 lt_foo="/" $lt_i lt_foo;
11334 if (lt_foo != "") { lt_freq[lt_foo]++; }
11335 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11337 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11341 library_names_spec=
11342 libname_spec='lib$name'
11346 postuninstall_cmds=
11350 shlibpath_overrides_runpath=unknown
11352 dynamic_linker="$host_os ld.so"
11353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11354 need_lib_prefix=unknown
11355 hardcode_into_libs=no
11357 # when you set need_version to no, make sure it does not cause -set_version
11358 # flags to be left without arguments
11359 need_version=unknown
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11365 shlibpath_var=LIBPATH
11367 # AIX 3 has no versioning support, so we append a major version to the name.
11368 soname_spec='${libname}${release}${shared_ext}$major'
11375 hardcode_into_libs=yes
11376 if test "$host_cpu" = ia64; then
11377 # AIX 5 supports IA64
11378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11379 shlibpath_var=LD_LIBRARY_PATH
11381 # With GCC up to 2.95.x, collect2 would create an import file
11382 # for dependence libraries. The import file would start with
11383 # the line `#! .'. This would cause the generated library to
11384 # depend on `.', always an invalid library. This was fixed in
11385 # development snapshots of GCC prior to 3.0.
11387 aix4 | aix4.[01] | aix4.[01].*)
11388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11390 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11393 can_build_shared=no
11397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11398 # soname into executable. Probably we can add versioning support to
11399 # collect2, so additional links can be useful in future.
11400 if test "$aix_use_runtimelinking" = yes; then
11401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11402 # instead of lib<name>.a to let people know that these are not
11403 # typical AIX shared libraries.
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 # We preserve .a as extension for shared libraries through AIX4.2
11407 # and later when we are not doing run time linking.
11408 library_names_spec='${libname}${release}.a $libname.a'
11409 soname_spec='${libname}${release}${shared_ext}$major'
11411 shlibpath_var=LIBPATH
11418 # Since July 2007 AmigaOS4 officially supports .so libraries.
11419 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 library_names_spec='$libname.ixlibrary $libname.a'
11424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11425 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'
11431 library_names_spec='${libname}${shared_ext}'
11432 dynamic_linker="$host_os ld.so"
11433 shlibpath_var=LIBRARY_PATH
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11445 # the default ld.so.conf also contains /usr/contrib/lib and
11446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11447 # libtool to hard-code these into programs
11450 cygwin* | mingw* | pw32* | cegcc*)
11451 version_type=windows
11456 case $GCC,$host_os in
11457 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11458 library_names_spec='$libname.dll.a'
11459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11460 postinstall_cmds='base_file=`basename \${file}`~
11461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11462 dldir=$destdir/`dirname \$dlpath`~
11463 test -d \$dldir || mkdir -p \$dldir~
11464 $install_prog $dir/$dlname \$dldir/$dlname~
11465 chmod a+x \$dldir/$dlname~
11466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11470 dlpath=$dir/\$dldll~
11472 shlibpath_overrides_runpath=yes
11476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11478 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11481 # MinGW DLLs use traditional 'lib' prefix
11482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11484 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11485 # It is most probably a Windows format PATH printed by
11486 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11487 # path with ; separators, and with drive letters. We can handle the
11488 # drive letters (cygwin fileutils understands them), so leave them,
11489 # especially as we might pass files found there to a mingw objdump,
11490 # which wouldn't understand a cygwinified path. Ahh.
11491 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11493 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11497 # pw32 DLLs use 'pw' prefix rather than 'lib'
11498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11507 dynamic_linker='Win32 ld.exe'
11508 # FIXME: first we should search . and the directory the executable is in
11512 darwin* | rhapsody*)
11513 dynamic_linker="$host_os dyld"
11514 version_type=darwin
11517 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11518 soname_spec='${libname}${release}${major}$shared_ext'
11519 shlibpath_overrides_runpath=yes
11520 shlibpath_var=DYLD_LIBRARY_PATH
11521 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11540 freebsd* | dragonfly*)
11541 # DragonFly does not have aout. When/if they implement a new
11542 # versioning mechanism, adjust this.
11543 if test -x /usr/bin/objformat; then
11544 objformat=`/usr/bin/objformat`
11547 freebsd[123]*) objformat=aout ;;
11548 *) objformat=elf ;;
11551 version_type=freebsd-$objformat
11552 case $version_type in
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11563 shlibpath_var=LD_LIBRARY_PATH
11566 shlibpath_overrides_runpath=yes
11568 freebsd3.[01]* | freebsdelf3.[01]*)
11569 shlibpath_overrides_runpath=yes
11570 hardcode_into_libs=yes
11572 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11573 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11574 shlibpath_overrides_runpath=no
11575 hardcode_into_libs=yes
11577 *) # from 4.6 on, and DragonFly
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 hardcode_into_libs=yes
11594 hpux9* | hpux10* | hpux11*)
11595 # Give a soname corresponding to the major version so that dld.sl refuses to
11596 # link against other versions.
11603 hardcode_into_libs=yes
11604 dynamic_linker="$host_os dld.so"
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
11610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11618 hardcode_into_libs=yes
11619 dynamic_linker="$host_os dld.sl"
11620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11629 dynamic_linker="$host_os dld.sl"
11630 shlibpath_var=SHLIB_PATH
11631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11636 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11637 postinstall_cmds='chmod 555 $lib'
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 shlibpath_overrides_runpath=no
11649 hardcode_into_libs=yes
11652 irix5* | irix6* | nonstopux*)
11654 nonstopux*) version_type=nonstopux ;;
11656 if test "$lt_cv_prog_gnu_ld" = yes; then
11664 soname_spec='${libname}${release}${shared_ext}$major'
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11667 irix5* | nonstopux*)
11668 libsuff= shlibsuff=
11671 case $LD in # libtool.m4 will add one of these switches to LD
11672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11673 libsuff= shlibsuff= libmagic=32-bit;;
11674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11675 libsuff=32 shlibsuff=N32 libmagic=N32;;
11676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11678 *) libsuff= shlibsuff= libmagic=never-match;;
11682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11683 shlibpath_overrides_runpath=no
11684 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11685 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11686 hardcode_into_libs=yes
11689 # No shared lib support for Linux oldld, aout, or coff.
11690 linux*oldld* | linux*aout* | linux*coff*)
11694 # This must be Linux ELF.
11695 linux* | k*bsd*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=no
11704 # Some binutils ld are patched to set DT_RUNPATH
11705 save_LDFLAGS=$LDFLAGS
11706 save_libdir=$libdir
11707 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11708 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11709 cat >conftest.$ac_ext <<_ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (ac_try="$ac_link"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_link") 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } && {
11738 test -z "$ac_c_werror_flag" ||
11739 test ! -s conftest.err
11740 } && test -s conftest$ac_exeext &&
11741 $as_test_x conftest$ac_exeext; then
11742 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11743 shlibpath_overrides_runpath=yes
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11754 conftest$ac_exeext conftest.$ac_ext
11755 LDFLAGS=$save_LDFLAGS
11756 libdir=$save_libdir
11758 # This implies no fast_install, which is unacceptable.
11759 # Some rework will be needed to allow for fast_install
11760 # before this can be enabled.
11761 hardcode_into_libs=yes
11763 # Append ld.so.conf contents to the search path
11764 if test -f /etc/ld.so.conf; then
11765 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' ' '`
11766 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11769 # We used to test for /lib/ld.so.1 and disable shared libraries on
11770 # powerpc, because MkLinux only supported shared libraries with the
11771 # GNU dynamic linker. Since this was broken with cross compilers,
11772 # most powerpc-linux boxes support dynamic linking these days and
11773 # people can always --disable-shared, the test was removed, and we
11774 # assume the GNU/Linux dynamic linker is in use.
11775 dynamic_linker='GNU/Linux ld.so'
11782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11785 dynamic_linker='NetBSD (a.out) ld.so'
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 dynamic_linker='NetBSD ld.elf_so'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 shlibpath_overrides_runpath=yes
11793 hardcode_into_libs=yes
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 shlibpath_overrides_runpath=yes
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=no
11811 hardcode_into_libs=yes
11812 dynamic_linker='ldqnx.so'
11817 sys_lib_dlsearch_path_spec="/usr/lib"
11819 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11821 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11822 *) need_version=no ;;
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11826 shlibpath_var=LD_LIBRARY_PATH
11827 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11829 openbsd2.[89] | openbsd2.[89].*)
11830 shlibpath_overrides_runpath=no
11833 shlibpath_overrides_runpath=yes
11837 shlibpath_overrides_runpath=yes
11842 libname_spec='$name'
11845 library_names_spec='$libname${shared_ext} $libname.a'
11846 dynamic_linker='OS/2 ld.exe'
11847 shlibpath_var=LIBPATH
11850 osf3* | osf4* | osf5*)
11854 soname_spec='${libname}${release}${shared_ext}$major'
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856 shlibpath_var=LD_LIBRARY_PATH
11857 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11858 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 shlibpath_var=LD_LIBRARY_PATH
11872 shlibpath_overrides_runpath=yes
11873 hardcode_into_libs=yes
11874 # ldd complains unless libraries are executable
11875 postinstall_cmds='chmod +x $lib'
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11881 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=yes
11884 if test "$with_gnu_ld" = yes; then
11892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893 soname_spec='${libname}${release}${shared_ext}$major'
11894 shlibpath_var=LD_LIBRARY_PATH
11895 case $host_vendor in
11897 shlibpath_overrides_runpath=no
11899 runpath_var=LD_RUN_PATH
11907 shlibpath_overrides_runpath=no
11908 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11914 if test -d /usr/nec ;then
11916 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11917 soname_spec='$libname${shared_ext}.$major'
11918 shlibpath_var=LD_LIBRARY_PATH
11922 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11923 version_type=freebsd-elf
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=yes
11930 hardcode_into_libs=yes
11931 if test "$with_gnu_ld" = yes; then
11932 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11934 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11937 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11941 sys_lib_dlsearch_path_spec='/usr/lib'
11945 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=no
11952 hardcode_into_libs=yes
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958 soname_spec='${libname}${release}${shared_ext}$major'
11959 shlibpath_var=LD_LIBRARY_PATH
11966 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11967 echo "${ECHO_T}$dynamic_linker" >&6; }
11968 test "$dynamic_linker" = no && can_build_shared=no
11970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11971 if test "$GCC" = yes; then
11972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11975 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11976 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11978 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11979 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12068 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12069 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12071 if test -n "$hardcode_libdir_flag_spec" ||
12072 test -n "$runpath_var" ||
12073 test "X$hardcode_automatic" = "Xyes" ; then
12075 # We can hardcode non-existent directories.
12076 if test "$hardcode_direct" != no &&
12077 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12078 # have to relink, otherwise we might link with an installed library
12079 # when we should be linking with a yet-to-be-installed one
12080 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12081 test "$hardcode_minus_L" != no; then
12082 # Linking always hardcodes the temporary library directory.
12083 hardcode_action=relink
12085 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12086 hardcode_action=immediate
12089 # We cannot hardcode anything, or else we can only hardcode existing
12091 hardcode_action=unsupported
12093 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12094 echo "${ECHO_T}$hardcode_action" >&6; }
12096 if test "$hardcode_action" = relink ||
12097 test "$inherit_rpath" = yes; then
12098 # Fast installation is not supported
12099 enable_fast_install=no
12100 elif test "$shlibpath_overrides_runpath" = yes ||
12101 test "$enable_shared" = no; then
12102 # Fast installation is not necessary
12103 enable_fast_install=needless
12111 if test "x$enable_dlopen" != xyes; then
12112 enable_dlopen=unknown
12113 enable_dlopen_self=unknown
12114 enable_dlopen_self_static=unknown
12121 lt_cv_dlopen="load_add_on"
12123 lt_cv_dlopen_self=yes
12126 mingw* | pw32* | cegcc*)
12127 lt_cv_dlopen="LoadLibrary"
12132 lt_cv_dlopen="dlopen"
12137 # if libdl is installed we need to link against it
12138 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 ac_check_lib_save_LIBS=$LIBS
12145 cat >conftest.$ac_ext <<_ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12167 rm -f conftest.$ac_objext conftest$ac_exeext
12168 if { (ac_try="$ac_link"
12169 case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_link") 2>conftest.er1
12176 grep -v '^ *+' conftest.er1 >conftest.err
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } && {
12181 test -z "$ac_c_werror_flag" ||
12182 test ! -s conftest.err
12183 } && test -s conftest$ac_exeext &&
12184 $as_test_x conftest$ac_exeext; then
12185 ac_cv_lib_dl_dlopen=yes
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_cv_lib_dl_dlopen=no
12193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12194 conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12197 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12198 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12199 if test $ac_cv_lib_dl_dlopen = yes; then
12200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12203 lt_cv_dlopen="dyld"
12205 lt_cv_dlopen_self=yes
12212 { echo "$as_me:$LINENO: checking for shl_load" >&5
12213 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12214 if test "${ac_cv_func_shl_load+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12225 #define shl_load innocuous_shl_load
12227 /* System header to define __stub macros and hopefully few prototypes,
12228 which can conflict with char shl_load (); below.
12229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12230 <limits.h> exists even on freestanding compilers. */
12233 # include <limits.h>
12235 # include <assert.h>
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12247 /* The GNU C library defines this for functions which it implements
12248 to always fail with ENOSYS. Some functions are actually named
12249 something starting with __ and the normal name is an alias. */
12250 #if defined __stub_shl_load || defined __stub___shl_load
12257 return shl_load ();
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_link") 2>conftest.er1
12271 grep -v '^ *+' conftest.er1 >conftest.err
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && {
12276 test -z "$ac_c_werror_flag" ||
12277 test ! -s conftest.err
12278 } && test -s conftest$ac_exeext &&
12279 $as_test_x conftest$ac_exeext; then
12280 ac_cv_func_shl_load=yes
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_cv_func_shl_load=no
12288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12289 conftest$ac_exeext conftest.$ac_ext
12291 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12292 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12293 if test $ac_cv_func_shl_load = yes; then
12294 lt_cv_dlopen="shl_load"
12296 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12297 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12298 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 ac_check_lib_save_LIBS=$LIBS
12303 cat >conftest.$ac_ext <<_ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12320 return shl_load ();
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (ac_try="$ac_link"
12327 case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_link") 2>conftest.er1
12334 grep -v '^ *+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && {
12339 test -z "$ac_c_werror_flag" ||
12340 test ! -s conftest.err
12341 } && test -s conftest$ac_exeext &&
12342 $as_test_x conftest$ac_exeext; then
12343 ac_cv_lib_dld_shl_load=yes
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_cv_lib_dld_shl_load=no
12351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12352 conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12355 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12356 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12357 if test $ac_cv_lib_dld_shl_load = yes; then
12358 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12360 { echo "$as_me:$LINENO: checking for dlopen" >&5
12361 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12362 if test "${ac_cv_func_dlopen+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12373 #define dlopen innocuous_dlopen
12375 /* System header to define __stub macros and hopefully few prototypes,
12376 which can conflict with char dlopen (); below.
12377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12378 <limits.h> exists even on freestanding compilers. */
12381 # include <limits.h>
12383 # include <assert.h>
12388 /* Override any GCC internal prototype to avoid an error.
12389 Use char because int might match the return type of a GCC
12390 builtin and then its argument prototype would still apply. */
12395 /* The GNU C library defines this for functions which it implements
12396 to always fail with ENOSYS. Some functions are actually named
12397 something starting with __ and the normal name is an alias. */
12398 #if defined __stub_dlopen || defined __stub___dlopen
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_link") 2>conftest.er1
12419 grep -v '^ *+' conftest.er1 >conftest.err
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest$ac_exeext &&
12427 $as_test_x conftest$ac_exeext; then
12428 ac_cv_func_dlopen=yes
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12433 ac_cv_func_dlopen=no
12436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437 conftest$ac_exeext conftest.$ac_ext
12439 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12440 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12441 if test $ac_cv_func_dlopen = yes; then
12442 lt_cv_dlopen="dlopen"
12444 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 ac_check_lib_save_LIBS=$LIBS
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_link") 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } && {
12487 test -z "$ac_c_werror_flag" ||
12488 test ! -s conftest.err
12489 } && test -s conftest$ac_exeext &&
12490 $as_test_x conftest$ac_exeext; then
12491 ac_cv_lib_dl_dlopen=yes
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 ac_cv_lib_dl_dlopen=no
12499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12500 conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12505 if test $ac_cv_lib_dl_dlopen = yes; then
12506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12508 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12509 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12510 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 ac_check_lib_save_LIBS=$LIBS
12514 LIBS="-lsvld $LIBS"
12515 cat >conftest.$ac_ext <<_ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12522 /* Override any GCC internal prototype to avoid an error.
12523 Use char because int might match the return type of a GCC
12524 builtin and then its argument prototype would still apply. */
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>conftest.er1
12546 grep -v '^ *+' conftest.er1 >conftest.err
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && {
12551 test -z "$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 } && test -s conftest$ac_exeext &&
12554 $as_test_x conftest$ac_exeext; then
12555 ac_cv_lib_svld_dlopen=yes
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 ac_cv_lib_svld_dlopen=no
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564 conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12567 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12568 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12569 if test $ac_cv_lib_svld_dlopen = yes; then
12570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12572 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12573 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12574 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 ac_check_lib_save_LIBS=$LIBS
12579 cat >conftest.$ac_ext <<_ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12586 /* Override any GCC internal prototype to avoid an error.
12587 Use char because int might match the return type of a GCC
12588 builtin and then its argument prototype would still apply. */
12596 return dld_link ();
12601 rm -f conftest.$ac_objext conftest$ac_exeext
12602 if { (ac_try="$ac_link"
12603 case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_link") 2>conftest.er1
12610 grep -v '^ *+' conftest.er1 >conftest.err
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && {
12615 test -z "$ac_c_werror_flag" ||
12616 test ! -s conftest.err
12617 } && test -s conftest$ac_exeext &&
12618 $as_test_x conftest$ac_exeext; then
12619 ac_cv_lib_dld_dld_link=yes
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12624 ac_cv_lib_dld_dld_link=no
12627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12628 conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12631 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12632 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12633 if test $ac_cv_lib_dld_dld_link = yes; then
12634 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12655 if test "x$lt_cv_dlopen" != xno; then
12661 case $lt_cv_dlopen in
12663 save_CPPFLAGS="$CPPFLAGS"
12664 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12666 save_LDFLAGS="$LDFLAGS"
12667 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12670 LIBS="$lt_cv_dlopen_libs $LIBS"
12672 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12673 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12674 if test "${lt_cv_dlopen_self+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 if test "$cross_compiling" = yes; then :
12678 lt_cv_dlopen_self=cross
12680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12681 lt_status=$lt_dlunknown
12682 cat > conftest.$ac_ext <<_LT_EOF
12683 #line 12683 "configure"
12684 #include "confdefs.h"
12693 # define LT_DLGLOBAL RTLD_GLOBAL
12696 # define LT_DLGLOBAL DL_GLOBAL
12698 # define LT_DLGLOBAL 0
12702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12703 find out it does not work in some platform. */
12704 #ifndef LT_DLLAZY_OR_NOW
12706 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12709 # define LT_DLLAZY_OR_NOW DL_LAZY
12712 # define LT_DLLAZY_OR_NOW RTLD_NOW
12715 # define LT_DLLAZY_OR_NOW DL_NOW
12717 # define LT_DLLAZY_OR_NOW 0
12724 void fnord() { int i=42;}
12727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12728 int status = $lt_dlunknown;
12732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12733 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12734 /* dlclose (self); */
12742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12743 (eval $ac_link) 2>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12747 (./conftest; exit; ) >&5 2>/dev/null
12749 case x$lt_status in
12750 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12751 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12752 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12755 # compilation failed
12756 lt_cv_dlopen_self=no
12763 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12764 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12766 if test "x$lt_cv_dlopen_self" = xyes; then
12767 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12768 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12769 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12770 if test "${lt_cv_dlopen_self_static+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 if test "$cross_compiling" = yes; then :
12774 lt_cv_dlopen_self_static=cross
12776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12777 lt_status=$lt_dlunknown
12778 cat > conftest.$ac_ext <<_LT_EOF
12779 #line 12779 "configure"
12780 #include "confdefs.h"
12789 # define LT_DLGLOBAL RTLD_GLOBAL
12792 # define LT_DLGLOBAL DL_GLOBAL
12794 # define LT_DLGLOBAL 0
12798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12799 find out it does not work in some platform. */
12800 #ifndef LT_DLLAZY_OR_NOW
12802 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12805 # define LT_DLLAZY_OR_NOW DL_LAZY
12808 # define LT_DLLAZY_OR_NOW RTLD_NOW
12811 # define LT_DLLAZY_OR_NOW DL_NOW
12813 # define LT_DLLAZY_OR_NOW 0
12820 void fnord() { int i=42;}
12823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12824 int status = $lt_dlunknown;
12828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12829 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12830 /* dlclose (self); */
12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839 (eval $ac_link) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12843 (./conftest; exit; ) >&5 2>/dev/null
12845 case x$lt_status in
12846 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12847 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12848 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12851 # compilation failed
12852 lt_cv_dlopen_self_static=no
12859 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12860 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12863 CPPFLAGS="$save_CPPFLAGS"
12864 LDFLAGS="$save_LDFLAGS"
12869 case $lt_cv_dlopen_self in
12870 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12871 *) enable_dlopen_self=unknown ;;
12874 case $lt_cv_dlopen_self_static in
12875 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12876 *) enable_dlopen_self_static=unknown ;;
12898 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12899 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12900 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12901 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12902 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12903 { echo "$as_me:$LINENO: result: yes" >&5
12904 echo "${ECHO_T}yes" >&6; }
12906 # FIXME - insert some real tests, host_os isn't really good enough
12909 if test -n "$STRIP" ; then
12910 striplib="$STRIP -x"
12911 old_striplib="$STRIP -S"
12912 { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }
12915 { echo "$as_me:$LINENO: result: no" >&5
12916 echo "${ECHO_T}no" >&6; }
12920 { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12937 # Report which library types will actually be built
12938 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12939 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12940 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12941 echo "${ECHO_T}$can_build_shared" >&6; }
12943 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12944 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12945 test "$can_build_shared" = "no" && enable_shared=no
12947 # On AIX, shared libraries and static libraries use the same namespace, and
12948 # are all built from PIC.
12951 test "$enable_shared" = yes && enable_static=no
12952 if test -n "$RANLIB"; then
12953 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12954 postinstall_cmds='$RANLIB $lib'
12959 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12960 test "$enable_shared" = yes && enable_static=no
12964 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12965 echo "${ECHO_T}$enable_shared" >&6; }
12967 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12968 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12969 # Make sure either enable_shared or enable_static is yes.
12970 test "$enable_shared" = yes || enable_static=yes
12971 { echo "$as_me:$LINENO: result: $enable_static" >&5
12972 echo "${ECHO_T}$enable_static" >&6; }
12979 ac_cpp='$CPP $CPPFLAGS'
12980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988 ac_cpp='$CXXCPP $CPPFLAGS'
12989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12993 archive_cmds_need_lc_CXX=no
12994 allow_undefined_flag_CXX=
12995 always_export_symbols_CXX=no
12996 archive_expsym_cmds_CXX=
12997 compiler_needs_object_CXX=no
12998 export_dynamic_flag_spec_CXX=
12999 hardcode_direct_CXX=no
13000 hardcode_direct_absolute_CXX=no
13001 hardcode_libdir_flag_spec_CXX=
13002 hardcode_libdir_flag_spec_ld_CXX=
13003 hardcode_libdir_separator_CXX=
13004 hardcode_minus_L_CXX=no
13005 hardcode_shlibpath_var_CXX=unsupported
13006 hardcode_automatic_CXX=no
13007 inherit_rpath_CXX=no
13009 module_expsym_cmds_CXX=
13010 link_all_deplibs_CXX=unknown
13011 old_archive_cmds_CXX=$old_archive_cmds
13012 no_undefined_flag_CXX=
13013 whole_archive_flag_spec_CXX=
13014 enable_shared_with_static_runtimes_CXX=no
13016 # Source file extension for C++ test sources.
13019 # Object file extension for compiled C++ test sources.
13023 # No sense in running all these tests if we already determined that
13024 # the CXX compiler isn't working. Some variables (like enable_shared)
13025 # are currently assumed to apply to all compilers on this platform,
13026 # and will be corrupted by setting them based on a non-working compiler.
13027 if test "$_lt_caught_CXX_error" != yes; then
13028 # Code to be used in simple compile tests
13029 lt_simple_compile_test_code="int some_variable = 0;"
13031 # Code to be used in simple link tests
13032 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13034 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13041 # If no C compiler was specified, use CC.
13044 # If no C compiler flags were specified, use CFLAGS.
13045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13047 # Allow CC to be a program name with arguments.
13051 # save warnings/boilerplate of simple test code
13052 ac_outfile=conftest.$ac_objext
13053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13055 _lt_compiler_boilerplate=`cat conftest.err`
13058 ac_outfile=conftest.$ac_objext
13059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13061 _lt_linker_boilerplate=`cat conftest.err`
13065 # Allow CC to be a program name with arguments.
13070 lt_save_with_gnu_ld=$with_gnu_ld
13071 lt_save_path_LD=$lt_cv_path_LD
13072 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13073 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13075 $as_unset lt_cv_prog_gnu_ld
13077 if test -n "${lt_cv_path_LDCXX+set}"; then
13078 lt_cv_path_LD=$lt_cv_path_LDCXX
13080 $as_unset lt_cv_path_LD
13082 test -z "${LDCXX+set}" || LD=$LDCXX
13086 for cc_temp in $compiler""; do
13088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13094 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13097 if test -n "$compiler"; then
13098 # We don't want -fno-exception when compiling C++ code, so set the
13099 # no_builtin_flag separately
13100 if test "$GXX" = yes; then
13101 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13103 lt_prog_compiler_no_builtin_flag_CXX=
13106 if test "$GXX" = yes; then
13107 # Set up default GNU C++ configuration
13111 # Check whether --with-gnu-ld was given.
13112 if test "${with_gnu_ld+set}" = set; then
13113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13119 if test "$GCC" = yes; then
13120 # Check if gcc -print-prog-name=ld gives a path.
13121 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13125 # gcc leaves a trailing carriage return which upsets mingw
13126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13131 # Accept absolute paths.
13133 re_direlt='/[^/][^/]*/\.\./'
13134 # Canonicalize the pathname of ld
13135 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13136 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13137 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13139 test -z "$LD" && LD="$ac_prog"
13142 # If it fails, then pretend we aren't using GCC.
13146 # If it is relative, then search for the first ld in PATH.
13147 with_gnu_ld=unknown
13150 elif test "$with_gnu_ld" = yes; then
13151 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13154 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13157 if test "${lt_cv_path_LD+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 if test -z "$LD"; then
13161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13162 for ac_dir in $PATH; do
13164 test -z "$ac_dir" && ac_dir=.
13165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13166 lt_cv_path_LD="$ac_dir/$ac_prog"
13167 # Check to see if the program is GNU ld. I'd rather use --version,
13168 # but apparently some variants of GNU ld only accept -v.
13169 # Break only if it was the GNU/non-GNU ld that we prefer.
13170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13171 *GNU* | *'with BFD'*)
13172 test "$with_gnu_ld" != no && break
13175 test "$with_gnu_ld" != yes && break
13182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13186 LD="$lt_cv_path_LD"
13187 if test -n "$LD"; then
13188 { echo "$as_me:$LINENO: result: $LD" >&5
13189 echo "${ECHO_T}$LD" >&6; }
13191 { echo "$as_me:$LINENO: result: no" >&5
13192 echo "${ECHO_T}no" >&6; }
13194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13196 { (exit 1); exit 1; }; }
13197 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13203 case `$LD -v 2>&1 </dev/null` in
13204 *GNU* | *'with BFD'*)
13205 lt_cv_prog_gnu_ld=yes
13208 lt_cv_prog_gnu_ld=no
13212 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13214 with_gnu_ld=$lt_cv_prog_gnu_ld
13222 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13223 # archiving commands below assume that GNU ld is being used.
13224 if test "$with_gnu_ld" = yes; then
13225 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226 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'
13228 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13229 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13231 # If archive_cmds runs LD, not CC, wlarc should be empty
13232 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13233 # investigate it a little bit more. (MM)
13236 # ancient GNU ld didn't support --whole-archive et. al.
13237 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13238 $GREP 'no-whole-archive' > /dev/null; then
13239 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13241 whole_archive_flag_spec_CXX=
13247 # A generic and very simple default shared library creation
13248 # command for GNU C++ for the case where it uses the native
13249 # linker, instead of GNU ld. If possible, this setting should
13250 # overridden to take advantage of the native linker features on
13251 # the platform it is being used on.
13252 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13255 # Commands to make compiler produce verbose output that lists
13256 # what "hidden" libraries, object files and flags are used when
13257 # linking a shared library.
13258 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13266 # PORTME: fill in a description of your system's C++ link characteristics
13267 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13268 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13272 # FIXME: insert proper C++ library support
13276 if test "$host_cpu" = ia64; then
13277 # On IA64, the linker does run time linking by default, so we don't
13278 # have to do anything special.
13279 aix_use_runtimelinking=no
13280 exp_sym_flag='-Bexport'
13283 aix_use_runtimelinking=no
13285 # Test if we are trying to use run time linking or normal
13286 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13287 # need to do runtime linking.
13288 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13289 for ld_flag in $LDFLAGS; do
13292 aix_use_runtimelinking=yes
13300 exp_sym_flag='-bexport'
13301 no_entry_flag='-bnoentry'
13304 # When large executables or shared objects are built, AIX ld can
13305 # have problems creating the table of contents. If linking a library
13306 # or program results in "error TOC overflow" add -mminimal-toc to
13307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13310 archive_cmds_CXX=''
13311 hardcode_direct_CXX=yes
13312 hardcode_direct_absolute_CXX=yes
13313 hardcode_libdir_separator_CXX=':'
13314 link_all_deplibs_CXX=yes
13315 file_list_spec_CXX='${wl}-f,'
13317 if test "$GXX" = yes; then
13318 case $host_os in aix4.[012]|aix4.[012].*)
13319 # We only want to do this on AIX 4.2 and lower, the check
13320 # below for broken collect2 doesn't work under 4.3+
13321 collect2name=`${CC} -print-prog-name=collect2`
13322 if test -f "$collect2name" &&
13323 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13325 # We have reworked collect2
13328 # We have old collect2
13329 hardcode_direct_CXX=unsupported
13330 # It fails to find uninstalled libraries when the uninstalled
13331 # path is not listed in the libpath. Setting hardcode_minus_L
13332 # to unsupported forces relinking
13333 hardcode_minus_L_CXX=yes
13334 hardcode_libdir_flag_spec_CXX='-L$libdir'
13335 hardcode_libdir_separator_CXX=
13338 shared_flag='-shared'
13339 if test "$aix_use_runtimelinking" = yes; then
13340 shared_flag="$shared_flag "'${wl}-G'
13344 if test "$host_cpu" = ia64; then
13345 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13346 # chokes on -Wl,-G. The following line is correct:
13349 if test "$aix_use_runtimelinking" = yes; then
13350 shared_flag='${wl}-G'
13352 shared_flag='${wl}-bM:SRE'
13357 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13358 # It seems that -bexpall does not export symbols beginning with
13359 # underscore (_), so it is better to generate a list of symbols to
13361 always_export_symbols_CXX=yes
13362 if test "$aix_use_runtimelinking" = yes; then
13363 # Warning - without using the other runtime loading flags (-brtl),
13364 # -berok will link without error, but may produce a broken library.
13365 allow_undefined_flag_CXX='-berok'
13366 # Determine the default libpath from the value encoded in an empty
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_link") 2>conftest.er1
13392 grep -v '^ *+' conftest.er1 >conftest.err
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } && {
13397 test -z "$ac_cxx_werror_flag" ||
13398 test ! -s conftest.err
13399 } && test -s conftest$ac_exeext &&
13400 $as_test_x conftest$ac_exeext; then
13402 lt_aix_libpath_sed='
13403 /Import File Strings/,/^$/ {
13409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13410 # Check for a 64-bit object if we didn't find anything.
13411 if test -z "$aix_libpath"; then
13412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415 echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13422 conftest$ac_exeext conftest.$ac_ext
13423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13425 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13427 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"
13429 if test "$host_cpu" = ia64; then
13430 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13431 allow_undefined_flag_CXX="-z nodefs"
13432 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"
13434 # Determine the default libpath from the value encoded in an
13435 # empty executable.
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13451 rm -f conftest.$ac_objext conftest$ac_exeext
13452 if { (ac_try="$ac_link"
13453 case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_link") 2>conftest.er1
13460 grep -v '^ *+' conftest.er1 >conftest.err
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && {
13465 test -z "$ac_cxx_werror_flag" ||
13466 test ! -s conftest.err
13467 } && test -s conftest$ac_exeext &&
13468 $as_test_x conftest$ac_exeext; then
13470 lt_aix_libpath_sed='
13471 /Import File Strings/,/^$/ {
13477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13478 # Check for a 64-bit object if we didn't find anything.
13479 if test -z "$aix_libpath"; then
13480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13490 conftest$ac_exeext conftest.$ac_ext
13491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13493 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13494 # Warning - without using the other run time loading flags,
13495 # -berok will link without error, but may produce a broken library.
13496 no_undefined_flag_CXX=' ${wl}-bernotok'
13497 allow_undefined_flag_CXX=' ${wl}-berok'
13498 # Exported symbols can be pulled into shared objects from archives
13499 whole_archive_flag_spec_CXX='$convenience'
13500 archive_cmds_need_lc_CXX=yes
13501 # This is similar to how AIX traditionally builds its shared
13503 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'
13509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13510 allow_undefined_flag_CXX=unsupported
13511 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13512 # support --undefined. This deserves some investigation. FIXME
13513 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520 case $cc_basename in
13522 # FIXME: insert proper C++ library support
13528 cygwin* | mingw* | pw32* | cegcc*)
13529 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13530 # as there is no search path for DLLs.
13531 hardcode_libdir_flag_spec_CXX='-L$libdir'
13532 allow_undefined_flag_CXX=unsupported
13533 always_export_symbols_CXX=no
13534 enable_shared_with_static_runtimes_CXX=yes
13536 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13537 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'
13538 # If the export-symbols file already is a .def file (1st line
13539 # is EXPORTS), use it as is; otherwise, prepend...
13540 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13541 cp $export_symbols $output_objdir/$soname.def;
13543 echo EXPORTS > $output_objdir/$soname.def;
13544 cat $export_symbols >> $output_objdir/$soname.def;
13546 $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'
13551 darwin* | rhapsody*)
13554 archive_cmds_need_lc_CXX=no
13555 hardcode_direct_CXX=no
13556 hardcode_automatic_CXX=yes
13557 hardcode_shlibpath_var_CXX=unsupported
13558 whole_archive_flag_spec_CXX=''
13559 link_all_deplibs_CXX=yes
13560 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13561 case $cc_basename in
13562 ifort*) _lt_dar_can_shared=yes ;;
13563 *) _lt_dar_can_shared=$GCC ;;
13565 if test "$_lt_dar_can_shared" = "yes"; then
13566 output_verbose_link_cmd=echo
13567 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}"
13568 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13569 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}"
13570 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}"
13571 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13572 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}"
13573 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}"
13583 case $cc_basename in
13585 # FIXME: insert proper C++ library support
13589 # Green Hills C++ Compiler
13590 # FIXME: insert proper C++ library support
13594 # FIXME: insert proper C++ library support
13601 # C++ shared libraries reported to be fairly broken before
13607 archive_cmds_need_lc_CXX=no
13610 freebsd* | dragonfly*)
13611 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13620 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13621 hardcode_libdir_separator_CXX=:
13622 export_dynamic_flag_spec_CXX='${wl}-E'
13623 hardcode_direct_CXX=yes
13624 hardcode_minus_L_CXX=yes # Not in the search PATH,
13625 # but as the default
13626 # location of the library.
13628 case $cc_basename in
13630 # FIXME: insert proper C++ library support
13634 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'
13635 # Commands to make compiler produce verbose output that lists
13636 # what "hidden" libraries, object files and flags are used when
13637 # linking a shared library.
13639 # There doesn't appear to be a way to prevent this compiler from
13640 # explicitly linking system object files so we need to strip them
13641 # from the output so that they don't get included in the library
13643 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'
13646 if test "$GXX" = yes; then
13647 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'
13649 # FIXME: insert proper C++ library support
13657 if test $with_gnu_ld = no; then
13658 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13659 hardcode_libdir_separator_CXX=:
13665 export_dynamic_flag_spec_CXX='${wl}-E'
13671 hardcode_direct_CXX=no
13672 hardcode_shlibpath_var_CXX=no
13675 hardcode_direct_CXX=yes
13676 hardcode_direct_absolute_CXX=yes
13677 hardcode_minus_L_CXX=yes # Not in the search PATH,
13678 # but as the default
13679 # location of the library.
13683 case $cc_basename in
13685 # FIXME: insert proper C++ library support
13691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13697 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700 # Commands to make compiler produce verbose output that lists
13701 # what "hidden" libraries, object files and flags are used when
13702 # linking a shared library.
13704 # There doesn't appear to be a way to prevent this compiler from
13705 # explicitly linking system object files so we need to strip them
13706 # from the output so that they don't get included in the library
13708 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'
13711 if test "$GXX" = yes; then
13712 if test $with_gnu_ld = no; then
13715 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13718 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13721 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'
13726 # FIXME: insert proper C++ library support
13734 hardcode_direct_CXX=no
13735 hardcode_shlibpath_var_CXX=no
13736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737 export_dynamic_flag_spec_CXX='${wl}-E'
13738 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13739 # Instead, shared libraries are loaded at an image base (0x10000000 by
13740 # default) and relocated if they conflict, which is a slow very memory
13741 # consuming and fragmenting process. To avoid this, we pick a random,
13742 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13743 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13744 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'
13745 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'
13748 case $cc_basename in
13751 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'
13753 # Archives containing C++ object files must be created using
13754 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13755 # necessary to make sure instantiated templates are included
13757 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13760 if test "$GXX" = yes; then
13761 if test "$with_gnu_ld" = no; then
13762 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'
13764 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'
13767 link_all_deplibs_CXX=yes
13770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13771 hardcode_libdir_separator_CXX=:
13772 inherit_rpath_CXX=yes
13775 linux* | k*bsd*-gnu)
13776 case $cc_basename in
13778 # Kuck and Associates, Inc. (KAI) C++ Compiler
13780 # KCC will only create a shared library if the output file
13781 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13782 # to its proper name (with version) after linking.
13783 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'
13784 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'
13785 # Commands to make compiler produce verbose output that lists
13786 # what "hidden" libraries, object files and flags are used when
13787 # linking a shared library.
13789 # There doesn't appear to be a way to prevent this compiler from
13790 # explicitly linking system object files so we need to strip them
13791 # from the output so that they don't get included in the library
13793 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'
13795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13798 # Archives containing C++ object files must be created using
13799 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13800 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13805 # version 8.0 and above of icpc choke on multiply defined symbols
13806 # if we add $predep_objects and $postdep_objects, however 7.1 and
13807 # earlier do not add the objects themselves.
13808 case `$CC -V 2>&1` in
13810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13811 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'
13813 *) # Version 8.0 or newer
13816 ia64*) tmp_idyn=' -i_dynamic';;
13818 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819 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'
13822 archive_cmds_need_lc_CXX=no
13823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13825 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13828 # Portland Group C++ compiler
13830 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13831 prelink_cmds_CXX='tpldir=Template.dir~
13833 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13834 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13835 old_archive_cmds_CXX='tpldir=Template.dir~
13837 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13838 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13840 archive_cmds_CXX='tpldir=Template.dir~
13842 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13843 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13844 archive_expsym_cmds_CXX='tpldir=Template.dir~
13846 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13847 $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'
13849 *) # Version 6 will use weak symbols
13850 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13851 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'
13855 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13857 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'
13861 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13862 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'
13864 runpath_var=LD_RUN_PATH
13865 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13866 hardcode_libdir_separator_CXX=:
13868 # Commands to make compiler produce verbose output that lists
13869 # what "hidden" libraries, object files and flags are used when
13870 # linking a shared library.
13872 # There doesn't appear to be a way to prevent this compiler from
13873 # explicitly linking system object files so we need to strip them
13874 # from the output so that they don't get included in the library
13876 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'
13879 # IBM XL 8.0 on PPC, with GNU ld
13880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13881 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13882 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13883 if test "x$supports_anon_versioning" = xyes; then
13884 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13885 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13886 echo "local: *; };" >> $output_objdir/$libname.ver~
13887 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13891 case `$CC -V 2>&1 | sed 5q` in
13894 no_undefined_flag_CXX=' -zdefs'
13895 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13896 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'
13897 hardcode_libdir_flag_spec_CXX='-R$libdir'
13898 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'
13899 compiler_needs_object_CXX=yes
13901 # Not sure whether something based on
13902 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13904 output_verbose_link_cmd='echo'
13906 # Archives containing C++ object files must be created using
13907 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13908 # necessary to make sure instantiated templates are included
13910 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13918 # FIXME: insert proper C++ library support
13923 # FIXME: insert proper C++ library support
13928 case $cc_basename in
13930 # FIXME: insert proper C++ library support
13934 # FIXME: insert proper C++ library support
13941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13942 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13944 hardcode_libdir_flag_spec_CXX='-R$libdir'
13945 hardcode_direct_CXX=yes
13946 hardcode_shlibpath_var_CXX=no
13948 # Workaround some broken pre-1.5 toolchains
13949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13957 # C++ shared libraries are fairly broken
13962 if test -f /usr/libexec/ld.so; then
13963 hardcode_direct_CXX=yes
13964 hardcode_shlibpath_var_CXX=no
13965 hardcode_direct_absolute_CXX=yes
13966 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13967 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13969 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13970 export_dynamic_flag_spec_CXX='${wl}-E'
13971 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13973 output_verbose_link_cmd=echo
13979 osf3* | osf4* | osf5*)
13980 case $cc_basename in
13982 # Kuck and Associates, Inc. (KAI) C++ Compiler
13984 # KCC will only create a shared library if the output file
13985 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13986 # to its proper name (with version) after linking.
13987 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'
13989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13990 hardcode_libdir_separator_CXX=:
13992 # Archives containing C++ object files must be created using
13993 # the KAI C++ compiler.
13995 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13996 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14000 # Rational C++ 2.4.1
14001 # FIXME: insert proper C++ library support
14007 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14008 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'
14009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14012 allow_undefined_flag_CXX=' -expect_unresolved \*'
14013 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'
14014 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14015 echo "-hidden">> $lib.exp~
14016 $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~
14018 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14022 hardcode_libdir_separator_CXX=:
14024 # Commands to make compiler produce verbose output that lists
14025 # what "hidden" libraries, object files and flags are used when
14026 # linking a shared library.
14028 # There doesn't appear to be a way to prevent this compiler from
14029 # explicitly linking system object files so we need to strip them
14030 # from the output so that they don't get included in the library
14032 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'
14035 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14036 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14039 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'
14042 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'
14046 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14047 hardcode_libdir_separator_CXX=:
14049 # Commands to make compiler produce verbose output that lists
14050 # what "hidden" libraries, object files and flags are used when
14051 # linking a shared library.
14052 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14055 # FIXME: insert proper C++ library support
14063 # FIXME: insert proper C++ library support
14068 case $cc_basename in
14071 # FIXME: insert proper C++ library support
14076 # FIXME: insert proper C++ library support
14080 # FIXME: insert proper C++ library support
14087 case $cc_basename in
14089 # Sun C++ 4.2, 5.x and Centerline C++
14090 archive_cmds_need_lc_CXX=yes
14091 no_undefined_flag_CXX=' -zdefs'
14092 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14093 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094 $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'
14096 hardcode_libdir_flag_spec_CXX='-R$libdir'
14097 hardcode_shlibpath_var_CXX=no
14099 solaris2.[0-5] | solaris2.[0-5].*) ;;
14101 # The compiler driver will combine and reorder linker options,
14102 # but understands `-z linker_flag'.
14103 # Supported since Solaris 2.6 (maybe 2.5.1?)
14104 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14107 link_all_deplibs_CXX=yes
14109 output_verbose_link_cmd='echo'
14111 # Archives containing C++ object files must be created using
14112 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14113 # necessary to make sure instantiated templates are included
14115 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14118 # Green Hills C++ Compiler
14119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14121 # The C++ compiler must be used to create the archive.
14122 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14125 # GNU C++ compiler with Solaris linker
14126 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14127 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14128 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14129 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14130 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14131 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14133 # Commands to make compiler produce verbose output that lists
14134 # what "hidden" libraries, object files and flags are used when
14135 # linking a shared library.
14136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14138 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14140 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14141 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14144 # Commands to make compiler produce verbose output that lists
14145 # what "hidden" libraries, object files and flags are used when
14146 # linking a shared library.
14147 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14150 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14152 solaris2.[0-5] | solaris2.[0-5].*) ;;
14154 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14162 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14163 no_undefined_flag_CXX='${wl}-z,text'
14164 archive_cmds_need_lc_CXX=no
14165 hardcode_shlibpath_var_CXX=no
14166 runpath_var='LD_RUN_PATH'
14168 case $cc_basename in
14170 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14171 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14174 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14175 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 sysv5* | sco3.2v5* | sco5v6*)
14181 # Note: We can NOT use -z defs as we might desire, because we do not
14182 # link with -lc, and that would cause any symbols used from libc to
14183 # always be unresolved, which means just about no library would
14184 # ever link correctly. If we're not using GNU ld we use -z text
14185 # though, which does catch some bad symbols but isn't as heavy-handed
14187 no_undefined_flag_CXX='${wl}-z,text'
14188 allow_undefined_flag_CXX='${wl}-z,nodefs'
14189 archive_cmds_need_lc_CXX=no
14190 hardcode_shlibpath_var_CXX=no
14191 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14192 hardcode_libdir_separator_CXX=':'
14193 link_all_deplibs_CXX=yes
14194 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14195 runpath_var='LD_RUN_PATH'
14197 case $cc_basename in
14199 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14200 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14203 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14204 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14210 case $cc_basename in
14212 # NonStop-UX NCC 3.20
14213 # FIXME: insert proper C++ library support
14217 # FIXME: insert proper C++ library support
14224 # FIXME: insert proper C++ library support
14229 # FIXME: insert proper C++ library support
14234 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14235 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14236 test "$ld_shlibs_CXX" = no && can_build_shared=no
14242 ## There is no encapsulation within the following macros, do not change
14243 ## the running order or otherwise move them around unless you know exactly
14244 ## what you are doing...
14245 # Dependencies to place before and after the object being linked:
14246 predep_objects_CXX=
14247 postdep_objects_CXX=
14250 compiler_lib_search_path_CXX=
14252 cat > conftest.$ac_ext <<_LT_EOF
14256 Foo (void) { a = 0; }
14262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14263 (eval $ac_compile) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; then
14267 # Parse the compiler output and extract the necessary
14268 # objects, libraries and library flags.
14270 # Sentinel used to keep track of whether or not we are before
14271 # the conftest object file.
14272 pre_test_object_deps_done=no
14274 for p in `eval "$output_verbose_link_cmd"`; do
14278 # Some compilers place space between "-{L,R}" and the path.
14279 # Remove the space.
14280 if test $p = "-L" ||
14281 test $p = "-R"; then
14288 if test "$pre_test_object_deps_done" = no; then
14291 # Internal compiler library paths should come after those
14292 # provided the user. The postdeps already come after the
14293 # user supplied libs so there is no need to process them.
14294 if test -z "$compiler_lib_search_path_CXX"; then
14295 compiler_lib_search_path_CXX="${prev}${p}"
14297 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14300 # The "-l" case would never come before the object being
14301 # linked, so don't bother handling this case.
14304 if test -z "$postdeps_CXX"; then
14305 postdeps_CXX="${prev}${p}"
14307 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14313 # This assumes that the test object file only shows up
14314 # once in the compiler output.
14315 if test "$p" = "conftest.$objext"; then
14316 pre_test_object_deps_done=yes
14320 if test "$pre_test_object_deps_done" = no; then
14321 if test -z "$predep_objects_CXX"; then
14322 predep_objects_CXX="$p"
14324 predep_objects_CXX="$predep_objects_CXX $p"
14327 if test -z "$postdep_objects_CXX"; then
14328 postdep_objects_CXX="$p"
14330 postdep_objects_CXX="$postdep_objects_CXX $p"
14335 *) ;; # Ignore the rest.
14343 echo "libtool.m4: error: problem compiling CXX test program"
14346 $RM -f confest.$objext
14348 # PORTME: override above test on systems where it is broken
14351 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14352 # hack all around it, let's just trust "g++" to DTRT.
14353 predep_objects_CXX=
14354 postdep_objects_CXX=
14359 case `$CC -V 2>&1 | sed 5q` in
14363 # The more standards-conforming stlport4 library is
14364 # incompatible with the Cstd library. Avoid specifying
14365 # it if it's in CXXFLAGS. Ignore libCrun as
14366 # -library=stlport4 depends on it.
14367 case " $CXX $CXXFLAGS " in
14368 *" -library=stlport4 "*)
14369 solaris_use_stlport4=yes
14373 if test "$solaris_use_stlport4" != yes; then
14374 postdeps_CXX='-library=Cstd -library=Crun'
14381 case $cc_basename in
14383 # The more standards-conforming stlport4 library is
14384 # incompatible with the Cstd library. Avoid specifying
14385 # it if it's in CXXFLAGS. Ignore libCrun as
14386 # -library=stlport4 depends on it.
14387 case " $CXX $CXXFLAGS " in
14388 *" -library=stlport4 "*)
14389 solaris_use_stlport4=yes
14393 # Adding this requires a known-good setup of shared libraries for
14394 # Sun compiler versions before 5.6, else PIC objects from an old
14395 # archive will be linked into the output, leading to subtle bugs.
14396 if test "$solaris_use_stlport4" != yes; then
14397 postdeps_CXX='-library=Cstd -library=Crun'
14405 case " $postdeps_CXX " in
14406 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14408 compiler_lib_search_dirs_CXX=
14409 if test -n "${compiler_lib_search_path_CXX}"; then
14410 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14443 lt_prog_compiler_wl_CXX=
14444 lt_prog_compiler_pic_CXX=
14445 lt_prog_compiler_static_CXX=
14447 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14448 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14450 # C++ specific cases for pic, static, wl, etc.
14451 if test "$GXX" = yes; then
14452 lt_prog_compiler_wl_CXX='-Wl,'
14453 lt_prog_compiler_static_CXX='-static'
14457 # All AIX code is PIC.
14458 if test "$host_cpu" = ia64; then
14459 # AIX 5 now supports IA64 processor
14460 lt_prog_compiler_static_CXX='-Bstatic'
14467 # see comment about AmigaOS4 .so support
14468 lt_prog_compiler_pic_CXX='-fPIC'
14471 # FIXME: we need at least 68020 code to build shared libraries, but
14472 # adding the `-m68020' flag to GCC prevents building anything better,
14474 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14480 # PIC is the default for these OSes.
14482 mingw* | cygwin* | os2* | pw32* | cegcc*)
14483 # This hack is so that the source file can tell whether it is being
14484 # built for inclusion in a dll (and should export symbols for example).
14485 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14486 # (--disable-auto-import) libraries
14487 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14489 darwin* | rhapsody*)
14490 # PIC is the default on this platform
14491 # Common symbols not allowed in MH_DYLIB files
14492 lt_prog_compiler_pic_CXX='-fno-common'
14495 # DJGPP does not support shared libraries at all
14496 lt_prog_compiler_pic_CXX=
14499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14500 # Instead, we relocate shared libraries at runtime.
14503 if test -d /usr/nec; then
14504 lt_prog_compiler_pic_CXX=-Kconform_pic
14508 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14509 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14510 # sets the default TLS model and affects inlining.
14515 lt_prog_compiler_pic_CXX='-fPIC'
14520 # QNX uses GNU C++, but need to define -shared option too, otherwise
14521 # it will coredump.
14522 lt_prog_compiler_pic_CXX='-fPIC -shared'
14525 lt_prog_compiler_pic_CXX='-fPIC'
14531 # All AIX code is PIC.
14532 if test "$host_cpu" = ia64; then
14533 # AIX 5 now supports IA64 processor
14534 lt_prog_compiler_static_CXX='-Bstatic'
14536 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14540 case $cc_basename in
14542 # Green Hills C++ Compiler
14543 # _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"
14548 case $cc_basename in
14550 lt_prog_compiler_pic_CXX='-KPIC'
14553 # Green Hills C++ Compiler
14554 lt_prog_compiler_pic_CXX='-pic'
14560 freebsd* | dragonfly*)
14561 # FreeBSD uses GNU C++
14563 hpux9* | hpux10* | hpux11*)
14564 case $cc_basename in
14566 lt_prog_compiler_wl_CXX='-Wl,'
14567 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14568 if test "$host_cpu" != ia64; then
14569 lt_prog_compiler_pic_CXX='+Z'
14573 lt_prog_compiler_wl_CXX='-Wl,'
14574 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14580 lt_prog_compiler_pic_CXX='+Z'
14589 # This is c89, which is MS Visual C++ (no shared libs)
14590 # Anyone wants to do a port?
14592 irix5* | irix6* | nonstopux*)
14593 case $cc_basename in
14595 lt_prog_compiler_wl_CXX='-Wl,'
14596 lt_prog_compiler_static_CXX='-non_shared'
14597 # CC pic flag -KPIC is the default.
14603 linux* | k*bsd*-gnu)
14604 case $cc_basename in
14607 lt_prog_compiler_wl_CXX='--backend -Wl,'
14608 lt_prog_compiler_pic_CXX='-fPIC'
14611 # old Intel C++ for x86_64 which still supported -KPIC.
14612 lt_prog_compiler_wl_CXX='-Wl,'
14613 lt_prog_compiler_pic_CXX='-KPIC'
14614 lt_prog_compiler_static_CXX='-static'
14617 # Intel C++, used to be incompatible with GCC.
14618 # ICC 10 doesn't accept -KPIC any more.
14619 lt_prog_compiler_wl_CXX='-Wl,'
14620 lt_prog_compiler_pic_CXX='-fPIC'
14621 lt_prog_compiler_static_CXX='-static'
14624 # Portland Group C++ compiler
14625 lt_prog_compiler_wl_CXX='-Wl,'
14626 lt_prog_compiler_pic_CXX='-fpic'
14627 lt_prog_compiler_static_CXX='-Bstatic'
14631 # Make sure the PIC flag is empty. It appears that all Alpha
14632 # Linux and Compaq Tru64 Unix objects are PIC.
14633 lt_prog_compiler_pic_CXX=
14634 lt_prog_compiler_static_CXX='-non_shared'
14637 # IBM XL 8.0 on PPC
14638 lt_prog_compiler_wl_CXX='-Wl,'
14639 lt_prog_compiler_pic_CXX='-qpic'
14640 lt_prog_compiler_static_CXX='-qstaticlink'
14643 case `$CC -V 2>&1 | sed 5q` in
14646 lt_prog_compiler_pic_CXX='-KPIC'
14647 lt_prog_compiler_static_CXX='-Bstatic'
14648 lt_prog_compiler_wl_CXX='-Qoption ld '
14659 case $cc_basename in
14661 lt_prog_compiler_pic_CXX='-W c,exportall'
14670 # QNX uses GNU C++, but need to define -shared option too, otherwise
14671 # it will coredump.
14672 lt_prog_compiler_pic_CXX='-fPIC -shared'
14674 osf3* | osf4* | osf5*)
14675 case $cc_basename in
14677 lt_prog_compiler_wl_CXX='--backend -Wl,'
14680 # Rational C++ 2.4.1
14681 lt_prog_compiler_pic_CXX='-pic'
14684 # Digital/Compaq C++
14685 lt_prog_compiler_wl_CXX='-Wl,'
14686 # Make sure the PIC flag is empty. It appears that all Alpha
14687 # Linux and Compaq Tru64 Unix objects are PIC.
14688 lt_prog_compiler_pic_CXX=
14689 lt_prog_compiler_static_CXX='-non_shared'
14698 case $cc_basename in
14700 # Sun C++ 4.2, 5.x and Centerline C++
14701 lt_prog_compiler_pic_CXX='-KPIC'
14702 lt_prog_compiler_static_CXX='-Bstatic'
14703 lt_prog_compiler_wl_CXX='-Qoption ld '
14706 # Green Hills C++ Compiler
14707 lt_prog_compiler_pic_CXX='-PIC'
14714 case $cc_basename in
14717 lt_prog_compiler_pic_CXX='-pic'
14718 lt_prog_compiler_static_CXX='-Bstatic'
14722 lt_prog_compiler_pic_CXX='-pic'
14728 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14729 case $cc_basename in
14731 lt_prog_compiler_wl_CXX='-Wl,'
14732 lt_prog_compiler_pic_CXX='-KPIC'
14733 lt_prog_compiler_static_CXX='-Bstatic'
14738 case $cc_basename in
14740 # NonStop-UX NCC 3.20
14741 lt_prog_compiler_pic_CXX='-KPIC'
14750 lt_prog_compiler_can_build_shared_CXX=no
14756 # For platforms which do not support PIC, -DPIC is meaningless:
14758 lt_prog_compiler_pic_CXX=
14761 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14764 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14765 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14770 # Check to make sure the PIC flag actually works.
14772 if test -n "$lt_prog_compiler_pic_CXX"; then
14773 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14774 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14775 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 lt_cv_prog_compiler_pic_works_CXX=no
14779 ac_outfile=conftest.$ac_objext
14780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14781 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14782 # Insert the option either (1) after the last *FLAGS variable, or
14783 # (2) before a word containing "conftest.", or (3) at the end.
14784 # Note that $ac_compile itself does not contain backslashes and begins
14785 # with a dollar sign (not a hyphen), so the echo should work correctly.
14786 # The option is referenced via a variable to avoid confusing sed.
14787 lt_compile=`echo "$ac_compile" | $SED \
14788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14790 -e 's:$: $lt_compiler_flag:'`
14791 (eval echo "\"\$as_me:14791: $lt_compile\"" >&5)
14792 (eval "$lt_compile" 2>conftest.err)
14794 cat conftest.err >&5
14795 echo "$as_me:14795: \$? = $ac_status" >&5
14796 if (exit $ac_status) && test -s "$ac_outfile"; then
14797 # The compiler can only warn and ignore the option if not recognized
14798 # So say no if there are warnings other than the usual output.
14799 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14802 lt_cv_prog_compiler_pic_works_CXX=yes
14808 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14809 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14811 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14812 case $lt_prog_compiler_pic_CXX in
14814 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14817 lt_prog_compiler_pic_CXX=
14818 lt_prog_compiler_can_build_shared_CXX=no
14826 # Check to make sure the static flag actually works.
14828 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14829 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14830 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14831 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 lt_cv_prog_compiler_static_works_CXX=no
14835 save_LDFLAGS="$LDFLAGS"
14836 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14837 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14839 # The linker can only warn and ignore the option if not recognized
14840 # So say no if there are warnings
14841 if test -s conftest.err; then
14842 # Append any errors to the config.log.
14843 cat conftest.err 1>&5
14844 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14846 if diff conftest.exp conftest.er2 >/dev/null; then
14847 lt_cv_prog_compiler_static_works_CXX=yes
14850 lt_cv_prog_compiler_static_works_CXX=yes
14854 LDFLAGS="$save_LDFLAGS"
14857 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14858 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14860 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14863 lt_prog_compiler_static_CXX=
14869 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 lt_cv_prog_compiler_c_o_CXX=no
14875 $RM -r conftest 2>/dev/null
14879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14881 lt_compiler_flag="-o out/conftest2.$ac_objext"
14882 # Insert the option either (1) after the last *FLAGS variable, or
14883 # (2) before a word containing "conftest.", or (3) at the end.
14884 # Note that $ac_compile itself does not contain backslashes and begins
14885 # with a dollar sign (not a hyphen), so the echo should work correctly.
14886 lt_compile=`echo "$ac_compile" | $SED \
14887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889 -e 's:$: $lt_compiler_flag:'`
14890 (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891 (eval "$lt_compile" 2>out/conftest.err)
14893 cat out/conftest.err >&5
14894 echo "$as_me:14894: \$? = $ac_status" >&5
14895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14897 # The compiler can only warn and ignore the option if not recognized
14898 # So say no if there are warnings
14899 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902 lt_cv_prog_compiler_c_o_CXX=yes
14907 # SGI C++ compiler will create directory out/ii_files/ for
14908 # template instantiation
14909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910 $RM out/* && rmdir out
14916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14921 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14923 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 lt_cv_prog_compiler_c_o_CXX=no
14927 $RM -r conftest 2>/dev/null
14931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14933 lt_compiler_flag="-o out/conftest2.$ac_objext"
14934 # Insert the option either (1) after the last *FLAGS variable, or
14935 # (2) before a word containing "conftest.", or (3) at the end.
14936 # Note that $ac_compile itself does not contain backslashes and begins
14937 # with a dollar sign (not a hyphen), so the echo should work correctly.
14938 lt_compile=`echo "$ac_compile" | $SED \
14939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14941 -e 's:$: $lt_compiler_flag:'`
14942 (eval echo "\"\$as_me:14942: $lt_compile\"" >&5)
14943 (eval "$lt_compile" 2>out/conftest.err)
14945 cat out/conftest.err >&5
14946 echo "$as_me:14946: \$? = $ac_status" >&5
14947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14949 # The compiler can only warn and ignore the option if not recognized
14950 # So say no if there are warnings
14951 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14954 lt_cv_prog_compiler_c_o_CXX=yes
14959 # SGI C++ compiler will create directory out/ii_files/ for
14960 # template instantiation
14961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14962 $RM out/* && rmdir out
14968 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14974 hard_links="nottested"
14975 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14976 # do not overwrite the value of need_locks provided by the user
14977 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14983 ln conftest.a conftest.b 2>&5 || hard_links=no
14984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14985 { echo "$as_me:$LINENO: result: $hard_links" >&5
14986 echo "${ECHO_T}$hard_links" >&6; }
14987 if test "$hard_links" = no; then
14988 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14998 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15001 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15004 # If we're using GNU nm, then we don't want the "-C" option.
15005 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15006 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15007 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'
15009 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'
15013 export_symbols_cmds_CXX="$ltdll_cmds"
15015 cygwin* | mingw* | cegcc*)
15016 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'
15019 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15022 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15024 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15025 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15026 test "$ld_shlibs_CXX" = no && can_build_shared=no
15028 with_gnu_ld_CXX=$with_gnu_ld
15036 # Do we need to explicitly link libc?
15038 case "x$archive_cmds_need_lc_CXX" in
15040 # Assume -lc should be added
15041 archive_cmds_need_lc_CXX=yes
15043 if test "$enable_shared" = yes && test "$GCC" = yes; then
15044 case $archive_cmds_CXX in
15046 # FIXME: we may have to deal with multi-command sequences.
15049 # Test whether the compiler implicitly links with -lc since on some
15050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15051 # to ld, don't add -lc before -lgcc.
15052 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15053 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } 2>conftest.err; then
15064 libobjs=conftest.$ac_objext
15066 wl=$lt_prog_compiler_wl_CXX
15067 pic_flag=$lt_prog_compiler_pic_CXX
15073 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15074 allow_undefined_flag_CXX=
15075 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15076 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }
15081 archive_cmds_need_lc_CXX=no
15083 archive_cmds_need_lc_CXX=yes
15085 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15087 cat conftest.err 1>&5
15090 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15091 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15161 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15164 library_names_spec=
15165 libname_spec='lib$name'
15169 postuninstall_cmds=
15173 shlibpath_overrides_runpath=unknown
15175 dynamic_linker="$host_os ld.so"
15176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15177 need_lib_prefix=unknown
15178 hardcode_into_libs=no
15180 # when you set need_version to no, make sure it does not cause -set_version
15181 # flags to be left without arguments
15182 need_version=unknown
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15188 shlibpath_var=LIBPATH
15190 # AIX 3 has no versioning support, so we append a major version to the name.
15191 soname_spec='${libname}${release}${shared_ext}$major'
15198 hardcode_into_libs=yes
15199 if test "$host_cpu" = ia64; then
15200 # AIX 5 supports IA64
15201 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15202 shlibpath_var=LD_LIBRARY_PATH
15204 # With GCC up to 2.95.x, collect2 would create an import file
15205 # for dependence libraries. The import file would start with
15206 # the line `#! .'. This would cause the generated library to
15207 # depend on `.', always an invalid library. This was fixed in
15208 # development snapshots of GCC prior to 3.0.
15210 aix4 | aix4.[01] | aix4.[01].*)
15211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15213 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15216 can_build_shared=no
15220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15221 # soname into executable. Probably we can add versioning support to
15222 # collect2, so additional links can be useful in future.
15223 if test "$aix_use_runtimelinking" = yes; then
15224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15225 # instead of lib<name>.a to let people know that these are not
15226 # typical AIX shared libraries.
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229 # We preserve .a as extension for shared libraries through AIX4.2
15230 # and later when we are not doing run time linking.
15231 library_names_spec='${libname}${release}.a $libname.a'
15232 soname_spec='${libname}${release}${shared_ext}$major'
15234 shlibpath_var=LIBPATH
15241 # Since July 2007 AmigaOS4 officially supports .so libraries.
15242 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 library_names_spec='$libname.ixlibrary $libname.a'
15247 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15248 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'
15254 library_names_spec='${libname}${shared_ext}'
15255 dynamic_linker="$host_os ld.so"
15256 shlibpath_var=LIBRARY_PATH
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15267 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15268 # the default ld.so.conf also contains /usr/contrib/lib and
15269 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15270 # libtool to hard-code these into programs
15273 cygwin* | mingw* | pw32* | cegcc*)
15274 version_type=windows
15279 case $GCC,$host_os in
15280 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15281 library_names_spec='$libname.dll.a'
15282 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15283 postinstall_cmds='base_file=`basename \${file}`~
15284 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15285 dldir=$destdir/`dirname \$dlpath`~
15286 test -d \$dldir || mkdir -p \$dldir~
15287 $install_prog $dir/$dlname \$dldir/$dlname~
15288 chmod a+x \$dldir/$dlname~
15289 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15290 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15292 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15293 dlpath=$dir/\$dldll~
15295 shlibpath_overrides_runpath=yes
15299 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15300 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15301 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15304 # MinGW DLLs use traditional 'lib' prefix
15305 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15306 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15307 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15308 # It is most probably a Windows format PATH printed by
15309 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15310 # path with ; separators, and with drive letters. We can handle the
15311 # drive letters (cygwin fileutils understands them), so leave them,
15312 # especially as we might pass files found there to a mingw objdump,
15313 # which wouldn't understand a cygwinified path. Ahh.
15314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15320 # pw32 DLLs use 'pw' prefix rather than 'lib'
15321 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15327 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15330 dynamic_linker='Win32 ld.exe'
15331 # FIXME: first we should search . and the directory the executable is in
15335 darwin* | rhapsody*)
15336 dynamic_linker="$host_os dyld"
15337 version_type=darwin
15340 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15341 soname_spec='${libname}${release}${major}$shared_ext'
15342 shlibpath_overrides_runpath=yes
15343 shlibpath_var=DYLD_LIBRARY_PATH
15344 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15346 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15362 freebsd* | dragonfly*)
15363 # DragonFly does not have aout. When/if they implement a new
15364 # versioning mechanism, adjust this.
15365 if test -x /usr/bin/objformat; then
15366 objformat=`/usr/bin/objformat`
15369 freebsd[123]*) objformat=aout ;;
15370 *) objformat=elf ;;
15373 version_type=freebsd-$objformat
15374 case $version_type in
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15385 shlibpath_var=LD_LIBRARY_PATH
15388 shlibpath_overrides_runpath=yes
15390 freebsd3.[01]* | freebsdelf3.[01]*)
15391 shlibpath_overrides_runpath=yes
15392 hardcode_into_libs=yes
15394 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15395 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15396 shlibpath_overrides_runpath=no
15397 hardcode_into_libs=yes
15399 *) # from 4.6 on, and DragonFly
15400 shlibpath_overrides_runpath=yes
15401 hardcode_into_libs=yes
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15411 soname_spec='${libname}${release}${shared_ext}$major'
15412 shlibpath_var=LD_LIBRARY_PATH
15413 hardcode_into_libs=yes
15416 hpux9* | hpux10* | hpux11*)
15417 # Give a soname corresponding to the major version so that dld.sl refuses to
15418 # link against other versions.
15425 hardcode_into_libs=yes
15426 dynamic_linker="$host_os dld.so"
15427 shlibpath_var=LD_LIBRARY_PATH
15428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 if test "X$HPUX_IA64_MODE" = X32; then
15432 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15434 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15440 hardcode_into_libs=yes
15441 dynamic_linker="$host_os dld.sl"
15442 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 soname_spec='${libname}${release}${shared_ext}$major'
15446 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15451 dynamic_linker="$host_os dld.sl"
15452 shlibpath_var=SHLIB_PATH
15453 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15458 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15459 postinstall_cmds='chmod 555 $lib'
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15468 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15469 shlibpath_var=LD_LIBRARY_PATH
15470 shlibpath_overrides_runpath=no
15471 hardcode_into_libs=yes
15474 irix5* | irix6* | nonstopux*)
15476 nonstopux*) version_type=nonstopux ;;
15478 if test "$lt_cv_prog_gnu_ld" = yes; then
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15489 irix5* | nonstopux*)
15490 libsuff= shlibsuff=
15493 case $LD in # libtool.m4 will add one of these switches to LD
15494 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15495 libsuff= shlibsuff= libmagic=32-bit;;
15496 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15497 libsuff=32 shlibsuff=N32 libmagic=N32;;
15498 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15499 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15500 *) libsuff= shlibsuff= libmagic=never-match;;
15504 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15505 shlibpath_overrides_runpath=no
15506 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15507 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15508 hardcode_into_libs=yes
15511 # No shared lib support for Linux oldld, aout, or coff.
15512 linux*oldld* | linux*aout* | linux*coff*)
15516 # This must be Linux ELF.
15517 linux* | k*bsd*-gnu)
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 shlibpath_overrides_runpath=no
15526 # Some binutils ld are patched to set DT_RUNPATH
15527 save_LDFLAGS=$LDFLAGS
15528 save_libdir=$libdir
15529 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15530 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (ac_try="$ac_link"
15548 case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_link") 2>conftest.er1
15555 grep -v '^ *+' conftest.er1 >conftest.err
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } && {
15560 test -z "$ac_cxx_werror_flag" ||
15561 test ! -s conftest.err
15562 } && test -s conftest$ac_exeext &&
15563 $as_test_x conftest$ac_exeext; then
15564 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15565 shlibpath_overrides_runpath=yes
15569 echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15576 conftest$ac_exeext conftest.$ac_ext
15577 LDFLAGS=$save_LDFLAGS
15578 libdir=$save_libdir
15580 # This implies no fast_install, which is unacceptable.
15581 # Some rework will be needed to allow for fast_install
15582 # before this can be enabled.
15583 hardcode_into_libs=yes
15585 # Append ld.so.conf contents to the search path
15586 if test -f /etc/ld.so.conf; then
15587 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' ' '`
15588 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15591 # We used to test for /lib/ld.so.1 and disable shared libraries on
15592 # powerpc, because MkLinux only supported shared libraries with the
15593 # GNU dynamic linker. Since this was broken with cross compilers,
15594 # most powerpc-linux boxes support dynamic linking these days and
15595 # people can always --disable-shared, the test was removed, and we
15596 # assume the GNU/Linux dynamic linker is in use.
15597 dynamic_linker='GNU/Linux ld.so'
15604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15607 dynamic_linker='NetBSD (a.out) ld.so'
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15610 soname_spec='${libname}${release}${shared_ext}$major'
15611 dynamic_linker='NetBSD ld.elf_so'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=yes
15615 hardcode_into_libs=yes
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 shlibpath_overrides_runpath=yes
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 soname_spec='${libname}${release}${shared_ext}$major'
15631 shlibpath_var=LD_LIBRARY_PATH
15632 shlibpath_overrides_runpath=no
15633 hardcode_into_libs=yes
15634 dynamic_linker='ldqnx.so'
15639 sys_lib_dlsearch_path_spec="/usr/lib"
15641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15644 *) need_version=no ;;
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15651 openbsd2.[89] | openbsd2.[89].*)
15652 shlibpath_overrides_runpath=no
15655 shlibpath_overrides_runpath=yes
15659 shlibpath_overrides_runpath=yes
15664 libname_spec='$name'
15667 library_names_spec='$libname${shared_ext} $libname.a'
15668 dynamic_linker='OS/2 ld.exe'
15669 shlibpath_var=LIBPATH
15672 osf3* | osf4* | osf5*)
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 shlibpath_overrides_runpath=yes
15695 hardcode_into_libs=yes
15696 # ldd complains unless libraries are executable
15697 postinstall_cmds='chmod +x $lib'
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=yes
15706 if test "$with_gnu_ld" = yes; then
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 soname_spec='${libname}${release}${shared_ext}$major'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 case $host_vendor in
15719 shlibpath_overrides_runpath=no
15721 runpath_var=LD_RUN_PATH
15729 shlibpath_overrides_runpath=no
15730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15736 if test -d /usr/nec ;then
15738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15739 soname_spec='$libname${shared_ext}.$major'
15740 shlibpath_var=LD_LIBRARY_PATH
15744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15745 version_type=freebsd-elf
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15749 soname_spec='${libname}${release}${shared_ext}$major'
15750 shlibpath_var=LD_LIBRARY_PATH
15751 shlibpath_overrides_runpath=yes
15752 hardcode_into_libs=yes
15753 if test "$with_gnu_ld" = yes; then
15754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15759 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15763 sys_lib_dlsearch_path_spec='/usr/lib'
15767 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 shlibpath_overrides_runpath=no
15774 hardcode_into_libs=yes
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 soname_spec='${libname}${release}${shared_ext}$major'
15781 shlibpath_var=LD_LIBRARY_PATH
15788 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15789 echo "${ECHO_T}$dynamic_linker" >&6; }
15790 test "$dynamic_linker" = no && can_build_shared=no
15792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15793 if test "$GCC" = yes; then
15794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15797 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15798 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15801 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15839 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15840 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15841 hardcode_action_CXX=
15842 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15843 test -n "$runpath_var_CXX" ||
15844 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15846 # We can hardcode non-existent directories.
15847 if test "$hardcode_direct_CXX" != no &&
15848 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15849 # have to relink, otherwise we might link with an installed library
15850 # when we should be linking with a yet-to-be-installed one
15851 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15852 test "$hardcode_minus_L_CXX" != no; then
15853 # Linking always hardcodes the temporary library directory.
15854 hardcode_action_CXX=relink
15856 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15857 hardcode_action_CXX=immediate
15860 # We cannot hardcode anything, or else we can only hardcode existing
15862 hardcode_action_CXX=unsupported
15864 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15865 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15867 if test "$hardcode_action_CXX" = relink ||
15868 test "$inherit_rpath_CXX" = yes; then
15869 # Fast installation is not supported
15870 enable_fast_install=no
15871 elif test "$shlibpath_overrides_runpath" = yes ||
15872 test "$enable_shared" = no; then
15873 # Fast installation is not necessary
15874 enable_fast_install=needless
15883 fi # test -n "$compiler"
15889 with_gnu_ld=$lt_save_with_gnu_ld
15890 lt_cv_path_LDCXX=$lt_cv_path_LD
15891 lt_cv_path_LD=$lt_save_path_LD
15892 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15893 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15894 fi # test "$_lt_caught_CXX_error" != yes
15897 ac_cpp='$CPP $CPPFLAGS'
15898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15914 ac_config_commands="$ac_config_commands libtool"
15919 # Only expand once:
15924 if test x$use_libtool != xno; then
15925 DEFAULT_OBJECT_TYPE=".lo"
15926 DEFAULT_ARCHIVE_TYPE=".la"
15927 DEFAULT_SHARED_OBJECT_TYPE=".la"
15928 LIBTOOL="\$(LIBTOOL)"
15929 LIBTOOL_INSTALL_TARGET="libtool-install"
15930 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15931 LIBTOOL_CLEAN_TARGET="libtool-clean"
15932 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15933 FD_PLUGIN_DIR="src/plugins/fd"
15936 DEFAULT_OBJECT_TYPE=".o"
15937 DEFAULT_ARCHIVE_TYPE=".a"
15938 DEFAULT_SHARED_OBJECT_TYPE=".so"
15939 LIBTOOL="# \$(LIBTOOL)"
15940 LIBTOOL_INSTALL_TARGET=""
15941 LIBTOOL_UNINSTALL_TARGET=""
15942 LIBTOOL_CLEAN_TARGET=""
15943 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15958 # Check whether --enable-includes was given.
15959 if test "${enable_includes+set}" = set; then
15960 enableval=$enable_includes;
15961 if test x$enableval = xyes; then
15962 install_includes=yes
15970 if test x$use_libtool != xno -a x$install_includes = xyes; then
15971 INCLUDE_INSTALL_TARGET="install-includes"
15972 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15974 INCLUDE_INSTALL_TARGET=""
15975 INCLUDE_UNINSTALL_TARGET=""
15981 { echo "$as_me:$LINENO: checking host system type" >&5
15982 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15983 if test "${ac_cv_host+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 if test "x$host_alias" = x; then
15987 ac_cv_host=$ac_cv_build
15989 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15990 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15992 { (exit 1); exit 1; }; }
15996 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15997 echo "${ECHO_T}$ac_cv_host" >&6; }
15998 case $ac_cv_host in
16000 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16001 echo "$as_me: error: invalid value of canonical host" >&2;}
16002 { (exit 1); exit 1; }; };;
16005 ac_save_IFS=$IFS; IFS='-'
16011 # Remember, the first character of IFS is used to create $*,
16012 # except with old shells:
16015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16019 *cygwin* ) CYGWIN=yes;;
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16029 HAVE_SUN_OS_FALSE='#'
16031 HAVE_SUN_OS_TRUE='#'
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_SUN_OS 1
16043 HAVE_SUN_OS_FALSE='#'
16045 HAVE_SUN_OS_TRUE='#'
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16056 HAVE_OSF1_OS_FALSE='#'
16058 HAVE_OSF1_OS_TRUE='#'
16059 HAVE_OSF1_OS_FALSE=
16061 cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_OSF1_OS 1
16070 HAVE_OSF1_OS_FALSE='#'
16072 HAVE_OSF1_OS_TRUE='#'
16073 HAVE_OSF1_OS_FALSE=
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16083 HAVE_AIX_OS_FALSE='#'
16085 HAVE_AIX_OS_TRUE='#'
16088 cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_AIX_OS 1
16097 HAVE_AIX_OS_FALSE='#'
16099 HAVE_AIX_OS_TRUE='#'
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16110 HAVE_HPUX_OS_FALSE='#'
16112 HAVE_HPUX_OS_TRUE='#'
16113 HAVE_HPUX_OS_FALSE=
16115 cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_HPUX_OS 1
16124 HAVE_HPUX_OS_FALSE='#'
16126 HAVE_HPUX_OS_TRUE='#'
16127 HAVE_HPUX_OS_FALSE=
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16136 HAVE_LINUX_OS_TRUE=
16137 HAVE_LINUX_OS_FALSE='#'
16139 HAVE_LINUX_OS_TRUE='#'
16140 HAVE_LINUX_OS_FALSE=
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_LINUX_OS 1
16150 HAVE_LINUX_OS_TRUE=
16151 HAVE_LINUX_OS_FALSE='#'
16153 HAVE_LINUX_OS_TRUE='#'
16154 HAVE_LINUX_OS_FALSE=
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16163 HAVE_FREEBSD_OS_TRUE=
16164 HAVE_FREEBSD_OS_FALSE='#'
16166 HAVE_FREEBSD_OS_TRUE='#'
16167 HAVE_FREEBSD_OS_FALSE=
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_FREEBSD_OS 1
16177 HAVE_FREEBSD_OS_TRUE=
16178 HAVE_FREEBSD_OS_FALSE='#'
16180 HAVE_FREEBSD_OS_TRUE='#'
16181 HAVE_FREEBSD_OS_FALSE=
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16190 HAVE_NETBSD_OS_TRUE=
16191 HAVE_NETBSD_OS_FALSE='#'
16193 HAVE_NETBSD_OS_TRUE='#'
16194 HAVE_NETBSD_OS_FALSE=
16196 cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_NETBSD_OS 1
16204 HAVE_NETBSD_OS_TRUE=
16205 HAVE_NETBSD_OS_FALSE='#'
16207 HAVE_NETBSD_OS_TRUE='#'
16208 HAVE_NETBSD_OS_FALSE=
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16217 HAVE_OPENBSD_OS_TRUE=
16218 HAVE_OPENBSD_OS_FALSE='#'
16220 HAVE_OPENBSD_OS_TRUE='#'
16221 HAVE_OPENBSD_OS_FALSE=
16223 cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_OPENBSD_OS 1
16231 HAVE_OPENBSD_OS_TRUE=
16232 HAVE_OPENBSD_OS_FALSE='#'
16234 HAVE_OPENBSD_OS_TRUE='#'
16235 HAVE_OPENBSD_OS_FALSE=
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16245 HAVE_BSDI_OS_FALSE='#'
16247 HAVE_BSDI_OS_TRUE='#'
16248 HAVE_BSDI_OS_FALSE=
16250 cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_BSDI_OS 1
16259 HAVE_BSDI_OS_FALSE='#'
16261 HAVE_BSDI_OS_TRUE='#'
16262 HAVE_BSDI_OS_FALSE=
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16272 HAVE_SGI_OS_FALSE='#'
16274 HAVE_SGI_OS_TRUE='#'
16277 cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_SGI_OS 1
16286 HAVE_SGI_OS_FALSE='#'
16288 HAVE_SGI_OS_TRUE='#'
16293 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16299 HAVE_IRIX_OS_FALSE='#'
16301 HAVE_IRIX_OS_TRUE='#'
16302 HAVE_IRIX_OS_FALSE=
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_IRIX_OS 1
16313 HAVE_IRIX_OS_FALSE='#'
16315 HAVE_IRIX_OS_TRUE='#'
16316 HAVE_IRIX_OS_FALSE=
16320 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16325 HAVE_DARWIN_OS_TRUE=
16326 HAVE_DARWIN_OS_FALSE='#'
16328 HAVE_DARWIN_OS_TRUE='#'
16329 HAVE_DARWIN_OS_FALSE=
16331 cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_DARWIN_OS 1
16339 HAVE_DARWIN_OS_TRUE=
16340 HAVE_DARWIN_OS_FALSE='#'
16342 HAVE_DARWIN_OS_TRUE='#'
16343 HAVE_DARWIN_OS_FALSE=
16348 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16349 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16350 if test "x$DISTNAME" != "x"
16352 echo "distname set to $DISTNAME"
16353 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16380 elif test -f /etc/SuSE-release
16383 elif test -d /etc/SuSEconfig
16386 elif test -f /etc/mandrake-release
16389 elif test -f /etc/whitebox-release
16392 elif test -f /etc/redhat-release
16395 elif test -f /etc/gentoo-release
16398 elif test -f /etc/debian_version
16401 elif test -f /etc/slackware-version
16404 elif test x$host_vendor = xapple
16407 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16410 elif test -f /etc/engarde-version
16413 elif test "$CYGWIN" = yes
16416 cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_CYGWIN 1
16423 { echo "$as_me:$LINENO: result: done" >&5
16424 echo "${ECHO_T}done" >&6; }
16427 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16428 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16429 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16430 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 cat >conftest.make <<\_ACEOF
16436 @echo '@@@%%%=$(MAKE)=@@@%%%'
16438 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16439 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16440 *@@@%%%=?*=@@@%%%*)
16441 eval ac_cv_prog_make_${ac_make}_set=yes;;
16443 eval ac_cv_prog_make_${ac_make}_set=no;;
16445 rm -f conftest.make
16447 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16448 { echo "$as_me:$LINENO: result: yes" >&5
16449 echo "${ECHO_T}yes" >&6; }
16452 { echo "$as_me:$LINENO: result: no" >&5
16453 echo "${ECHO_T}no" >&6; }
16454 SET_MAKE="MAKE=${MAKE-make}"
16460 if test -n "$ac_aux_dir"; then
16461 case "$ac_aux_dir" in
16462 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16463 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16466 if test -z "$MKINSTALLDIRS"; then
16467 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16472 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16473 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16474 # Check whether --enable-nls was given.
16475 if test "${enable_nls+set}" = set; then
16476 enableval=$enable_nls; USE_NLS=$enableval
16481 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16482 echo "${ECHO_T}$USE_NLS" >&6; }
16489 # Prepare PATH_SEPARATOR.
16490 # The user is always right.
16491 if test "${PATH_SEPARATOR+set}" != set; then
16492 echo "#! /bin/sh" >conf$$.sh
16493 echo "exit 0" >>conf$$.sh
16495 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16503 # Find out how to test for executable files. Don't use a zero-byte file,
16504 # as systems may use methods other than mode bits to determine executability.
16505 cat >conf$$.file <<_ASEOF
16509 chmod +x conf$$.file
16510 if test -x conf$$.file >/dev/null 2>&1; then
16511 ac_executable_p="test -x"
16513 ac_executable_p="test -f"
16517 # Extract the first word of "msgfmt", so it can be a program name with args.
16518 set dummy msgfmt; ac_word=$2
16519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16521 if test "${ac_cv_path_MSGFMT+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16529 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16530 for ac_dir in $PATH; do
16532 test -z "$ac_dir" && ac_dir=.
16533 for ac_exec_ext in '' $ac_executable_extensions; do
16534 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16535 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16536 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16537 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16538 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16545 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16549 MSGFMT="$ac_cv_path_MSGFMT"
16550 if test "$MSGFMT" != ":"; then
16551 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16552 echo "${ECHO_T}$MSGFMT" >&6; }
16554 { echo "$as_me:$LINENO: result: no" >&5
16555 echo "${ECHO_T}no" >&6; }
16558 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16559 set dummy gmsgfmt; ac_word=$2
16560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16562 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16574 test -z "$as_dir" && as_dir=.
16575 for ac_exec_ext in '' $ac_executable_extensions; do
16576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16577 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16585 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16589 GMSGFMT=$ac_cv_path_GMSGFMT
16590 if test -n "$GMSGFMT"; then
16591 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16592 echo "${ECHO_T}$GMSGFMT" >&6; }
16594 { echo "$as_me:$LINENO: result: no" >&5
16595 echo "${ECHO_T}no" >&6; }
16601 # Prepare PATH_SEPARATOR.
16602 # The user is always right.
16603 if test "${PATH_SEPARATOR+set}" != set; then
16604 echo "#! /bin/sh" >conf$$.sh
16605 echo "exit 0" >>conf$$.sh
16607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16615 # Find out how to test for executable files. Don't use a zero-byte file,
16616 # as systems may use methods other than mode bits to determine executability.
16617 cat >conf$$.file <<_ASEOF
16621 chmod +x conf$$.file
16622 if test -x conf$$.file >/dev/null 2>&1; then
16623 ac_executable_p="test -x"
16625 ac_executable_p="test -f"
16629 # Extract the first word of "xgettext", so it can be a program name with args.
16630 set dummy xgettext; ac_word=$2
16631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16633 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 case "$XGETTEXT" in
16638 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16641 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16642 for ac_dir in $PATH; do
16644 test -z "$ac_dir" && ac_dir=.
16645 for ac_exec_ext in '' $ac_executable_extensions; do
16646 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16647 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16648 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16649 (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
16650 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16657 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16661 XGETTEXT="$ac_cv_path_XGETTEXT"
16662 if test "$XGETTEXT" != ":"; then
16663 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16664 echo "${ECHO_T}$XGETTEXT" >&6; }
16666 { echo "$as_me:$LINENO: result: no" >&5
16667 echo "${ECHO_T}no" >&6; }
16673 # Prepare PATH_SEPARATOR.
16674 # The user is always right.
16675 if test "${PATH_SEPARATOR+set}" != set; then
16676 echo "#! /bin/sh" >conf$$.sh
16677 echo "exit 0" >>conf$$.sh
16679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16687 # Find out how to test for executable files. Don't use a zero-byte file,
16688 # as systems may use methods other than mode bits to determine executability.
16689 cat >conf$$.file <<_ASEOF
16693 chmod +x conf$$.file
16694 if test -x conf$$.file >/dev/null 2>&1; then
16695 ac_executable_p="test -x"
16697 ac_executable_p="test -f"
16701 # Extract the first word of "msgmerge", so it can be a program name with args.
16702 set dummy msgmerge; ac_word=$2
16703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16705 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 case "$MSGMERGE" in
16710 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16713 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16714 for ac_dir in $PATH; do
16716 test -z "$ac_dir" && ac_dir=.
16717 for ac_exec_ext in '' $ac_executable_extensions; do
16718 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16719 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16720 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16721 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16728 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16732 MSGMERGE="$ac_cv_path_MSGMERGE"
16733 if test "$MSGMERGE" != ":"; then
16734 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16735 echo "${ECHO_T}$MSGMERGE" >&6; }
16737 { echo "$as_me:$LINENO: result: no" >&5
16738 echo "${ECHO_T}no" >&6; }
16742 if test "$GMSGFMT" != ":"; then
16743 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16744 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16747 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16748 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16749 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16754 if test "$XGETTEXT" != ":"; then
16755 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16756 (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
16759 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16760 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16766 ac_config_commands="$ac_config_commands default-1"
16770 if test "X$prefix" = "XNONE"; then
16771 acl_final_prefix="$ac_default_prefix"
16773 acl_final_prefix="$prefix"
16775 if test "X$exec_prefix" = "XNONE"; then
16776 acl_final_exec_prefix='${prefix}'
16778 acl_final_exec_prefix="$exec_prefix"
16780 acl_save_prefix="$prefix"
16781 prefix="$acl_final_prefix"
16782 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16783 prefix="$acl_save_prefix"
16786 # Check whether --with-gnu-ld was given.
16787 if test "${with_gnu_ld+set}" = set; then
16788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16793 # Prepare PATH_SEPARATOR.
16794 # The user is always right.
16795 if test "${PATH_SEPARATOR+set}" != set; then
16796 echo "#! /bin/sh" >conf$$.sh
16797 echo "exit 0" >>conf$$.sh
16799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16807 if test "$GCC" = yes; then
16808 # Check if gcc -print-prog-name=ld gives a path.
16809 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16810 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16813 # gcc leaves a trailing carriage return which upsets mingw
16814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16819 # Accept absolute paths.
16820 [\\/]* | [A-Za-z]:[\\/]*)
16821 re_direlt='/[^/][^/]*/\.\./'
16822 # Canonicalize the path of ld
16823 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16824 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16825 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16827 test -z "$LD" && LD="$ac_prog"
16830 # If it fails, then pretend we aren't using GCC.
16834 # If it is relative, then search for the first ld in PATH.
16835 with_gnu_ld=unknown
16838 elif test "$with_gnu_ld" = yes; then
16839 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16840 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16842 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16843 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16845 if test "${acl_cv_path_LD+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 if test -z "$LD"; then
16849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16850 for ac_dir in $PATH; do
16851 test -z "$ac_dir" && ac_dir=.
16852 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16853 acl_cv_path_LD="$ac_dir/$ac_prog"
16854 # Check to see if the program is GNU ld. I'd rather use --version,
16855 # but apparently some GNU ld's only accept -v.
16856 # Break only if it was the GNU/non-GNU ld that we prefer.
16857 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16858 *GNU* | *'with BFD'*)
16859 test "$with_gnu_ld" != no && break ;;
16861 test "$with_gnu_ld" != yes && break ;;
16867 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16871 LD="$acl_cv_path_LD"
16872 if test -n "$LD"; then
16873 { echo "$as_me:$LINENO: result: $LD" >&5
16874 echo "${ECHO_T}$LD" >&6; }
16876 { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16879 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16880 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16881 { (exit 1); exit 1; }; }
16882 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16883 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16884 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16888 case `$LD -v 2>&1 </dev/null` in
16889 *GNU* | *'with BFD'*)
16890 acl_cv_prog_gnu_ld=yes ;;
16892 acl_cv_prog_gnu_ld=no ;;
16895 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16896 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16897 with_gnu_ld=$acl_cv_prog_gnu_ld
16902 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16903 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16904 if test "${acl_cv_rpath+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16909 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16911 rm -f ./conftest.sh
16915 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16916 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16918 libext="$acl_cv_libext"
16919 shlibext="$acl_cv_shlibext"
16920 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16921 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16922 hardcode_direct="$acl_cv_hardcode_direct"
16923 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16924 # Check whether --enable-rpath was given.
16925 if test "${enable_rpath+set}" = set; then
16926 enableval=$enable_rpath; :
16940 acl_save_prefix="$prefix"
16941 prefix="$acl_final_prefix"
16942 acl_save_exec_prefix="$exec_prefix"
16943 exec_prefix="$acl_final_exec_prefix"
16945 eval additional_includedir=\"$includedir\"
16946 eval additional_libdir=\"$libdir\"
16948 exec_prefix="$acl_save_exec_prefix"
16949 prefix="$acl_save_prefix"
16952 # Check whether --with-libiconv-prefix was given.
16953 if test "${with_libiconv_prefix+set}" = set; then
16954 withval=$with_libiconv_prefix;
16955 if test "X$withval" = "Xno"; then
16958 if test "X$withval" = "X"; then
16960 acl_save_prefix="$prefix"
16961 prefix="$acl_final_prefix"
16962 acl_save_exec_prefix="$exec_prefix"
16963 exec_prefix="$acl_final_exec_prefix"
16965 eval additional_includedir=\"$includedir\"
16966 eval additional_libdir=\"$libdir\"
16968 exec_prefix="$acl_save_exec_prefix"
16969 prefix="$acl_save_prefix"
16972 additional_includedir="$withval/include"
16973 additional_libdir="$withval/lib"
16984 names_already_handled=
16985 names_next_round='iconv '
16986 while test -n "$names_next_round"; do
16987 names_this_round="$names_next_round"
16989 for name in $names_this_round; do
16991 for n in $names_already_handled; do
16992 if test "$n" = "$name"; then
16993 already_handled=yes
16997 if test -z "$already_handled"; then
16998 names_already_handled="$names_already_handled $name"
16999 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17000 eval value=\"\$HAVE_LIB$uppername\"
17001 if test -n "$value"; then
17002 if test "$value" = yes; then
17003 eval value=\"\$LIB$uppername\"
17004 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17005 eval value=\"\$LTLIB$uppername\"
17006 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17015 if test $use_additional = yes; then
17016 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17017 found_dir="$additional_libdir"
17018 found_so="$additional_libdir/lib$name.$shlibext"
17019 if test -f "$additional_libdir/lib$name.la"; then
17020 found_la="$additional_libdir/lib$name.la"
17023 if test -f "$additional_libdir/lib$name.$libext"; then
17024 found_dir="$additional_libdir"
17025 found_a="$additional_libdir/lib$name.$libext"
17026 if test -f "$additional_libdir/lib$name.la"; then
17027 found_la="$additional_libdir/lib$name.la"
17032 if test "X$found_dir" = "X"; then
17033 for x in $LDFLAGS $LTLIBICONV; do
17035 acl_save_prefix="$prefix"
17036 prefix="$acl_final_prefix"
17037 acl_save_exec_prefix="$exec_prefix"
17038 exec_prefix="$acl_final_exec_prefix"
17040 exec_prefix="$acl_save_exec_prefix"
17041 prefix="$acl_save_prefix"
17045 dir=`echo "X$x" | sed -e 's/^X-L//'`
17046 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17048 found_so="$dir/lib$name.$shlibext"
17049 if test -f "$dir/lib$name.la"; then
17050 found_la="$dir/lib$name.la"
17053 if test -f "$dir/lib$name.$libext"; then
17055 found_a="$dir/lib$name.$libext"
17056 if test -f "$dir/lib$name.la"; then
17057 found_la="$dir/lib$name.la"
17063 if test "X$found_dir" != "X"; then
17068 if test "X$found_dir" != "X"; then
17069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17070 if test "X$found_so" != "X"; then
17071 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17075 for x in $ltrpathdirs; do
17076 if test "X$x" = "X$found_dir"; then
17081 if test -z "$haveit"; then
17082 ltrpathdirs="$ltrpathdirs $found_dir"
17084 if test "$hardcode_direct" = yes; then
17085 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17087 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090 for x in $rpathdirs; do
17091 if test "X$x" = "X$found_dir"; then
17096 if test -z "$haveit"; then
17097 rpathdirs="$rpathdirs $found_dir"
17101 for x in $LDFLAGS $LIBICONV; do
17103 acl_save_prefix="$prefix"
17104 prefix="$acl_final_prefix"
17105 acl_save_exec_prefix="$exec_prefix"
17106 exec_prefix="$acl_final_exec_prefix"
17108 exec_prefix="$acl_save_exec_prefix"
17109 prefix="$acl_save_prefix"
17111 if test "X$x" = "X-L$found_dir"; then
17116 if test -z "$haveit"; then
17117 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17119 if test "$hardcode_minus_L" != no; then
17120 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17122 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17128 if test "X$found_a" != "X"; then
17129 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17131 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17134 additional_includedir=
17135 case "$found_dir" in
17137 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17138 additional_includedir="$basedir/include"
17141 if test "X$additional_includedir" != "X"; then
17142 if test "X$additional_includedir" != "X/usr/include"; then
17144 if test "X$additional_includedir" = "X/usr/local/include"; then
17145 if test -n "$GCC"; then
17147 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17151 if test -z "$haveit"; then
17152 for x in $CPPFLAGS $INCICONV; do
17154 acl_save_prefix="$prefix"
17155 prefix="$acl_final_prefix"
17156 acl_save_exec_prefix="$exec_prefix"
17157 exec_prefix="$acl_final_exec_prefix"
17159 exec_prefix="$acl_save_exec_prefix"
17160 prefix="$acl_save_prefix"
17162 if test "X$x" = "X-I$additional_includedir"; then
17167 if test -z "$haveit"; then
17168 if test -d "$additional_includedir"; then
17169 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17175 if test -n "$found_la"; then
17176 save_libdir="$libdir"
17177 case "$found_la" in
17178 */* | *\\*) . "$found_la" ;;
17179 *) . "./$found_la" ;;
17181 libdir="$save_libdir"
17182 for dep in $dependency_libs; do
17185 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17186 if test "X$additional_libdir" != "X/usr/lib"; then
17188 if test "X$additional_libdir" = "X/usr/local/lib"; then
17189 if test -n "$GCC"; then
17191 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17195 if test -z "$haveit"; then
17197 for x in $LDFLAGS $LIBICONV; do
17199 acl_save_prefix="$prefix"
17200 prefix="$acl_final_prefix"
17201 acl_save_exec_prefix="$exec_prefix"
17202 exec_prefix="$acl_final_exec_prefix"
17204 exec_prefix="$acl_save_exec_prefix"
17205 prefix="$acl_save_prefix"
17207 if test "X$x" = "X-L$additional_libdir"; then
17212 if test -z "$haveit"; then
17213 if test -d "$additional_libdir"; then
17214 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17218 for x in $LDFLAGS $LTLIBICONV; do
17220 acl_save_prefix="$prefix"
17221 prefix="$acl_final_prefix"
17222 acl_save_exec_prefix="$exec_prefix"
17223 exec_prefix="$acl_final_exec_prefix"
17225 exec_prefix="$acl_save_exec_prefix"
17226 prefix="$acl_save_prefix"
17228 if test "X$x" = "X-L$additional_libdir"; then
17233 if test -z "$haveit"; then
17234 if test -d "$additional_libdir"; then
17235 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17242 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17243 if test "$enable_rpath" != no; then
17245 for x in $rpathdirs; do
17246 if test "X$x" = "X$dir"; then
17251 if test -z "$haveit"; then
17252 rpathdirs="$rpathdirs $dir"
17255 for x in $ltrpathdirs; do
17256 if test "X$x" = "X$dir"; then
17261 if test -z "$haveit"; then
17262 ltrpathdirs="$ltrpathdirs $dir"
17267 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17273 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17274 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17280 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17281 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17287 if test "X$rpathdirs" != "X"; then
17288 if test -n "$hardcode_libdir_separator"; then
17290 for found_dir in $rpathdirs; do
17291 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17293 acl_save_libdir="$libdir"
17295 eval flag=\"$hardcode_libdir_flag_spec\"
17296 libdir="$acl_save_libdir"
17297 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17299 for found_dir in $rpathdirs; do
17300 acl_save_libdir="$libdir"
17301 libdir="$found_dir"
17302 eval flag=\"$hardcode_libdir_flag_spec\"
17303 libdir="$acl_save_libdir"
17304 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17308 if test "X$ltrpathdirs" != "X"; then
17309 for found_dir in $ltrpathdirs; do
17310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17331 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17332 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17333 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 gt_save_CPPFLAGS="$CPPFLAGS"
17337 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17338 gt_save_LIBS="$LIBS"
17339 LIBS="$LIBS -framework CoreFoundation"
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 #include <CFPreferences.h>
17350 CFPreferencesCopyAppValue(NULL, NULL)
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_link") 2>conftest.er1
17364 grep -v '^ *+' conftest.er1 >conftest.err
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext &&
17372 $as_test_x conftest$ac_exeext; then
17373 gt_cv_func_CFPreferencesCopyAppValue=yes
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 gt_cv_func_CFPreferencesCopyAppValue=no
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382 conftest$ac_exeext conftest.$ac_ext
17383 CPPFLAGS="$gt_save_CPPFLAGS"
17384 LIBS="$gt_save_LIBS"
17386 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17387 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17388 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17390 cat >>confdefs.h <<\_ACEOF
17391 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17395 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17396 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17397 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 gt_save_CPPFLAGS="$CPPFLAGS"
17401 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17402 gt_save_LIBS="$LIBS"
17403 LIBS="$LIBS -framework CoreFoundation"
17404 cat >conftest.$ac_ext <<_ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 #include <CFLocale.h>
17414 CFLocaleCopyCurrent();
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } && {
17433 test -z "$ac_c_werror_flag" ||
17434 test ! -s conftest.err
17435 } && test -s conftest$ac_exeext &&
17436 $as_test_x conftest$ac_exeext; then
17437 gt_cv_func_CFLocaleCopyCurrent=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 gt_cv_func_CFLocaleCopyCurrent=no
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446 conftest$ac_exeext conftest.$ac_ext
17447 CPPFLAGS="$gt_save_CPPFLAGS"
17448 LIBS="$gt_save_LIBS"
17450 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17451 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17452 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_CFLOCALECOPYCURRENT 1
17460 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17461 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17467 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17468 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17469 # Check whether --enable-nls was given.
17470 if test "${enable_nls+set}" = set; then
17471 enableval=$enable_nls; USE_NLS=$enableval
17476 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17477 echo "${ECHO_T}$USE_NLS" >&6; }
17486 if test "$USE_NLS" = "yes"; then
17487 gt_use_preinstalled_gnugettext=no
17494 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17495 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17496 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17497 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 cat >conftest.$ac_ext <<_ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 #include <libintl.h>
17506 extern int _nl_msg_cat_cntr;
17507 extern int *_nl_domain_bindings;
17511 bindtextdomain ("", "");
17512 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_link") 2>conftest.er1
17526 grep -v '^ *+' conftest.er1 >conftest.err
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && {
17531 test -z "$ac_c_werror_flag" ||
17532 test ! -s conftest.err
17533 } && test -s conftest$ac_exeext &&
17534 $as_test_x conftest$ac_exeext; then
17535 gt_cv_func_gnugettext1_libc=yes
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17540 gt_cv_func_gnugettext1_libc=no
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544 conftest$ac_exeext conftest.$ac_ext
17546 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17547 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17549 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17555 am_save_CPPFLAGS="$CPPFLAGS"
17557 for element in $INCICONV; do
17559 for x in $CPPFLAGS; do
17561 acl_save_prefix="$prefix"
17562 prefix="$acl_final_prefix"
17563 acl_save_exec_prefix="$exec_prefix"
17564 exec_prefix="$acl_final_exec_prefix"
17566 exec_prefix="$acl_save_exec_prefix"
17567 prefix="$acl_save_prefix"
17569 if test "X$x" = "X$element"; then
17574 if test -z "$haveit"; then
17575 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17580 { echo "$as_me:$LINENO: checking for iconv" >&5
17581 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17582 if test "${am_cv_func_iconv+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 am_cv_func_iconv="no, consider installing GNU libiconv"
17588 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #include <stdlib.h>
17599 iconv_t cd = iconv_open("","");
17600 iconv(cd,NULL,NULL,NULL,NULL);
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17624 am_cv_func_iconv=yes
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17634 if test "$am_cv_func_iconv" != yes; then
17635 am_save_LIBS="$LIBS"
17636 LIBS="$LIBS $LIBICONV"
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 #include <stdlib.h>
17648 iconv_t cd = iconv_open("","");
17649 iconv(cd,NULL,NULL,NULL,NULL);
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_link") 2>conftest.er1
17664 grep -v '^ *+' conftest.er1 >conftest.err
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest$ac_exeext &&
17672 $as_test_x conftest$ac_exeext; then
17673 am_cv_lib_iconv=yes
17674 am_cv_func_iconv=yes
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17683 conftest$ac_exeext conftest.$ac_ext
17684 LIBS="$am_save_LIBS"
17688 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17689 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17690 if test "$am_cv_func_iconv" = yes; then
17692 cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_ICONV 1
17697 if test "$am_cv_lib_iconv" = yes; then
17698 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17699 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17700 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17701 echo "${ECHO_T}$LIBICONV" >&6; }
17703 CPPFLAGS="$am_save_CPPFLAGS"
17715 acl_save_prefix="$prefix"
17716 prefix="$acl_final_prefix"
17717 acl_save_exec_prefix="$exec_prefix"
17718 exec_prefix="$acl_final_exec_prefix"
17720 eval additional_includedir=\"$includedir\"
17721 eval additional_libdir=\"$libdir\"
17723 exec_prefix="$acl_save_exec_prefix"
17724 prefix="$acl_save_prefix"
17727 # Check whether --with-libintl-prefix was given.
17728 if test "${with_libintl_prefix+set}" = set; then
17729 withval=$with_libintl_prefix;
17730 if test "X$withval" = "Xno"; then
17733 if test "X$withval" = "X"; then
17735 acl_save_prefix="$prefix"
17736 prefix="$acl_final_prefix"
17737 acl_save_exec_prefix="$exec_prefix"
17738 exec_prefix="$acl_final_exec_prefix"
17740 eval additional_includedir=\"$includedir\"
17741 eval additional_libdir=\"$libdir\"
17743 exec_prefix="$acl_save_exec_prefix"
17744 prefix="$acl_save_prefix"
17747 additional_includedir="$withval/include"
17748 additional_libdir="$withval/lib"
17759 names_already_handled=
17760 names_next_round='intl '
17761 while test -n "$names_next_round"; do
17762 names_this_round="$names_next_round"
17764 for name in $names_this_round; do
17766 for n in $names_already_handled; do
17767 if test "$n" = "$name"; then
17768 already_handled=yes
17772 if test -z "$already_handled"; then
17773 names_already_handled="$names_already_handled $name"
17774 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17775 eval value=\"\$HAVE_LIB$uppername\"
17776 if test -n "$value"; then
17777 if test "$value" = yes; then
17778 eval value=\"\$LIB$uppername\"
17779 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17780 eval value=\"\$LTLIB$uppername\"
17781 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17790 if test $use_additional = yes; then
17791 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17792 found_dir="$additional_libdir"
17793 found_so="$additional_libdir/lib$name.$shlibext"
17794 if test -f "$additional_libdir/lib$name.la"; then
17795 found_la="$additional_libdir/lib$name.la"
17798 if test -f "$additional_libdir/lib$name.$libext"; then
17799 found_dir="$additional_libdir"
17800 found_a="$additional_libdir/lib$name.$libext"
17801 if test -f "$additional_libdir/lib$name.la"; then
17802 found_la="$additional_libdir/lib$name.la"
17807 if test "X$found_dir" = "X"; then
17808 for x in $LDFLAGS $LTLIBINTL; do
17810 acl_save_prefix="$prefix"
17811 prefix="$acl_final_prefix"
17812 acl_save_exec_prefix="$exec_prefix"
17813 exec_prefix="$acl_final_exec_prefix"
17815 exec_prefix="$acl_save_exec_prefix"
17816 prefix="$acl_save_prefix"
17820 dir=`echo "X$x" | sed -e 's/^X-L//'`
17821 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17823 found_so="$dir/lib$name.$shlibext"
17824 if test -f "$dir/lib$name.la"; then
17825 found_la="$dir/lib$name.la"
17828 if test -f "$dir/lib$name.$libext"; then
17830 found_a="$dir/lib$name.$libext"
17831 if test -f "$dir/lib$name.la"; then
17832 found_la="$dir/lib$name.la"
17838 if test "X$found_dir" != "X"; then
17843 if test "X$found_dir" != "X"; then
17844 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17845 if test "X$found_so" != "X"; then
17846 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17847 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17850 for x in $ltrpathdirs; do
17851 if test "X$x" = "X$found_dir"; then
17856 if test -z "$haveit"; then
17857 ltrpathdirs="$ltrpathdirs $found_dir"
17859 if test "$hardcode_direct" = yes; then
17860 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17862 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17863 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865 for x in $rpathdirs; do
17866 if test "X$x" = "X$found_dir"; then
17871 if test -z "$haveit"; then
17872 rpathdirs="$rpathdirs $found_dir"
17876 for x in $LDFLAGS $LIBINTL; do
17878 acl_save_prefix="$prefix"
17879 prefix="$acl_final_prefix"
17880 acl_save_exec_prefix="$exec_prefix"
17881 exec_prefix="$acl_final_exec_prefix"
17883 exec_prefix="$acl_save_exec_prefix"
17884 prefix="$acl_save_prefix"
17886 if test "X$x" = "X-L$found_dir"; then
17891 if test -z "$haveit"; then
17892 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17894 if test "$hardcode_minus_L" != no; then
17895 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17897 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17903 if test "X$found_a" != "X"; then
17904 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17906 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17909 additional_includedir=
17910 case "$found_dir" in
17912 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17913 additional_includedir="$basedir/include"
17916 if test "X$additional_includedir" != "X"; then
17917 if test "X$additional_includedir" != "X/usr/include"; then
17919 if test "X$additional_includedir" = "X/usr/local/include"; then
17920 if test -n "$GCC"; then
17922 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17926 if test -z "$haveit"; then
17927 for x in $CPPFLAGS $INCINTL; do
17929 acl_save_prefix="$prefix"
17930 prefix="$acl_final_prefix"
17931 acl_save_exec_prefix="$exec_prefix"
17932 exec_prefix="$acl_final_exec_prefix"
17934 exec_prefix="$acl_save_exec_prefix"
17935 prefix="$acl_save_prefix"
17937 if test "X$x" = "X-I$additional_includedir"; then
17942 if test -z "$haveit"; then
17943 if test -d "$additional_includedir"; then
17944 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17950 if test -n "$found_la"; then
17951 save_libdir="$libdir"
17952 case "$found_la" in
17953 */* | *\\*) . "$found_la" ;;
17954 *) . "./$found_la" ;;
17956 libdir="$save_libdir"
17957 for dep in $dependency_libs; do
17960 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17961 if test "X$additional_libdir" != "X/usr/lib"; then
17963 if test "X$additional_libdir" = "X/usr/local/lib"; then
17964 if test -n "$GCC"; then
17966 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17970 if test -z "$haveit"; then
17972 for x in $LDFLAGS $LIBINTL; do
17974 acl_save_prefix="$prefix"
17975 prefix="$acl_final_prefix"
17976 acl_save_exec_prefix="$exec_prefix"
17977 exec_prefix="$acl_final_exec_prefix"
17979 exec_prefix="$acl_save_exec_prefix"
17980 prefix="$acl_save_prefix"
17982 if test "X$x" = "X-L$additional_libdir"; then
17987 if test -z "$haveit"; then
17988 if test -d "$additional_libdir"; then
17989 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17993 for x in $LDFLAGS $LTLIBINTL; do
17995 acl_save_prefix="$prefix"
17996 prefix="$acl_final_prefix"
17997 acl_save_exec_prefix="$exec_prefix"
17998 exec_prefix="$acl_final_exec_prefix"
18000 exec_prefix="$acl_save_exec_prefix"
18001 prefix="$acl_save_prefix"
18003 if test "X$x" = "X-L$additional_libdir"; then
18008 if test -z "$haveit"; then
18009 if test -d "$additional_libdir"; then
18010 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18017 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18018 if test "$enable_rpath" != no; then
18020 for x in $rpathdirs; do
18021 if test "X$x" = "X$dir"; then
18026 if test -z "$haveit"; then
18027 rpathdirs="$rpathdirs $dir"
18030 for x in $ltrpathdirs; do
18031 if test "X$x" = "X$dir"; then
18036 if test -z "$haveit"; then
18037 ltrpathdirs="$ltrpathdirs $dir"
18042 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18048 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18049 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18055 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18056 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18062 if test "X$rpathdirs" != "X"; then
18063 if test -n "$hardcode_libdir_separator"; then
18065 for found_dir in $rpathdirs; do
18066 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18068 acl_save_libdir="$libdir"
18070 eval flag=\"$hardcode_libdir_flag_spec\"
18071 libdir="$acl_save_libdir"
18072 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18074 for found_dir in $rpathdirs; do
18075 acl_save_libdir="$libdir"
18076 libdir="$found_dir"
18077 eval flag=\"$hardcode_libdir_flag_spec\"
18078 libdir="$acl_save_libdir"
18079 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18083 if test "X$ltrpathdirs" != "X"; then
18084 for found_dir in $ltrpathdirs; do
18085 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18089 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18090 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18091 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 gt_save_CPPFLAGS="$CPPFLAGS"
18095 CPPFLAGS="$CPPFLAGS $INCINTL"
18096 gt_save_LIBS="$LIBS"
18097 LIBS="$LIBS $LIBINTL"
18098 cat >conftest.$ac_ext <<_ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104 #include <libintl.h>
18105 extern int _nl_msg_cat_cntr;
18110 const char *_nl_expand_alias (const char *);
18114 bindtextdomain ("", "");
18115 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_link") 2>conftest.er1
18129 grep -v '^ *+' conftest.er1 >conftest.err
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } && {
18134 test -z "$ac_c_werror_flag" ||
18135 test ! -s conftest.err
18136 } && test -s conftest$ac_exeext &&
18137 $as_test_x conftest$ac_exeext; then
18138 gt_cv_func_gnugettext1_libintl=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 gt_cv_func_gnugettext1_libintl=no
18146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18147 conftest$ac_exeext conftest.$ac_ext
18148 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18149 LIBS="$LIBS $LIBICONV"
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <libintl.h>
18157 extern int _nl_msg_cat_cntr;
18162 const char *_nl_expand_alias (const char *);
18166 bindtextdomain ("", "");
18167 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } && {
18186 test -z "$ac_c_werror_flag" ||
18187 test ! -s conftest.err
18188 } && test -s conftest$ac_exeext &&
18189 $as_test_x conftest$ac_exeext; then
18190 LIBINTL="$LIBINTL $LIBICONV"
18191 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18192 gt_cv_func_gnugettext1_libintl=yes
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202 conftest$ac_exeext conftest.$ac_ext
18204 CPPFLAGS="$gt_save_CPPFLAGS"
18205 LIBS="$gt_save_LIBS"
18207 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18208 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18211 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18212 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18213 && test "$PACKAGE" != gettext-runtime \
18214 && test "$PACKAGE" != gettext-tools; }; then
18215 gt_use_preinstalled_gnugettext=yes
18224 if test -n "$INTL_MACOSX_LIBS"; then
18225 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18226 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18227 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18228 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18232 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18233 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18235 cat >>confdefs.h <<\_ACEOF
18236 #define ENABLE_NLS 1
18244 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18245 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18246 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18247 echo "${ECHO_T}$USE_NLS" >&6; }
18248 if test "$USE_NLS" = "yes"; then
18249 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18250 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18251 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18252 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18253 gt_source="external libintl"
18258 gt_source="included intl directory"
18260 { echo "$as_me:$LINENO: result: $gt_source" >&5
18261 echo "${ECHO_T}$gt_source" >&6; }
18264 if test "$USE_NLS" = "yes"; then
18266 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18267 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18268 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18269 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18270 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18271 echo "${ECHO_T}$LIBINTL" >&6; }
18273 for element in $INCINTL; do
18275 for x in $CPPFLAGS; do
18277 acl_save_prefix="$prefix"
18278 prefix="$acl_final_prefix"
18279 acl_save_exec_prefix="$exec_prefix"
18280 exec_prefix="$acl_final_exec_prefix"
18282 exec_prefix="$acl_save_exec_prefix"
18283 prefix="$acl_save_prefix"
18285 if test "X$x" = "X$element"; then
18290 if test -z "$haveit"; then
18291 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_GETTEXT 1
18303 cat >>confdefs.h <<\_ACEOF
18304 #define HAVE_DCGETTEXT 1
18314 INTLLIBS="$LIBINTL"
18322 os_name=`uname -s 2>/dev/null`
18323 if test x${prefix} = xNONE ; then
18324 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18325 sysconfdir=/etc/bacula
18328 if test `eval echo ${libdir}` = NONE/lib ; then
18331 os_processor=`uname -p 2>/dev/null`
18332 case ${os_processor} in
18347 if test `eval echo ${includedir}` = NONE/include ; then
18348 includedir=/usr/include
18351 if test `eval echo ${datarootdir}` = NONE/share ; then
18352 datarootdir=/usr/share
18357 if test x${exec_prefix} = xNONE ; then
18358 exec_prefix=${prefix}
18361 sysconfdir=`eval echo ${sysconfdir}`
18362 datarootdir=`eval echo ${datarootdir}`
18363 docdir=`eval echo ${docdir}`
18364 htmldir=`eval echo ${htmldir}`
18365 libdir=`eval echo ${libdir}`
18366 includedir=`eval echo ${includedir}`
18367 localedir=`eval echo ${datarootdir}/locale`
18368 cat >>confdefs.h <<_ACEOF
18369 #define SYSCONFDIR "$sysconfdir"
18372 cat >>confdefs.h <<_ACEOF
18373 #define LOCALEDIR "$localedir"
18377 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18378 sbindir=${exec_prefix}/sbin
18380 sbindir=`eval echo ${sbindir}`
18382 if test x$mandir = x'${prefix}/man' ; then
18383 mandir=/usr/share/man
18386 if test x$htmldir = x${docdir} ; then
18387 htmldir=`eval echo ${docdir}bacula/html`
18390 if test x$docdir = x'/usr/share/doc/' ; then
18391 docdir=`eval echo ${docdir}bacula`
18395 for ac_prog in msgfmt
18397 # Extract the first word of "$ac_prog", so it can be a program name with args.
18398 set dummy $ac_prog; ac_word=$2
18399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18401 if test "${ac_cv_path_MSGFMT+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18406 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18410 for as_dir in $PATH
18413 test -z "$as_dir" && as_dir=.
18414 for ac_exec_ext in '' $ac_executable_extensions; do
18415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18416 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18427 MSGFMT=$ac_cv_path_MSGFMT
18428 if test -n "$MSGFMT"; then
18429 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18430 echo "${ECHO_T}$MSGFMT" >&6; }
18432 { echo "$as_me:$LINENO: result: no" >&5
18433 echo "${ECHO_T}no" >&6; }
18437 test -n "$MSGFMT" && break
18439 test -n "$MSGFMT" || MSGFMT="no"
18441 if test "$MSGFMT" = "no"
18443 echo 'msgfmt program not found, disabling NLS !'
18445 USE_INCLUDED_LIBINTL=no
18448 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18449 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18450 if test "${ac_cv_gnu_library_2+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 cat >conftest.$ac_ext <<_ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18460 #include <features.h>
18461 #ifdef __GNU_LIBRARY__
18462 #if (__GLIBC__ >= 2)
18468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18469 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18470 ac_cv_gnu_library_2=yes
18472 ac_cv_gnu_library_2=no
18479 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18480 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18482 GLIBC2="$ac_cv_gnu_library_2"
18485 if test -n "$ac_tool_prefix"; then
18486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18490 if test "${ac_cv_prog_RANLIB+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 if test -n "$RANLIB"; then
18494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 for as_dir in $PATH
18500 test -z "$as_dir" && as_dir=.
18501 for ac_exec_ext in '' $ac_executable_extensions; do
18502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18513 RANLIB=$ac_cv_prog_RANLIB
18514 if test -n "$RANLIB"; then
18515 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18516 echo "${ECHO_T}$RANLIB" >&6; }
18518 { echo "$as_me:$LINENO: result: no" >&5
18519 echo "${ECHO_T}no" >&6; }
18524 if test -z "$ac_cv_prog_RANLIB"; then
18525 ac_ct_RANLIB=$RANLIB
18526 # Extract the first word of "ranlib", so it can be a program name with args.
18527 set dummy ranlib; ac_word=$2
18528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 if test -n "$ac_ct_RANLIB"; then
18534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537 for as_dir in $PATH
18540 test -z "$as_dir" && as_dir=.
18541 for ac_exec_ext in '' $ac_executable_extensions; do
18542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18543 ac_cv_prog_ac_ct_RANLIB="ranlib"
18544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18554 if test -n "$ac_ct_RANLIB"; then
18555 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18556 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18558 { echo "$as_me:$LINENO: result: no" >&5
18559 echo "${ECHO_T}no" >&6; }
18562 if test "x$ac_ct_RANLIB" = x; then
18565 case $cross_compiling:$ac_tool_warned in
18567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18568 whose name does not start with the host triplet. If you think this
18569 configuration is useful to you, please write to autoconf@gnu.org." >&5
18570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18571 whose name does not start with the host triplet. If you think this
18572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18573 ac_tool_warned=yes ;;
18575 RANLIB=$ac_ct_RANLIB
18578 RANLIB="$ac_cv_prog_RANLIB"
18582 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18583 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18584 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 ac_check_lib_save_LIBS=$LIBS
18588 LIBS="-lcposix $LIBS"
18589 cat >conftest.$ac_ext <<_ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18596 /* Override any GCC internal prototype to avoid an error.
18597 Use char because int might match the return type of a GCC
18598 builtin and then its argument prototype would still apply. */
18606 return strerror ();
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_link") 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } && {
18625 test -z "$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 } && test -s conftest$ac_exeext &&
18628 $as_test_x conftest$ac_exeext; then
18629 ac_cv_lib_cposix_strerror=yes
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 ac_cv_lib_cposix_strerror=no
18637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18638 conftest$ac_exeext conftest.$ac_ext
18639 LIBS=$ac_check_lib_save_LIBS
18641 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18642 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18643 if test $ac_cv_lib_cposix_strerror = yes; then
18644 LIBS="$LIBS -lcposix"
18649 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18650 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18651 if test "${ac_cv_c_const+set}" = set; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18654 cat >conftest.$ac_ext <<_ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18664 /* FIXME: Include the comments suggested by Paul. */
18665 #ifndef __cplusplus
18666 /* Ultrix mips cc rejects this. */
18667 typedef int charset[2];
18669 /* SunOS 4.1.1 cc rejects this. */
18670 char const *const *pcpcc;
18672 /* NEC SVR4.0.2 mips cc rejects this. */
18673 struct point {int x, y;};
18674 static struct point const zero = {0,0};
18675 /* AIX XL C 1.02.0.0 rejects this.
18676 It does not let you subtract one const X* pointer from another in
18677 an arm of an if-expression whose if-part is not a constant
18679 const char *g = "string";
18680 pcpcc = &g + (g ? g-g : 0);
18681 /* HPUX 7.0 cc rejects these. */
18683 ppc = (char**) pcpcc;
18684 pcpcc = (char const *const *) ppc;
18685 { /* SCO 3.2v4 cc rejects this. */
18687 char const *s = 0 ? (char *) 0 : (char const *) 0;
18692 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18693 int x[] = {25, 17};
18694 const int *foo = &x[0];
18697 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18698 typedef const int *iptr;
18702 { /* AIX XL C 1.02.0.0 rejects this saying
18703 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18704 struct s { int j; const int *ap[3]; };
18705 struct s *b; b->j = 5;
18707 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18708 const int foo = 10;
18709 if (!foo) return 0;
18711 return !cs[0] && !zero.x;
18718 rm -f conftest.$ac_objext
18719 if { (ac_try="$ac_compile"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_compile") 2>conftest.er1
18727 grep -v '^ *+' conftest.er1 >conftest.err
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } && {
18732 test -z "$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 } && test -s conftest.$ac_objext; then
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18746 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18747 if test $ac_cv_c_const = no; then
18749 cat >>confdefs.h <<\_ACEOF
18756 { echo "$as_me:$LINENO: checking for signed" >&5
18757 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18758 if test "${bh_cv_c_signed+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 cat >conftest.$ac_ext <<_ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18776 rm -f conftest.$ac_objext
18777 if { (ac_try="$ac_compile"
18778 case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_compile") 2>conftest.er1
18785 grep -v '^ *+' conftest.er1 >conftest.err
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } && {
18790 test -z "$ac_c_werror_flag" ||
18791 test ! -s conftest.err
18792 } && test -s conftest.$ac_objext; then
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18804 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18805 if test $bh_cv_c_signed = no; then
18807 cat >>confdefs.h <<\_ACEOF
18813 { echo "$as_me:$LINENO: checking for inline" >&5
18814 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18815 if test "${ac_cv_c_inline+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 for ac_kw in inline __inline__ __inline; do
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 #ifndef __cplusplus
18828 static $ac_kw foo_t static_foo () {return 0; }
18829 $ac_kw foo_t foo () {return 0; }
18833 rm -f conftest.$ac_objext
18834 if { (ac_try="$ac_compile"
18835 case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_compile") 2>conftest.er1
18842 grep -v '^ *+' conftest.er1 >conftest.err
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } && {
18847 test -z "$ac_c_werror_flag" ||
18848 test ! -s conftest.err
18849 } && test -s conftest.$ac_objext; then
18850 ac_cv_c_inline=$ac_kw
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18859 test "$ac_cv_c_inline" != no && break
18863 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18864 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18867 case $ac_cv_c_inline in
18870 case $ac_cv_c_inline in
18872 *) ac_val=$ac_cv_c_inline;;
18874 cat >>confdefs.h <<_ACEOF
18875 #ifndef __cplusplus
18876 #define inline $ac_val
18882 { echo "$as_me:$LINENO: checking for off_t" >&5
18883 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18884 if test "${ac_cv_type_off_t+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 cat >conftest.$ac_ext <<_ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893 $ac_includes_default
18894 typedef off_t ac__type_new_;
18898 if ((ac__type_new_ *) 0)
18900 if (sizeof (ac__type_new_))
18906 rm -f conftest.$ac_objext
18907 if { (ac_try="$ac_compile"
18908 case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913 (eval "$ac_compile") 2>conftest.er1
18915 grep -v '^ *+' conftest.er1 >conftest.err
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } && {
18920 test -z "$ac_c_werror_flag" ||
18921 test ! -s conftest.err
18922 } && test -s conftest.$ac_objext; then
18923 ac_cv_type_off_t=yes
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 ac_cv_type_off_t=no
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18934 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18935 if test $ac_cv_type_off_t = yes; then
18939 cat >>confdefs.h <<_ACEOF
18940 #define off_t long int
18945 { echo "$as_me:$LINENO: checking for size_t" >&5
18946 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18947 if test "${ac_cv_type_size_t+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 cat >conftest.$ac_ext <<_ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18956 $ac_includes_default
18957 typedef size_t ac__type_new_;
18961 if ((ac__type_new_ *) 0)
18963 if (sizeof (ac__type_new_))
18969 rm -f conftest.$ac_objext
18970 if { (ac_try="$ac_compile"
18971 case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_compile") 2>conftest.er1
18978 grep -v '^ *+' conftest.er1 >conftest.err
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest.$ac_objext; then
18986 ac_cv_type_size_t=yes
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18991 ac_cv_type_size_t=no
18994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18996 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18997 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18998 if test $ac_cv_type_size_t = yes; then
19002 cat >>confdefs.h <<_ACEOF
19003 #define size_t unsigned int
19009 { echo "$as_me:$LINENO: checking for long long" >&5
19010 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19011 if test "${ac_cv_type_long_long+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 cat >conftest.$ac_ext <<_ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 long long ll = 1LL; int i = 63;
19024 long long llmax = (long long) -1;
19025 return ll << i | ll >> i | llmax / ll | llmax % ll;
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_link") 2>conftest.er1
19039 grep -v '^ *+' conftest.er1 >conftest.err
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } && {
19044 test -z "$ac_c_werror_flag" ||
19045 test ! -s conftest.err
19046 } && test -s conftest$ac_exeext &&
19047 $as_test_x conftest$ac_exeext; then
19048 ac_cv_type_long_long=yes
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 ac_cv_type_long_long=no
19056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19057 conftest$ac_exeext conftest.$ac_ext
19059 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19060 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19061 if test $ac_cv_type_long_long = yes; then
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE_LONG_LONG 1
19070 { echo "$as_me:$LINENO: checking for long double" >&5
19071 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19072 if test "${gt_cv_c_long_double+set}" = set; then
19073 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 if test "$GCC" = yes; then
19076 gt_cv_c_long_double=yes
19078 cat >conftest.$ac_ext <<_ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19085 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19086 long double foo = 0.0;
19087 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19088 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_compile") 2>conftest.er1
19107 grep -v '^ *+' conftest.er1 >conftest.err
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && {
19112 test -z "$ac_c_werror_flag" ||
19113 test ! -s conftest.err
19114 } && test -s conftest.$ac_objext; then
19115 gt_cv_c_long_double=yes
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19120 gt_cv_c_long_double=no
19123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19127 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19128 if test $gt_cv_c_long_double = yes; then
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_LONG_DOUBLE 1
19137 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19138 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19139 if test "${gt_cv_c_wchar_t+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 cat >conftest.$ac_ext <<_ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 #include <stddef.h>
19149 wchar_t foo = (wchar_t)'\0';
19158 rm -f conftest.$ac_objext
19159 if { (ac_try="$ac_compile"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_compile") 2>conftest.er1
19167 grep -v '^ *+' conftest.er1 >conftest.err
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } && {
19172 test -z "$ac_c_werror_flag" ||
19173 test ! -s conftest.err
19174 } && test -s conftest.$ac_objext; then
19175 gt_cv_c_wchar_t=yes
19177 echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19186 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19187 if test $gt_cv_c_wchar_t = yes; then
19189 cat >>confdefs.h <<\_ACEOF
19190 #define HAVE_WCHAR_T 1
19196 { echo "$as_me:$LINENO: checking for wint_t" >&5
19197 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19198 if test "${gt_cv_c_wint_t+set}" = set; then
19199 echo $ECHO_N "(cached) $ECHO_C" >&6
19201 cat >conftest.$ac_ext <<_ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19208 wint_t foo = (wchar_t)'\0';
19217 rm -f conftest.$ac_objext
19218 if { (ac_try="$ac_compile"
19219 case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_compile") 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } && {
19231 test -z "$ac_c_werror_flag" ||
19232 test ! -s conftest.err
19233 } && test -s conftest.$ac_objext; then
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19244 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19245 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19246 if test $gt_cv_c_wint_t = yes; then
19248 cat >>confdefs.h <<\_ACEOF
19249 #define HAVE_WINT_T 1
19255 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19256 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19257 if test "${gl_cv_header_inttypes_h+set}" = set; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19266 #include <sys/types.h>
19267 #include <inttypes.h>
19271 uintmax_t i = (uintmax_t) -1;
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19285 grep -v '^ *+' conftest.er1 >conftest.err
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_c_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest.$ac_objext; then
19293 gl_cv_header_inttypes_h=yes
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 gl_cv_header_inttypes_h=no
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19304 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19305 if test $gl_cv_header_inttypes_h = yes; then
19307 cat >>confdefs.h <<_ACEOF
19308 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19314 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19315 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19316 if test "${gl_cv_header_stdint_h+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 #include <sys/types.h>
19326 #include <stdint.h>
19330 uintmax_t i = (uintmax_t) -1;
19335 rm -f conftest.$ac_objext
19336 if { (ac_try="$ac_compile"
19337 case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_compile") 2>conftest.er1
19344 grep -v '^ *+' conftest.er1 >conftest.err
19346 cat conftest.err >&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } && {
19349 test -z "$ac_c_werror_flag" ||
19350 test ! -s conftest.err
19351 } && test -s conftest.$ac_objext; then
19352 gl_cv_header_stdint_h=yes
19354 echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19357 gl_cv_header_stdint_h=no
19360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19363 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19364 if test $gl_cv_header_stdint_h = yes; then
19366 cat >>confdefs.h <<_ACEOF
19367 #define HAVE_STDINT_H_WITH_UINTMAX 1
19375 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19376 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19377 if test "${gt_cv_c_intmax_t+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19387 #include <stddef.h>
19388 #include <stdlib.h>
19389 #if HAVE_STDINT_H_WITH_UINTMAX
19390 #include <stdint.h>
19392 #if HAVE_INTTYPES_H_WITH_UINTMAX
19393 #include <inttypes.h>
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_compile") 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest.$ac_objext; then
19421 gt_cv_c_intmax_t=yes
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 gt_cv_c_intmax_t=no
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19432 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19433 if test $gt_cv_c_intmax_t = yes; then
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE_INTMAX_T 1
19443 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19444 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19445 if test "${gt_cv_func_printf_posix+set}" = set; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 if test "$cross_compiling" = yes; then
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19458 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464 $EGREP "notposix" >/dev/null 2>&1; then
19465 gt_cv_func_printf_posix="guessing no"
19467 gt_cv_func_printf_posix="guessing yes"
19473 cat >conftest.$ac_ext <<_ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19481 #include <string.h>
19482 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19483 dollar expansion (possibly an autoconf bug). */
19484 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19485 static char buf[100];
19488 sprintf (buf, format, 33, 55);
19489 return (strcmp (buf, "55 33") != 0);
19492 rm -f conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_link") 2>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19503 { (case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_try") 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 gt_cv_func_printf_posix=yes
19514 echo "$as_me: program exited with status $ac_status" >&5
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 ( exit $ac_status )
19519 gt_cv_func_printf_posix=no
19521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19527 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19528 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19529 case $gt_cv_func_printf_posix in
19532 cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_POSIX_PRINTF 1
19539 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19540 # for constant arguments. Useless!
19541 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19542 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19543 if test "${ac_cv_working_alloca_h+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 #include <alloca.h>
19556 char *p = (char *) alloca (2 * sizeof (int));
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (ac_try="$ac_link"
19564 case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_link") 2>conftest.er1
19571 grep -v '^ *+' conftest.er1 >conftest.err
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } && {
19576 test -z "$ac_c_werror_flag" ||
19577 test ! -s conftest.err
19578 } && test -s conftest$ac_exeext &&
19579 $as_test_x conftest$ac_exeext; then
19580 ac_cv_working_alloca_h=yes
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ac_cv_working_alloca_h=no
19588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19589 conftest$ac_exeext conftest.$ac_ext
19591 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19592 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19593 if test $ac_cv_working_alloca_h = yes; then
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE_ALLOCA_H 1
19601 { echo "$as_me:$LINENO: checking for alloca" >&5
19602 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19603 if test "${ac_cv_func_alloca_works+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19613 # define alloca __builtin_alloca
19616 # include <malloc.h>
19617 # define alloca _alloca
19619 # ifdef HAVE_ALLOCA_H
19620 # include <alloca.h>
19625 # ifndef alloca /* predefined by HP cc +Olibcalls */
19636 char *p = (char *) alloca (1);
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_link") 2>conftest.er1
19651 grep -v '^ *+' conftest.er1 >conftest.err
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } && {
19656 test -z "$ac_c_werror_flag" ||
19657 test ! -s conftest.err
19658 } && test -s conftest$ac_exeext &&
19659 $as_test_x conftest$ac_exeext; then
19660 ac_cv_func_alloca_works=yes
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_cv_func_alloca_works=no
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669 conftest$ac_exeext conftest.$ac_ext
19671 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19672 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19674 if test $ac_cv_func_alloca_works = yes; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_ALLOCA 1
19681 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19682 # that cause trouble. Some versions do not even contain alloca or
19683 # contain a buggy version. If you still want to use their alloca,
19684 # use ar to extract alloca.o from them instead of compiling alloca.c.
19686 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19688 cat >>confdefs.h <<\_ACEOF
19693 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19694 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19695 if test "${ac_cv_os_cray+set}" = set; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 #if defined CRAY && ! defined CRAY2
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712 $EGREP "webecray" >/dev/null 2>&1; then
19720 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19721 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19722 if test $ac_cv_os_cray = yes; then
19723 for ac_func in _getb67 GETB67 getb67; do
19724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19738 #define $ac_func innocuous_$ac_func
19740 /* System header to define __stub macros and hopefully few prototypes,
19741 which can conflict with char $ac_func (); below.
19742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19743 <limits.h> exists even on freestanding compilers. */
19746 # include <limits.h>
19748 # include <assert.h>
19753 /* Override any GCC internal prototype to avoid an error.
19754 Use char because int might match the return type of a GCC
19755 builtin and then its argument prototype would still apply. */
19760 /* The GNU C library defines this for functions which it implements
19761 to always fail with ENOSYS. Some functions are actually named
19762 something starting with __ and the normal name is an alias. */
19763 #if defined __stub_$ac_func || defined __stub___$ac_func
19770 return $ac_func ();
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (ac_try="$ac_link"
19777 case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_link") 2>conftest.er1
19784 grep -v '^ *+' conftest.er1 >conftest.err
19786 cat conftest.err >&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } && {
19789 test -z "$ac_c_werror_flag" ||
19790 test ! -s conftest.err
19791 } && test -s conftest$ac_exeext &&
19792 $as_test_x conftest$ac_exeext; then
19793 eval "$as_ac_var=yes"
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 eval "$as_ac_var=no"
19801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19802 conftest$ac_exeext conftest.$ac_ext
19804 ac_res=`eval echo '${'$as_ac_var'}'`
19805 { echo "$as_me:$LINENO: result: $ac_res" >&5
19806 echo "${ECHO_T}$ac_res" >&6; }
19807 if test `eval echo '${'$as_ac_var'}'` = yes; then
19809 cat >>confdefs.h <<_ACEOF
19810 #define CRAY_STACKSEG_END $ac_func
19819 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19820 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19821 if test "${ac_cv_c_stack_direction+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 if test "$cross_compiling" = yes; then
19825 ac_cv_c_stack_direction=0
19827 cat >conftest.$ac_ext <<_ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19833 $ac_includes_default
19835 find_stack_direction ()
19837 static char *addr = 0;
19842 return find_stack_direction ();
19845 return (&dummy > addr) ? 1 : -1;
19851 return find_stack_direction () < 0;
19854 rm -f conftest$ac_exeext
19855 if { (ac_try="$ac_link"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_link") 2>&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19865 { (case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_try") 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19874 ac_cv_c_stack_direction=1
19876 echo "$as_me: program exited with status $ac_status" >&5
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ( exit $ac_status )
19881 ac_cv_c_stack_direction=-1
19883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19888 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19889 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19891 cat >>confdefs.h <<_ACEOF
19892 #define STACK_DIRECTION $ac_cv_c_stack_direction
19900 for ac_header in stdlib.h unistd.h
19902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 ac_res=`eval echo '${'$as_ac_Header'}'`
19910 { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19913 # Is the header compilable?
19914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 $ac_includes_default
19923 #include <$ac_header>
19925 rm -f conftest.$ac_objext
19926 if { (ac_try="$ac_compile"
19927 case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_compile") 2>conftest.er1
19934 grep -v '^ *+' conftest.er1 >conftest.err
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } && {
19939 test -z "$ac_c_werror_flag" ||
19940 test ! -s conftest.err
19941 } && test -s conftest.$ac_objext; then
19942 ac_header_compiler=yes
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_header_compiler=no
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6; }
19954 # Is the header present?
19955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <$ac_header>
19965 if { (ac_try="$ac_cpp conftest.$ac_ext"
19966 case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19973 grep -v '^ *+' conftest.er1 >conftest.err
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } >/dev/null && {
19978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19979 test ! -s conftest.err
19981 ac_header_preproc=yes
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_header_preproc=no
19989 rm -f conftest.err conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19991 echo "${ECHO_T}$ac_header_preproc" >&6; }
19993 # So? What about this header?
19994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20000 ac_header_preproc=yes
20003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 eval "$as_ac_Header=\$ac_header_preproc"
20025 ac_res=`eval echo '${'$as_ac_Header'}'`
20026 { echo "$as_me:$LINENO: result: $ac_res" >&5
20027 echo "${ECHO_T}$ac_res" >&6; }
20030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20031 cat >>confdefs.h <<_ACEOF
20032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20040 for ac_func in getpagesize
20042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20056 #define $ac_func innocuous_$ac_func
20058 /* System header to define __stub macros and hopefully few prototypes,
20059 which can conflict with char $ac_func (); below.
20060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20061 <limits.h> exists even on freestanding compilers. */
20064 # include <limits.h>
20066 # include <assert.h>
20071 /* Override any GCC internal prototype to avoid an error.
20072 Use char because int might match the return type of a GCC
20073 builtin and then its argument prototype would still apply. */
20078 /* The GNU C library defines this for functions which it implements
20079 to always fail with ENOSYS. Some functions are actually named
20080 something starting with __ and the normal name is an alias. */
20081 #if defined __stub_$ac_func || defined __stub___$ac_func
20088 return $ac_func ();
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_link") 2>conftest.er1
20102 grep -v '^ *+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } && {
20107 test -z "$ac_c_werror_flag" ||
20108 test ! -s conftest.err
20109 } && test -s conftest$ac_exeext &&
20110 $as_test_x conftest$ac_exeext; then
20111 eval "$as_ac_var=yes"
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 eval "$as_ac_var=no"
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120 conftest$ac_exeext conftest.$ac_ext
20122 ac_res=`eval echo '${'$as_ac_var'}'`
20123 { echo "$as_me:$LINENO: result: $ac_res" >&5
20124 echo "${ECHO_T}$ac_res" >&6; }
20125 if test `eval echo '${'$as_ac_var'}'` = yes; then
20126 cat >>confdefs.h <<_ACEOF
20127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20133 { echo "$as_me:$LINENO: checking for working mmap" >&5
20134 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20135 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 if test "$cross_compiling" = yes; then
20139 ac_cv_func_mmap_fixed_mapped=no
20141 cat >conftest.$ac_ext <<_ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 $ac_includes_default
20148 /* malloc might have been renamed as rpl_malloc. */
20151 /* Thanks to Mike Haertel and Jim Avera for this test.
20152 Here is a matrix of mmap possibilities:
20153 mmap private not fixed
20154 mmap private fixed at somewhere currently unmapped
20155 mmap private fixed at somewhere already mapped
20156 mmap shared not fixed
20157 mmap shared fixed at somewhere currently unmapped
20158 mmap shared fixed at somewhere already mapped
20159 For private mappings, we should verify that changes cannot be read()
20160 back from the file, nor mmap's back from the file at a different
20161 address. (There have been systems where private was not correctly
20162 implemented like the infamous i386 svr4.0, and systems where the
20163 VM page cache was not coherent with the file system buffer cache
20164 like early versions of FreeBSD and possibly contemporary NetBSD.)
20165 For shared mappings, we should conversely verify that changes get
20166 propagated back to all the places they're supposed to be.
20168 Grep wants private fixed already mapped.
20169 The main things grep needs to know about mmap are:
20170 * does it exist and is it safe to write into the mmap'd area
20171 * how to use it (BSD variants) */
20174 #include <sys/mman.h>
20176 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20180 /* This mess was copied from the GNU getpagesize.h. */
20181 #ifndef HAVE_GETPAGESIZE
20182 /* Assume that all systems that can run configure have sys/param.h. */
20183 # ifndef HAVE_SYS_PARAM_H
20184 # define HAVE_SYS_PARAM_H 1
20187 # ifdef _SC_PAGESIZE
20188 # define getpagesize() sysconf(_SC_PAGESIZE)
20189 # else /* no _SC_PAGESIZE */
20190 # ifdef HAVE_SYS_PARAM_H
20191 # include <sys/param.h>
20192 # ifdef EXEC_PAGESIZE
20193 # define getpagesize() EXEC_PAGESIZE
20194 # else /* no EXEC_PAGESIZE */
20196 # define getpagesize() NBPG * CLSIZE
20199 # endif /* no CLSIZE */
20200 # else /* no NBPG */
20202 # define getpagesize() NBPC
20203 # else /* no NBPC */
20205 # define getpagesize() PAGESIZE
20206 # endif /* PAGESIZE */
20207 # endif /* no NBPC */
20208 # endif /* no NBPG */
20209 # endif /* no EXEC_PAGESIZE */
20210 # else /* no HAVE_SYS_PARAM_H */
20211 # define getpagesize() 8192 /* punt totally */
20212 # endif /* no HAVE_SYS_PARAM_H */
20213 # endif /* no _SC_PAGESIZE */
20215 #endif /* no HAVE_GETPAGESIZE */
20220 char *data, *data2, *data3;
20224 pagesize = getpagesize ();
20226 /* First, make a file with some known garbage in it. */
20227 data = (char *) malloc (pagesize);
20230 for (i = 0; i < pagesize; ++i)
20231 *(data + i) = rand ();
20233 fd = creat ("conftest.mmap", 0600);
20236 if (write (fd, data, pagesize) != pagesize)
20240 /* Next, try to mmap the file at a fixed address which already has
20241 something else allocated at it. If we can, also make sure that
20242 we see the same garbage. */
20243 fd = open ("conftest.mmap", O_RDWR);
20246 data2 = (char *) malloc (2 * pagesize);
20249 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20250 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20251 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20253 for (i = 0; i < pagesize; ++i)
20254 if (*(data + i) != *(data2 + i))
20257 /* Finally, make sure that changes to the mapped area do not
20258 percolate back to the file as seen by read(). (This is a bug on
20259 some variants of i386 svr4.0.) */
20260 for (i = 0; i < pagesize; ++i)
20261 *(data2 + i) = *(data2 + i) + 1;
20262 data3 = (char *) malloc (pagesize);
20265 if (read (fd, data3, pagesize) != pagesize)
20267 for (i = 0; i < pagesize; ++i)
20268 if (*(data + i) != *(data3 + i))
20274 rm -f conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_func_mmap_fixed_mapped=yes
20296 echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ( exit $ac_status )
20301 ac_cv_func_mmap_fixed_mapped=no
20303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20308 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_MMAP 1
20317 rm -f conftest.mmap
20320 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20321 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20322 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 cat >conftest.$ac_ext <<_ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20332 #include <features.h>
20333 #ifdef __GNU_LIBRARY__
20334 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20341 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20342 ac_cv_gnu_library_2_1=yes
20344 ac_cv_gnu_library_2_1=no
20351 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20352 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20354 GLIBC21="$ac_cv_gnu_library_2_1"
20359 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20360 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20361 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 if test "$cross_compiling" = yes; then
20367 # Guess based on the CPU.
20368 case "$host_cpu" in
20369 alpha* | i3456786 | m68k | s390*)
20370 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20372 gt_cv_int_divbyzero_sigfpe="guessing no";;
20376 cat >conftest.$ac_ext <<_ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20383 #include <stdlib.h>
20384 #include <signal.h>
20388 sigfpe_handler (int sig)
20390 sigfpe_handler (sig) int sig;
20393 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20394 exit (sig != SIGFPE);
20404 signal (SIGFPE, sigfpe_handler);
20405 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20406 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20407 signal (SIGTRAP, sigfpe_handler);
20409 /* Linux/SPARC yields signal SIGILL. */
20410 #if defined (__sparc__) && defined (__linux__)
20411 signal (SIGILL, sigfpe_handler);
20420 rm -f conftest$ac_exeext
20421 if { (ac_try="$ac_link"
20422 case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_link") 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20431 { (case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_try") 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; }; then
20440 gt_cv_int_divbyzero_sigfpe=yes
20442 echo "$as_me: program exited with status $ac_status" >&5
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ( exit $ac_status )
20447 gt_cv_int_divbyzero_sigfpe=no
20449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20455 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20456 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20457 case "$gt_cv_int_divbyzero_sigfpe" in
20462 cat >>confdefs.h <<_ACEOF
20463 #define INTDIV0_RAISES_SIGFPE $value
20468 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20469 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20470 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 unsigned long long ull = 1ULL; int i = 63;
20483 unsigned long long ullmax = (unsigned long long) -1;
20484 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_link") 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest$ac_exeext &&
20506 $as_test_x conftest$ac_exeext; then
20507 ac_cv_type_unsigned_long_long=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_type_unsigned_long_long=no
20515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20516 conftest$ac_exeext conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20519 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20520 if test $ac_cv_type_unsigned_long_long = yes; then
20522 cat >>confdefs.h <<\_ACEOF
20523 #define HAVE_UNSIGNED_LONG_LONG 1
20531 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20533 test $ac_cv_type_unsigned_long_long = yes \
20534 && ac_type='unsigned long long' \
20535 || ac_type='unsigned long'
20537 cat >>confdefs.h <<_ACEOF
20538 #define uintmax_t $ac_type
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_UINTMAX_T 1
20550 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20551 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20552 if test "${gt_cv_header_inttypes_h+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <sys/types.h>
20563 #include <inttypes.h>
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_compile") 2>conftest.er1
20581 grep -v '^ *+' conftest.er1 >conftest.err
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } && {
20586 test -z "$ac_c_werror_flag" ||
20587 test ! -s conftest.err
20588 } && test -s conftest.$ac_objext; then
20589 gt_cv_header_inttypes_h=yes
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 gt_cv_header_inttypes_h=no
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20601 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20602 if test $gt_cv_header_inttypes_h = yes; then
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_INTTYPES_H 1
20612 if test $gt_cv_header_inttypes_h = yes; then
20613 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20614 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20615 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 #include <inttypes.h>
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 gt_cv_inttypes_pri_broken=no
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 gt_cv_inttypes_pri_broken=yes
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20667 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20669 if test "$gt_cv_inttypes_pri_broken" = yes; then
20671 cat >>confdefs.h <<_ACEOF
20672 #define PRI_MACROS_BROKEN 1
20679 for ac_header in stdint.h
20681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 ac_res=`eval echo '${'$as_ac_Header'}'`
20689 { echo "$as_me:$LINENO: result: $ac_res" >&5
20690 echo "${ECHO_T}$ac_res" >&6; }
20692 # Is the header compilable?
20693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20695 cat >conftest.$ac_ext <<_ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20701 $ac_includes_default
20702 #include <$ac_header>
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_compile") 2>conftest.er1
20713 grep -v '^ *+' conftest.er1 >conftest.err
20715 cat conftest.err >&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && {
20718 test -z "$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20720 } && test -s conftest.$ac_objext; then
20721 ac_header_compiler=yes
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 ac_header_compiler=no
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20731 echo "${ECHO_T}$ac_header_compiler" >&6; }
20733 # Is the header present?
20734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20736 cat >conftest.$ac_ext <<_ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20742 #include <$ac_header>
20744 if { (ac_try="$ac_cpp conftest.$ac_ext"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20752 grep -v '^ *+' conftest.er1 >conftest.err
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } >/dev/null && {
20757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20760 ac_header_preproc=yes
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_header_preproc=no
20768 rm -f conftest.err conftest.$ac_ext
20769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20770 echo "${ECHO_T}$ac_header_preproc" >&6; }
20772 # So? What about this header?
20773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20779 ac_header_preproc=yes
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20802 eval "$as_ac_Header=\$ac_header_preproc"
20804 ac_res=`eval echo '${'$as_ac_Header'}'`
20805 { echo "$as_me:$LINENO: result: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20810 cat >>confdefs.h <<_ACEOF
20811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20818 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20819 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20828 #include <limits.h>
20830 #include <stdint.h>
20837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20838 $EGREP "Found it" >/dev/null 2>&1; then
20843 if test -z "$result"; then
20844 if test "$cross_compiling" = yes; then
20845 # Depending upon the size, compute the lo and hi bounds.
20846 cat >conftest.$ac_ext <<_ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20852 #include <stddef.h>
20856 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_compile") 2>conftest.er1
20872 grep -v '^ *+' conftest.er1 >conftest.err
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest.$ac_objext; then
20882 cat >conftest.$ac_ext <<_ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 #include <stddef.h>
20892 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_compile") 2>conftest.er1
20908 grep -v '^ *+' conftest.er1 >conftest.err
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } && {
20913 test -z "$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20915 } && test -s conftest.$ac_objext; then
20916 ac_hi=$ac_mid; break
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20921 ac_lo=`expr $ac_mid + 1`
20922 if test $ac_lo -le $ac_mid; then
20926 ac_mid=`expr 2 '*' $ac_mid + 1`
20929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 #include <stddef.h>
20945 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_compile") 2>conftest.er1
20961 grep -v '^ *+' conftest.er1 >conftest.err
20963 cat conftest.err >&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } && {
20966 test -z "$ac_c_werror_flag" ||
20967 test ! -s conftest.err
20968 } && test -s conftest.$ac_objext; then
20971 cat >conftest.$ac_ext <<_ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 #include <stddef.h>
20981 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_lo=$ac_mid; break
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_hi=`expr '(' $ac_mid ')' - 1`
21011 if test $ac_mid -le $ac_hi; then
21015 ac_mid=`expr 2 '*' $ac_mid`
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 # Binary search between lo and hi bounds.
21032 while test "x$ac_lo" != "x$ac_hi"; do
21033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21034 cat >conftest.$ac_ext <<_ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21040 #include <stddef.h>
21044 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_lo=`expr '(' $ac_mid ')' + 1`
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 ?*) res_hi=$ac_lo;;
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <stddef.h>
21090 static long int longval () { return ~(size_t)0 / 10; }
21091 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21093 #include <stdlib.h>
21098 FILE *f = fopen ("conftest.val", "w");
21101 if ((~(size_t)0 / 10) < 0)
21103 long int i = longval ();
21104 if (i != (~(size_t)0 / 10))
21106 fprintf (f, "%ld\n", i);
21110 unsigned long int i = ulongval ();
21111 if (i != (~(size_t)0 / 10))
21113 fprintf (f, "%lu\n", i);
21115 return ferror (f) || fclose (f) != 0;
21121 rm -f conftest$ac_exeext
21122 if { (ac_try="$ac_link"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_link") 2>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21132 { (case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_try") 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 res_hi=`cat conftest.val`
21143 echo "$as_me: program exited with status $ac_status" >&5
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ( exit $ac_status )
21150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21154 if test "$cross_compiling" = yes; then
21155 # Depending upon the size, compute the lo and hi bounds.
21156 cat >conftest.$ac_ext <<_ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <stddef.h>
21166 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_compile") 2>conftest.er1
21182 grep -v '^ *+' conftest.er1 >conftest.err
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } && {
21187 test -z "$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21189 } && test -s conftest.$ac_objext; then
21192 cat >conftest.$ac_ext <<_ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21198 #include <stddef.h>
21202 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21218 grep -v '^ *+' conftest.er1 >conftest.err
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
21226 ac_hi=$ac_mid; break
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21231 ac_lo=`expr $ac_mid + 1`
21232 if test $ac_lo -le $ac_mid; then
21236 ac_mid=`expr 2 '*' $ac_mid + 1`
21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242 echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 #include <stddef.h>
21255 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269 (eval "$ac_compile") 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && {
21276 test -z "$ac_c_werror_flag" ||
21277 test ! -s conftest.err
21278 } && test -s conftest.$ac_objext; then
21281 cat >conftest.$ac_ext <<_ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 #include <stddef.h>
21291 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest.$ac_objext; then
21315 ac_lo=$ac_mid; break
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_hi=`expr '(' $ac_mid ')' - 1`
21321 if test $ac_mid -le $ac_hi; then
21325 ac_mid=`expr 2 '*' $ac_mid`
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 # Binary search between lo and hi bounds.
21342 while test "x$ac_lo" != "x$ac_hi"; do
21343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #include <stddef.h>
21354 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_compile") 2>conftest.er1
21370 grep -v '^ *+' conftest.er1 >conftest.err
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest.$ac_objext; then
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_lo=`expr '(' $ac_mid ')' + 1`
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389 ?*) res_lo=$ac_lo;;
21393 cat >conftest.$ac_ext <<_ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <stddef.h>
21400 static long int longval () { return ~(size_t)0 % 10; }
21401 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21403 #include <stdlib.h>
21408 FILE *f = fopen ("conftest.val", "w");
21411 if ((~(size_t)0 % 10) < 0)
21413 long int i = longval ();
21414 if (i != (~(size_t)0 % 10))
21416 fprintf (f, "%ld\n", i);
21420 unsigned long int i = ulongval ();
21421 if (i != (~(size_t)0 % 10))
21423 fprintf (f, "%lu\n", i);
21425 return ferror (f) || fclose (f) != 0;
21431 rm -f conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_link") 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21442 { (case "(($ac_try" in
21443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444 *) ac_try_echo=$ac_try;;
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447 (eval "$ac_try") 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 res_lo=`cat conftest.val`
21453 echo "$as_me: program exited with status $ac_status" >&5
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ( exit $ac_status )
21460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21464 if test "$cross_compiling" = yes; then
21465 # Depending upon the size, compute the lo and hi bounds.
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <stddef.h>
21476 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21492 grep -v '^ *+' conftest.er1 >conftest.err
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.$ac_objext; then
21502 cat >conftest.$ac_ext <<_ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 #include <stddef.h>
21512 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523 *) ac_try_echo=$ac_try;;
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526 (eval "$ac_compile") 2>conftest.er1
21528 grep -v '^ *+' conftest.er1 >conftest.err
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } && {
21533 test -z "$ac_c_werror_flag" ||
21534 test ! -s conftest.err
21535 } && test -s conftest.$ac_objext; then
21536 ac_hi=$ac_mid; break
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21541 ac_lo=`expr $ac_mid + 1`
21542 if test $ac_lo -le $ac_mid; then
21546 ac_mid=`expr 2 '*' $ac_mid + 1`
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 #include <stddef.h>
21565 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 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 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_compile") 2>conftest.er1
21617 grep -v '^ *+' conftest.er1 >conftest.err
21619 cat conftest.err >&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && {
21622 test -z "$ac_c_werror_flag" ||
21623 test ! -s conftest.err
21624 } && test -s conftest.$ac_objext; then
21625 ac_lo=$ac_mid; break
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21630 ac_hi=`expr '(' $ac_mid ')' - 1`
21631 if test $ac_mid -le $ac_hi; then
21635 ac_mid=`expr 2 '*' $ac_mid`
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 # Binary search between lo and hi bounds.
21652 while test "x$ac_lo" != "x$ac_hi"; do
21653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 #include <stddef.h>
21664 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_compile") 2>conftest.er1
21680 grep -v '^ *+' conftest.er1 >conftest.err
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } && {
21685 test -z "$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21687 } && test -s conftest.$ac_objext; then
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_lo=`expr '(' $ac_mid ')' + 1`
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699 ?*) fits_in_uint=$ac_lo;;
21703 cat >conftest.$ac_ext <<_ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 #include <stddef.h>
21710 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21711 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21713 #include <stdlib.h>
21718 FILE *f = fopen ("conftest.val", "w");
21721 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21723 long int i = longval ();
21724 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21726 fprintf (f, "%ld\n", i);
21730 unsigned long int i = ulongval ();
21731 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21733 fprintf (f, "%lu\n", i);
21735 return ferror (f) || fclose (f) != 0;
21741 rm -f conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_link") 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21752 { (case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757 (eval "$ac_try") 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 fits_in_uint=`cat conftest.val`
21763 echo "$as_me: program exited with status $ac_status" >&5
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21767 ( exit $ac_status )
21770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21774 if test "$fits_in_uint" = 1; then
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781 #include <stddef.h>
21783 extern unsigned long foo;
21793 rm -f conftest.$ac_objext
21794 if { (ac_try="$ac_compile"
21795 case "(($ac_try" in
21796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797 *) ac_try_echo=$ac_try;;
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800 (eval "$ac_compile") 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } && {
21807 test -z "$ac_c_werror_flag" ||
21808 test ! -s conftest.err
21809 } && test -s conftest.$ac_objext; then
21812 echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 if test -z "$result"; then
21821 if test "$fits_in_uint" = 1; then
21822 result="$res_hi$res_lo"U
21824 result="$res_hi$res_lo"UL
21827 result='~(size_t)0'
21830 { echo "$as_me:$LINENO: result: $result" >&5
21831 echo "${ECHO_T}$result" >&6; }
21832 if test "$result" != yes; then
21834 cat >>confdefs.h <<_ACEOF
21835 #define SIZE_MAX $result
21844 for ac_header in stdint.h
21846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 ac_res=`eval echo '${'$as_ac_Header'}'`
21854 { echo "$as_me:$LINENO: result: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21857 # Is the header compilable?
21858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 $ac_includes_default
21867 #include <$ac_header>
21869 rm -f conftest.$ac_objext
21870 if { (ac_try="$ac_compile"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_compile") 2>conftest.er1
21878 grep -v '^ *+' conftest.er1 >conftest.err
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } && {
21883 test -z "$ac_c_werror_flag" ||
21884 test ! -s conftest.err
21885 } && test -s conftest.$ac_objext; then
21886 ac_header_compiler=yes
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 ac_header_compiler=no
21894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21896 echo "${ECHO_T}$ac_header_compiler" >&6; }
21898 # Is the header present?
21899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21901 cat >conftest.$ac_ext <<_ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 #include <$ac_header>
21909 if { (ac_try="$ac_cpp conftest.$ac_ext"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } >/dev/null && {
21922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21925 ac_header_preproc=yes
21927 echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ac_header_preproc=no
21933 rm -f conftest.err conftest.$ac_ext
21934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21935 echo "${ECHO_T}$ac_header_preproc" >&6; }
21937 # So? What about this header?
21938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21944 ac_header_preproc=yes
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21954 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 eval "$as_ac_Header=\$ac_header_preproc"
21969 ac_res=`eval echo '${'$as_ac_Header'}'`
21970 { echo "$as_me:$LINENO: result: $ac_res" >&5
21971 echo "${ECHO_T}$ac_res" >&6; }
21974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21975 cat >>confdefs.h <<_ACEOF
21976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21990 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21991 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21992 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22002 typedef ptrdiff_t ac__type_new_;
22006 if ((ac__type_new_ *) 0)
22008 if (sizeof (ac__type_new_))
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_compile") 2>conftest.er1
22023 grep -v '^ *+' conftest.er1 >conftest.err
22025 cat conftest.err >&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && {
22028 test -z "$ac_c_werror_flag" ||
22029 test ! -s conftest.err
22030 } && test -s conftest.$ac_objext; then
22031 ac_cv_type_ptrdiff_t=yes
22033 echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22036 ac_cv_type_ptrdiff_t=no
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22041 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22042 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22043 if test $ac_cv_type_ptrdiff_t = yes; then
22047 cat >>confdefs.h <<\_ACEOF
22048 #define ptrdiff_t long
22064 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22065 stdlib.h string.h unistd.h sys/param.h
22067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 ac_res=`eval echo '${'$as_ac_Header'}'`
22075 { echo "$as_me:$LINENO: result: $ac_res" >&5
22076 echo "${ECHO_T}$ac_res" >&6; }
22078 # Is the header compilable?
22079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22081 cat >conftest.$ac_ext <<_ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22087 $ac_includes_default
22088 #include <$ac_header>
22090 rm -f conftest.$ac_objext
22091 if { (ac_try="$ac_compile"
22092 case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097 (eval "$ac_compile") 2>conftest.er1
22099 grep -v '^ *+' conftest.er1 >conftest.err
22101 cat conftest.err >&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && {
22104 test -z "$ac_c_werror_flag" ||
22105 test ! -s conftest.err
22106 } && test -s conftest.$ac_objext; then
22107 ac_header_compiler=yes
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 ac_header_compiler=no
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22117 echo "${ECHO_T}$ac_header_compiler" >&6; }
22119 # Is the header present?
22120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 #include <$ac_header>
22130 if { (ac_try="$ac_cpp conftest.$ac_ext"
22131 case "(($ac_try" in
22132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22138 grep -v '^ *+' conftest.er1 >conftest.err
22140 cat conftest.err >&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } >/dev/null && {
22143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22144 test ! -s conftest.err
22146 ac_header_preproc=yes
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 ac_header_preproc=no
22154 rm -f conftest.err conftest.$ac_ext
22155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22156 echo "${ECHO_T}$ac_header_preproc" >&6; }
22158 # So? What about this header?
22159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22165 ac_header_preproc=yes
22168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 eval "$as_ac_Header=\$ac_header_preproc"
22190 ac_res=`eval echo '${'$as_ac_Header'}'`
22191 { echo "$as_me:$LINENO: result: $ac_res" >&5
22192 echo "${ECHO_T}$ac_res" >&6; }
22195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22196 cat >>confdefs.h <<_ACEOF
22197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22227 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22228 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22229 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22238 cat >conftest.$ac_ext <<_ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22246 #define $ac_func innocuous_$ac_func
22248 /* System header to define __stub macros and hopefully few prototypes,
22249 which can conflict with char $ac_func (); below.
22250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22251 <limits.h> exists even on freestanding compilers. */
22254 # include <limits.h>
22256 # include <assert.h>
22261 /* Override any GCC internal prototype to avoid an error.
22262 Use char because int might match the return type of a GCC
22263 builtin and then its argument prototype would still apply. */
22268 /* The GNU C library defines this for functions which it implements
22269 to always fail with ENOSYS. Some functions are actually named
22270 something starting with __ and the normal name is an alias. */
22271 #if defined __stub_$ac_func || defined __stub___$ac_func
22278 return $ac_func ();
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_link") 2>conftest.er1
22292 grep -v '^ *+' conftest.er1 >conftest.err
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } && {
22297 test -z "$ac_c_werror_flag" ||
22298 test ! -s conftest.err
22299 } && test -s conftest$ac_exeext &&
22300 $as_test_x conftest$ac_exeext; then
22301 eval "$as_ac_var=yes"
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22306 eval "$as_ac_var=no"
22309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22310 conftest$ac_exeext conftest.$ac_ext
22312 ac_res=`eval echo '${'$as_ac_var'}'`
22313 { echo "$as_me:$LINENO: result: $ac_res" >&5
22314 echo "${ECHO_T}$ac_res" >&6; }
22315 if test `eval echo '${'$as_ac_var'}'` = yes; then
22316 cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22325 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22326 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22327 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 cat >conftest.$ac_ext <<_ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22342 char *p = (char *) _snprintf;
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_compile") 2>conftest.er1
22358 grep -v '^ *+' conftest.er1 >conftest.err
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest.$ac_objext; then
22366 ac_cv_have_decl__snprintf=yes
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22371 ac_cv_have_decl__snprintf=no
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22377 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22378 if test $ac_cv_have_decl__snprintf = yes; then
22384 cat >>confdefs.h <<_ACEOF
22385 #define HAVE_DECL__SNPRINTF $gt_value
22390 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22391 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22392 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22407 char *p = (char *) _snwprintf;
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421 (eval "$ac_compile") 2>conftest.er1
22423 grep -v '^ *+' conftest.er1 >conftest.err
22425 cat conftest.err >&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } && {
22428 test -z "$ac_c_werror_flag" ||
22429 test ! -s conftest.err
22430 } && test -s conftest.$ac_objext; then
22431 ac_cv_have_decl__snwprintf=yes
22433 echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22436 ac_cv_have_decl__snwprintf=no
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22442 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22443 if test $ac_cv_have_decl__snwprintf = yes; then
22449 cat >>confdefs.h <<_ACEOF
22450 #define HAVE_DECL__SNWPRINTF $gt_value
22456 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22457 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22458 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22472 #ifndef feof_unlocked
22473 char *p = (char *) feof_unlocked;
22480 rm -f conftest.$ac_objext
22481 if { (ac_try="$ac_compile"
22482 case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487 (eval "$ac_compile") 2>conftest.er1
22489 grep -v '^ *+' conftest.er1 >conftest.err
22491 cat conftest.err >&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } && {
22494 test -z "$ac_c_werror_flag" ||
22495 test ! -s conftest.err
22496 } && test -s conftest.$ac_objext; then
22497 ac_cv_have_decl_feof_unlocked=yes
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ac_cv_have_decl_feof_unlocked=no
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22508 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22509 if test $ac_cv_have_decl_feof_unlocked = yes; then
22515 cat >>confdefs.h <<_ACEOF
22516 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22521 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22522 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22523 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 cat >conftest.$ac_ext <<_ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h. */
22537 #ifndef fgets_unlocked
22538 char *p = (char *) fgets_unlocked;
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_compile") 2>conftest.er1
22554 grep -v '^ *+' conftest.er1 >conftest.err
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } && {
22559 test -z "$ac_c_werror_flag" ||
22560 test ! -s conftest.err
22561 } && test -s conftest.$ac_objext; then
22562 ac_cv_have_decl_fgets_unlocked=yes
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 ac_cv_have_decl_fgets_unlocked=no
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22573 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22574 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22580 cat >>confdefs.h <<_ACEOF
22581 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22586 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22587 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22588 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22602 #ifndef getc_unlocked
22603 char *p = (char *) getc_unlocked;
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_compile") 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest.$ac_objext; then
22627 ac_cv_have_decl_getc_unlocked=yes
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 ac_cv_have_decl_getc_unlocked=no
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22638 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22639 if test $ac_cv_have_decl_getc_unlocked = yes; then
22645 cat >>confdefs.h <<_ACEOF
22646 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22651 case $gt_cv_func_printf_posix in
22652 *yes) HAVE_POSIX_PRINTF=1 ;;
22653 *) HAVE_POSIX_PRINTF=0 ;;
22656 if test "$ac_cv_func_asprintf" = yes; then
22662 if test "$ac_cv_func_snprintf" = yes; then
22668 if test "$ac_cv_func_wprintf" = yes; then
22680 am_save_CPPFLAGS="$CPPFLAGS"
22682 for element in $INCICONV; do
22684 for x in $CPPFLAGS; do
22686 acl_save_prefix="$prefix"
22687 prefix="$acl_final_prefix"
22688 acl_save_exec_prefix="$exec_prefix"
22689 exec_prefix="$acl_final_exec_prefix"
22691 exec_prefix="$acl_save_exec_prefix"
22692 prefix="$acl_save_prefix"
22694 if test "X$x" = "X$element"; then
22699 if test -z "$haveit"; then
22700 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22705 { echo "$as_me:$LINENO: checking for iconv" >&5
22706 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22707 if test "${am_cv_func_iconv+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22711 am_cv_func_iconv="no, consider installing GNU libiconv"
22713 cat >conftest.$ac_ext <<_ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 #include <stdlib.h>
22724 iconv_t cd = iconv_open("","");
22725 iconv(cd,NULL,NULL,NULL,NULL);
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_link") 2>conftest.er1
22740 grep -v '^ *+' conftest.er1 >conftest.err
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } && {
22745 test -z "$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 } && test -s conftest$ac_exeext &&
22748 $as_test_x conftest$ac_exeext; then
22749 am_cv_func_iconv=yes
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758 conftest$ac_exeext conftest.$ac_ext
22759 if test "$am_cv_func_iconv" != yes; then
22760 am_save_LIBS="$LIBS"
22761 LIBS="$LIBS $LIBICONV"
22762 cat >conftest.$ac_ext <<_ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 #include <stdlib.h>
22773 iconv_t cd = iconv_open("","");
22774 iconv(cd,NULL,NULL,NULL,NULL);
22780 rm -f conftest.$ac_objext conftest$ac_exeext
22781 if { (ac_try="$ac_link"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_link") 2>conftest.er1
22789 grep -v '^ *+' conftest.er1 >conftest.err
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest$ac_exeext &&
22797 $as_test_x conftest$ac_exeext; then
22798 am_cv_lib_iconv=yes
22799 am_cv_func_iconv=yes
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22808 conftest$ac_exeext conftest.$ac_ext
22809 LIBS="$am_save_LIBS"
22813 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22814 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22815 if test "$am_cv_func_iconv" = yes; then
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_ICONV 1
22822 if test "$am_cv_lib_iconv" = yes; then
22823 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22824 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22825 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22826 echo "${ECHO_T}$LIBICONV" >&6; }
22828 CPPFLAGS="$am_save_CPPFLAGS"
22835 if test "$am_cv_func_iconv" = yes; then
22836 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22837 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22838 if test "${am_cv_proto_iconv+set}" = set; then
22839 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 cat >conftest.$ac_ext <<_ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22849 #include <stdlib.h>
22855 #if defined(__STDC__) || defined(__cplusplus)
22856 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876 (eval "$ac_compile") 2>conftest.er1
22878 grep -v '^ *+' conftest.er1 >conftest.err
22880 cat conftest.err >&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } && {
22883 test -z "$ac_c_werror_flag" ||
22884 test ! -s conftest.err
22885 } && test -s conftest.$ac_objext; then
22886 am_cv_proto_iconv_arg1=""
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22891 am_cv_proto_iconv_arg1="const"
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895 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);"
22898 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22899 { echo "$as_me:$LINENO: result: ${ac_t:-
22900 }$am_cv_proto_iconv" >&5
22901 echo "${ECHO_T}${ac_t:-
22902 }$am_cv_proto_iconv" >&6; }
22904 cat >>confdefs.h <<_ACEOF
22905 #define ICONV_CONST $am_cv_proto_iconv_arg1
22911 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22912 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22913 if test "${am_cv_langinfo_codeset+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 #include <langinfo.h>
22926 char* cs = nl_langinfo(CODESET);
22931 rm -f conftest.$ac_objext conftest$ac_exeext
22932 if { (ac_try="$ac_link"
22933 case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_link") 2>conftest.er1
22940 grep -v '^ *+' conftest.er1 >conftest.err
22942 cat conftest.err >&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } && {
22945 test -z "$ac_c_werror_flag" ||
22946 test ! -s conftest.err
22947 } && test -s conftest$ac_exeext &&
22948 $as_test_x conftest$ac_exeext; then
22949 am_cv_langinfo_codeset=yes
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22954 am_cv_langinfo_codeset=no
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958 conftest$ac_exeext conftest.$ac_ext
22961 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22962 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22963 if test $am_cv_langinfo_codeset = yes; then
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_LANGINFO_CODESET 1
22971 if test $ac_cv_header_locale_h = yes; then
22973 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22974 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22975 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 #include <locale.h>
22993 rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (ac_try="$ac_link"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_link") 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest$ac_exeext &&
23010 $as_test_x conftest$ac_exeext; then
23011 gt_cv_val_LC_MESSAGES=yes
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23016 gt_cv_val_LC_MESSAGES=no
23019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23020 conftest$ac_exeext conftest.$ac_ext
23022 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23023 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23024 if test $gt_cv_val_LC_MESSAGES = yes; then
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_LC_MESSAGES 1
23034 if test -n "$INTL_MACOSX_LIBS"; then
23035 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23038 for ac_prog in bison
23040 # Extract the first word of "$ac_prog", so it can be a program name with args.
23041 set dummy $ac_prog; ac_word=$2
23042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23044 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 if test -n "$INTLBISON"; then
23048 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23051 for as_dir in $PATH
23054 test -z "$as_dir" && as_dir=.
23055 for ac_exec_ext in '' $ac_executable_extensions; do
23056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23057 ac_cv_prog_INTLBISON="$ac_prog"
23058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23067 INTLBISON=$ac_cv_prog_INTLBISON
23068 if test -n "$INTLBISON"; then
23069 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23070 echo "${ECHO_T}$INTLBISON" >&6; }
23072 { echo "$as_me:$LINENO: result: no" >&5
23073 echo "${ECHO_T}no" >&6; }
23077 test -n "$INTLBISON" && break
23080 if test -z "$INTLBISON"; then
23083 { echo "$as_me:$LINENO: checking version of bison" >&5
23084 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23085 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23086 case $ac_prog_version in
23087 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23088 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23089 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23090 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23092 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23093 echo "${ECHO_T}$ac_prog_version" >&6; }
23095 if test $ac_verc_fail = yes; then
23114 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23115 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23116 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23117 echo $ECHO_N "(cached) $ECHO_C" >&6
23119 gt_save_CPPFLAGS="$CPPFLAGS"
23120 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23121 gt_save_LIBS="$LIBS"
23122 LIBS="$LIBS -framework CoreFoundation"
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23129 #include <CFPreferences.h>
23133 CFPreferencesCopyAppValue(NULL, NULL)
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (ac_try="$ac_link"
23140 case "(($ac_try" in
23141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142 *) ac_try_echo=$ac_try;;
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145 (eval "$ac_link") 2>conftest.er1
23147 grep -v '^ *+' conftest.er1 >conftest.err
23149 cat conftest.err >&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } && {
23152 test -z "$ac_c_werror_flag" ||
23153 test ! -s conftest.err
23154 } && test -s conftest$ac_exeext &&
23155 $as_test_x conftest$ac_exeext; then
23156 gt_cv_func_CFPreferencesCopyAppValue=yes
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23161 gt_cv_func_CFPreferencesCopyAppValue=no
23164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23165 conftest$ac_exeext conftest.$ac_ext
23166 CPPFLAGS="$gt_save_CPPFLAGS"
23167 LIBS="$gt_save_LIBS"
23169 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23170 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23171 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23178 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23179 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23180 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23181 echo $ECHO_N "(cached) $ECHO_C" >&6
23183 gt_save_CPPFLAGS="$CPPFLAGS"
23184 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23185 gt_save_LIBS="$LIBS"
23186 LIBS="$LIBS -framework CoreFoundation"
23187 cat >conftest.$ac_ext <<_ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23193 #include <CFLocale.h>
23197 CFLocaleCopyCurrent();
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (ac_try="$ac_link"
23204 case "(($ac_try" in
23205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206 *) ac_try_echo=$ac_try;;
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209 (eval "$ac_link") 2>conftest.er1
23211 grep -v '^ *+' conftest.er1 >conftest.err
23213 cat conftest.err >&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); } && {
23216 test -z "$ac_c_werror_flag" ||
23217 test ! -s conftest.err
23218 } && test -s conftest$ac_exeext &&
23219 $as_test_x conftest$ac_exeext; then
23220 gt_cv_func_CFLocaleCopyCurrent=yes
23222 echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23225 gt_cv_func_CFLocaleCopyCurrent=no
23228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23229 conftest$ac_exeext conftest.$ac_ext
23230 CPPFLAGS="$gt_save_CPPFLAGS"
23231 LIBS="$gt_save_LIBS"
23233 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23234 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23235 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23237 cat >>confdefs.h <<\_ACEOF
23238 #define HAVE_CFLOCALECOPYCURRENT 1
23243 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23244 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23250 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23251 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23252 # Check whether --enable-nls was given.
23253 if test "${enable_nls+set}" = set; then
23254 enableval=$enable_nls; USE_NLS=$enableval
23259 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23260 echo "${ECHO_T}$USE_NLS" >&6; }
23265 BUILD_INCLUDED_LIBINTL=no
23266 USE_INCLUDED_LIBINTL=no
23272 if test "$USE_NLS" = "yes"; then
23273 gt_use_preinstalled_gnugettext=no
23275 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23276 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23278 # Check whether --with-included-gettext was given.
23279 if test "${with_included_gettext+set}" = set; then
23280 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23282 nls_cv_force_use_gnu_gettext=no
23285 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23286 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23288 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23289 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23296 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23297 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23298 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23299 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 cat >conftest.$ac_ext <<_ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 #include <libintl.h>
23308 extern int _nl_msg_cat_cntr;
23309 extern int *_nl_domain_bindings;
23313 bindtextdomain ("", "");
23314 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23319 rm -f conftest.$ac_objext conftest$ac_exeext
23320 if { (ac_try="$ac_link"
23321 case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_link") 2>conftest.er1
23328 grep -v '^ *+' conftest.er1 >conftest.err
23330 cat conftest.err >&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest$ac_exeext &&
23336 $as_test_x conftest$ac_exeext; then
23337 gt_cv_func_gnugettext1_libc=yes
23339 echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 gt_cv_func_gnugettext1_libc=no
23345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23346 conftest$ac_exeext conftest.$ac_ext
23348 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23349 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23351 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23357 acl_save_prefix="$prefix"
23358 prefix="$acl_final_prefix"
23359 acl_save_exec_prefix="$exec_prefix"
23360 exec_prefix="$acl_final_exec_prefix"
23362 eval additional_includedir=\"$includedir\"
23363 eval additional_libdir=\"$libdir\"
23365 exec_prefix="$acl_save_exec_prefix"
23366 prefix="$acl_save_prefix"
23369 # Check whether --with-libintl-prefix was given.
23370 if test "${with_libintl_prefix+set}" = set; then
23371 withval=$with_libintl_prefix;
23372 if test "X$withval" = "Xno"; then
23375 if test "X$withval" = "X"; then
23377 acl_save_prefix="$prefix"
23378 prefix="$acl_final_prefix"
23379 acl_save_exec_prefix="$exec_prefix"
23380 exec_prefix="$acl_final_exec_prefix"
23382 eval additional_includedir=\"$includedir\"
23383 eval additional_libdir=\"$libdir\"
23385 exec_prefix="$acl_save_exec_prefix"
23386 prefix="$acl_save_prefix"
23389 additional_includedir="$withval/include"
23390 additional_libdir="$withval/lib"
23401 names_already_handled=
23402 names_next_round='intl '
23403 while test -n "$names_next_round"; do
23404 names_this_round="$names_next_round"
23406 for name in $names_this_round; do
23408 for n in $names_already_handled; do
23409 if test "$n" = "$name"; then
23410 already_handled=yes
23414 if test -z "$already_handled"; then
23415 names_already_handled="$names_already_handled $name"
23416 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23417 eval value=\"\$HAVE_LIB$uppername\"
23418 if test -n "$value"; then
23419 if test "$value" = yes; then
23420 eval value=\"\$LIB$uppername\"
23421 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23422 eval value=\"\$LTLIB$uppername\"
23423 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23432 if test $use_additional = yes; then
23433 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23434 found_dir="$additional_libdir"
23435 found_so="$additional_libdir/lib$name.$shlibext"
23436 if test -f "$additional_libdir/lib$name.la"; then
23437 found_la="$additional_libdir/lib$name.la"
23440 if test -f "$additional_libdir/lib$name.$libext"; then
23441 found_dir="$additional_libdir"
23442 found_a="$additional_libdir/lib$name.$libext"
23443 if test -f "$additional_libdir/lib$name.la"; then
23444 found_la="$additional_libdir/lib$name.la"
23449 if test "X$found_dir" = "X"; then
23450 for x in $LDFLAGS $LTLIBINTL; do
23452 acl_save_prefix="$prefix"
23453 prefix="$acl_final_prefix"
23454 acl_save_exec_prefix="$exec_prefix"
23455 exec_prefix="$acl_final_exec_prefix"
23457 exec_prefix="$acl_save_exec_prefix"
23458 prefix="$acl_save_prefix"
23462 dir=`echo "X$x" | sed -e 's/^X-L//'`
23463 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23465 found_so="$dir/lib$name.$shlibext"
23466 if test -f "$dir/lib$name.la"; then
23467 found_la="$dir/lib$name.la"
23470 if test -f "$dir/lib$name.$libext"; then
23472 found_a="$dir/lib$name.$libext"
23473 if test -f "$dir/lib$name.la"; then
23474 found_la="$dir/lib$name.la"
23480 if test "X$found_dir" != "X"; then
23485 if test "X$found_dir" != "X"; then
23486 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23487 if test "X$found_so" != "X"; then
23488 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23492 for x in $ltrpathdirs; do
23493 if test "X$x" = "X$found_dir"; then
23498 if test -z "$haveit"; then
23499 ltrpathdirs="$ltrpathdirs $found_dir"
23501 if test "$hardcode_direct" = yes; then
23502 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23504 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23507 for x in $rpathdirs; do
23508 if test "X$x" = "X$found_dir"; then
23513 if test -z "$haveit"; then
23514 rpathdirs="$rpathdirs $found_dir"
23518 for x in $LDFLAGS $LIBINTL; do
23520 acl_save_prefix="$prefix"
23521 prefix="$acl_final_prefix"
23522 acl_save_exec_prefix="$exec_prefix"
23523 exec_prefix="$acl_final_exec_prefix"
23525 exec_prefix="$acl_save_exec_prefix"
23526 prefix="$acl_save_prefix"
23528 if test "X$x" = "X-L$found_dir"; then
23533 if test -z "$haveit"; then
23534 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23536 if test "$hardcode_minus_L" != no; then
23537 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23539 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23545 if test "X$found_a" != "X"; then
23546 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23548 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23551 additional_includedir=
23552 case "$found_dir" in
23554 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23555 additional_includedir="$basedir/include"
23558 if test "X$additional_includedir" != "X"; then
23559 if test "X$additional_includedir" != "X/usr/include"; then
23561 if test "X$additional_includedir" = "X/usr/local/include"; then
23562 if test -n "$GCC"; then
23564 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23568 if test -z "$haveit"; then
23569 for x in $CPPFLAGS $INCINTL; do
23571 acl_save_prefix="$prefix"
23572 prefix="$acl_final_prefix"
23573 acl_save_exec_prefix="$exec_prefix"
23574 exec_prefix="$acl_final_exec_prefix"
23576 exec_prefix="$acl_save_exec_prefix"
23577 prefix="$acl_save_prefix"
23579 if test "X$x" = "X-I$additional_includedir"; then
23584 if test -z "$haveit"; then
23585 if test -d "$additional_includedir"; then
23586 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23592 if test -n "$found_la"; then
23593 save_libdir="$libdir"
23594 case "$found_la" in
23595 */* | *\\*) . "$found_la" ;;
23596 *) . "./$found_la" ;;
23598 libdir="$save_libdir"
23599 for dep in $dependency_libs; do
23602 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23603 if test "X$additional_libdir" != "X/usr/lib"; then
23605 if test "X$additional_libdir" = "X/usr/local/lib"; then
23606 if test -n "$GCC"; then
23608 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23612 if test -z "$haveit"; then
23614 for x in $LDFLAGS $LIBINTL; do
23616 acl_save_prefix="$prefix"
23617 prefix="$acl_final_prefix"
23618 acl_save_exec_prefix="$exec_prefix"
23619 exec_prefix="$acl_final_exec_prefix"
23621 exec_prefix="$acl_save_exec_prefix"
23622 prefix="$acl_save_prefix"
23624 if test "X$x" = "X-L$additional_libdir"; then
23629 if test -z "$haveit"; then
23630 if test -d "$additional_libdir"; then
23631 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23635 for x in $LDFLAGS $LTLIBINTL; do
23637 acl_save_prefix="$prefix"
23638 prefix="$acl_final_prefix"
23639 acl_save_exec_prefix="$exec_prefix"
23640 exec_prefix="$acl_final_exec_prefix"
23642 exec_prefix="$acl_save_exec_prefix"
23643 prefix="$acl_save_prefix"
23645 if test "X$x" = "X-L$additional_libdir"; then
23650 if test -z "$haveit"; then
23651 if test -d "$additional_libdir"; then
23652 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23659 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23660 if test "$enable_rpath" != no; then
23662 for x in $rpathdirs; do
23663 if test "X$x" = "X$dir"; then
23668 if test -z "$haveit"; then
23669 rpathdirs="$rpathdirs $dir"
23672 for x in $ltrpathdirs; do
23673 if test "X$x" = "X$dir"; then
23678 if test -z "$haveit"; then
23679 ltrpathdirs="$ltrpathdirs $dir"
23684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23690 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23691 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23697 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23698 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23704 if test "X$rpathdirs" != "X"; then
23705 if test -n "$hardcode_libdir_separator"; then
23707 for found_dir in $rpathdirs; do
23708 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23710 acl_save_libdir="$libdir"
23712 eval flag=\"$hardcode_libdir_flag_spec\"
23713 libdir="$acl_save_libdir"
23714 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23716 for found_dir in $rpathdirs; do
23717 acl_save_libdir="$libdir"
23718 libdir="$found_dir"
23719 eval flag=\"$hardcode_libdir_flag_spec\"
23720 libdir="$acl_save_libdir"
23721 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23725 if test "X$ltrpathdirs" != "X"; then
23726 for found_dir in $ltrpathdirs; do
23727 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23731 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23732 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23733 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23736 gt_save_CPPFLAGS="$CPPFLAGS"
23737 CPPFLAGS="$CPPFLAGS $INCINTL"
23738 gt_save_LIBS="$LIBS"
23739 LIBS="$LIBS $LIBINTL"
23740 cat >conftest.$ac_ext <<_ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 #include <libintl.h>
23747 extern int _nl_msg_cat_cntr;
23752 const char *_nl_expand_alias (const char *);
23756 bindtextdomain ("", "");
23757 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23762 rm -f conftest.$ac_objext conftest$ac_exeext
23763 if { (ac_try="$ac_link"
23764 case "(($ac_try" in
23765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769 (eval "$ac_link") 2>conftest.er1
23771 grep -v '^ *+' conftest.er1 >conftest.err
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } && {
23776 test -z "$ac_c_werror_flag" ||
23777 test ! -s conftest.err
23778 } && test -s conftest$ac_exeext &&
23779 $as_test_x conftest$ac_exeext; then
23780 gt_cv_func_gnugettext1_libintl=yes
23782 echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23785 gt_cv_func_gnugettext1_libintl=no
23788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23789 conftest$ac_exeext conftest.$ac_ext
23790 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23791 LIBS="$LIBS $LIBICONV"
23792 cat >conftest.$ac_ext <<_ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 #include <libintl.h>
23799 extern int _nl_msg_cat_cntr;
23804 const char *_nl_expand_alias (const char *);
23808 bindtextdomain ("", "");
23809 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23814 rm -f conftest.$ac_objext conftest$ac_exeext
23815 if { (ac_try="$ac_link"
23816 case "(($ac_try" in
23817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818 *) ac_try_echo=$ac_try;;
23820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23821 (eval "$ac_link") 2>conftest.er1
23823 grep -v '^ *+' conftest.er1 >conftest.err
23825 cat conftest.err >&5
23826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); } && {
23828 test -z "$ac_c_werror_flag" ||
23829 test ! -s conftest.err
23830 } && test -s conftest$ac_exeext &&
23831 $as_test_x conftest$ac_exeext; then
23832 LIBINTL="$LIBINTL $LIBICONV"
23833 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23834 gt_cv_func_gnugettext1_libintl=yes
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23844 conftest$ac_exeext conftest.$ac_ext
23846 CPPFLAGS="$gt_save_CPPFLAGS"
23847 LIBS="$gt_save_LIBS"
23849 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23850 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23853 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23854 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23855 && test "$PACKAGE" != gettext-runtime \
23856 && test "$PACKAGE" != gettext-tools; }; then
23857 gt_use_preinstalled_gnugettext=yes
23865 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23866 nls_cv_use_gnu_gettext=yes
23870 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23871 BUILD_INCLUDED_LIBINTL=yes
23872 USE_INCLUDED_LIBINTL=yes
23873 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23874 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23875 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23879 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23880 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23885 if test -n "$INTL_MACOSX_LIBS"; then
23886 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23887 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23888 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23889 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23893 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23894 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23896 cat >>confdefs.h <<\_ACEOF
23897 #define ENABLE_NLS 1
23905 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23906 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23907 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23908 echo "${ECHO_T}$USE_NLS" >&6; }
23909 if test "$USE_NLS" = "yes"; then
23910 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23911 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23912 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23913 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23914 gt_source="external libintl"
23919 gt_source="included intl directory"
23921 { echo "$as_me:$LINENO: result: $gt_source" >&5
23922 echo "${ECHO_T}$gt_source" >&6; }
23925 if test "$USE_NLS" = "yes"; then
23927 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23928 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23929 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23930 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23931 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23932 echo "${ECHO_T}$LIBINTL" >&6; }
23934 for element in $INCINTL; do
23936 for x in $CPPFLAGS; do
23938 acl_save_prefix="$prefix"
23939 prefix="$acl_final_prefix"
23940 acl_save_exec_prefix="$exec_prefix"
23941 exec_prefix="$acl_final_exec_prefix"
23943 exec_prefix="$acl_save_exec_prefix"
23944 prefix="$acl_save_prefix"
23946 if test "X$x" = "X$element"; then
23951 if test -z "$haveit"; then
23952 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_GETTEXT 1
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_DCGETTEXT 1
23974 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23975 BUILD_INCLUDED_LIBINTL=yes
23982 nls_cv_header_intl=
23983 nls_cv_header_libgt=
23995 if test "$USE_INCLUDED_LIBINTL" = yes; then
23996 INTLOBJS="\$(GETTOBJS)"
24000 INTL_LIBTOOL_SUFFIX_PREFIX=
24004 INTLLIBS="$LIBINTL"
24016 support_postgresql=no
24019 support_smartalloc=yes
24020 support_readline=yes
24024 support_wx_console=no
24025 support_tray_monitor=no
24030 support_static_tools=no
24031 support_static_fd=no
24032 support_static_sd=no
24033 support_static_dir=no
24034 support_static_cons=no
24036 build_client_only=no
24045 # Check whether --enable-gnome was given.
24046 if test "${enable_gnome+set}" = set; then
24047 enableval=$enable_gnome;
24048 if test x$enableval = xyes; then
24057 if test x$support_gnome = xyes; then
24058 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24059 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24060 { (exit 1); exit 1; }; }
24061 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24062 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24063 { (exit 1); exit 1; }; }
24065 # AC_SUBST(GNOME_DIR)
24067 # Check whether --enable-bat was given.
24068 if test "${enable_bat+set}" = set; then
24069 enableval=$enable_bat;
24070 if test x$enableval = xyes; then
24072 cat >>confdefs.h <<\_ACEOF
24084 if test x$support_bat = xyes; then
24085 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24087 if test $pkg = 0; then
24088 BAT_DIR=src/qt-console
24090 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24091 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24092 { (exit 1); exit 1; }; }
24110 # Check whether --enable-bwx-console was given.
24111 if test "${enable_bwx_console+set}" = set; then
24112 enableval=$enable_bwx_console;
24113 if test x$enableval = xyes; then
24114 support_wx_console=yes
24122 if test x$support_wx_console = xyes; then
24123 abc=`$WXCONFIG $WXFLAGS --cppflags`
24125 if test $pkg = 0; then
24126 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24127 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24128 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24132 WX_DIR="src/wx-console"
24135 echo "wx-config program not found. bwx-console disabled."
24137 support_wx_console=no
24142 # Check whether --enable-tray-monitor was given.
24143 if test "${enable_tray_monitor+set}" = set; then
24144 enableval=$enable_tray_monitor;
24145 if test x$enableval = xyes; then
24146 support_tray_monitor=yes
24154 if test x$support_tray_monitor = xyes; then
24155 abc=`$PKGCONFIG --exists gtk+-2.0`
24157 if test $pkg = 0; then
24158 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24159 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24162 TRAY_MONITOR_DIR=src/tray-monitor
24163 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24165 if test $pkg = 0; then
24167 cat >>confdefs.h <<\_ACEOF
24168 #define HAVE_GTK_2_4 1
24176 # Check whether --enable-smartalloc was given.
24177 if test "${enable_smartalloc+set}" = set; then
24178 enableval=$enable_smartalloc;
24179 if test x$enableval = xno; then
24180 support_smartalloc=no
24187 if test x$support_smartalloc = xyes; then
24189 cat >>confdefs.h <<\_ACEOF
24190 #define SMARTALLOC 1
24195 # Check whether --enable-lockmgr was given.
24196 if test "${enable_lockmgr+set}" = set; then
24197 enableval=$enable_lockmgr;
24198 if test x$enableval = xyes; then
24199 support_lockmgr=yes
24206 if test x$support_lockmgr = xyes; then
24208 cat >>confdefs.h <<\_ACEOF
24209 #define _USE_LOCKMGR 1
24215 # Check whether --enable-static-tools was given.
24216 if test "${enable_static_tools+set}" = set; then
24217 enableval=$enable_static_tools;
24218 if test x$enableval = xyes; then
24219 if test x$use_libtool = xyes; then
24220 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24221 please rerun configure with --disable-libtool" >&5
24222 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24223 please rerun configure with --disable-libtool" >&2;}
24224 { (exit 1); exit 1; }; }
24226 support_static_tools=yes
24234 if test x$support_static_tools = xyes; then
24235 TTOOL_LDFLAGS="-static"
24239 # Check whether --enable-static-fd was given.
24240 if test "${enable_static_fd+set}" = set; then
24241 enableval=$enable_static_fd;
24242 if test x$enableval = xyes; then
24243 if test x$use_libtool = xyes; then
24244 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24245 please rerun configure with --disable-libtool" >&5
24246 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24247 please rerun configure with --disable-libtool" >&2;}
24248 { (exit 1); exit 1; }; }
24250 support_static_fd=yes
24258 if test x$support_static_fd = xyes; then
24259 STATIC_FD="static-bacula-fd"
24263 # Check whether --enable-static-sd was given.
24264 if test "${enable_static_sd+set}" = set; then
24265 enableval=$enable_static_sd;
24266 if test x$enableval = xyes; then
24267 if test x$use_libtool = xyes; then
24268 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24269 please rerun configure with --disable-libtool" >&5
24270 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24271 please rerun configure with --disable-libtool" >&2;}
24272 { (exit 1); exit 1; }; }
24274 support_static_sd=yes
24282 if test x$support_static_sd = xyes; then
24283 STATIC_SD="static-bacula-sd"
24287 # Check whether --enable-static-dir was given.
24288 if test "${enable_static_dir+set}" = set; then
24289 enableval=$enable_static_dir;
24290 if test x$enableval = xyes; then
24291 if test x$use_libtool = xyes; then
24292 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24293 please rerun configure with --disable-libtool" >&5
24294 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24295 please rerun configure with --disable-libtool" >&2;}
24296 { (exit 1); exit 1; }; }
24298 support_static_dir=yes
24306 if test x$support_static_dir = xyes; then
24307 STATIC_DIR="static-bacula-dir"
24311 # Check whether --enable-static-cons was given.
24312 if test "${enable_static_cons+set}" = set; then
24313 enableval=$enable_static_cons;
24314 if test x$enableval = xyes; then
24315 if test x$use_libtool = xyes; then
24316 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24317 please rerun configure with --disable-libtool" >&5
24318 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24319 please rerun configure with --disable-libtool" >&2;}
24320 { (exit 1); exit 1; }; }
24322 support_static_cons=yes
24332 if test x$support_static_cons = xyes; then
24333 STATIC_CONS="static-bconsole"
24334 STATIC_GNOME_CONS="static-bgnome-console"
24335 STATIC_WX_CONS="static-bwx-console"
24341 # Check whether --enable-client-only was given.
24342 if test "${enable_client_only+set}" = set; then
24343 enableval=$enable_client_only;
24344 if test x$enableval = xyes; then
24345 build_client_only=yes
24353 if test x$build_client_only = xno; then
24360 # Check whether --enable-build-dird was given.
24361 if test "${enable_build_dird+set}" = set; then
24362 enableval=$enable_build_dird;
24363 if test x$enableval = xno; then
24370 if test x$build_dird = xyes; then
24371 DIRD_DIR="src/dird"
24372 DIR_TOOLS="DIRTOOLS"
24375 DIR_TOOLS="NODIRTOOLS"
24380 # Check whether --enable-build-stored was given.
24381 if test "${enable_build_stored+set}" = set; then
24382 enableval=$enable_build_stored;
24383 if test x$enableval = xno; then
24390 if test x$build_stored = xyes; then
24391 STORED_DIR="src/stored"
24397 # Check whether --enable-conio was given.
24398 if test "${enable_conio+set}" = set; then
24399 enableval=$enable_conio;
24400 if test x$enableval = xno; then
24410 # Check whether --enable-ipv6 was given.
24411 if test "${enable_ipv6+set}" = set; then
24412 enableval=$enable_ipv6;
24413 if test x$enableval = xno; then
24421 if test x$support_ipv6 = xyes; then
24422 cat >conftest.$ac_ext <<_ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 #include <sys/types.h>
24429 #include <sys/socket.h>
24430 #include <netinet/in.h>
24434 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (ac_try="$ac_link"
24441 case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446 (eval "$ac_link") 2>conftest.er1
24448 grep -v '^ *+' conftest.er1 >conftest.err
24450 cat conftest.err >&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest$ac_exeext &&
24456 $as_test_x conftest$ac_exeext; then
24459 echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24466 conftest$ac_exeext conftest.$ac_ext
24469 if test x$support_ipv6 = xyes; then
24471 cat >>confdefs.h <<\_ACEOF
24472 #define HAVE_IPV6 1
24478 if test "${ac_cv_header_curses_h+set}" = set; then
24479 { echo "$as_me:$LINENO: checking for curses.h" >&5
24480 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24481 if test "${ac_cv_header_curses_h+set}" = set; then
24482 echo $ECHO_N "(cached) $ECHO_C" >&6
24484 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24485 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24487 # Is the header compilable?
24488 { echo "$as_me:$LINENO: checking curses.h usability" >&5
24489 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
24490 cat >conftest.$ac_ext <<_ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24496 $ac_includes_default
24497 #include <curses.h>
24499 rm -f conftest.$ac_objext
24500 if { (ac_try="$ac_compile"
24501 case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_compile") 2>conftest.er1
24508 grep -v '^ *+' conftest.er1 >conftest.err
24510 cat conftest.err >&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest.$ac_objext; then
24516 ac_header_compiler=yes
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24521 ac_header_compiler=no
24524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24526 echo "${ECHO_T}$ac_header_compiler" >&6; }
24528 # Is the header present?
24529 { echo "$as_me:$LINENO: checking curses.h presence" >&5
24530 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
24531 cat >conftest.$ac_ext <<_ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h. */
24537 #include <curses.h>
24539 if { (ac_try="$ac_cpp conftest.$ac_ext"
24540 case "(($ac_try" in
24541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542 *) ac_try_echo=$ac_try;;
24544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24547 grep -v '^ *+' conftest.er1 >conftest.err
24549 cat conftest.err >&5
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); } >/dev/null && {
24552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24553 test ! -s conftest.err
24555 ac_header_preproc=yes
24557 echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24560 ac_header_preproc=no
24563 rm -f conftest.err conftest.$ac_ext
24564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24565 echo "${ECHO_T}$ac_header_preproc" >&6; }
24567 # So? What about this header?
24568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24570 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
24571 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24572 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
24573 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
24574 ac_header_preproc=yes
24577 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
24578 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
24579 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
24580 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
24581 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
24582 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
24583 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
24584 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
24585 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
24586 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
24587 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
24588 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
24592 { echo "$as_me:$LINENO: checking for curses.h" >&5
24593 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24594 if test "${ac_cv_header_curses_h+set}" = set; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24597 ac_cv_header_curses_h=$ac_header_preproc
24599 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24600 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24603 if test $ac_cv_header_curses_h = yes; then
24604 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24605 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24606 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 ac_check_lib_save_LIBS=$LIBS
24610 LIBS="-lncurses $LIBS"
24611 cat >conftest.$ac_ext <<_ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24618 /* Override any GCC internal prototype to avoid an error.
24619 Use char because int might match the return type of a GCC
24620 builtin and then its argument prototype would still apply. */
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_link") 2>conftest.er1
24642 grep -v '^ *+' conftest.er1 >conftest.err
24644 cat conftest.err >&5
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest$ac_exeext &&
24650 $as_test_x conftest$ac_exeext; then
24651 ac_cv_lib_ncurses_tgetent=yes
24653 echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24656 ac_cv_lib_ncurses_tgetent=no
24659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24660 conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24663 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24664 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24665 if test $ac_cv_lib_ncurses_tgetent = yes; then
24666 TERM_LIB="-lncurses"
24668 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24669 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24670 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24671 echo $ECHO_N "(cached) $ECHO_C" >&6
24673 ac_check_lib_save_LIBS=$LIBS
24674 LIBS="-ltermcap $LIBS"
24675 cat >conftest.$ac_ext <<_ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h. */
24682 /* Override any GCC internal prototype to avoid an error.
24683 Use char because int might match the return type of a GCC
24684 builtin and then its argument prototype would still apply. */
24697 rm -f conftest.$ac_objext conftest$ac_exeext
24698 if { (ac_try="$ac_link"
24699 case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704 (eval "$ac_link") 2>conftest.er1
24706 grep -v '^ *+' conftest.er1 >conftest.err
24708 cat conftest.err >&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } && {
24711 test -z "$ac_c_werror_flag" ||
24712 test ! -s conftest.err
24713 } && test -s conftest$ac_exeext &&
24714 $as_test_x conftest$ac_exeext; then
24715 ac_cv_lib_termcap_tgetent=yes
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 ac_cv_lib_termcap_tgetent=no
24723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24724 conftest$ac_exeext conftest.$ac_ext
24725 LIBS=$ac_check_lib_save_LIBS
24727 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24728 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24729 if test $ac_cv_lib_termcap_tgetent = yes; then
24730 TERM_LIB="-ltermcap"
24739 for ac_header in curses.h
24741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24748 ac_res=`eval echo '${'$as_ac_Header'}'`
24749 { echo "$as_me:$LINENO: result: $ac_res" >&5
24750 echo "${ECHO_T}$ac_res" >&6; }
24752 # Is the header compilable?
24753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24755 cat >conftest.$ac_ext <<_ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h. */
24761 $ac_includes_default
24762 #include <$ac_header>
24764 rm -f conftest.$ac_objext
24765 if { (ac_try="$ac_compile"
24766 case "(($ac_try" in
24767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768 *) ac_try_echo=$ac_try;;
24770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771 (eval "$ac_compile") 2>conftest.er1
24773 grep -v '^ *+' conftest.er1 >conftest.err
24775 cat conftest.err >&5
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); } && {
24778 test -z "$ac_c_werror_flag" ||
24779 test ! -s conftest.err
24780 } && test -s conftest.$ac_objext; then
24781 ac_header_compiler=yes
24783 echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24786 ac_header_compiler=no
24789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24791 echo "${ECHO_T}$ac_header_compiler" >&6; }
24793 # Is the header present?
24794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24796 cat >conftest.$ac_ext <<_ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24802 #include <$ac_header>
24804 if { (ac_try="$ac_cpp conftest.$ac_ext"
24805 case "(($ac_try" in
24806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807 *) ac_try_echo=$ac_try;;
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24812 grep -v '^ *+' conftest.er1 >conftest.err
24814 cat conftest.err >&5
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); } >/dev/null && {
24817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24818 test ! -s conftest.err
24820 ac_header_preproc=yes
24822 echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24825 ac_header_preproc=no
24828 rm -f conftest.err conftest.$ac_ext
24829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24830 echo "${ECHO_T}$ac_header_preproc" >&6; }
24832 # So? What about this header?
24833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24839 ac_header_preproc=yes
24842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24860 echo $ECHO_N "(cached) $ECHO_C" >&6
24862 eval "$as_ac_Header=\$ac_header_preproc"
24864 ac_res=`eval echo '${'$as_ac_Header'}'`
24865 { echo "$as_me:$LINENO: result: $ac_res" >&5
24866 echo "${ECHO_T}$ac_res" >&6; }
24869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24870 cat >>confdefs.h <<_ACEOF
24871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24878 if test "${ac_cv_header_term_h+set}" = set; then
24879 { echo "$as_me:$LINENO: checking for term.h" >&5
24880 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24881 if test "${ac_cv_header_term_h+set}" = set; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24884 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24885 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24887 # Is the header compilable?
24888 { echo "$as_me:$LINENO: checking term.h usability" >&5
24889 echo $ECHO_N "checking term.h usability... $ECHO_C" >&6; }
24890 cat >conftest.$ac_ext <<_ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 $ac_includes_default
24899 rm -f conftest.$ac_objext
24900 if { (ac_try="$ac_compile"
24901 case "(($ac_try" in
24902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903 *) ac_try_echo=$ac_try;;
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906 (eval "$ac_compile") 2>conftest.er1
24908 grep -v '^ *+' conftest.er1 >conftest.err
24910 cat conftest.err >&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } && {
24913 test -z "$ac_c_werror_flag" ||
24914 test ! -s conftest.err
24915 } && test -s conftest.$ac_objext; then
24916 ac_header_compiler=yes
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ac_header_compiler=no
24924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24926 echo "${ECHO_T}$ac_header_compiler" >&6; }
24928 # Is the header present?
24929 { echo "$as_me:$LINENO: checking term.h presence" >&5
24930 echo $ECHO_N "checking term.h presence... $ECHO_C" >&6; }
24931 cat >conftest.$ac_ext <<_ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24939 if { (ac_try="$ac_cpp conftest.$ac_ext"
24940 case "(($ac_try" in
24941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942 *) ac_try_echo=$ac_try;;
24944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24947 grep -v '^ *+' conftest.er1 >conftest.err
24949 cat conftest.err >&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } >/dev/null && {
24952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24953 test ! -s conftest.err
24955 ac_header_preproc=yes
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24960 ac_header_preproc=no
24963 rm -f conftest.err conftest.$ac_ext
24964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24965 echo "${ECHO_T}$ac_header_preproc" >&6; }
24967 # So? What about this header?
24968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24970 { echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
24971 echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24972 { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
24973 echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
24974 ac_header_preproc=yes
24977 { echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
24978 echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
24979 { echo "$as_me:$LINENO: WARNING: term.h: check for missing prerequisite headers?" >&5
24980 echo "$as_me: WARNING: term.h: check for missing prerequisite headers?" >&2;}
24981 { echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
24982 echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
24983 { echo "$as_me:$LINENO: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&5
24984 echo "$as_me: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&2;}
24985 { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
24986 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
24987 { echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
24988 echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
24992 { echo "$as_me:$LINENO: checking for term.h" >&5
24993 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24994 if test "${ac_cv_header_term_h+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 ac_cv_header_term_h=$ac_header_preproc
24999 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25000 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25003 if test $ac_cv_header_term_h = yes; then
25004 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25005 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25006 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25007 echo $ECHO_N "(cached) $ECHO_C" >&6
25009 ac_check_lib_save_LIBS=$LIBS
25010 LIBS="-lcurses $LIBS"
25011 cat >conftest.$ac_ext <<_ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h. */
25018 /* Override any GCC internal prototype to avoid an error.
25019 Use char because int might match the return type of a GCC
25020 builtin and then its argument prototype would still apply. */
25033 rm -f conftest.$ac_objext conftest$ac_exeext
25034 if { (ac_try="$ac_link"
25035 case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040 (eval "$ac_link") 2>conftest.er1
25042 grep -v '^ *+' conftest.er1 >conftest.err
25044 cat conftest.err >&5
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); } && {
25047 test -z "$ac_c_werror_flag" ||
25048 test ! -s conftest.err
25049 } && test -s conftest$ac_exeext &&
25050 $as_test_x conftest$ac_exeext; then
25051 ac_cv_lib_curses_tgetent=yes
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ac_cv_lib_curses_tgetent=no
25059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25060 conftest$ac_exeext conftest.$ac_ext
25061 LIBS=$ac_check_lib_save_LIBS
25063 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25064 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25065 if test $ac_cv_lib_curses_tgetent = yes; then
25066 TERM_LIB="-lcurses"
25080 if test x$support_conio = xyes; then
25081 if test x$TERM_LIB != x; then
25082 CONS_LIBS=$TERM_LIB
25086 support_readline=no
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_CONIO 1
25093 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25098 # Check whether --enable-readline was given.
25099 if test "${enable_readline+set}" = set; then
25100 enableval=$enable_readline;
25101 if test x$enableval = xno; then
25102 support_readline=no
25108 if test x$TERM_LIB = x ; then
25109 support_readline=no
25114 if test x$support_readline = xyes; then
25116 # Check whether --with-readline was given.
25117 if test "${with_readline+set}" = set; then
25118 withval=$with_readline;
25119 case "$with_readline" in
25124 if test -f ${with_readline}/readline.h; then
25125 CONS_INC="-I${with_readline}"
25126 CONS_LDFLAGS="-L$with_readline"
25127 elif test -f ${with_readline}/include/readline/readline.h; then
25128 CONS_INC="-I${with_readline}/include/readline"
25129 CONS_LDFLAGS="-L${with_readline}/lib"
25130 with_readline="${with_readline}/include/readline"
25132 with_readline="/usr/include/readline"
25135 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25137 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25138 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25140 echo $ECHO_N "(cached) $ECHO_C" >&6
25142 ac_res=`eval echo '${'$as_ac_Header'}'`
25143 { echo "$as_me:$LINENO: result: $ac_res" >&5
25144 echo "${ECHO_T}$ac_res" >&6; }
25146 # Is the header compilable?
25147 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25148 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25149 cat >conftest.$ac_ext <<_ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h. */
25155 $ac_includes_default
25156 #include <${with_readline}/readline.h>
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162 *) ac_try_echo=$ac_try;;
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165 (eval "$ac_compile") 2>conftest.er1
25167 grep -v '^ *+' conftest.er1 >conftest.err
25169 cat conftest.err >&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } && {
25172 test -z "$ac_c_werror_flag" ||
25173 test ! -s conftest.err
25174 } && test -s conftest.$ac_objext; then
25175 ac_header_compiler=yes
25177 echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25180 ac_header_compiler=no
25183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25185 echo "${ECHO_T}$ac_header_compiler" >&6; }
25187 # Is the header present?
25188 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25189 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25190 cat >conftest.$ac_ext <<_ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25196 #include <${with_readline}/readline.h>
25198 if { (ac_try="$ac_cpp conftest.$ac_ext"
25199 case "(($ac_try" in
25200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201 *) ac_try_echo=$ac_try;;
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25206 grep -v '^ *+' conftest.er1 >conftest.err
25208 cat conftest.err >&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } >/dev/null && {
25211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25212 test ! -s conftest.err
25214 ac_header_preproc=yes
25216 echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25219 ac_header_preproc=no
25222 rm -f conftest.err conftest.$ac_ext
25223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25224 echo "${ECHO_T}$ac_header_preproc" >&6; }
25226 # So? What about this header?
25227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25229 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25230 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25231 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25232 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25233 ac_header_preproc=yes
25236 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25238 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25243 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25244 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25245 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25246 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25247 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25251 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25252 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25254 echo $ECHO_N "(cached) $ECHO_C" >&6
25256 eval "$as_ac_Header=\$ac_header_preproc"
25258 ac_res=`eval echo '${'$as_ac_Header'}'`
25259 { echo "$as_me:$LINENO: result: $ac_res" >&5
25260 echo "${ECHO_T}$ac_res" >&6; }
25263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25266 cat >>confdefs.h <<\_ACEOF
25267 #define HAVE_READLINE 1
25270 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25276 echo "readline.h not found. readline turned off ..."
25288 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25289 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25290 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25291 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
25294 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25295 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25297 # Is the header compilable?
25298 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25299 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25300 cat >conftest.$ac_ext <<_ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25306 $ac_includes_default
25307 #include </usr/include/readline/readline.h>
25309 rm -f conftest.$ac_objext
25310 if { (ac_try="$ac_compile"
25311 case "(($ac_try" in
25312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25316 (eval "$ac_compile") 2>conftest.er1
25318 grep -v '^ *+' conftest.er1 >conftest.err
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } && {
25323 test -z "$ac_c_werror_flag" ||
25324 test ! -s conftest.err
25325 } && test -s conftest.$ac_objext; then
25326 ac_header_compiler=yes
25328 echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25331 ac_header_compiler=no
25334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25336 echo "${ECHO_T}$ac_header_compiler" >&6; }
25338 # Is the header present?
25339 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25340 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25341 cat >conftest.$ac_ext <<_ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25347 #include </usr/include/readline/readline.h>
25349 if { (ac_try="$ac_cpp conftest.$ac_ext"
25350 case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25357 grep -v '^ *+' conftest.er1 >conftest.err
25359 cat conftest.err >&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } >/dev/null && {
25362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25363 test ! -s conftest.err
25365 ac_header_preproc=yes
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ac_header_preproc=no
25373 rm -f conftest.err conftest.$ac_ext
25374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25375 echo "${ECHO_T}$ac_header_preproc" >&6; }
25377 # So? What about this header?
25378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25380 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25381 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25383 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25384 ac_header_preproc=yes
25387 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25394 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25396 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25398 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25402 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25403 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25404 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
25407 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25409 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25410 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25413 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25416 cat >>confdefs.h <<\_ACEOF
25417 #define HAVE_READLINE 1
25421 CONS_INC="-I/usr/include/readline"
25422 CONS_LIBS="-lreadline $TERM_LIB"
25426 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25428 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25429 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25431 echo $ECHO_N "(cached) $ECHO_C" >&6
25433 ac_res=`eval echo '${'$as_ac_Header'}'`
25434 { echo "$as_me:$LINENO: result: $ac_res" >&5
25435 echo "${ECHO_T}$ac_res" >&6; }
25437 # Is the header compilable?
25438 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25439 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25440 cat >conftest.$ac_ext <<_ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25446 $ac_includes_default
25447 #include <${TOP_DIR}/depkgs/readline/readline.h>
25449 rm -f conftest.$ac_objext
25450 if { (ac_try="$ac_compile"
25451 case "(($ac_try" in
25452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456 (eval "$ac_compile") 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } && {
25463 test -z "$ac_c_werror_flag" ||
25464 test ! -s conftest.err
25465 } && test -s conftest.$ac_objext; then
25466 ac_header_compiler=yes
25468 echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25471 ac_header_compiler=no
25474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25476 echo "${ECHO_T}$ac_header_compiler" >&6; }
25478 # Is the header present?
25479 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25480 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 #include <${TOP_DIR}/depkgs/readline/readline.h>
25489 if { (ac_try="$ac_cpp conftest.$ac_ext"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25497 grep -v '^ *+' conftest.er1 >conftest.err
25499 cat conftest.err >&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } >/dev/null && {
25502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25503 test ! -s conftest.err
25505 ac_header_preproc=yes
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ac_header_preproc=no
25513 rm -f conftest.err conftest.$ac_ext
25514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25515 echo "${ECHO_T}$ac_header_preproc" >&6; }
25517 # So? What about this header?
25518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25520 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25521 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25522 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25523 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25524 ac_header_preproc=yes
25527 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25533 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25534 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25535 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25536 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25537 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25538 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25542 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25543 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25545 echo $ECHO_N "(cached) $ECHO_C" >&6
25547 eval "$as_ac_Header=\$ac_header_preproc"
25549 ac_res=`eval echo '${'$as_ac_Header'}'`
25550 { echo "$as_me:$LINENO: result: $ac_res" >&5
25551 echo "${ECHO_T}$ac_res" >&6; }
25554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_READLINE 1
25562 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25563 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25564 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25565 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25570 echo "readline.h not found. readline turned off ..."
25597 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25598 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25599 if test "${ac_cv_header_stat_broken+set}" = set; then
25600 echo $ECHO_N "(cached) $ECHO_C" >&6
25602 cat >conftest.$ac_ext <<_ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h. */
25608 #include <sys/types.h>
25609 #include <sys/stat.h>
25611 #if defined S_ISBLK && defined S_IFDIR
25612 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25615 #if defined S_ISBLK && defined S_IFCHR
25616 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25619 #if defined S_ISLNK && defined S_IFREG
25620 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25623 #if defined S_ISSOCK && defined S_IFREG
25624 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25628 rm -f conftest.$ac_objext
25629 if { (ac_try="$ac_compile"
25630 case "(($ac_try" in
25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632 *) ac_try_echo=$ac_try;;
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635 (eval "$ac_compile") 2>conftest.er1
25637 grep -v '^ *+' conftest.er1 >conftest.err
25639 cat conftest.err >&5
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } && {
25642 test -z "$ac_c_werror_flag" ||
25643 test ! -s conftest.err
25644 } && test -s conftest.$ac_objext; then
25645 ac_cv_header_stat_broken=no
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 ac_cv_header_stat_broken=yes
25653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25656 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25657 if test $ac_cv_header_stat_broken = yes; then
25659 cat >>confdefs.h <<\_ACEOF
25660 #define STAT_MACROS_BROKEN 1
25670 ac_header_dirent=no
25671 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25672 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25673 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25674 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25676 echo $ECHO_N "(cached) $ECHO_C" >&6
25678 cat >conftest.$ac_ext <<_ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25684 #include <sys/types.h>
25696 rm -f conftest.$ac_objext
25697 if { (ac_try="$ac_compile"
25698 case "(($ac_try" in
25699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700 *) ac_try_echo=$ac_try;;
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703 (eval "$ac_compile") 2>conftest.er1
25705 grep -v '^ *+' conftest.er1 >conftest.err
25707 cat conftest.err >&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); } && {
25710 test -z "$ac_c_werror_flag" ||
25711 test ! -s conftest.err
25712 } && test -s conftest.$ac_objext; then
25713 eval "$as_ac_Header=yes"
25715 echo "$as_me: failed program was:" >&5
25716 sed 's/^/| /' conftest.$ac_ext >&5
25718 eval "$as_ac_Header=no"
25721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 ac_res=`eval echo '${'$as_ac_Header'}'`
25724 { echo "$as_me:$LINENO: result: $ac_res" >&5
25725 echo "${ECHO_T}$ac_res" >&6; }
25726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25727 cat >>confdefs.h <<_ACEOF
25728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25731 ac_header_dirent=$ac_hdr; break
25735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25736 if test $ac_header_dirent = dirent.h; then
25737 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25739 if test "${ac_cv_search_opendir+set}" = set; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25742 ac_func_search_save_LIBS=$LIBS
25743 cat >conftest.$ac_ext <<_ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h. */
25750 /* Override any GCC internal prototype to avoid an error.
25751 Use char because int might match the return type of a GCC
25752 builtin and then its argument prototype would still apply. */
25765 for ac_lib in '' dir; do
25766 if test -z "$ac_lib"; then
25767 ac_res="none required"
25770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25772 rm -f conftest.$ac_objext conftest$ac_exeext
25773 if { (ac_try="$ac_link"
25774 case "(($ac_try" in
25775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776 *) ac_try_echo=$ac_try;;
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779 (eval "$ac_link") 2>conftest.er1
25781 grep -v '^ *+' conftest.er1 >conftest.err
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } && {
25786 test -z "$ac_c_werror_flag" ||
25787 test ! -s conftest.err
25788 } && test -s conftest$ac_exeext &&
25789 $as_test_x conftest$ac_exeext; then
25790 ac_cv_search_opendir=$ac_res
25792 echo "$as_me: failed program was:" >&5
25793 sed 's/^/| /' conftest.$ac_ext >&5
25798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25800 if test "${ac_cv_search_opendir+set}" = set; then
25804 if test "${ac_cv_search_opendir+set}" = set; then
25807 ac_cv_search_opendir=no
25809 rm conftest.$ac_ext
25810 LIBS=$ac_func_search_save_LIBS
25812 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25813 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25814 ac_res=$ac_cv_search_opendir
25815 if test "$ac_res" != no; then
25816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25821 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25822 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25823 if test "${ac_cv_search_opendir+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25826 ac_func_search_save_LIBS=$LIBS
25827 cat >conftest.$ac_ext <<_ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25834 /* Override any GCC internal prototype to avoid an error.
25835 Use char because int might match the return type of a GCC
25836 builtin and then its argument prototype would still apply. */
25849 for ac_lib in '' x; do
25850 if test -z "$ac_lib"; then
25851 ac_res="none required"
25854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25856 rm -f conftest.$ac_objext conftest$ac_exeext
25857 if { (ac_try="$ac_link"
25858 case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_link") 2>conftest.er1
25865 grep -v '^ *+' conftest.er1 >conftest.err
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } && {
25870 test -z "$ac_c_werror_flag" ||
25871 test ! -s conftest.err
25872 } && test -s conftest$ac_exeext &&
25873 $as_test_x conftest$ac_exeext; then
25874 ac_cv_search_opendir=$ac_res
25876 echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25884 if test "${ac_cv_search_opendir+set}" = set; then
25888 if test "${ac_cv_search_opendir+set}" = set; then
25891 ac_cv_search_opendir=no
25893 rm conftest.$ac_ext
25894 LIBS=$ac_func_search_save_LIBS
25896 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25897 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25898 ac_res=$ac_cv_search_opendir
25899 if test "$ac_res" != no; then
25900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25913 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25919 echo $ECHO_N "(cached) $ECHO_C" >&6
25921 cat >conftest.$ac_ext <<_ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h. */
25927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25929 #define $ac_func innocuous_$ac_func
25931 /* System header to define __stub macros and hopefully few prototypes,
25932 which can conflict with char $ac_func (); below.
25933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25934 <limits.h> exists even on freestanding compilers. */
25937 # include <limits.h>
25939 # include <assert.h>
25944 /* Override any GCC internal prototype to avoid an error.
25945 Use char because int might match the return type of a GCC
25946 builtin and then its argument prototype would still apply. */
25951 /* The GNU C library defines this for functions which it implements
25952 to always fail with ENOSYS. Some functions are actually named
25953 something starting with __ and the normal name is an alias. */
25954 #if defined __stub_$ac_func || defined __stub___$ac_func
25961 return $ac_func ();
25966 rm -f conftest.$ac_objext conftest$ac_exeext
25967 if { (ac_try="$ac_link"
25968 case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_link") 2>conftest.er1
25975 grep -v '^ *+' conftest.er1 >conftest.err
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } && {
25980 test -z "$ac_c_werror_flag" ||
25981 test ! -s conftest.err
25982 } && test -s conftest$ac_exeext &&
25983 $as_test_x conftest$ac_exeext; then
25984 eval "$as_ac_var=yes"
25986 echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25989 eval "$as_ac_var=no"
25992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25993 conftest$ac_exeext conftest.$ac_ext
25995 ac_res=`eval echo '${'$as_ac_var'}'`
25996 { echo "$as_me:$LINENO: result: $ac_res" >&5
25997 echo "${ECHO_T}$ac_res" >&6; }
25998 if test `eval echo '${'$as_ac_var'}'` = yes; then
25999 cat >>confdefs.h <<_ACEOF
26000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26008 for ac_func in nanosleep nl_langinfo
26010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26014 echo $ECHO_N "(cached) $ECHO_C" >&6
26016 cat >conftest.$ac_ext <<_ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h. */
26022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26024 #define $ac_func innocuous_$ac_func
26026 /* System header to define __stub macros and hopefully few prototypes,
26027 which can conflict with char $ac_func (); below.
26028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26029 <limits.h> exists even on freestanding compilers. */
26032 # include <limits.h>
26034 # include <assert.h>
26039 /* Override any GCC internal prototype to avoid an error.
26040 Use char because int might match the return type of a GCC
26041 builtin and then its argument prototype would still apply. */
26046 /* The GNU C library defines this for functions which it implements
26047 to always fail with ENOSYS. Some functions are actually named
26048 something starting with __ and the normal name is an alias. */
26049 #if defined __stub_$ac_func || defined __stub___$ac_func
26056 return $ac_func ();
26061 rm -f conftest.$ac_objext conftest$ac_exeext
26062 if { (ac_try="$ac_link"
26063 case "(($ac_try" in
26064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065 *) ac_try_echo=$ac_try;;
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068 (eval "$ac_link") 2>conftest.er1
26070 grep -v '^ *+' conftest.er1 >conftest.err
26072 cat conftest.err >&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } && {
26075 test -z "$ac_c_werror_flag" ||
26076 test ! -s conftest.err
26077 } && test -s conftest$ac_exeext &&
26078 $as_test_x conftest$ac_exeext; then
26079 eval "$as_ac_var=yes"
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26084 eval "$as_ac_var=no"
26087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26088 conftest$ac_exeext conftest.$ac_ext
26090 ac_res=`eval echo '${'$as_ac_var'}'`
26091 { echo "$as_me:$LINENO: result: $ac_res" >&5
26092 echo "${ECHO_T}$ac_res" >&6; }
26093 if test `eval echo '${'$as_ac_var'}'` = yes; then
26094 cat >>confdefs.h <<_ACEOF
26095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26102 for ac_header in varargs.h
26104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 ac_res=`eval echo '${'$as_ac_Header'}'`
26112 { echo "$as_me:$LINENO: result: $ac_res" >&5
26113 echo "${ECHO_T}$ac_res" >&6; }
26115 # Is the header compilable?
26116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26118 cat >conftest.$ac_ext <<_ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h. */
26124 $ac_includes_default
26125 #include <$ac_header>
26127 rm -f conftest.$ac_objext
26128 if { (ac_try="$ac_compile"
26129 case "(($ac_try" in
26130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131 *) ac_try_echo=$ac_try;;
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134 (eval "$ac_compile") 2>conftest.er1
26136 grep -v '^ *+' conftest.er1 >conftest.err
26138 cat conftest.err >&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); } && {
26141 test -z "$ac_c_werror_flag" ||
26142 test ! -s conftest.err
26143 } && test -s conftest.$ac_objext; then
26144 ac_header_compiler=yes
26146 echo "$as_me: failed program was:" >&5
26147 sed 's/^/| /' conftest.$ac_ext >&5
26149 ac_header_compiler=no
26152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26154 echo "${ECHO_T}$ac_header_compiler" >&6; }
26156 # Is the header present?
26157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26165 #include <$ac_header>
26167 if { (ac_try="$ac_cpp conftest.$ac_ext"
26168 case "(($ac_try" in
26169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170 *) ac_try_echo=$ac_try;;
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26175 grep -v '^ *+' conftest.er1 >conftest.err
26177 cat conftest.err >&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); } >/dev/null && {
26180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26181 test ! -s conftest.err
26183 ac_header_preproc=yes
26185 echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26188 ac_header_preproc=no
26191 rm -f conftest.err conftest.$ac_ext
26192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26193 echo "${ECHO_T}$ac_header_preproc" >&6; }
26195 # So? What about this header?
26196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26202 ac_header_preproc=yes
26205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26223 echo $ECHO_N "(cached) $ECHO_C" >&6
26225 eval "$as_ac_Header=\$ac_header_preproc"
26227 ac_res=`eval echo '${'$as_ac_Header'}'`
26228 { echo "$as_me:$LINENO: result: $ac_res" >&5
26229 echo "${ECHO_T}$ac_res" >&6; }
26232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26233 cat >>confdefs.h <<_ACEOF
26234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26243 { echo "$as_me:$LINENO: checking for Python support" >&5
26244 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26246 # Check whether --with-python was given.
26247 if test "${with_python+set}" = set; then
26248 withval=$with_python;
26251 if test "$withval" != "no"; then
26252 if test "$withval" = "yes"; then
26253 if test -e /usr/bin/python-config ; then
26254 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26255 PYTHON_LIBS=`/usr/bin/python-config --libs`
26257 for python_root in /usr /usr/local /usr/sfw; do
26258 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26259 if test -f $python_root/include/${ver}/Python.h; then
26260 PYTHON_INCDIR=-I$python_root/include/${ver}
26261 if test -d $python_root/lib64/${ver}/config; then
26262 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26264 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26271 if test x$PYTHON_INCDIR = x; then
26272 if test -f $prefix/include/Python.h; then
26273 PYTHON_INCDIR=-I$prefix/include
26274 if test -d $prefix/lib64/config; then
26275 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26277 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26280 { echo "$as_me:$LINENO: result: no" >&5
26281 echo "${ECHO_T}no" >&6; }
26282 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26283 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26284 { (exit 1); exit 1; }; }
26289 if test -e $withval/bin/python-config ; then
26290 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26291 PYTHON_LIBS=`$withval/bin/python-config --libs`
26292 elif test -f $withval/Python.h; then
26293 PYTHON_INCDIR=-I$withval
26294 PYTHON_LIBS="-L$withval/config -lpython"
26295 elif test -f $withval/include/Python.h; then
26296 PYTHON_INCDIR=-I$withval/include
26297 if test -d $withval/lib64/config; then
26298 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26300 PYTHON_LIBS="-L$withval/lib/config -lpython"
26302 elif test -f $withval/include/python/Python.h; then
26303 PYTHON_INCDIR=-I$withval/include/python
26304 if test -d $withval/lib64/python/config; then
26305 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26307 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26310 { echo "$as_me:$LINENO: result: no" >&5
26311 echo "${ECHO_T}no" >&6; }
26312 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26313 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26314 { (exit 1); exit 1; }; }
26318 cat >>confdefs.h <<\_ACEOF
26319 #define HAVE_PYTHON 1
26322 { echo "$as_me:$LINENO: result: yes" >&5
26323 echo "${ECHO_T}yes" >&6; }
26325 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26326 echo "$as_me: checking for more Python libs" >&6;}
26327 saved_LIBS="$LIBS"; LIBS=
26328 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26329 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26330 if test "${ac_cv_search_shm_open+set}" = set; then
26331 echo $ECHO_N "(cached) $ECHO_C" >&6
26333 ac_func_search_save_LIBS=$LIBS
26334 cat >conftest.$ac_ext <<_ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h. */
26341 /* Override any GCC internal prototype to avoid an error.
26342 Use char because int might match the return type of a GCC
26343 builtin and then its argument prototype would still apply. */
26351 return shm_open ();
26356 for ac_lib in '' rt; do
26357 if test -z "$ac_lib"; then
26358 ac_res="none required"
26361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26363 rm -f conftest.$ac_objext conftest$ac_exeext
26364 if { (ac_try="$ac_link"
26365 case "(($ac_try" in
26366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367 *) ac_try_echo=$ac_try;;
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370 (eval "$ac_link") 2>conftest.er1
26372 grep -v '^ *+' conftest.er1 >conftest.err
26374 cat conftest.err >&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } && {
26377 test -z "$ac_c_werror_flag" ||
26378 test ! -s conftest.err
26379 } && test -s conftest$ac_exeext &&
26380 $as_test_x conftest$ac_exeext; then
26381 ac_cv_search_shm_open=$ac_res
26383 echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26391 if test "${ac_cv_search_shm_open+set}" = set; then
26395 if test "${ac_cv_search_shm_open+set}" = set; then
26398 ac_cv_search_shm_open=no
26400 rm conftest.$ac_ext
26401 LIBS=$ac_func_search_save_LIBS
26403 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26404 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26405 ac_res=$ac_cv_search_shm_open
26406 if test "$ac_res" != no; then
26407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26412 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26413 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26414 if test "${ac_cv_lib_util_openpty+set}" = set; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26417 ac_check_lib_save_LIBS=$LIBS
26418 LIBS="-lutil $LIBS"
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26426 /* Override any GCC internal prototype to avoid an error.
26427 Use char because int might match the return type of a GCC
26428 builtin and then its argument prototype would still apply. */
26441 rm -f conftest.$ac_objext conftest$ac_exeext
26442 if { (ac_try="$ac_link"
26443 case "(($ac_try" in
26444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26445 *) ac_try_echo=$ac_try;;
26447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26448 (eval "$ac_link") 2>conftest.er1
26450 grep -v '^ *+' conftest.er1 >conftest.err
26452 cat conftest.err >&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); } && {
26455 test -z "$ac_c_werror_flag" ||
26456 test ! -s conftest.err
26457 } && test -s conftest$ac_exeext &&
26458 $as_test_x conftest$ac_exeext; then
26459 ac_cv_lib_util_openpty=yes
26461 echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26464 ac_cv_lib_util_openpty=no
26467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26468 conftest$ac_exeext conftest.$ac_ext
26469 LIBS=$ac_check_lib_save_LIBS
26471 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26472 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26473 if test $ac_cv_lib_util_openpty = yes; then
26474 cat >>confdefs.h <<_ACEOF
26475 #define HAVE_LIBUTIL 1
26478 LIBS="-lutil $LIBS"
26482 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26485 { echo "$as_me:$LINENO: result: no" >&5
26486 echo "${ECHO_T}no" >&6; }
26491 { echo "$as_me:$LINENO: result: no" >&5
26492 echo "${ECHO_T}no" >&6; }
26500 { echo "$as_me:$LINENO: checking for socket" >&5
26501 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26502 if test "${ac_cv_func_socket+set}" = set; then
26503 echo $ECHO_N "(cached) $ECHO_C" >&6
26505 cat >conftest.$ac_ext <<_ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h. */
26511 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26513 #define socket innocuous_socket
26515 /* System header to define __stub macros and hopefully few prototypes,
26516 which can conflict with char socket (); below.
26517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26518 <limits.h> exists even on freestanding compilers. */
26521 # include <limits.h>
26523 # include <assert.h>
26528 /* Override any GCC internal prototype to avoid an error.
26529 Use char because int might match the return type of a GCC
26530 builtin and then its argument prototype would still apply. */
26535 /* The GNU C library defines this for functions which it implements
26536 to always fail with ENOSYS. Some functions are actually named
26537 something starting with __ and the normal name is an alias. */
26538 #if defined __stub_socket || defined __stub___socket
26550 rm -f conftest.$ac_objext conftest$ac_exeext
26551 if { (ac_try="$ac_link"
26552 case "(($ac_try" in
26553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554 *) ac_try_echo=$ac_try;;
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557 (eval "$ac_link") 2>conftest.er1
26559 grep -v '^ *+' conftest.er1 >conftest.err
26561 cat conftest.err >&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); } && {
26564 test -z "$ac_c_werror_flag" ||
26565 test ! -s conftest.err
26566 } && test -s conftest$ac_exeext &&
26567 $as_test_x conftest$ac_exeext; then
26568 ac_cv_func_socket=yes
26570 echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26573 ac_cv_func_socket=no
26576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26577 conftest$ac_exeext conftest.$ac_ext
26579 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26580 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26581 if test $ac_cv_func_socket = yes; then
26582 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26583 echo "${ECHO_T}using libc's socket" >&6; }
26586 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26587 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26588 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 ac_check_lib_save_LIBS=$LIBS
26592 LIBS="-lxnet $LIBS"
26593 cat >conftest.$ac_ext <<_ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h. */
26600 /* Override any GCC internal prototype to avoid an error.
26601 Use char because int might match the return type of a GCC
26602 builtin and then its argument prototype would still apply. */
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (ac_try="$ac_link"
26617 case "(($ac_try" in
26618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619 *) ac_try_echo=$ac_try;;
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622 (eval "$ac_link") 2>conftest.er1
26624 grep -v '^ *+' conftest.er1 >conftest.err
26626 cat conftest.err >&5
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); } && {
26629 test -z "$ac_c_werror_flag" ||
26630 test ! -s conftest.err
26631 } && test -s conftest$ac_exeext &&
26632 $as_test_x conftest$ac_exeext; then
26633 ac_cv_lib_xnet_socket=yes
26635 echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26638 ac_cv_lib_xnet_socket=no
26641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26642 conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26645 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26646 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26647 if test $ac_cv_lib_xnet_socket = yes; then
26648 cat >>confdefs.h <<_ACEOF
26649 #define HAVE_LIBXNET 1
26652 LIBS="-lxnet $LIBS"
26657 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26658 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26659 if test "${ac_cv_lib_socket_socket+set}" = set; then
26660 echo $ECHO_N "(cached) $ECHO_C" >&6
26662 ac_check_lib_save_LIBS=$LIBS
26663 LIBS="-lsocket $LIBS"
26664 cat >conftest.$ac_ext <<_ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h. */
26671 /* Override any GCC internal prototype to avoid an error.
26672 Use char because int might match the return type of a GCC
26673 builtin and then its argument prototype would still apply. */
26686 rm -f conftest.$ac_objext conftest$ac_exeext
26687 if { (ac_try="$ac_link"
26688 case "(($ac_try" in
26689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26690 *) ac_try_echo=$ac_try;;
26692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26693 (eval "$ac_link") 2>conftest.er1
26695 grep -v '^ *+' conftest.er1 >conftest.err
26697 cat conftest.err >&5
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } && {
26700 test -z "$ac_c_werror_flag" ||
26701 test ! -s conftest.err
26702 } && test -s conftest$ac_exeext &&
26703 $as_test_x conftest$ac_exeext; then
26704 ac_cv_lib_socket_socket=yes
26706 echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26709 ac_cv_lib_socket_socket=no
26712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26713 conftest$ac_exeext conftest.$ac_ext
26714 LIBS=$ac_check_lib_save_LIBS
26716 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26717 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26718 if test $ac_cv_lib_socket_socket = yes; then
26719 cat >>confdefs.h <<_ACEOF
26720 #define HAVE_LIBSOCKET 1
26723 LIBS="-lsocket $LIBS"
26728 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26729 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26730 if test "${ac_cv_lib_inet_socket+set}" = set; then
26731 echo $ECHO_N "(cached) $ECHO_C" >&6
26733 ac_check_lib_save_LIBS=$LIBS
26734 LIBS="-linet $LIBS"
26735 cat >conftest.$ac_ext <<_ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h. */
26742 /* Override any GCC internal prototype to avoid an error.
26743 Use char because int might match the return type of a GCC
26744 builtin and then its argument prototype would still apply. */
26757 rm -f conftest.$ac_objext conftest$ac_exeext
26758 if { (ac_try="$ac_link"
26759 case "(($ac_try" in
26760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761 *) ac_try_echo=$ac_try;;
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764 (eval "$ac_link") 2>conftest.er1
26766 grep -v '^ *+' conftest.er1 >conftest.err
26768 cat conftest.err >&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } && {
26771 test -z "$ac_c_werror_flag" ||
26772 test ! -s conftest.err
26773 } && test -s conftest$ac_exeext &&
26774 $as_test_x conftest$ac_exeext; then
26775 ac_cv_lib_inet_socket=yes
26777 echo "$as_me: failed program was:" >&5
26778 sed 's/^/| /' conftest.$ac_ext >&5
26780 ac_cv_lib_inet_socket=no
26783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26784 conftest$ac_exeext conftest.$ac_ext
26785 LIBS=$ac_check_lib_save_LIBS
26787 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26788 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26789 if test $ac_cv_lib_inet_socket = yes; then
26790 cat >>confdefs.h <<_ACEOF
26791 #define HAVE_LIBINET 1
26794 LIBS="-linet $LIBS"
26804 # Check whether --with-tcp-wrappers was given.
26805 if test "${with_tcp_wrappers+set}" = set; then
26806 withval=$with_tcp_wrappers;
26807 if test "x$withval" != "xno" ; then
26809 LIBS="$saved_LIBS -lwrap"
26810 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26811 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26812 if test "${ac_cv_search_nanosleep+set}" = set; then
26813 echo $ECHO_N "(cached) $ECHO_C" >&6
26815 ac_func_search_save_LIBS=$LIBS
26816 cat >conftest.$ac_ext <<_ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h. */
26823 /* Override any GCC internal prototype to avoid an error.
26824 Use char because int might match the return type of a GCC
26825 builtin and then its argument prototype would still apply. */
26833 return nanosleep ();
26838 for ac_lib in '' rt; do
26839 if test -z "$ac_lib"; then
26840 ac_res="none required"
26843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26845 rm -f conftest.$ac_objext conftest$ac_exeext
26846 if { (ac_try="$ac_link"
26847 case "(($ac_try" in
26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849 *) ac_try_echo=$ac_try;;
26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852 (eval "$ac_link") 2>conftest.er1
26854 grep -v '^ *+' conftest.er1 >conftest.err
26856 cat conftest.err >&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } && {
26859 test -z "$ac_c_werror_flag" ||
26860 test ! -s conftest.err
26861 } && test -s conftest$ac_exeext &&
26862 $as_test_x conftest$ac_exeext; then
26863 ac_cv_search_nanosleep=$ac_res
26865 echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26873 if test "${ac_cv_search_nanosleep+set}" = set; then
26877 if test "${ac_cv_search_nanosleep+set}" = set; then
26880 ac_cv_search_nanosleep=no
26882 rm conftest.$ac_ext
26883 LIBS=$ac_func_search_save_LIBS
26885 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26886 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26887 ac_res=$ac_cv_search_nanosleep
26888 if test "$ac_res" != no; then
26889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26893 { echo "$as_me:$LINENO: checking for libwrap" >&5
26894 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26895 cat >conftest.$ac_ext <<_ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h. */
26902 #include <sys/types.h>
26904 int deny_severity = 0;
26905 int allow_severity = 0;
26906 struct request_info *req;
26918 rm -f conftest.$ac_objext conftest$ac_exeext
26919 if { (ac_try="$ac_link"
26920 case "(($ac_try" in
26921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922 *) ac_try_echo=$ac_try;;
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925 (eval "$ac_link") 2>conftest.er1
26927 grep -v '^ *+' conftest.er1 >conftest.err
26929 cat conftest.err >&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } && {
26932 test -z "$ac_c_werror_flag" ||
26933 test ! -s conftest.err
26934 } && test -s conftest$ac_exeext &&
26935 $as_test_x conftest$ac_exeext; then
26937 { echo "$as_me:$LINENO: result: yes" >&5
26938 echo "${ECHO_T}yes" >&6; }
26940 cat >>confdefs.h <<\_ACEOF
26941 #define HAVE_LIBWRAP 1
26949 echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26953 LIBS="$saved_LIBS -lwrap -lnsl"
26954 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26955 cat >conftest.$ac_ext <<_ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h. */
26962 #include <sys/types.h>
26964 int deny_severity = 0;
26965 int allow_severity = 0;
26966 struct request_info *req;
26978 rm -f conftest.$ac_objext conftest$ac_exeext
26979 if { (ac_try="$ac_link"
26980 case "(($ac_try" in
26981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26982 *) ac_try_echo=$ac_try;;
26984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26985 (eval "$ac_link") 2>conftest.er1
26987 grep -v '^ *+' conftest.er1 >conftest.err
26989 cat conftest.err >&5
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); } && {
26992 test -z "$ac_c_werror_flag" ||
26993 test ! -s conftest.err
26994 } && test -s conftest$ac_exeext &&
26995 $as_test_x conftest$ac_exeext; then
26997 { echo "$as_me:$LINENO: result: yes" >&5
26998 echo "${ECHO_T}yes" >&6; }
27000 cat >>confdefs.h <<\_ACEOF
27001 #define HAVE_LIBWRAP 1
27009 echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27013 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27014 echo "$as_me: error: *** libwrap missing" >&2;}
27015 { (exit 1); exit 1; }; }
27020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27021 conftest$ac_exeext conftest.$ac_ext
27026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27027 conftest$ac_exeext conftest.$ac_ext
27034 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27035 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27037 # Check whether --with-openssl was given.
27038 if test "${with_openssl+set}" = set; then
27039 withval=$with_openssl;
27040 with_openssl_directory=${withval}
27046 if test "x$with_openssl_directory" != "xno"; then
27047 OPENSSL_LIBS="-lssl -lcrypto"
27050 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27052 # Make sure the $with_openssl_directory also makes sense
27054 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27055 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27056 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27060 saved_LIBS="${LIBS}"
27061 saved_CFLAGS="${CFLAGS}"
27062 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27063 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27065 cat >conftest.$ac_ext <<_ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h. */
27072 #include <openssl/ssl.h>
27078 CRYPTO_set_id_callback(NULL);
27084 rm -f conftest.$ac_objext conftest$ac_exeext
27085 if { (ac_try="$ac_link"
27086 case "(($ac_try" in
27087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088 *) ac_try_echo=$ac_try;;
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091 (eval "$ac_link") 2>conftest.er1
27093 grep -v '^ *+' conftest.er1 >conftest.err
27095 cat conftest.err >&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } && {
27098 test -z "$ac_c_werror_flag" ||
27099 test ! -s conftest.err
27100 } && test -s conftest$ac_exeext &&
27101 $as_test_x conftest$ac_exeext; then
27104 support_crypto="yes"
27107 echo "$as_me: failed program was:" >&5
27108 sed 's/^/| /' conftest.$ac_ext >&5
27112 support_crypto="no"
27117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27118 conftest$ac_exeext conftest.$ac_ext
27120 cat >conftest.$ac_ext <<_ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27127 #include <openssl/evp.h>
27139 rm -f conftest.$ac_objext conftest$ac_exeext
27140 if { (ac_try="$ac_link"
27141 case "(($ac_try" in
27142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143 *) ac_try_echo=$ac_try;;
27145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146 (eval "$ac_link") 2>conftest.er1
27148 grep -v '^ *+' conftest.er1 >conftest.err
27150 cat conftest.err >&5
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); } && {
27153 test -z "$ac_c_werror_flag" ||
27154 test ! -s conftest.err
27155 } && test -s conftest$ac_exeext &&
27156 $as_test_x conftest$ac_exeext; then
27158 ac_cv_openssl_sha2="yes"
27161 echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27165 ac_cv_openssl_sha2="no"
27170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27171 conftest$ac_exeext conftest.$ac_ext
27173 cat >conftest.$ac_ext <<_ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27180 #include <openssl/evp.h>
27192 rm -f conftest.$ac_objext conftest$ac_exeext
27193 if { (ac_try="$ac_link"
27194 case "(($ac_try" in
27195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27196 *) ac_try_echo=$ac_try;;
27198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27199 (eval "$ac_link") 2>conftest.er1
27201 grep -v '^ *+' conftest.er1 >conftest.err
27203 cat conftest.err >&5
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); } && {
27206 test -z "$ac_c_werror_flag" ||
27207 test ! -s conftest.err
27208 } && test -s conftest$ac_exeext &&
27209 $as_test_x conftest$ac_exeext; then
27211 ac_cv_openssl_export="no"
27214 echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27218 ac_cv_openssl_export="yes"
27223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27224 conftest$ac_exeext conftest.$ac_ext
27226 LIBS="${saved_LIBS}"
27227 CFLAGS="${saved_CFLAGS}"
27229 if test "$support_tls" = "yes"; then
27231 cat >>confdefs.h <<\_ACEOF
27232 #define HAVE_OPENSSL 1
27236 cat >>confdefs.h <<\_ACEOF
27241 cat >>confdefs.h <<\_ACEOF
27242 #define HAVE_CRYPTO 1
27247 if test "$ac_cv_openssl_sha2" = "yes"; then
27249 cat >>confdefs.h <<\_ACEOF
27250 #define HAVE_SHA2 1
27255 if test "$ac_cv_openssl_export" = "yes"; then
27257 cat >>confdefs.h <<\_ACEOF
27258 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27264 support_crypto="no"
27269 if test "$support_tls" = "no"; then
27273 if test "$support_crypto" = "no"; then
27277 { echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27278 echo $ECHO_N "checking for EVP_PKEY_encrypt_old in -lssl... $ECHO_C" >&6; }
27279 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27280 echo $ECHO_N "(cached) $ECHO_C" >&6
27282 ac_check_lib_save_LIBS=$LIBS
27284 cat >conftest.$ac_ext <<_ACEOF
27287 cat confdefs.h >>conftest.$ac_ext
27288 cat >>conftest.$ac_ext <<_ACEOF
27289 /* end confdefs.h. */
27291 /* Override any GCC internal prototype to avoid an error.
27292 Use char because int might match the return type of a GCC
27293 builtin and then its argument prototype would still apply. */
27297 char EVP_PKEY_encrypt_old ();
27301 return EVP_PKEY_encrypt_old ();
27306 rm -f conftest.$ac_objext conftest$ac_exeext
27307 if { (ac_try="$ac_link"
27308 case "(($ac_try" in
27309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310 *) ac_try_echo=$ac_try;;
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313 (eval "$ac_link") 2>conftest.er1
27315 grep -v '^ *+' conftest.er1 >conftest.err
27317 cat conftest.err >&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); } && {
27320 test -z "$ac_c_werror_flag" ||
27321 test ! -s conftest.err
27322 } && test -s conftest$ac_exeext &&
27323 $as_test_x conftest$ac_exeext; then
27324 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27326 echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27329 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27333 conftest$ac_exeext conftest.$ac_ext
27334 LIBS=$ac_check_lib_save_LIBS
27336 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27337 echo "${ECHO_T}$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27338 if test $ac_cv_lib_ssl_EVP_PKEY_encrypt_old = yes; then
27340 cat >>confdefs.h <<\_ACEOF
27341 #define HAVE_OPENSSLv1 1
27348 { echo "$as_me:$LINENO: result: $support_tls" >&5
27349 echo "${ECHO_T}$support_tls" >&6; }
27353 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27354 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27355 if test "${ac_cv_search_dlopen+set}" = set; then
27356 echo $ECHO_N "(cached) $ECHO_C" >&6
27358 ac_func_search_save_LIBS=$LIBS
27359 cat >conftest.$ac_ext <<_ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h. */
27366 /* Override any GCC internal prototype to avoid an error.
27367 Use char because int might match the return type of a GCC
27368 builtin and then its argument prototype would still apply. */
27381 for ac_lib in '' dl; do
27382 if test -z "$ac_lib"; then
27383 ac_res="none required"
27386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27388 rm -f conftest.$ac_objext conftest$ac_exeext
27389 if { (ac_try="$ac_link"
27390 case "(($ac_try" in
27391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392 *) ac_try_echo=$ac_try;;
27394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395 (eval "$ac_link") 2>conftest.er1
27397 grep -v '^ *+' conftest.er1 >conftest.err
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } && {
27402 test -z "$ac_c_werror_flag" ||
27403 test ! -s conftest.err
27404 } && test -s conftest$ac_exeext &&
27405 $as_test_x conftest$ac_exeext; then
27406 ac_cv_search_dlopen=$ac_res
27408 echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27416 if test "${ac_cv_search_dlopen+set}" = set; then
27420 if test "${ac_cv_search_dlopen+set}" = set; then
27423 ac_cv_search_dlopen=no
27425 rm conftest.$ac_ext
27426 LIBS=$ac_func_search_save_LIBS
27428 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27429 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27430 ac_res=$ac_cv_search_dlopen
27431 if test "$ac_res" != no; then
27432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27437 working_dir=`eval echo ${prefix}/var/bacula/working`
27439 # Check whether --with-working-dir was given.
27440 if test "${with_working_dir+set}" = set; then
27441 withval=$with_working_dir;
27442 if test "x$withval" != "xno" ; then
27443 working_dir=$withval
27454 # Check whether --with-archivedir was given.
27455 if test "${with_archivedir+set}" = set; then
27456 withval=$with_archivedir;
27457 if test "x$withval" != "xno" ; then
27458 archivedir=$withval
27467 basename=`hostname`
27469 # Check whether --with-basename was given.
27470 if test "${with_basename+set}" = set; then
27471 withval=$with_basename;
27472 if test "x$withval" != "xno" ; then
27482 hostname=`uname -n | cut -d '.' -f 1`
27483 if test x${hostname} = x ; then
27484 hostname="localhost"
27487 # Check whether --with-hostname was given.
27488 if test "${with_hostname+set}" = set; then
27489 withval=$with_hostname;
27490 if test "x$withval" != "xno" ; then
27501 scriptdir=`eval echo ${sysconfdir}`
27503 # Check whether --with-scriptdir was given.
27504 if test "${with_scriptdir+set}" = set; then
27505 withval=$with_scriptdir;
27506 if test "x$withval" != "xno" ; then
27519 # Check whether --with-bsrdir was given.
27520 if test "${with_bsrdir+set}" = set; then
27521 withval=$with_bsrdir;
27522 if test "x$withval" != "xno" ; then
27534 # Check whether --with-logdir was given.
27535 if test "${with_logdir+set}" = set; then
27536 withval=$with_logdir;
27537 if test "x$withval" != "xno" ; then
27548 # ------------------------------------------
27549 # Where to place plugindir (plugin files)
27550 # ------------------------------------------
27551 plugindir=`eval echo ${libdir}`
27553 # Check whether --with-plugindir was given.
27554 if test "${with_plugindir+set}" = set; then
27555 withval=$with_plugindir;
27556 if test "x$withval" != "xno" ; then
27566 dump_email=root@localhost
27568 # Check whether --with-dump-email was given.
27569 if test "${with_dump_email+set}" = set; then
27570 withval=$with_dump_email;
27571 if test "x$withval" != "xno" ; then
27572 dump_email=$withval
27581 job_email=root@localhost
27583 # Check whether --with-job-email was given.
27584 if test "${with_job_email+set}" = set; then
27585 withval=$with_job_email;
27586 if test "x$withval" != "xno" ; then
27596 smtp_host=localhost
27598 # Check whether --with-smtp_host was given.
27599 if test "${with_smtp_host+set}" = set; then
27600 withval=$with_smtp_host;
27601 if test "x$withval" != "xno" ; then
27613 # Check whether --with-pid-dir was given.
27614 if test "${with_pid_dir+set}" = set; then
27615 withval=$with_pid_dir;
27616 if test "x$withval" != "xno" ; then
27624 cat >>confdefs.h <<_ACEOF
27625 #define _PATH_BACULA_PIDDIR "$piddir"
27630 subsysdir=/var/run/subsys
27631 if test -d /var/run/subsys; then
27632 subsysdir=/var/run/subsys
27633 elif test -d /var/lock/subsys; then
27634 subsysdir=/var/lock/subsys
27636 subsysdir=/var/run/subsys
27639 # Check whether --with-subsys-dir was given.
27640 if test "${with_subsys_dir+set}" = set; then
27641 withval=$with_subsys_dir;
27642 if test "x$withval" != "xno" ; then
27654 # Check whether --with-baseport was given.
27655 if test "${with_baseport+set}" = set; then
27656 withval=$with_baseport;
27657 if test "x$withval" != "xno" ; then
27666 dir_port=`expr $baseport`
27667 fd_port=`expr $baseport + 1`
27668 sd_port=`expr $fd_port + 1`
27676 # Check whether --with-dir-password was given.
27677 if test "${with_dir_password+set}" = set; then
27678 withval=$with_dir_password;
27679 if test "x$withval" != "xno" ; then
27680 dir_password=$withval
27687 if test "x$dir_password" = "x" ; then
27688 if test "x$OPENSSL" = "xnone" ; then
27689 key=`autoconf/randpass 33`
27691 key=`openssl rand -base64 33`
27698 # Check whether --with-fd-password was given.
27699 if test "${with_fd_password+set}" = set; then
27700 withval=$with_fd_password;
27701 if test "x$withval" != "xno" ; then
27702 fd_password=$withval
27709 if test "x$fd_password" = "x" ; then
27710 if test "x$OPENSSL" = "xnone" ; then
27711 key=`autoconf/randpass 37`
27713 key=`openssl rand -base64 33`
27720 # Check whether --with-sd-password was given.
27721 if test "${with_sd_password+set}" = set; then
27722 withval=$with_sd_password;
27723 if test "x$withval" != "xno" ; then
27724 sd_password=$withval
27731 if test "x$sd_password" = "x" ; then
27732 if test "x$OPENSSL" = "xnone" ; then
27733 key=`autoconf/randpass 41`
27735 key=`openssl rand -base64 33`
27742 # Check whether --with-mon-dir-password was given.
27743 if test "${with_mon_dir_password+set}" = set; then
27744 withval=$with_mon_dir_password;
27745 if test "x$withval" != "xno" ; then
27746 mon_dir_password=$withval
27753 if test "x$mon_dir_password" = "x" ; then
27754 if test "x$OPENSSL" = "xnone" ; then
27755 key=`autoconf/randpass 33`
27757 key=`openssl rand -base64 33`
27759 mon_dir_password=$key
27764 # Check whether --with-mon-fd-password was given.
27765 if test "${with_mon_fd_password+set}" = set; then
27766 withval=$with_mon_fd_password;
27767 if test "x$withval" != "xno" ; then
27768 mon_fd_password=$withval
27775 if test "x$mon_fd_password" = "x" ; then
27776 if test "x$OPENSSL" = "xnone" ; then
27777 key=`autoconf/randpass 37`
27779 key=`openssl rand -base64 33`
27781 mon_fd_password=$key
27786 # Check whether --with-mon-sd-password was given.
27787 if test "${with_mon_sd_password+set}" = set; then
27788 withval=$with_mon_sd_password;
27789 if test "x$withval" != "xno" ; then
27790 mon_sd_password=$withval
27797 if test "x$mon_sd_password" = "x" ; then
27798 if test "x$OPENSSL" = "xnone" ; then
27799 key=`autoconf/randpass 41`
27801 key=`openssl rand -base64 33`
27803 mon_sd_password=$key
27815 # Check whether --with-db_name was given.
27816 if test "${with_db_name+set}" = set; then
27817 withval=$with_db_name;
27818 if test "x$withval" != "x" ; then
27829 # Check whether --with-db_user was given.
27830 if test "${with_db_user+set}" = set; then
27831 withval=$with_db_user;
27832 if test "x$withval" != "x" ; then
27843 # Check whether --with-db_password was given.
27844 if test "${with_db_password+set}" = set; then
27845 withval=$with_db_password;
27846 if test "x$withval" != "x" ; then
27847 db_password=$withval
27857 # Check whether --with-db_port was given.
27858 if test "${with_db_port+set}" = set; then
27859 withval=$with_db_port;
27860 if test "x$withval" != "x" ; then
27870 # Handle users and groups for each daemon
27874 # Check whether --with-dir_user was given.
27875 if test "${with_dir_user+set}" = set; then
27876 withval=$with_dir_user;
27877 if test "x$withval" != "x" ; then
27887 # Check whether --with-dir_group was given.
27888 if test "${with_dir_group+set}" = set; then
27889 withval=$with_dir_group;
27890 if test "x$withval" != "x" ; then
27900 # Check whether --with-sd_user was given.
27901 if test "${with_sd_user+set}" = set; then
27902 withval=$with_sd_user;
27903 if test "x$withval" != "x" ; then
27913 # Check whether --with-sd_group was given.
27914 if test "${with_sd_group+set}" = set; then
27915 withval=$with_sd_group;
27916 if test "x$withval" != "x" ; then
27926 # Check whether --with-fd_user was given.
27927 if test "${with_fd_user+set}" = set; then
27928 withval=$with_fd_user;
27929 if test "x$withval" != "x" ; then
27939 # Check whether --with-fd_group was given.
27940 if test "${with_fd_group+set}" = set; then
27941 withval=$with_fd_group;
27942 if test "x$withval" != "x" ; then
27959 # Check whether --with-sbin-perm was given.
27960 if test "${with_sbin_perm+set}" = set; then
27961 withval=$with_sbin_perm;
27962 if test "x$withval" != "x" ; then
27975 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27976 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27978 # Check whether --with-postgresql was given.
27979 if test "${with_postgresql+set}" = set; then
27980 withval=$with_postgresql;
27981 if test "$withval" != "no"; then
27982 if test "$db_found" = "yes"; then
27983 { echo "$as_me:$LINENO: result: error" >&5
27984 echo "${ECHO_T}error" >&6; }
27985 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27986 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27987 { (exit 1); exit 1; }; };
27989 if test "$withval" = "yes"; then
27990 PG_CONFIG=`which pg_config`
27991 if test -n "$PG_CONFIG";then
27992 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27993 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27994 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27995 elif test -f /usr/local/include/libpq-fe.h; then
27996 POSTGRESQL_INCDIR=/usr/local/include
27997 if test -d /usr/local/lib64; then
27998 POSTGRESQL_LIBDIR=/usr/local/lib64
28000 POSTGRESQL_LIBDIR=/usr/local/lib
28002 POSTGRESQL_BINDIR=/usr/local/bin
28003 elif test -f /usr/include/libpq-fe.h; then
28004 POSTGRESQL_INCDIR=/usr/include
28005 if test -d /usr/lib64; then
28006 POSTGRESQL_LIBDIR=/usr/lib64
28008 POSTGRESQL_LIBDIR=/usr/lib
28010 POSTGRESQL_BINDIR=/usr/bin
28011 elif test -f /usr/include/pgsql/libpq-fe.h; then
28012 POSTGRESQL_INCDIR=/usr/include/pgsql
28013 if test -d /usr/lib64/pgsql; then
28014 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28016 POSTGRESQL_LIBDIR=/usr/lib/pgsql
28018 POSTGRESQL_BINDIR=/usr/bin
28019 elif test -f /usr/include/postgresql/libpq-fe.h; then
28020 POSTGRESQL_INCDIR=/usr/include/postgresql
28021 if test -d /usr/lib64/postgresql; then
28022 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28024 POSTGRESQL_LIBDIR=/usr/lib/postgresql
28026 POSTGRESQL_BINDIR=/usr/bin
28028 { echo "$as_me:$LINENO: result: no" >&5
28029 echo "${ECHO_T}no" >&6; }
28030 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28031 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28032 { (exit 1); exit 1; }; }
28034 elif test -f $withval/include/libpq-fe.h; then
28035 POSTGRESQL_INCDIR=$withval/include
28036 POSTGRESQL_LIBDIR=$withval/lib
28037 POSTGRESQL_BINDIR=$withval/bin
28038 elif test -f $withval/include/postgresql/libpq-fe.h; then
28039 POSTGRESQL_INCDIR=$withval/include/postgresql
28040 if test -d $withval/lib64; then
28041 POSTGRESQL_LIBDIR=$withval/lib64
28043 POSTGRESQL_LIBDIR=$withval/lib
28045 POSTGRESQL_BINDIR=$withval/bin
28047 { echo "$as_me:$LINENO: result: no" >&5
28048 echo "${ECHO_T}no" >&6; }
28049 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28050 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28051 { (exit 1); exit 1; }; }
28053 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28054 { echo "$as_me:$LINENO: checking for crypt" >&5
28055 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
28056 if test "${ac_cv_func_crypt+set}" = set; then
28057 echo $ECHO_N "(cached) $ECHO_C" >&6
28059 cat >conftest.$ac_ext <<_ACEOF
28062 cat confdefs.h >>conftest.$ac_ext
28063 cat >>conftest.$ac_ext <<_ACEOF
28064 /* end confdefs.h. */
28065 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28067 #define crypt innocuous_crypt
28069 /* System header to define __stub macros and hopefully few prototypes,
28070 which can conflict with char crypt (); below.
28071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28072 <limits.h> exists even on freestanding compilers. */
28075 # include <limits.h>
28077 # include <assert.h>
28082 /* Override any GCC internal prototype to avoid an error.
28083 Use char because int might match the return type of a GCC
28084 builtin and then its argument prototype would still apply. */
28089 /* The GNU C library defines this for functions which it implements
28090 to always fail with ENOSYS. Some functions are actually named
28091 something starting with __ and the normal name is an alias. */
28092 #if defined __stub_crypt || defined __stub___crypt
28104 rm -f conftest.$ac_objext conftest$ac_exeext
28105 if { (ac_try="$ac_link"
28106 case "(($ac_try" in
28107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108 *) ac_try_echo=$ac_try;;
28110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111 (eval "$ac_link") 2>conftest.er1
28113 grep -v '^ *+' conftest.er1 >conftest.err
28115 cat conftest.err >&5
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } && {
28118 test -z "$ac_c_werror_flag" ||
28119 test ! -s conftest.err
28120 } && test -s conftest$ac_exeext &&
28121 $as_test_x conftest$ac_exeext; then
28122 ac_cv_func_crypt=yes
28124 echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28127 ac_cv_func_crypt=no
28130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28131 conftest$ac_exeext conftest.$ac_ext
28133 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28134 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28135 if test $ac_cv_func_crypt = yes; then
28138 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28139 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28140 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28143 ac_check_lib_save_LIBS=$LIBS
28144 LIBS="-lcrypt $LIBS"
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28152 /* Override any GCC internal prototype to avoid an error.
28153 Use char because int might match the return type of a GCC
28154 builtin and then its argument prototype would still apply. */
28167 rm -f conftest.$ac_objext conftest$ac_exeext
28168 if { (ac_try="$ac_link"
28169 case "(($ac_try" in
28170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171 *) ac_try_echo=$ac_try;;
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_link") 2>conftest.er1
28176 grep -v '^ *+' conftest.er1 >conftest.err
28178 cat conftest.err >&5
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } && {
28181 test -z "$ac_c_werror_flag" ||
28182 test ! -s conftest.err
28183 } && test -s conftest$ac_exeext &&
28184 $as_test_x conftest$ac_exeext; then
28185 ac_cv_lib_crypt_crypt=yes
28187 echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28190 ac_cv_lib_crypt_crypt=no
28193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28194 conftest$ac_exeext conftest.$ac_ext
28195 LIBS=$ac_check_lib_save_LIBS
28197 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28198 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28199 if test $ac_cv_lib_crypt_crypt = yes; then
28200 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28205 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28206 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28207 SQL_BINDIR=$POSTGRESQL_BINDIR
28208 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28210 cat >>confdefs.h <<\_ACEOF
28211 #define HAVE_POSTGRESQL 1
28214 { echo "$as_me:$LINENO: result: yes" >&5
28215 echo "${ECHO_T}yes" >&6; }
28217 support_postgresql=yes
28221 { echo "$as_me:$LINENO: result: no" >&5
28222 echo "${ECHO_T}no" >&6; }
28227 { echo "$as_me:$LINENO: result: no" >&5
28228 echo "${ECHO_T}no" >&6; }
28240 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28241 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28243 # Check whether --with-mysql was given.
28244 if test "${with_mysql+set}" = set; then
28245 withval=$with_mysql;
28246 if test "$withval" != "no"; then
28247 if test "$withval" = "yes"; then
28248 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28249 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28250 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28251 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28252 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28254 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28256 MYSQL_BINDIR=/usr/local/mysql/bin
28257 elif test -f /usr/include/mysql/mysql.h; then
28258 MYSQL_INCDIR=/usr/include/mysql
28259 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28260 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28261 MYSQL_LIBDIR=/usr/lib64/mysql
28262 elif test -f /usr/lib64/libmysqlclient_r.a \
28263 -o -f /usr/lib64/libmysqlclient_r.so; then
28264 MYSQL_LIBDIR=/usr/lib64
28265 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28266 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28267 MYSQL_LIBDIR=/usr/lib/mysql
28269 MYSQL_LIBDIR=/usr/lib
28271 MYSQL_BINDIR=/usr/bin
28272 elif test -f /usr/include/mysql.h; then
28273 MYSQL_INCDIR=/usr/include
28274 if test -f /usr/lib64/libmysqlclient_r.a \
28275 -o -f /usr/lib64/libmysqlclient_r.so; then
28276 MYSQL_LIBDIR=/usr/lib64
28278 MYSQL_LIBDIR=/usr/lib
28280 MYSQL_BINDIR=/usr/bin
28281 elif test -f /usr/local/include/mysql/mysql.h; then
28282 MYSQL_INCDIR=/usr/local/include/mysql
28283 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28284 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28285 MYSQL_LIBDIR=/usr/local/lib64/mysql
28287 MYSQL_LIBDIR=/usr/local/lib/mysql
28289 MYSQL_BINDIR=/usr/local/bin
28290 elif test -f /usr/local/include/mysql.h; then
28291 MYSQL_INCDIR=/usr/local/include
28292 if test -f /usr/local/lib64/libmysqlclient_r.a \
28293 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28294 MYSQL_LIBDIR=/usr/local/lib64
28296 MYSQL_LIBDIR=/usr/local/lib
28298 MYSQL_BINDIR=/usr/local/bin
28300 { echo "$as_me:$LINENO: result: no" >&5
28301 echo "${ECHO_T}no" >&6; }
28302 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28303 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28304 { (exit 1); exit 1; }; }
28307 if test -f $withval/include/mysql/mysql.h; then
28308 MYSQL_INCDIR=$withval/include/mysql
28309 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28310 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28311 MYSQL_LIBDIR=$withval/lib64/mysql
28312 elif test -f $withval/lib64/libmysqlclient_r.a \
28313 -o -f $withval/lib64/libmysqlclient_r.so; then
28314 MYSQL_LIBDIR=$withval/lib64
28315 elif test -f $withval/lib/libmysqlclient_r.a \
28316 -o -f $withval/lib/libmysqlclient_r.so; then
28317 MYSQL_LIBDIR=$withval/lib
28319 MYSQL_LIBDIR=$withval/lib/mysql
28321 MYSQL_BINDIR=$withval/bin
28322 elif test -f $withval/include/mysql.h; then
28323 MYSQL_INCDIR=$withval/include
28324 if test -f $withval/lib64/libmysqlclient_r.a \
28325 -o -f $withval/lib64/libmysqlclient_r.so; then
28326 MYSQL_LIBDIR=$withval/lib64
28328 MYSQL_LIBDIR=$withval/lib
28330 MYSQL_BINDIR=$withval/bin
28332 { echo "$as_me:$LINENO: result: no" >&5
28333 echo "${ECHO_T}no" >&6; }
28334 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28335 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28336 { (exit 1); exit 1; }; }
28339 SQL_INCLUDE=-I$MYSQL_INCDIR
28340 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28341 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28342 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28343 cat >>confdefs.h <<\_ACEOF
28344 #define HAVE_THREAD_SAFE_MYSQL 1
28348 SQL_BINDIR=$MYSQL_BINDIR
28349 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28352 cat >>confdefs.h <<\_ACEOF
28353 #define HAVE_MYSQL 1
28356 { echo "$as_me:$LINENO: result: yes" >&5
28357 echo "${ECHO_T}yes" >&6; }
28364 { echo "$as_me:$LINENO: result: no" >&5
28365 echo "${ECHO_T}no" >&6; }
28373 # Check whether --with-embedded-mysql was given.
28374 if test "${with_embedded_mysql+set}" = set; then
28375 withval=$with_embedded_mysql;
28376 if test "$withval" != "no"; then
28377 if test "$withval" = "yes"; then
28378 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28379 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28380 if test -d /usr/local/mysql/lib64/mysql; then
28381 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28383 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28385 MYSQL_BINDIR=/usr/local/mysql/bin
28386 elif test -f /usr/include/mysql/mysql.h; then
28387 MYSQL_INCDIR=/usr/include/mysql
28388 if test -d /usr/lib64/mysql; then
28389 MYSQL_LIBDIR=/usr/lib64/mysql
28391 MYSQL_LIBDIR=/usr/lib/mysql
28393 MYSQL_BINDIR=/usr/bin
28394 elif test -f /usr/include/mysql.h; then
28395 MYSQL_INCDIR=/usr/include
28396 if test -d /usr/lib64; then
28397 MYSQL_LIBDIR=/usr/lib64
28399 MYSQL_LIBDIR=/usr/lib
28401 MYSQL_BINDIR=/usr/bin
28402 elif test -f /usr/local/include/mysql/mysql.h; then
28403 MYSQL_INCDIR=/usr/local/include/mysql
28404 if test -d /usr/local/lib64/mysql; then
28405 MYSQL_LIBDIR=/usr/local/lib64/mysql
28407 MYSQL_LIBDIR=/usr/local/lib/mysql
28409 MYSQL_BINDIR=/usr/local/bin
28410 elif test -f /usr/local/include/mysql.h; then
28411 MYSQL_INCDIR=/usr/local/include
28412 if test -d /usr/local/lib64; then
28413 MYSQL_LIBDIR=/usr/local/lib64
28415 MYSQL_LIBDIR=/usr/local/lib
28417 MYSQL_BINDIR=/usr/local/bin
28419 { echo "$as_me:$LINENO: result: no" >&5
28420 echo "${ECHO_T}no" >&6; }
28421 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28422 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28423 { (exit 1); exit 1; }; }
28426 if test -f $withval/include/mysql/mysql.h; then
28427 MYSQL_INCDIR=$withval/include/mysql
28428 if test -d $withval/lib64/mysql; then
28429 MYSQL_LIBDIR=$withval/lib64/mysql
28431 MYSQL_LIBDIR=$withval/lib/mysql
28433 MYSQL_BINDIR=$withval/bin
28434 elif test -f $withval/include/mysql.h; then
28435 MYSQL_INCDIR=$withval/include
28436 if test -d $withval/lib64; then
28437 MYSQL_LIBDIR=$withval/lib64
28439 MYSQL_LIBDIR=$withval/lib
28441 MYSQL_BINDIR=$withval/bin
28443 { echo "$as_me:$LINENO: result: no" >&5
28444 echo "${ECHO_T}no" >&6; }
28445 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28446 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28447 { (exit 1); exit 1; }; }
28450 SQL_INCLUDE=-I$MYSQL_INCDIR
28451 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28452 SQL_BINDIR=$MYSQL_BINDIR
28453 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28455 cat >>confdefs.h <<\_ACEOF
28456 #define HAVE_MYSQL 1
28459 cat >>confdefs.h <<\_ACEOF
28460 #define HAVE_EMBEDDED_MYSQL 1
28463 { echo "$as_me:$LINENO: result: yes" >&5
28464 echo "${ECHO_T}yes" >&6; }
28471 { echo "$as_me:$LINENO: result: no" >&5
28472 echo "${ECHO_T}no" >&6; }
28488 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28489 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28491 # Check whether --with-ingres was given.
28492 if test "${with_ingres+set}" = set; then
28493 withval=$with_ingres;
28494 if test "$withval" != "no"; then
28495 if test "$withval" = "yes"; then
28496 if test -f ${II_SYSTEM}/files/eqdefc.h; then
28497 INGRES_INCDIR=${II_SYSTEM}/files
28498 INGRES_LIBDIR=${II_SYSTEM}/lib
28499 INGRES_BINDIR=${II_SYSTEM}/bin
28500 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28501 INGRES_INCDIR=${II_SYSTEM}/ingres/files
28502 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28503 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
28505 { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28507 { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28508 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28509 { (exit 1); exit 1; }; }
28512 if test -f $withval/files/eqdefc.h; then
28513 INGRES_INCDIR=$withval/files
28514 INGRES_LIBDIR=$withval/lib
28515 INGRES_BINDIR=$withval/bin
28517 { echo "$as_me:$LINENO: result: no" >&5
28518 echo "${ECHO_T}no" >&6; }
28519 { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
28520 echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
28521 { (exit 1); exit 1; }; }
28524 SQL_INCLUDE=-I$INGRES_INCDIR
28525 SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
28526 SQL_BINDIR=$INGRES_BINDIR
28527 SQL_LIB=$INGRES_LIBDIR/libingres.a
28529 cat >>confdefs.h <<\_ACEOF
28530 #define HAVE_INGRES 1
28533 { echo "$as_me:$LINENO: result: yes" >&5
28534 echo "${ECHO_T}yes" >&6; }
28541 { echo "$as_me:$LINENO: result: no" >&5
28542 echo "${ECHO_T}no" >&6; }
28547 { echo "$as_me:$LINENO: result: no" >&5
28548 echo "${ECHO_T}no" >&6; }
28560 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28561 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28563 # Check whether --with-sqlite3 was given.
28564 if test "${with_sqlite3+set}" = set; then
28565 withval=$with_sqlite3;
28566 if test "$withval" != "no"; then
28567 if test "$withval" = "yes"; then
28568 if test -f /usr/local/include/sqlite3.h; then
28569 SQLITE_INCDIR=/usr/local/include
28570 if test -d /usr/local/lib64; then
28571 SQLITE_LIBDIR=/usr/local/lib64
28573 SQLITE_LIBDIR=/usr/local/lib
28575 SQLITE_BINDIR=/usr/local/bin
28576 elif test -f /usr/include/sqlite3.h; then
28577 SQLITE_INCDIR=/usr/include
28578 if test -d /usr/lib64; then
28579 SQLITE_LIBDIR=/usr/lib64
28581 SQLITE_LIBDIR=/usr/lib
28583 SQLITE_BINDIR=/usr/bin
28584 elif test -f $prefix/include/sqlite3.h; then
28585 SQLITE_INCDIR=$prefix/include
28586 if test -d $prefix/lib64; then
28587 SQLITE_LIBDIR=$prefix/lib64
28589 SQLITE_LIBDIR=$prefix/lib
28591 SQLITE_BINDIR=$prefix/bin
28593 { echo "$as_me:$LINENO: result: no" >&5
28594 echo "${ECHO_T}no" >&6; }
28595 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28596 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28597 { (exit 1); exit 1; }; }
28600 if test -f $withval/sqlite3.h; then
28601 SQLITE_INCDIR=$withval
28602 SQLITE_LIBDIR=$withval
28603 SQLITE_BINDIR=$withval
28604 elif test -f $withval/include/sqlite3.h; then
28605 SQLITE_INCDIR=$withval/include
28606 if test -d $withval/lib64; then
28607 SQLITE_LIBDIR=$withval/lib64
28609 SQLITE_LIBDIR=$withval/lib
28611 SQLITE_BINDIR=$withval/bin
28613 { echo "$as_me:$LINENO: result: no" >&5
28614 echo "${ECHO_T}no" >&6; }
28615 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28616 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28617 { (exit 1); exit 1; }; }
28620 SQL_INCLUDE=-I$SQLITE_INCDIR
28621 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28622 SQL_BINDIR=$SQLITE_BINDIR
28623 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28625 cat >>confdefs.h <<\_ACEOF
28626 #define HAVE_SQLITE3 1
28629 { echo "$as_me:$LINENO: result: yes" >&5
28630 echo "${ECHO_T}yes" >&6; }
28632 support_sqlite3=yes
28637 { echo "$as_me:$LINENO: result: no" >&5
28638 echo "${ECHO_T}no" >&6; }
28643 { echo "$as_me:$LINENO: result: no" >&5
28644 echo "${ECHO_T}no" >&6; }
28654 # BA_CHECK_SQLITE_DB
28658 { echo "$as_me:$LINENO: checking for DBI support" >&5
28659 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28661 # Check whether --with-dbi was given.
28662 if test "${with_dbi+set}" = set; then
28664 if test "$withval" != "no"; then
28665 if test "$withval" = "yes"; then
28666 if test -f /usr/local/include/dbi/dbi.h; then
28667 DBI_INCDIR=/usr/local/dbi/include
28668 if test -d /usr/local/lib64; then
28669 DBI_LIBDIR=/usr/local/lib64
28671 DBI_LIBDIR=/usr/local/lib
28673 DBI_BINDIR=/usr/local/bin
28674 elif test -f /usr/include/dbi/dbi.h; then
28675 DBI_INCDIR=/usr/include
28676 if test -d /usr/lib64; then
28677 DBI_LIBDIR=/usr/lib64
28679 DBI_LIBDIR=/usr/lib
28681 DBI_BINDIR=/usr/bin
28682 elif test -f $prefix/include/dbi/dbi.h; then
28683 DBI_INCDIR=$prefix/include
28684 if test -d $prefix/lib64; then
28685 DBI_LIBDIR=$prefix/lib64
28687 DBI_LIBDIR=$prefix/lib
28689 DBI_BINDIR=$prefix/bin
28691 { echo "$as_me:$LINENO: result: no" >&5
28692 echo "${ECHO_T}no" >&6; }
28693 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28694 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28695 { (exit 1); exit 1; }; }
28697 if test -d /usr/local/lib/dbd; then
28698 DRIVERDIR=/usr/local/lib/dbd
28699 if test -d /usr/local/lib64/dbd; then
28700 DRIVERDIR=/usr/local/lib64/dbd
28702 DRIVERDIR=/usr/local/lib/dbd
28704 elif test -d /usr/lib/dbd; then
28705 DRIVERDIR=/usr/lib/dbd
28706 if test -d /usr/lib64/dbd; then
28707 DRIVERDIR=/usr/lib64/dbd
28709 DRIVERDIR=/usr/lib/dbd
28711 elif test -d $prefix/lib/dbd; then
28712 if test -d $prefix/lib64/dbd; then
28713 DRIVERDIR=$prefix/lib64/dbd
28715 DRIVERDIR=$prefix/lib/dbd
28717 elif test -d /usr/local/lib64/dbd; then
28718 DRIVERDIR=/usr/local/lib64/dbd
28719 elif test -d /usr/lib64/dbd; then
28720 DRIVERDIR=/usr/lib64/dbd
28721 elif test -d $prefix/lib64/dbd; then
28722 DRIVERDIR=$prefix/lib64/dbd
28724 { echo "$as_me:$LINENO: result: no" >&5
28725 echo "${ECHO_T}no" >&6; }
28726 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28727 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28728 { (exit 1); exit 1; }; }
28731 if test -f $withval/dbi.h; then
28732 DBI_INCDIR=$withval
28733 DBI_LIBDIR=$withval
28734 DBI_BINDIR=$withval
28735 elif test -f $withval/include/dbi/dbi.h; then
28736 DBI_INCDIR=$withval/include
28737 if test -d $withval/lib64; then
28738 DBI_LIBDIR=$withval/lib64
28740 DBI_LIBDIR=$withval/lib
28742 DBI_BINDIR=$withval/bin
28744 { echo "$as_me:$LINENO: result: no" >&5
28745 echo "${ECHO_T}no" >&6; }
28746 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28747 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28748 { (exit 1); exit 1; }; }
28750 if test -d $withval/dbd; then
28751 DRIVERDIR=$withval/dbd
28752 elif test -d $withval/lib/; then
28753 if test -d $withval/lib64/dbd; then
28754 DRIVERDIR=$withval/lib64/dbd
28756 DRIVERDIR=$withval/lib/dbd
28758 elif test -d $withval/lib64/dbd; then
28759 DRIVERDIR=$withval/lib64/dbd
28761 { echo "$as_me:$LINENO: result: no" >&5
28762 echo "${ECHO_T}no" >&6; }
28763 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28764 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28765 { (exit 1); exit 1; }; }
28768 SQL_INCLUDE=-I$DBI_INCDIR
28769 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28770 SQL_BINDIR=$DBI_BINDIR
28771 SQL_LIB=$DBI_LIBDIR/libdbi.a
28772 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28775 cat >>confdefs.h <<\_ACEOF
28779 { echo "$as_me:$LINENO: result: yes" >&5
28780 echo "${ECHO_T}yes" >&6; }
28788 { echo "$as_me:$LINENO: result: no" >&5
28789 echo "${ECHO_T}no" >&6; }
28794 { echo "$as_me:$LINENO: result: no" >&5
28795 echo "${ECHO_T}no" >&6; }
28810 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28811 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28813 # Check whether --with-dbi-driver was given.
28814 if test "${with_dbi_driver+set}" = set; then
28815 withval=$with_dbi_driver;
28816 if test "$withval" != "no"; then
28820 if test -f /usr/local/mysql/bin/mysql; then
28821 SQL_BINDIR=/usr/local/mysql/bin
28822 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28823 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28824 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28826 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28828 elif test -f /usr/bin/mysql; then
28829 SQL_BINDIR=/usr/bin
28830 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28831 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28832 SQL_LIBDIR=/usr/lib64/mysql
28833 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28834 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28835 SQL_LIBDIR=/usr/lib/mysql
28837 SQL_LIBDIR=/usr/lib
28839 elif test -f /usr/local/bin/mysql; then
28840 SQL_BINDIR=/usr/local/bin
28841 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28842 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28843 SQL_LIBDIR=/usr/local/lib64/mysql
28844 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28845 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28846 SQL_LIBDIR=/usr/local/lib/mysql
28848 SQL_LIBDIR=/usr/local/lib
28850 elif test -f $withval/bin/mysql; then
28851 SQL_BINDIR=$withval/bin
28852 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28853 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28854 SQL_LIBDIR=$withval/lib64/mysql
28855 elif test -f $withval/lib64/libmysqlclient_r.a \
28856 -o -f $withval/lib64/libmysqlclient_r.so; then
28857 SQL_LIBDIR=$withval/lib64
28858 elif test -f $withval/lib/libmysqlclient_r.a \
28859 -o -f $withval/lib/libmysqlclient_r.so; then
28860 SQL_LIBDIR=$withval/lib/
28862 SQL_LIBDIR=$withval/lib/mysql
28865 { echo "$as_me:$LINENO: result: no" >&5
28866 echo "${ECHO_T}no" >&6; }
28867 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28868 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28869 { (exit 1); exit 1; }; }
28871 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28872 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28874 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28878 db_prog="postgresql"
28879 PG_CONFIG=`which pg_config`
28880 if test -n "$PG_CONFIG"; then
28881 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28882 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28883 elif test -f /usr/local/bin/psql; then
28884 SQL_BINDIR=/usr/local/bin
28885 if test -d /usr/local/lib64; then
28886 SQL_LIBDIR=/usr/local/lib64
28888 SQL_LIBDIR=/usr/local/lib
28890 elif test -f /usr/bin/psql; then
28891 SQL_BINDIR=/usr/local/bin
28892 if test -d /usr/lib64/postgresql; then
28893 SQL_LIBDIR=/usr/lib64/postgresql
28894 elif test -d /usr/lib/postgresql; then
28895 SQL_LIBDIR=/usr/lib/postgresql
28896 elif test -d /usr/lib64; then
28897 SQL_LIBDIR=/usr/lib64
28899 SQL_LIBDIR=/usr/lib
28901 elif test -f $withval/bin/psql; then
28902 SQL_BINDIR=$withval/bin
28903 if test -d $withval/lib64; then
28904 SQL_LIBDIR=$withval/lib64
28906 SQL_LIBDIR=$withval/lib
28909 { echo "$as_me:$LINENO: result: no" >&5
28910 echo "${ECHO_T}no" >&6; }
28911 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28912 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28913 { (exit 1); exit 1; }; }
28915 if test -f $SQL_LIBDIR/libpq.so; then
28916 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28918 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28923 if test -f /usr/local/bin/sqlite; then
28924 SQL_BINDIR=/usr/local/bin
28925 if test -d /usr/local/lib64; then
28926 SQL_LIBDIR=/usr/local/lib64
28928 SQL_LIBDIR=/usr/local/lib
28930 elif test -f /usr/bin/sqlite; then
28931 SQL_BINDIR=/usr/bin
28932 if test -d /usr/lib64; then
28933 SQL_LIBDIR=/usr/lib64
28935 SQL_LIBDIR=/usr/lib
28937 elif test -f $withval/bin/sqlite; then
28938 SQL_BINDIR=$withval/bin
28939 if test -d $withval/lib64; then
28940 SQL_LIBDIR=$withval/lib64
28942 SQL_LIBDIR=$withval/lib
28945 { echo "$as_me:$LINENO: result: no" >&5
28946 echo "${ECHO_T}no" >&6; }
28947 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28948 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28949 { (exit 1); exit 1; }; }
28951 if test -f $SQL_LIBDIR/libsqlite.so; then
28952 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28954 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28959 if test -f /usr/local/bin/sqlite3; then
28960 SQL_BINDIR=/usr/local/bin
28961 if test -d /usr/local/lib64; then
28962 SQL_LIBDIR=/usr/local/lib64
28964 SQL_LIBDIR=/usr/local/lib
28966 elif test -f /usr/bin/sqlite3; then
28967 SQL_BINDIR=/usr/bin
28968 if test -d /usr/lib64; then
28969 SQL_LIBDIR=/usr/lib64
28971 SQL_LIBDIR=/usr/lib
28973 elif test -f $withval/bin/sqlite3; then
28974 SQL_BINDIR=$withval/bin
28975 if test -d $withval/lib64; then
28976 SQL_LIBDIR=$withval/lib64
28978 SQL_LIBDIR=$withval/lib
28981 { echo "$as_me:$LINENO: result: no" >&5
28982 echo "${ECHO_T}no" >&6; }
28983 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28984 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28985 { (exit 1); exit 1; }; }
28987 if test -f $SQL_LIBDIR/libsqlite3.so; then
28988 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28990 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28994 { echo "$as_me:$LINENO: result: no" >&5
28995 echo "${ECHO_T}no" >&6; }
28996 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28997 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28998 { (exit 1); exit 1; }; }
29002 { echo "$as_me:$LINENO: result: yes" >&5
29003 echo "${ECHO_T}yes" >&6; }
29006 { echo "$as_me:$LINENO: result: no" >&5
29007 echo "${ECHO_T}no" >&6; }
29012 { echo "$as_me:$LINENO: result: no" >&5
29013 echo "${ECHO_T}no" >&6; }
29026 support_batch_insert=no
29027 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29029 if test $pkg = 0; then
29030 support_batch_insert=yes
29031 # Check whether --enable-batch-insert was given.
29032 if test "${enable_batch_insert+set}" = set; then
29033 enableval=$enable_batch_insert;
29034 if test x$enableval = xno; then
29035 support_batch_insert=no
29037 support_batch_insert=yes
29045 if test x$DB_TYPE = xpostgresql; then
29046 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29047 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29048 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29049 echo $ECHO_N "(cached) $ECHO_C" >&6
29051 ac_check_lib_save_LIBS=$LIBS
29053 cat >conftest.$ac_ext <<_ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h. */
29060 /* Override any GCC internal prototype to avoid an error.
29061 Use char because int might match the return type of a GCC
29062 builtin and then its argument prototype would still apply. */
29066 char PQisthreadsafe ();
29070 return PQisthreadsafe ();
29075 rm -f conftest.$ac_objext conftest$ac_exeext
29076 if { (ac_try="$ac_link"
29077 case "(($ac_try" in
29078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079 *) ac_try_echo=$ac_try;;
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082 (eval "$ac_link") 2>conftest.er1
29084 grep -v '^ *+' conftest.er1 >conftest.err
29086 cat conftest.err >&5
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); } && {
29089 test -z "$ac_c_werror_flag" ||
29090 test ! -s conftest.err
29091 } && test -s conftest$ac_exeext &&
29092 $as_test_x conftest$ac_exeext; then
29093 ac_cv_lib_pq_PQisthreadsafe=yes
29095 echo "$as_me: failed program was:" >&5
29096 sed 's/^/| /' conftest.$ac_ext >&5
29098 ac_cv_lib_pq_PQisthreadsafe=no
29101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29102 conftest$ac_exeext conftest.$ac_ext
29103 LIBS=$ac_check_lib_save_LIBS
29105 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29106 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29107 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29109 cat >>confdefs.h <<\_ACEOF
29110 #define HAVE_PQISTHREADSAFE 1
29115 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29116 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29117 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29118 echo $ECHO_N "(cached) $ECHO_C" >&6
29120 ac_check_lib_save_LIBS=$LIBS
29122 cat >conftest.$ac_ext <<_ACEOF
29125 cat confdefs.h >>conftest.$ac_ext
29126 cat >>conftest.$ac_ext <<_ACEOF
29127 /* end confdefs.h. */
29129 /* Override any GCC internal prototype to avoid an error.
29130 Use char because int might match the return type of a GCC
29131 builtin and then its argument prototype would still apply. */
29135 char PQputCopyData ();
29139 return PQputCopyData ();
29144 rm -f conftest.$ac_objext conftest$ac_exeext
29145 if { (ac_try="$ac_link"
29146 case "(($ac_try" in
29147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148 *) ac_try_echo=$ac_try;;
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_link") 2>conftest.er1
29153 grep -v '^ *+' conftest.er1 >conftest.err
29155 cat conftest.err >&5
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); } && {
29158 test -z "$ac_c_werror_flag" ||
29159 test ! -s conftest.err
29160 } && test -s conftest$ac_exeext &&
29161 $as_test_x conftest$ac_exeext; then
29162 ac_cv_lib_pq_PQputCopyData=yes
29164 echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29167 ac_cv_lib_pq_PQputCopyData=no
29170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29171 conftest$ac_exeext conftest.$ac_ext
29172 LIBS=$ac_check_lib_save_LIBS
29174 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29175 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29176 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29178 cat >>confdefs.h <<\_ACEOF
29179 #define HAVE_PQ_COPY 1
29184 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29186 support_batch_insert=no
29190 if test x$DB_TYPE = xdbi; then
29194 if test $DB_PROG = postgresql; then
29195 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29196 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29197 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 ac_check_lib_save_LIBS=$LIBS
29202 cat >conftest.$ac_ext <<_ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29209 /* Override any GCC internal prototype to avoid an error.
29210 Use char because int might match the return type of a GCC
29211 builtin and then its argument prototype would still apply. */
29215 char PQisthreadsafe ();
29219 return PQisthreadsafe ();
29224 rm -f conftest.$ac_objext conftest$ac_exeext
29225 if { (ac_try="$ac_link"
29226 case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_link") 2>conftest.er1
29233 grep -v '^ *+' conftest.er1 >conftest.err
29235 cat conftest.err >&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); } && {
29238 test -z "$ac_c_werror_flag" ||
29239 test ! -s conftest.err
29240 } && test -s conftest$ac_exeext &&
29241 $as_test_x conftest$ac_exeext; then
29242 ac_cv_lib_pq_PQisthreadsafe=yes
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29247 ac_cv_lib_pq_PQisthreadsafe=no
29250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29251 conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29254 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29255 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29256 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29257 cat >>confdefs.h <<\_ACEOF
29258 #define HAVE_PQISTHREADSAFE 1
29263 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29264 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29265 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29266 echo $ECHO_N "(cached) $ECHO_C" >&6
29268 ac_check_lib_save_LIBS=$LIBS
29270 cat >conftest.$ac_ext <<_ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h. */
29277 /* Override any GCC internal prototype to avoid an error.
29278 Use char because int might match the return type of a GCC
29279 builtin and then its argument prototype would still apply. */
29283 char PQputCopyData ();
29287 return PQputCopyData ();
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299 (eval "$ac_link") 2>conftest.er1
29301 grep -v '^ *+' conftest.er1 >conftest.err
29303 cat conftest.err >&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } && {
29306 test -z "$ac_c_werror_flag" ||
29307 test ! -s conftest.err
29308 } && test -s conftest$ac_exeext &&
29309 $as_test_x conftest$ac_exeext; then
29310 ac_cv_lib_pq_PQputCopyData=yes
29312 echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29315 ac_cv_lib_pq_PQputCopyData=no
29318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29319 conftest$ac_exeext conftest.$ac_ext
29320 LIBS=$ac_check_lib_save_LIBS
29322 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29323 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29324 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29325 cat >>confdefs.h <<\_ACEOF
29326 #define HAVE_PQ_COPY 1
29331 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29335 if test $DB_PROG = mysql; then
29336 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29340 if test $DB_PROG = sqlite3; then
29341 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29343 { echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29344 echo $ECHO_N "checking for sqlite3_threadsafe in -lsqlite3... $ECHO_C" >&6; }
29345 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29348 ac_check_lib_save_LIBS=$LIBS
29349 LIBS="-lsqlite3 $LIBS"
29350 cat >conftest.$ac_ext <<_ACEOF
29353 cat confdefs.h >>conftest.$ac_ext
29354 cat >>conftest.$ac_ext <<_ACEOF
29355 /* end confdefs.h. */
29357 /* Override any GCC internal prototype to avoid an error.
29358 Use char because int might match the return type of a GCC
29359 builtin and then its argument prototype would still apply. */
29363 char sqlite3_threadsafe ();
29367 return sqlite3_threadsafe ();
29372 rm -f conftest.$ac_objext conftest$ac_exeext
29373 if { (ac_try="$ac_link"
29374 case "(($ac_try" in
29375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29376 *) ac_try_echo=$ac_try;;
29378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29379 (eval "$ac_link") 2>conftest.er1
29381 grep -v '^ *+' conftest.er1 >conftest.err
29383 cat conftest.err >&5
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); } && {
29386 test -z "$ac_c_werror_flag" ||
29387 test ! -s conftest.err
29388 } && test -s conftest$ac_exeext &&
29389 $as_test_x conftest$ac_exeext; then
29390 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29392 echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.$ac_ext >&5
29395 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29399 conftest$ac_exeext conftest.$ac_ext
29400 LIBS=$ac_check_lib_save_LIBS
29402 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29403 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29404 if test $ac_cv_lib_sqlite3_sqlite3_threadsafe = yes; then
29406 cat >>confdefs.h <<\_ACEOF
29407 #define HAVE_SQLITE3_THREADSAFE 1
29414 if test $pkg = 0; then
29415 # Check whether --enable-batch-insert was given.
29416 if test "${enable_batch_insert+set}" = set; then
29417 enableval=$enable_batch_insert;
29418 if test x$enableval = xno; then
29419 support_batch_insert=no
29421 support_batch_insert=yes
29434 if test x$DB_TYPE = xingres; then
29435 support_batch_insert=yes
29438 if test $support_batch_insert = yes ; then
29440 cat >>confdefs.h <<\_ACEOF
29441 #define HAVE_BATCH_FILE_INSERT 1
29446 cat >>confdefs.h <<\_ACEOF
29447 #define PROTOTYPES 1
29451 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29452 if test -z "$CCOPTS"; then
29453 CCOPTS='-g -O2 -Wall'
29460 largefile_support="no"
29462 # Check whether --enable-largefile was given.
29463 if test "${enable_largefile+set}" = set; then
29464 enableval=$enable_largefile;
29467 if test "$enable_largefile" != no; then
29468 if test -n "$ac_tool_prefix"; then
29469 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29470 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29473 if test "${ac_cv_prog_GETCONF+set}" = set; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29476 if test -n "$GETCONF"; then
29477 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29480 for as_dir in $PATH
29483 test -z "$as_dir" && as_dir=.
29484 for ac_exec_ext in '' $ac_executable_extensions; do
29485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29486 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29496 GETCONF=$ac_cv_prog_GETCONF
29497 if test -n "$GETCONF"; then
29498 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29499 echo "${ECHO_T}$GETCONF" >&6; }
29501 { echo "$as_me:$LINENO: result: no" >&5
29502 echo "${ECHO_T}no" >&6; }
29507 if test -z "$ac_cv_prog_GETCONF"; then
29508 ac_ct_GETCONF=$GETCONF
29509 # Extract the first word of "getconf", so it can be a program name with args.
29510 set dummy getconf; ac_word=$2
29511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29513 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29516 if test -n "$ac_ct_GETCONF"; then
29517 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29520 for as_dir in $PATH
29523 test -z "$as_dir" && as_dir=.
29524 for ac_exec_ext in '' $ac_executable_extensions; do
29525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29526 ac_cv_prog_ac_ct_GETCONF="getconf"
29527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29536 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29537 if test -n "$ac_ct_GETCONF"; then
29538 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29539 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29541 { echo "$as_me:$LINENO: result: no" >&5
29542 echo "${ECHO_T}no" >&6; }
29545 if test "x$ac_ct_GETCONF" = x; then
29548 case $cross_compiling:$ac_tool_warned in
29550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29551 whose name does not start with the host triplet. If you think this
29552 configuration is useful to you, please write to autoconf@gnu.org." >&5
29553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29554 whose name does not start with the host triplet. If you think this
29555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29556 ac_tool_warned=yes ;;
29558 GETCONF=$ac_ct_GETCONF
29561 GETCONF="$ac_cv_prog_GETCONF"
29564 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29565 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29566 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29567 echo $ECHO_N "(cached) $ECHO_C" >&6
29569 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29570 ac_cv_sys_largefile_CFLAGS=no
29572 # IRIX 6.2 and later require cc -n32.
29573 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29574 if test "$GCC" != yes; then
29575 ac_cv_sys_largefile_CFLAGS=-n32
29578 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29579 cat >conftest.$ac_ext <<_ACEOF
29582 cat confdefs.h >>conftest.$ac_ext
29583 cat >>conftest.$ac_ext <<_ACEOF
29584 /* end confdefs.h. */
29594 rm -f conftest.$ac_objext conftest$ac_exeext
29595 if { (ac_try="$ac_link"
29596 case "(($ac_try" in
29597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598 *) ac_try_echo=$ac_try;;
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601 (eval "$ac_link") 2>conftest.er1
29603 grep -v '^ *+' conftest.er1 >conftest.err
29605 cat conftest.err >&5
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); } && {
29608 test -z "$ac_c_werror_flag" ||
29609 test ! -s conftest.err
29610 } && test -s conftest$ac_exeext &&
29611 $as_test_x conftest$ac_exeext; then
29614 echo "$as_me: failed program was:" >&5
29615 sed 's/^/| /' conftest.$ac_ext >&5
29617 ac_cv_sys_largefile_CFLAGS=no
29620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29621 conftest$ac_exeext conftest.$ac_ext
29626 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29627 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29628 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29629 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29630 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29631 echo $ECHO_N "(cached) $ECHO_C" >&6
29633 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29634 ac_cv_sys_largefile_LDFLAGS=no
29638 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29639 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29640 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29641 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29642 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29645 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29646 ac_cv_sys_largefile_LIBS=no
29650 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29651 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29653 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29656 -D_FILE_OFFSET_BITS=*) ;;
29657 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29658 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29663 case "$CPPFLAGS" in
29664 '') CPPFLAGS="$ac_flag" ;;
29665 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29673 '') CFLAGS="$ac_flag" ;;
29674 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29679 case "$ac_cv_sys_largefile_LDFLAGS" in
29683 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29684 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29687 case "$ac_cv_sys_largefile_LIBS" in
29691 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29692 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29695 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29696 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29697 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29698 echo $ECHO_N "(cached) $ECHO_C" >&6
29700 ac_cv_sys_file_offset_bits=no
29701 ac_cv_sys_file_offset_bits=64
29702 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29704 -D_FILE_OFFSET_BITS)
29705 ac_cv_sys_file_offset_bits=1 ;;
29706 -D_FILE_OFFSET_BITS=*)
29707 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29712 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29713 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29714 if test "$ac_cv_sys_file_offset_bits" != no; then
29716 cat >>confdefs.h <<_ACEOF
29717 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29721 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29722 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29723 if test "${ac_cv_sys_largefile_source+set}" = set; then
29724 echo $ECHO_N "(cached) $ECHO_C" >&6
29726 ac_cv_sys_largefile_source=no
29727 ac_cv_sys_largefile_source=1
29728 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29730 -D_LARGEFILE_SOURCE)
29731 ac_cv_sys_largefile_source=1 ;;
29732 -D_LARGEFILE_SOURCE=*)
29733 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29738 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29739 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29740 if test "$ac_cv_sys_largefile_source" != no; then
29742 cat >>confdefs.h <<_ACEOF
29743 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29747 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29748 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29749 if test "${ac_cv_sys_large_files+set}" = set; then
29750 echo $ECHO_N "(cached) $ECHO_C" >&6
29752 ac_cv_sys_large_files=no
29753 ac_cv_sys_large_files=1
29754 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29757 ac_cv_sys_large_files=1 ;;
29759 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29764 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29765 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29766 if test "$ac_cv_sys_large_files" != no; then
29768 cat >>confdefs.h <<_ACEOF
29769 #define _LARGE_FILES $ac_cv_sys_large_files
29776 { echo "$as_me:$LINENO: checking for X" >&5
29777 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29780 # Check whether --with-x was given.
29781 if test "${with_x+set}" = set; then
29785 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29786 if test "x$with_x" = xno; then
29787 # The user explicitly disabled X.
29790 case $x_includes,$x_libraries in #(
29791 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29792 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29793 { (exit 1); exit 1; }; };; #(
29794 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29795 echo $ECHO_N "(cached) $ECHO_C" >&6
29797 # One or both of the vars are not set, and there is no cached value.
29798 ac_x_includes=no ac_x_libraries=no
29799 rm -f -r conftest.dir
29800 if mkdir conftest.dir; then
29802 cat >Imakefile <<'_ACEOF'
29804 @echo incroot='${INCROOT}'
29806 @echo usrlibdir='${USRLIBDIR}'
29808 @echo libdir='${LIBDIR}'
29810 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29812 for ac_var in incroot usrlibdir libdir; do
29813 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29815 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29816 for ac_extension in a so sl; do
29817 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29818 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29819 ac_im_usrlibdir=$ac_im_libdir; break
29822 # Screen out bogus values from the imake configuration. They are
29823 # bogus both because they are the default anyway, and because
29824 # using them would break gcc on systems where it needs fixed includes.
29825 case $ac_im_incroot in
29826 /usr/include) ac_x_includes= ;;
29827 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29829 case $ac_im_usrlibdir in
29830 /usr/lib | /lib) ;;
29831 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29835 rm -f -r conftest.dir
29838 # Standard set of common directories for X headers.
29839 # Check X11 before X11Rn because it is often a symlink to the current release.
29851 /usr/local/X11/include
29852 /usr/local/X11R6/include
29853 /usr/local/X11R5/include
29854 /usr/local/X11R4/include
29856 /usr/local/include/X11
29857 /usr/local/include/X11R6
29858 /usr/local/include/X11R5
29859 /usr/local/include/X11R4
29863 /usr/XFree86/include/X11
29867 /usr/unsupported/include
29868 /usr/athena/include
29869 /usr/local/x11r5/include
29870 /usr/lpp/Xamples/include
29872 /usr/openwin/include
29873 /usr/openwin/share/include'
29875 if test "$ac_x_includes" = no; then
29876 # Guess where to find include files, by looking for Xlib.h.
29877 # First, try using that file with no special directory specified.
29878 cat >conftest.$ac_ext <<_ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h. */
29884 #include <X11/Xlib.h>
29886 if { (ac_try="$ac_cpp conftest.$ac_ext"
29887 case "(($ac_try" in
29888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889 *) ac_try_echo=$ac_try;;
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29894 grep -v '^ *+' conftest.er1 >conftest.err
29896 cat conftest.err >&5
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); } >/dev/null && {
29899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29900 test ! -s conftest.err
29902 # We can compile using X headers with no special include directory.
29905 echo "$as_me: failed program was:" >&5
29906 sed 's/^/| /' conftest.$ac_ext >&5
29908 for ac_dir in $ac_x_header_dirs; do
29909 if test -r "$ac_dir/X11/Xlib.h"; then
29910 ac_x_includes=$ac_dir
29916 rm -f conftest.err conftest.$ac_ext
29917 fi # $ac_x_includes = no
29919 if test "$ac_x_libraries" = no; then
29920 # Check for the libraries.
29921 # See if we find them without any special options.
29922 # Don't add to $LIBS permanently.
29925 cat >conftest.$ac_ext <<_ACEOF
29928 cat confdefs.h >>conftest.$ac_ext
29929 cat >>conftest.$ac_ext <<_ACEOF
29930 /* end confdefs.h. */
29931 #include <X11/Xlib.h>
29940 rm -f conftest.$ac_objext conftest$ac_exeext
29941 if { (ac_try="$ac_link"
29942 case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_link") 2>conftest.er1
29949 grep -v '^ *+' conftest.er1 >conftest.err
29951 cat conftest.err >&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); } && {
29954 test -z "$ac_c_werror_flag" ||
29955 test ! -s conftest.err
29956 } && test -s conftest$ac_exeext &&
29957 $as_test_x conftest$ac_exeext; then
29959 # We can link X programs with no special library path.
29962 echo "$as_me: failed program was:" >&5
29963 sed 's/^/| /' conftest.$ac_ext >&5
29966 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29968 # Don't even attempt the hair of trying to link an X program!
29969 for ac_extension in a so sl; do
29970 if test -r "$ac_dir/libX11.$ac_extension"; then
29971 ac_x_libraries=$ac_dir
29978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29979 conftest$ac_exeext conftest.$ac_ext
29980 fi # $ac_x_libraries = no
29982 case $ac_x_includes,$ac_x_libraries in #(
29983 no,* | *,no | *\'*)
29984 # Didn't find X, or a directory has "'" in its name.
29985 ac_cv_have_x="have_x=no";; #(
29987 # Record where we found X for the cache.
29988 ac_cv_have_x="have_x=yes\
29989 ac_x_includes='$ac_x_includes'\
29990 ac_x_libraries='$ac_x_libraries'"
29996 eval "$ac_cv_have_x"
29999 if test "$have_x" != yes; then
30000 { echo "$as_me:$LINENO: result: $have_x" >&5
30001 echo "${ECHO_T}$have_x" >&6; }
30004 # If each of the values was on the command line, it overrides each guess.
30005 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30006 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30007 # Update the cache value to reflect the command line values.
30008 ac_cv_have_x="have_x=yes\
30009 ac_x_includes='$x_includes'\
30010 ac_x_libraries='$x_libraries'"
30011 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30012 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30015 if test "$no_x" = yes; then
30016 # Not all programs may use this symbol, but it does not hurt to define it.
30018 cat >>confdefs.h <<\_ACEOF
30019 #define X_DISPLAY_MISSING 1
30022 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30024 if test -n "$x_includes"; then
30025 X_CFLAGS="$X_CFLAGS -I$x_includes"
30028 # It would also be nice to do this for all -L options, not just this one.
30029 if test -n "$x_libraries"; then
30030 X_LIBS="$X_LIBS -L$x_libraries"
30031 # For Solaris; some versions of Sun CC require a space after -R and
30032 # others require no space. Words are not sufficient . . . .
30033 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30034 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30035 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30036 ac_xsave_c_werror_flag=$ac_c_werror_flag
30037 ac_c_werror_flag=yes
30038 cat >conftest.$ac_ext <<_ACEOF
30041 cat confdefs.h >>conftest.$ac_ext
30042 cat >>conftest.$ac_ext <<_ACEOF
30043 /* end confdefs.h. */
30053 rm -f conftest.$ac_objext conftest$ac_exeext
30054 if { (ac_try="$ac_link"
30055 case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_link") 2>conftest.er1
30062 grep -v '^ *+' conftest.er1 >conftest.err
30064 cat conftest.err >&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); } && {
30067 test -z "$ac_c_werror_flag" ||
30068 test ! -s conftest.err
30069 } && test -s conftest$ac_exeext &&
30070 $as_test_x conftest$ac_exeext; then
30071 { echo "$as_me:$LINENO: result: no" >&5
30072 echo "${ECHO_T}no" >&6; }
30073 X_LIBS="$X_LIBS -R$x_libraries"
30075 echo "$as_me: failed program was:" >&5
30076 sed 's/^/| /' conftest.$ac_ext >&5
30078 LIBS="$ac_xsave_LIBS -R $x_libraries"
30079 cat >conftest.$ac_ext <<_ACEOF
30082 cat confdefs.h >>conftest.$ac_ext
30083 cat >>conftest.$ac_ext <<_ACEOF
30084 /* end confdefs.h. */
30094 rm -f conftest.$ac_objext conftest$ac_exeext
30095 if { (ac_try="$ac_link"
30096 case "(($ac_try" in
30097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30098 *) ac_try_echo=$ac_try;;
30100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30101 (eval "$ac_link") 2>conftest.er1
30103 grep -v '^ *+' conftest.er1 >conftest.err
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); } && {
30108 test -z "$ac_c_werror_flag" ||
30109 test ! -s conftest.err
30110 } && test -s conftest$ac_exeext &&
30111 $as_test_x conftest$ac_exeext; then
30112 { echo "$as_me:$LINENO: result: yes" >&5
30113 echo "${ECHO_T}yes" >&6; }
30114 X_LIBS="$X_LIBS -R $x_libraries"
30116 echo "$as_me: failed program was:" >&5
30117 sed 's/^/| /' conftest.$ac_ext >&5
30119 { echo "$as_me:$LINENO: result: neither works" >&5
30120 echo "${ECHO_T}neither works" >&6; }
30123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30124 conftest$ac_exeext conftest.$ac_ext
30127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30128 conftest$ac_exeext conftest.$ac_ext
30129 ac_c_werror_flag=$ac_xsave_c_werror_flag
30130 LIBS=$ac_xsave_LIBS
30133 # Check for system-dependent libraries X programs must link with.
30134 # Do this before checking for the system-independent R6 libraries
30135 # (-lICE), since we may need -lsocket or whatever for X linking.
30137 if test "$ISC" = yes; then
30138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30140 # Martyn Johnson says this is needed for Ultrix, if the X
30141 # libraries were built with DECnet support. And Karl Berry says
30142 # the Alpha needs dnet_stub (dnet does not exist).
30143 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30144 cat >conftest.$ac_ext <<_ACEOF
30147 cat confdefs.h >>conftest.$ac_ext
30148 cat >>conftest.$ac_ext <<_ACEOF
30149 /* end confdefs.h. */
30151 /* Override any GCC internal prototype to avoid an error.
30152 Use char because int might match the return type of a GCC
30153 builtin and then its argument prototype would still apply. */
30157 char XOpenDisplay ();
30161 return XOpenDisplay ();
30166 rm -f conftest.$ac_objext conftest$ac_exeext
30167 if { (ac_try="$ac_link"
30168 case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_link") 2>conftest.er1
30175 grep -v '^ *+' conftest.er1 >conftest.err
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); } && {
30180 test -z "$ac_c_werror_flag" ||
30181 test ! -s conftest.err
30182 } && test -s conftest$ac_exeext &&
30183 $as_test_x conftest$ac_exeext; then
30186 echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.$ac_ext >&5
30189 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30190 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30191 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30192 echo $ECHO_N "(cached) $ECHO_C" >&6
30194 ac_check_lib_save_LIBS=$LIBS
30195 LIBS="-ldnet $LIBS"
30196 cat >conftest.$ac_ext <<_ACEOF
30199 cat confdefs.h >>conftest.$ac_ext
30200 cat >>conftest.$ac_ext <<_ACEOF
30201 /* end confdefs.h. */
30203 /* Override any GCC internal prototype to avoid an error.
30204 Use char because int might match the return type of a GCC
30205 builtin and then its argument prototype would still apply. */
30213 return dnet_ntoa ();
30218 rm -f conftest.$ac_objext conftest$ac_exeext
30219 if { (ac_try="$ac_link"
30220 case "(($ac_try" in
30221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222 *) ac_try_echo=$ac_try;;
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225 (eval "$ac_link") 2>conftest.er1
30227 grep -v '^ *+' conftest.er1 >conftest.err
30229 cat conftest.err >&5
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); } && {
30232 test -z "$ac_c_werror_flag" ||
30233 test ! -s conftest.err
30234 } && test -s conftest$ac_exeext &&
30235 $as_test_x conftest$ac_exeext; then
30236 ac_cv_lib_dnet_dnet_ntoa=yes
30238 echo "$as_me: failed program was:" >&5
30239 sed 's/^/| /' conftest.$ac_ext >&5
30241 ac_cv_lib_dnet_dnet_ntoa=no
30244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30245 conftest$ac_exeext conftest.$ac_ext
30246 LIBS=$ac_check_lib_save_LIBS
30248 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30249 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30250 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30251 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30254 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30255 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30256 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30257 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30258 echo $ECHO_N "(cached) $ECHO_C" >&6
30260 ac_check_lib_save_LIBS=$LIBS
30261 LIBS="-ldnet_stub $LIBS"
30262 cat >conftest.$ac_ext <<_ACEOF
30265 cat confdefs.h >>conftest.$ac_ext
30266 cat >>conftest.$ac_ext <<_ACEOF
30267 /* end confdefs.h. */
30269 /* Override any GCC internal prototype to avoid an error.
30270 Use char because int might match the return type of a GCC
30271 builtin and then its argument prototype would still apply. */
30279 return dnet_ntoa ();
30284 rm -f conftest.$ac_objext conftest$ac_exeext
30285 if { (ac_try="$ac_link"
30286 case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_link") 2>conftest.er1
30293 grep -v '^ *+' conftest.er1 >conftest.err
30295 cat conftest.err >&5
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); } && {
30298 test -z "$ac_c_werror_flag" ||
30299 test ! -s conftest.err
30300 } && test -s conftest$ac_exeext &&
30301 $as_test_x conftest$ac_exeext; then
30302 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30304 echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30307 ac_cv_lib_dnet_stub_dnet_ntoa=no
30310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30311 conftest$ac_exeext conftest.$ac_ext
30312 LIBS=$ac_check_lib_save_LIBS
30314 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30315 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30316 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30317 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30324 conftest$ac_exeext conftest.$ac_ext
30325 LIBS="$ac_xsave_LIBS"
30327 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30328 # to get the SysV transport functions.
30329 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30331 # The nsl library prevents programs from opening the X display
30332 # on Irix 5.2, according to T.E. Dickey.
30333 # The functions gethostbyname, getservbyname, and inet_addr are
30334 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30335 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30336 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30337 if test "${ac_cv_func_gethostbyname+set}" = set; then
30338 echo $ECHO_N "(cached) $ECHO_C" >&6
30340 cat >conftest.$ac_ext <<_ACEOF
30343 cat confdefs.h >>conftest.$ac_ext
30344 cat >>conftest.$ac_ext <<_ACEOF
30345 /* end confdefs.h. */
30346 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30348 #define gethostbyname innocuous_gethostbyname
30350 /* System header to define __stub macros and hopefully few prototypes,
30351 which can conflict with char gethostbyname (); below.
30352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30353 <limits.h> exists even on freestanding compilers. */
30356 # include <limits.h>
30358 # include <assert.h>
30361 #undef gethostbyname
30363 /* Override any GCC internal prototype to avoid an error.
30364 Use char because int might match the return type of a GCC
30365 builtin and then its argument prototype would still apply. */
30369 char gethostbyname ();
30370 /* The GNU C library defines this for functions which it implements
30371 to always fail with ENOSYS. Some functions are actually named
30372 something starting with __ and the normal name is an alias. */
30373 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30380 return gethostbyname ();
30385 rm -f conftest.$ac_objext conftest$ac_exeext
30386 if { (ac_try="$ac_link"
30387 case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_link") 2>conftest.er1
30394 grep -v '^ *+' conftest.er1 >conftest.err
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } && {
30399 test -z "$ac_c_werror_flag" ||
30400 test ! -s conftest.err
30401 } && test -s conftest$ac_exeext &&
30402 $as_test_x conftest$ac_exeext; then
30403 ac_cv_func_gethostbyname=yes
30405 echo "$as_me: failed program was:" >&5
30406 sed 's/^/| /' conftest.$ac_ext >&5
30408 ac_cv_func_gethostbyname=no
30411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30412 conftest$ac_exeext conftest.$ac_ext
30414 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30415 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30417 if test $ac_cv_func_gethostbyname = no; then
30418 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30419 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30420 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30421 echo $ECHO_N "(cached) $ECHO_C" >&6
30423 ac_check_lib_save_LIBS=$LIBS
30425 cat >conftest.$ac_ext <<_ACEOF
30428 cat confdefs.h >>conftest.$ac_ext
30429 cat >>conftest.$ac_ext <<_ACEOF
30430 /* end confdefs.h. */
30432 /* Override any GCC internal prototype to avoid an error.
30433 Use char because int might match the return type of a GCC
30434 builtin and then its argument prototype would still apply. */
30438 char gethostbyname ();
30442 return gethostbyname ();
30447 rm -f conftest.$ac_objext conftest$ac_exeext
30448 if { (ac_try="$ac_link"
30449 case "(($ac_try" in
30450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30451 *) ac_try_echo=$ac_try;;
30453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30454 (eval "$ac_link") 2>conftest.er1
30456 grep -v '^ *+' conftest.er1 >conftest.err
30458 cat conftest.err >&5
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); } && {
30461 test -z "$ac_c_werror_flag" ||
30462 test ! -s conftest.err
30463 } && test -s conftest$ac_exeext &&
30464 $as_test_x conftest$ac_exeext; then
30465 ac_cv_lib_nsl_gethostbyname=yes
30467 echo "$as_me: failed program was:" >&5
30468 sed 's/^/| /' conftest.$ac_ext >&5
30470 ac_cv_lib_nsl_gethostbyname=no
30473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30474 conftest$ac_exeext conftest.$ac_ext
30475 LIBS=$ac_check_lib_save_LIBS
30477 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30478 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30479 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30480 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30483 if test $ac_cv_lib_nsl_gethostbyname = no; then
30484 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30485 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30486 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30489 ac_check_lib_save_LIBS=$LIBS
30491 cat >conftest.$ac_ext <<_ACEOF
30494 cat confdefs.h >>conftest.$ac_ext
30495 cat >>conftest.$ac_ext <<_ACEOF
30496 /* end confdefs.h. */
30498 /* Override any GCC internal prototype to avoid an error.
30499 Use char because int might match the return type of a GCC
30500 builtin and then its argument prototype would still apply. */
30504 char gethostbyname ();
30508 return gethostbyname ();
30513 rm -f conftest.$ac_objext conftest$ac_exeext
30514 if { (ac_try="$ac_link"
30515 case "(($ac_try" in
30516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30517 *) ac_try_echo=$ac_try;;
30519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30520 (eval "$ac_link") 2>conftest.er1
30522 grep -v '^ *+' conftest.er1 >conftest.err
30524 cat conftest.err >&5
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); } && {
30527 test -z "$ac_c_werror_flag" ||
30528 test ! -s conftest.err
30529 } && test -s conftest$ac_exeext &&
30530 $as_test_x conftest$ac_exeext; then
30531 ac_cv_lib_bsd_gethostbyname=yes
30533 echo "$as_me: failed program was:" >&5
30534 sed 's/^/| /' conftest.$ac_ext >&5
30536 ac_cv_lib_bsd_gethostbyname=no
30539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30540 conftest$ac_exeext conftest.$ac_ext
30541 LIBS=$ac_check_lib_save_LIBS
30543 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30544 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30545 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30546 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30552 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30553 # socket/setsockopt and other routines are undefined under SCO ODT
30554 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30555 # on later versions), says Simon Leinen: it contains gethostby*
30556 # variants that don't use the name server (or something). -lsocket
30557 # must be given before -lnsl if both are needed. We assume that
30558 # if connect needs -lnsl, so does gethostbyname.
30559 { echo "$as_me:$LINENO: checking for connect" >&5
30560 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30561 if test "${ac_cv_func_connect+set}" = set; then
30562 echo $ECHO_N "(cached) $ECHO_C" >&6
30564 cat >conftest.$ac_ext <<_ACEOF
30567 cat confdefs.h >>conftest.$ac_ext
30568 cat >>conftest.$ac_ext <<_ACEOF
30569 /* end confdefs.h. */
30570 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30572 #define connect innocuous_connect
30574 /* System header to define __stub macros and hopefully few prototypes,
30575 which can conflict with char connect (); below.
30576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30577 <limits.h> exists even on freestanding compilers. */
30580 # include <limits.h>
30582 # include <assert.h>
30587 /* Override any GCC internal prototype to avoid an error.
30588 Use char because int might match the return type of a GCC
30589 builtin and then its argument prototype would still apply. */
30594 /* The GNU C library defines this for functions which it implements
30595 to always fail with ENOSYS. Some functions are actually named
30596 something starting with __ and the normal name is an alias. */
30597 #if defined __stub_connect || defined __stub___connect
30609 rm -f conftest.$ac_objext conftest$ac_exeext
30610 if { (ac_try="$ac_link"
30611 case "(($ac_try" in
30612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30613 *) ac_try_echo=$ac_try;;
30615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30616 (eval "$ac_link") 2>conftest.er1
30618 grep -v '^ *+' conftest.er1 >conftest.err
30620 cat conftest.err >&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } && {
30623 test -z "$ac_c_werror_flag" ||
30624 test ! -s conftest.err
30625 } && test -s conftest$ac_exeext &&
30626 $as_test_x conftest$ac_exeext; then
30627 ac_cv_func_connect=yes
30629 echo "$as_me: failed program was:" >&5
30630 sed 's/^/| /' conftest.$ac_ext >&5
30632 ac_cv_func_connect=no
30635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30636 conftest$ac_exeext conftest.$ac_ext
30638 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30639 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30641 if test $ac_cv_func_connect = no; then
30642 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30643 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30644 if test "${ac_cv_lib_socket_connect+set}" = set; then
30645 echo $ECHO_N "(cached) $ECHO_C" >&6
30647 ac_check_lib_save_LIBS=$LIBS
30648 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30649 cat >conftest.$ac_ext <<_ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h. */
30656 /* Override any GCC internal prototype to avoid an error.
30657 Use char because int might match the return type of a GCC
30658 builtin and then its argument prototype would still apply. */
30671 rm -f conftest.$ac_objext conftest$ac_exeext
30672 if { (ac_try="$ac_link"
30673 case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_link") 2>conftest.er1
30680 grep -v '^ *+' conftest.er1 >conftest.err
30682 cat conftest.err >&5
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); } && {
30685 test -z "$ac_c_werror_flag" ||
30686 test ! -s conftest.err
30687 } && test -s conftest$ac_exeext &&
30688 $as_test_x conftest$ac_exeext; then
30689 ac_cv_lib_socket_connect=yes
30691 echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30694 ac_cv_lib_socket_connect=no
30697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30698 conftest$ac_exeext conftest.$ac_ext
30699 LIBS=$ac_check_lib_save_LIBS
30701 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30702 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30703 if test $ac_cv_lib_socket_connect = yes; then
30704 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30709 # Guillermo Gomez says -lposix is necessary on A/UX.
30710 { echo "$as_me:$LINENO: checking for remove" >&5
30711 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30712 if test "${ac_cv_func_remove+set}" = set; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30715 cat >conftest.$ac_ext <<_ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h. */
30721 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30723 #define remove innocuous_remove
30725 /* System header to define __stub macros and hopefully few prototypes,
30726 which can conflict with char remove (); below.
30727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30728 <limits.h> exists even on freestanding compilers. */
30731 # include <limits.h>
30733 # include <assert.h>
30738 /* Override any GCC internal prototype to avoid an error.
30739 Use char because int might match the return type of a GCC
30740 builtin and then its argument prototype would still apply. */
30745 /* The GNU C library defines this for functions which it implements
30746 to always fail with ENOSYS. Some functions are actually named
30747 something starting with __ and the normal name is an alias. */
30748 #if defined __stub_remove || defined __stub___remove
30760 rm -f conftest.$ac_objext conftest$ac_exeext
30761 if { (ac_try="$ac_link"
30762 case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_link") 2>conftest.er1
30769 grep -v '^ *+' conftest.er1 >conftest.err
30771 cat conftest.err >&5
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); } && {
30774 test -z "$ac_c_werror_flag" ||
30775 test ! -s conftest.err
30776 } && test -s conftest$ac_exeext &&
30777 $as_test_x conftest$ac_exeext; then
30778 ac_cv_func_remove=yes
30780 echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30783 ac_cv_func_remove=no
30786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30787 conftest$ac_exeext conftest.$ac_ext
30789 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30790 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30792 if test $ac_cv_func_remove = no; then
30793 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30794 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30795 if test "${ac_cv_lib_posix_remove+set}" = set; then
30796 echo $ECHO_N "(cached) $ECHO_C" >&6
30798 ac_check_lib_save_LIBS=$LIBS
30799 LIBS="-lposix $LIBS"
30800 cat >conftest.$ac_ext <<_ACEOF
30803 cat confdefs.h >>conftest.$ac_ext
30804 cat >>conftest.$ac_ext <<_ACEOF
30805 /* end confdefs.h. */
30807 /* Override any GCC internal prototype to avoid an error.
30808 Use char because int might match the return type of a GCC
30809 builtin and then its argument prototype would still apply. */
30822 rm -f conftest.$ac_objext conftest$ac_exeext
30823 if { (ac_try="$ac_link"
30824 case "(($ac_try" in
30825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30826 *) ac_try_echo=$ac_try;;
30828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829 (eval "$ac_link") 2>conftest.er1
30831 grep -v '^ *+' conftest.er1 >conftest.err
30833 cat conftest.err >&5
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); } && {
30836 test -z "$ac_c_werror_flag" ||
30837 test ! -s conftest.err
30838 } && test -s conftest$ac_exeext &&
30839 $as_test_x conftest$ac_exeext; then
30840 ac_cv_lib_posix_remove=yes
30842 echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30845 ac_cv_lib_posix_remove=no
30848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30849 conftest$ac_exeext conftest.$ac_ext
30850 LIBS=$ac_check_lib_save_LIBS
30852 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30853 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30854 if test $ac_cv_lib_posix_remove = yes; then
30855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30860 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30861 { echo "$as_me:$LINENO: checking for shmat" >&5
30862 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30863 if test "${ac_cv_func_shmat+set}" = set; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30866 cat >conftest.$ac_ext <<_ACEOF
30869 cat confdefs.h >>conftest.$ac_ext
30870 cat >>conftest.$ac_ext <<_ACEOF
30871 /* end confdefs.h. */
30872 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30874 #define shmat innocuous_shmat
30876 /* System header to define __stub macros and hopefully few prototypes,
30877 which can conflict with char shmat (); below.
30878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30879 <limits.h> exists even on freestanding compilers. */
30882 # include <limits.h>
30884 # include <assert.h>
30889 /* Override any GCC internal prototype to avoid an error.
30890 Use char because int might match the return type of a GCC
30891 builtin and then its argument prototype would still apply. */
30896 /* The GNU C library defines this for functions which it implements
30897 to always fail with ENOSYS. Some functions are actually named
30898 something starting with __ and the normal name is an alias. */
30899 #if defined __stub_shmat || defined __stub___shmat
30911 rm -f conftest.$ac_objext conftest$ac_exeext
30912 if { (ac_try="$ac_link"
30913 case "(($ac_try" in
30914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30915 *) ac_try_echo=$ac_try;;
30917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30918 (eval "$ac_link") 2>conftest.er1
30920 grep -v '^ *+' conftest.er1 >conftest.err
30922 cat conftest.err >&5
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); } && {
30925 test -z "$ac_c_werror_flag" ||
30926 test ! -s conftest.err
30927 } && test -s conftest$ac_exeext &&
30928 $as_test_x conftest$ac_exeext; then
30929 ac_cv_func_shmat=yes
30931 echo "$as_me: failed program was:" >&5
30932 sed 's/^/| /' conftest.$ac_ext >&5
30934 ac_cv_func_shmat=no
30937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30938 conftest$ac_exeext conftest.$ac_ext
30940 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30941 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30943 if test $ac_cv_func_shmat = no; then
30944 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30945 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30946 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30947 echo $ECHO_N "(cached) $ECHO_C" >&6
30949 ac_check_lib_save_LIBS=$LIBS
30951 cat >conftest.$ac_ext <<_ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h. */
30958 /* Override any GCC internal prototype to avoid an error.
30959 Use char because int might match the return type of a GCC
30960 builtin and then its argument prototype would still apply. */
30973 rm -f conftest.$ac_objext conftest$ac_exeext
30974 if { (ac_try="$ac_link"
30975 case "(($ac_try" in
30976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30977 *) ac_try_echo=$ac_try;;
30979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30980 (eval "$ac_link") 2>conftest.er1
30982 grep -v '^ *+' conftest.er1 >conftest.err
30984 cat conftest.err >&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } && {
30987 test -z "$ac_c_werror_flag" ||
30988 test ! -s conftest.err
30989 } && test -s conftest$ac_exeext &&
30990 $as_test_x conftest$ac_exeext; then
30991 ac_cv_lib_ipc_shmat=yes
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30996 ac_cv_lib_ipc_shmat=no
30999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31000 conftest$ac_exeext conftest.$ac_ext
31001 LIBS=$ac_check_lib_save_LIBS
31003 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31004 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31005 if test $ac_cv_lib_ipc_shmat = yes; then
31006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31012 # Check for libraries that X11R6 Xt/Xaw programs need.
31013 ac_save_LDFLAGS=$LDFLAGS
31014 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31015 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31016 # check for ICE first), but we must link in the order -lSM -lICE or
31017 # we get undefined symbols. So assume we have SM if we have ICE.
31018 # These have to be linked with before -lX11, unlike the other
31019 # libraries we check for below, so use a different variable.
31020 # John Interrante, Karl Berry
31021 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31022 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31023 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31024 echo $ECHO_N "(cached) $ECHO_C" >&6
31026 ac_check_lib_save_LIBS=$LIBS
31027 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31028 cat >conftest.$ac_ext <<_ACEOF
31031 cat confdefs.h >>conftest.$ac_ext
31032 cat >>conftest.$ac_ext <<_ACEOF
31033 /* end confdefs.h. */
31035 /* Override any GCC internal prototype to avoid an error.
31036 Use char because int might match the return type of a GCC
31037 builtin and then its argument prototype would still apply. */
31041 char IceConnectionNumber ();
31045 return IceConnectionNumber ();
31050 rm -f conftest.$ac_objext conftest$ac_exeext
31051 if { (ac_try="$ac_link"
31052 case "(($ac_try" in
31053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31054 *) ac_try_echo=$ac_try;;
31056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31057 (eval "$ac_link") 2>conftest.er1
31059 grep -v '^ *+' conftest.er1 >conftest.err
31061 cat conftest.err >&5
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); } && {
31064 test -z "$ac_c_werror_flag" ||
31065 test ! -s conftest.err
31066 } && test -s conftest$ac_exeext &&
31067 $as_test_x conftest$ac_exeext; then
31068 ac_cv_lib_ICE_IceConnectionNumber=yes
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31073 ac_cv_lib_ICE_IceConnectionNumber=no
31076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31077 conftest$ac_exeext conftest.$ac_ext
31078 LIBS=$ac_check_lib_save_LIBS
31080 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31081 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31082 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31083 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31086 LDFLAGS=$ac_save_LDFLAGS
31152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31157 echo $ECHO_N "(cached) $ECHO_C" >&6
31159 ac_res=`eval echo '${'$as_ac_Header'}'`
31160 { echo "$as_me:$LINENO: result: $ac_res" >&5
31161 echo "${ECHO_T}$ac_res" >&6; }
31163 # Is the header compilable?
31164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31166 cat >conftest.$ac_ext <<_ACEOF
31169 cat confdefs.h >>conftest.$ac_ext
31170 cat >>conftest.$ac_ext <<_ACEOF
31171 /* end confdefs.h. */
31172 $ac_includes_default
31173 #include <$ac_header>
31175 rm -f conftest.$ac_objext
31176 if { (ac_try="$ac_compile"
31177 case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_compile") 2>conftest.er1
31184 grep -v '^ *+' conftest.er1 >conftest.err
31186 cat conftest.err >&5
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } && {
31189 test -z "$ac_c_werror_flag" ||
31190 test ! -s conftest.err
31191 } && test -s conftest.$ac_objext; then
31192 ac_header_compiler=yes
31194 echo "$as_me: failed program was:" >&5
31195 sed 's/^/| /' conftest.$ac_ext >&5
31197 ac_header_compiler=no
31200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31202 echo "${ECHO_T}$ac_header_compiler" >&6; }
31204 # Is the header present?
31205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31207 cat >conftest.$ac_ext <<_ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h. */
31213 #include <$ac_header>
31215 if { (ac_try="$ac_cpp conftest.$ac_ext"
31216 case "(($ac_try" in
31217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31218 *) ac_try_echo=$ac_try;;
31220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31223 grep -v '^ *+' conftest.er1 >conftest.err
31225 cat conftest.err >&5
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); } >/dev/null && {
31228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31229 test ! -s conftest.err
31231 ac_header_preproc=yes
31233 echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31236 ac_header_preproc=no
31239 rm -f conftest.err conftest.$ac_ext
31240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31241 echo "${ECHO_T}$ac_header_preproc" >&6; }
31243 # So? What about this header?
31244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31250 ac_header_preproc=yes
31253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31271 echo $ECHO_N "(cached) $ECHO_C" >&6
31273 eval "$as_ac_Header=\$ac_header_preproc"
31275 ac_res=`eval echo '${'$as_ac_Header'}'`
31276 { echo "$as_me:$LINENO: result: $ac_res" >&5
31277 echo "${ECHO_T}$ac_res" >&6; }
31280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31281 cat >>confdefs.h <<_ACEOF
31282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31289 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31290 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31291 if test "${ac_cv_header_stdc+set}" = set; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31294 cat >conftest.$ac_ext <<_ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h. */
31300 #include <stdlib.h>
31301 #include <stdarg.h>
31302 #include <string.h>
31313 rm -f conftest.$ac_objext
31314 if { (ac_try="$ac_compile"
31315 case "(($ac_try" in
31316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317 *) ac_try_echo=$ac_try;;
31319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320 (eval "$ac_compile") 2>conftest.er1
31322 grep -v '^ *+' conftest.er1 >conftest.err
31324 cat conftest.err >&5
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); } && {
31327 test -z "$ac_c_werror_flag" ||
31328 test ! -s conftest.err
31329 } && test -s conftest.$ac_objext; then
31330 ac_cv_header_stdc=yes
31332 echo "$as_me: failed program was:" >&5
31333 sed 's/^/| /' conftest.$ac_ext >&5
31335 ac_cv_header_stdc=no
31338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340 if test $ac_cv_header_stdc = yes; then
31341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31342 cat >conftest.$ac_ext <<_ACEOF
31345 cat confdefs.h >>conftest.$ac_ext
31346 cat >>conftest.$ac_ext <<_ACEOF
31347 /* end confdefs.h. */
31348 #include <string.h>
31351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31352 $EGREP "memchr" >/dev/null 2>&1; then
31355 ac_cv_header_stdc=no
31361 if test $ac_cv_header_stdc = yes; then
31362 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31363 cat >conftest.$ac_ext <<_ACEOF
31366 cat confdefs.h >>conftest.$ac_ext
31367 cat >>conftest.$ac_ext <<_ACEOF
31368 /* end confdefs.h. */
31369 #include <stdlib.h>
31372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31373 $EGREP "free" >/dev/null 2>&1; then
31376 ac_cv_header_stdc=no
31382 if test $ac_cv_header_stdc = yes; then
31383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31384 if test "$cross_compiling" = yes; then
31387 cat >conftest.$ac_ext <<_ACEOF
31390 cat confdefs.h >>conftest.$ac_ext
31391 cat >>conftest.$ac_ext <<_ACEOF
31392 /* end confdefs.h. */
31394 #include <stdlib.h>
31395 #if ((' ' & 0x0FF) == 0x020)
31396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31399 # define ISLOWER(c) \
31400 (('a' <= (c) && (c) <= 'i') \
31401 || ('j' <= (c) && (c) <= 'r') \
31402 || ('s' <= (c) && (c) <= 'z'))
31403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31411 for (i = 0; i < 256; i++)
31412 if (XOR (islower (i), ISLOWER (i))
31413 || toupper (i) != TOUPPER (i))
31418 rm -f conftest$ac_exeext
31419 if { (ac_try="$ac_link"
31420 case "(($ac_try" in
31421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422 *) ac_try_echo=$ac_try;;
31424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425 (eval "$ac_link") 2>&5
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; }; then
31440 echo "$as_me: program exited with status $ac_status" >&5
31441 echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31444 ( exit $ac_status )
31445 ac_cv_header_stdc=no
31447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31453 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31454 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31455 if test $ac_cv_header_stdc = yes; then
31457 cat >>confdefs.h <<\_ACEOF
31458 #define STDC_HEADERS 1
31463 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31464 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31465 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31466 echo $ECHO_N "(cached) $ECHO_C" >&6
31468 cat >conftest.$ac_ext <<_ACEOF
31471 cat confdefs.h >>conftest.$ac_ext
31472 cat >>conftest.$ac_ext <<_ACEOF
31473 /* end confdefs.h. */
31474 #include <sys/types.h>
31478 return makedev(0, 0);
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490 (eval "$ac_link") 2>conftest.er1
31492 grep -v '^ *+' conftest.er1 >conftest.err
31494 cat conftest.err >&5
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); } && {
31497 test -z "$ac_c_werror_flag" ||
31498 test ! -s conftest.err
31499 } && test -s conftest$ac_exeext &&
31500 $as_test_x conftest$ac_exeext; then
31501 ac_cv_header_sys_types_h_makedev=yes
31503 echo "$as_me: failed program was:" >&5
31504 sed 's/^/| /' conftest.$ac_ext >&5
31506 ac_cv_header_sys_types_h_makedev=no
31509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31510 conftest$ac_exeext conftest.$ac_ext
31513 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31514 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31516 if test $ac_cv_header_sys_types_h_makedev = no; then
31517 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31518 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31519 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31520 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31523 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31524 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31526 # Is the header compilable?
31527 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31528 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31529 cat >conftest.$ac_ext <<_ACEOF
31532 cat confdefs.h >>conftest.$ac_ext
31533 cat >>conftest.$ac_ext <<_ACEOF
31534 /* end confdefs.h. */
31535 $ac_includes_default
31536 #include <sys/mkdev.h>
31538 rm -f conftest.$ac_objext
31539 if { (ac_try="$ac_compile"
31540 case "(($ac_try" in
31541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31542 *) ac_try_echo=$ac_try;;
31544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31545 (eval "$ac_compile") 2>conftest.er1
31547 grep -v '^ *+' conftest.er1 >conftest.err
31549 cat conftest.err >&5
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); } && {
31552 test -z "$ac_c_werror_flag" ||
31553 test ! -s conftest.err
31554 } && test -s conftest.$ac_objext; then
31555 ac_header_compiler=yes
31557 echo "$as_me: failed program was:" >&5
31558 sed 's/^/| /' conftest.$ac_ext >&5
31560 ac_header_compiler=no
31563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31565 echo "${ECHO_T}$ac_header_compiler" >&6; }
31567 # Is the header present?
31568 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31569 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31570 cat >conftest.$ac_ext <<_ACEOF
31573 cat confdefs.h >>conftest.$ac_ext
31574 cat >>conftest.$ac_ext <<_ACEOF
31575 /* end confdefs.h. */
31576 #include <sys/mkdev.h>
31578 if { (ac_try="$ac_cpp conftest.$ac_ext"
31579 case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31586 grep -v '^ *+' conftest.er1 >conftest.err
31588 cat conftest.err >&5
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); } >/dev/null && {
31591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31592 test ! -s conftest.err
31594 ac_header_preproc=yes
31596 echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31599 ac_header_preproc=no
31602 rm -f conftest.err conftest.$ac_ext
31603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31604 echo "${ECHO_T}$ac_header_preproc" >&6; }
31606 # So? What about this header?
31607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31609 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31610 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31611 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31612 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31613 ac_header_preproc=yes
31616 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31617 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31618 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31619 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31621 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31622 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31623 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31624 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31625 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31626 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31627 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31631 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31632 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31633 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31636 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31638 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31639 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31642 if test $ac_cv_header_sys_mkdev_h = yes; then
31644 cat >>confdefs.h <<\_ACEOF
31645 #define MAJOR_IN_MKDEV 1
31652 if test $ac_cv_header_sys_mkdev_h = no; then
31653 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31654 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31655 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31656 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31657 echo $ECHO_N "(cached) $ECHO_C" >&6
31659 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31660 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31662 # Is the header compilable?
31663 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31664 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31665 cat >conftest.$ac_ext <<_ACEOF
31668 cat confdefs.h >>conftest.$ac_ext
31669 cat >>conftest.$ac_ext <<_ACEOF
31670 /* end confdefs.h. */
31671 $ac_includes_default
31672 #include <sys/sysmacros.h>
31674 rm -f conftest.$ac_objext
31675 if { (ac_try="$ac_compile"
31676 case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_compile") 2>conftest.er1
31683 grep -v '^ *+' conftest.er1 >conftest.err
31685 cat conftest.err >&5
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687 (exit $ac_status); } && {
31688 test -z "$ac_c_werror_flag" ||
31689 test ! -s conftest.err
31690 } && test -s conftest.$ac_objext; then
31691 ac_header_compiler=yes
31693 echo "$as_me: failed program was:" >&5
31694 sed 's/^/| /' conftest.$ac_ext >&5
31696 ac_header_compiler=no
31699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31701 echo "${ECHO_T}$ac_header_compiler" >&6; }
31703 # Is the header present?
31704 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31705 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31706 cat >conftest.$ac_ext <<_ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h. */
31712 #include <sys/sysmacros.h>
31714 if { (ac_try="$ac_cpp conftest.$ac_ext"
31715 case "(($ac_try" in
31716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717 *) ac_try_echo=$ac_try;;
31719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31722 grep -v '^ *+' conftest.er1 >conftest.err
31724 cat conftest.err >&5
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); } >/dev/null && {
31727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31728 test ! -s conftest.err
31730 ac_header_preproc=yes
31732 echo "$as_me: failed program was:" >&5
31733 sed 's/^/| /' conftest.$ac_ext >&5
31735 ac_header_preproc=no
31738 rm -f conftest.err conftest.$ac_ext
31739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31740 echo "${ECHO_T}$ac_header_preproc" >&6; }
31742 # So? What about this header?
31743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31745 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31746 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31747 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31748 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31749 ac_header_preproc=yes
31752 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31753 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31754 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31755 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31756 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31757 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31758 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31759 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31760 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31761 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31762 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31763 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31767 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31768 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31769 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31770 echo $ECHO_N "(cached) $ECHO_C" >&6
31772 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31774 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31775 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31778 if test $ac_cv_header_sys_sysmacros_h = yes; then
31780 cat >>confdefs.h <<\_ACEOF
31781 #define MAJOR_IN_SYSMACROS 1
31795 ac_header_dirent=no
31796 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31797 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31798 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31799 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31801 echo $ECHO_N "(cached) $ECHO_C" >&6
31803 cat >conftest.$ac_ext <<_ACEOF
31806 cat confdefs.h >>conftest.$ac_ext
31807 cat >>conftest.$ac_ext <<_ACEOF
31808 /* end confdefs.h. */
31809 #include <sys/types.h>
31821 rm -f conftest.$ac_objext
31822 if { (ac_try="$ac_compile"
31823 case "(($ac_try" in
31824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825 *) ac_try_echo=$ac_try;;
31827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828 (eval "$ac_compile") 2>conftest.er1
31830 grep -v '^ *+' conftest.er1 >conftest.err
31832 cat conftest.err >&5
31833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834 (exit $ac_status); } && {
31835 test -z "$ac_c_werror_flag" ||
31836 test ! -s conftest.err
31837 } && test -s conftest.$ac_objext; then
31838 eval "$as_ac_Header=yes"
31840 echo "$as_me: failed program was:" >&5
31841 sed 's/^/| /' conftest.$ac_ext >&5
31843 eval "$as_ac_Header=no"
31846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31848 ac_res=`eval echo '${'$as_ac_Header'}'`
31849 { echo "$as_me:$LINENO: result: $ac_res" >&5
31850 echo "${ECHO_T}$ac_res" >&6; }
31851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31852 cat >>confdefs.h <<_ACEOF
31853 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31856 ac_header_dirent=$ac_hdr; break
31860 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31861 if test $ac_header_dirent = dirent.h; then
31862 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31863 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31864 if test "${ac_cv_search_opendir+set}" = set; then
31865 echo $ECHO_N "(cached) $ECHO_C" >&6
31867 ac_func_search_save_LIBS=$LIBS
31868 cat >conftest.$ac_ext <<_ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h. */
31875 /* Override any GCC internal prototype to avoid an error.
31876 Use char because int might match the return type of a GCC
31877 builtin and then its argument prototype would still apply. */
31890 for ac_lib in '' dir; do
31891 if test -z "$ac_lib"; then
31892 ac_res="none required"
31895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31897 rm -f conftest.$ac_objext conftest$ac_exeext
31898 if { (ac_try="$ac_link"
31899 case "(($ac_try" in
31900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901 *) ac_try_echo=$ac_try;;
31903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31904 (eval "$ac_link") 2>conftest.er1
31906 grep -v '^ *+' conftest.er1 >conftest.err
31908 cat conftest.err >&5
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); } && {
31911 test -z "$ac_c_werror_flag" ||
31912 test ! -s conftest.err
31913 } && test -s conftest$ac_exeext &&
31914 $as_test_x conftest$ac_exeext; then
31915 ac_cv_search_opendir=$ac_res
31917 echo "$as_me: failed program was:" >&5
31918 sed 's/^/| /' conftest.$ac_ext >&5
31923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31925 if test "${ac_cv_search_opendir+set}" = set; then
31929 if test "${ac_cv_search_opendir+set}" = set; then
31932 ac_cv_search_opendir=no
31934 rm conftest.$ac_ext
31935 LIBS=$ac_func_search_save_LIBS
31937 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31938 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31939 ac_res=$ac_cv_search_opendir
31940 if test "$ac_res" != no; then
31941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31946 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31947 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31948 if test "${ac_cv_search_opendir+set}" = set; then
31949 echo $ECHO_N "(cached) $ECHO_C" >&6
31951 ac_func_search_save_LIBS=$LIBS
31952 cat >conftest.$ac_ext <<_ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h. */
31959 /* Override any GCC internal prototype to avoid an error.
31960 Use char because int might match the return type of a GCC
31961 builtin and then its argument prototype would still apply. */
31974 for ac_lib in '' x; do
31975 if test -z "$ac_lib"; then
31976 ac_res="none required"
31979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31981 rm -f conftest.$ac_objext conftest$ac_exeext
31982 if { (ac_try="$ac_link"
31983 case "(($ac_try" in
31984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31985 *) ac_try_echo=$ac_try;;
31987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31988 (eval "$ac_link") 2>conftest.er1
31990 grep -v '^ *+' conftest.er1 >conftest.err
31992 cat conftest.err >&5
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); } && {
31995 test -z "$ac_c_werror_flag" ||
31996 test ! -s conftest.err
31997 } && test -s conftest$ac_exeext &&
31998 $as_test_x conftest$ac_exeext; then
31999 ac_cv_search_opendir=$ac_res
32001 echo "$as_me: failed program was:" >&5
32002 sed 's/^/| /' conftest.$ac_ext >&5
32007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32009 if test "${ac_cv_search_opendir+set}" = set; then
32013 if test "${ac_cv_search_opendir+set}" = set; then
32016 ac_cv_search_opendir=no
32018 rm conftest.$ac_ext
32019 LIBS=$ac_func_search_save_LIBS
32021 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32022 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
32023 ac_res=$ac_cv_search_opendir
32024 if test "$ac_res" != no; then
32025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32031 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32032 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
32033 if test "${ac_cv_header_stat_broken+set}" = set; then
32034 echo $ECHO_N "(cached) $ECHO_C" >&6
32036 cat >conftest.$ac_ext <<_ACEOF
32039 cat confdefs.h >>conftest.$ac_ext
32040 cat >>conftest.$ac_ext <<_ACEOF
32041 /* end confdefs.h. */
32042 #include <sys/types.h>
32043 #include <sys/stat.h>
32045 #if defined S_ISBLK && defined S_IFDIR
32046 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32049 #if defined S_ISBLK && defined S_IFCHR
32050 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32053 #if defined S_ISLNK && defined S_IFREG
32054 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32057 #if defined S_ISSOCK && defined S_IFREG
32058 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069 (eval "$ac_compile") 2>conftest.er1
32071 grep -v '^ *+' conftest.er1 >conftest.err
32073 cat conftest.err >&5
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); } && {
32076 test -z "$ac_c_werror_flag" ||
32077 test ! -s conftest.err
32078 } && test -s conftest.$ac_objext; then
32079 ac_cv_header_stat_broken=no
32081 echo "$as_me: failed program was:" >&5
32082 sed 's/^/| /' conftest.$ac_ext >&5
32084 ac_cv_header_stat_broken=yes
32087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32089 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32090 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
32091 if test $ac_cv_header_stat_broken = yes; then
32093 cat >>confdefs.h <<\_ACEOF
32094 #define STAT_MACROS_BROKEN 1
32099 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32100 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
32101 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32102 echo $ECHO_N "(cached) $ECHO_C" >&6
32104 cat >conftest.$ac_ext <<_ACEOF
32107 cat confdefs.h >>conftest.$ac_ext
32108 cat >>conftest.$ac_ext <<_ACEOF
32109 /* end confdefs.h. */
32110 #include <sys/types.h>
32111 #include <sys/wait.h>
32112 #ifndef WEXITSTATUS
32113 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32116 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32124 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32129 rm -f conftest.$ac_objext
32130 if { (ac_try="$ac_compile"
32131 case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_compile") 2>conftest.er1
32138 grep -v '^ *+' conftest.er1 >conftest.err
32140 cat conftest.err >&5
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } && {
32143 test -z "$ac_c_werror_flag" ||
32144 test ! -s conftest.err
32145 } && test -s conftest.$ac_objext; then
32146 ac_cv_header_sys_wait_h=yes
32148 echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.$ac_ext >&5
32151 ac_cv_header_sys_wait_h=no
32154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32156 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32157 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
32158 if test $ac_cv_header_sys_wait_h = yes; then
32160 cat >>confdefs.h <<\_ACEOF
32161 #define HAVE_SYS_WAIT_H 1
32166 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32167 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32168 if test "${ac_cv_header_time+set}" = set; then
32169 echo $ECHO_N "(cached) $ECHO_C" >&6
32171 cat >conftest.$ac_ext <<_ACEOF
32174 cat confdefs.h >>conftest.$ac_ext
32175 cat >>conftest.$ac_ext <<_ACEOF
32176 /* end confdefs.h. */
32177 #include <sys/types.h>
32178 #include <sys/time.h>
32184 if ((struct tm *) 0)
32190 rm -f conftest.$ac_objext
32191 if { (ac_try="$ac_compile"
32192 case "(($ac_try" in
32193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32194 *) ac_try_echo=$ac_try;;
32196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32197 (eval "$ac_compile") 2>conftest.er1
32199 grep -v '^ *+' conftest.er1 >conftest.err
32201 cat conftest.err >&5
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } && {
32204 test -z "$ac_c_werror_flag" ||
32205 test ! -s conftest.err
32206 } && test -s conftest.$ac_objext; then
32207 ac_cv_header_time=yes
32209 echo "$as_me: failed program was:" >&5
32210 sed 's/^/| /' conftest.$ac_ext >&5
32212 ac_cv_header_time=no
32215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32217 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32218 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32219 if test $ac_cv_header_time = yes; then
32221 cat >>confdefs.h <<\_ACEOF
32222 #define TIME_WITH_SYS_TIME 1
32227 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32228 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32229 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32230 echo $ECHO_N "(cached) $ECHO_C" >&6
32232 cat >conftest.$ac_ext <<_ACEOF
32235 cat confdefs.h >>conftest.$ac_ext
32236 cat >>conftest.$ac_ext <<_ACEOF
32237 /* end confdefs.h. */
32238 $ac_includes_default
32242 static struct stat ac_aggr;
32243 if (ac_aggr.st_blksize)
32249 rm -f conftest.$ac_objext
32250 if { (ac_try="$ac_compile"
32251 case "(($ac_try" in
32252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253 *) ac_try_echo=$ac_try;;
32255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256 (eval "$ac_compile") 2>conftest.er1
32258 grep -v '^ *+' conftest.er1 >conftest.err
32260 cat conftest.err >&5
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); } && {
32263 test -z "$ac_c_werror_flag" ||
32264 test ! -s conftest.err
32265 } && test -s conftest.$ac_objext; then
32266 ac_cv_member_struct_stat_st_blksize=yes
32268 echo "$as_me: failed program was:" >&5
32269 sed 's/^/| /' conftest.$ac_ext >&5
32271 cat >conftest.$ac_ext <<_ACEOF
32274 cat confdefs.h >>conftest.$ac_ext
32275 cat >>conftest.$ac_ext <<_ACEOF
32276 /* end confdefs.h. */
32277 $ac_includes_default
32281 static struct stat ac_aggr;
32282 if (sizeof ac_aggr.st_blksize)
32288 rm -f conftest.$ac_objext
32289 if { (ac_try="$ac_compile"
32290 case "(($ac_try" in
32291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32292 *) ac_try_echo=$ac_try;;
32294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32295 (eval "$ac_compile") 2>conftest.er1
32297 grep -v '^ *+' conftest.er1 >conftest.err
32299 cat conftest.err >&5
32300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); } && {
32302 test -z "$ac_c_werror_flag" ||
32303 test ! -s conftest.err
32304 } && test -s conftest.$ac_objext; then
32305 ac_cv_member_struct_stat_st_blksize=yes
32307 echo "$as_me: failed program was:" >&5
32308 sed 's/^/| /' conftest.$ac_ext >&5
32310 ac_cv_member_struct_stat_st_blksize=no
32313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32319 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32320 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32322 cat >>confdefs.h <<_ACEOF
32323 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32327 cat >>confdefs.h <<\_ACEOF
32328 #define HAVE_ST_BLKSIZE 1
32334 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32335 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32336 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32337 echo $ECHO_N "(cached) $ECHO_C" >&6
32339 cat >conftest.$ac_ext <<_ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h. */
32345 $ac_includes_default
32349 static struct stat ac_aggr;
32350 if (ac_aggr.st_blocks)
32356 rm -f conftest.$ac_objext
32357 if { (ac_try="$ac_compile"
32358 case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_compile") 2>conftest.er1
32365 grep -v '^ *+' conftest.er1 >conftest.err
32367 cat conftest.err >&5
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); } && {
32370 test -z "$ac_c_werror_flag" ||
32371 test ! -s conftest.err
32372 } && test -s conftest.$ac_objext; then
32373 ac_cv_member_struct_stat_st_blocks=yes
32375 echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32378 cat >conftest.$ac_ext <<_ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h. */
32384 $ac_includes_default
32388 static struct stat ac_aggr;
32389 if (sizeof ac_aggr.st_blocks)
32395 rm -f conftest.$ac_objext
32396 if { (ac_try="$ac_compile"
32397 case "(($ac_try" in
32398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399 *) ac_try_echo=$ac_try;;
32401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32402 (eval "$ac_compile") 2>conftest.er1
32404 grep -v '^ *+' conftest.er1 >conftest.err
32406 cat conftest.err >&5
32407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408 (exit $ac_status); } && {
32409 test -z "$ac_c_werror_flag" ||
32410 test ! -s conftest.err
32411 } && test -s conftest.$ac_objext; then
32412 ac_cv_member_struct_stat_st_blocks=yes
32414 echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32417 ac_cv_member_struct_stat_st_blocks=no
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32425 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32426 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32427 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32429 cat >>confdefs.h <<_ACEOF
32430 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32434 cat >>confdefs.h <<\_ACEOF
32435 #define HAVE_ST_BLOCKS 1
32439 case " $LIBOBJS " in
32440 *" fileblocks.$ac_objext "* ) ;;
32441 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32448 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32449 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32450 if test "${ac_cv_struct_tm+set}" = set; then
32451 echo $ECHO_N "(cached) $ECHO_C" >&6
32453 cat >conftest.$ac_ext <<_ACEOF
32456 cat confdefs.h >>conftest.$ac_ext
32457 cat >>conftest.$ac_ext <<_ACEOF
32458 /* end confdefs.h. */
32459 #include <sys/types.h>
32466 int *p = &tm.tm_sec;
32472 rm -f conftest.$ac_objext
32473 if { (ac_try="$ac_compile"
32474 case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_compile") 2>conftest.er1
32481 grep -v '^ *+' conftest.er1 >conftest.err
32483 cat conftest.err >&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); } && {
32486 test -z "$ac_c_werror_flag" ||
32487 test ! -s conftest.err
32488 } && test -s conftest.$ac_objext; then
32489 ac_cv_struct_tm=time.h
32491 echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32494 ac_cv_struct_tm=sys/time.h
32497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32499 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32500 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32501 if test $ac_cv_struct_tm = sys/time.h; then
32503 cat >>confdefs.h <<\_ACEOF
32504 #define TM_IN_SYS_TIME 1
32509 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32510 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32511 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32512 echo $ECHO_N "(cached) $ECHO_C" >&6
32514 cat >conftest.$ac_ext <<_ACEOF
32517 cat confdefs.h >>conftest.$ac_ext
32518 cat >>conftest.$ac_ext <<_ACEOF
32519 /* end confdefs.h. */
32520 #include <sys/types.h>
32521 #include <$ac_cv_struct_tm>
32527 static struct tm ac_aggr;
32528 if (ac_aggr.tm_zone)
32534 rm -f conftest.$ac_objext
32535 if { (ac_try="$ac_compile"
32536 case "(($ac_try" in
32537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32538 *) ac_try_echo=$ac_try;;
32540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32541 (eval "$ac_compile") 2>conftest.er1
32543 grep -v '^ *+' conftest.er1 >conftest.err
32545 cat conftest.err >&5
32546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547 (exit $ac_status); } && {
32548 test -z "$ac_c_werror_flag" ||
32549 test ! -s conftest.err
32550 } && test -s conftest.$ac_objext; then
32551 ac_cv_member_struct_tm_tm_zone=yes
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 cat >conftest.$ac_ext <<_ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h. */
32562 #include <sys/types.h>
32563 #include <$ac_cv_struct_tm>
32569 static struct tm ac_aggr;
32570 if (sizeof ac_aggr.tm_zone)
32576 rm -f conftest.$ac_objext
32577 if { (ac_try="$ac_compile"
32578 case "(($ac_try" in
32579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32580 *) ac_try_echo=$ac_try;;
32582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32583 (eval "$ac_compile") 2>conftest.er1
32585 grep -v '^ *+' conftest.er1 >conftest.err
32587 cat conftest.err >&5
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); } && {
32590 test -z "$ac_c_werror_flag" ||
32591 test ! -s conftest.err
32592 } && test -s conftest.$ac_objext; then
32593 ac_cv_member_struct_tm_tm_zone=yes
32595 echo "$as_me: failed program was:" >&5
32596 sed 's/^/| /' conftest.$ac_ext >&5
32598 ac_cv_member_struct_tm_tm_zone=no
32601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32606 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32607 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32608 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32610 cat >>confdefs.h <<_ACEOF
32611 #define HAVE_STRUCT_TM_TM_ZONE 1
32617 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32619 cat >>confdefs.h <<\_ACEOF
32620 #define HAVE_TM_ZONE 1
32624 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32625 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32626 if test "${ac_cv_have_decl_tzname+set}" = set; then
32627 echo $ECHO_N "(cached) $ECHO_C" >&6
32629 cat >conftest.$ac_ext <<_ACEOF
32632 cat confdefs.h >>conftest.$ac_ext
32633 cat >>conftest.$ac_ext <<_ACEOF
32634 /* end confdefs.h. */
32648 rm -f conftest.$ac_objext
32649 if { (ac_try="$ac_compile"
32650 case "(($ac_try" in
32651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652 *) ac_try_echo=$ac_try;;
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655 (eval "$ac_compile") 2>conftest.er1
32657 grep -v '^ *+' conftest.er1 >conftest.err
32659 cat conftest.err >&5
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); } && {
32662 test -z "$ac_c_werror_flag" ||
32663 test ! -s conftest.err
32664 } && test -s conftest.$ac_objext; then
32665 ac_cv_have_decl_tzname=yes
32667 echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.$ac_ext >&5
32670 ac_cv_have_decl_tzname=no
32673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32675 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32676 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32677 if test $ac_cv_have_decl_tzname = yes; then
32679 cat >>confdefs.h <<_ACEOF
32680 #define HAVE_DECL_TZNAME 1
32685 cat >>confdefs.h <<_ACEOF
32686 #define HAVE_DECL_TZNAME 0
32693 { echo "$as_me:$LINENO: checking for tzname" >&5
32694 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32695 if test "${ac_cv_var_tzname+set}" = set; then
32696 echo $ECHO_N "(cached) $ECHO_C" >&6
32698 cat >conftest.$ac_ext <<_ACEOF
32701 cat confdefs.h >>conftest.$ac_ext
32702 cat >>conftest.$ac_ext <<_ACEOF
32703 /* end confdefs.h. */
32705 #if !HAVE_DECL_TZNAME
32706 extern char *tzname[];
32712 return tzname[0][0];
32717 rm -f conftest.$ac_objext conftest$ac_exeext
32718 if { (ac_try="$ac_link"
32719 case "(($ac_try" in
32720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32721 *) ac_try_echo=$ac_try;;
32723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32724 (eval "$ac_link") 2>conftest.er1
32726 grep -v '^ *+' conftest.er1 >conftest.err
32728 cat conftest.err >&5
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); } && {
32731 test -z "$ac_c_werror_flag" ||
32732 test ! -s conftest.err
32733 } && test -s conftest$ac_exeext &&
32734 $as_test_x conftest$ac_exeext; then
32735 ac_cv_var_tzname=yes
32737 echo "$as_me: failed program was:" >&5
32738 sed 's/^/| /' conftest.$ac_ext >&5
32740 ac_cv_var_tzname=no
32743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32744 conftest$ac_exeext conftest.$ac_ext
32746 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32747 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32748 if test $ac_cv_var_tzname = yes; then
32750 cat >>confdefs.h <<\_ACEOF
32751 #define HAVE_TZNAME 1
32758 { echo "$as_me:$LINENO: checking for utime.h" >&5
32759 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32760 if test "${ba_cv_header_utime_h+set}" = set; then
32761 echo $ECHO_N "(cached) $ECHO_C" >&6
32764 cat >conftest.$ac_ext <<_ACEOF
32767 cat confdefs.h >>conftest.$ac_ext
32768 cat >>conftest.$ac_ext <<_ACEOF
32769 /* end confdefs.h. */
32771 #include <sys/types.h>
32784 rm -f conftest.$ac_objext
32785 if { (ac_try="$ac_compile"
32786 case "(($ac_try" in
32787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32788 *) ac_try_echo=$ac_try;;
32790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32791 (eval "$ac_compile") 2>conftest.er1
32793 grep -v '^ *+' conftest.er1 >conftest.err
32795 cat conftest.err >&5
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); } && {
32798 test -z "$ac_c_werror_flag" ||
32799 test ! -s conftest.err
32800 } && test -s conftest.$ac_objext; then
32802 ba_cv_header_utime_h=yes
32805 echo "$as_me: failed program was:" >&5
32806 sed 's/^/| /' conftest.$ac_ext >&5
32809 ba_cv_header_utime_h=no
32814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32818 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32819 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32820 test $ba_cv_header_utime_h = yes &&
32821 cat >>confdefs.h <<\_ACEOF
32822 #define HAVE_UTIME_H 1
32826 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32827 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32828 if test "${ba_cv_header_socklen_t+set}" = set; then
32829 echo $ECHO_N "(cached) $ECHO_C" >&6
32832 cat >conftest.$ac_ext <<_ACEOF
32835 cat confdefs.h >>conftest.$ac_ext
32836 cat >>conftest.$ac_ext <<_ACEOF
32837 /* end confdefs.h. */
32839 #include <sys/types.h>
32840 #include <sys/socket.h>
32852 rm -f conftest.$ac_objext
32853 if { (ac_try="$ac_compile"
32854 case "(($ac_try" in
32855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32856 *) ac_try_echo=$ac_try;;
32858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32859 (eval "$ac_compile") 2>conftest.er1
32861 grep -v '^ *+' conftest.er1 >conftest.err
32863 cat conftest.err >&5
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); } && {
32866 test -z "$ac_c_werror_flag" ||
32867 test ! -s conftest.err
32868 } && test -s conftest.$ac_objext; then
32870 ba_cv_header_socklen_t=yes
32873 echo "$as_me: failed program was:" >&5
32874 sed 's/^/| /' conftest.$ac_ext >&5
32877 ba_cv_header_socklen_t=no
32882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32886 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32887 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32888 test $ba_cv_header_socklen_t = yes &&
32889 cat >>confdefs.h <<\_ACEOF
32890 #define HAVE_SOCKLEN_T 1
32895 ac_cpp='$CXXCPP $CPPFLAGS'
32896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32900 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32901 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32902 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32903 echo $ECHO_N "(cached) $ECHO_C" >&6
32906 cat >conftest.$ac_ext <<_ACEOF
32909 cat confdefs.h >>conftest.$ac_ext
32910 cat >>conftest.$ac_ext <<_ACEOF
32911 /* end confdefs.h. */
32913 #include <unistd.h>
32914 #include <sys/types.h>
32915 #include <sys/ioctl.h>
32921 int (*d_ioctl)(int fd, unsigned long int request, ...);
32928 rm -f conftest.$ac_objext
32929 if { (ac_try="$ac_compile"
32930 case "(($ac_try" in
32931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932 *) ac_try_echo=$ac_try;;
32934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935 (eval "$ac_compile") 2>conftest.er1
32937 grep -v '^ *+' conftest.er1 >conftest.err
32939 cat conftest.err >&5
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); } && {
32942 test -z "$ac_cxx_werror_flag" ||
32943 test ! -s conftest.err
32944 } && test -s conftest.$ac_objext; then
32946 ba_cv_header_ioctl_req_t=yes
32949 echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32953 ba_cv_header_ioctl_req_t=no
32958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32962 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32963 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32964 test $ba_cv_header_ioctl_req_t = yes &&
32965 cat >>confdefs.h <<\_ACEOF
32966 #define HAVE_IOCTL_ULINT_REQUEST 1
32971 ac_cpp='$CPP $CPPFLAGS'
32972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32978 ac_cpp='$CXXCPP $CPPFLAGS'
32979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32983 { echo "$as_me:$LINENO: checking for typeof" >&5
32984 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32985 if test "${ba_cv_have_typeof+set}" = set; then
32986 echo $ECHO_N "(cached) $ECHO_C" >&6
32989 if test "$cross_compiling" = yes; then
32991 ba_cv_have_typeof=no
32995 cat >conftest.$ac_ext <<_ACEOF
32998 cat confdefs.h >>conftest.$ac_ext
32999 cat >>conftest.$ac_ext <<_ACEOF
33000 /* end confdefs.h. */
33002 main(){char *a = 0; a = (typeof a)a;}
33005 rm -f conftest$ac_exeext
33006 if { (ac_try="$ac_link"
33007 case "(($ac_try" in
33008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33009 *) ac_try_echo=$ac_try;;
33011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33012 (eval "$ac_link") 2>&5
33014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33016 { (case "(($ac_try" in
33017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018 *) ac_try_echo=$ac_try;;
33020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021 (eval "$ac_try") 2>&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; }; then
33026 ba_cv_have_typeof=yes
33029 echo "$as_me: program exited with status $ac_status" >&5
33030 echo "$as_me: failed program was:" >&5
33031 sed 's/^/| /' conftest.$ac_ext >&5
33033 ( exit $ac_status )
33035 ba_cv_have_typeof=no
33038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33045 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33046 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
33047 test $ba_cv_have_typeof = yes &&
33048 cat >>confdefs.h <<\_ACEOF
33049 #define HAVE_TYPEOF 1
33053 ac_cpp='$CPP $CPPFLAGS'
33054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33059 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33060 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33061 if test "${ac_cv_c_const+set}" = set; then
33062 echo $ECHO_N "(cached) $ECHO_C" >&6
33064 cat >conftest.$ac_ext <<_ACEOF
33067 cat confdefs.h >>conftest.$ac_ext
33068 cat >>conftest.$ac_ext <<_ACEOF
33069 /* end confdefs.h. */
33074 /* FIXME: Include the comments suggested by Paul. */
33075 #ifndef __cplusplus
33076 /* Ultrix mips cc rejects this. */
33077 typedef int charset[2];
33079 /* SunOS 4.1.1 cc rejects this. */
33080 char const *const *pcpcc;
33082 /* NEC SVR4.0.2 mips cc rejects this. */
33083 struct point {int x, y;};
33084 static struct point const zero = {0,0};
33085 /* AIX XL C 1.02.0.0 rejects this.
33086 It does not let you subtract one const X* pointer from another in
33087 an arm of an if-expression whose if-part is not a constant
33089 const char *g = "string";
33090 pcpcc = &g + (g ? g-g : 0);
33091 /* HPUX 7.0 cc rejects these. */
33093 ppc = (char**) pcpcc;
33094 pcpcc = (char const *const *) ppc;
33095 { /* SCO 3.2v4 cc rejects this. */
33097 char const *s = 0 ? (char *) 0 : (char const *) 0;
33102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33103 int x[] = {25, 17};
33104 const int *foo = &x[0];
33107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33108 typedef const int *iptr;
33112 { /* AIX XL C 1.02.0.0 rejects this saying
33113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33114 struct s { int j; const int *ap[3]; };
33115 struct s *b; b->j = 5;
33117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33118 const int foo = 10;
33119 if (!foo) return 0;
33121 return !cs[0] && !zero.x;
33128 rm -f conftest.$ac_objext
33129 if { (ac_try="$ac_compile"
33130 case "(($ac_try" in
33131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132 *) ac_try_echo=$ac_try;;
33134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33135 (eval "$ac_compile") 2>conftest.er1
33137 grep -v '^ *+' conftest.er1 >conftest.err
33139 cat conftest.err >&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); } && {
33142 test -z "$ac_c_werror_flag" ||
33143 test ! -s conftest.err
33144 } && test -s conftest.$ac_objext; then
33147 echo "$as_me: failed program was:" >&5
33148 sed 's/^/| /' conftest.$ac_ext >&5
33153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33155 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33156 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33157 if test $ac_cv_c_const = no; then
33159 cat >>confdefs.h <<\_ACEOF
33166 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33167 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
33169 # The order of these tests is important.
33170 cat >conftest.$ac_ext <<_ACEOF
33173 cat confdefs.h >>conftest.$ac_ext
33174 cat >>conftest.$ac_ext <<_ACEOF
33175 /* end confdefs.h. */
33177 #include <sys/statvfs.h>
33178 #include <sys/fstyp.h>
33181 if { (ac_try="$ac_cpp conftest.$ac_ext"
33182 case "(($ac_try" in
33183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184 *) ac_try_echo=$ac_try;;
33186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33189 grep -v '^ *+' conftest.er1 >conftest.err
33191 cat conftest.err >&5
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); } >/dev/null && {
33194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33195 test ! -s conftest.err
33197 cat >>confdefs.h <<\_ACEOF
33198 #define FSTYPE_STATVFS 1
33203 echo "$as_me: failed program was:" >&5
33204 sed 's/^/| /' conftest.$ac_ext >&5
33209 rm -f conftest.err conftest.$ac_ext
33210 if test $fstype = no; then
33211 cat >conftest.$ac_ext <<_ACEOF
33214 cat confdefs.h >>conftest.$ac_ext
33215 cat >>conftest.$ac_ext <<_ACEOF
33216 /* end confdefs.h. */
33218 #include <sys/statfs.h>
33219 #include <sys/fstyp.h>
33222 if { (ac_try="$ac_cpp conftest.$ac_ext"
33223 case "(($ac_try" in
33224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33225 *) ac_try_echo=$ac_try;;
33227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33230 grep -v '^ *+' conftest.er1 >conftest.err
33232 cat conftest.err >&5
33233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234 (exit $ac_status); } >/dev/null && {
33235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33236 test ! -s conftest.err
33238 cat >>confdefs.h <<\_ACEOF
33239 #define FSTYPE_USG_STATFS 1
33244 echo "$as_me: failed program was:" >&5
33245 sed 's/^/| /' conftest.$ac_ext >&5
33250 rm -f conftest.err conftest.$ac_ext
33252 if test $fstype = no; then
33253 cat >conftest.$ac_ext <<_ACEOF
33256 cat confdefs.h >>conftest.$ac_ext
33257 cat >>conftest.$ac_ext <<_ACEOF
33258 /* end confdefs.h. */
33260 #include <sys/statfs.h>
33261 #include <sys/vmount.h>
33264 if { (ac_try="$ac_cpp conftest.$ac_ext"
33265 case "(($ac_try" in
33266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33267 *) ac_try_echo=$ac_try;;
33269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33272 grep -v '^ *+' conftest.er1 >conftest.err
33274 cat conftest.err >&5
33275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276 (exit $ac_status); } >/dev/null && {
33277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33278 test ! -s conftest.err
33280 cat >>confdefs.h <<\_ACEOF
33281 #define FSTYPE_AIX_STATFS 1
33286 echo "$as_me: failed program was:" >&5
33287 sed 's/^/| /' conftest.$ac_ext >&5
33292 rm -f conftest.err conftest.$ac_ext
33294 if test $fstype = no; then
33295 cat >conftest.$ac_ext <<_ACEOF
33298 cat confdefs.h >>conftest.$ac_ext
33299 cat >>conftest.$ac_ext <<_ACEOF
33300 /* end confdefs.h. */
33302 #include <mntent.h>
33305 if { (ac_try="$ac_cpp conftest.$ac_ext"
33306 case "(($ac_try" in
33307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33308 *) ac_try_echo=$ac_try;;
33310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33313 grep -v '^ *+' conftest.er1 >conftest.err
33315 cat conftest.err >&5
33316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317 (exit $ac_status); } >/dev/null && {
33318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33319 test ! -s conftest.err
33321 cat >>confdefs.h <<\_ACEOF
33322 #define FSTYPE_MNTENT 1
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33333 rm -f conftest.err conftest.$ac_ext
33335 if test $fstype = no; then
33336 cat >conftest.$ac_ext <<_ACEOF
33339 cat confdefs.h >>conftest.$ac_ext
33340 cat >>conftest.$ac_ext <<_ACEOF
33341 /* end confdefs.h. */
33342 #include <sys/mount.h>
33345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33346 $EGREP "f_type;" >/dev/null 2>&1; then
33347 cat >>confdefs.h <<\_ACEOF
33348 #define FSTYPE_STATFS 1
33355 if test $fstype = no; then
33356 cat >conftest.$ac_ext <<_ACEOF
33359 cat confdefs.h >>conftest.$ac_ext
33360 cat >>conftest.$ac_ext <<_ACEOF
33361 /* end confdefs.h. */
33363 #include <sys/mount.h>
33364 #include <sys/fs_types.h>
33367 if { (ac_try="$ac_cpp conftest.$ac_ext"
33368 case "(($ac_try" in
33369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33375 grep -v '^ *+' conftest.er1 >conftest.err
33377 cat conftest.err >&5
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } >/dev/null && {
33380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33381 test ! -s conftest.err
33383 cat >>confdefs.h <<\_ACEOF
33384 #define FSTYPE_GETMNT 1
33389 echo "$as_me: failed program was:" >&5
33390 sed 's/^/| /' conftest.$ac_ext >&5
33395 rm -f conftest.err conftest.$ac_ext
33397 { echo "$as_me:$LINENO: result: $fstype" >&5
33398 echo "${ECHO_T}$fstype" >&6; }
33400 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33401 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33402 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33403 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33406 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33407 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33409 # Is the header compilable?
33410 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33411 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33412 cat >conftest.$ac_ext <<_ACEOF
33415 cat confdefs.h >>conftest.$ac_ext
33416 cat >>conftest.$ac_ext <<_ACEOF
33417 /* end confdefs.h. */
33418 $ac_includes_default
33419 #include <sys/statvfs.h>
33421 rm -f conftest.$ac_objext
33422 if { (ac_try="$ac_compile"
33423 case "(($ac_try" in
33424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425 *) ac_try_echo=$ac_try;;
33427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428 (eval "$ac_compile") 2>conftest.er1
33430 grep -v '^ *+' conftest.er1 >conftest.err
33432 cat conftest.err >&5
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); } && {
33435 test -z "$ac_c_werror_flag" ||
33436 test ! -s conftest.err
33437 } && test -s conftest.$ac_objext; then
33438 ac_header_compiler=yes
33440 echo "$as_me: failed program was:" >&5
33441 sed 's/^/| /' conftest.$ac_ext >&5
33443 ac_header_compiler=no
33446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33448 echo "${ECHO_T}$ac_header_compiler" >&6; }
33450 # Is the header present?
33451 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33452 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33453 cat >conftest.$ac_ext <<_ACEOF
33456 cat confdefs.h >>conftest.$ac_ext
33457 cat >>conftest.$ac_ext <<_ACEOF
33458 /* end confdefs.h. */
33459 #include <sys/statvfs.h>
33461 if { (ac_try="$ac_cpp conftest.$ac_ext"
33462 case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33469 grep -v '^ *+' conftest.er1 >conftest.err
33471 cat conftest.err >&5
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); } >/dev/null && {
33474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33475 test ! -s conftest.err
33477 ac_header_preproc=yes
33479 echo "$as_me: failed program was:" >&5
33480 sed 's/^/| /' conftest.$ac_ext >&5
33482 ac_header_preproc=no
33485 rm -f conftest.err conftest.$ac_ext
33486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33487 echo "${ECHO_T}$ac_header_preproc" >&6; }
33489 # So? What about this header?
33490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33492 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33493 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33494 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33495 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33496 ac_header_preproc=yes
33499 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33500 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33501 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33502 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33503 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33504 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33505 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33506 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33507 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33508 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33509 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33510 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33514 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33515 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33516 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33519 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33521 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33522 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33525 if test $ac_cv_header_sys_statvfs_h = yes; then
33527 cat >>confdefs.h <<\_ACEOF
33528 #define HAVE_SYS_STATVFS_H 1
33535 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33536 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33537 if test "${ac_cv_type_signal+set}" = set; then
33538 echo $ECHO_N "(cached) $ECHO_C" >&6
33540 cat >conftest.$ac_ext <<_ACEOF
33543 cat confdefs.h >>conftest.$ac_ext
33544 cat >>conftest.$ac_ext <<_ACEOF
33545 /* end confdefs.h. */
33546 #include <sys/types.h>
33547 #include <signal.h>
33552 return *(signal (0, 0)) (0) == 1;
33557 rm -f conftest.$ac_objext
33558 if { (ac_try="$ac_compile"
33559 case "(($ac_try" in
33560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33561 *) ac_try_echo=$ac_try;;
33563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33564 (eval "$ac_compile") 2>conftest.er1
33566 grep -v '^ *+' conftest.er1 >conftest.err
33568 cat conftest.err >&5
33569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33570 (exit $ac_status); } && {
33571 test -z "$ac_c_werror_flag" ||
33572 test ! -s conftest.err
33573 } && test -s conftest.$ac_objext; then
33574 ac_cv_type_signal=int
33576 echo "$as_me: failed program was:" >&5
33577 sed 's/^/| /' conftest.$ac_ext >&5
33579 ac_cv_type_signal=void
33582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33584 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33585 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33587 cat >>confdefs.h <<_ACEOF
33588 #define RETSIGTYPE $ac_cv_type_signal
33593 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33594 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33595 if test "${bash_cv_signal_vintage+set}" = set; then
33596 echo $ECHO_N "(cached) $ECHO_C" >&6
33599 cat >conftest.$ac_ext <<_ACEOF
33602 cat confdefs.h >>conftest.$ac_ext
33603 cat >>conftest.$ac_ext <<_ACEOF
33604 /* end confdefs.h. */
33605 #include <signal.h>
33611 struct sigaction sa;
33612 sigemptyset(&ss); sigsuspend(&ss);
33613 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33614 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33620 rm -f conftest.$ac_objext conftest$ac_exeext
33621 if { (ac_try="$ac_link"
33622 case "(($ac_try" in
33623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624 *) ac_try_echo=$ac_try;;
33626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627 (eval "$ac_link") 2>conftest.er1
33629 grep -v '^ *+' conftest.er1 >conftest.err
33631 cat conftest.err >&5
33632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633 (exit $ac_status); } && {
33634 test -z "$ac_c_werror_flag" ||
33635 test ! -s conftest.err
33636 } && test -s conftest$ac_exeext &&
33637 $as_test_x conftest$ac_exeext; then
33638 bash_cv_signal_vintage="posix"
33640 echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33644 cat >conftest.$ac_ext <<_ACEOF
33647 cat confdefs.h >>conftest.$ac_ext
33648 cat >>conftest.$ac_ext <<_ACEOF
33649 /* end confdefs.h. */
33650 #include <signal.h>
33655 int mask = sigmask(SIGINT);
33656 sigsetmask(mask); sigblock(mask); sigpause(mask);
33662 rm -f conftest.$ac_objext conftest$ac_exeext
33663 if { (ac_try="$ac_link"
33664 case "(($ac_try" in
33665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33666 *) ac_try_echo=$ac_try;;
33668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669 (eval "$ac_link") 2>conftest.er1
33671 grep -v '^ *+' conftest.er1 >conftest.err
33673 cat conftest.err >&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); } && {
33676 test -z "$ac_c_werror_flag" ||
33677 test ! -s conftest.err
33678 } && test -s conftest$ac_exeext &&
33679 $as_test_x conftest$ac_exeext; then
33680 bash_cv_signal_vintage="4.2bsd"
33682 echo "$as_me: failed program was:" >&5
33683 sed 's/^/| /' conftest.$ac_ext >&5
33686 cat >conftest.$ac_ext <<_ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h. */
33693 #include <signal.h>
33694 RETSIGTYPE foo() { }
33699 int mask = sigmask(SIGINT);
33700 sigset(SIGINT, foo); sigrelse(SIGINT);
33701 sighold(SIGINT); sigpause(SIGINT);
33707 rm -f conftest.$ac_objext conftest$ac_exeext
33708 if { (ac_try="$ac_link"
33709 case "(($ac_try" in
33710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33711 *) ac_try_echo=$ac_try;;
33713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33714 (eval "$ac_link") 2>conftest.er1
33716 grep -v '^ *+' conftest.er1 >conftest.err
33718 cat conftest.err >&5
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); } && {
33721 test -z "$ac_c_werror_flag" ||
33722 test ! -s conftest.err
33723 } && test -s conftest$ac_exeext &&
33724 $as_test_x conftest$ac_exeext; then
33725 bash_cv_signal_vintage="svr3"
33727 echo "$as_me: failed program was:" >&5
33728 sed 's/^/| /' conftest.$ac_ext >&5
33730 bash_cv_signal_vintage="v7"
33734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33735 conftest$ac_exeext conftest.$ac_ext
33739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33740 conftest$ac_exeext conftest.$ac_ext
33744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33745 conftest$ac_exeext conftest.$ac_ext
33749 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33750 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33751 if test "$bash_cv_signal_vintage" = "posix"; then
33752 cat >>confdefs.h <<\_ACEOF
33753 #define HAVE_POSIX_SIGNALS 1
33756 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33757 cat >>confdefs.h <<\_ACEOF
33758 #define HAVE_BSD_SIGNALS 1
33761 elif test "$bash_cv_signal_vintage" = "svr3"; then
33762 cat >>confdefs.h <<\_ACEOF
33763 #define HAVE_USG_SIGHOLD 1
33768 { echo "$as_me:$LINENO: checking for mode_t" >&5
33769 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33770 if test "${ac_cv_type_mode_t+set}" = set; then
33771 echo $ECHO_N "(cached) $ECHO_C" >&6
33773 cat >conftest.$ac_ext <<_ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h. */
33779 $ac_includes_default
33780 typedef mode_t ac__type_new_;
33784 if ((ac__type_new_ *) 0)
33786 if (sizeof (ac__type_new_))
33792 rm -f conftest.$ac_objext
33793 if { (ac_try="$ac_compile"
33794 case "(($ac_try" in
33795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796 *) ac_try_echo=$ac_try;;
33798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33799 (eval "$ac_compile") 2>conftest.er1
33801 grep -v '^ *+' conftest.er1 >conftest.err
33803 cat conftest.err >&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } && {
33806 test -z "$ac_c_werror_flag" ||
33807 test ! -s conftest.err
33808 } && test -s conftest.$ac_objext; then
33809 ac_cv_type_mode_t=yes
33811 echo "$as_me: failed program was:" >&5
33812 sed 's/^/| /' conftest.$ac_ext >&5
33814 ac_cv_type_mode_t=no
33817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33819 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33820 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33821 if test $ac_cv_type_mode_t = yes; then
33825 cat >>confdefs.h <<_ACEOF
33831 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33832 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33833 if test "${ac_cv_type_uid_t+set}" = set; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33836 cat >conftest.$ac_ext <<_ACEOF
33839 cat confdefs.h >>conftest.$ac_ext
33840 cat >>conftest.$ac_ext <<_ACEOF
33841 /* end confdefs.h. */
33842 #include <sys/types.h>
33845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33846 $EGREP "uid_t" >/dev/null 2>&1; then
33847 ac_cv_type_uid_t=yes
33849 ac_cv_type_uid_t=no
33854 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33855 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33856 if test $ac_cv_type_uid_t = no; then
33858 cat >>confdefs.h <<\_ACEOF
33863 cat >>confdefs.h <<\_ACEOF
33869 { echo "$as_me:$LINENO: checking for size_t" >&5
33870 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33871 if test "${ac_cv_type_size_t+set}" = set; then
33872 echo $ECHO_N "(cached) $ECHO_C" >&6
33874 cat >conftest.$ac_ext <<_ACEOF
33877 cat confdefs.h >>conftest.$ac_ext
33878 cat >>conftest.$ac_ext <<_ACEOF
33879 /* end confdefs.h. */
33880 $ac_includes_default
33881 typedef size_t ac__type_new_;
33885 if ((ac__type_new_ *) 0)
33887 if (sizeof (ac__type_new_))
33893 rm -f conftest.$ac_objext
33894 if { (ac_try="$ac_compile"
33895 case "(($ac_try" in
33896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33897 *) ac_try_echo=$ac_try;;
33899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33900 (eval "$ac_compile") 2>conftest.er1
33902 grep -v '^ *+' conftest.er1 >conftest.err
33904 cat conftest.err >&5
33905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 (exit $ac_status); } && {
33907 test -z "$ac_c_werror_flag" ||
33908 test ! -s conftest.err
33909 } && test -s conftest.$ac_objext; then
33910 ac_cv_type_size_t=yes
33912 echo "$as_me: failed program was:" >&5
33913 sed 's/^/| /' conftest.$ac_ext >&5
33915 ac_cv_type_size_t=no
33918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33920 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33921 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33922 if test $ac_cv_type_size_t = yes; then
33926 cat >>confdefs.h <<_ACEOF
33927 #define size_t unsigned int
33932 { echo "$as_me:$LINENO: checking for pid_t" >&5
33933 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33934 if test "${ac_cv_type_pid_t+set}" = set; then
33935 echo $ECHO_N "(cached) $ECHO_C" >&6
33937 cat >conftest.$ac_ext <<_ACEOF
33940 cat confdefs.h >>conftest.$ac_ext
33941 cat >>conftest.$ac_ext <<_ACEOF
33942 /* end confdefs.h. */
33943 $ac_includes_default
33944 typedef pid_t ac__type_new_;
33948 if ((ac__type_new_ *) 0)
33950 if (sizeof (ac__type_new_))
33956 rm -f conftest.$ac_objext
33957 if { (ac_try="$ac_compile"
33958 case "(($ac_try" in
33959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960 *) ac_try_echo=$ac_try;;
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963 (eval "$ac_compile") 2>conftest.er1
33965 grep -v '^ *+' conftest.er1 >conftest.err
33967 cat conftest.err >&5
33968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969 (exit $ac_status); } && {
33970 test -z "$ac_c_werror_flag" ||
33971 test ! -s conftest.err
33972 } && test -s conftest.$ac_objext; then
33973 ac_cv_type_pid_t=yes
33975 echo "$as_me: failed program was:" >&5
33976 sed 's/^/| /' conftest.$ac_ext >&5
33978 ac_cv_type_pid_t=no
33981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33983 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33984 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33985 if test $ac_cv_type_pid_t = yes; then
33989 cat >>confdefs.h <<_ACEOF
33995 { echo "$as_me:$LINENO: checking for off_t" >&5
33996 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33997 if test "${ac_cv_type_off_t+set}" = set; then
33998 echo $ECHO_N "(cached) $ECHO_C" >&6
34000 cat >conftest.$ac_ext <<_ACEOF
34003 cat confdefs.h >>conftest.$ac_ext
34004 cat >>conftest.$ac_ext <<_ACEOF
34005 /* end confdefs.h. */
34006 $ac_includes_default
34007 typedef off_t ac__type_new_;
34011 if ((ac__type_new_ *) 0)
34013 if (sizeof (ac__type_new_))
34019 rm -f conftest.$ac_objext
34020 if { (ac_try="$ac_compile"
34021 case "(($ac_try" in
34022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023 *) ac_try_echo=$ac_try;;
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026 (eval "$ac_compile") 2>conftest.er1
34028 grep -v '^ *+' conftest.er1 >conftest.err
34030 cat conftest.err >&5
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); } && {
34033 test -z "$ac_c_werror_flag" ||
34034 test ! -s conftest.err
34035 } && test -s conftest.$ac_objext; then
34036 ac_cv_type_off_t=yes
34038 echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34041 ac_cv_type_off_t=no
34044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34046 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34047 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34048 if test $ac_cv_type_off_t = yes; then
34052 cat >>confdefs.h <<_ACEOF
34053 #define off_t long int
34059 { echo "$as_me:$LINENO: checking for intptr_t" >&5
34060 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
34061 if test "${ac_cv_type_intptr_t+set}" = set; then
34062 echo $ECHO_N "(cached) $ECHO_C" >&6
34064 cat >conftest.$ac_ext <<_ACEOF
34067 cat confdefs.h >>conftest.$ac_ext
34068 cat >>conftest.$ac_ext <<_ACEOF
34069 /* end confdefs.h. */
34070 $ac_includes_default
34071 typedef intptr_t ac__type_new_;
34075 if ((ac__type_new_ *) 0)
34077 if (sizeof (ac__type_new_))
34083 rm -f conftest.$ac_objext
34084 if { (ac_try="$ac_compile"
34085 case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_compile") 2>conftest.er1
34092 grep -v '^ *+' conftest.er1 >conftest.err
34094 cat conftest.err >&5
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); } && {
34097 test -z "$ac_c_werror_flag" ||
34098 test ! -s conftest.err
34099 } && test -s conftest.$ac_objext; then
34100 ac_cv_type_intptr_t=yes
34102 echo "$as_me: failed program was:" >&5
34103 sed 's/^/| /' conftest.$ac_ext >&5
34105 ac_cv_type_intptr_t=no
34108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34110 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
34111 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
34112 if test $ac_cv_type_intptr_t = yes; then
34114 cat >>confdefs.h <<\_ACEOF
34115 #define HAVE_INTPTR_T 1
34119 for ac_type in 'int' 'long int' 'long long int'; do
34120 cat >conftest.$ac_ext <<_ACEOF
34123 cat confdefs.h >>conftest.$ac_ext
34124 cat >>conftest.$ac_ext <<_ACEOF
34125 /* end confdefs.h. */
34126 $ac_includes_default
34130 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34137 rm -f conftest.$ac_objext
34138 if { (ac_try="$ac_compile"
34139 case "(($ac_try" in
34140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34141 *) ac_try_echo=$ac_try;;
34143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34144 (eval "$ac_compile") 2>conftest.er1
34146 grep -v '^ *+' conftest.er1 >conftest.err
34148 cat conftest.err >&5
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); } && {
34151 test -z "$ac_c_werror_flag" ||
34152 test ! -s conftest.err
34153 } && test -s conftest.$ac_objext; then
34155 cat >>confdefs.h <<_ACEOF
34156 #define intptr_t $ac_type
34161 echo "$as_me: failed program was:" >&5
34162 sed 's/^/| /' conftest.$ac_ext >&5
34167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34168 test -z "$ac_type" && break
34174 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
34175 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
34176 if test "${ac_cv_type_uintptr_t+set}" = set; then
34177 echo $ECHO_N "(cached) $ECHO_C" >&6
34179 cat >conftest.$ac_ext <<_ACEOF
34182 cat confdefs.h >>conftest.$ac_ext
34183 cat >>conftest.$ac_ext <<_ACEOF
34184 /* end confdefs.h. */
34185 $ac_includes_default
34186 typedef uintptr_t ac__type_new_;
34190 if ((ac__type_new_ *) 0)
34192 if (sizeof (ac__type_new_))
34198 rm -f conftest.$ac_objext
34199 if { (ac_try="$ac_compile"
34200 case "(($ac_try" in
34201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34202 *) ac_try_echo=$ac_try;;
34204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34205 (eval "$ac_compile") 2>conftest.er1
34207 grep -v '^ *+' conftest.er1 >conftest.err
34209 cat conftest.err >&5
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } && {
34212 test -z "$ac_c_werror_flag" ||
34213 test ! -s conftest.err
34214 } && test -s conftest.$ac_objext; then
34215 ac_cv_type_uintptr_t=yes
34217 echo "$as_me: failed program was:" >&5
34218 sed 's/^/| /' conftest.$ac_ext >&5
34220 ac_cv_type_uintptr_t=no
34223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34225 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34226 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34227 if test $ac_cv_type_uintptr_t = yes; then
34229 cat >>confdefs.h <<\_ACEOF
34230 #define HAVE_UINTPTR_T 1
34234 for ac_type in 'unsigned int' 'unsigned long int' \
34235 'unsigned long long int'; do
34236 cat >conftest.$ac_ext <<_ACEOF
34239 cat confdefs.h >>conftest.$ac_ext
34240 cat >>conftest.$ac_ext <<_ACEOF
34241 /* end confdefs.h. */
34242 $ac_includes_default
34246 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34253 rm -f conftest.$ac_objext
34254 if { (ac_try="$ac_compile"
34255 case "(($ac_try" in
34256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34257 *) ac_try_echo=$ac_try;;
34259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34260 (eval "$ac_compile") 2>conftest.er1
34262 grep -v '^ *+' conftest.er1 >conftest.err
34264 cat conftest.err >&5
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); } && {
34267 test -z "$ac_c_werror_flag" ||
34268 test ! -s conftest.err
34269 } && test -s conftest.$ac_objext; then
34271 cat >>confdefs.h <<_ACEOF
34272 #define uintptr_t $ac_type
34277 echo "$as_me: failed program was:" >&5
34278 sed 's/^/| /' conftest.$ac_ext >&5
34283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34284 test -z "$ac_type" && break
34289 { echo "$as_me:$LINENO: checking for ino_t" >&5
34290 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34291 if test "${ac_cv_type_ino_t+set}" = set; then
34292 echo $ECHO_N "(cached) $ECHO_C" >&6
34294 cat >conftest.$ac_ext <<_ACEOF
34297 cat confdefs.h >>conftest.$ac_ext
34298 cat >>conftest.$ac_ext <<_ACEOF
34299 /* end confdefs.h. */
34300 $ac_includes_default
34301 typedef ino_t ac__type_new_;
34305 if ((ac__type_new_ *) 0)
34307 if (sizeof (ac__type_new_))
34313 rm -f conftest.$ac_objext
34314 if { (ac_try="$ac_compile"
34315 case "(($ac_try" in
34316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34317 *) ac_try_echo=$ac_try;;
34319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34320 (eval "$ac_compile") 2>conftest.er1
34322 grep -v '^ *+' conftest.er1 >conftest.err
34324 cat conftest.err >&5
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); } && {
34327 test -z "$ac_c_werror_flag" ||
34328 test ! -s conftest.err
34329 } && test -s conftest.$ac_objext; then
34330 ac_cv_type_ino_t=yes
34332 echo "$as_me: failed program was:" >&5
34333 sed 's/^/| /' conftest.$ac_ext >&5
34335 ac_cv_type_ino_t=no
34338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34340 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34341 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34342 if test $ac_cv_type_ino_t = yes; then
34346 cat >>confdefs.h <<_ACEOF
34347 #define ino_t unsigned long
34352 { echo "$as_me:$LINENO: checking for dev_t" >&5
34353 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34354 if test "${ac_cv_type_dev_t+set}" = set; then
34355 echo $ECHO_N "(cached) $ECHO_C" >&6
34357 cat >conftest.$ac_ext <<_ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h. */
34363 $ac_includes_default
34364 typedef dev_t ac__type_new_;
34368 if ((ac__type_new_ *) 0)
34370 if (sizeof (ac__type_new_))
34376 rm -f conftest.$ac_objext
34377 if { (ac_try="$ac_compile"
34378 case "(($ac_try" in
34379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34380 *) ac_try_echo=$ac_try;;
34382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34383 (eval "$ac_compile") 2>conftest.er1
34385 grep -v '^ *+' conftest.er1 >conftest.err
34387 cat conftest.err >&5
34388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); } && {
34390 test -z "$ac_c_werror_flag" ||
34391 test ! -s conftest.err
34392 } && test -s conftest.$ac_objext; then
34393 ac_cv_type_dev_t=yes
34395 echo "$as_me: failed program was:" >&5
34396 sed 's/^/| /' conftest.$ac_ext >&5
34398 ac_cv_type_dev_t=no
34401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34404 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34405 if test $ac_cv_type_dev_t = yes; then
34409 cat >>confdefs.h <<_ACEOF
34410 #define dev_t unsigned long
34415 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34416 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34417 if test "${ac_cv_type_daddr_t+set}" = set; then
34418 echo $ECHO_N "(cached) $ECHO_C" >&6
34420 cat >conftest.$ac_ext <<_ACEOF
34423 cat confdefs.h >>conftest.$ac_ext
34424 cat >>conftest.$ac_ext <<_ACEOF
34425 /* end confdefs.h. */
34426 $ac_includes_default
34427 typedef daddr_t ac__type_new_;
34431 if ((ac__type_new_ *) 0)
34433 if (sizeof (ac__type_new_))
34439 rm -f conftest.$ac_objext
34440 if { (ac_try="$ac_compile"
34441 case "(($ac_try" in
34442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34443 *) ac_try_echo=$ac_try;;
34445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34446 (eval "$ac_compile") 2>conftest.er1
34448 grep -v '^ *+' conftest.er1 >conftest.err
34450 cat conftest.err >&5
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); } && {
34453 test -z "$ac_c_werror_flag" ||
34454 test ! -s conftest.err
34455 } && test -s conftest.$ac_objext; then
34456 ac_cv_type_daddr_t=yes
34458 echo "$as_me: failed program was:" >&5
34459 sed 's/^/| /' conftest.$ac_ext >&5
34461 ac_cv_type_daddr_t=no
34464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34466 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34467 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34468 if test $ac_cv_type_daddr_t = yes; then
34472 cat >>confdefs.h <<_ACEOF
34473 #define daddr_t long
34478 { echo "$as_me:$LINENO: checking for major_t" >&5
34479 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34480 if test "${ac_cv_type_major_t+set}" = set; then
34481 echo $ECHO_N "(cached) $ECHO_C" >&6
34483 cat >conftest.$ac_ext <<_ACEOF
34486 cat confdefs.h >>conftest.$ac_ext
34487 cat >>conftest.$ac_ext <<_ACEOF
34488 /* end confdefs.h. */
34489 $ac_includes_default
34490 typedef major_t ac__type_new_;
34494 if ((ac__type_new_ *) 0)
34496 if (sizeof (ac__type_new_))
34502 rm -f conftest.$ac_objext
34503 if { (ac_try="$ac_compile"
34504 case "(($ac_try" in
34505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34506 *) ac_try_echo=$ac_try;;
34508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34509 (eval "$ac_compile") 2>conftest.er1
34511 grep -v '^ *+' conftest.er1 >conftest.err
34513 cat conftest.err >&5
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); } && {
34516 test -z "$ac_c_werror_flag" ||
34517 test ! -s conftest.err
34518 } && test -s conftest.$ac_objext; then
34519 ac_cv_type_major_t=yes
34521 echo "$as_me: failed program was:" >&5
34522 sed 's/^/| /' conftest.$ac_ext >&5
34524 ac_cv_type_major_t=no
34527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34529 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34530 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34531 if test $ac_cv_type_major_t = yes; then
34535 cat >>confdefs.h <<_ACEOF
34536 #define major_t int
34541 { echo "$as_me:$LINENO: checking for minor_t" >&5
34542 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34543 if test "${ac_cv_type_minor_t+set}" = set; then
34544 echo $ECHO_N "(cached) $ECHO_C" >&6
34546 cat >conftest.$ac_ext <<_ACEOF
34549 cat confdefs.h >>conftest.$ac_ext
34550 cat >>conftest.$ac_ext <<_ACEOF
34551 /* end confdefs.h. */
34552 $ac_includes_default
34553 typedef minor_t ac__type_new_;
34557 if ((ac__type_new_ *) 0)
34559 if (sizeof (ac__type_new_))
34565 rm -f conftest.$ac_objext
34566 if { (ac_try="$ac_compile"
34567 case "(($ac_try" in
34568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34569 *) ac_try_echo=$ac_try;;
34571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34572 (eval "$ac_compile") 2>conftest.er1
34574 grep -v '^ *+' conftest.er1 >conftest.err
34576 cat conftest.err >&5
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); } && {
34579 test -z "$ac_c_werror_flag" ||
34580 test ! -s conftest.err
34581 } && test -s conftest.$ac_objext; then
34582 ac_cv_type_minor_t=yes
34584 echo "$as_me: failed program was:" >&5
34585 sed 's/^/| /' conftest.$ac_ext >&5
34587 ac_cv_type_minor_t=no
34590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34592 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34593 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34594 if test $ac_cv_type_minor_t = yes; then
34598 cat >>confdefs.h <<_ACEOF
34599 #define minor_t int
34604 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34605 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34606 if test "${ac_cv_type_ssize_t+set}" = set; then
34607 echo $ECHO_N "(cached) $ECHO_C" >&6
34609 cat >conftest.$ac_ext <<_ACEOF
34612 cat confdefs.h >>conftest.$ac_ext
34613 cat >>conftest.$ac_ext <<_ACEOF
34614 /* end confdefs.h. */
34615 $ac_includes_default
34616 typedef ssize_t ac__type_new_;
34620 if ((ac__type_new_ *) 0)
34622 if (sizeof (ac__type_new_))
34628 rm -f conftest.$ac_objext
34629 if { (ac_try="$ac_compile"
34630 case "(($ac_try" in
34631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34632 *) ac_try_echo=$ac_try;;
34634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34635 (eval "$ac_compile") 2>conftest.er1
34637 grep -v '^ *+' conftest.er1 >conftest.err
34639 cat conftest.err >&5
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); } && {
34642 test -z "$ac_c_werror_flag" ||
34643 test ! -s conftest.err
34644 } && test -s conftest.$ac_objext; then
34645 ac_cv_type_ssize_t=yes
34647 echo "$as_me: failed program was:" >&5
34648 sed 's/^/| /' conftest.$ac_ext >&5
34650 ac_cv_type_ssize_t=no
34653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34655 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34656 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34657 if test $ac_cv_type_ssize_t = yes; then
34661 cat >>confdefs.h <<_ACEOF
34662 #define ssize_t int
34667 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34668 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34669 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34670 echo $ECHO_N "(cached) $ECHO_C" >&6
34672 cat >conftest.$ac_ext <<_ACEOF
34675 cat confdefs.h >>conftest.$ac_ext
34676 cat >>conftest.$ac_ext <<_ACEOF
34677 /* end confdefs.h. */
34678 $ac_includes_default
34682 static struct stat ac_aggr;
34683 if (ac_aggr.st_blocks)
34689 rm -f conftest.$ac_objext
34690 if { (ac_try="$ac_compile"
34691 case "(($ac_try" in
34692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34693 *) ac_try_echo=$ac_try;;
34695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34696 (eval "$ac_compile") 2>conftest.er1
34698 grep -v '^ *+' conftest.er1 >conftest.err
34700 cat conftest.err >&5
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); } && {
34703 test -z "$ac_c_werror_flag" ||
34704 test ! -s conftest.err
34705 } && test -s conftest.$ac_objext; then
34706 ac_cv_member_struct_stat_st_blocks=yes
34708 echo "$as_me: failed program was:" >&5
34709 sed 's/^/| /' conftest.$ac_ext >&5
34711 cat >conftest.$ac_ext <<_ACEOF
34714 cat confdefs.h >>conftest.$ac_ext
34715 cat >>conftest.$ac_ext <<_ACEOF
34716 /* end confdefs.h. */
34717 $ac_includes_default
34721 static struct stat ac_aggr;
34722 if (sizeof ac_aggr.st_blocks)
34728 rm -f conftest.$ac_objext
34729 if { (ac_try="$ac_compile"
34730 case "(($ac_try" in
34731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34732 *) ac_try_echo=$ac_try;;
34734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34735 (eval "$ac_compile") 2>conftest.er1
34737 grep -v '^ *+' conftest.er1 >conftest.err
34739 cat conftest.err >&5
34740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34741 (exit $ac_status); } && {
34742 test -z "$ac_c_werror_flag" ||
34743 test ! -s conftest.err
34744 } && test -s conftest.$ac_objext; then
34745 ac_cv_member_struct_stat_st_blocks=yes
34747 echo "$as_me: failed program was:" >&5
34748 sed 's/^/| /' conftest.$ac_ext >&5
34750 ac_cv_member_struct_stat_st_blocks=no
34753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34758 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34759 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34760 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34762 cat >>confdefs.h <<_ACEOF
34763 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34767 cat >>confdefs.h <<\_ACEOF
34768 #define HAVE_ST_BLOCKS 1
34772 case " $LIBOBJS " in
34773 *" fileblocks.$ac_objext "* ) ;;
34774 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34781 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34782 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34783 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34784 echo $ECHO_N "(cached) $ECHO_C" >&6
34786 cat >conftest.$ac_ext <<_ACEOF
34789 cat confdefs.h >>conftest.$ac_ext
34790 cat >>conftest.$ac_ext <<_ACEOF
34791 /* end confdefs.h. */
34792 $ac_includes_default
34796 static struct stat ac_aggr;
34797 if (ac_aggr.st_rdev)
34803 rm -f conftest.$ac_objext
34804 if { (ac_try="$ac_compile"
34805 case "(($ac_try" in
34806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34807 *) ac_try_echo=$ac_try;;
34809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34810 (eval "$ac_compile") 2>conftest.er1
34812 grep -v '^ *+' conftest.er1 >conftest.err
34814 cat conftest.err >&5
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); } && {
34817 test -z "$ac_c_werror_flag" ||
34818 test ! -s conftest.err
34819 } && test -s conftest.$ac_objext; then
34820 ac_cv_member_struct_stat_st_rdev=yes
34822 echo "$as_me: failed program was:" >&5
34823 sed 's/^/| /' conftest.$ac_ext >&5
34825 cat >conftest.$ac_ext <<_ACEOF
34828 cat confdefs.h >>conftest.$ac_ext
34829 cat >>conftest.$ac_ext <<_ACEOF
34830 /* end confdefs.h. */
34831 $ac_includes_default
34835 static struct stat ac_aggr;
34836 if (sizeof ac_aggr.st_rdev)
34842 rm -f conftest.$ac_objext
34843 if { (ac_try="$ac_compile"
34844 case "(($ac_try" in
34845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34846 *) ac_try_echo=$ac_try;;
34848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34849 (eval "$ac_compile") 2>conftest.er1
34851 grep -v '^ *+' conftest.er1 >conftest.err
34853 cat conftest.err >&5
34854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855 (exit $ac_status); } && {
34856 test -z "$ac_c_werror_flag" ||
34857 test ! -s conftest.err
34858 } && test -s conftest.$ac_objext; then
34859 ac_cv_member_struct_stat_st_rdev=yes
34861 echo "$as_me: failed program was:" >&5
34862 sed 's/^/| /' conftest.$ac_ext >&5
34864 ac_cv_member_struct_stat_st_rdev=no
34867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34872 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34873 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34874 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34876 cat >>confdefs.h <<_ACEOF
34877 #define HAVE_STRUCT_STAT_ST_RDEV 1
34881 cat >>confdefs.h <<\_ACEOF
34882 #define HAVE_ST_RDEV 1
34888 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34889 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34890 if test "${ac_cv_struct_tm+set}" = set; then
34891 echo $ECHO_N "(cached) $ECHO_C" >&6
34893 cat >conftest.$ac_ext <<_ACEOF
34896 cat confdefs.h >>conftest.$ac_ext
34897 cat >>conftest.$ac_ext <<_ACEOF
34898 /* end confdefs.h. */
34899 #include <sys/types.h>
34906 int *p = &tm.tm_sec;
34912 rm -f conftest.$ac_objext
34913 if { (ac_try="$ac_compile"
34914 case "(($ac_try" in
34915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34916 *) ac_try_echo=$ac_try;;
34918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34919 (eval "$ac_compile") 2>conftest.er1
34921 grep -v '^ *+' conftest.er1 >conftest.err
34923 cat conftest.err >&5
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); } && {
34926 test -z "$ac_c_werror_flag" ||
34927 test ! -s conftest.err
34928 } && test -s conftest.$ac_objext; then
34929 ac_cv_struct_tm=time.h
34931 echo "$as_me: failed program was:" >&5
34932 sed 's/^/| /' conftest.$ac_ext >&5
34934 ac_cv_struct_tm=sys/time.h
34937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34939 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34940 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34941 if test $ac_cv_struct_tm = sys/time.h; then
34943 cat >>confdefs.h <<\_ACEOF
34944 #define TM_IN_SYS_TIME 1
34949 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34950 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34951 if test "${ac_cv_c_const+set}" = set; then
34952 echo $ECHO_N "(cached) $ECHO_C" >&6
34954 cat >conftest.$ac_ext <<_ACEOF
34957 cat confdefs.h >>conftest.$ac_ext
34958 cat >>conftest.$ac_ext <<_ACEOF
34959 /* end confdefs.h. */
34964 /* FIXME: Include the comments suggested by Paul. */
34965 #ifndef __cplusplus
34966 /* Ultrix mips cc rejects this. */
34967 typedef int charset[2];
34969 /* SunOS 4.1.1 cc rejects this. */
34970 char const *const *pcpcc;
34972 /* NEC SVR4.0.2 mips cc rejects this. */
34973 struct point {int x, y;};
34974 static struct point const zero = {0,0};
34975 /* AIX XL C 1.02.0.0 rejects this.
34976 It does not let you subtract one const X* pointer from another in
34977 an arm of an if-expression whose if-part is not a constant
34979 const char *g = "string";
34980 pcpcc = &g + (g ? g-g : 0);
34981 /* HPUX 7.0 cc rejects these. */
34983 ppc = (char**) pcpcc;
34984 pcpcc = (char const *const *) ppc;
34985 { /* SCO 3.2v4 cc rejects this. */
34987 char const *s = 0 ? (char *) 0 : (char const *) 0;
34992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34993 int x[] = {25, 17};
34994 const int *foo = &x[0];
34997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34998 typedef const int *iptr;
35002 { /* AIX XL C 1.02.0.0 rejects this saying
35003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35004 struct s { int j; const int *ap[3]; };
35005 struct s *b; b->j = 5;
35007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35008 const int foo = 10;
35009 if (!foo) return 0;
35011 return !cs[0] && !zero.x;
35018 rm -f conftest.$ac_objext
35019 if { (ac_try="$ac_compile"
35020 case "(($ac_try" in
35021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35022 *) ac_try_echo=$ac_try;;
35024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35025 (eval "$ac_compile") 2>conftest.er1
35027 grep -v '^ *+' conftest.er1 >conftest.err
35029 cat conftest.err >&5
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); } && {
35032 test -z "$ac_c_werror_flag" ||
35033 test ! -s conftest.err
35034 } && test -s conftest.$ac_objext; then
35037 echo "$as_me: failed program was:" >&5
35038 sed 's/^/| /' conftest.$ac_ext >&5
35043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35045 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35046 echo "${ECHO_T}$ac_cv_c_const" >&6; }
35047 if test $ac_cv_c_const = no; then
35049 cat >>confdefs.h <<\_ACEOF
35056 { echo "$as_me:$LINENO: checking for char" >&5
35057 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
35058 if test "${ac_cv_type_char+set}" = set; then
35059 echo $ECHO_N "(cached) $ECHO_C" >&6
35061 cat >conftest.$ac_ext <<_ACEOF
35064 cat confdefs.h >>conftest.$ac_ext
35065 cat >>conftest.$ac_ext <<_ACEOF
35066 /* end confdefs.h. */
35067 $ac_includes_default
35068 typedef char ac__type_new_;
35072 if ((ac__type_new_ *) 0)
35074 if (sizeof (ac__type_new_))
35080 rm -f conftest.$ac_objext
35081 if { (ac_try="$ac_compile"
35082 case "(($ac_try" in
35083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35084 *) ac_try_echo=$ac_try;;
35086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35087 (eval "$ac_compile") 2>conftest.er1
35089 grep -v '^ *+' conftest.er1 >conftest.err
35091 cat conftest.err >&5
35092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35093 (exit $ac_status); } && {
35094 test -z "$ac_c_werror_flag" ||
35095 test ! -s conftest.err
35096 } && test -s conftest.$ac_objext; then
35097 ac_cv_type_char=yes
35099 echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35107 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
35108 echo "${ECHO_T}$ac_cv_type_char" >&6; }
35110 # The cast to long int works around a bug in the HP C Compiler
35111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35113 # This bug is HP SR number 8606223364.
35114 { echo "$as_me:$LINENO: checking size of char" >&5
35115 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
35116 if test "${ac_cv_sizeof_char+set}" = set; then
35117 echo $ECHO_N "(cached) $ECHO_C" >&6
35119 if test "$cross_compiling" = yes; then
35120 # Depending upon the size, compute the lo and hi bounds.
35121 cat >conftest.$ac_ext <<_ACEOF
35124 cat confdefs.h >>conftest.$ac_ext
35125 cat >>conftest.$ac_ext <<_ACEOF
35126 /* end confdefs.h. */
35127 $ac_includes_default
35128 typedef char ac__type_sizeof_;
35132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35139 rm -f conftest.$ac_objext
35140 if { (ac_try="$ac_compile"
35141 case "(($ac_try" in
35142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35143 *) ac_try_echo=$ac_try;;
35145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35146 (eval "$ac_compile") 2>conftest.er1
35148 grep -v '^ *+' conftest.er1 >conftest.err
35150 cat conftest.err >&5
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); } && {
35153 test -z "$ac_c_werror_flag" ||
35154 test ! -s conftest.err
35155 } && test -s conftest.$ac_objext; then
35158 cat >conftest.$ac_ext <<_ACEOF
35161 cat confdefs.h >>conftest.$ac_ext
35162 cat >>conftest.$ac_ext <<_ACEOF
35163 /* end confdefs.h. */
35164 $ac_includes_default
35165 typedef char ac__type_sizeof_;
35169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35176 rm -f conftest.$ac_objext
35177 if { (ac_try="$ac_compile"
35178 case "(($ac_try" in
35179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35180 *) ac_try_echo=$ac_try;;
35182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35183 (eval "$ac_compile") 2>conftest.er1
35185 grep -v '^ *+' conftest.er1 >conftest.err
35187 cat conftest.err >&5
35188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); } && {
35190 test -z "$ac_c_werror_flag" ||
35191 test ! -s conftest.err
35192 } && test -s conftest.$ac_objext; then
35193 ac_hi=$ac_mid; break
35195 echo "$as_me: failed program was:" >&5
35196 sed 's/^/| /' conftest.$ac_ext >&5
35198 ac_lo=`expr $ac_mid + 1`
35199 if test $ac_lo -le $ac_mid; then
35203 ac_mid=`expr 2 '*' $ac_mid + 1`
35206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35212 cat >conftest.$ac_ext <<_ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h. */
35218 $ac_includes_default
35219 typedef char ac__type_sizeof_;
35223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35230 rm -f conftest.$ac_objext
35231 if { (ac_try="$ac_compile"
35232 case "(($ac_try" in
35233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35234 *) ac_try_echo=$ac_try;;
35236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35237 (eval "$ac_compile") 2>conftest.er1
35239 grep -v '^ *+' conftest.er1 >conftest.err
35241 cat conftest.err >&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); } && {
35244 test -z "$ac_c_werror_flag" ||
35245 test ! -s conftest.err
35246 } && test -s conftest.$ac_objext; then
35249 cat >conftest.$ac_ext <<_ACEOF
35252 cat confdefs.h >>conftest.$ac_ext
35253 cat >>conftest.$ac_ext <<_ACEOF
35254 /* end confdefs.h. */
35255 $ac_includes_default
35256 typedef char ac__type_sizeof_;
35260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35267 rm -f conftest.$ac_objext
35268 if { (ac_try="$ac_compile"
35269 case "(($ac_try" in
35270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35271 *) ac_try_echo=$ac_try;;
35273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35274 (eval "$ac_compile") 2>conftest.er1
35276 grep -v '^ *+' conftest.er1 >conftest.err
35278 cat conftest.err >&5
35279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); } && {
35281 test -z "$ac_c_werror_flag" ||
35282 test ! -s conftest.err
35283 } && test -s conftest.$ac_objext; then
35284 ac_lo=$ac_mid; break
35286 echo "$as_me: failed program was:" >&5
35287 sed 's/^/| /' conftest.$ac_ext >&5
35289 ac_hi=`expr '(' $ac_mid ')' - 1`
35290 if test $ac_mid -le $ac_hi; then
35294 ac_mid=`expr 2 '*' $ac_mid`
35297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35300 echo "$as_me: failed program was:" >&5
35301 sed 's/^/| /' conftest.$ac_ext >&5
35306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35310 # Binary search between lo and hi bounds.
35311 while test "x$ac_lo" != "x$ac_hi"; do
35312 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35313 cat >conftest.$ac_ext <<_ACEOF
35316 cat confdefs.h >>conftest.$ac_ext
35317 cat >>conftest.$ac_ext <<_ACEOF
35318 /* end confdefs.h. */
35319 $ac_includes_default
35320 typedef char ac__type_sizeof_;
35324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35331 rm -f conftest.$ac_objext
35332 if { (ac_try="$ac_compile"
35333 case "(($ac_try" in
35334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35335 *) ac_try_echo=$ac_try;;
35337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35338 (eval "$ac_compile") 2>conftest.er1
35340 grep -v '^ *+' conftest.er1 >conftest.err
35342 cat conftest.err >&5
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); } && {
35345 test -z "$ac_c_werror_flag" ||
35346 test ! -s conftest.err
35347 } && test -s conftest.$ac_objext; then
35350 echo "$as_me: failed program was:" >&5
35351 sed 's/^/| /' conftest.$ac_ext >&5
35353 ac_lo=`expr '(' $ac_mid ')' + 1`
35356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35359 ?*) ac_cv_sizeof_char=$ac_lo;;
35360 '') if test "$ac_cv_type_char" = yes; then
35361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35362 See \`config.log' for more details." >&5
35363 echo "$as_me: error: cannot compute sizeof (char)
35364 See \`config.log' for more details." >&2;}
35365 { (exit 77); exit 77; }; }
35367 ac_cv_sizeof_char=0
35371 cat >conftest.$ac_ext <<_ACEOF
35374 cat confdefs.h >>conftest.$ac_ext
35375 cat >>conftest.$ac_ext <<_ACEOF
35376 /* end confdefs.h. */
35377 $ac_includes_default
35378 typedef char ac__type_sizeof_;
35379 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35380 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35382 #include <stdlib.h>
35387 FILE *f = fopen ("conftest.val", "w");
35390 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35392 long int i = longval ();
35393 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35395 fprintf (f, "%ld\n", i);
35399 unsigned long int i = ulongval ();
35400 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35402 fprintf (f, "%lu\n", i);
35404 return ferror (f) || fclose (f) != 0;
35410 rm -f conftest$ac_exeext
35411 if { (ac_try="$ac_link"
35412 case "(($ac_try" in
35413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35414 *) ac_try_echo=$ac_try;;
35416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35417 (eval "$ac_link") 2>&5
35419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35421 { (case "(($ac_try" in
35422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35423 *) ac_try_echo=$ac_try;;
35425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35426 (eval "$ac_try") 2>&5
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); }; }; then
35430 ac_cv_sizeof_char=`cat conftest.val`
35432 echo "$as_me: program exited with status $ac_status" >&5
35433 echo "$as_me: failed program was:" >&5
35434 sed 's/^/| /' conftest.$ac_ext >&5
35436 ( exit $ac_status )
35437 if test "$ac_cv_type_char" = yes; then
35438 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35439 See \`config.log' for more details." >&5
35440 echo "$as_me: error: cannot compute sizeof (char)
35441 See \`config.log' for more details." >&2;}
35442 { (exit 77); exit 77; }; }
35444 ac_cv_sizeof_char=0
35447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35451 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35452 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35456 cat >>confdefs.h <<_ACEOF
35457 #define SIZEOF_CHAR $ac_cv_sizeof_char
35461 { echo "$as_me:$LINENO: checking for short int" >&5
35462 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35463 if test "${ac_cv_type_short_int+set}" = set; then
35464 echo $ECHO_N "(cached) $ECHO_C" >&6
35466 cat >conftest.$ac_ext <<_ACEOF
35469 cat confdefs.h >>conftest.$ac_ext
35470 cat >>conftest.$ac_ext <<_ACEOF
35471 /* end confdefs.h. */
35472 $ac_includes_default
35473 typedef short int ac__type_new_;
35477 if ((ac__type_new_ *) 0)
35479 if (sizeof (ac__type_new_))
35485 rm -f conftest.$ac_objext
35486 if { (ac_try="$ac_compile"
35487 case "(($ac_try" in
35488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35489 *) ac_try_echo=$ac_try;;
35491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35492 (eval "$ac_compile") 2>conftest.er1
35494 grep -v '^ *+' conftest.er1 >conftest.err
35496 cat conftest.err >&5
35497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); } && {
35499 test -z "$ac_c_werror_flag" ||
35500 test ! -s conftest.err
35501 } && test -s conftest.$ac_objext; then
35502 ac_cv_type_short_int=yes
35504 echo "$as_me: failed program was:" >&5
35505 sed 's/^/| /' conftest.$ac_ext >&5
35507 ac_cv_type_short_int=no
35510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35512 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35513 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35515 # The cast to long int works around a bug in the HP C Compiler
35516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35518 # This bug is HP SR number 8606223364.
35519 { echo "$as_me:$LINENO: checking size of short int" >&5
35520 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35521 if test "${ac_cv_sizeof_short_int+set}" = set; then
35522 echo $ECHO_N "(cached) $ECHO_C" >&6
35524 if test "$cross_compiling" = yes; then
35525 # Depending upon the size, compute the lo and hi bounds.
35526 cat >conftest.$ac_ext <<_ACEOF
35529 cat confdefs.h >>conftest.$ac_ext
35530 cat >>conftest.$ac_ext <<_ACEOF
35531 /* end confdefs.h. */
35532 $ac_includes_default
35533 typedef short int ac__type_sizeof_;
35537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35544 rm -f conftest.$ac_objext
35545 if { (ac_try="$ac_compile"
35546 case "(($ac_try" in
35547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35548 *) ac_try_echo=$ac_try;;
35550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35551 (eval "$ac_compile") 2>conftest.er1
35553 grep -v '^ *+' conftest.er1 >conftest.err
35555 cat conftest.err >&5
35556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557 (exit $ac_status); } && {
35558 test -z "$ac_c_werror_flag" ||
35559 test ! -s conftest.err
35560 } && test -s conftest.$ac_objext; then
35563 cat >conftest.$ac_ext <<_ACEOF
35566 cat confdefs.h >>conftest.$ac_ext
35567 cat >>conftest.$ac_ext <<_ACEOF
35568 /* end confdefs.h. */
35569 $ac_includes_default
35570 typedef short int ac__type_sizeof_;
35574 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35581 rm -f conftest.$ac_objext
35582 if { (ac_try="$ac_compile"
35583 case "(($ac_try" in
35584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35585 *) ac_try_echo=$ac_try;;
35587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35588 (eval "$ac_compile") 2>conftest.er1
35590 grep -v '^ *+' conftest.er1 >conftest.err
35592 cat conftest.err >&5
35593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594 (exit $ac_status); } && {
35595 test -z "$ac_c_werror_flag" ||
35596 test ! -s conftest.err
35597 } && test -s conftest.$ac_objext; then
35598 ac_hi=$ac_mid; break
35600 echo "$as_me: failed program was:" >&5
35601 sed 's/^/| /' conftest.$ac_ext >&5
35603 ac_lo=`expr $ac_mid + 1`
35604 if test $ac_lo -le $ac_mid; then
35608 ac_mid=`expr 2 '*' $ac_mid + 1`
35611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35614 echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35617 cat >conftest.$ac_ext <<_ACEOF
35620 cat confdefs.h >>conftest.$ac_ext
35621 cat >>conftest.$ac_ext <<_ACEOF
35622 /* end confdefs.h. */
35623 $ac_includes_default
35624 typedef short int ac__type_sizeof_;
35628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35635 rm -f conftest.$ac_objext
35636 if { (ac_try="$ac_compile"
35637 case "(($ac_try" in
35638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35639 *) ac_try_echo=$ac_try;;
35641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35642 (eval "$ac_compile") 2>conftest.er1
35644 grep -v '^ *+' conftest.er1 >conftest.err
35646 cat conftest.err >&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } && {
35649 test -z "$ac_c_werror_flag" ||
35650 test ! -s conftest.err
35651 } && test -s conftest.$ac_objext; then
35654 cat >conftest.$ac_ext <<_ACEOF
35657 cat confdefs.h >>conftest.$ac_ext
35658 cat >>conftest.$ac_ext <<_ACEOF
35659 /* end confdefs.h. */
35660 $ac_includes_default
35661 typedef short int ac__type_sizeof_;
35665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35672 rm -f conftest.$ac_objext
35673 if { (ac_try="$ac_compile"
35674 case "(($ac_try" in
35675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35676 *) ac_try_echo=$ac_try;;
35678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35679 (eval "$ac_compile") 2>conftest.er1
35681 grep -v '^ *+' conftest.er1 >conftest.err
35683 cat conftest.err >&5
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); } && {
35686 test -z "$ac_c_werror_flag" ||
35687 test ! -s conftest.err
35688 } && test -s conftest.$ac_objext; then
35689 ac_lo=$ac_mid; break
35691 echo "$as_me: failed program was:" >&5
35692 sed 's/^/| /' conftest.$ac_ext >&5
35694 ac_hi=`expr '(' $ac_mid ')' - 1`
35695 if test $ac_mid -le $ac_hi; then
35699 ac_mid=`expr 2 '*' $ac_mid`
35702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35705 echo "$as_me: failed program was:" >&5
35706 sed 's/^/| /' conftest.$ac_ext >&5
35711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35715 # Binary search between lo and hi bounds.
35716 while test "x$ac_lo" != "x$ac_hi"; do
35717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35718 cat >conftest.$ac_ext <<_ACEOF
35721 cat confdefs.h >>conftest.$ac_ext
35722 cat >>conftest.$ac_ext <<_ACEOF
35723 /* end confdefs.h. */
35724 $ac_includes_default
35725 typedef short int ac__type_sizeof_;
35729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35736 rm -f conftest.$ac_objext
35737 if { (ac_try="$ac_compile"
35738 case "(($ac_try" in
35739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35740 *) ac_try_echo=$ac_try;;
35742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35743 (eval "$ac_compile") 2>conftest.er1
35745 grep -v '^ *+' conftest.er1 >conftest.err
35747 cat conftest.err >&5
35748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749 (exit $ac_status); } && {
35750 test -z "$ac_c_werror_flag" ||
35751 test ! -s conftest.err
35752 } && test -s conftest.$ac_objext; then
35755 echo "$as_me: failed program was:" >&5
35756 sed 's/^/| /' conftest.$ac_ext >&5
35758 ac_lo=`expr '(' $ac_mid ')' + 1`
35761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35764 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35765 '') if test "$ac_cv_type_short_int" = yes; then
35766 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35767 See \`config.log' for more details." >&5
35768 echo "$as_me: error: cannot compute sizeof (short int)
35769 See \`config.log' for more details." >&2;}
35770 { (exit 77); exit 77; }; }
35772 ac_cv_sizeof_short_int=0
35776 cat >conftest.$ac_ext <<_ACEOF
35779 cat confdefs.h >>conftest.$ac_ext
35780 cat >>conftest.$ac_ext <<_ACEOF
35781 /* end confdefs.h. */
35782 $ac_includes_default
35783 typedef short int ac__type_sizeof_;
35784 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35785 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35787 #include <stdlib.h>
35792 FILE *f = fopen ("conftest.val", "w");
35795 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35797 long int i = longval ();
35798 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35800 fprintf (f, "%ld\n", i);
35804 unsigned long int i = ulongval ();
35805 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35807 fprintf (f, "%lu\n", i);
35809 return ferror (f) || fclose (f) != 0;
35815 rm -f conftest$ac_exeext
35816 if { (ac_try="$ac_link"
35817 case "(($ac_try" in
35818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35819 *) ac_try_echo=$ac_try;;
35821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35822 (eval "$ac_link") 2>&5
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35826 { (case "(($ac_try" in
35827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35828 *) ac_try_echo=$ac_try;;
35830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35831 (eval "$ac_try") 2>&5
35833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834 (exit $ac_status); }; }; then
35835 ac_cv_sizeof_short_int=`cat conftest.val`
35837 echo "$as_me: program exited with status $ac_status" >&5
35838 echo "$as_me: failed program was:" >&5
35839 sed 's/^/| /' conftest.$ac_ext >&5
35841 ( exit $ac_status )
35842 if test "$ac_cv_type_short_int" = yes; then
35843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35844 See \`config.log' for more details." >&5
35845 echo "$as_me: error: cannot compute sizeof (short int)
35846 See \`config.log' for more details." >&2;}
35847 { (exit 77); exit 77; }; }
35849 ac_cv_sizeof_short_int=0
35852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35856 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35857 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35861 cat >>confdefs.h <<_ACEOF
35862 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35866 { echo "$as_me:$LINENO: checking for int" >&5
35867 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35868 if test "${ac_cv_type_int+set}" = set; then
35869 echo $ECHO_N "(cached) $ECHO_C" >&6
35871 cat >conftest.$ac_ext <<_ACEOF
35874 cat confdefs.h >>conftest.$ac_ext
35875 cat >>conftest.$ac_ext <<_ACEOF
35876 /* end confdefs.h. */
35877 $ac_includes_default
35878 typedef int ac__type_new_;
35882 if ((ac__type_new_ *) 0)
35884 if (sizeof (ac__type_new_))
35890 rm -f conftest.$ac_objext
35891 if { (ac_try="$ac_compile"
35892 case "(($ac_try" in
35893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35894 *) ac_try_echo=$ac_try;;
35896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35897 (eval "$ac_compile") 2>conftest.er1
35899 grep -v '^ *+' conftest.er1 >conftest.err
35901 cat conftest.err >&5
35902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903 (exit $ac_status); } && {
35904 test -z "$ac_c_werror_flag" ||
35905 test ! -s conftest.err
35906 } && test -s conftest.$ac_objext; then
35909 echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.$ac_ext >&5
35915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35917 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35918 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35920 # The cast to long int works around a bug in the HP C Compiler
35921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35923 # This bug is HP SR number 8606223364.
35924 { echo "$as_me:$LINENO: checking size of int" >&5
35925 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35926 if test "${ac_cv_sizeof_int+set}" = set; then
35927 echo $ECHO_N "(cached) $ECHO_C" >&6
35929 if test "$cross_compiling" = yes; then
35930 # Depending upon the size, compute the lo and hi bounds.
35931 cat >conftest.$ac_ext <<_ACEOF
35934 cat confdefs.h >>conftest.$ac_ext
35935 cat >>conftest.$ac_ext <<_ACEOF
35936 /* end confdefs.h. */
35937 $ac_includes_default
35938 typedef int ac__type_sizeof_;
35942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35949 rm -f conftest.$ac_objext
35950 if { (ac_try="$ac_compile"
35951 case "(($ac_try" in
35952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35953 *) ac_try_echo=$ac_try;;
35955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35956 (eval "$ac_compile") 2>conftest.er1
35958 grep -v '^ *+' conftest.er1 >conftest.err
35960 cat conftest.err >&5
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); } && {
35963 test -z "$ac_c_werror_flag" ||
35964 test ! -s conftest.err
35965 } && test -s conftest.$ac_objext; then
35968 cat >conftest.$ac_ext <<_ACEOF
35971 cat confdefs.h >>conftest.$ac_ext
35972 cat >>conftest.$ac_ext <<_ACEOF
35973 /* end confdefs.h. */
35974 $ac_includes_default
35975 typedef int ac__type_sizeof_;
35979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35986 rm -f conftest.$ac_objext
35987 if { (ac_try="$ac_compile"
35988 case "(($ac_try" in
35989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35990 *) ac_try_echo=$ac_try;;
35992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35993 (eval "$ac_compile") 2>conftest.er1
35995 grep -v '^ *+' conftest.er1 >conftest.err
35997 cat conftest.err >&5
35998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 (exit $ac_status); } && {
36000 test -z "$ac_c_werror_flag" ||
36001 test ! -s conftest.err
36002 } && test -s conftest.$ac_objext; then
36003 ac_hi=$ac_mid; break
36005 echo "$as_me: failed program was:" >&5
36006 sed 's/^/| /' conftest.$ac_ext >&5
36008 ac_lo=`expr $ac_mid + 1`
36009 if test $ac_lo -le $ac_mid; then
36013 ac_mid=`expr 2 '*' $ac_mid + 1`
36016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36019 echo "$as_me: failed program was:" >&5
36020 sed 's/^/| /' conftest.$ac_ext >&5
36022 cat >conftest.$ac_ext <<_ACEOF
36025 cat confdefs.h >>conftest.$ac_ext
36026 cat >>conftest.$ac_ext <<_ACEOF
36027 /* end confdefs.h. */
36028 $ac_includes_default
36029 typedef int ac__type_sizeof_;
36033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36040 rm -f conftest.$ac_objext
36041 if { (ac_try="$ac_compile"
36042 case "(($ac_try" in
36043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36044 *) ac_try_echo=$ac_try;;
36046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36047 (eval "$ac_compile") 2>conftest.er1
36049 grep -v '^ *+' conftest.er1 >conftest.err
36051 cat conftest.err >&5
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); } && {
36054 test -z "$ac_c_werror_flag" ||
36055 test ! -s conftest.err
36056 } && test -s conftest.$ac_objext; then
36059 cat >conftest.$ac_ext <<_ACEOF
36062 cat confdefs.h >>conftest.$ac_ext
36063 cat >>conftest.$ac_ext <<_ACEOF
36064 /* end confdefs.h. */
36065 $ac_includes_default
36066 typedef int ac__type_sizeof_;
36070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36077 rm -f conftest.$ac_objext
36078 if { (ac_try="$ac_compile"
36079 case "(($ac_try" in
36080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36081 *) ac_try_echo=$ac_try;;
36083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36084 (eval "$ac_compile") 2>conftest.er1
36086 grep -v '^ *+' conftest.er1 >conftest.err
36088 cat conftest.err >&5
36089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090 (exit $ac_status); } && {
36091 test -z "$ac_c_werror_flag" ||
36092 test ! -s conftest.err
36093 } && test -s conftest.$ac_objext; then
36094 ac_lo=$ac_mid; break
36096 echo "$as_me: failed program was:" >&5
36097 sed 's/^/| /' conftest.$ac_ext >&5
36099 ac_hi=`expr '(' $ac_mid ')' - 1`
36100 if test $ac_mid -le $ac_hi; then
36104 ac_mid=`expr 2 '*' $ac_mid`
36107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36110 echo "$as_me: failed program was:" >&5
36111 sed 's/^/| /' conftest.$ac_ext >&5
36116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36120 # Binary search between lo and hi bounds.
36121 while test "x$ac_lo" != "x$ac_hi"; do
36122 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36123 cat >conftest.$ac_ext <<_ACEOF
36126 cat confdefs.h >>conftest.$ac_ext
36127 cat >>conftest.$ac_ext <<_ACEOF
36128 /* end confdefs.h. */
36129 $ac_includes_default
36130 typedef int ac__type_sizeof_;
36134 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36141 rm -f conftest.$ac_objext
36142 if { (ac_try="$ac_compile"
36143 case "(($ac_try" in
36144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36145 *) ac_try_echo=$ac_try;;
36147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36148 (eval "$ac_compile") 2>conftest.er1
36150 grep -v '^ *+' conftest.er1 >conftest.err
36152 cat conftest.err >&5
36153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); } && {
36155 test -z "$ac_c_werror_flag" ||
36156 test ! -s conftest.err
36157 } && test -s conftest.$ac_objext; then
36160 echo "$as_me: failed program was:" >&5
36161 sed 's/^/| /' conftest.$ac_ext >&5
36163 ac_lo=`expr '(' $ac_mid ')' + 1`
36166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36169 ?*) ac_cv_sizeof_int=$ac_lo;;
36170 '') if test "$ac_cv_type_int" = yes; then
36171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36172 See \`config.log' for more details." >&5
36173 echo "$as_me: error: cannot compute sizeof (int)
36174 See \`config.log' for more details." >&2;}
36175 { (exit 77); exit 77; }; }
36181 cat >conftest.$ac_ext <<_ACEOF
36184 cat confdefs.h >>conftest.$ac_ext
36185 cat >>conftest.$ac_ext <<_ACEOF
36186 /* end confdefs.h. */
36187 $ac_includes_default
36188 typedef int ac__type_sizeof_;
36189 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36190 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36192 #include <stdlib.h>
36197 FILE *f = fopen ("conftest.val", "w");
36200 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36202 long int i = longval ();
36203 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36205 fprintf (f, "%ld\n", i);
36209 unsigned long int i = ulongval ();
36210 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36212 fprintf (f, "%lu\n", i);
36214 return ferror (f) || fclose (f) != 0;
36220 rm -f conftest$ac_exeext
36221 if { (ac_try="$ac_link"
36222 case "(($ac_try" in
36223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36224 *) ac_try_echo=$ac_try;;
36226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36227 (eval "$ac_link") 2>&5
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36231 { (case "(($ac_try" in
36232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36233 *) ac_try_echo=$ac_try;;
36235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36236 (eval "$ac_try") 2>&5
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); }; }; then
36240 ac_cv_sizeof_int=`cat conftest.val`
36242 echo "$as_me: program exited with status $ac_status" >&5
36243 echo "$as_me: failed program was:" >&5
36244 sed 's/^/| /' conftest.$ac_ext >&5
36246 ( exit $ac_status )
36247 if test "$ac_cv_type_int" = yes; then
36248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36249 See \`config.log' for more details." >&5
36250 echo "$as_me: error: cannot compute sizeof (int)
36251 See \`config.log' for more details." >&2;}
36252 { (exit 77); exit 77; }; }
36257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36261 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36262 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36266 cat >>confdefs.h <<_ACEOF
36267 #define SIZEOF_INT $ac_cv_sizeof_int
36271 { echo "$as_me:$LINENO: checking for long int" >&5
36272 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36273 if test "${ac_cv_type_long_int+set}" = set; then
36274 echo $ECHO_N "(cached) $ECHO_C" >&6
36276 cat >conftest.$ac_ext <<_ACEOF
36279 cat confdefs.h >>conftest.$ac_ext
36280 cat >>conftest.$ac_ext <<_ACEOF
36281 /* end confdefs.h. */
36282 $ac_includes_default
36283 typedef long int ac__type_new_;
36287 if ((ac__type_new_ *) 0)
36289 if (sizeof (ac__type_new_))
36295 rm -f conftest.$ac_objext
36296 if { (ac_try="$ac_compile"
36297 case "(($ac_try" in
36298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36299 *) ac_try_echo=$ac_try;;
36301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36302 (eval "$ac_compile") 2>conftest.er1
36304 grep -v '^ *+' conftest.er1 >conftest.err
36306 cat conftest.err >&5
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); } && {
36309 test -z "$ac_c_werror_flag" ||
36310 test ! -s conftest.err
36311 } && test -s conftest.$ac_objext; then
36312 ac_cv_type_long_int=yes
36314 echo "$as_me: failed program was:" >&5
36315 sed 's/^/| /' conftest.$ac_ext >&5
36317 ac_cv_type_long_int=no
36320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36322 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36323 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36325 # The cast to long int works around a bug in the HP C Compiler
36326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36328 # This bug is HP SR number 8606223364.
36329 { echo "$as_me:$LINENO: checking size of long int" >&5
36330 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36331 if test "${ac_cv_sizeof_long_int+set}" = set; then
36332 echo $ECHO_N "(cached) $ECHO_C" >&6
36334 if test "$cross_compiling" = yes; then
36335 # Depending upon the size, compute the lo and hi bounds.
36336 cat >conftest.$ac_ext <<_ACEOF
36339 cat confdefs.h >>conftest.$ac_ext
36340 cat >>conftest.$ac_ext <<_ACEOF
36341 /* end confdefs.h. */
36342 $ac_includes_default
36343 typedef long int ac__type_sizeof_;
36347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36354 rm -f conftest.$ac_objext
36355 if { (ac_try="$ac_compile"
36356 case "(($ac_try" in
36357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36358 *) ac_try_echo=$ac_try;;
36360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36361 (eval "$ac_compile") 2>conftest.er1
36363 grep -v '^ *+' conftest.er1 >conftest.err
36365 cat conftest.err >&5
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); } && {
36368 test -z "$ac_c_werror_flag" ||
36369 test ! -s conftest.err
36370 } && test -s conftest.$ac_objext; then
36373 cat >conftest.$ac_ext <<_ACEOF
36376 cat confdefs.h >>conftest.$ac_ext
36377 cat >>conftest.$ac_ext <<_ACEOF
36378 /* end confdefs.h. */
36379 $ac_includes_default
36380 typedef long int ac__type_sizeof_;
36384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36391 rm -f conftest.$ac_objext
36392 if { (ac_try="$ac_compile"
36393 case "(($ac_try" in
36394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36395 *) ac_try_echo=$ac_try;;
36397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36398 (eval "$ac_compile") 2>conftest.er1
36400 grep -v '^ *+' conftest.er1 >conftest.err
36402 cat conftest.err >&5
36403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); } && {
36405 test -z "$ac_c_werror_flag" ||
36406 test ! -s conftest.err
36407 } && test -s conftest.$ac_objext; then
36408 ac_hi=$ac_mid; break
36410 echo "$as_me: failed program was:" >&5
36411 sed 's/^/| /' conftest.$ac_ext >&5
36413 ac_lo=`expr $ac_mid + 1`
36414 if test $ac_lo -le $ac_mid; then
36418 ac_mid=`expr 2 '*' $ac_mid + 1`
36421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36424 echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36427 cat >conftest.$ac_ext <<_ACEOF
36430 cat confdefs.h >>conftest.$ac_ext
36431 cat >>conftest.$ac_ext <<_ACEOF
36432 /* end confdefs.h. */
36433 $ac_includes_default
36434 typedef long int ac__type_sizeof_;
36438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36445 rm -f conftest.$ac_objext
36446 if { (ac_try="$ac_compile"
36447 case "(($ac_try" in
36448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36449 *) ac_try_echo=$ac_try;;
36451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36452 (eval "$ac_compile") 2>conftest.er1
36454 grep -v '^ *+' conftest.er1 >conftest.err
36456 cat conftest.err >&5
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); } && {
36459 test -z "$ac_c_werror_flag" ||
36460 test ! -s conftest.err
36461 } && test -s conftest.$ac_objext; then
36464 cat >conftest.$ac_ext <<_ACEOF
36467 cat confdefs.h >>conftest.$ac_ext
36468 cat >>conftest.$ac_ext <<_ACEOF
36469 /* end confdefs.h. */
36470 $ac_includes_default
36471 typedef long int ac__type_sizeof_;
36475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36482 rm -f conftest.$ac_objext
36483 if { (ac_try="$ac_compile"
36484 case "(($ac_try" in
36485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36486 *) ac_try_echo=$ac_try;;
36488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36489 (eval "$ac_compile") 2>conftest.er1
36491 grep -v '^ *+' conftest.er1 >conftest.err
36493 cat conftest.err >&5
36494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36495 (exit $ac_status); } && {
36496 test -z "$ac_c_werror_flag" ||
36497 test ! -s conftest.err
36498 } && test -s conftest.$ac_objext; then
36499 ac_lo=$ac_mid; break
36501 echo "$as_me: failed program was:" >&5
36502 sed 's/^/| /' conftest.$ac_ext >&5
36504 ac_hi=`expr '(' $ac_mid ')' - 1`
36505 if test $ac_mid -le $ac_hi; then
36509 ac_mid=`expr 2 '*' $ac_mid`
36512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36515 echo "$as_me: failed program was:" >&5
36516 sed 's/^/| /' conftest.$ac_ext >&5
36521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36525 # Binary search between lo and hi bounds.
36526 while test "x$ac_lo" != "x$ac_hi"; do
36527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36528 cat >conftest.$ac_ext <<_ACEOF
36531 cat confdefs.h >>conftest.$ac_ext
36532 cat >>conftest.$ac_ext <<_ACEOF
36533 /* end confdefs.h. */
36534 $ac_includes_default
36535 typedef long int ac__type_sizeof_;
36539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36546 rm -f conftest.$ac_objext
36547 if { (ac_try="$ac_compile"
36548 case "(($ac_try" in
36549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36550 *) ac_try_echo=$ac_try;;
36552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36553 (eval "$ac_compile") 2>conftest.er1
36555 grep -v '^ *+' conftest.er1 >conftest.err
36557 cat conftest.err >&5
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); } && {
36560 test -z "$ac_c_werror_flag" ||
36561 test ! -s conftest.err
36562 } && test -s conftest.$ac_objext; then
36565 echo "$as_me: failed program was:" >&5
36566 sed 's/^/| /' conftest.$ac_ext >&5
36568 ac_lo=`expr '(' $ac_mid ')' + 1`
36571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36574 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36575 '') if test "$ac_cv_type_long_int" = yes; then
36576 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36577 See \`config.log' for more details." >&5
36578 echo "$as_me: error: cannot compute sizeof (long int)
36579 See \`config.log' for more details." >&2;}
36580 { (exit 77); exit 77; }; }
36582 ac_cv_sizeof_long_int=0
36586 cat >conftest.$ac_ext <<_ACEOF
36589 cat confdefs.h >>conftest.$ac_ext
36590 cat >>conftest.$ac_ext <<_ACEOF
36591 /* end confdefs.h. */
36592 $ac_includes_default
36593 typedef long int ac__type_sizeof_;
36594 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36595 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36597 #include <stdlib.h>
36602 FILE *f = fopen ("conftest.val", "w");
36605 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36607 long int i = longval ();
36608 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36610 fprintf (f, "%ld\n", i);
36614 unsigned long int i = ulongval ();
36615 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36617 fprintf (f, "%lu\n", i);
36619 return ferror (f) || fclose (f) != 0;
36625 rm -f conftest$ac_exeext
36626 if { (ac_try="$ac_link"
36627 case "(($ac_try" in
36628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36629 *) ac_try_echo=$ac_try;;
36631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36632 (eval "$ac_link") 2>&5
36634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36636 { (case "(($ac_try" in
36637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36638 *) ac_try_echo=$ac_try;;
36640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36641 (eval "$ac_try") 2>&5
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); }; }; then
36645 ac_cv_sizeof_long_int=`cat conftest.val`
36647 echo "$as_me: program exited with status $ac_status" >&5
36648 echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36651 ( exit $ac_status )
36652 if test "$ac_cv_type_long_int" = yes; then
36653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36654 See \`config.log' for more details." >&5
36655 echo "$as_me: error: cannot compute sizeof (long int)
36656 See \`config.log' for more details." >&2;}
36657 { (exit 77); exit 77; }; }
36659 ac_cv_sizeof_long_int=0
36662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36666 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36667 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36671 cat >>confdefs.h <<_ACEOF
36672 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36676 { echo "$as_me:$LINENO: checking for long long int" >&5
36677 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36678 if test "${ac_cv_type_long_long_int+set}" = set; then
36679 echo $ECHO_N "(cached) $ECHO_C" >&6
36681 cat >conftest.$ac_ext <<_ACEOF
36684 cat confdefs.h >>conftest.$ac_ext
36685 cat >>conftest.$ac_ext <<_ACEOF
36686 /* end confdefs.h. */
36687 $ac_includes_default
36688 typedef long long int ac__type_new_;
36692 if ((ac__type_new_ *) 0)
36694 if (sizeof (ac__type_new_))
36700 rm -f conftest.$ac_objext
36701 if { (ac_try="$ac_compile"
36702 case "(($ac_try" in
36703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36704 *) ac_try_echo=$ac_try;;
36706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36707 (eval "$ac_compile") 2>conftest.er1
36709 grep -v '^ *+' conftest.er1 >conftest.err
36711 cat conftest.err >&5
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); } && {
36714 test -z "$ac_c_werror_flag" ||
36715 test ! -s conftest.err
36716 } && test -s conftest.$ac_objext; then
36717 ac_cv_type_long_long_int=yes
36719 echo "$as_me: failed program was:" >&5
36720 sed 's/^/| /' conftest.$ac_ext >&5
36722 ac_cv_type_long_long_int=no
36725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36727 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36728 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
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 { echo "$as_me:$LINENO: checking size of long long int" >&5
36735 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36736 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36737 echo $ECHO_N "(cached) $ECHO_C" >&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
36748 typedef long long int ac__type_sizeof_;
36752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36759 rm -f conftest.$ac_objext
36760 if { (ac_try="$ac_compile"
36761 case "(($ac_try" in
36762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36763 *) ac_try_echo=$ac_try;;
36765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36766 (eval "$ac_compile") 2>conftest.er1
36768 grep -v '^ *+' conftest.er1 >conftest.err
36770 cat conftest.err >&5
36771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); } && {
36773 test -z "$ac_c_werror_flag" ||
36774 test ! -s conftest.err
36775 } && test -s conftest.$ac_objext; then
36778 cat >conftest.$ac_ext <<_ACEOF
36781 cat confdefs.h >>conftest.$ac_ext
36782 cat >>conftest.$ac_ext <<_ACEOF
36783 /* end confdefs.h. */
36784 $ac_includes_default
36785 typedef long long int ac__type_sizeof_;
36789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36796 rm -f conftest.$ac_objext
36797 if { (ac_try="$ac_compile"
36798 case "(($ac_try" in
36799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36800 *) ac_try_echo=$ac_try;;
36802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36803 (eval "$ac_compile") 2>conftest.er1
36805 grep -v '^ *+' conftest.er1 >conftest.err
36807 cat conftest.err >&5
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } && {
36810 test -z "$ac_c_werror_flag" ||
36811 test ! -s conftest.err
36812 } && test -s conftest.$ac_objext; then
36813 ac_hi=$ac_mid; break
36815 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 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
36839 typedef long long int ac__type_sizeof_;
36843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36850 rm -f conftest.$ac_objext
36851 if { (ac_try="$ac_compile"
36852 case "(($ac_try" in
36853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36854 *) ac_try_echo=$ac_try;;
36856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36857 (eval "$ac_compile") 2>conftest.er1
36859 grep -v '^ *+' conftest.er1 >conftest.err
36861 cat conftest.err >&5
36862 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
36876 typedef long long int ac__type_sizeof_;
36880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36887 rm -f conftest.$ac_objext
36888 if { (ac_try="$ac_compile"
36889 case "(($ac_try" in
36890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36891 *) ac_try_echo=$ac_try;;
36893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36894 (eval "$ac_compile") 2>conftest.er1
36896 grep -v '^ *+' conftest.er1 >conftest.err
36898 cat conftest.err >&5
36899 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 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 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
36940 typedef long long int ac__type_sizeof_;
36944 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36951 rm -f conftest.$ac_objext
36952 if { (ac_try="$ac_compile"
36953 case "(($ac_try" in
36954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36955 *) ac_try_echo=$ac_try;;
36957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36958 (eval "$ac_compile") 2>conftest.er1
36960 grep -v '^ *+' conftest.er1 >conftest.err
36962 cat conftest.err >&5
36963 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 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_long_long_int=$ac_lo;;
36980 '') if test "$ac_cv_type_long_long_int" = yes; then
36981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36982 See \`config.log' for more details." >&5
36983 echo "$as_me: error: cannot compute sizeof (long long int)
36984 See \`config.log' for more details." >&2;}
36985 { (exit 77); exit 77; }; }
36987 ac_cv_sizeof_long_long_int=0
36991 cat >conftest.$ac_ext <<_ACEOF
36994 cat confdefs.h >>conftest.$ac_ext
36995 cat >>conftest.$ac_ext <<_ACEOF
36996 /* end confdefs.h. */
36997 $ac_includes_default
36998 typedef long long int ac__type_sizeof_;
36999 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37000 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37002 #include <stdlib.h>
37007 FILE *f = fopen ("conftest.val", "w");
37010 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37012 long int i = longval ();
37013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37015 fprintf (f, "%ld\n", i);
37019 unsigned long int i = ulongval ();
37020 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37022 fprintf (f, "%lu\n", i);
37024 return ferror (f) || fclose (f) != 0;
37030 rm -f conftest$ac_exeext
37031 if { (ac_try="$ac_link"
37032 case "(($ac_try" in
37033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37034 *) ac_try_echo=$ac_try;;
37036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37037 (eval "$ac_link") 2>&5
37039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37041 { (case "(($ac_try" in
37042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37043 *) ac_try_echo=$ac_try;;
37045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37046 (eval "$ac_try") 2>&5
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); }; }; then
37050 ac_cv_sizeof_long_long_int=`cat conftest.val`
37052 echo "$as_me: program exited with status $ac_status" >&5
37053 echo "$as_me: failed program was:" >&5
37054 sed 's/^/| /' conftest.$ac_ext >&5
37056 ( exit $ac_status )
37057 if test "$ac_cv_type_long_long_int" = yes; then
37058 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
37059 See \`config.log' for more details." >&5
37060 echo "$as_me: error: cannot compute sizeof (long long int)
37061 See \`config.log' for more details." >&2;}
37062 { (exit 77); exit 77; }; }
37064 ac_cv_sizeof_long_long_int=0
37067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37071 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
37072 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
37076 cat >>confdefs.h <<_ACEOF
37077 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
37081 { echo "$as_me:$LINENO: checking for int *" >&5
37082 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
37083 if test "${ac_cv_type_int_p+set}" = set; then
37084 echo $ECHO_N "(cached) $ECHO_C" >&6
37086 cat >conftest.$ac_ext <<_ACEOF
37089 cat confdefs.h >>conftest.$ac_ext
37090 cat >>conftest.$ac_ext <<_ACEOF
37091 /* end confdefs.h. */
37092 $ac_includes_default
37093 typedef int * ac__type_new_;
37097 if ((ac__type_new_ *) 0)
37099 if (sizeof (ac__type_new_))
37105 rm -f conftest.$ac_objext
37106 if { (ac_try="$ac_compile"
37107 case "(($ac_try" in
37108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37109 *) ac_try_echo=$ac_try;;
37111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37112 (eval "$ac_compile") 2>conftest.er1
37114 grep -v '^ *+' conftest.er1 >conftest.err
37116 cat conftest.err >&5
37117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37118 (exit $ac_status); } && {
37119 test -z "$ac_c_werror_flag" ||
37120 test ! -s conftest.err
37121 } && test -s conftest.$ac_objext; then
37122 ac_cv_type_int_p=yes
37124 echo "$as_me: failed program was:" >&5
37125 sed 's/^/| /' conftest.$ac_ext >&5
37127 ac_cv_type_int_p=no
37130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37132 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
37133 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
37135 # The cast to long int works around a bug in the HP C Compiler
37136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37138 # This bug is HP SR number 8606223364.
37139 { echo "$as_me:$LINENO: checking size of int *" >&5
37140 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
37141 if test "${ac_cv_sizeof_int_p+set}" = set; then
37142 echo $ECHO_N "(cached) $ECHO_C" >&6
37144 if test "$cross_compiling" = yes; then
37145 # Depending upon the size, compute the lo and hi bounds.
37146 cat >conftest.$ac_ext <<_ACEOF
37149 cat confdefs.h >>conftest.$ac_ext
37150 cat >>conftest.$ac_ext <<_ACEOF
37151 /* end confdefs.h. */
37152 $ac_includes_default
37153 typedef int * ac__type_sizeof_;
37157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37164 rm -f conftest.$ac_objext
37165 if { (ac_try="$ac_compile"
37166 case "(($ac_try" in
37167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37168 *) ac_try_echo=$ac_try;;
37170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37171 (eval "$ac_compile") 2>conftest.er1
37173 grep -v '^ *+' conftest.er1 >conftest.err
37175 cat conftest.err >&5
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); } && {
37178 test -z "$ac_c_werror_flag" ||
37179 test ! -s conftest.err
37180 } && test -s conftest.$ac_objext; then
37183 cat >conftest.$ac_ext <<_ACEOF
37186 cat confdefs.h >>conftest.$ac_ext
37187 cat >>conftest.$ac_ext <<_ACEOF
37188 /* end confdefs.h. */
37189 $ac_includes_default
37190 typedef int * ac__type_sizeof_;
37194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37201 rm -f conftest.$ac_objext
37202 if { (ac_try="$ac_compile"
37203 case "(($ac_try" in
37204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37205 *) ac_try_echo=$ac_try;;
37207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37208 (eval "$ac_compile") 2>conftest.er1
37210 grep -v '^ *+' conftest.er1 >conftest.err
37212 cat conftest.err >&5
37213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214 (exit $ac_status); } && {
37215 test -z "$ac_c_werror_flag" ||
37216 test ! -s conftest.err
37217 } && test -s conftest.$ac_objext; then
37218 ac_hi=$ac_mid; break
37220 echo "$as_me: failed program was:" >&5
37221 sed 's/^/| /' conftest.$ac_ext >&5
37223 ac_lo=`expr $ac_mid + 1`
37224 if test $ac_lo -le $ac_mid; then
37228 ac_mid=`expr 2 '*' $ac_mid + 1`
37231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37234 echo "$as_me: failed program was:" >&5
37235 sed 's/^/| /' conftest.$ac_ext >&5
37237 cat >conftest.$ac_ext <<_ACEOF
37240 cat confdefs.h >>conftest.$ac_ext
37241 cat >>conftest.$ac_ext <<_ACEOF
37242 /* end confdefs.h. */
37243 $ac_includes_default
37244 typedef int * ac__type_sizeof_;
37248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37255 rm -f conftest.$ac_objext
37256 if { (ac_try="$ac_compile"
37257 case "(($ac_try" in
37258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37259 *) ac_try_echo=$ac_try;;
37261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37262 (eval "$ac_compile") 2>conftest.er1
37264 grep -v '^ *+' conftest.er1 >conftest.err
37266 cat conftest.err >&5
37267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); } && {
37269 test -z "$ac_c_werror_flag" ||
37270 test ! -s conftest.err
37271 } && test -s conftest.$ac_objext; then
37274 cat >conftest.$ac_ext <<_ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h. */
37280 $ac_includes_default
37281 typedef int * ac__type_sizeof_;
37285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37292 rm -f conftest.$ac_objext
37293 if { (ac_try="$ac_compile"
37294 case "(($ac_try" in
37295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37296 *) ac_try_echo=$ac_try;;
37298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37299 (eval "$ac_compile") 2>conftest.er1
37301 grep -v '^ *+' conftest.er1 >conftest.err
37303 cat conftest.err >&5
37304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305 (exit $ac_status); } && {
37306 test -z "$ac_c_werror_flag" ||
37307 test ! -s conftest.err
37308 } && test -s conftest.$ac_objext; then
37309 ac_lo=$ac_mid; break
37311 echo "$as_me: failed program was:" >&5
37312 sed 's/^/| /' conftest.$ac_ext >&5
37314 ac_hi=`expr '(' $ac_mid ')' - 1`
37315 if test $ac_mid -le $ac_hi; then
37319 ac_mid=`expr 2 '*' $ac_mid`
37322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37325 echo "$as_me: failed program was:" >&5
37326 sed 's/^/| /' conftest.$ac_ext >&5
37331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37335 # Binary search between lo and hi bounds.
37336 while test "x$ac_lo" != "x$ac_hi"; do
37337 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37338 cat >conftest.$ac_ext <<_ACEOF
37341 cat confdefs.h >>conftest.$ac_ext
37342 cat >>conftest.$ac_ext <<_ACEOF
37343 /* end confdefs.h. */
37344 $ac_includes_default
37345 typedef int * ac__type_sizeof_;
37349 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37356 rm -f conftest.$ac_objext
37357 if { (ac_try="$ac_compile"
37358 case "(($ac_try" in
37359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37360 *) ac_try_echo=$ac_try;;
37362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37363 (eval "$ac_compile") 2>conftest.er1
37365 grep -v '^ *+' conftest.er1 >conftest.err
37367 cat conftest.err >&5
37368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369 (exit $ac_status); } && {
37370 test -z "$ac_c_werror_flag" ||
37371 test ! -s conftest.err
37372 } && test -s conftest.$ac_objext; then
37375 echo "$as_me: failed program was:" >&5
37376 sed 's/^/| /' conftest.$ac_ext >&5
37378 ac_lo=`expr '(' $ac_mid ')' + 1`
37381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37384 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37385 '') if test "$ac_cv_type_int_p" = yes; then
37386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37387 See \`config.log' for more details." >&5
37388 echo "$as_me: error: cannot compute sizeof (int *)
37389 See \`config.log' for more details." >&2;}
37390 { (exit 77); exit 77; }; }
37392 ac_cv_sizeof_int_p=0
37396 cat >conftest.$ac_ext <<_ACEOF
37399 cat confdefs.h >>conftest.$ac_ext
37400 cat >>conftest.$ac_ext <<_ACEOF
37401 /* end confdefs.h. */
37402 $ac_includes_default
37403 typedef int * ac__type_sizeof_;
37404 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37405 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37407 #include <stdlib.h>
37412 FILE *f = fopen ("conftest.val", "w");
37415 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37417 long int i = longval ();
37418 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37420 fprintf (f, "%ld\n", i);
37424 unsigned long int i = ulongval ();
37425 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37427 fprintf (f, "%lu\n", i);
37429 return ferror (f) || fclose (f) != 0;
37435 rm -f conftest$ac_exeext
37436 if { (ac_try="$ac_link"
37437 case "(($ac_try" in
37438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37439 *) ac_try_echo=$ac_try;;
37441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37442 (eval "$ac_link") 2>&5
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37446 { (case "(($ac_try" in
37447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37448 *) ac_try_echo=$ac_try;;
37450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37451 (eval "$ac_try") 2>&5
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; }; then
37455 ac_cv_sizeof_int_p=`cat conftest.val`
37457 echo "$as_me: program exited with status $ac_status" >&5
37458 echo "$as_me: failed program was:" >&5
37459 sed 's/^/| /' conftest.$ac_ext >&5
37461 ( exit $ac_status )
37462 if test "$ac_cv_type_int_p" = yes; then
37463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37464 See \`config.log' for more details." >&5
37465 echo "$as_me: error: cannot compute sizeof (int *)
37466 See \`config.log' for more details." >&2;}
37467 { (exit 77); exit 77; }; }
37469 ac_cv_sizeof_int_p=0
37472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37476 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37477 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37481 cat >>confdefs.h <<_ACEOF
37482 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37487 { echo "$as_me:$LINENO: checking for u_int type" >&5
37488 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37489 if test "${ac_cv_have_u_int+set}" = set; then
37490 echo $ECHO_N "(cached) $ECHO_C" >&6
37493 cat >conftest.$ac_ext <<_ACEOF
37496 cat confdefs.h >>conftest.$ac_ext
37497 cat >>conftest.$ac_ext <<_ACEOF
37498 /* end confdefs.h. */
37500 #include <sys/types.h>
37512 rm -f conftest.$ac_objext
37513 if { (ac_try="$ac_compile"
37514 case "(($ac_try" in
37515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37516 *) ac_try_echo=$ac_try;;
37518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37519 (eval "$ac_compile") 2>conftest.er1
37521 grep -v '^ *+' conftest.er1 >conftest.err
37523 cat conftest.err >&5
37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525 (exit $ac_status); } && {
37526 test -z "$ac_c_werror_flag" ||
37527 test ! -s conftest.err
37528 } && test -s conftest.$ac_objext; then
37530 ac_cv_have_u_int="yes"
37533 echo "$as_me: failed program was:" >&5
37534 sed 's/^/| /' conftest.$ac_ext >&5
37537 ac_cv_have_u_int="no"
37542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37546 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37547 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37548 if test "x$ac_cv_have_u_int" = "xyes" ; then
37549 cat >>confdefs.h <<\_ACEOF
37550 #define HAVE_U_INT 1
37556 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37557 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37558 if test "${ac_cv_have_intmax_t+set}" = set; then
37559 echo $ECHO_N "(cached) $ECHO_C" >&6
37562 cat >conftest.$ac_ext <<_ACEOF
37565 cat confdefs.h >>conftest.$ac_ext
37566 cat >>conftest.$ac_ext <<_ACEOF
37567 /* end confdefs.h. */
37569 #include <sys/types.h>
37581 rm -f conftest.$ac_objext
37582 if { (ac_try="$ac_compile"
37583 case "(($ac_try" in
37584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37585 *) ac_try_echo=$ac_try;;
37587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37588 (eval "$ac_compile") 2>conftest.er1
37590 grep -v '^ *+' conftest.er1 >conftest.err
37592 cat conftest.err >&5
37593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594 (exit $ac_status); } && {
37595 test -z "$ac_c_werror_flag" ||
37596 test ! -s conftest.err
37597 } && test -s conftest.$ac_objext; then
37599 ac_cv_have_intmax_t="yes"
37602 echo "$as_me: failed program was:" >&5
37603 sed 's/^/| /' conftest.$ac_ext >&5
37606 cat >conftest.$ac_ext <<_ACEOF
37609 cat confdefs.h >>conftest.$ac_ext
37610 cat >>conftest.$ac_ext <<_ACEOF
37611 /* end confdefs.h. */
37613 #include <stdint.h>
37625 rm -f conftest.$ac_objext
37626 if { (ac_try="$ac_compile"
37627 case "(($ac_try" in
37628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37629 *) ac_try_echo=$ac_try;;
37631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37632 (eval "$ac_compile") 2>conftest.er1
37634 grep -v '^ *+' conftest.er1 >conftest.err
37636 cat conftest.err >&5
37637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37638 (exit $ac_status); } && {
37639 test -z "$ac_c_werror_flag" ||
37640 test ! -s conftest.err
37641 } && test -s conftest.$ac_objext; then
37643 ac_cv_have_intmax_t="yes"
37646 echo "$as_me: failed program was:" >&5
37647 sed 's/^/| /' conftest.$ac_ext >&5
37650 ac_cv_have_intmax_t="no"
37655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37664 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37665 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37666 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37667 cat >>confdefs.h <<\_ACEOF
37668 #define HAVE_INTMAX_T 1
37674 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37675 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37676 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37677 echo $ECHO_N "(cached) $ECHO_C" >&6
37680 cat >conftest.$ac_ext <<_ACEOF
37683 cat confdefs.h >>conftest.$ac_ext
37684 cat >>conftest.$ac_ext <<_ACEOF
37685 /* end confdefs.h. */
37687 #include <sys/types.h>
37693 u_intmax_t a; a = 1;
37699 rm -f conftest.$ac_objext
37700 if { (ac_try="$ac_compile"
37701 case "(($ac_try" in
37702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37703 *) ac_try_echo=$ac_try;;
37705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37706 (eval "$ac_compile") 2>conftest.er1
37708 grep -v '^ *+' conftest.er1 >conftest.err
37710 cat conftest.err >&5
37711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); } && {
37713 test -z "$ac_c_werror_flag" ||
37714 test ! -s conftest.err
37715 } && test -s conftest.$ac_objext; then
37717 ac_cv_have_u_intmax_t="yes"
37720 echo "$as_me: failed program was:" >&5
37721 sed 's/^/| /' conftest.$ac_ext >&5
37724 cat >conftest.$ac_ext <<_ACEOF
37727 cat confdefs.h >>conftest.$ac_ext
37728 cat >>conftest.$ac_ext <<_ACEOF
37729 /* end confdefs.h. */
37731 #include <stdint.h>
37737 u_intmax_t a; a = 1;
37743 rm -f conftest.$ac_objext
37744 if { (ac_try="$ac_compile"
37745 case "(($ac_try" in
37746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37747 *) ac_try_echo=$ac_try;;
37749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37750 (eval "$ac_compile") 2>conftest.er1
37752 grep -v '^ *+' conftest.er1 >conftest.err
37754 cat conftest.err >&5
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); } && {
37757 test -z "$ac_c_werror_flag" ||
37758 test ! -s conftest.err
37759 } && test -s conftest.$ac_objext; then
37761 ac_cv_have_u_intmax_t="yes"
37764 echo "$as_me: failed program was:" >&5
37765 sed 's/^/| /' conftest.$ac_ext >&5
37768 ac_cv_have_u_intmax_t="no"
37773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37782 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37783 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37784 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37785 cat >>confdefs.h <<\_ACEOF
37786 #define HAVE_U_INTMAX_T 1
37792 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37793 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37794 if test "${ac_cv_have_intxx_t+set}" = set; then
37795 echo $ECHO_N "(cached) $ECHO_C" >&6
37798 cat >conftest.$ac_ext <<_ACEOF
37801 cat confdefs.h >>conftest.$ac_ext
37802 cat >>conftest.$ac_ext <<_ACEOF
37803 /* end confdefs.h. */
37805 #include <sys/types.h>
37811 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37817 rm -f conftest.$ac_objext
37818 if { (ac_try="$ac_compile"
37819 case "(($ac_try" in
37820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37821 *) ac_try_echo=$ac_try;;
37823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37824 (eval "$ac_compile") 2>conftest.er1
37826 grep -v '^ *+' conftest.er1 >conftest.err
37828 cat conftest.err >&5
37829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830 (exit $ac_status); } && {
37831 test -z "$ac_c_werror_flag" ||
37832 test ! -s conftest.err
37833 } && test -s conftest.$ac_objext; then
37835 ac_cv_have_intxx_t="yes"
37838 echo "$as_me: failed program was:" >&5
37839 sed 's/^/| /' conftest.$ac_ext >&5
37842 ac_cv_have_intxx_t="no"
37847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37851 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37852 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37853 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37854 cat >>confdefs.h <<\_ACEOF
37855 #define HAVE_INTXX_T 1
37861 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37862 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37863 if test "${ac_cv_have_int64_t+set}" = set; then
37864 echo $ECHO_N "(cached) $ECHO_C" >&6
37867 cat >conftest.$ac_ext <<_ACEOF
37870 cat confdefs.h >>conftest.$ac_ext
37871 cat >>conftest.$ac_ext <<_ACEOF
37872 /* end confdefs.h. */
37874 #include <sys/types.h>
37886 rm -f conftest.$ac_objext
37887 if { (ac_try="$ac_compile"
37888 case "(($ac_try" in
37889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37890 *) ac_try_echo=$ac_try;;
37892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37893 (eval "$ac_compile") 2>conftest.er1
37895 grep -v '^ *+' conftest.er1 >conftest.err
37897 cat conftest.err >&5
37898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899 (exit $ac_status); } && {
37900 test -z "$ac_c_werror_flag" ||
37901 test ! -s conftest.err
37902 } && test -s conftest.$ac_objext; then
37904 ac_cv_have_int64_t="yes"
37907 echo "$as_me: failed program was:" >&5
37908 sed 's/^/| /' conftest.$ac_ext >&5
37911 ac_cv_have_int64_t="no"
37916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37920 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37921 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37922 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37923 cat >>confdefs.h <<\_ACEOF
37924 #define HAVE_INT64_T 1
37930 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37931 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37932 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37933 echo $ECHO_N "(cached) $ECHO_C" >&6
37936 cat >conftest.$ac_ext <<_ACEOF
37939 cat confdefs.h >>conftest.$ac_ext
37940 cat >>conftest.$ac_ext <<_ACEOF
37941 /* end confdefs.h. */
37943 #include <sys/types.h>
37949 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37955 rm -f conftest.$ac_objext
37956 if { (ac_try="$ac_compile"
37957 case "(($ac_try" in
37958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37959 *) ac_try_echo=$ac_try;;
37961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37962 (eval "$ac_compile") 2>conftest.er1
37964 grep -v '^ *+' conftest.er1 >conftest.err
37966 cat conftest.err >&5
37967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968 (exit $ac_status); } && {
37969 test -z "$ac_c_werror_flag" ||
37970 test ! -s conftest.err
37971 } && test -s conftest.$ac_objext; then
37973 ac_cv_have_u_intxx_t="yes"
37976 echo "$as_me: failed program was:" >&5
37977 sed 's/^/| /' conftest.$ac_ext >&5
37980 ac_cv_have_u_intxx_t="no"
37985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37989 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37990 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37991 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37992 cat >>confdefs.h <<\_ACEOF
37993 #define HAVE_U_INTXX_T 1
37999 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
38000 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
38001 if test "${ac_cv_have_u_int64_t+set}" = set; then
38002 echo $ECHO_N "(cached) $ECHO_C" >&6
38005 cat >conftest.$ac_ext <<_ACEOF
38008 cat confdefs.h >>conftest.$ac_ext
38009 cat >>conftest.$ac_ext <<_ACEOF
38010 /* end confdefs.h. */
38012 #include <sys/types.h>
38018 u_int64_t a; a = 1;
38024 rm -f conftest.$ac_objext
38025 if { (ac_try="$ac_compile"
38026 case "(($ac_try" in
38027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38028 *) ac_try_echo=$ac_try;;
38030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38031 (eval "$ac_compile") 2>conftest.er1
38033 grep -v '^ *+' conftest.er1 >conftest.err
38035 cat conftest.err >&5
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); } && {
38038 test -z "$ac_c_werror_flag" ||
38039 test ! -s conftest.err
38040 } && test -s conftest.$ac_objext; then
38042 ac_cv_have_u_int64_t="yes"
38045 echo "$as_me: failed program was:" >&5
38046 sed 's/^/| /' conftest.$ac_ext >&5
38049 ac_cv_have_u_int64_t="no"
38054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38058 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
38059 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
38060 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
38061 cat >>confdefs.h <<\_ACEOF
38062 #define HAVE_U_INT64_T 1
38068 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
38069 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38071 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
38072 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38073 cat >conftest.$ac_ext <<_ACEOF
38076 cat confdefs.h >>conftest.$ac_ext
38077 cat >>conftest.$ac_ext <<_ACEOF
38078 /* end confdefs.h. */
38080 #include <sys/bitypes.h>
38086 int8_t a; int16_t b; int32_t c;
38087 u_int8_t e; u_int16_t f; u_int32_t g;
38088 a = b = c = e = f = g = 1;
38094 rm -f conftest.$ac_objext
38095 if { (ac_try="$ac_compile"
38096 case "(($ac_try" in
38097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38098 *) ac_try_echo=$ac_try;;
38100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38101 (eval "$ac_compile") 2>conftest.er1
38103 grep -v '^ *+' conftest.er1 >conftest.err
38105 cat conftest.err >&5
38106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107 (exit $ac_status); } && {
38108 test -z "$ac_c_werror_flag" ||
38109 test ! -s conftest.err
38110 } && test -s conftest.$ac_objext; then
38112 cat >>confdefs.h <<\_ACEOF
38113 #define HAVE_U_INTXX_T 1
38116 cat >>confdefs.h <<\_ACEOF
38117 #define HAVE_INTXX_T 1
38120 cat >>confdefs.h <<\_ACEOF
38121 #define HAVE_SYS_BITYPES_H 1
38124 { echo "$as_me:$LINENO: result: yes" >&5
38125 echo "${ECHO_T}yes" >&6; }
38128 echo "$as_me: failed program was:" >&5
38129 sed 's/^/| /' conftest.$ac_ext >&5
38132 { echo "$as_me:$LINENO: result: no" >&5
38133 echo "${ECHO_T}no" >&6; }
38138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38141 if test -z "$have_u_intxx_t" ; then
38142 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
38143 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
38144 if test "${ac_cv_have_uintxx_t+set}" = set; then
38145 echo $ECHO_N "(cached) $ECHO_C" >&6
38148 cat >conftest.$ac_ext <<_ACEOF
38151 cat confdefs.h >>conftest.$ac_ext
38152 cat >>conftest.$ac_ext <<_ACEOF
38153 /* end confdefs.h. */
38155 #include <sys/types.h>
38161 uint8_t a; uint16_t b;
38162 uint32_t c; a = b = c = 1;
38168 rm -f conftest.$ac_objext
38169 if { (ac_try="$ac_compile"
38170 case "(($ac_try" in
38171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38172 *) ac_try_echo=$ac_try;;
38174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38175 (eval "$ac_compile") 2>conftest.er1
38177 grep -v '^ *+' conftest.er1 >conftest.err
38179 cat conftest.err >&5
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); } && {
38182 test -z "$ac_c_werror_flag" ||
38183 test ! -s conftest.err
38184 } && test -s conftest.$ac_objext; then
38186 ac_cv_have_uintxx_t="yes"
38189 echo "$as_me: failed program was:" >&5
38190 sed 's/^/| /' conftest.$ac_ext >&5
38193 ac_cv_have_uintxx_t="no"
38198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38202 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38203 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38204 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38205 cat >>confdefs.h <<\_ACEOF
38206 #define HAVE_UINTXX_T 1
38212 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38213 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38215 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38216 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38217 cat >conftest.$ac_ext <<_ACEOF
38220 cat confdefs.h >>conftest.$ac_ext
38221 cat >>conftest.$ac_ext <<_ACEOF
38222 /* end confdefs.h. */
38224 #include <sys/bitypes.h>
38230 int64_t a; u_int64_t b;
38237 rm -f conftest.$ac_objext
38238 if { (ac_try="$ac_compile"
38239 case "(($ac_try" in
38240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38241 *) ac_try_echo=$ac_try;;
38243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38244 (eval "$ac_compile") 2>conftest.er1
38246 grep -v '^ *+' conftest.er1 >conftest.err
38248 cat conftest.err >&5
38249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38250 (exit $ac_status); } && {
38251 test -z "$ac_c_werror_flag" ||
38252 test ! -s conftest.err
38253 } && test -s conftest.$ac_objext; then
38255 cat >>confdefs.h <<\_ACEOF
38256 #define HAVE_U_INT64_T 1
38259 cat >>confdefs.h <<\_ACEOF
38260 #define HAVE_INT64_T 1
38263 { echo "$as_me:$LINENO: result: yes" >&5
38264 echo "${ECHO_T}yes" >&6; }
38267 echo "$as_me: failed program was:" >&5
38268 sed 's/^/| /' conftest.$ac_ext >&5
38271 { echo "$as_me:$LINENO: result: no" >&5
38272 echo "${ECHO_T}no" >&6; }
38277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38280 if (test -z "$have_uintxx_t" && \
38281 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38283 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38284 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38285 cat >conftest.$ac_ext <<_ACEOF
38288 cat confdefs.h >>conftest.$ac_ext
38289 cat >>conftest.$ac_ext <<_ACEOF
38290 /* end confdefs.h. */
38292 #include <sys/bitypes.h>
38298 uint8_t a; uint16_t b;
38299 uint32_t c; a = b = c = 1;
38305 rm -f conftest.$ac_objext
38306 if { (ac_try="$ac_compile"
38307 case "(($ac_try" in
38308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38309 *) ac_try_echo=$ac_try;;
38311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38312 (eval "$ac_compile") 2>conftest.er1
38314 grep -v '^ *+' conftest.er1 >conftest.err
38316 cat conftest.err >&5
38317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38318 (exit $ac_status); } && {
38319 test -z "$ac_c_werror_flag" ||
38320 test ! -s conftest.err
38321 } && test -s conftest.$ac_objext; then
38323 cat >>confdefs.h <<\_ACEOF
38324 #define HAVE_UINTXX_T 1
38327 { echo "$as_me:$LINENO: result: yes" >&5
38328 echo "${ECHO_T}yes" >&6; }
38331 echo "$as_me: failed program was:" >&5
38332 sed 's/^/| /' conftest.$ac_ext >&5
38335 { echo "$as_me:$LINENO: result: no" >&5
38336 echo "${ECHO_T}no" >&6; }
38341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38377 echo $ECHO_N "(cached) $ECHO_C" >&6
38379 cat >conftest.$ac_ext <<_ACEOF
38382 cat confdefs.h >>conftest.$ac_ext
38383 cat >>conftest.$ac_ext <<_ACEOF
38384 /* end confdefs.h. */
38385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38387 #define $ac_func innocuous_$ac_func
38389 /* System header to define __stub macros and hopefully few prototypes,
38390 which can conflict with char $ac_func (); below.
38391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38392 <limits.h> exists even on freestanding compilers. */
38395 # include <limits.h>
38397 # include <assert.h>
38402 /* Override any GCC internal prototype to avoid an error.
38403 Use char because int might match the return type of a GCC
38404 builtin and then its argument prototype would still apply. */
38409 /* The GNU C library defines this for functions which it implements
38410 to always fail with ENOSYS. Some functions are actually named
38411 something starting with __ and the normal name is an alias. */
38412 #if defined __stub_$ac_func || defined __stub___$ac_func
38419 return $ac_func ();
38424 rm -f conftest.$ac_objext conftest$ac_exeext
38425 if { (ac_try="$ac_link"
38426 case "(($ac_try" in
38427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38428 *) ac_try_echo=$ac_try;;
38430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38431 (eval "$ac_link") 2>conftest.er1
38433 grep -v '^ *+' conftest.er1 >conftest.err
38435 cat conftest.err >&5
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); } && {
38438 test -z "$ac_c_werror_flag" ||
38439 test ! -s conftest.err
38440 } && test -s conftest$ac_exeext &&
38441 $as_test_x conftest$ac_exeext; then
38442 eval "$as_ac_var=yes"
38444 echo "$as_me: failed program was:" >&5
38445 sed 's/^/| /' conftest.$ac_ext >&5
38447 eval "$as_ac_var=no"
38450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38451 conftest$ac_exeext conftest.$ac_ext
38453 ac_res=`eval echo '${'$as_ac_var'}'`
38454 { echo "$as_me:$LINENO: result: $ac_res" >&5
38455 echo "${ECHO_T}$ac_res" >&6; }
38456 if test `eval echo '${'$as_ac_var'}'` = yes; then
38457 cat >>confdefs.h <<_ACEOF
38458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38462 echo 'configure: cannot find needed function.'; exit 1
38469 for ac_func in fchdir
38471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38475 echo $ECHO_N "(cached) $ECHO_C" >&6
38477 cat >conftest.$ac_ext <<_ACEOF
38480 cat confdefs.h >>conftest.$ac_ext
38481 cat >>conftest.$ac_ext <<_ACEOF
38482 /* end confdefs.h. */
38483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38485 #define $ac_func innocuous_$ac_func
38487 /* System header to define __stub macros and hopefully few prototypes,
38488 which can conflict with char $ac_func (); below.
38489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38490 <limits.h> exists even on freestanding compilers. */
38493 # include <limits.h>
38495 # include <assert.h>
38500 /* Override any GCC internal prototype to avoid an error.
38501 Use char because int might match the return type of a GCC
38502 builtin and then its argument prototype would still apply. */
38507 /* The GNU C library defines this for functions which it implements
38508 to always fail with ENOSYS. Some functions are actually named
38509 something starting with __ and the normal name is an alias. */
38510 #if defined __stub_$ac_func || defined __stub___$ac_func
38517 return $ac_func ();
38522 rm -f conftest.$ac_objext conftest$ac_exeext
38523 if { (ac_try="$ac_link"
38524 case "(($ac_try" in
38525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38526 *) ac_try_echo=$ac_try;;
38528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38529 (eval "$ac_link") 2>conftest.er1
38531 grep -v '^ *+' conftest.er1 >conftest.err
38533 cat conftest.err >&5
38534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535 (exit $ac_status); } && {
38536 test -z "$ac_c_werror_flag" ||
38537 test ! -s conftest.err
38538 } && test -s conftest$ac_exeext &&
38539 $as_test_x conftest$ac_exeext; then
38540 eval "$as_ac_var=yes"
38542 echo "$as_me: failed program was:" >&5
38543 sed 's/^/| /' conftest.$ac_ext >&5
38545 eval "$as_ac_var=no"
38548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38549 conftest$ac_exeext conftest.$ac_ext
38551 ac_res=`eval echo '${'$as_ac_var'}'`
38552 { echo "$as_me:$LINENO: result: $ac_res" >&5
38553 echo "${ECHO_T}$ac_res" >&6; }
38554 if test `eval echo '${'$as_ac_var'}'` = yes; then
38555 cat >>confdefs.h <<_ACEOF
38556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38558 cat >>confdefs.h <<\_ACEOF
38559 #define HAVE_FCHDIR 1
38566 for ac_func in strtoll
38568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38572 echo $ECHO_N "(cached) $ECHO_C" >&6
38574 cat >conftest.$ac_ext <<_ACEOF
38577 cat confdefs.h >>conftest.$ac_ext
38578 cat >>conftest.$ac_ext <<_ACEOF
38579 /* end confdefs.h. */
38580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38582 #define $ac_func innocuous_$ac_func
38584 /* System header to define __stub macros and hopefully few prototypes,
38585 which can conflict with char $ac_func (); below.
38586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38587 <limits.h> exists even on freestanding compilers. */
38590 # include <limits.h>
38592 # include <assert.h>
38597 /* Override any GCC internal prototype to avoid an error.
38598 Use char because int might match the return type of a GCC
38599 builtin and then its argument prototype would still apply. */
38604 /* The GNU C library defines this for functions which it implements
38605 to always fail with ENOSYS. Some functions are actually named
38606 something starting with __ and the normal name is an alias. */
38607 #if defined __stub_$ac_func || defined __stub___$ac_func
38614 return $ac_func ();
38619 rm -f conftest.$ac_objext conftest$ac_exeext
38620 if { (ac_try="$ac_link"
38621 case "(($ac_try" in
38622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38623 *) ac_try_echo=$ac_try;;
38625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38626 (eval "$ac_link") 2>conftest.er1
38628 grep -v '^ *+' conftest.er1 >conftest.err
38630 cat conftest.err >&5
38631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38632 (exit $ac_status); } && {
38633 test -z "$ac_c_werror_flag" ||
38634 test ! -s conftest.err
38635 } && test -s conftest$ac_exeext &&
38636 $as_test_x conftest$ac_exeext; then
38637 eval "$as_ac_var=yes"
38639 echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38642 eval "$as_ac_var=no"
38645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38646 conftest$ac_exeext conftest.$ac_ext
38648 ac_res=`eval echo '${'$as_ac_var'}'`
38649 { echo "$as_me:$LINENO: result: $ac_res" >&5
38650 echo "${ECHO_T}$ac_res" >&6; }
38651 if test `eval echo '${'$as_ac_var'}'` = yes; then
38652 cat >>confdefs.h <<_ACEOF
38653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38655 cat >>confdefs.h <<\_ACEOF
38656 #define HAVE_STRTOLL 1
38663 for ac_func in posix_fadvise
38665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38669 echo $ECHO_N "(cached) $ECHO_C" >&6
38671 cat >conftest.$ac_ext <<_ACEOF
38674 cat confdefs.h >>conftest.$ac_ext
38675 cat >>conftest.$ac_ext <<_ACEOF
38676 /* end confdefs.h. */
38677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38679 #define $ac_func innocuous_$ac_func
38681 /* System header to define __stub macros and hopefully few prototypes,
38682 which can conflict with char $ac_func (); below.
38683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38684 <limits.h> exists even on freestanding compilers. */
38687 # include <limits.h>
38689 # include <assert.h>
38694 /* Override any GCC internal prototype to avoid an error.
38695 Use char because int might match the return type of a GCC
38696 builtin and then its argument prototype would still apply. */
38701 /* The GNU C library defines this for functions which it implements
38702 to always fail with ENOSYS. Some functions are actually named
38703 something starting with __ and the normal name is an alias. */
38704 #if defined __stub_$ac_func || defined __stub___$ac_func
38711 return $ac_func ();
38716 rm -f conftest.$ac_objext conftest$ac_exeext
38717 if { (ac_try="$ac_link"
38718 case "(($ac_try" in
38719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38720 *) ac_try_echo=$ac_try;;
38722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38723 (eval "$ac_link") 2>conftest.er1
38725 grep -v '^ *+' conftest.er1 >conftest.err
38727 cat conftest.err >&5
38728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38729 (exit $ac_status); } && {
38730 test -z "$ac_c_werror_flag" ||
38731 test ! -s conftest.err
38732 } && test -s conftest$ac_exeext &&
38733 $as_test_x conftest$ac_exeext; then
38734 eval "$as_ac_var=yes"
38736 echo "$as_me: failed program was:" >&5
38737 sed 's/^/| /' conftest.$ac_ext >&5
38739 eval "$as_ac_var=no"
38742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38743 conftest$ac_exeext conftest.$ac_ext
38745 ac_res=`eval echo '${'$as_ac_var'}'`
38746 { echo "$as_me:$LINENO: result: $ac_res" >&5
38747 echo "${ECHO_T}$ac_res" >&6; }
38748 if test `eval echo '${'$as_ac_var'}'` = yes; then
38749 cat >>confdefs.h <<_ACEOF
38750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38757 for ac_func in fdatasync
38759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38763 echo $ECHO_N "(cached) $ECHO_C" >&6
38765 cat >conftest.$ac_ext <<_ACEOF
38768 cat confdefs.h >>conftest.$ac_ext
38769 cat >>conftest.$ac_ext <<_ACEOF
38770 /* end confdefs.h. */
38771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38773 #define $ac_func innocuous_$ac_func
38775 /* System header to define __stub macros and hopefully few prototypes,
38776 which can conflict with char $ac_func (); below.
38777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38778 <limits.h> exists even on freestanding compilers. */
38781 # include <limits.h>
38783 # include <assert.h>
38788 /* Override any GCC internal prototype to avoid an error.
38789 Use char because int might match the return type of a GCC
38790 builtin and then its argument prototype would still apply. */
38795 /* The GNU C library defines this for functions which it implements
38796 to always fail with ENOSYS. Some functions are actually named
38797 something starting with __ and the normal name is an alias. */
38798 #if defined __stub_$ac_func || defined __stub___$ac_func
38805 return $ac_func ();
38810 rm -f conftest.$ac_objext conftest$ac_exeext
38811 if { (ac_try="$ac_link"
38812 case "(($ac_try" in
38813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38814 *) ac_try_echo=$ac_try;;
38816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38817 (eval "$ac_link") 2>conftest.er1
38819 grep -v '^ *+' conftest.er1 >conftest.err
38821 cat conftest.err >&5
38822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823 (exit $ac_status); } && {
38824 test -z "$ac_c_werror_flag" ||
38825 test ! -s conftest.err
38826 } && test -s conftest$ac_exeext &&
38827 $as_test_x conftest$ac_exeext; then
38828 eval "$as_ac_var=yes"
38830 echo "$as_me: failed program was:" >&5
38831 sed 's/^/| /' conftest.$ac_ext >&5
38833 eval "$as_ac_var=no"
38836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38837 conftest$ac_exeext conftest.$ac_ext
38839 ac_res=`eval echo '${'$as_ac_var'}'`
38840 { echo "$as_me:$LINENO: result: $ac_res" >&5
38841 echo "${ECHO_T}$ac_res" >&6; }
38842 if test `eval echo '${'$as_ac_var'}'` = yes; then
38843 cat >>confdefs.h <<_ACEOF
38844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38852 for ac_func in chflags
38854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38858 echo $ECHO_N "(cached) $ECHO_C" >&6
38860 cat >conftest.$ac_ext <<_ACEOF
38863 cat confdefs.h >>conftest.$ac_ext
38864 cat >>conftest.$ac_ext <<_ACEOF
38865 /* end confdefs.h. */
38866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38868 #define $ac_func innocuous_$ac_func
38870 /* System header to define __stub macros and hopefully few prototypes,
38871 which can conflict with char $ac_func (); below.
38872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38873 <limits.h> exists even on freestanding compilers. */
38876 # include <limits.h>
38878 # include <assert.h>
38883 /* Override any GCC internal prototype to avoid an error.
38884 Use char because int might match the return type of a GCC
38885 builtin and then its argument prototype would still apply. */
38890 /* The GNU C library defines this for functions which it implements
38891 to always fail with ENOSYS. Some functions are actually named
38892 something starting with __ and the normal name is an alias. */
38893 #if defined __stub_$ac_func || defined __stub___$ac_func
38900 return $ac_func ();
38905 rm -f conftest.$ac_objext conftest$ac_exeext
38906 if { (ac_try="$ac_link"
38907 case "(($ac_try" in
38908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38909 *) ac_try_echo=$ac_try;;
38911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38912 (eval "$ac_link") 2>conftest.er1
38914 grep -v '^ *+' conftest.er1 >conftest.err
38916 cat conftest.err >&5
38917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918 (exit $ac_status); } && {
38919 test -z "$ac_c_werror_flag" ||
38920 test ! -s conftest.err
38921 } && test -s conftest$ac_exeext &&
38922 $as_test_x conftest$ac_exeext; then
38923 eval "$as_ac_var=yes"
38925 echo "$as_me: failed program was:" >&5
38926 sed 's/^/| /' conftest.$ac_ext >&5
38928 eval "$as_ac_var=no"
38931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38932 conftest$ac_exeext conftest.$ac_ext
38934 ac_res=`eval echo '${'$as_ac_var'}'`
38935 { echo "$as_me:$LINENO: result: $ac_res" >&5
38936 echo "${ECHO_T}$ac_res" >&6; }
38937 if test `eval echo '${'$as_ac_var'}'` = yes; then
38938 cat >>confdefs.h <<_ACEOF
38939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38950 for ac_func in snprintf vsnprintf gethostid fseeko
38952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38956 echo $ECHO_N "(cached) $ECHO_C" >&6
38958 cat >conftest.$ac_ext <<_ACEOF
38961 cat confdefs.h >>conftest.$ac_ext
38962 cat >>conftest.$ac_ext <<_ACEOF
38963 /* end confdefs.h. */
38964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38966 #define $ac_func innocuous_$ac_func
38968 /* System header to define __stub macros and hopefully few prototypes,
38969 which can conflict with char $ac_func (); below.
38970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38971 <limits.h> exists even on freestanding compilers. */
38974 # include <limits.h>
38976 # include <assert.h>
38981 /* Override any GCC internal prototype to avoid an error.
38982 Use char because int might match the return type of a GCC
38983 builtin and then its argument prototype would still apply. */
38988 /* The GNU C library defines this for functions which it implements
38989 to always fail with ENOSYS. Some functions are actually named
38990 something starting with __ and the normal name is an alias. */
38991 #if defined __stub_$ac_func || defined __stub___$ac_func
38998 return $ac_func ();
39003 rm -f conftest.$ac_objext conftest$ac_exeext
39004 if { (ac_try="$ac_link"
39005 case "(($ac_try" in
39006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39007 *) ac_try_echo=$ac_try;;
39009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39010 (eval "$ac_link") 2>conftest.er1
39012 grep -v '^ *+' conftest.er1 >conftest.err
39014 cat conftest.err >&5
39015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); } && {
39017 test -z "$ac_c_werror_flag" ||
39018 test ! -s conftest.err
39019 } && test -s conftest$ac_exeext &&
39020 $as_test_x conftest$ac_exeext; then
39021 eval "$as_ac_var=yes"
39023 echo "$as_me: failed program was:" >&5
39024 sed 's/^/| /' conftest.$ac_ext >&5
39026 eval "$as_ac_var=no"
39029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39030 conftest$ac_exeext conftest.$ac_ext
39032 ac_res=`eval echo '${'$as_ac_var'}'`
39033 { echo "$as_me:$LINENO: result: $ac_res" >&5
39034 echo "${ECHO_T}$ac_res" >&6; }
39035 if test `eval echo '${'$as_ac_var'}'` = yes; then
39036 cat >>confdefs.h <<_ACEOF
39037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39044 { echo "$as_me:$LINENO: checking for va_copy" >&5
39045 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
39046 if test "${ba_cv_va_copy+set}" = set; then
39047 echo $ECHO_N "(cached) $ECHO_C" >&6
39050 cat >conftest.$ac_ext <<_ACEOF
39053 cat confdefs.h >>conftest.$ac_ext
39054 cat >>conftest.$ac_ext <<_ACEOF
39055 /* end confdefs.h. */
39057 #include <stdarg.h>
39058 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
39059 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
39065 call_use_va_copy(1,2,3)
39071 rm -f conftest.$ac_objext conftest$ac_exeext
39072 if { (ac_try="$ac_link"
39073 case "(($ac_try" in
39074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39075 *) ac_try_echo=$ac_try;;
39077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39078 (eval "$ac_link") 2>conftest.er1
39080 grep -v '^ *+' conftest.er1 >conftest.err
39082 cat conftest.err >&5
39083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 (exit $ac_status); } && {
39085 test -z "$ac_c_werror_flag" ||
39086 test ! -s conftest.err
39087 } && test -s conftest$ac_exeext &&
39088 $as_test_x conftest$ac_exeext; then
39093 echo "$as_me: failed program was:" >&5
39094 sed 's/^/| /' conftest.$ac_ext >&5
39102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39103 conftest$ac_exeext conftest.$ac_ext
39107 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
39108 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
39109 test $ba_cv_va_copy = yes &&
39110 cat >>confdefs.h <<\_ACEOF
39111 #define HAVE_VA_COPY 1
39119 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
39121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39125 echo $ECHO_N "(cached) $ECHO_C" >&6
39127 cat >conftest.$ac_ext <<_ACEOF
39130 cat confdefs.h >>conftest.$ac_ext
39131 cat >>conftest.$ac_ext <<_ACEOF
39132 /* end confdefs.h. */
39133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39135 #define $ac_func innocuous_$ac_func
39137 /* System header to define __stub macros and hopefully few prototypes,
39138 which can conflict with char $ac_func (); below.
39139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39140 <limits.h> exists even on freestanding compilers. */
39143 # include <limits.h>
39145 # include <assert.h>
39150 /* Override any GCC internal prototype to avoid an error.
39151 Use char because int might match the return type of a GCC
39152 builtin and then its argument prototype would still apply. */
39157 /* The GNU C library defines this for functions which it implements
39158 to always fail with ENOSYS. Some functions are actually named
39159 something starting with __ and the normal name is an alias. */
39160 #if defined __stub_$ac_func || defined __stub___$ac_func
39167 return $ac_func ();
39172 rm -f conftest.$ac_objext conftest$ac_exeext
39173 if { (ac_try="$ac_link"
39174 case "(($ac_try" in
39175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39176 *) ac_try_echo=$ac_try;;
39178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39179 (eval "$ac_link") 2>conftest.er1
39181 grep -v '^ *+' conftest.er1 >conftest.err
39183 cat conftest.err >&5
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); } && {
39186 test -z "$ac_c_werror_flag" ||
39187 test ! -s conftest.err
39188 } && test -s conftest$ac_exeext &&
39189 $as_test_x conftest$ac_exeext; then
39190 eval "$as_ac_var=yes"
39192 echo "$as_me: failed program was:" >&5
39193 sed 's/^/| /' conftest.$ac_ext >&5
39195 eval "$as_ac_var=no"
39198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39199 conftest$ac_exeext conftest.$ac_ext
39201 ac_res=`eval echo '${'$as_ac_var'}'`
39202 { echo "$as_me:$LINENO: result: $ac_res" >&5
39203 echo "${ECHO_T}$ac_res" >&6; }
39204 if test `eval echo '${'$as_ac_var'}'` = yes; then
39205 cat >>confdefs.h <<_ACEOF
39206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39213 # If resolver functions are not in libc check for -lnsl or -lresolv.
39214 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39215 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39216 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39217 echo $ECHO_N "(cached) $ECHO_C" >&6
39219 cat >conftest.$ac_ext <<_ACEOF
39222 cat confdefs.h >>conftest.$ac_ext
39223 cat >>conftest.$ac_ext <<_ACEOF
39224 /* end confdefs.h. */
39225 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39227 #define gethostbyname_r innocuous_gethostbyname_r
39229 /* System header to define __stub macros and hopefully few prototypes,
39230 which can conflict with char gethostbyname_r (); below.
39231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39232 <limits.h> exists even on freestanding compilers. */
39235 # include <limits.h>
39237 # include <assert.h>
39240 #undef gethostbyname_r
39242 /* Override any GCC internal prototype to avoid an error.
39243 Use char because int might match the return type of a GCC
39244 builtin and then its argument prototype would still apply. */
39248 char gethostbyname_r ();
39249 /* The GNU C library defines this for functions which it implements
39250 to always fail with ENOSYS. Some functions are actually named
39251 something starting with __ and the normal name is an alias. */
39252 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39259 return gethostbyname_r ();
39264 rm -f conftest.$ac_objext conftest$ac_exeext
39265 if { (ac_try="$ac_link"
39266 case "(($ac_try" in
39267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268 *) ac_try_echo=$ac_try;;
39270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39271 (eval "$ac_link") 2>conftest.er1
39273 grep -v '^ *+' conftest.er1 >conftest.err
39275 cat conftest.err >&5
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } && {
39278 test -z "$ac_c_werror_flag" ||
39279 test ! -s conftest.err
39280 } && test -s conftest$ac_exeext &&
39281 $as_test_x conftest$ac_exeext; then
39282 ac_cv_func_gethostbyname_r=yes
39284 echo "$as_me: failed program was:" >&5
39285 sed 's/^/| /' conftest.$ac_ext >&5
39287 ac_cv_func_gethostbyname_r=no
39290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39291 conftest$ac_exeext conftest.$ac_ext
39293 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39294 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39295 if test $ac_cv_func_gethostbyname_r = yes; then
39296 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39297 echo "${ECHO_T}using libc's resolver" >&6; }
39300 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39301 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39302 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39303 echo $ECHO_N "(cached) $ECHO_C" >&6
39305 ac_check_lib_save_LIBS=$LIBS
39307 cat >conftest.$ac_ext <<_ACEOF
39310 cat confdefs.h >>conftest.$ac_ext
39311 cat >>conftest.$ac_ext <<_ACEOF
39312 /* end confdefs.h. */
39314 /* Override any GCC internal prototype to avoid an error.
39315 Use char because int might match the return type of a GCC
39316 builtin and then its argument prototype would still apply. */
39320 char gethostbyname_r ();
39324 return gethostbyname_r ();
39329 rm -f conftest.$ac_objext conftest$ac_exeext
39330 if { (ac_try="$ac_link"
39331 case "(($ac_try" in
39332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39333 *) ac_try_echo=$ac_try;;
39335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39336 (eval "$ac_link") 2>conftest.er1
39338 grep -v '^ *+' conftest.er1 >conftest.err
39340 cat conftest.err >&5
39341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342 (exit $ac_status); } && {
39343 test -z "$ac_c_werror_flag" ||
39344 test ! -s conftest.err
39345 } && test -s conftest$ac_exeext &&
39346 $as_test_x conftest$ac_exeext; then
39347 ac_cv_lib_nsl_gethostbyname_r=yes
39349 echo "$as_me: failed program was:" >&5
39350 sed 's/^/| /' conftest.$ac_ext >&5
39352 ac_cv_lib_nsl_gethostbyname_r=no
39355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39356 conftest$ac_exeext conftest.$ac_ext
39357 LIBS=$ac_check_lib_save_LIBS
39359 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39360 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39361 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39362 cat >>confdefs.h <<_ACEOF
39363 #define HAVE_LIBNSL 1
39371 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39372 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39373 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39374 echo $ECHO_N "(cached) $ECHO_C" >&6
39376 ac_check_lib_save_LIBS=$LIBS
39377 LIBS="-lresolv $LIBS"
39378 cat >conftest.$ac_ext <<_ACEOF
39381 cat confdefs.h >>conftest.$ac_ext
39382 cat >>conftest.$ac_ext <<_ACEOF
39383 /* end confdefs.h. */
39385 /* Override any GCC internal prototype to avoid an error.
39386 Use char because int might match the return type of a GCC
39387 builtin and then its argument prototype would still apply. */
39391 char gethostbyname_r ();
39395 return gethostbyname_r ();
39400 rm -f conftest.$ac_objext conftest$ac_exeext
39401 if { (ac_try="$ac_link"
39402 case "(($ac_try" in
39403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39404 *) ac_try_echo=$ac_try;;
39406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39407 (eval "$ac_link") 2>conftest.er1
39409 grep -v '^ *+' conftest.er1 >conftest.err
39411 cat conftest.err >&5
39412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413 (exit $ac_status); } && {
39414 test -z "$ac_c_werror_flag" ||
39415 test ! -s conftest.err
39416 } && test -s conftest$ac_exeext &&
39417 $as_test_x conftest$ac_exeext; then
39418 ac_cv_lib_resolv_gethostbyname_r=yes
39420 echo "$as_me: failed program was:" >&5
39421 sed 's/^/| /' conftest.$ac_ext >&5
39423 ac_cv_lib_resolv_gethostbyname_r=no
39426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39427 conftest$ac_exeext conftest.$ac_ext
39428 LIBS=$ac_check_lib_save_LIBS
39430 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39431 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39432 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39433 cat >>confdefs.h <<_ACEOF
39434 #define HAVE_LIBRESOLV 1
39437 LIBS="-lresolv $LIBS"
39445 for ac_func in inet_pton
39447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39451 echo $ECHO_N "(cached) $ECHO_C" >&6
39453 cat >conftest.$ac_ext <<_ACEOF
39456 cat confdefs.h >>conftest.$ac_ext
39457 cat >>conftest.$ac_ext <<_ACEOF
39458 /* end confdefs.h. */
39459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39461 #define $ac_func innocuous_$ac_func
39463 /* System header to define __stub macros and hopefully few prototypes,
39464 which can conflict with char $ac_func (); below.
39465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39466 <limits.h> exists even on freestanding compilers. */
39469 # include <limits.h>
39471 # include <assert.h>
39476 /* Override any GCC internal prototype to avoid an error.
39477 Use char because int might match the return type of a GCC
39478 builtin and then its argument prototype would still apply. */
39483 /* The GNU C library defines this for functions which it implements
39484 to always fail with ENOSYS. Some functions are actually named
39485 something starting with __ and the normal name is an alias. */
39486 #if defined __stub_$ac_func || defined __stub___$ac_func
39493 return $ac_func ();
39498 rm -f conftest.$ac_objext conftest$ac_exeext
39499 if { (ac_try="$ac_link"
39500 case "(($ac_try" in
39501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39502 *) ac_try_echo=$ac_try;;
39504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39505 (eval "$ac_link") 2>conftest.er1
39507 grep -v '^ *+' conftest.er1 >conftest.err
39509 cat conftest.err >&5
39510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511 (exit $ac_status); } && {
39512 test -z "$ac_c_werror_flag" ||
39513 test ! -s conftest.err
39514 } && test -s conftest$ac_exeext &&
39515 $as_test_x conftest$ac_exeext; then
39516 eval "$as_ac_var=yes"
39518 echo "$as_me: failed program was:" >&5
39519 sed 's/^/| /' conftest.$ac_ext >&5
39521 eval "$as_ac_var=no"
39524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39525 conftest$ac_exeext conftest.$ac_ext
39527 ac_res=`eval echo '${'$as_ac_var'}'`
39528 { echo "$as_me:$LINENO: result: $ac_res" >&5
39529 echo "${ECHO_T}$ac_res" >&6; }
39530 if test `eval echo '${'$as_ac_var'}'` = yes; then
39531 cat >>confdefs.h <<_ACEOF
39532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39534 cat >>confdefs.h <<\_ACEOF
39535 #define HAVE_INET_PTON 1
39542 for ac_func in inet_ntop
39544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39548 echo $ECHO_N "(cached) $ECHO_C" >&6
39550 cat >conftest.$ac_ext <<_ACEOF
39553 cat confdefs.h >>conftest.$ac_ext
39554 cat >>conftest.$ac_ext <<_ACEOF
39555 /* end confdefs.h. */
39556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39558 #define $ac_func innocuous_$ac_func
39560 /* System header to define __stub macros and hopefully few prototypes,
39561 which can conflict with char $ac_func (); below.
39562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39563 <limits.h> exists even on freestanding compilers. */
39566 # include <limits.h>
39568 # include <assert.h>
39573 /* Override any GCC internal prototype to avoid an error.
39574 Use char because int might match the return type of a GCC
39575 builtin and then its argument prototype would still apply. */
39580 /* The GNU C library defines this for functions which it implements
39581 to always fail with ENOSYS. Some functions are actually named
39582 something starting with __ and the normal name is an alias. */
39583 #if defined __stub_$ac_func || defined __stub___$ac_func
39590 return $ac_func ();
39595 rm -f conftest.$ac_objext conftest$ac_exeext
39596 if { (ac_try="$ac_link"
39597 case "(($ac_try" in
39598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39599 *) ac_try_echo=$ac_try;;
39601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39602 (eval "$ac_link") 2>conftest.er1
39604 grep -v '^ *+' conftest.er1 >conftest.err
39606 cat conftest.err >&5
39607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39608 (exit $ac_status); } && {
39609 test -z "$ac_c_werror_flag" ||
39610 test ! -s conftest.err
39611 } && test -s conftest$ac_exeext &&
39612 $as_test_x conftest$ac_exeext; then
39613 eval "$as_ac_var=yes"
39615 echo "$as_me: failed program was:" >&5
39616 sed 's/^/| /' conftest.$ac_ext >&5
39618 eval "$as_ac_var=no"
39621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39622 conftest$ac_exeext conftest.$ac_ext
39624 ac_res=`eval echo '${'$as_ac_var'}'`
39625 { echo "$as_me:$LINENO: result: $ac_res" >&5
39626 echo "${ECHO_T}$ac_res" >&6; }
39627 if test `eval echo '${'$as_ac_var'}'` = yes; then
39628 cat >>confdefs.h <<_ACEOF
39629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39631 cat >>confdefs.h <<\_ACEOF
39632 #define HAVE_INET_NTOP 1
39639 for ac_func in gethostbyname2
39641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39645 echo $ECHO_N "(cached) $ECHO_C" >&6
39647 cat >conftest.$ac_ext <<_ACEOF
39650 cat confdefs.h >>conftest.$ac_ext
39651 cat >>conftest.$ac_ext <<_ACEOF
39652 /* end confdefs.h. */
39653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39655 #define $ac_func innocuous_$ac_func
39657 /* System header to define __stub macros and hopefully few prototypes,
39658 which can conflict with char $ac_func (); below.
39659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39660 <limits.h> exists even on freestanding compilers. */
39663 # include <limits.h>
39665 # include <assert.h>
39670 /* Override any GCC internal prototype to avoid an error.
39671 Use char because int might match the return type of a GCC
39672 builtin and then its argument prototype would still apply. */
39677 /* The GNU C library defines this for functions which it implements
39678 to always fail with ENOSYS. Some functions are actually named
39679 something starting with __ and the normal name is an alias. */
39680 #if defined __stub_$ac_func || defined __stub___$ac_func
39687 return $ac_func ();
39692 rm -f conftest.$ac_objext conftest$ac_exeext
39693 if { (ac_try="$ac_link"
39694 case "(($ac_try" in
39695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39696 *) ac_try_echo=$ac_try;;
39698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39699 (eval "$ac_link") 2>conftest.er1
39701 grep -v '^ *+' conftest.er1 >conftest.err
39703 cat conftest.err >&5
39704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39705 (exit $ac_status); } && {
39706 test -z "$ac_c_werror_flag" ||
39707 test ! -s conftest.err
39708 } && test -s conftest$ac_exeext &&
39709 $as_test_x conftest$ac_exeext; then
39710 eval "$as_ac_var=yes"
39712 echo "$as_me: failed program was:" >&5
39713 sed 's/^/| /' conftest.$ac_ext >&5
39715 eval "$as_ac_var=no"
39718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39719 conftest$ac_exeext conftest.$ac_ext
39721 ac_res=`eval echo '${'$as_ac_var'}'`
39722 { echo "$as_me:$LINENO: result: $ac_res" >&5
39723 echo "${ECHO_T}$ac_res" >&6; }
39724 if test `eval echo '${'$as_ac_var'}'` = yes; then
39725 cat >>confdefs.h <<_ACEOF
39726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39728 cat >>confdefs.h <<\_ACEOF
39729 #define HAVE_GETHOSTBYNAME2 1
39736 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39737 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39738 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39739 echo $ECHO_N "(cached) $ECHO_C" >&6
39742 cat >conftest.$ac_ext <<_ACEOF
39745 cat confdefs.h >>conftest.$ac_ext
39746 cat >>conftest.$ac_ext <<_ACEOF
39747 /* end confdefs.h. */
39749 #include <sys/socket.h>
39755 struct sockaddr s; s.sa_len;
39761 rm -f conftest.$ac_objext
39762 if { (ac_try="$ac_compile"
39763 case "(($ac_try" in
39764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39765 *) ac_try_echo=$ac_try;;
39767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39768 (eval "$ac_compile") 2>conftest.er1
39770 grep -v '^ *+' conftest.er1 >conftest.err
39772 cat conftest.err >&5
39773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774 (exit $ac_status); } && {
39775 test -z "$ac_c_werror_flag" ||
39776 test ! -s conftest.err
39777 } && test -s conftest.$ac_objext; then
39779 ac_cv_struct_sockaddr_sa_len=yes
39782 echo "$as_me: failed program was:" >&5
39783 sed 's/^/| /' conftest.$ac_ext >&5
39785 ac_cv_struct_sockaddr_sa_len=no
39790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39794 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39795 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39797 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39799 cat >>confdefs.h <<\_ACEOF
39800 #define HAVE_SA_LEN 1
39806 for ac_func in strftime
39808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39812 echo $ECHO_N "(cached) $ECHO_C" >&6
39814 cat >conftest.$ac_ext <<_ACEOF
39817 cat confdefs.h >>conftest.$ac_ext
39818 cat >>conftest.$ac_ext <<_ACEOF
39819 /* end confdefs.h. */
39820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39822 #define $ac_func innocuous_$ac_func
39824 /* System header to define __stub macros and hopefully few prototypes,
39825 which can conflict with char $ac_func (); below.
39826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39827 <limits.h> exists even on freestanding compilers. */
39830 # include <limits.h>
39832 # include <assert.h>
39837 /* Override any GCC internal prototype to avoid an error.
39838 Use char because int might match the return type of a GCC
39839 builtin and then its argument prototype would still apply. */
39844 /* The GNU C library defines this for functions which it implements
39845 to always fail with ENOSYS. Some functions are actually named
39846 something starting with __ and the normal name is an alias. */
39847 #if defined __stub_$ac_func || defined __stub___$ac_func
39854 return $ac_func ();
39859 rm -f conftest.$ac_objext conftest$ac_exeext
39860 if { (ac_try="$ac_link"
39861 case "(($ac_try" in
39862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39863 *) ac_try_echo=$ac_try;;
39865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39866 (eval "$ac_link") 2>conftest.er1
39868 grep -v '^ *+' conftest.er1 >conftest.err
39870 cat conftest.err >&5
39871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39872 (exit $ac_status); } && {
39873 test -z "$ac_c_werror_flag" ||
39874 test ! -s conftest.err
39875 } && test -s conftest$ac_exeext &&
39876 $as_test_x conftest$ac_exeext; then
39877 eval "$as_ac_var=yes"
39879 echo "$as_me: failed program was:" >&5
39880 sed 's/^/| /' conftest.$ac_ext >&5
39882 eval "$as_ac_var=no"
39885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39886 conftest$ac_exeext conftest.$ac_ext
39888 ac_res=`eval echo '${'$as_ac_var'}'`
39889 { echo "$as_me:$LINENO: result: $ac_res" >&5
39890 echo "${ECHO_T}$ac_res" >&6; }
39891 if test `eval echo '${'$as_ac_var'}'` = yes; then
39892 cat >>confdefs.h <<_ACEOF
39893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39897 # strftime is in -lintl on SCO UNIX.
39898 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39899 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39900 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39901 echo $ECHO_N "(cached) $ECHO_C" >&6
39903 ac_check_lib_save_LIBS=$LIBS
39904 LIBS="-lintl $LIBS"
39905 cat >conftest.$ac_ext <<_ACEOF
39908 cat confdefs.h >>conftest.$ac_ext
39909 cat >>conftest.$ac_ext <<_ACEOF
39910 /* end confdefs.h. */
39912 /* Override any GCC internal prototype to avoid an error.
39913 Use char because int might match the return type of a GCC
39914 builtin and then its argument prototype would still apply. */
39922 return strftime ();
39927 rm -f conftest.$ac_objext conftest$ac_exeext
39928 if { (ac_try="$ac_link"
39929 case "(($ac_try" in
39930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39931 *) ac_try_echo=$ac_try;;
39933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39934 (eval "$ac_link") 2>conftest.er1
39936 grep -v '^ *+' conftest.er1 >conftest.err
39938 cat conftest.err >&5
39939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940 (exit $ac_status); } && {
39941 test -z "$ac_c_werror_flag" ||
39942 test ! -s conftest.err
39943 } && test -s conftest$ac_exeext &&
39944 $as_test_x conftest$ac_exeext; then
39945 ac_cv_lib_intl_strftime=yes
39947 echo "$as_me: failed program was:" >&5
39948 sed 's/^/| /' conftest.$ac_ext >&5
39950 ac_cv_lib_intl_strftime=no
39953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39954 conftest$ac_exeext conftest.$ac_ext
39955 LIBS=$ac_check_lib_save_LIBS
39957 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39958 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39959 if test $ac_cv_lib_intl_strftime = yes; then
39960 cat >>confdefs.h <<\_ACEOF
39961 #define HAVE_STRFTIME 1
39964 LIBS="-lintl $LIBS"
39971 for ac_func in vprintf
39973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39977 echo $ECHO_N "(cached) $ECHO_C" >&6
39979 cat >conftest.$ac_ext <<_ACEOF
39982 cat confdefs.h >>conftest.$ac_ext
39983 cat >>conftest.$ac_ext <<_ACEOF
39984 /* end confdefs.h. */
39985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39987 #define $ac_func innocuous_$ac_func
39989 /* System header to define __stub macros and hopefully few prototypes,
39990 which can conflict with char $ac_func (); below.
39991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39992 <limits.h> exists even on freestanding compilers. */
39995 # include <limits.h>
39997 # include <assert.h>
40002 /* Override any GCC internal prototype to avoid an error.
40003 Use char because int might match the return type of a GCC
40004 builtin and then its argument prototype would still apply. */
40009 /* The GNU C library defines this for functions which it implements
40010 to always fail with ENOSYS. Some functions are actually named
40011 something starting with __ and the normal name is an alias. */
40012 #if defined __stub_$ac_func || defined __stub___$ac_func
40019 return $ac_func ();
40024 rm -f conftest.$ac_objext conftest$ac_exeext
40025 if { (ac_try="$ac_link"
40026 case "(($ac_try" in
40027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40028 *) ac_try_echo=$ac_try;;
40030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40031 (eval "$ac_link") 2>conftest.er1
40033 grep -v '^ *+' conftest.er1 >conftest.err
40035 cat conftest.err >&5
40036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40037 (exit $ac_status); } && {
40038 test -z "$ac_c_werror_flag" ||
40039 test ! -s conftest.err
40040 } && test -s conftest$ac_exeext &&
40041 $as_test_x conftest$ac_exeext; then
40042 eval "$as_ac_var=yes"
40044 echo "$as_me: failed program was:" >&5
40045 sed 's/^/| /' conftest.$ac_ext >&5
40047 eval "$as_ac_var=no"
40050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40051 conftest$ac_exeext conftest.$ac_ext
40053 ac_res=`eval echo '${'$as_ac_var'}'`
40054 { echo "$as_me:$LINENO: result: $ac_res" >&5
40055 echo "${ECHO_T}$ac_res" >&6; }
40056 if test `eval echo '${'$as_ac_var'}'` = yes; then
40057 cat >>confdefs.h <<_ACEOF
40058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40061 { echo "$as_me:$LINENO: checking for _doprnt" >&5
40062 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
40063 if test "${ac_cv_func__doprnt+set}" = set; then
40064 echo $ECHO_N "(cached) $ECHO_C" >&6
40066 cat >conftest.$ac_ext <<_ACEOF
40069 cat confdefs.h >>conftest.$ac_ext
40070 cat >>conftest.$ac_ext <<_ACEOF
40071 /* end confdefs.h. */
40072 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
40073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40074 #define _doprnt innocuous__doprnt
40076 /* System header to define __stub macros and hopefully few prototypes,
40077 which can conflict with char _doprnt (); below.
40078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40079 <limits.h> exists even on freestanding compilers. */
40082 # include <limits.h>
40084 # include <assert.h>
40089 /* Override any GCC internal prototype to avoid an error.
40090 Use char because int might match the return type of a GCC
40091 builtin and then its argument prototype would still apply. */
40096 /* The GNU C library defines this for functions which it implements
40097 to always fail with ENOSYS. Some functions are actually named
40098 something starting with __ and the normal name is an alias. */
40099 #if defined __stub__doprnt || defined __stub____doprnt
40111 rm -f conftest.$ac_objext conftest$ac_exeext
40112 if { (ac_try="$ac_link"
40113 case "(($ac_try" in
40114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40115 *) ac_try_echo=$ac_try;;
40117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40118 (eval "$ac_link") 2>conftest.er1
40120 grep -v '^ *+' conftest.er1 >conftest.err
40122 cat conftest.err >&5
40123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40124 (exit $ac_status); } && {
40125 test -z "$ac_c_werror_flag" ||
40126 test ! -s conftest.err
40127 } && test -s conftest$ac_exeext &&
40128 $as_test_x conftest$ac_exeext; then
40129 ac_cv_func__doprnt=yes
40131 echo "$as_me: failed program was:" >&5
40132 sed 's/^/| /' conftest.$ac_ext >&5
40134 ac_cv_func__doprnt=no
40137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40138 conftest$ac_exeext conftest.$ac_ext
40140 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
40141 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
40142 if test $ac_cv_func__doprnt = yes; then
40144 cat >>confdefs.h <<\_ACEOF
40145 #define HAVE_DOPRNT 1
40154 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
40155 # for constant arguments. Useless!
40156 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
40157 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
40158 if test "${ac_cv_working_alloca_h+set}" = set; then
40159 echo $ECHO_N "(cached) $ECHO_C" >&6
40161 cat >conftest.$ac_ext <<_ACEOF
40164 cat confdefs.h >>conftest.$ac_ext
40165 cat >>conftest.$ac_ext <<_ACEOF
40166 /* end confdefs.h. */
40167 #include <alloca.h>
40171 char *p = (char *) alloca (2 * sizeof (int));
40177 rm -f conftest.$ac_objext conftest$ac_exeext
40178 if { (ac_try="$ac_link"
40179 case "(($ac_try" in
40180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40181 *) ac_try_echo=$ac_try;;
40183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40184 (eval "$ac_link") 2>conftest.er1
40186 grep -v '^ *+' conftest.er1 >conftest.err
40188 cat conftest.err >&5
40189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40190 (exit $ac_status); } && {
40191 test -z "$ac_c_werror_flag" ||
40192 test ! -s conftest.err
40193 } && test -s conftest$ac_exeext &&
40194 $as_test_x conftest$ac_exeext; then
40195 ac_cv_working_alloca_h=yes
40197 echo "$as_me: failed program was:" >&5
40198 sed 's/^/| /' conftest.$ac_ext >&5
40200 ac_cv_working_alloca_h=no
40203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40204 conftest$ac_exeext conftest.$ac_ext
40206 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40207 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40208 if test $ac_cv_working_alloca_h = yes; then
40210 cat >>confdefs.h <<\_ACEOF
40211 #define HAVE_ALLOCA_H 1
40216 { echo "$as_me:$LINENO: checking for alloca" >&5
40217 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40218 if test "${ac_cv_func_alloca_works+set}" = set; then
40219 echo $ECHO_N "(cached) $ECHO_C" >&6
40221 cat >conftest.$ac_ext <<_ACEOF
40224 cat confdefs.h >>conftest.$ac_ext
40225 cat >>conftest.$ac_ext <<_ACEOF
40226 /* end confdefs.h. */
40228 # define alloca __builtin_alloca
40231 # include <malloc.h>
40232 # define alloca _alloca
40234 # ifdef HAVE_ALLOCA_H
40235 # include <alloca.h>
40240 # ifndef alloca /* predefined by HP cc +Olibcalls */
40251 char *p = (char *) alloca (1);
40257 rm -f conftest.$ac_objext conftest$ac_exeext
40258 if { (ac_try="$ac_link"
40259 case "(($ac_try" in
40260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40261 *) ac_try_echo=$ac_try;;
40263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40264 (eval "$ac_link") 2>conftest.er1
40266 grep -v '^ *+' conftest.er1 >conftest.err
40268 cat conftest.err >&5
40269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40270 (exit $ac_status); } && {
40271 test -z "$ac_c_werror_flag" ||
40272 test ! -s conftest.err
40273 } && test -s conftest$ac_exeext &&
40274 $as_test_x conftest$ac_exeext; then
40275 ac_cv_func_alloca_works=yes
40277 echo "$as_me: failed program was:" >&5
40278 sed 's/^/| /' conftest.$ac_ext >&5
40280 ac_cv_func_alloca_works=no
40283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40284 conftest$ac_exeext conftest.$ac_ext
40286 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40287 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40289 if test $ac_cv_func_alloca_works = yes; then
40291 cat >>confdefs.h <<\_ACEOF
40292 #define HAVE_ALLOCA 1
40296 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40297 # that cause trouble. Some versions do not even contain alloca or
40298 # contain a buggy version. If you still want to use their alloca,
40299 # use ar to extract alloca.o from them instead of compiling alloca.c.
40301 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40303 cat >>confdefs.h <<\_ACEOF
40308 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40309 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40310 if test "${ac_cv_os_cray+set}" = set; then
40311 echo $ECHO_N "(cached) $ECHO_C" >&6
40313 cat >conftest.$ac_ext <<_ACEOF
40316 cat confdefs.h >>conftest.$ac_ext
40317 cat >>conftest.$ac_ext <<_ACEOF
40318 /* end confdefs.h. */
40319 #if defined CRAY && ! defined CRAY2
40326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40327 $EGREP "webecray" >/dev/null 2>&1; then
40335 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40336 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40337 if test $ac_cv_os_cray = yes; then
40338 for ac_func in _getb67 GETB67 getb67; do
40339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40343 echo $ECHO_N "(cached) $ECHO_C" >&6
40345 cat >conftest.$ac_ext <<_ACEOF
40348 cat confdefs.h >>conftest.$ac_ext
40349 cat >>conftest.$ac_ext <<_ACEOF
40350 /* end confdefs.h. */
40351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40353 #define $ac_func innocuous_$ac_func
40355 /* System header to define __stub macros and hopefully few prototypes,
40356 which can conflict with char $ac_func (); below.
40357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40358 <limits.h> exists even on freestanding compilers. */
40361 # include <limits.h>
40363 # include <assert.h>
40368 /* Override any GCC internal prototype to avoid an error.
40369 Use char because int might match the return type of a GCC
40370 builtin and then its argument prototype would still apply. */
40375 /* The GNU C library defines this for functions which it implements
40376 to always fail with ENOSYS. Some functions are actually named
40377 something starting with __ and the normal name is an alias. */
40378 #if defined __stub_$ac_func || defined __stub___$ac_func
40385 return $ac_func ();
40390 rm -f conftest.$ac_objext conftest$ac_exeext
40391 if { (ac_try="$ac_link"
40392 case "(($ac_try" in
40393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40394 *) ac_try_echo=$ac_try;;
40396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40397 (eval "$ac_link") 2>conftest.er1
40399 grep -v '^ *+' conftest.er1 >conftest.err
40401 cat conftest.err >&5
40402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40403 (exit $ac_status); } && {
40404 test -z "$ac_c_werror_flag" ||
40405 test ! -s conftest.err
40406 } && test -s conftest$ac_exeext &&
40407 $as_test_x conftest$ac_exeext; then
40408 eval "$as_ac_var=yes"
40410 echo "$as_me: failed program was:" >&5
40411 sed 's/^/| /' conftest.$ac_ext >&5
40413 eval "$as_ac_var=no"
40416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40417 conftest$ac_exeext conftest.$ac_ext
40419 ac_res=`eval echo '${'$as_ac_var'}'`
40420 { echo "$as_me:$LINENO: result: $ac_res" >&5
40421 echo "${ECHO_T}$ac_res" >&6; }
40422 if test `eval echo '${'$as_ac_var'}'` = yes; then
40424 cat >>confdefs.h <<_ACEOF
40425 #define CRAY_STACKSEG_END $ac_func
40434 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40435 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40436 if test "${ac_cv_c_stack_direction+set}" = set; then
40437 echo $ECHO_N "(cached) $ECHO_C" >&6
40439 if test "$cross_compiling" = yes; then
40440 ac_cv_c_stack_direction=0
40442 cat >conftest.$ac_ext <<_ACEOF
40445 cat confdefs.h >>conftest.$ac_ext
40446 cat >>conftest.$ac_ext <<_ACEOF
40447 /* end confdefs.h. */
40448 $ac_includes_default
40450 find_stack_direction ()
40452 static char *addr = 0;
40457 return find_stack_direction ();
40460 return (&dummy > addr) ? 1 : -1;
40466 return find_stack_direction () < 0;
40469 rm -f conftest$ac_exeext
40470 if { (ac_try="$ac_link"
40471 case "(($ac_try" in
40472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40473 *) ac_try_echo=$ac_try;;
40475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40476 (eval "$ac_link") 2>&5
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40480 { (case "(($ac_try" in
40481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40482 *) ac_try_echo=$ac_try;;
40484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40485 (eval "$ac_try") 2>&5
40487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40488 (exit $ac_status); }; }; then
40489 ac_cv_c_stack_direction=1
40491 echo "$as_me: program exited with status $ac_status" >&5
40492 echo "$as_me: failed program was:" >&5
40493 sed 's/^/| /' conftest.$ac_ext >&5
40495 ( exit $ac_status )
40496 ac_cv_c_stack_direction=-1
40498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40503 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40504 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40506 cat >>confdefs.h <<_ACEOF
40507 #define STACK_DIRECTION $ac_cv_c_stack_direction
40513 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40514 # -lseq on Dynix/PTX, -lgen on Unixware.
40515 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40516 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40517 if test "${ac_cv_search_getmntent+set}" = set; then
40518 echo $ECHO_N "(cached) $ECHO_C" >&6
40520 ac_func_search_save_LIBS=$LIBS
40521 cat >conftest.$ac_ext <<_ACEOF
40524 cat confdefs.h >>conftest.$ac_ext
40525 cat >>conftest.$ac_ext <<_ACEOF
40526 /* end confdefs.h. */
40528 /* Override any GCC internal prototype to avoid an error.
40529 Use char because int might match the return type of a GCC
40530 builtin and then its argument prototype would still apply. */
40538 return getmntent ();
40543 for ac_lib in '' sun seq gen; do
40544 if test -z "$ac_lib"; then
40545 ac_res="none required"
40548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40550 rm -f conftest.$ac_objext conftest$ac_exeext
40551 if { (ac_try="$ac_link"
40552 case "(($ac_try" in
40553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40554 *) ac_try_echo=$ac_try;;
40556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40557 (eval "$ac_link") 2>conftest.er1
40559 grep -v '^ *+' conftest.er1 >conftest.err
40561 cat conftest.err >&5
40562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40563 (exit $ac_status); } && {
40564 test -z "$ac_c_werror_flag" ||
40565 test ! -s conftest.err
40566 } && test -s conftest$ac_exeext &&
40567 $as_test_x conftest$ac_exeext; then
40568 ac_cv_search_getmntent=$ac_res
40570 echo "$as_me: failed program was:" >&5
40571 sed 's/^/| /' conftest.$ac_ext >&5
40576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40578 if test "${ac_cv_search_getmntent+set}" = set; then
40582 if test "${ac_cv_search_getmntent+set}" = set; then
40585 ac_cv_search_getmntent=no
40587 rm conftest.$ac_ext
40588 LIBS=$ac_func_search_save_LIBS
40590 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40591 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40592 ac_res=$ac_cv_search_getmntent
40593 if test "$ac_res" != no; then
40594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40595 ac_cv_func_getmntent=yes
40597 cat >>confdefs.h <<\_ACEOF
40598 #define HAVE_GETMNTENT 1
40602 ac_cv_func_getmntent=no
40606 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40607 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40608 if test "${ac_cv_func_closedir_void+set}" = set; then
40609 echo $ECHO_N "(cached) $ECHO_C" >&6
40611 if test "$cross_compiling" = yes; then
40612 ac_cv_func_closedir_void=yes
40614 cat >conftest.$ac_ext <<_ACEOF
40617 cat confdefs.h >>conftest.$ac_ext
40618 cat >>conftest.$ac_ext <<_ACEOF
40619 /* end confdefs.h. */
40620 $ac_includes_default
40621 #include <$ac_header_dirent>
40622 #ifndef __cplusplus
40629 return closedir (opendir (".")) != 0;
40634 rm -f conftest$ac_exeext
40635 if { (ac_try="$ac_link"
40636 case "(($ac_try" in
40637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40638 *) ac_try_echo=$ac_try;;
40640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40641 (eval "$ac_link") 2>&5
40643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40645 { (case "(($ac_try" in
40646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40647 *) ac_try_echo=$ac_try;;
40649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40650 (eval "$ac_try") 2>&5
40652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653 (exit $ac_status); }; }; then
40654 ac_cv_func_closedir_void=no
40656 echo "$as_me: program exited with status $ac_status" >&5
40657 echo "$as_me: failed program was:" >&5
40658 sed 's/^/| /' conftest.$ac_ext >&5
40660 ( exit $ac_status )
40661 ac_cv_func_closedir_void=yes
40663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40668 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40669 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40670 if test $ac_cv_func_closedir_void = yes; then
40672 cat >>confdefs.h <<\_ACEOF
40673 #define CLOSEDIR_VOID 1
40678 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40679 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40680 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40681 echo $ECHO_N "(cached) $ECHO_C" >&6
40683 if test "$cross_compiling" = yes; then
40684 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40685 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40686 { (exit 1); exit 1; }; }
40688 cat >conftest.$ac_ext <<_ACEOF
40691 cat confdefs.h >>conftest.$ac_ext
40692 cat >>conftest.$ac_ext <<_ACEOF
40693 /* end confdefs.h. */
40694 $ac_includes_default
40698 /* If this system has a BSD-style setpgrp which takes arguments,
40699 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40700 exit successfully. */
40701 return setpgrp (1,1) != -1;
40706 rm -f conftest$ac_exeext
40707 if { (ac_try="$ac_link"
40708 case "(($ac_try" in
40709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40710 *) ac_try_echo=$ac_try;;
40712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40713 (eval "$ac_link") 2>&5
40715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40717 { (case "(($ac_try" in
40718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40719 *) ac_try_echo=$ac_try;;
40721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40722 (eval "$ac_try") 2>&5
40724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40725 (exit $ac_status); }; }; then
40726 ac_cv_func_setpgrp_void=no
40728 echo "$as_me: program exited with status $ac_status" >&5
40729 echo "$as_me: failed program was:" >&5
40730 sed 's/^/| /' conftest.$ac_ext >&5
40732 ( exit $ac_status )
40733 ac_cv_func_setpgrp_void=yes
40735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40740 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40741 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40742 if test $ac_cv_func_setpgrp_void = yes; then
40744 cat >>confdefs.h <<\_ACEOF
40745 #define SETPGRP_VOID 1
40749 # AC_FUNC_FNMATCH dnl use local version
40751 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40752 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40753 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40754 echo $ECHO_N "(cached) $ECHO_C" >&6
40756 ac_check_lib_save_LIBS=$LIBS
40757 LIBS="-lintl $LIBS"
40758 cat >conftest.$ac_ext <<_ACEOF
40761 cat confdefs.h >>conftest.$ac_ext
40762 cat >>conftest.$ac_ext <<_ACEOF
40763 /* end confdefs.h. */
40765 /* Override any GCC internal prototype to avoid an error.
40766 Use char because int might match the return type of a GCC
40767 builtin and then its argument prototype would still apply. */
40780 rm -f conftest.$ac_objext conftest$ac_exeext
40781 if { (ac_try="$ac_link"
40782 case "(($ac_try" in
40783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40784 *) ac_try_echo=$ac_try;;
40786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40787 (eval "$ac_link") 2>conftest.er1
40789 grep -v '^ *+' conftest.er1 >conftest.err
40791 cat conftest.err >&5
40792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40793 (exit $ac_status); } && {
40794 test -z "$ac_c_werror_flag" ||
40795 test ! -s conftest.err
40796 } && test -s conftest$ac_exeext &&
40797 $as_test_x conftest$ac_exeext; then
40798 ac_cv_lib_intl_gettext=yes
40800 echo "$as_me: failed program was:" >&5
40801 sed 's/^/| /' conftest.$ac_ext >&5
40803 ac_cv_lib_intl_gettext=no
40806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40807 conftest$ac_exeext conftest.$ac_ext
40808 LIBS=$ac_check_lib_save_LIBS
40810 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40811 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40812 if test $ac_cv_lib_intl_gettext = yes; then
40813 LIBS="$LIBS -lintl"
40818 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40819 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40820 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40821 echo $ECHO_N "(cached) $ECHO_C" >&6
40823 ac_check_lib_save_LIBS=$LIBS
40825 cat >conftest.$ac_ext <<_ACEOF
40828 cat confdefs.h >>conftest.$ac_ext
40829 cat >>conftest.$ac_ext <<_ACEOF
40830 /* end confdefs.h. */
40832 /* Override any GCC internal prototype to avoid an error.
40833 Use char because int might match the return type of a GCC
40834 builtin and then its argument prototype would still apply. */
40842 return getpwnam ();
40847 rm -f conftest.$ac_objext conftest$ac_exeext
40848 if { (ac_try="$ac_link"
40849 case "(($ac_try" in
40850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40851 *) ac_try_echo=$ac_try;;
40853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40854 (eval "$ac_link") 2>conftest.er1
40856 grep -v '^ *+' conftest.er1 >conftest.err
40858 cat conftest.err >&5
40859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40860 (exit $ac_status); } && {
40861 test -z "$ac_c_werror_flag" ||
40862 test ! -s conftest.err
40863 } && test -s conftest$ac_exeext &&
40864 $as_test_x conftest$ac_exeext; then
40865 ac_cv_lib_sun_getpwnam=yes
40867 echo "$as_me: failed program was:" >&5
40868 sed 's/^/| /' conftest.$ac_ext >&5
40870 ac_cv_lib_sun_getpwnam=no
40873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40874 conftest$ac_exeext conftest.$ac_ext
40875 LIBS=$ac_check_lib_save_LIBS
40877 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40878 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40879 if test $ac_cv_lib_sun_getpwnam = yes; then
40880 cat >>confdefs.h <<_ACEOF
40881 #define HAVE_LIBSUN 1
40890 for ac_header in zlib.h
40892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40897 echo $ECHO_N "(cached) $ECHO_C" >&6
40899 ac_res=`eval echo '${'$as_ac_Header'}'`
40900 { echo "$as_me:$LINENO: result: $ac_res" >&5
40901 echo "${ECHO_T}$ac_res" >&6; }
40903 # Is the header compilable?
40904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40906 cat >conftest.$ac_ext <<_ACEOF
40909 cat confdefs.h >>conftest.$ac_ext
40910 cat >>conftest.$ac_ext <<_ACEOF
40911 /* end confdefs.h. */
40912 $ac_includes_default
40913 #include <$ac_header>
40915 rm -f conftest.$ac_objext
40916 if { (ac_try="$ac_compile"
40917 case "(($ac_try" in
40918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40919 *) ac_try_echo=$ac_try;;
40921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40922 (eval "$ac_compile") 2>conftest.er1
40924 grep -v '^ *+' conftest.er1 >conftest.err
40926 cat conftest.err >&5
40927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40928 (exit $ac_status); } && {
40929 test -z "$ac_c_werror_flag" ||
40930 test ! -s conftest.err
40931 } && test -s conftest.$ac_objext; then
40932 ac_header_compiler=yes
40934 echo "$as_me: failed program was:" >&5
40935 sed 's/^/| /' conftest.$ac_ext >&5
40937 ac_header_compiler=no
40940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40942 echo "${ECHO_T}$ac_header_compiler" >&6; }
40944 # Is the header present?
40945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40947 cat >conftest.$ac_ext <<_ACEOF
40950 cat confdefs.h >>conftest.$ac_ext
40951 cat >>conftest.$ac_ext <<_ACEOF
40952 /* end confdefs.h. */
40953 #include <$ac_header>
40955 if { (ac_try="$ac_cpp conftest.$ac_ext"
40956 case "(($ac_try" in
40957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40958 *) ac_try_echo=$ac_try;;
40960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40963 grep -v '^ *+' conftest.er1 >conftest.err
40965 cat conftest.err >&5
40966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40967 (exit $ac_status); } >/dev/null && {
40968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40969 test ! -s conftest.err
40971 ac_header_preproc=yes
40973 echo "$as_me: failed program was:" >&5
40974 sed 's/^/| /' conftest.$ac_ext >&5
40976 ac_header_preproc=no
40979 rm -f conftest.err conftest.$ac_ext
40980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40981 echo "${ECHO_T}$ac_header_preproc" >&6; }
40983 # So? What about this header?
40984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40990 ac_header_preproc=yes
40993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41011 echo $ECHO_N "(cached) $ECHO_C" >&6
41013 eval "$as_ac_Header=\$ac_header_preproc"
41015 ac_res=`eval echo '${'$as_ac_Header'}'`
41016 { echo "$as_me:$LINENO: result: $ac_res" >&5
41017 echo "${ECHO_T}$ac_res" >&6; }
41020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41021 cat >>confdefs.h <<_ACEOF
41022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41029 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
41030 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
41031 if test "${ac_cv_lib_z_deflate+set}" = set; then
41032 echo $ECHO_N "(cached) $ECHO_C" >&6
41034 ac_check_lib_save_LIBS=$LIBS
41036 cat >conftest.$ac_ext <<_ACEOF
41039 cat confdefs.h >>conftest.$ac_ext
41040 cat >>conftest.$ac_ext <<_ACEOF
41041 /* end confdefs.h. */
41043 /* Override any GCC internal prototype to avoid an error.
41044 Use char because int might match the return type of a GCC
41045 builtin and then its argument prototype would still apply. */
41058 rm -f conftest.$ac_objext conftest$ac_exeext
41059 if { (ac_try="$ac_link"
41060 case "(($ac_try" in
41061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41062 *) ac_try_echo=$ac_try;;
41064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41065 (eval "$ac_link") 2>conftest.er1
41067 grep -v '^ *+' conftest.er1 >conftest.err
41069 cat conftest.err >&5
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); } && {
41072 test -z "$ac_c_werror_flag" ||
41073 test ! -s conftest.err
41074 } && test -s conftest$ac_exeext &&
41075 $as_test_x conftest$ac_exeext; then
41076 ac_cv_lib_z_deflate=yes
41078 echo "$as_me: failed program was:" >&5
41079 sed 's/^/| /' conftest.$ac_ext >&5
41081 ac_cv_lib_z_deflate=no
41084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41085 conftest$ac_exeext conftest.$ac_ext
41086 LIBS=$ac_check_lib_save_LIBS
41088 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
41089 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
41090 if test $ac_cv_lib_z_deflate = yes; then
41095 if test x$FDLIBS = x-lz; then
41096 cat >>confdefs.h <<\_ACEOF
41097 #define HAVE_LIBZ 1
41104 # Check whether --enable-acl was given.
41105 if test "${enable_acl+set}" = set; then
41106 enableval=$enable_acl;
41107 if test x$enableval = xyes; then
41109 elif test x$enableval = xno; then
41118 have_extended_acl=no
41119 if test x$support_acl = xyes -o x$support_acl = xauto; then
41120 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41121 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41122 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41123 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41124 echo $ECHO_N "(cached) $ECHO_C" >&6
41126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41127 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41129 # Is the header compilable?
41130 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
41131 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
41132 cat >conftest.$ac_ext <<_ACEOF
41135 cat confdefs.h >>conftest.$ac_ext
41136 cat >>conftest.$ac_ext <<_ACEOF
41137 /* end confdefs.h. */
41138 $ac_includes_default
41139 #include <sys/acl.h>
41141 rm -f conftest.$ac_objext
41142 if { (ac_try="$ac_compile"
41143 case "(($ac_try" in
41144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41145 *) ac_try_echo=$ac_try;;
41147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41148 (eval "$ac_compile") 2>conftest.er1
41150 grep -v '^ *+' conftest.er1 >conftest.err
41152 cat conftest.err >&5
41153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41154 (exit $ac_status); } && {
41155 test -z "$ac_c_werror_flag" ||
41156 test ! -s conftest.err
41157 } && test -s conftest.$ac_objext; then
41158 ac_header_compiler=yes
41160 echo "$as_me: failed program was:" >&5
41161 sed 's/^/| /' conftest.$ac_ext >&5
41163 ac_header_compiler=no
41166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41168 echo "${ECHO_T}$ac_header_compiler" >&6; }
41170 # Is the header present?
41171 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
41172 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
41173 cat >conftest.$ac_ext <<_ACEOF
41176 cat confdefs.h >>conftest.$ac_ext
41177 cat >>conftest.$ac_ext <<_ACEOF
41178 /* end confdefs.h. */
41179 #include <sys/acl.h>
41181 if { (ac_try="$ac_cpp conftest.$ac_ext"
41182 case "(($ac_try" in
41183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41184 *) ac_try_echo=$ac_try;;
41186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41189 grep -v '^ *+' conftest.er1 >conftest.err
41191 cat conftest.err >&5
41192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41193 (exit $ac_status); } >/dev/null && {
41194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41195 test ! -s conftest.err
41197 ac_header_preproc=yes
41199 echo "$as_me: failed program was:" >&5
41200 sed 's/^/| /' conftest.$ac_ext >&5
41202 ac_header_preproc=no
41205 rm -f conftest.err conftest.$ac_ext
41206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41207 echo "${ECHO_T}$ac_header_preproc" >&6; }
41209 # So? What about this header?
41210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41212 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41213 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41214 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41215 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41216 ac_header_preproc=yes
41219 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41220 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41221 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
41222 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
41223 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41224 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41225 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
41226 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
41227 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41228 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41229 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41230 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41234 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41235 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41236 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41237 echo $ECHO_N "(cached) $ECHO_C" >&6
41239 ac_cv_header_sys_acl_h=$ac_header_preproc
41241 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41242 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41245 if test $ac_cv_header_sys_acl_h = yes; then
41247 cat >>confdefs.h <<\_ACEOF
41248 #define HAVE_SYS_ACL_H 1
41254 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41255 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41256 if test "${ac_cv_func_acl_get_file+set}" = set; then
41257 echo $ECHO_N "(cached) $ECHO_C" >&6
41259 cat >conftest.$ac_ext <<_ACEOF
41262 cat confdefs.h >>conftest.$ac_ext
41263 cat >>conftest.$ac_ext <<_ACEOF
41264 /* end confdefs.h. */
41265 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41267 #define acl_get_file innocuous_acl_get_file
41269 /* System header to define __stub macros and hopefully few prototypes,
41270 which can conflict with char acl_get_file (); below.
41271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41272 <limits.h> exists even on freestanding compilers. */
41275 # include <limits.h>
41277 # include <assert.h>
41280 #undef acl_get_file
41282 /* Override any GCC internal prototype to avoid an error.
41283 Use char because int might match the return type of a GCC
41284 builtin and then its argument prototype would still apply. */
41288 char acl_get_file ();
41289 /* The GNU C library defines this for functions which it implements
41290 to always fail with ENOSYS. Some functions are actually named
41291 something starting with __ and the normal name is an alias. */
41292 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41299 return acl_get_file ();
41304 rm -f conftest.$ac_objext conftest$ac_exeext
41305 if { (ac_try="$ac_link"
41306 case "(($ac_try" in
41307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41308 *) ac_try_echo=$ac_try;;
41310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41311 (eval "$ac_link") 2>conftest.er1
41313 grep -v '^ *+' conftest.er1 >conftest.err
41315 cat conftest.err >&5
41316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41317 (exit $ac_status); } && {
41318 test -z "$ac_c_werror_flag" ||
41319 test ! -s conftest.err
41320 } && test -s conftest$ac_exeext &&
41321 $as_test_x conftest$ac_exeext; then
41322 ac_cv_func_acl_get_file=yes
41324 echo "$as_me: failed program was:" >&5
41325 sed 's/^/| /' conftest.$ac_ext >&5
41327 ac_cv_func_acl_get_file=no
41330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41331 conftest$ac_exeext conftest.$ac_ext
41333 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41334 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41335 if test $ac_cv_func_acl_get_file = yes; then
41341 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41342 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41343 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41344 echo $ECHO_N "(cached) $ECHO_C" >&6
41346 ac_check_lib_save_LIBS=$LIBS
41348 cat >conftest.$ac_ext <<_ACEOF
41351 cat confdefs.h >>conftest.$ac_ext
41352 cat >>conftest.$ac_ext <<_ACEOF
41353 /* end confdefs.h. */
41355 /* Override any GCC internal prototype to avoid an error.
41356 Use char because int might match the return type of a GCC
41357 builtin and then its argument prototype would still apply. */
41361 char acl_get_file ();
41365 return acl_get_file ();
41370 rm -f conftest.$ac_objext conftest$ac_exeext
41371 if { (ac_try="$ac_link"
41372 case "(($ac_try" in
41373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41374 *) ac_try_echo=$ac_try;;
41376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41377 (eval "$ac_link") 2>conftest.er1
41379 grep -v '^ *+' conftest.er1 >conftest.err
41381 cat conftest.err >&5
41382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383 (exit $ac_status); } && {
41384 test -z "$ac_c_werror_flag" ||
41385 test ! -s conftest.err
41386 } && test -s conftest$ac_exeext &&
41387 $as_test_x conftest$ac_exeext; then
41388 ac_cv_lib_acl_acl_get_file=yes
41390 echo "$as_me: failed program was:" >&5
41391 sed 's/^/| /' conftest.$ac_ext >&5
41393 ac_cv_lib_acl_acl_get_file=no
41396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41397 conftest$ac_exeext conftest.$ac_ext
41398 LIBS=$ac_check_lib_save_LIBS
41400 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41401 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41402 if test $ac_cv_lib_acl_acl_get_file = yes; then
41405 FDLIBS="-lacl $FDLIBS"
41409 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41410 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41411 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41412 echo $ECHO_N "(cached) $ECHO_C" >&6
41414 ac_check_lib_save_LIBS=$LIBS
41415 LIBS="-lpacl $LIBS"
41416 cat >conftest.$ac_ext <<_ACEOF
41419 cat confdefs.h >>conftest.$ac_ext
41420 cat >>conftest.$ac_ext <<_ACEOF
41421 /* end confdefs.h. */
41423 /* Override any GCC internal prototype to avoid an error.
41424 Use char because int might match the return type of a GCC
41425 builtin and then its argument prototype would still apply. */
41429 char acl_get_file ();
41433 return acl_get_file ();
41438 rm -f conftest.$ac_objext conftest$ac_exeext
41439 if { (ac_try="$ac_link"
41440 case "(($ac_try" in
41441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41442 *) ac_try_echo=$ac_try;;
41444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41445 (eval "$ac_link") 2>conftest.er1
41447 grep -v '^ *+' conftest.er1 >conftest.err
41449 cat conftest.err >&5
41450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41451 (exit $ac_status); } && {
41452 test -z "$ac_c_werror_flag" ||
41453 test ! -s conftest.err
41454 } && test -s conftest$ac_exeext &&
41455 $as_test_x conftest$ac_exeext; then
41456 ac_cv_lib_pacl_acl_get_file=yes
41458 echo "$as_me: failed program was:" >&5
41459 sed 's/^/| /' conftest.$ac_ext >&5
41461 ac_cv_lib_pacl_acl_get_file=no
41464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41465 conftest$ac_exeext conftest.$ac_ext
41466 LIBS=$ac_check_lib_save_LIBS
41468 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41469 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41470 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41473 FDLIBS="-lpacl $FDLIBS"
41477 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41478 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41479 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41480 echo $ECHO_N "(cached) $ECHO_C" >&6
41482 ac_check_lib_save_LIBS=$LIBS
41484 cat >conftest.$ac_ext <<_ACEOF
41487 cat confdefs.h >>conftest.$ac_ext
41488 cat >>conftest.$ac_ext <<_ACEOF
41489 /* end confdefs.h. */
41491 /* Override any GCC internal prototype to avoid an error.
41492 Use char because int might match the return type of a GCC
41493 builtin and then its argument prototype would still apply. */
41501 return acltotext ();
41506 rm -f conftest.$ac_objext conftest$ac_exeext
41507 if { (ac_try="$ac_link"
41508 case "(($ac_try" in
41509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41510 *) ac_try_echo=$ac_try;;
41512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41513 (eval "$ac_link") 2>conftest.er1
41515 grep -v '^ *+' conftest.er1 >conftest.err
41517 cat conftest.err >&5
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); } && {
41520 test -z "$ac_c_werror_flag" ||
41521 test ! -s conftest.err
41522 } && test -s conftest$ac_exeext &&
41523 $as_test_x conftest$ac_exeext; then
41524 ac_cv_lib_sec_acltotext=yes
41526 echo "$as_me: failed program was:" >&5
41527 sed 's/^/| /' conftest.$ac_ext >&5
41529 ac_cv_lib_sec_acltotext=no
41532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41533 conftest$ac_exeext conftest.$ac_ext
41534 LIBS=$ac_check_lib_save_LIBS
41536 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41537 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41538 if test $ac_cv_lib_sec_acltotext = yes; then
41541 FDLIBS="-lsec $FDLIBS"
41543 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41544 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41545 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41546 echo $ECHO_N "(cached) $ECHO_C" >&6
41548 ac_check_lib_save_LIBS=$LIBS
41550 cat >conftest.$ac_ext <<_ACEOF
41553 cat confdefs.h >>conftest.$ac_ext
41554 cat >>conftest.$ac_ext <<_ACEOF
41555 /* end confdefs.h. */
41557 /* Override any GCC internal prototype to avoid an error.
41558 Use char because int might match the return type of a GCC
41559 builtin and then its argument prototype would still apply. */
41563 char acl_totext ();
41567 return acl_totext ();
41572 rm -f conftest.$ac_objext conftest$ac_exeext
41573 if { (ac_try="$ac_link"
41574 case "(($ac_try" in
41575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41576 *) ac_try_echo=$ac_try;;
41578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41579 (eval "$ac_link") 2>conftest.er1
41581 grep -v '^ *+' conftest.er1 >conftest.err
41583 cat conftest.err >&5
41584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585 (exit $ac_status); } && {
41586 test -z "$ac_c_werror_flag" ||
41587 test ! -s conftest.err
41588 } && test -s conftest$ac_exeext &&
41589 $as_test_x conftest$ac_exeext; then
41590 ac_cv_lib_sec_acl_totext=yes
41592 echo "$as_me: failed program was:" >&5
41593 sed 's/^/| /' conftest.$ac_ext >&5
41595 ac_cv_lib_sec_acl_totext=no
41598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41599 conftest$ac_exeext conftest.$ac_ext
41600 LIBS=$ac_check_lib_save_LIBS
41602 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41603 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41604 if test $ac_cv_lib_sec_acl_totext = yes; then
41606 have_extended_acl=yes
41628 if test x$support_acl = xyes -a $have_acl != yes; then
41629 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41630 please either load the acl libraries or rerun configure without --enable-acl" >&5
41631 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41632 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41633 { (exit 1); exit 1; }; }
41635 if test $have_acl = yes; then
41637 cat >>confdefs.h <<\_ACEOF
41643 if test $have_extended_acl = yes; then
41645 cat >>confdefs.h <<\_ACEOF
41646 #define HAVE_EXTENDED_ACL 1
41654 # Check whether --enable-xattr was given.
41655 if test "${enable_xattr+set}" = set; then
41656 enableval=$enable_xattr;
41657 if test x$enableval = xyes; then
41659 elif test x$enableval = xno; then
41668 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41669 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41670 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41671 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41672 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41673 echo $ECHO_N "(cached) $ECHO_C" >&6
41675 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41676 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41678 # Is the header compilable?
41679 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41680 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41681 cat >conftest.$ac_ext <<_ACEOF
41684 cat confdefs.h >>conftest.$ac_ext
41685 cat >>conftest.$ac_ext <<_ACEOF
41686 /* end confdefs.h. */
41687 $ac_includes_default
41688 #include <sys/extattr.h>
41690 rm -f conftest.$ac_objext
41691 if { (ac_try="$ac_compile"
41692 case "(($ac_try" in
41693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41694 *) ac_try_echo=$ac_try;;
41696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41697 (eval "$ac_compile") 2>conftest.er1
41699 grep -v '^ *+' conftest.er1 >conftest.err
41701 cat conftest.err >&5
41702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41703 (exit $ac_status); } && {
41704 test -z "$ac_c_werror_flag" ||
41705 test ! -s conftest.err
41706 } && test -s conftest.$ac_objext; then
41707 ac_header_compiler=yes
41709 echo "$as_me: failed program was:" >&5
41710 sed 's/^/| /' conftest.$ac_ext >&5
41712 ac_header_compiler=no
41715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41717 echo "${ECHO_T}$ac_header_compiler" >&6; }
41719 # Is the header present?
41720 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41721 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41722 cat >conftest.$ac_ext <<_ACEOF
41725 cat confdefs.h >>conftest.$ac_ext
41726 cat >>conftest.$ac_ext <<_ACEOF
41727 /* end confdefs.h. */
41728 #include <sys/extattr.h>
41730 if { (ac_try="$ac_cpp conftest.$ac_ext"
41731 case "(($ac_try" in
41732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41733 *) ac_try_echo=$ac_try;;
41735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41738 grep -v '^ *+' conftest.er1 >conftest.err
41740 cat conftest.err >&5
41741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742 (exit $ac_status); } >/dev/null && {
41743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41744 test ! -s conftest.err
41746 ac_header_preproc=yes
41748 echo "$as_me: failed program was:" >&5
41749 sed 's/^/| /' conftest.$ac_ext >&5
41751 ac_header_preproc=no
41754 rm -f conftest.err conftest.$ac_ext
41755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41756 echo "${ECHO_T}$ac_header_preproc" >&6; }
41758 # So? What about this header?
41759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41761 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41762 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41763 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41764 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41765 ac_header_preproc=yes
41768 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41769 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41770 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41771 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41772 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41773 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41774 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41775 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41776 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41777 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41778 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41779 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41783 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41784 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41785 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41786 echo $ECHO_N "(cached) $ECHO_C" >&6
41788 ac_cv_header_sys_extattr_h=$ac_header_preproc
41790 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41791 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41794 if test $ac_cv_header_sys_extattr_h = yes; then
41796 cat >>confdefs.h <<\_ACEOF
41797 #define HAVE_SYS_EXTATTR_H 1
41803 if test "${ac_cv_header_libutil_h+set}" = set; then
41804 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41805 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41806 if test "${ac_cv_header_libutil_h+set}" = set; then
41807 echo $ECHO_N "(cached) $ECHO_C" >&6
41809 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41810 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41812 # Is the header compilable?
41813 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41814 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41815 cat >conftest.$ac_ext <<_ACEOF
41818 cat confdefs.h >>conftest.$ac_ext
41819 cat >>conftest.$ac_ext <<_ACEOF
41820 /* end confdefs.h. */
41821 $ac_includes_default
41822 #include <libutil.h>
41824 rm -f conftest.$ac_objext
41825 if { (ac_try="$ac_compile"
41826 case "(($ac_try" in
41827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41828 *) ac_try_echo=$ac_try;;
41830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41831 (eval "$ac_compile") 2>conftest.er1
41833 grep -v '^ *+' conftest.er1 >conftest.err
41835 cat conftest.err >&5
41836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41837 (exit $ac_status); } && {
41838 test -z "$ac_c_werror_flag" ||
41839 test ! -s conftest.err
41840 } && test -s conftest.$ac_objext; then
41841 ac_header_compiler=yes
41843 echo "$as_me: failed program was:" >&5
41844 sed 's/^/| /' conftest.$ac_ext >&5
41846 ac_header_compiler=no
41849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41851 echo "${ECHO_T}$ac_header_compiler" >&6; }
41853 # Is the header present?
41854 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41855 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41856 cat >conftest.$ac_ext <<_ACEOF
41859 cat confdefs.h >>conftest.$ac_ext
41860 cat >>conftest.$ac_ext <<_ACEOF
41861 /* end confdefs.h. */
41862 #include <libutil.h>
41864 if { (ac_try="$ac_cpp conftest.$ac_ext"
41865 case "(($ac_try" in
41866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41867 *) ac_try_echo=$ac_try;;
41869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41872 grep -v '^ *+' conftest.er1 >conftest.err
41874 cat conftest.err >&5
41875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41876 (exit $ac_status); } >/dev/null && {
41877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41878 test ! -s conftest.err
41880 ac_header_preproc=yes
41882 echo "$as_me: failed program was:" >&5
41883 sed 's/^/| /' conftest.$ac_ext >&5
41885 ac_header_preproc=no
41888 rm -f conftest.err conftest.$ac_ext
41889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41890 echo "${ECHO_T}$ac_header_preproc" >&6; }
41892 # So? What about this header?
41893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41895 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41896 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41897 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41898 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41899 ac_header_preproc=yes
41902 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41903 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41904 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41905 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41906 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41907 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41908 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41909 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41910 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41911 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41912 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41913 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41917 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41918 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41919 if test "${ac_cv_header_libutil_h+set}" = set; then
41920 echo $ECHO_N "(cached) $ECHO_C" >&6
41922 ac_cv_header_libutil_h=$ac_header_preproc
41924 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41925 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41928 if test $ac_cv_header_libutil_h = yes; then
41930 cat >>confdefs.h <<\_ACEOF
41931 #define HAVE_LIBUTIL_H 1
41940 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41946 echo $ECHO_N "(cached) $ECHO_C" >&6
41948 cat >conftest.$ac_ext <<_ACEOF
41951 cat confdefs.h >>conftest.$ac_ext
41952 cat >>conftest.$ac_ext <<_ACEOF
41953 /* end confdefs.h. */
41954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41956 #define $ac_func innocuous_$ac_func
41958 /* System header to define __stub macros and hopefully few prototypes,
41959 which can conflict with char $ac_func (); below.
41960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41961 <limits.h> exists even on freestanding compilers. */
41964 # include <limits.h>
41966 # include <assert.h>
41971 /* Override any GCC internal prototype to avoid an error.
41972 Use char because int might match the return type of a GCC
41973 builtin and then its argument prototype would still apply. */
41978 /* The GNU C library defines this for functions which it implements
41979 to always fail with ENOSYS. Some functions are actually named
41980 something starting with __ and the normal name is an alias. */
41981 #if defined __stub_$ac_func || defined __stub___$ac_func
41988 return $ac_func ();
41993 rm -f conftest.$ac_objext conftest$ac_exeext
41994 if { (ac_try="$ac_link"
41995 case "(($ac_try" in
41996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41997 *) ac_try_echo=$ac_try;;
41999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42000 (eval "$ac_link") 2>conftest.er1
42002 grep -v '^ *+' conftest.er1 >conftest.err
42004 cat conftest.err >&5
42005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42006 (exit $ac_status); } && {
42007 test -z "$ac_c_werror_flag" ||
42008 test ! -s conftest.err
42009 } && test -s conftest$ac_exeext &&
42010 $as_test_x conftest$ac_exeext; then
42011 eval "$as_ac_var=yes"
42013 echo "$as_me: failed program was:" >&5
42014 sed 's/^/| /' conftest.$ac_ext >&5
42016 eval "$as_ac_var=no"
42019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42020 conftest$ac_exeext conftest.$ac_ext
42022 ac_res=`eval echo '${'$as_ac_var'}'`
42023 { echo "$as_me:$LINENO: result: $ac_res" >&5
42024 echo "${ECHO_T}$ac_res" >&6; }
42025 if test `eval echo '${'$as_ac_var'}'` = yes; then
42026 cat >>confdefs.h <<_ACEOF
42027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42032 cat >>confdefs.h <<\_ACEOF
42033 #define HAVE_EXTATTR_GET_LINK 1
42037 cat >>confdefs.h <<\_ACEOF
42038 #define HAVE_EXTATTR_SET_LINK 1
42042 cat >>confdefs.h <<\_ACEOF
42043 #define HAVE_EXTATTR_LIST_LINK 1
42052 if test $have_xattr = no; then
42056 for ac_func in extattr_get_file extattr_set_file extattr_list_file
42058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42062 echo $ECHO_N "(cached) $ECHO_C" >&6
42064 cat >conftest.$ac_ext <<_ACEOF
42067 cat confdefs.h >>conftest.$ac_ext
42068 cat >>conftest.$ac_ext <<_ACEOF
42069 /* end confdefs.h. */
42070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42072 #define $ac_func innocuous_$ac_func
42074 /* System header to define __stub macros and hopefully few prototypes,
42075 which can conflict with char $ac_func (); below.
42076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42077 <limits.h> exists even on freestanding compilers. */
42080 # include <limits.h>
42082 # include <assert.h>
42087 /* Override any GCC internal prototype to avoid an error.
42088 Use char because int might match the return type of a GCC
42089 builtin and then its argument prototype would still apply. */
42094 /* The GNU C library defines this for functions which it implements
42095 to always fail with ENOSYS. Some functions are actually named
42096 something starting with __ and the normal name is an alias. */
42097 #if defined __stub_$ac_func || defined __stub___$ac_func
42104 return $ac_func ();
42109 rm -f conftest.$ac_objext conftest$ac_exeext
42110 if { (ac_try="$ac_link"
42111 case "(($ac_try" in
42112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42113 *) ac_try_echo=$ac_try;;
42115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42116 (eval "$ac_link") 2>conftest.er1
42118 grep -v '^ *+' conftest.er1 >conftest.err
42120 cat conftest.err >&5
42121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42122 (exit $ac_status); } && {
42123 test -z "$ac_c_werror_flag" ||
42124 test ! -s conftest.err
42125 } && test -s conftest$ac_exeext &&
42126 $as_test_x conftest$ac_exeext; then
42127 eval "$as_ac_var=yes"
42129 echo "$as_me: failed program was:" >&5
42130 sed 's/^/| /' conftest.$ac_ext >&5
42132 eval "$as_ac_var=no"
42135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42136 conftest$ac_exeext conftest.$ac_ext
42138 ac_res=`eval echo '${'$as_ac_var'}'`
42139 { echo "$as_me:$LINENO: result: $ac_res" >&5
42140 echo "${ECHO_T}$ac_res" >&6; }
42141 if test `eval echo '${'$as_ac_var'}'` = yes; then
42142 cat >>confdefs.h <<_ACEOF
42143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42148 cat >>confdefs.h <<\_ACEOF
42149 #define HAVE_EXTATTR_GET_FILE 1
42153 cat >>confdefs.h <<\_ACEOF
42154 #define HAVE_EXTATTR_SET_FILE 1
42158 cat >>confdefs.h <<\_ACEOF
42159 #define HAVE_EXTATTR_LIST_FILE 1
42169 if test $have_xattr = yes; then
42170 have_extattr_string_in_libc=no
42173 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
42175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42179 echo $ECHO_N "(cached) $ECHO_C" >&6
42181 cat >conftest.$ac_ext <<_ACEOF
42184 cat confdefs.h >>conftest.$ac_ext
42185 cat >>conftest.$ac_ext <<_ACEOF
42186 /* end confdefs.h. */
42187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42189 #define $ac_func innocuous_$ac_func
42191 /* System header to define __stub macros and hopefully few prototypes,
42192 which can conflict with char $ac_func (); below.
42193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42194 <limits.h> exists even on freestanding compilers. */
42197 # include <limits.h>
42199 # include <assert.h>
42204 /* Override any GCC internal prototype to avoid an error.
42205 Use char because int might match the return type of a GCC
42206 builtin and then its argument prototype would still apply. */
42211 /* The GNU C library defines this for functions which it implements
42212 to always fail with ENOSYS. Some functions are actually named
42213 something starting with __ and the normal name is an alias. */
42214 #if defined __stub_$ac_func || defined __stub___$ac_func
42221 return $ac_func ();
42226 rm -f conftest.$ac_objext conftest$ac_exeext
42227 if { (ac_try="$ac_link"
42228 case "(($ac_try" in
42229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42230 *) ac_try_echo=$ac_try;;
42232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42233 (eval "$ac_link") 2>conftest.er1
42235 grep -v '^ *+' conftest.er1 >conftest.err
42237 cat conftest.err >&5
42238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42239 (exit $ac_status); } && {
42240 test -z "$ac_c_werror_flag" ||
42241 test ! -s conftest.err
42242 } && test -s conftest$ac_exeext &&
42243 $as_test_x conftest$ac_exeext; then
42244 eval "$as_ac_var=yes"
42246 echo "$as_me: failed program was:" >&5
42247 sed 's/^/| /' conftest.$ac_ext >&5
42249 eval "$as_ac_var=no"
42252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42253 conftest$ac_exeext conftest.$ac_ext
42255 ac_res=`eval echo '${'$as_ac_var'}'`
42256 { echo "$as_me:$LINENO: result: $ac_res" >&5
42257 echo "${ECHO_T}$ac_res" >&6; }
42258 if test `eval echo '${'$as_ac_var'}'` = yes; then
42259 cat >>confdefs.h <<_ACEOF
42260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42263 have_extattr_string_in_libc=yes
42265 cat >>confdefs.h <<\_ACEOF
42266 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42270 cat >>confdefs.h <<\_ACEOF
42271 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42280 if test $have_extattr_string_in_libc = no; then
42281 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42282 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42283 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42284 echo $ECHO_N "(cached) $ECHO_C" >&6
42286 ac_check_lib_save_LIBS=$LIBS
42287 LIBS="-lutil $LIBS"
42288 cat >conftest.$ac_ext <<_ACEOF
42291 cat confdefs.h >>conftest.$ac_ext
42292 cat >>conftest.$ac_ext <<_ACEOF
42293 /* end confdefs.h. */
42295 /* Override any GCC internal prototype to avoid an error.
42296 Use char because int might match the return type of a GCC
42297 builtin and then its argument prototype would still apply. */
42301 char extattr_namespace_to_string extattr_string_to_namespace ();
42305 return extattr_namespace_to_string extattr_string_to_namespace ();
42310 rm -f conftest.$ac_objext conftest$ac_exeext
42311 if { (ac_try="$ac_link"
42312 case "(($ac_try" in
42313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42314 *) ac_try_echo=$ac_try;;
42316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42317 (eval "$ac_link") 2>conftest.er1
42319 grep -v '^ *+' conftest.er1 >conftest.err
42321 cat conftest.err >&5
42322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42323 (exit $ac_status); } && {
42324 test -z "$ac_c_werror_flag" ||
42325 test ! -s conftest.err
42326 } && test -s conftest$ac_exeext &&
42327 $as_test_x conftest$ac_exeext; then
42328 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42330 echo "$as_me: failed program was:" >&5
42331 sed 's/^/| /' conftest.$ac_ext >&5
42333 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42337 conftest$ac_exeext conftest.$ac_ext
42338 LIBS=$ac_check_lib_save_LIBS
42340 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42341 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42342 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42345 cat >>confdefs.h <<\_ACEOF
42346 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42350 cat >>confdefs.h <<\_ACEOF
42351 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42354 FDLIBS="-lutil $FDLIBS"
42362 if test $have_xattr = no; then
42363 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42364 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42365 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42366 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42367 echo $ECHO_N "(cached) $ECHO_C" >&6
42369 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42370 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42372 # Is the header compilable?
42373 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42374 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42375 cat >conftest.$ac_ext <<_ACEOF
42378 cat confdefs.h >>conftest.$ac_ext
42379 cat >>conftest.$ac_ext <<_ACEOF
42380 /* end confdefs.h. */
42381 $ac_includes_default
42382 #include <sys/xattr.h>
42384 rm -f conftest.$ac_objext
42385 if { (ac_try="$ac_compile"
42386 case "(($ac_try" in
42387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42388 *) ac_try_echo=$ac_try;;
42390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42391 (eval "$ac_compile") 2>conftest.er1
42393 grep -v '^ *+' conftest.er1 >conftest.err
42395 cat conftest.err >&5
42396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42397 (exit $ac_status); } && {
42398 test -z "$ac_c_werror_flag" ||
42399 test ! -s conftest.err
42400 } && test -s conftest.$ac_objext; then
42401 ac_header_compiler=yes
42403 echo "$as_me: failed program was:" >&5
42404 sed 's/^/| /' conftest.$ac_ext >&5
42406 ac_header_compiler=no
42409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42411 echo "${ECHO_T}$ac_header_compiler" >&6; }
42413 # Is the header present?
42414 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42415 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42416 cat >conftest.$ac_ext <<_ACEOF
42419 cat confdefs.h >>conftest.$ac_ext
42420 cat >>conftest.$ac_ext <<_ACEOF
42421 /* end confdefs.h. */
42422 #include <sys/xattr.h>
42424 if { (ac_try="$ac_cpp conftest.$ac_ext"
42425 case "(($ac_try" in
42426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42427 *) ac_try_echo=$ac_try;;
42429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42432 grep -v '^ *+' conftest.er1 >conftest.err
42434 cat conftest.err >&5
42435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436 (exit $ac_status); } >/dev/null && {
42437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42438 test ! -s conftest.err
42440 ac_header_preproc=yes
42442 echo "$as_me: failed program was:" >&5
42443 sed 's/^/| /' conftest.$ac_ext >&5
42445 ac_header_preproc=no
42448 rm -f conftest.err conftest.$ac_ext
42449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42450 echo "${ECHO_T}$ac_header_preproc" >&6; }
42452 # So? What about this header?
42453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42455 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42456 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42457 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42458 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42459 ac_header_preproc=yes
42462 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42463 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42464 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42465 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42466 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42467 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42468 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42469 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42470 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42471 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42472 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42473 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42477 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42478 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42479 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42480 echo $ECHO_N "(cached) $ECHO_C" >&6
42482 ac_cv_header_sys_xattr_h=$ac_header_preproc
42484 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42485 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42488 if test $ac_cv_header_sys_xattr_h = yes; then
42490 cat >>confdefs.h <<\_ACEOF
42491 #define HAVE_SYS_XATTR_H 1
42500 for ac_func in llistxattr lgetxattr lsetxattr
42502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42506 echo $ECHO_N "(cached) $ECHO_C" >&6
42508 cat >conftest.$ac_ext <<_ACEOF
42511 cat confdefs.h >>conftest.$ac_ext
42512 cat >>conftest.$ac_ext <<_ACEOF
42513 /* end confdefs.h. */
42514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42516 #define $ac_func innocuous_$ac_func
42518 /* System header to define __stub macros and hopefully few prototypes,
42519 which can conflict with char $ac_func (); below.
42520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42521 <limits.h> exists even on freestanding compilers. */
42524 # include <limits.h>
42526 # include <assert.h>
42531 /* Override any GCC internal prototype to avoid an error.
42532 Use char because int might match the return type of a GCC
42533 builtin and then its argument prototype would still apply. */
42538 /* The GNU C library defines this for functions which it implements
42539 to always fail with ENOSYS. Some functions are actually named
42540 something starting with __ and the normal name is an alias. */
42541 #if defined __stub_$ac_func || defined __stub___$ac_func
42548 return $ac_func ();
42553 rm -f conftest.$ac_objext conftest$ac_exeext
42554 if { (ac_try="$ac_link"
42555 case "(($ac_try" in
42556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42557 *) ac_try_echo=$ac_try;;
42559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42560 (eval "$ac_link") 2>conftest.er1
42562 grep -v '^ *+' conftest.er1 >conftest.err
42564 cat conftest.err >&5
42565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42566 (exit $ac_status); } && {
42567 test -z "$ac_c_werror_flag" ||
42568 test ! -s conftest.err
42569 } && test -s conftest$ac_exeext &&
42570 $as_test_x conftest$ac_exeext; then
42571 eval "$as_ac_var=yes"
42573 echo "$as_me: failed program was:" >&5
42574 sed 's/^/| /' conftest.$ac_ext >&5
42576 eval "$as_ac_var=no"
42579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42580 conftest$ac_exeext conftest.$ac_ext
42582 ac_res=`eval echo '${'$as_ac_var'}'`
42583 { echo "$as_me:$LINENO: result: $ac_res" >&5
42584 echo "${ECHO_T}$ac_res" >&6; }
42585 if test `eval echo '${'$as_ac_var'}'` = yes; then
42586 cat >>confdefs.h <<_ACEOF
42587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42592 cat >>confdefs.h <<\_ACEOF
42593 #define HAVE_LLISTXATTR 1
42597 cat >>confdefs.h <<\_ACEOF
42598 #define HAVE_LGETXATTR 1
42602 cat >>confdefs.h <<\_ACEOF
42603 #define HAVE_LSETXATTR 1
42612 if test $have_xattr = no; then
42616 for ac_func in listxattr getxattr setxattr
42618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42622 echo $ECHO_N "(cached) $ECHO_C" >&6
42624 cat >conftest.$ac_ext <<_ACEOF
42627 cat confdefs.h >>conftest.$ac_ext
42628 cat >>conftest.$ac_ext <<_ACEOF
42629 /* end confdefs.h. */
42630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42632 #define $ac_func innocuous_$ac_func
42634 /* System header to define __stub macros and hopefully few prototypes,
42635 which can conflict with char $ac_func (); below.
42636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42637 <limits.h> exists even on freestanding compilers. */
42640 # include <limits.h>
42642 # include <assert.h>
42647 /* Override any GCC internal prototype to avoid an error.
42648 Use char because int might match the return type of a GCC
42649 builtin and then its argument prototype would still apply. */
42654 /* The GNU C library defines this for functions which it implements
42655 to always fail with ENOSYS. Some functions are actually named
42656 something starting with __ and the normal name is an alias. */
42657 #if defined __stub_$ac_func || defined __stub___$ac_func
42664 return $ac_func ();
42669 rm -f conftest.$ac_objext conftest$ac_exeext
42670 if { (ac_try="$ac_link"
42671 case "(($ac_try" in
42672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42673 *) ac_try_echo=$ac_try;;
42675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42676 (eval "$ac_link") 2>conftest.er1
42678 grep -v '^ *+' conftest.er1 >conftest.err
42680 cat conftest.err >&5
42681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42682 (exit $ac_status); } && {
42683 test -z "$ac_c_werror_flag" ||
42684 test ! -s conftest.err
42685 } && test -s conftest$ac_exeext &&
42686 $as_test_x conftest$ac_exeext; then
42687 eval "$as_ac_var=yes"
42689 echo "$as_me: failed program was:" >&5
42690 sed 's/^/| /' conftest.$ac_ext >&5
42692 eval "$as_ac_var=no"
42695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42696 conftest$ac_exeext conftest.$ac_ext
42698 ac_res=`eval echo '${'$as_ac_var'}'`
42699 { echo "$as_me:$LINENO: result: $ac_res" >&5
42700 echo "${ECHO_T}$ac_res" >&6; }
42701 if test `eval echo '${'$as_ac_var'}'` = yes; then
42702 cat >>confdefs.h <<_ACEOF
42703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42708 cat >>confdefs.h <<\_ACEOF
42709 #define HAVE_LISTXATTR 1
42713 cat >>confdefs.h <<\_ACEOF
42714 #define HAVE_GETXATTR 1
42718 cat >>confdefs.h <<\_ACEOF
42719 #define HAVE_SETXATTR 1
42730 if test $have_xattr = no; then
42731 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42732 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42733 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42734 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42735 echo $ECHO_N "(cached) $ECHO_C" >&6
42737 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42738 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42740 # Is the header compilable?
42741 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42742 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42743 cat >conftest.$ac_ext <<_ACEOF
42746 cat confdefs.h >>conftest.$ac_ext
42747 cat >>conftest.$ac_ext <<_ACEOF
42748 /* end confdefs.h. */
42749 $ac_includes_default
42750 #include <sys/attr.h>
42752 rm -f conftest.$ac_objext
42753 if { (ac_try="$ac_compile"
42754 case "(($ac_try" in
42755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42756 *) ac_try_echo=$ac_try;;
42758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42759 (eval "$ac_compile") 2>conftest.er1
42761 grep -v '^ *+' conftest.er1 >conftest.err
42763 cat conftest.err >&5
42764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42765 (exit $ac_status); } && {
42766 test -z "$ac_c_werror_flag" ||
42767 test ! -s conftest.err
42768 } && test -s conftest.$ac_objext; then
42769 ac_header_compiler=yes
42771 echo "$as_me: failed program was:" >&5
42772 sed 's/^/| /' conftest.$ac_ext >&5
42774 ac_header_compiler=no
42777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42779 echo "${ECHO_T}$ac_header_compiler" >&6; }
42781 # Is the header present?
42782 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42783 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42784 cat >conftest.$ac_ext <<_ACEOF
42787 cat confdefs.h >>conftest.$ac_ext
42788 cat >>conftest.$ac_ext <<_ACEOF
42789 /* end confdefs.h. */
42790 #include <sys/attr.h>
42792 if { (ac_try="$ac_cpp conftest.$ac_ext"
42793 case "(($ac_try" in
42794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42795 *) ac_try_echo=$ac_try;;
42797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42800 grep -v '^ *+' conftest.er1 >conftest.err
42802 cat conftest.err >&5
42803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42804 (exit $ac_status); } >/dev/null && {
42805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42806 test ! -s conftest.err
42808 ac_header_preproc=yes
42810 echo "$as_me: failed program was:" >&5
42811 sed 's/^/| /' conftest.$ac_ext >&5
42813 ac_header_preproc=no
42816 rm -f conftest.err conftest.$ac_ext
42817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42818 echo "${ECHO_T}$ac_header_preproc" >&6; }
42820 # So? What about this header?
42821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42823 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42824 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42825 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42826 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42827 ac_header_preproc=yes
42830 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42831 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42832 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42833 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42834 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42835 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42836 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42837 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42838 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42839 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42840 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42841 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42845 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42846 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42847 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42848 echo $ECHO_N "(cached) $ECHO_C" >&6
42850 ac_cv_header_sys_attr_h=$ac_header_preproc
42852 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42853 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42856 if test $ac_cv_header_sys_attr_h = yes; then
42858 cat >>confdefs.h <<\_ACEOF
42859 #define HAVE_SYS_ATTR_H 1
42865 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42866 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42867 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42868 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42869 echo $ECHO_N "(cached) $ECHO_C" >&6
42871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42872 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42874 # Is the header compilable?
42875 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42876 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42877 cat >conftest.$ac_ext <<_ACEOF
42880 cat confdefs.h >>conftest.$ac_ext
42881 cat >>conftest.$ac_ext <<_ACEOF
42882 /* end confdefs.h. */
42883 $ac_includes_default
42884 #include <sys/nvpair.h>
42886 rm -f conftest.$ac_objext
42887 if { (ac_try="$ac_compile"
42888 case "(($ac_try" in
42889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42890 *) ac_try_echo=$ac_try;;
42892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42893 (eval "$ac_compile") 2>conftest.er1
42895 grep -v '^ *+' conftest.er1 >conftest.err
42897 cat conftest.err >&5
42898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42899 (exit $ac_status); } && {
42900 test -z "$ac_c_werror_flag" ||
42901 test ! -s conftest.err
42902 } && test -s conftest.$ac_objext; then
42903 ac_header_compiler=yes
42905 echo "$as_me: failed program was:" >&5
42906 sed 's/^/| /' conftest.$ac_ext >&5
42908 ac_header_compiler=no
42911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42913 echo "${ECHO_T}$ac_header_compiler" >&6; }
42915 # Is the header present?
42916 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42917 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&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 #include <sys/nvpair.h>
42926 if { (ac_try="$ac_cpp conftest.$ac_ext"
42927 case "(($ac_try" in
42928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42929 *) ac_try_echo=$ac_try;;
42931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42934 grep -v '^ *+' conftest.er1 >conftest.err
42936 cat conftest.err >&5
42937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938 (exit $ac_status); } >/dev/null && {
42939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42940 test ! -s conftest.err
42942 ac_header_preproc=yes
42944 echo "$as_me: failed program was:" >&5
42945 sed 's/^/| /' conftest.$ac_ext >&5
42947 ac_header_preproc=no
42950 rm -f conftest.err conftest.$ac_ext
42951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42952 echo "${ECHO_T}$ac_header_preproc" >&6; }
42954 # So? What about this header?
42955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42957 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42958 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42959 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42960 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42961 ac_header_preproc=yes
42964 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42965 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42966 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42967 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42968 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42969 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42970 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42971 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42972 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42973 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42974 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42975 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42979 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42980 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42981 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42982 echo $ECHO_N "(cached) $ECHO_C" >&6
42984 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42986 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42987 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42990 if test $ac_cv_header_sys_nvpair_h = yes; then
42992 cat >>confdefs.h <<\_ACEOF
42993 #define HAVE_SYS_NVPAIR_H 1
42999 if test "${ac_cv_header_attr_h+set}" = set; then
43000 { echo "$as_me:$LINENO: checking for attr.h" >&5
43001 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43002 if test "${ac_cv_header_attr_h+set}" = set; then
43003 echo $ECHO_N "(cached) $ECHO_C" >&6
43005 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43006 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43008 # Is the header compilable?
43009 { echo "$as_me:$LINENO: checking attr.h usability" >&5
43010 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
43011 cat >conftest.$ac_ext <<_ACEOF
43014 cat confdefs.h >>conftest.$ac_ext
43015 cat >>conftest.$ac_ext <<_ACEOF
43016 /* end confdefs.h. */
43017 $ac_includes_default
43020 rm -f conftest.$ac_objext
43021 if { (ac_try="$ac_compile"
43022 case "(($ac_try" in
43023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43024 *) ac_try_echo=$ac_try;;
43026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43027 (eval "$ac_compile") 2>conftest.er1
43029 grep -v '^ *+' conftest.er1 >conftest.err
43031 cat conftest.err >&5
43032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43033 (exit $ac_status); } && {
43034 test -z "$ac_c_werror_flag" ||
43035 test ! -s conftest.err
43036 } && test -s conftest.$ac_objext; then
43037 ac_header_compiler=yes
43039 echo "$as_me: failed program was:" >&5
43040 sed 's/^/| /' conftest.$ac_ext >&5
43042 ac_header_compiler=no
43045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43047 echo "${ECHO_T}$ac_header_compiler" >&6; }
43049 # Is the header present?
43050 { echo "$as_me:$LINENO: checking attr.h presence" >&5
43051 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
43052 cat >conftest.$ac_ext <<_ACEOF
43055 cat confdefs.h >>conftest.$ac_ext
43056 cat >>conftest.$ac_ext <<_ACEOF
43057 /* end confdefs.h. */
43060 if { (ac_try="$ac_cpp conftest.$ac_ext"
43061 case "(($ac_try" in
43062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43063 *) ac_try_echo=$ac_try;;
43065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43068 grep -v '^ *+' conftest.er1 >conftest.err
43070 cat conftest.err >&5
43071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43072 (exit $ac_status); } >/dev/null && {
43073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43074 test ! -s conftest.err
43076 ac_header_preproc=yes
43078 echo "$as_me: failed program was:" >&5
43079 sed 's/^/| /' conftest.$ac_ext >&5
43081 ac_header_preproc=no
43084 rm -f conftest.err conftest.$ac_ext
43085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43086 echo "${ECHO_T}$ac_header_preproc" >&6; }
43088 # So? What about this header?
43089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43091 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43092 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43093 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
43094 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
43095 ac_header_preproc=yes
43098 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
43099 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
43100 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
43101 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
43102 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
43103 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
43104 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
43105 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
43106 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
43107 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
43108 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
43109 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
43113 { echo "$as_me:$LINENO: checking for attr.h" >&5
43114 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43115 if test "${ac_cv_header_attr_h+set}" = set; then
43116 echo $ECHO_N "(cached) $ECHO_C" >&6
43118 ac_cv_header_attr_h=$ac_header_preproc
43120 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43121 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43124 if test $ac_cv_header_attr_h = yes; then
43126 cat >>confdefs.h <<\_ACEOF
43127 #define HAVE_ATTR_H 1
43139 for ac_func in openat fstatat unlinkat fchownat futimesat
43141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43145 echo $ECHO_N "(cached) $ECHO_C" >&6
43147 cat >conftest.$ac_ext <<_ACEOF
43150 cat confdefs.h >>conftest.$ac_ext
43151 cat >>conftest.$ac_ext <<_ACEOF
43152 /* end confdefs.h. */
43153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43155 #define $ac_func innocuous_$ac_func
43157 /* System header to define __stub macros and hopefully few prototypes,
43158 which can conflict with char $ac_func (); below.
43159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43160 <limits.h> exists even on freestanding compilers. */
43163 # include <limits.h>
43165 # include <assert.h>
43170 /* Override any GCC internal prototype to avoid an error.
43171 Use char because int might match the return type of a GCC
43172 builtin and then its argument prototype would still apply. */
43177 /* The GNU C library defines this for functions which it implements
43178 to always fail with ENOSYS. Some functions are actually named
43179 something starting with __ and the normal name is an alias. */
43180 #if defined __stub_$ac_func || defined __stub___$ac_func
43187 return $ac_func ();
43192 rm -f conftest.$ac_objext conftest$ac_exeext
43193 if { (ac_try="$ac_link"
43194 case "(($ac_try" in
43195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43196 *) ac_try_echo=$ac_try;;
43198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43199 (eval "$ac_link") 2>conftest.er1
43201 grep -v '^ *+' conftest.er1 >conftest.err
43203 cat conftest.err >&5
43204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43205 (exit $ac_status); } && {
43206 test -z "$ac_c_werror_flag" ||
43207 test ! -s conftest.err
43208 } && test -s conftest$ac_exeext &&
43209 $as_test_x conftest$ac_exeext; then
43210 eval "$as_ac_var=yes"
43212 echo "$as_me: failed program was:" >&5
43213 sed 's/^/| /' conftest.$ac_ext >&5
43215 eval "$as_ac_var=no"
43218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43219 conftest$ac_exeext conftest.$ac_ext
43221 ac_res=`eval echo '${'$as_ac_var'}'`
43222 { echo "$as_me:$LINENO: result: $ac_res" >&5
43223 echo "${ECHO_T}$ac_res" >&6; }
43224 if test `eval echo '${'$as_ac_var'}'` = yes; then
43225 cat >>confdefs.h <<_ACEOF
43226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43231 cat >>confdefs.h <<\_ACEOF
43232 #define HAVE_OPENAT 1
43236 cat >>confdefs.h <<\_ACEOF
43237 #define HAVE_FSTATAT 1
43241 cat >>confdefs.h <<\_ACEOF
43242 #define HAVE_UNLINKAT 1
43246 cat >>confdefs.h <<\_ACEOF
43247 #define HAVE_FCHOWNAT 1
43251 cat >>confdefs.h <<\_ACEOF
43252 #define HAVE_FUTIMESAT 1
43261 if test $have_xattr = yes; then
43262 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43263 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43264 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43265 echo $ECHO_N "(cached) $ECHO_C" >&6
43267 ac_check_lib_save_LIBS=$LIBS
43268 LIBS="-lnvpair $LIBS"
43269 cat >conftest.$ac_ext <<_ACEOF
43272 cat confdefs.h >>conftest.$ac_ext
43273 cat >>conftest.$ac_ext <<_ACEOF
43274 /* end confdefs.h. */
43276 /* Override any GCC internal prototype to avoid an error.
43277 Use char because int might match the return type of a GCC
43278 builtin and then its argument prototype would still apply. */
43282 char nvlist_next_nvpair ();
43286 return nvlist_next_nvpair ();
43291 rm -f conftest.$ac_objext conftest$ac_exeext
43292 if { (ac_try="$ac_link"
43293 case "(($ac_try" in
43294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43295 *) ac_try_echo=$ac_try;;
43297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43298 (eval "$ac_link") 2>conftest.er1
43300 grep -v '^ *+' conftest.er1 >conftest.err
43302 cat conftest.err >&5
43303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); } && {
43305 test -z "$ac_c_werror_flag" ||
43306 test ! -s conftest.err
43307 } && test -s conftest$ac_exeext &&
43308 $as_test_x conftest$ac_exeext; then
43309 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43311 echo "$as_me: failed program was:" >&5
43312 sed 's/^/| /' conftest.$ac_ext >&5
43314 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43318 conftest$ac_exeext conftest.$ac_ext
43319 LIBS=$ac_check_lib_save_LIBS
43321 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43322 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43323 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43326 cat >>confdefs.h <<\_ACEOF
43327 #define HAVE_NVLIST_NEXT_NVPAIR 1
43330 FDLIBS="-lnvpair $FDLIBS"
43338 if test x$support_xattr = xyes -a $have_xattr != yes; then
43339 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43340 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43341 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43342 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43343 { (exit 1); exit 1; }; }
43345 if test $have_xattr = yes; then
43347 cat >>confdefs.h <<\_ACEOF
43348 #define HAVE_XATTR 1
43356 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43357 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43358 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43359 echo $ECHO_N "(cached) $ECHO_C" >&6
43361 ac_check_lib_save_LIBS=$LIBS
43362 LIBS="-lpthread $LIBS"
43363 cat >conftest.$ac_ext <<_ACEOF
43366 cat confdefs.h >>conftest.$ac_ext
43367 cat >>conftest.$ac_ext <<_ACEOF
43368 /* end confdefs.h. */
43370 /* Override any GCC internal prototype to avoid an error.
43371 Use char because int might match the return type of a GCC
43372 builtin and then its argument prototype would still apply. */
43376 char pthread_create ();
43380 return pthread_create ();
43385 rm -f conftest.$ac_objext conftest$ac_exeext
43386 if { (ac_try="$ac_link"
43387 case "(($ac_try" in
43388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43389 *) ac_try_echo=$ac_try;;
43391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43392 (eval "$ac_link") 2>conftest.er1
43394 grep -v '^ *+' conftest.er1 >conftest.err
43396 cat conftest.err >&5
43397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43398 (exit $ac_status); } && {
43399 test -z "$ac_c_werror_flag" ||
43400 test ! -s conftest.err
43401 } && test -s conftest$ac_exeext &&
43402 $as_test_x conftest$ac_exeext; then
43403 ac_cv_lib_pthread_pthread_create=yes
43405 echo "$as_me: failed program was:" >&5
43406 sed 's/^/| /' conftest.$ac_ext >&5
43408 ac_cv_lib_pthread_pthread_create=no
43411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43412 conftest$ac_exeext conftest.$ac_ext
43413 LIBS=$ac_check_lib_save_LIBS
43415 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43416 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43417 if test $ac_cv_lib_pthread_pthread_create = yes; then
43418 PTHREAD_LIB="-lpthread"
43421 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43422 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43423 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43424 echo $ECHO_N "(cached) $ECHO_C" >&6
43426 ac_check_lib_save_LIBS=$LIBS
43427 LIBS="-lpthreads $LIBS"
43428 cat >conftest.$ac_ext <<_ACEOF
43431 cat confdefs.h >>conftest.$ac_ext
43432 cat >>conftest.$ac_ext <<_ACEOF
43433 /* end confdefs.h. */
43435 /* Override any GCC internal prototype to avoid an error.
43436 Use char because int might match the return type of a GCC
43437 builtin and then its argument prototype would still apply. */
43441 char pthread_create ();
43445 return pthread_create ();
43450 rm -f conftest.$ac_objext conftest$ac_exeext
43451 if { (ac_try="$ac_link"
43452 case "(($ac_try" in
43453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43454 *) ac_try_echo=$ac_try;;
43456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43457 (eval "$ac_link") 2>conftest.er1
43459 grep -v '^ *+' conftest.er1 >conftest.err
43461 cat conftest.err >&5
43462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43463 (exit $ac_status); } && {
43464 test -z "$ac_c_werror_flag" ||
43465 test ! -s conftest.err
43466 } && test -s conftest$ac_exeext &&
43467 $as_test_x conftest$ac_exeext; then
43468 ac_cv_lib_pthreads_pthread_create=yes
43470 echo "$as_me: failed program was:" >&5
43471 sed 's/^/| /' conftest.$ac_ext >&5
43473 ac_cv_lib_pthreads_pthread_create=no
43476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43477 conftest$ac_exeext conftest.$ac_ext
43478 LIBS=$ac_check_lib_save_LIBS
43480 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43481 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43482 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43483 PTHREAD_LIB="-lpthreads"
43486 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43487 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43488 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43489 echo $ECHO_N "(cached) $ECHO_C" >&6
43491 ac_check_lib_save_LIBS=$LIBS
43493 cat >conftest.$ac_ext <<_ACEOF
43496 cat confdefs.h >>conftest.$ac_ext
43497 cat >>conftest.$ac_ext <<_ACEOF
43498 /* end confdefs.h. */
43500 /* Override any GCC internal prototype to avoid an error.
43501 Use char because int might match the return type of a GCC
43502 builtin and then its argument prototype would still apply. */
43506 char pthread_create ();
43510 return pthread_create ();
43515 rm -f conftest.$ac_objext conftest$ac_exeext
43516 if { (ac_try="$ac_link"
43517 case "(($ac_try" in
43518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43519 *) ac_try_echo=$ac_try;;
43521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43522 (eval "$ac_link") 2>conftest.er1
43524 grep -v '^ *+' conftest.er1 >conftest.err
43526 cat conftest.err >&5
43527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43528 (exit $ac_status); } && {
43529 test -z "$ac_c_werror_flag" ||
43530 test ! -s conftest.err
43531 } && test -s conftest$ac_exeext &&
43532 $as_test_x conftest$ac_exeext; then
43533 ac_cv_lib_c_r_pthread_create=yes
43535 echo "$as_me: failed program was:" >&5
43536 sed 's/^/| /' conftest.$ac_ext >&5
43538 ac_cv_lib_c_r_pthread_create=no
43541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43542 conftest$ac_exeext conftest.$ac_ext
43543 LIBS=$ac_check_lib_save_LIBS
43545 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43546 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43547 if test $ac_cv_lib_c_r_pthread_create = yes; then
43548 PTHREAD_LIB="-lc_r"
43551 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43552 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43553 if test "${ac_cv_func_pthread_create+set}" = set; then
43554 echo $ECHO_N "(cached) $ECHO_C" >&6
43556 cat >conftest.$ac_ext <<_ACEOF
43559 cat confdefs.h >>conftest.$ac_ext
43560 cat >>conftest.$ac_ext <<_ACEOF
43561 /* end confdefs.h. */
43562 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43564 #define pthread_create innocuous_pthread_create
43566 /* System header to define __stub macros and hopefully few prototypes,
43567 which can conflict with char pthread_create (); below.
43568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43569 <limits.h> exists even on freestanding compilers. */
43572 # include <limits.h>
43574 # include <assert.h>
43577 #undef pthread_create
43579 /* Override any GCC internal prototype to avoid an error.
43580 Use char because int might match the return type of a GCC
43581 builtin and then its argument prototype would still apply. */
43585 char pthread_create ();
43586 /* The GNU C library defines this for functions which it implements
43587 to always fail with ENOSYS. Some functions are actually named
43588 something starting with __ and the normal name is an alias. */
43589 #if defined __stub_pthread_create || defined __stub___pthread_create
43596 return pthread_create ();
43601 rm -f conftest.$ac_objext conftest$ac_exeext
43602 if { (ac_try="$ac_link"
43603 case "(($ac_try" in
43604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43605 *) ac_try_echo=$ac_try;;
43607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43608 (eval "$ac_link") 2>conftest.er1
43610 grep -v '^ *+' conftest.er1 >conftest.err
43612 cat conftest.err >&5
43613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614 (exit $ac_status); } && {
43615 test -z "$ac_c_werror_flag" ||
43616 test ! -s conftest.err
43617 } && test -s conftest$ac_exeext &&
43618 $as_test_x conftest$ac_exeext; then
43619 ac_cv_func_pthread_create=yes
43621 echo "$as_me: failed program was:" >&5
43622 sed 's/^/| /' conftest.$ac_ext >&5
43624 ac_cv_func_pthread_create=no
43627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43628 conftest$ac_exeext conftest.$ac_ext
43630 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43631 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43648 for ac_header in sys/prctl.h sys/capability.h
43650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43655 echo $ECHO_N "(cached) $ECHO_C" >&6
43657 ac_res=`eval echo '${'$as_ac_Header'}'`
43658 { echo "$as_me:$LINENO: result: $ac_res" >&5
43659 echo "${ECHO_T}$ac_res" >&6; }
43661 # Is the header compilable?
43662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43664 cat >conftest.$ac_ext <<_ACEOF
43667 cat confdefs.h >>conftest.$ac_ext
43668 cat >>conftest.$ac_ext <<_ACEOF
43669 /* end confdefs.h. */
43670 $ac_includes_default
43671 #include <$ac_header>
43673 rm -f conftest.$ac_objext
43674 if { (ac_try="$ac_compile"
43675 case "(($ac_try" in
43676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43677 *) ac_try_echo=$ac_try;;
43679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43680 (eval "$ac_compile") 2>conftest.er1
43682 grep -v '^ *+' conftest.er1 >conftest.err
43684 cat conftest.err >&5
43685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43686 (exit $ac_status); } && {
43687 test -z "$ac_c_werror_flag" ||
43688 test ! -s conftest.err
43689 } && test -s conftest.$ac_objext; then
43690 ac_header_compiler=yes
43692 echo "$as_me: failed program was:" >&5
43693 sed 's/^/| /' conftest.$ac_ext >&5
43695 ac_header_compiler=no
43698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43700 echo "${ECHO_T}$ac_header_compiler" >&6; }
43702 # Is the header present?
43703 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43705 cat >conftest.$ac_ext <<_ACEOF
43708 cat confdefs.h >>conftest.$ac_ext
43709 cat >>conftest.$ac_ext <<_ACEOF
43710 /* end confdefs.h. */
43711 #include <$ac_header>
43713 if { (ac_try="$ac_cpp conftest.$ac_ext"
43714 case "(($ac_try" in
43715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43716 *) ac_try_echo=$ac_try;;
43718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43721 grep -v '^ *+' conftest.er1 >conftest.err
43723 cat conftest.err >&5
43724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43725 (exit $ac_status); } >/dev/null && {
43726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43727 test ! -s conftest.err
43729 ac_header_preproc=yes
43731 echo "$as_me: failed program was:" >&5
43732 sed 's/^/| /' conftest.$ac_ext >&5
43734 ac_header_preproc=no
43737 rm -f conftest.err conftest.$ac_ext
43738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43739 echo "${ECHO_T}$ac_header_preproc" >&6; }
43741 # So? What about this header?
43742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43748 ac_header_preproc=yes
43751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43769 echo $ECHO_N "(cached) $ECHO_C" >&6
43771 eval "$as_ac_Header=\$ac_header_preproc"
43773 ac_res=`eval echo '${'$as_ac_Header'}'`
43774 { echo "$as_me:$LINENO: result: $ac_res" >&5
43775 echo "${ECHO_T}$ac_res" >&6; }
43778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43779 cat >>confdefs.h <<_ACEOF
43780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43789 for ac_func in prctl setreuid
43791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43795 echo $ECHO_N "(cached) $ECHO_C" >&6
43797 cat >conftest.$ac_ext <<_ACEOF
43800 cat confdefs.h >>conftest.$ac_ext
43801 cat >>conftest.$ac_ext <<_ACEOF
43802 /* end confdefs.h. */
43803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43805 #define $ac_func innocuous_$ac_func
43807 /* System header to define __stub macros and hopefully few prototypes,
43808 which can conflict with char $ac_func (); below.
43809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43810 <limits.h> exists even on freestanding compilers. */
43813 # include <limits.h>
43815 # include <assert.h>
43820 /* Override any GCC internal prototype to avoid an error.
43821 Use char because int might match the return type of a GCC
43822 builtin and then its argument prototype would still apply. */
43827 /* The GNU C library defines this for functions which it implements
43828 to always fail with ENOSYS. Some functions are actually named
43829 something starting with __ and the normal name is an alias. */
43830 #if defined __stub_$ac_func || defined __stub___$ac_func
43837 return $ac_func ();
43842 rm -f conftest.$ac_objext conftest$ac_exeext
43843 if { (ac_try="$ac_link"
43844 case "(($ac_try" in
43845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43846 *) ac_try_echo=$ac_try;;
43848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43849 (eval "$ac_link") 2>conftest.er1
43851 grep -v '^ *+' conftest.er1 >conftest.err
43853 cat conftest.err >&5
43854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43855 (exit $ac_status); } && {
43856 test -z "$ac_c_werror_flag" ||
43857 test ! -s conftest.err
43858 } && test -s conftest$ac_exeext &&
43859 $as_test_x conftest$ac_exeext; then
43860 eval "$as_ac_var=yes"
43862 echo "$as_me: failed program was:" >&5
43863 sed 's/^/| /' conftest.$ac_ext >&5
43865 eval "$as_ac_var=no"
43868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43869 conftest$ac_exeext conftest.$ac_ext
43871 ac_res=`eval echo '${'$as_ac_var'}'`
43872 { echo "$as_me:$LINENO: result: $ac_res" >&5
43873 echo "${ECHO_T}$ac_res" >&6; }
43874 if test `eval echo '${'$as_ac_var'}'` = yes; then
43875 cat >>confdefs.h <<_ACEOF
43876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43882 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43883 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43884 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43885 echo $ECHO_N "(cached) $ECHO_C" >&6
43887 ac_check_lib_save_LIBS=$LIBS
43889 cat >conftest.$ac_ext <<_ACEOF
43892 cat confdefs.h >>conftest.$ac_ext
43893 cat >>conftest.$ac_ext <<_ACEOF
43894 /* end confdefs.h. */
43896 /* Override any GCC internal prototype to avoid an error.
43897 Use char because int might match the return type of a GCC
43898 builtin and then its argument prototype would still apply. */
43902 char cap_set_proc ();
43906 return cap_set_proc ();
43911 rm -f conftest.$ac_objext conftest$ac_exeext
43912 if { (ac_try="$ac_link"
43913 case "(($ac_try" in
43914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43915 *) ac_try_echo=$ac_try;;
43917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43918 (eval "$ac_link") 2>conftest.er1
43920 grep -v '^ *+' conftest.er1 >conftest.err
43922 cat conftest.err >&5
43923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43924 (exit $ac_status); } && {
43925 test -z "$ac_c_werror_flag" ||
43926 test ! -s conftest.err
43927 } && test -s conftest$ac_exeext &&
43928 $as_test_x conftest$ac_exeext; then
43929 ac_cv_lib_cap_cap_set_proc=yes
43931 echo "$as_me: failed program was:" >&5
43932 sed 's/^/| /' conftest.$ac_ext >&5
43934 ac_cv_lib_cap_cap_set_proc=no
43937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43938 conftest$ac_exeext conftest.$ac_ext
43939 LIBS=$ac_check_lib_save_LIBS
43941 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43942 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43943 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43949 if test x$CAP_LIBS = x-lcap; then
43951 cat >>confdefs.h <<\_ACEOF
43952 #define HAVE_LIBCAP 1
43959 cat >>confdefs.h <<\_ACEOF
43964 CFLAGS=${CFLAGS--O}
43966 if test x$have_gcc = xyes ; then
43967 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43968 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43970 LDFLAGS=${LDFLAGS--O}
43971 DB_LIBS="${SQL_LFLAGS}"
43972 CPPFLAGS="$CPPFLAGS"
43999 PFILES="platforms/Makefile"
44004 hostname=`uname -n | cut -d '.' -f 1`
44005 if test x${hostname} = x ; then
44006 hostname="localhost"
44008 ping -c 1 $hostname 2>/dev/null 1>/dev/null
44009 if test ! $? = 0; then
44010 hostname="localhost"
44013 case "$DISTNAME" in
44016 PSCMD="ps -e -o pid,comm"
44017 PFILES="${PFILES} \
44018 platforms/aix/Makefile"
44019 TAPEDRIVE="/dev/rmt0.1"
44023 PTHREAD_LIB="-lpthread -lexc"
44024 if test "${CC}" = "gcc" ; then
44031 TAPEDRIVE="/dev/nrmt0"
44034 DISTVER=`uname -a |awk '{print $3}'`
44035 TAPEDRIVE="/dev/nrmt0"
44036 PTHREAD_LIB="-pthread"
44037 CFLAGS="${CFLAGS} -pthread"
44038 PSCMD="ps -ax -o pid,command"
44041 PFILES="${PFILES} \
44042 platforms/bsdi/Makefile \
44043 platforms/bsdi/bacula-fd \
44044 platforms/bsdi/bacula-sd \
44045 platforms/bsdi/bacula-dir"
44046 largefile_support="yes"
44049 DISTVER=`uname -a |awk '{print $3}'`
44050 TAPEDRIVE="/dev/nrst0"
44052 WCFLAGS="-mwindows"
44053 WLDFLAGS="-mwindows"
44057 TAPEDRIVE="/dev/nst0"
44058 PSCMD="ps -e -o pid,command"
44060 PFILES="${PFILES} \
44061 platforms/darwin/Makefile"
44065 TAPEDRIVE="/dev/nst0"
44066 PSCMD="ps -e -o pid,command"
44068 PFILES="${PFILES} \
44069 platforms/osx/Makefile"
44072 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
44075 DISTVER=`cat /etc/debian_version`
44076 if test -f /etc/lsb-release ; then
44078 if test "x$DISTRIB_ID" != "x" ; then
44079 DISTNAME=$DISTRIB_ID
44081 if test "x$DISTRIB_RELEASE" != "x" ; then
44082 DISTVER=$DISTRIB_RELEASE
44085 if test "$DISTNAME" = "Ubuntu" ; then
44088 TAPEDRIVE="/dev/nst0"
44089 PSCMD="ps -e -o pid,command"
44090 if test "$DISTNAME" = "ubuntu" ; then
44091 PFILES="${PFILES} \
44092 platforms/ubuntu/Makefile \
44093 platforms/ubuntu/bacula-fd \
44094 platforms/ubuntu/bacula-sd \
44095 platforms/ubuntu/bacula-dir"
44097 PFILES="${PFILES} \
44098 platforms/debian/Makefile \
44099 platforms/debian/bacula-fd \
44100 platforms/debian/bacula-sd \
44101 platforms/debian/bacula-dir"
44105 DISTVER=`uname -a |awk '{print $3}'`
44106 VER=`echo $DISTVER | cut -c 1`
44107 if test x$VER = x4 ; then
44108 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
44109 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
44113 TAPEDRIVE="/dev/nrsa0"
44114 PSCMD="ps -ax -o pid,command"
44115 PFILES="${PFILES} \
44116 platforms/freebsd/Makefile \
44117 platforms/freebsd/bacula-fd \
44118 platforms/freebsd/bacula-sd \
44119 platforms/freebsd/bacula-dir"
44120 largefile_support="yes"
44123 PSCMD="UNIX95=1; ps -e -o pid,comm"
44124 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
44126 TAPEDRIVE="/dev/rmt/0hnb"
44127 PTHREAD_LIB="-lpthread"
44128 cat >>confdefs.h <<\_ACEOF
44129 #define _INCLUDE_LONGLONG 1
44135 TAPEDRIVE="/dev/rmt/0cbn"
44136 PSCMD="ps -e -o pid,comm"
44137 PFILES="${PFILES} \
44138 platforms/irix/Makefile \
44139 platforms/irix/bacula-fd \
44140 platforms/irix/bacula-sd \
44141 platforms/irix/bacula-dir"
44144 DISTVER=`uname -a |awk '{print $3}'`
44147 TAPEDRIVE="/dev/nrst0"
44148 PSCMD="ps -ax -o pid,command"
44149 PTHREAD_LIB="-pthread"
44150 CFLAGS="${CFLAGS} -pthread"
44153 DISTVER=`uname -a |awk '{print $3}'`
44156 TAPEDRIVE="/dev/nrst0"
44157 PSCMD="ps -ax -o pid,command"
44158 PTHREAD_LIB="-pthread"
44159 CFLAGS="${CFLAGS} -pthread"
44160 PFILES="${PFILES} \
44161 platforms/openbsd/Makefile \
44162 platforms/openbsd/bacula-fd \
44163 platforms/openbsd/bacula-sd \
44164 platforms/openbsd/bacula-dir"
44167 if test -f /etc/whitebox-release ; then
44168 f=/etc/whitebox-release
44170 f=/etc/redhat-release
44172 if test `cat $f | grep release |\
44173 cut -f 3 -d ' '`x = "Enterprise"x ; then
44174 DISTVER="Enterprise "`cat $f | grep release |\
44177 DISTVER=`cat /etc/redhat-release | grep release |\
44180 TAPEDRIVE="/dev/nst0"
44181 PSCMD="ps -e -o pid,command"
44182 PFILES="${PFILES} \
44183 platforms/redhat/Makefile \
44184 platforms/redhat/bacula-fd \
44185 platforms/redhat/bacula-sd \
44186 platforms/redhat/bacula-dir
44190 DISTVER=`cat /etc/mandrake-release | grep release |\
44192 TAPEDRIVE="/dev/nst0"
44193 PSCMD="ps -e -o pid,command"
44194 PFILES="${PFILES} \
44195 platforms/mandrake/Makefile \
44196 platforms/mandrake/bacula-fd \
44197 platforms/mandrake/bacula-sd \
44198 platforms/mandrake/bacula-dir \
44202 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44203 TAPEDRIVE="/dev/nst0"
44204 PSCMD="ps -e -o pid,command"
44205 PFILES="${PFILES} \
44206 platforms/gentoo/Makefile \
44207 platforms/gentoo/bacula-init \
44208 platforms/gentoo/bacula-fd \
44209 platforms/gentoo/bacula-sd \
44210 platforms/gentoo/bacula-dir"
44213 DISTVER=`cat /etc/slackware-version`
44214 TAPEDRIVE="/dev/nst0"
44215 PSCMD="ps -e -o pid,command"
44216 PFILES="${PFILES} \
44217 platforms/slackware/Makefile \
44218 platforms/slackware/rc.bacula-fd \
44219 platforms/slackware/rc.bacula-sd \
44220 platforms/slackware/rc.bacula-dir\
44221 platforms/slackware/functions.bacula"
44225 TAPEDRIVE="/dev/rmt/0cbn"
44226 PSCMD="ps -e -o pid,comm"
44227 PFILES="${PFILES} \
44228 platforms/solaris/Makefile \
44229 platforms/solaris/bacula-fd \
44230 platforms/solaris/bacula-sd \
44231 platforms/solaris/bacula-dir"
44232 if test x$DISTVER = x5.6 ; then
44233 cat >>confdefs.h <<\_ACEOF
44234 #define HAVE_OLD_SOCKOPT 1
44238 LIBS="$LIBS -lresolv -lrt"
44241 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44243 TAPEDRIVE="/dev/nst0"
44244 PSCMD="ps -e -o pid,command"
44245 PFILES="${PFILES} \
44246 platforms/suse/Makefile \
44247 platforms/suse/bacula-fd \
44248 platforms/suse/bacula-sd \
44249 platforms/suse/bacula-dir \
44250 platforms/suse/bacula"
44255 TAPEDRIVE="/dev/nst0"
44256 PSCMD="ps -e -o pid,command"
44257 PFILES="${PFILES} \
44258 platforms/suse/Makefile \
44259 platforms/suse/bacula-fd \
44260 platforms/suse/bacula-sd \
44261 platforms/suse/bacula-dir"
44265 TAPEDRIVE="/dev/nst0"
44268 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44274 LIBS="$PTHREAD_LIB $LIBS"
44276 cat >>confdefs.h <<_ACEOF
44280 cat >>confdefs.h <<_ACEOF
44291 MCOMMON=./autoconf/Make.common
44294 if test "x${subsysdir}" = "x${sbindir}" ; then
44297 echo "You have set both --sbindir and --with-subsys-dir"
44298 echo " equal to: ${subsysdir} "
44299 echo "This is not permitted. Please reconfigure."
44301 echo "Aborting configuration ..."
44307 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"
44309 ac_config_commands="$ac_config_commands default"
44311 cat >confcache <<\_ACEOF
44312 # This file is a shell script that caches the results of configure
44313 # tests run on this system so they can be shared between configure
44314 # scripts and configure runs, see configure's option --config-cache.
44315 # It is not useful on other systems. If it contains results you don't
44316 # want to keep, you may remove or edit it.
44318 # config.status only pays attention to the cache file if you give it
44319 # the --recheck option to rerun configure.
44321 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44322 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44323 # following values.
44327 # The following way of writing the cache mishandles newlines in values,
44328 # but we know of no workaround that is simple, portable, and efficient.
44329 # So, we kill variables containing newlines.
44330 # Ultrix sh set writes to stderr and can't be redirected directly,
44331 # and sets the high bit in the cache file unless we assign to the vars.
44333 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44334 eval ac_val=\$$ac_var
44338 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44339 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44342 _ | IFS | as_nl) ;; #(
44343 *) $as_unset $ac_var ;;
44349 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44350 *${as_nl}ac_space=\ *)
44351 # `set' does not quote correctly, so add quotes (double-quote
44352 # substitution turns \\\\ into \\, and sed turns \\ into \).
44355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44358 # `set' quotes correctly as required by POSIX, so do not add quotes.
44359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44373 if test -w "$cache_file"; then
44374 test "x$cache_file" != "x/dev/null" &&
44375 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44376 echo "$as_me: updating cache $cache_file" >&6;}
44377 cat confcache >$cache_file
44379 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44380 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44386 # Let make expand exec_prefix.
44387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44389 DEFS=-DHAVE_CONFIG_H
44393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44394 # 1. Remove the extension, and $U if already installed.
44395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44396 ac_i=`echo "$ac_i" | sed "$ac_script"`
44397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44398 # will be set to the directory where LIBOBJS objects are built.
44399 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44400 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44402 LIBOBJS=$ac_libobjs
44404 LTLIBOBJS=$ac_ltlibobjs
44408 : ${CONFIG_STATUS=./config.status}
44409 ac_clean_files_save=$ac_clean_files
44410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44411 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44412 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44413 cat >$CONFIG_STATUS <<_ACEOF
44415 # Generated by $as_me.
44416 # Run this file to recreate the current configuration.
44417 # Compiler output produced by configure, useful for debugging
44418 # configure, is in config.log if it exists.
44421 ac_cs_recheck=false
44423 SHELL=\${CONFIG_SHELL-$SHELL}
44426 cat >>$CONFIG_STATUS <<\_ACEOF
44427 ## --------------------- ##
44428 ## M4sh Initialization. ##
44429 ## --------------------- ##
44431 # Be more Bourne compatible
44432 DUALCASE=1; export DUALCASE # for MKS sh
44433 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44436 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44437 # is contrary to our usage. Disable this feature.
44438 alias -g '${1+"$@"}'='"$@"'
44439 setopt NO_GLOB_SUBST
44441 case `(set -o) 2>/dev/null` in
44442 *posix*) set -o posix ;;
44451 # Avoid depending upon Character Ranges.
44452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44455 as_cr_digits='0123456789'
44456 as_cr_alnum=$as_cr_Letters$as_cr_digits
44458 # The user is always right.
44459 if test "${PATH_SEPARATOR+set}" != set; then
44460 echo "#! /bin/sh" >conf$$.sh
44461 echo "exit 0" >>conf$$.sh
44463 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44471 # Support unset when possible.
44472 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44480 # We need space, tab and new line, in precisely that order. Quoting is
44481 # there to prevent editors from complaining about space-tab.
44482 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44483 # splitting by setting IFS to empty value.)
44488 # Find who we are. Look in the path if we contain no directory separator.
44490 *[\\/]* ) as_myself=$0 ;;
44491 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44492 for as_dir in $PATH
44495 test -z "$as_dir" && as_dir=.
44496 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44502 # We did not find ourselves, most probably we were run as `sh COMMAND'
44503 # in which case we are not to be found in the path.
44504 if test "x$as_myself" = x; then
44507 if test ! -f "$as_myself"; then
44508 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44509 { (exit 1); exit 1; }
44512 # Work around bugs in pre-3.0 UWIN ksh.
44513 for as_var in ENV MAIL MAILPATH
44514 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44522 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44523 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44524 LC_TELEPHONE LC_TIME
44526 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44527 eval $as_var=C; export $as_var
44529 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44533 # Required to use basename.
44534 if expr a : '\(a\)' >/dev/null 2>&1 &&
44535 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44541 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44542 as_basename=basename
44548 # Name of the executable.
44549 as_me=`$as_basename -- "$0" ||
44550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44551 X"$0" : 'X\(//\)$' \| \
44552 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44554 sed '/^.*\/\([^/][^/]*\)\/*$/{
44573 as_lineno_1=$LINENO
44574 as_lineno_2=$LINENO
44575 test "x$as_lineno_1" != "x$as_lineno_2" &&
44576 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44579 # uniformly replaced by the line number. The first 'sed' inserts a
44580 # line-number line after each line using $LINENO; the second 'sed'
44581 # does the real work. The second script uses 'N' to pair each
44582 # line-number line with the line containing $LINENO, and appends
44583 # trailing '-' during substitution so that $LINENO is not a special
44584 # case at line end.
44585 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44586 # scripts with optimization help from Paolo Bonzini. Blame Lee
44587 # E. McMahon (1931-1989) for sed's syntax. :-)
44599 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44602 ' >$as_me.lineno &&
44603 chmod +x "$as_me.lineno" ||
44604 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44605 { (exit 1); exit 1; }; }
44607 # Don't try to exec as it changes $[0], causing all sort of problems
44608 # (the dirname of $[0] is not the place where we might find the
44609 # original and so on. Autoconf is especially sensitive to this).
44610 . "./$as_me.lineno"
44611 # Exit status is that of the last command.
44616 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44622 ECHO_C= ECHO_N= ECHO_T=
44623 case `echo -n x` in
44625 case `echo 'x\c'` in
44626 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44633 if expr a : '\(a\)' >/dev/null 2>&1 &&
44634 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44640 rm -f conf$$ conf$$.exe conf$$.file
44641 if test -d conf$$.dir; then
44642 rm -f conf$$.dir/conf$$.file
44648 if ln -s conf$$.file conf$$ 2>/dev/null; then
44650 # ... but there are two gotchas:
44651 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44652 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44653 # In both cases, we have to default to `cp -p'.
44654 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44656 elif ln conf$$.file conf$$ 2>/dev/null; then
44661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44662 rmdir conf$$.dir 2>/dev/null
44664 if mkdir -p . 2>/dev/null; then
44667 test -d ./-p && rmdir ./-p
44671 if test -x / >/dev/null 2>&1; then
44672 as_test_x='test -x'
44674 if ls -dL / >/dev/null 2>&1; then
44681 if test -d "$1"; then
44687 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44688 ???[sx]*):;;*)false;;esac;fi
44692 as_executable_p=$as_test_x
44694 # Sed expression to map a string onto a valid CPP name.
44695 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44697 # Sed expression to map a string onto a valid variable name.
44698 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44703 # Save the log message, to keep $[0] and so on meaningful, and to
44704 # report actual input values of CONFIG_FILES etc. instead of their
44705 # values after options handling.
44707 This file was extended by $as_me, which was
44708 generated by GNU Autoconf 2.61. Invocation command line was
44710 CONFIG_FILES = $CONFIG_FILES
44711 CONFIG_HEADERS = $CONFIG_HEADERS
44712 CONFIG_LINKS = $CONFIG_LINKS
44713 CONFIG_COMMANDS = $CONFIG_COMMANDS
44716 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44721 cat >>$CONFIG_STATUS <<_ACEOF
44722 # Files that config.status was made for.
44723 config_files="$ac_config_files"
44724 config_headers="$ac_config_headers"
44725 config_commands="$ac_config_commands"
44729 cat >>$CONFIG_STATUS <<\_ACEOF
44731 \`$as_me' instantiates files from templates according to the
44732 current configuration.
44734 Usage: $0 [OPTIONS] [FILE]...
44736 -h, --help print this help, then exit
44737 -V, --version print version number and configuration settings, then exit
44738 -q, --quiet do not print progress messages
44739 -d, --debug don't remove temporary files
44740 --recheck update $as_me by reconfiguring in the same conditions
44741 --file=FILE[:TEMPLATE]
44742 instantiate the configuration file FILE
44743 --header=FILE[:TEMPLATE]
44744 instantiate the configuration header FILE
44746 Configuration files:
44749 Configuration headers:
44752 Configuration commands:
44755 Report bugs to <bug-autoconf@gnu.org>."
44758 cat >>$CONFIG_STATUS <<_ACEOF
44761 configured by $0, generated by GNU Autoconf 2.61,
44762 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44764 Copyright (C) 2006 Free Software Foundation, Inc.
44765 This config.status script is free software; the Free Software Foundation
44766 gives unlimited permission to copy, distribute and modify it."
44773 cat >>$CONFIG_STATUS <<\_ACEOF
44774 # If no file are specified by the user, then we need to provide default
44775 # value. By we need to know if files were specified by the user.
44781 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44782 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44793 # Handling of the options.
44794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44796 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44797 echo "$ac_cs_version"; exit ;;
44798 --debug | --debu | --deb | --de | --d | -d )
44800 --file | --fil | --fi | --f )
44802 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44803 ac_need_defaults=false;;
44804 --header | --heade | --head | --hea )
44806 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44807 ac_need_defaults=false;;
44809 # Conflict between --help and --header
44810 { echo "$as_me: error: ambiguous option: $1
44811 Try \`$0 --help' for more information." >&2
44812 { (exit 1); exit 1; }; };;
44813 --help | --hel | -h )
44814 echo "$ac_cs_usage"; exit ;;
44815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44816 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44819 # This is an error.
44820 -*) { echo "$as_me: error: unrecognized option: $1
44821 Try \`$0 --help' for more information." >&2
44822 { (exit 1); exit 1; }; } ;;
44824 *) ac_config_targets="$ac_config_targets $1"
44825 ac_need_defaults=false ;;
44831 ac_configure_extra_args=
44833 if $ac_cs_silent; then
44835 ac_configure_extra_args="$ac_configure_extra_args --silent"
44839 cat >>$CONFIG_STATUS <<_ACEOF
44840 if \$ac_cs_recheck; then
44841 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44842 CONFIG_SHELL=$SHELL
44843 export CONFIG_SHELL
44844 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44848 cat >>$CONFIG_STATUS <<\_ACEOF
44852 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44853 ## Running $as_me. ##
44859 cat >>$CONFIG_STATUS <<_ACEOF
44865 # The HP-UX ksh and POSIX shell print the target directory to stdout
44866 # if CDPATH is set.
44867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44869 sed_quote_subst='$sed_quote_subst'
44870 double_quote_subst='$double_quote_subst'
44871 delay_variable_subst='$delay_variable_subst'
44872 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44873 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44874 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44875 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44876 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44877 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44878 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44879 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44880 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44881 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44882 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44883 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44884 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44885 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44886 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44887 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44888 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44889 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44890 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44891 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44892 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44893 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44894 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44895 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44896 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44897 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44898 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44899 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44900 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44901 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44902 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44903 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44904 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44905 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44906 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44907 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44908 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44909 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44910 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44911 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44912 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44913 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44914 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44915 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44916 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"`'
44917 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"`'
44918 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44919 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44920 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44921 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44922 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44923 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44924 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44925 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44926 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44927 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44928 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44929 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44930 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44931 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44932 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44933 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44934 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44935 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44936 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44937 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44938 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44939 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44940 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44941 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44942 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44943 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44944 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44945 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44946 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44947 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44948 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44949 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44950 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44951 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44952 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44953 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44954 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44955 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44956 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44957 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44958 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44959 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44960 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44961 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44962 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44963 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44964 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44965 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44966 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44967 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44968 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44969 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44970 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44971 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44972 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44973 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44974 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44975 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44976 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44977 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44978 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44979 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44980 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44981 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44982 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44983 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44984 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44985 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44986 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44987 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44988 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44989 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44990 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44991 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44992 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44993 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44994 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44995 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44996 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44997 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44998 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44999 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45000 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45001 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45002 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45003 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45004 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45005 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45006 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45007 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45008 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45009 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45010 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45011 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45012 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45013 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45014 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45015 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45016 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45017 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45018 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45019 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45020 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45021 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45022 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45023 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45024 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45025 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45026 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45027 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45028 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45029 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45030 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45031 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45032 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45033 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45034 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45035 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45036 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45037 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45038 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45039 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45040 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45041 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45042 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45045 LTCFLAGS='$LTCFLAGS'
45046 compiler='$compiler_DEFAULT'
45048 # Quote evaled strings.
45060 deplibs_check_method \
45069 lt_cv_sys_global_symbol_pipe \
45070 lt_cv_sys_global_symbol_to_cdecl \
45071 lt_cv_sys_global_symbol_to_c_name_address \
45072 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
45075 lt_prog_compiler_no_builtin_flag \
45076 lt_prog_compiler_wl \
45077 lt_prog_compiler_pic \
45078 lt_prog_compiler_static \
45079 lt_cv_prog_compiler_c_o \
45087 export_dynamic_flag_spec \
45088 whole_archive_flag_spec \
45089 compiler_needs_object \
45091 allow_undefined_flag \
45092 no_undefined_flag \
45093 hardcode_libdir_flag_spec \
45094 hardcode_libdir_flag_spec_ld \
45095 hardcode_libdir_separator \
45100 variables_saved_for_relink \
45102 library_names_spec \
45107 compiler_lib_search_dirs \
45112 compiler_lib_search_path \
45115 lt_prog_compiler_no_builtin_flag_CXX \
45116 lt_prog_compiler_wl_CXX \
45117 lt_prog_compiler_pic_CXX \
45118 lt_prog_compiler_static_CXX \
45119 lt_cv_prog_compiler_c_o_CXX \
45120 export_dynamic_flag_spec_CXX \
45121 whole_archive_flag_spec_CXX \
45122 compiler_needs_object_CXX \
45124 allow_undefined_flag_CXX \
45125 no_undefined_flag_CXX \
45126 hardcode_libdir_flag_spec_CXX \
45127 hardcode_libdir_flag_spec_ld_CXX \
45128 hardcode_libdir_separator_CXX \
45129 fix_srcfile_path_CXX \
45130 exclude_expsyms_CXX \
45131 include_expsyms_CXX \
45132 file_list_spec_CXX \
45133 compiler_lib_search_dirs_CXX \
45134 predep_objects_CXX \
45135 postdep_objects_CXX \
45138 compiler_lib_search_path_CXX; do
45139 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45140 *[\\\\\\\`\\"\\\$]*)
45141 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45144 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45149 # Double-quote double-evaled strings.
45150 for var in reload_cmds \
45151 old_postinstall_cmds \
45152 old_postuninstall_cmds \
45154 extract_expsyms_cmds \
45155 old_archive_from_new_cmds \
45156 old_archive_from_expsyms_cmds \
45158 archive_expsym_cmds \
45160 module_expsym_cmds \
45161 export_symbols_cmds \
45164 postuninstall_cmds \
45166 sys_lib_search_path_spec \
45167 sys_lib_dlsearch_path_spec \
45168 old_archive_cmds_CXX \
45169 old_archive_from_new_cmds_CXX \
45170 old_archive_from_expsyms_cmds_CXX \
45172 archive_expsym_cmds_CXX \
45174 module_expsym_cmds_CXX \
45175 export_symbols_cmds_CXX \
45176 prelink_cmds_CXX; do
45177 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45178 *[\\\\\\\`\\"\\\$]*)
45179 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45182 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45187 # Fix-up fallback echo if it was mangled by the above quoting rules.
45189 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
45193 ac_aux_dir='$ac_aux_dir'
45194 xsi_shell='$xsi_shell'
45195 lt_shell_append='$lt_shell_append'
45197 # See if we are running on zsh, and set the options which allow our
45198 # commands through without removal of \ escapes INIT.
45199 if test -n "\${ZSH_VERSION+set}" ; then
45200 setopt NO_GLOB_SUBST
45206 TIMESTAMP='$TIMESTAMP'
45214 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45215 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45217 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45218 # Capture the value of LINGUAS because we need it to compute CATALOGS.
45219 LINGUAS="${LINGUAS-%UNSET%}"
45224 cat >>$CONFIG_STATUS <<\_ACEOF
45226 # Handling of arguments.
45227 for ac_config_target in $ac_config_targets
45229 case $ac_config_target in
45230 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45231 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45232 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45233 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45234 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45235 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45236 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45237 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45238 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45239 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45240 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45241 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45242 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45243 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45244 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45245 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45246 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45247 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45248 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45249 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45250 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45251 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45252 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45253 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45254 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45255 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45256 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45257 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45258 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45259 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45260 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45261 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45262 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45263 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45264 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45265 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45266 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45267 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45268 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45269 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45270 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45271 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45272 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45273 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45274 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45275 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45276 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45277 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45278 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45279 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45280 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45281 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45282 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45283 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45284 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45285 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45286 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45287 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45288 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45289 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45290 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45291 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45292 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45293 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45294 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45295 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45296 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45297 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45298 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45299 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45300 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45301 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45302 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45303 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45304 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45305 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45306 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45307 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45308 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45309 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45310 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45311 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45312 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45313 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45314 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45315 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45316 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45317 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45318 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45319 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45320 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45321 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45322 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45323 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45324 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45325 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45326 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45327 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45328 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45329 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45330 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45331 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45332 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45333 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45334 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45335 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45336 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45337 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45338 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45339 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45340 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45341 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45343 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45344 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45345 { (exit 1); exit 1; }; };;
45350 # If the user did not use the arguments to specify the items to instantiate,
45351 # then the envvar interface is used. Set only those that are not.
45352 # We use the long form for the default assignment because of an extremely
45353 # bizarre bug on SunOS 4.1.3.
45354 if $ac_need_defaults; then
45355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45360 # Have a temporary directory for convenience. Make it in the build tree
45361 # simply because there is no reason against having it here, and in addition,
45362 # creating and moving files from /tmp can sometimes cause problems.
45363 # Hook for its removal unless debugging.
45364 # Note that there is a small window in which the directory will not be cleaned:
45365 # after its creation but before its name has been assigned to `$tmp'.
45369 trap 'exit_status=$?
45370 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45372 trap '{ (exit 1); exit 1; }' 1 2 13 15
45374 # Create a (secure) tmp directory for tmp files.
45377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45378 test -n "$tmp" && test -d "$tmp"
45381 tmp=./conf$$-$RANDOM
45382 (umask 077 && mkdir "$tmp")
45385 echo "$me: cannot create a temporary directory in ." >&2
45386 { (exit 1); exit 1; }
45390 # Set up the sed scripts for CONFIG_FILES section.
45393 # No need to generate the scripts if there are no CONFIG_FILES.
45394 # This happens for instance when ./config.status config.h
45395 if test -n "$CONFIG_FILES"; then
45399 # Create sed commands to just substitute file output variables.
45401 # Remaining file output variables are in a fragment that also has non-file
45407 for ac_last_try in false false false false false :; do
45408 cat >conf$$subs.sed <<_ACEOF
45409 SHELL!$SHELL$ac_delim
45410 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45411 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45412 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45413 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45414 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45415 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45416 exec_prefix!$exec_prefix$ac_delim
45417 prefix!$prefix$ac_delim
45418 program_transform_name!$program_transform_name$ac_delim
45419 bindir!$bindir$ac_delim
45420 sbindir!$sbindir$ac_delim
45421 libexecdir!$libexecdir$ac_delim
45422 datarootdir!$datarootdir$ac_delim
45423 datadir!$datadir$ac_delim
45424 sysconfdir!$sysconfdir$ac_delim
45425 sharedstatedir!$sharedstatedir$ac_delim
45426 localstatedir!$localstatedir$ac_delim
45427 includedir!$includedir$ac_delim
45428 oldincludedir!$oldincludedir$ac_delim
45429 docdir!$docdir$ac_delim
45430 infodir!$infodir$ac_delim
45431 htmldir!$htmldir$ac_delim
45432 dvidir!$dvidir$ac_delim
45433 pdfdir!$pdfdir$ac_delim
45434 psdir!$psdir$ac_delim
45435 libdir!$libdir$ac_delim
45436 localedir!$localedir$ac_delim
45437 mandir!$mandir$ac_delim
45438 DEFS!$DEFS$ac_delim
45439 ECHO_C!$ECHO_C$ac_delim
45440 ECHO_N!$ECHO_N$ac_delim
45441 ECHO_T!$ECHO_T$ac_delim
45442 LIBS!$LIBS$ac_delim
45443 build_alias!$build_alias$ac_delim
45444 host_alias!$host_alias$ac_delim
45445 target_alias!$target_alias$ac_delim
45446 BUILD_DIR!$BUILD_DIR$ac_delim
45447 TOP_DIR!$TOP_DIR$ac_delim
45448 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45449 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45450 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45451 TRUEPRG!$TRUEPRG$ac_delim
45452 FALSEPRG!$FALSEPRG$ac_delim
45453 VERSION!$VERSION$ac_delim
45454 DATE!$DATE$ac_delim
45455 LSMDATE!$LSMDATE$ac_delim
45456 BACULA!$BACULA$ac_delim
45457 post_host!$post_host$ac_delim
45458 LIBBAC_LT_CURRENT!$LIBBAC_LT_CURRENT$ac_delim
45459 LIBBAC_LT_REVISION!$LIBBAC_LT_REVISION$ac_delim
45460 LIBBAC_LT_AGE!$LIBBAC_LT_AGE$ac_delim
45461 LIBBACCFG_LT_CURRENT!$LIBBACCFG_LT_CURRENT$ac_delim
45462 LIBBACCFG_LT_REVISION!$LIBBACCFG_LT_REVISION$ac_delim
45463 LIBBACCFG_LT_AGE!$LIBBACCFG_LT_AGE$ac_delim
45464 LIBBACPY_LT_CURRENT!$LIBBACPY_LT_CURRENT$ac_delim
45465 LIBBACPY_LT_REVISION!$LIBBACPY_LT_REVISION$ac_delim
45466 LIBBACPY_LT_AGE!$LIBBACPY_LT_AGE$ac_delim
45467 LIBBACSQL_LT_CURRENT!$LIBBACSQL_LT_CURRENT$ac_delim
45468 LIBBACSQL_LT_REVISION!$LIBBACSQL_LT_REVISION$ac_delim
45469 LIBBACSQL_LT_AGE!$LIBBACSQL_LT_AGE$ac_delim
45470 LIBBACFIND_LT_CURRENT!$LIBBACFIND_LT_CURRENT$ac_delim
45471 LIBBACFIND_LT_REVISION!$LIBBACFIND_LT_REVISION$ac_delim
45472 LIBBACFIND_LT_AGE!$LIBBACFIND_LT_AGE$ac_delim
45474 CFLAGS!$CFLAGS$ac_delim
45475 LDFLAGS!$LDFLAGS$ac_delim
45476 CPPFLAGS!$CPPFLAGS$ac_delim
45477 ac_ct_CC!$ac_ct_CC$ac_delim
45478 EXEEXT!$EXEEXT$ac_delim
45479 OBJEXT!$OBJEXT$ac_delim
45481 CXXFLAGS!$CXXFLAGS$ac_delim
45482 ac_ct_CXX!$ac_ct_CXX$ac_delim
45484 GREP!$GREP$ac_delim
45485 EGREP!$EGREP$ac_delim
45486 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45487 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45488 INSTALL_DATA!$INSTALL_DATA$ac_delim
45490 REMOVE!$REMOVE$ac_delim
45493 ECHO!$ECHO$ac_delim
45497 OPENSSL!$OPENSSL$ac_delim
45500 MKISOFS!$MKISOFS$ac_delim
45501 PYTHON!$PYTHON$ac_delim
45502 GROWISOFS!$GROWISOFS$ac_delim
45505 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45507 elif $ac_last_try; then
45508 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45509 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45510 { (exit 1); exit 1; }; }
45512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45516 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45517 if test -n "$ac_eof"; then
45518 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45519 ac_eof=`expr $ac_eof + 1`
45522 cat >>$CONFIG_STATUS <<_ACEOF
45523 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45525 /^[ ]*@MCOMMON@[ ]*$/{
45531 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45532 s/^/s,@/; s/!/@,|#_!!_#|/
45535 s/'"$ac_delim"'$/,g/; t
45537 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45538 ' >>$CONFIG_STATUS <conf$$subs.sed
45539 rm -f conf$$subs.sed
45540 cat >>$CONFIG_STATUS <<_ACEOF
45546 for ac_last_try in false false false false false :; do
45547 cat >conf$$subs.sed <<_ACEOF
45548 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45549 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45550 PKGCONFIG!$PKGCONFIG$ac_delim
45551 QMAKE!$QMAKE$ac_delim
45552 GMAKE!$GMAKE$ac_delim
45553 WXCONFIG!$WXCONFIG$ac_delim
45554 WXFLAGS!$WXFLAGS$ac_delim
45555 CDRECORD!$CDRECORD$ac_delim
45556 PIDOF!$PIDOF$ac_delim
45558 ARFLAGS!$ARFLAGS$ac_delim
45559 MAKE_SHELL!$MAKE_SHELL$ac_delim
45560 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45561 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45562 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45563 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45564 LIBTOOL!$LIBTOOL$ac_delim
45565 build!$build$ac_delim
45566 build_cpu!$build_cpu$ac_delim
45567 build_vendor!$build_vendor$ac_delim
45568 build_os!$build_os$ac_delim
45569 host!$host$ac_delim
45570 host_cpu!$host_cpu$ac_delim
45571 host_vendor!$host_vendor$ac_delim
45572 host_os!$host_os$ac_delim
45573 FGREP!$FGREP$ac_delim
45575 DUMPBIN!$DUMPBIN$ac_delim
45576 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45578 LN_S!$LN_S$ac_delim
45579 OBJDUMP!$OBJDUMP$ac_delim
45580 STRIP!$STRIP$ac_delim
45581 RANLIB!$RANLIB$ac_delim
45582 lt_ECHO!$lt_ECHO$ac_delim
45583 DSYMUTIL!$DSYMUTIL$ac_delim
45584 NMEDIT!$NMEDIT$ac_delim
45585 LIPO!$LIPO$ac_delim
45586 OTOOL!$OTOOL$ac_delim
45587 OTOOL64!$OTOOL64$ac_delim
45588 CXXCPP!$CXXCPP$ac_delim
45589 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45590 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45591 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45592 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45593 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45594 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45595 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45596 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45597 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45598 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45599 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45600 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45601 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45602 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45603 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45604 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45605 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45606 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45607 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45608 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45609 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45610 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45611 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45612 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45613 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45614 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45615 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45616 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45617 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45618 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45619 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45620 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45621 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45622 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45623 SET_MAKE!$SET_MAKE$ac_delim
45624 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45625 USE_NLS!$USE_NLS$ac_delim
45626 MSGFMT!$MSGFMT$ac_delim
45627 GMSGFMT!$GMSGFMT$ac_delim
45628 XGETTEXT!$XGETTEXT$ac_delim
45629 MSGMERGE!$MSGMERGE$ac_delim
45630 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45631 LIBICONV!$LIBICONV$ac_delim
45632 LTLIBICONV!$LTLIBICONV$ac_delim
45633 INTLLIBS!$INTLLIBS$ac_delim
45634 LIBINTL!$LIBINTL$ac_delim
45635 LTLIBINTL!$LTLIBINTL$ac_delim
45636 POSUB!$POSUB$ac_delim
45637 GLIBC2!$GLIBC2$ac_delim
45638 ALLOCA!$ALLOCA$ac_delim
45639 GLIBC21!$GLIBC21$ac_delim
45640 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45641 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45642 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45643 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45644 INTLBISON!$INTLBISON$ac_delim
45647 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45649 elif $ac_last_try; then
45650 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45651 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45652 { (exit 1); exit 1; }; }
45654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45658 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45659 if test -n "$ac_eof"; then
45660 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45661 ac_eof=`expr $ac_eof + 1`
45664 cat >>$CONFIG_STATUS <<_ACEOF
45665 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45669 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45670 s/^/s,@/; s/!/@,|#_!!_#|/
45673 s/'"$ac_delim"'$/,g/; t
45675 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45676 ' >>$CONFIG_STATUS <conf$$subs.sed
45677 rm -f conf$$subs.sed
45678 cat >>$CONFIG_STATUS <<_ACEOF
45684 for ac_last_try in false false false false false :; do
45685 cat >conf$$subs.sed <<_ACEOF
45686 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45687 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45688 CATOBJEXT!$CATOBJEXT$ac_delim
45689 DATADIRNAME!$DATADIRNAME$ac_delim
45690 INSTOBJEXT!$INSTOBJEXT$ac_delim
45691 GENCAT!$GENCAT$ac_delim
45692 INTLOBJS!$INTLOBJS$ac_delim
45693 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45694 BAT_DIR!$BAT_DIR$ac_delim
45695 QWT_INC!$QWT_INC$ac_delim
45696 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45697 QWT_LIB!$QWT_LIB$ac_delim
45699 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45700 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45701 WX_DIR!$WX_DIR$ac_delim
45702 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45703 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45704 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45705 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45706 STATIC_FD!$STATIC_FD$ac_delim
45707 STATIC_SD!$STATIC_SD$ac_delim
45708 STATIC_DIR!$STATIC_DIR$ac_delim
45709 STATIC_CONS!$STATIC_CONS$ac_delim
45710 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45711 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45712 ALL_DIRS!$ALL_DIRS$ac_delim
45713 DIRD_DIR!$DIRD_DIR$ac_delim
45714 DIR_TOOLS!$DIR_TOOLS$ac_delim
45715 STORED_DIR!$STORED_DIR$ac_delim
45716 CONS_INC!$CONS_INC$ac_delim
45717 CONS_OBJ!$CONS_OBJ$ac_delim
45718 CONS_SRC!$CONS_SRC$ac_delim
45719 CONS_LIBS!$CONS_LIBS$ac_delim
45720 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45721 READLINE_SRC!$READLINE_SRC$ac_delim
45722 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45723 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45724 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45725 OPENSSL_INC!$OPENSSL_INC$ac_delim
45726 working_dir!$working_dir$ac_delim
45727 archivedir!$archivedir$ac_delim
45728 basename!$basename$ac_delim
45729 hostname!$hostname$ac_delim
45730 scriptdir!$scriptdir$ac_delim
45731 bsrdir!$bsrdir$ac_delim
45732 logdir!$logdir$ac_delim
45733 plugindir!$plugindir$ac_delim
45734 dump_email!$dump_email$ac_delim
45735 job_email!$job_email$ac_delim
45736 smtp_host!$smtp_host$ac_delim
45737 piddir!$piddir$ac_delim
45738 subsysdir!$subsysdir$ac_delim
45739 baseport!$baseport$ac_delim
45740 dir_port!$dir_port$ac_delim
45741 fd_port!$fd_port$ac_delim
45742 sd_port!$sd_port$ac_delim
45743 dir_password!$dir_password$ac_delim
45744 fd_password!$fd_password$ac_delim
45745 sd_password!$sd_password$ac_delim
45746 mon_dir_password!$mon_dir_password$ac_delim
45747 mon_fd_password!$mon_fd_password$ac_delim
45748 mon_sd_password!$mon_sd_password$ac_delim
45749 db_name!$db_name$ac_delim
45750 db_user!$db_user$ac_delim
45751 db_password!$db_password$ac_delim
45752 db_port!$db_port$ac_delim
45753 dir_user!$dir_user$ac_delim
45754 dir_group!$dir_group$ac_delim
45755 sd_user!$sd_user$ac_delim
45756 sd_group!$sd_group$ac_delim
45757 fd_user!$fd_user$ac_delim
45758 fd_group!$fd_group$ac_delim
45759 SBINPERM!$SBINPERM$ac_delim
45760 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45761 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45762 SQL_BINDIR!$SQL_BINDIR$ac_delim
45763 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45764 uncomment_dbi!$uncomment_dbi$ac_delim
45765 DB_PROG!$DB_PROG$ac_delim
45766 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45767 cats!$cats$ac_delim
45768 DB_TYPE!$DB_TYPE$ac_delim
45769 GETCONF!$GETCONF$ac_delim
45770 XMKMF!$XMKMF$ac_delim
45771 X_CFLAGS!$X_CFLAGS$ac_delim
45772 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45773 X_LIBS!$X_LIBS$ac_delim
45774 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45775 LIBOBJS!$LIBOBJS$ac_delim
45776 CAP_LIBS!$CAP_LIBS$ac_delim
45777 FDLIBS!$FDLIBS$ac_delim
45778 DEBUG!$DEBUG$ac_delim
45779 DINCLUDE!$DINCLUDE$ac_delim
45780 DLIB!$DLIB$ac_delim
45781 DB_LIBS!$DB_LIBS$ac_delim
45782 WCFLAGS!$WCFLAGS$ac_delim
45785 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45787 elif $ac_last_try; then
45788 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45789 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45790 { (exit 1); exit 1; }; }
45792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45796 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45797 if test -n "$ac_eof"; then
45798 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45799 ac_eof=`expr $ac_eof + 1`
45802 cat >>$CONFIG_STATUS <<_ACEOF
45803 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45807 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45808 s/^/s,@/; s/!/@,|#_!!_#|/
45811 s/'"$ac_delim"'$/,g/; t
45813 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45814 ' >>$CONFIG_STATUS <conf$$subs.sed
45815 rm -f conf$$subs.sed
45816 cat >>$CONFIG_STATUS <<_ACEOF
45822 for ac_last_try in false false false false false :; do
45823 cat >conf$$subs.sed <<_ACEOF
45824 WLDFLAGS!$WLDFLAGS$ac_delim
45825 WRAPLIBS!$WRAPLIBS$ac_delim
45826 OBJLIST!$OBJLIST$ac_delim
45827 TAPEDRIVE!$TAPEDRIVE$ac_delim
45828 PSCMD!$PSCMD$ac_delim
45829 WIN32!$WIN32$ac_delim
45830 MACOSX!$MACOSX$ac_delim
45831 DISTNAME!$DISTNAME$ac_delim
45832 DISTVER!$DISTVER$ac_delim
45833 LTLIBOBJS!$LTLIBOBJS$ac_delim
45836 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
45838 elif $ac_last_try; then
45839 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45840 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45841 { (exit 1); exit 1; }; }
45843 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45847 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45848 if test -n "$ac_eof"; then
45849 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45850 ac_eof=`expr $ac_eof + 1`
45853 cat >>$CONFIG_STATUS <<_ACEOF
45854 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
45855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45858 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45859 s/^/s,@/; s/!/@,|#_!!_#|/
45862 s/'"$ac_delim"'$/,g/; t
45864 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45865 ' >>$CONFIG_STATUS <conf$$subs.sed
45866 rm -f conf$$subs.sed
45867 cat >>$CONFIG_STATUS <<_ACEOF
45874 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45875 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45876 # trailing colons and then remove the whole line if VPATH becomes empty
45877 # (actually we leave an empty line to preserve line numbers).
45878 if test "x$srcdir" = x.; then
45879 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45880 s/:*\$(srcdir):*/:/
45881 s/:*\${srcdir}:*/:/
45883 s/^\([^=]*=[ ]*\):*/\1/
45889 cat >>$CONFIG_STATUS <<\_ACEOF
45890 fi # test -n "$CONFIG_FILES"
45893 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45896 :[FHLC]) ac_mode=$ac_tag; continue;;
45898 case $ac_mode$ac_tag in
45900 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45901 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45902 { (exit 1); exit 1; }; };;
45903 :[FH]-) ac_tag=-:-;;
45904 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45921 -) ac_f="$tmp/stdin";;
45922 *) # Look for the file first in the build tree, then in the source tree
45923 # (if the path is not absolute). The absolute path cannot be DOS-style,
45924 # because $ac_f cannot contain `:'.
45928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45930 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45931 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45932 { (exit 1); exit 1; }; };;
45934 ac_file_inputs="$ac_file_inputs $ac_f"
45937 # Let's still pretend it is `configure' which instantiates (i.e., don't
45938 # use $as_me), people would be surprised to read:
45939 # /* config.h. Generated by config.status. */
45940 configure_input="Generated from "`IFS=:
45941 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45942 if test x"$ac_file" != x-; then
45943 configure_input="$ac_file. $configure_input"
45944 { echo "$as_me:$LINENO: creating $ac_file" >&5
45945 echo "$as_me: creating $ac_file" >&6;}
45949 *:-:* | *:-) cat >"$tmp/stdin";;
45954 ac_dir=`$as_dirname -- "$ac_file" ||
45955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45956 X"$ac_file" : 'X\(//\)[^/]' \| \
45957 X"$ac_file" : 'X\(//\)$' \| \
45958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45964 /^X\(\/\/\)[^/].*/{
45979 -*) as_dir=./$as_dir;;
45981 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45985 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45986 *) as_qdir=$as_dir;;
45988 as_dirs="'$as_qdir' $as_dirs"
45989 as_dir=`$as_dirname -- "$as_dir" ||
45990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45991 X"$as_dir" : 'X\(//\)[^/]' \| \
45992 X"$as_dir" : 'X\(//\)$' \| \
45993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45999 /^X\(\/\/\)[^/].*/{
46012 test -d "$as_dir" && break
46014 test -z "$as_dirs" || eval "mkdir $as_dirs"
46015 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46016 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46017 { (exit 1); exit 1; }; }; }
46021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46023 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46024 # A ".." for each directory in $ac_dir_suffix.
46025 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
46026 case $ac_top_builddir_sub in
46027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46031 ac_abs_top_builddir=$ac_pwd
46032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46033 # for backward compatibility:
46034 ac_top_builddir=$ac_top_build_prefix
46037 .) # We are building in place.
46039 ac_top_srcdir=$ac_top_builddir_sub
46040 ac_abs_top_srcdir=$ac_pwd ;;
46041 [\\/]* | ?:[\\/]* ) # Absolute name.
46042 ac_srcdir=$srcdir$ac_dir_suffix;
46043 ac_top_srcdir=$srcdir
46044 ac_abs_top_srcdir=$srcdir ;;
46045 *) # Relative name.
46046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46047 ac_top_srcdir=$ac_top_build_prefix$srcdir
46048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46060 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46061 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46065 cat >>$CONFIG_STATUS <<\_ACEOF
46066 # If the template does not know about datarootdir, expand it.
46067 # FIXME: This hack should be removed a few years after 2.60.
46068 ac_datarootdir_hack=; ac_datarootdir_seen=
46070 case `sed -n '/datarootdir/ {
46079 ' $ac_file_inputs` in
46080 *datarootdir*) ac_datarootdir_seen=yes;;
46081 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46082 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46083 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46085 cat >>$CONFIG_STATUS <<_ACEOF
46086 ac_datarootdir_hack='
46087 s&@datadir@&$datadir&g
46088 s&@docdir@&$docdir&g
46089 s&@infodir@&$infodir&g
46090 s&@localedir@&$localedir&g
46091 s&@mandir@&$mandir&g
46092 s&\\\${datarootdir}&$datarootdir&g' ;;
46096 # Neutralize VPATH when `$srcdir' = `.'.
46097 # Shell code in configure.ac might set extrasub.
46098 # FIXME: do we really want to maintain this feature?
46099 cat >>$CONFIG_STATUS <<_ACEOF
46103 cat >>$CONFIG_STATUS <<\_ACEOF
46105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46106 s&@configure_input@&$configure_input&;t t
46107 s&@top_builddir@&$ac_top_builddir_sub&;t t
46108 s&@srcdir@&$ac_srcdir&;t t
46109 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46110 s&@top_srcdir@&$ac_top_srcdir&;t t
46111 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46112 s&@builddir@&$ac_builddir&;t t
46113 s&@abs_builddir@&$ac_abs_builddir&;t t
46114 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46115 s&@INSTALL@&$ac_INSTALL&;t t
46116 $ac_datarootdir_hack
46117 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
46119 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46120 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
46121 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
46122 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46123 which seems to be undefined. Please make sure it is defined." >&5
46124 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46125 which seems to be undefined. Please make sure it is defined." >&2;}
46129 -) cat "$tmp/out"; rm -f "$tmp/out";;
46130 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46139 # Transform confdefs.h into a sed script `conftest.defines', that
46140 # substitutes the proper values into config.h.in to produce config.h.
46141 rm -f conftest.defines conftest.tail
46142 # First, append a space to every undef/define line, to ease matching.
46143 echo 's/$/ /' >conftest.defines
46144 # Then, protect against being on the right side of a sed subst, or in
46145 # an unquoted here document, in config.status. If some macros were
46146 # called several times there might be several #defines for the same
46147 # symbol, which is useless. But do not sort them, since the last
46148 # AC_DEFINE must be honored.
46149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46150 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46151 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46152 # PARAMS is the parameter list in the macro definition--in most cases, it's
46153 # just an empty string.
46154 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
46155 ac_dB='\\)[ (].*,\\1define\\2'
46163 s/^[ ]*#[ ]*define[ ][ ]*//
46168 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46169 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46170 ' >>conftest.defines
46172 # Remove the space that was appended to ease matching.
46173 # Then replace #undef with comments. This is necessary, for
46174 # example, in the case of _POSIX_SOURCE, which is predefined and required
46175 # on some systems where configure will not decide to define it.
46176 # (The regexp can be short, since the line contains either #define or #undef.)
46178 s,^[ #]*u.*,/* & */,' >>conftest.defines
46180 # Break up conftest.defines:
46181 ac_max_sed_lines=50
46183 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46184 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46185 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46187 ac_in='$ac_file_inputs'
46188 ac_out='"$tmp/out1"'
46189 ac_nxt='"$tmp/out2"'
46193 # Write a here document:
46194 cat >>$CONFIG_STATUS <<_ACEOF
46195 # First, check the format of the line:
46196 cat >"\$tmp/defines.sed" <<\\CEOF
46197 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
46198 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
46202 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46204 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46205 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46206 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46207 grep . conftest.tail >/dev/null || break
46208 rm -f conftest.defines
46209 mv conftest.tail conftest.defines
46211 rm -f conftest.defines conftest.tail
46213 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46214 cat >>$CONFIG_STATUS <<\_ACEOF
46215 if test x"$ac_file" != x-; then
46216 echo "/* $configure_input */" >"$tmp/config.h"
46217 cat "$ac_result" >>"$tmp/config.h"
46218 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46219 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46220 echo "$as_me: $ac_file is unchanged" >&6;}
46223 mv "$tmp/config.h" $ac_file
46226 echo "/* $configure_input */"
46232 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46233 echo "$as_me: executing $ac_file commands" >&6;}
46238 case $ac_file$ac_mode in
46241 # See if we are running on zsh, and set the options which allow our
46242 # commands through without removal of \ escapes.
46243 if test -n "${ZSH_VERSION+set}" ; then
46244 setopt NO_GLOB_SUBST
46247 cfgfile="${ofile}T"
46248 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46251 cat <<_LT_EOF >> "$cfgfile"
46254 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46255 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46256 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46257 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46259 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46260 # 2006, 2007, 2008 Free Software Foundation, Inc.
46261 # Written by Gordon Matzigkeit, 1996
46263 # This file is part of GNU Libtool.
46265 # GNU Libtool is free software; you can redistribute it and/or
46266 # modify it under the terms of the GNU General Public License as
46267 # published by the Free Software Foundation; either version 2 of
46268 # the License, or (at your option) any later version.
46270 # As a special exception to the GNU General Public License,
46271 # if you distribute this file as part of a program or library that
46272 # is built using GNU Libtool, you may include this file under the
46273 # same distribution terms that you use for the rest of that program.
46275 # GNU Libtool is distributed in the hope that it will be useful,
46276 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46278 # GNU General Public License for more details.
46280 # You should have received a copy of the GNU General Public License
46281 # along with GNU Libtool; see the file COPYING. If not, a copy
46282 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46283 # obtained by writing to the Free Software Foundation, Inc.,
46284 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46287 # The names of the tagged configurations supported by this script.
46288 available_tags="CXX "
46290 # ### BEGIN LIBTOOL CONFIG
46292 # Which release of libtool.m4 was used?
46293 macro_version=$macro_version
46294 macro_revision=$macro_revision
46296 # Whether or not to build shared libraries.
46297 build_libtool_libs=$enable_shared
46299 # Whether or not to build static libraries.
46300 build_old_libs=$enable_static
46302 # What type of objects to build.
46305 # Whether or not to optimize for fast installation.
46306 fast_install=$enable_fast_install
46309 host_alias=$host_alias
46313 # The build system.
46314 build_alias=$build_alias
46318 # A sed program that does not truncate output.
46321 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46322 Xsed="\$SED -e 1s/^X//"
46324 # A grep program that handles long lines.
46330 # A literal string matcher.
46333 # A BSD- or MS-compatible name lister.
46336 # Whether we need soft or hard links.
46339 # What is the maximum length of a command?
46340 max_cmd_len=$max_cmd_len
46342 # Object file suffix (normally "o").
46345 # Executable file suffix (normally "").
46348 # whether the shell understands "unset".
46351 # turn spaces into newlines.
46354 # turn newlines into spaces.
46357 # How to create reloadable object files.
46358 reload_flag=$lt_reload_flag
46359 reload_cmds=$lt_reload_cmds
46361 # An object symbol dumper.
46362 OBJDUMP=$lt_OBJDUMP
46364 # Method to check whether dependent libraries are shared objects.
46365 deplibs_check_method=$lt_deplibs_check_method
46367 # Command to use when deplibs_check_method == "file_magic".
46368 file_magic_cmd=$lt_file_magic_cmd
46372 AR_FLAGS=$lt_AR_FLAGS
46374 # A symbol stripping program.
46377 # Commands used to install an old-style archive.
46379 old_postinstall_cmds=$lt_old_postinstall_cmds
46380 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46385 # LTCC compiler flags.
46386 LTCFLAGS=$lt_CFLAGS
46388 # Take the output of nm and produce a listing of raw symbols and C names.
46389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46391 # Transform the output of nm in a proper C declaration.
46392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46394 # Transform the output of nm in a C name address pair.
46395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46397 # Transform the output of nm in a C name address pair when lib prefix is needed.
46398 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46400 # The name of the directory that contains temporary libtool files.
46403 # Shell to use when invoking shell scripts.
46406 # An echo program that does not interpret backslashes.
46409 # Used to examine libraries when file_magic_cmd begins with "file".
46410 MAGIC_CMD=$MAGIC_CMD
46412 # Must we lock files when doing compilation?
46413 need_locks=$lt_need_locks
46415 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46416 DSYMUTIL=$lt_DSYMUTIL
46418 # Tool to change global to local symbols on Mac OS X.
46421 # Tool to manipulate fat objects and archives on Mac OS X.
46424 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46427 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46428 OTOOL64=$lt_OTOOL64
46430 # Old archive suffix (normally "a").
46433 # Shared library suffix (normally ".so").
46434 shrext_cmds=$lt_shrext_cmds
46436 # The commands to extract the exported symbol list from a shared archive.
46437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46439 # Variables whose values should be saved in libtool wrapper scripts and
46440 # restored at link time.
46441 variables_saved_for_relink=$lt_variables_saved_for_relink
46443 # Do we need the "lib" prefix for modules?
46444 need_lib_prefix=$need_lib_prefix
46446 # Do we need a version for libraries?
46447 need_version=$need_version
46449 # Library versioning type.
46450 version_type=$version_type
46452 # Shared library runtime path variable.
46453 runpath_var=$runpath_var
46455 # Shared library path variable.
46456 shlibpath_var=$shlibpath_var
46458 # Is shlibpath searched before the hard-coded library search path?
46459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46461 # Format of library name prefix.
46462 libname_spec=$lt_libname_spec
46464 # List of archive names. First name is the real one, the rest are links.
46465 # The last name is the one that the linker finds with -lNAME
46466 library_names_spec=$lt_library_names_spec
46468 # The coded name of the library, if different from the real name.
46469 soname_spec=$lt_soname_spec
46471 # Command to use after installation of a shared archive.
46472 postinstall_cmds=$lt_postinstall_cmds
46474 # Command to use after uninstallation of a shared archive.
46475 postuninstall_cmds=$lt_postuninstall_cmds
46477 # Commands used to finish a libtool library installation in a directory.
46478 finish_cmds=$lt_finish_cmds
46480 # As "finish_cmds", except a single script fragment to be evaled but
46482 finish_eval=$lt_finish_eval
46484 # Whether we should hardcode library paths into libraries.
46485 hardcode_into_libs=$hardcode_into_libs
46487 # Compile-time system search path for libraries.
46488 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46490 # Run-time system search path for libraries.
46491 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46493 # Whether dlopen is supported.
46494 dlopen_support=$enable_dlopen
46496 # Whether dlopen of programs is supported.
46497 dlopen_self=$enable_dlopen_self
46499 # Whether dlopen of statically linked programs is supported.
46500 dlopen_self_static=$enable_dlopen_self_static
46502 # Commands to strip libraries.
46503 old_striplib=$lt_old_striplib
46504 striplib=$lt_striplib
46507 # The linker used to build libraries.
46510 # Commands used to build an old-style archive.
46511 old_archive_cmds=$lt_old_archive_cmds
46513 # A language specific compiler.
46516 # Is the compiler the GNU compiler?
46519 # Compiler flag to turn off builtin functions.
46520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46522 # How to pass a linker flag through the compiler.
46523 wl=$lt_lt_prog_compiler_wl
46525 # Additional compiler flags for building library objects.
46526 pic_flag=$lt_lt_prog_compiler_pic
46528 # Compiler flag to prevent dynamic linking.
46529 link_static_flag=$lt_lt_prog_compiler_static
46531 # Does compiler simultaneously support -c and -o options?
46532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46534 # Whether or not to add -lc for building shared libraries.
46535 build_libtool_need_lc=$archive_cmds_need_lc
46537 # Whether or not to disallow shared libs when runtime libs are static.
46538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46540 # Compiler flag to allow reflexive dlopens.
46541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46543 # Compiler flag to generate shared objects directly from archives.
46544 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46546 # Whether the compiler copes with passing no objects directly.
46547 compiler_needs_object=$lt_compiler_needs_object
46549 # Create an old-style archive from a shared archive.
46550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46552 # Create a temporary old-style archive to link instead of a shared archive.
46553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46555 # Commands used to build a shared archive.
46556 archive_cmds=$lt_archive_cmds
46557 archive_expsym_cmds=$lt_archive_expsym_cmds
46559 # Commands used to build a loadable module if different from building
46560 # a shared archive.
46561 module_cmds=$lt_module_cmds
46562 module_expsym_cmds=$lt_module_expsym_cmds
46564 # Whether we are building with GNU ld or not.
46565 with_gnu_ld=$lt_with_gnu_ld
46567 # Flag that allows shared libraries with undefined symbols to be built.
46568 allow_undefined_flag=$lt_allow_undefined_flag
46570 # Flag that enforces no undefined symbols.
46571 no_undefined_flag=$lt_no_undefined_flag
46573 # Flag to hardcode \$libdir into a binary during linking.
46574 # This must work even if \$libdir does not exist
46575 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46577 # If ld is used when linking, flag to hardcode \$libdir into a binary
46578 # during linking. This must work even if \$libdir does not exist.
46579 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46581 # Whether we need a single "-rpath" flag with a separated argument.
46582 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46584 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46585 # DIR into the resulting binary.
46586 hardcode_direct=$hardcode_direct
46588 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46589 # DIR into the resulting binary and the resulting library dependency is
46590 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46591 # library is relocated.
46592 hardcode_direct_absolute=$hardcode_direct_absolute
46594 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46595 # into the resulting binary.
46596 hardcode_minus_L=$hardcode_minus_L
46598 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46599 # into the resulting binary.
46600 hardcode_shlibpath_var=$hardcode_shlibpath_var
46602 # Set to "yes" if building a shared library automatically hardcodes DIR
46603 # into the library and all subsequent libraries and executables linked
46605 hardcode_automatic=$hardcode_automatic
46607 # Set to yes if linker adds runtime paths of dependent libraries
46608 # to runtime path list.
46609 inherit_rpath=$inherit_rpath
46611 # Whether libtool must link a program against all its dependency libraries.
46612 link_all_deplibs=$link_all_deplibs
46614 # Fix the shell variable \$srcfile for the compiler.
46615 fix_srcfile_path=$lt_fix_srcfile_path
46617 # Set to "yes" if exported symbols are required.
46618 always_export_symbols=$always_export_symbols
46620 # The commands to list exported symbols.
46621 export_symbols_cmds=$lt_export_symbols_cmds
46623 # Symbols that should not be listed in the preloaded symbols.
46624 exclude_expsyms=$lt_exclude_expsyms
46626 # Symbols that must always be exported.
46627 include_expsyms=$lt_include_expsyms
46629 # Commands necessary for linking programs (against libraries) with templates.
46630 prelink_cmds=$lt_prelink_cmds
46632 # Specify filename containing input files.
46633 file_list_spec=$lt_file_list_spec
46635 # How to hardcode a shared library path into an executable.
46636 hardcode_action=$hardcode_action
46638 # The directories searched by this compiler when creating a shared library.
46639 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46641 # Dependencies to place before and after the objects being linked to
46642 # create a shared library.
46643 predep_objects=$lt_predep_objects
46644 postdep_objects=$lt_postdep_objects
46645 predeps=$lt_predeps
46646 postdeps=$lt_postdeps
46648 # The library search path used internally by the compiler when linking
46649 # a shared library.
46650 compiler_lib_search_path=$lt_compiler_lib_search_path
46652 # ### END LIBTOOL CONFIG
46658 cat <<\_LT_EOF >> "$cfgfile"
46659 # AIX sometimes has problems with the GCC collect2 program. For some
46660 # reason, if we set the COLLECT_NAMES environment variable, the problems
46661 # vanish in a puff of smoke.
46662 if test "X${COLLECT_NAMES+set}" != Xset; then
46664 export COLLECT_NAMES
46671 ltmain="$ac_aux_dir/ltmain.sh"
46674 # We use sed instead of cat because bash on DJGPP gets confused if
46675 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46676 # text mode, it properly converts lines to CR/LF. This bash problem
46677 # is reportedly fixed, but why not run on old versions too?
46678 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46679 || (rm -f "$cfgfile"; exit 1)
46683 cat << \_LT_EOF >> "$cfgfile"
46685 # func_dirname file append nondir_replacement
46686 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46687 # otherwise set result to NONDIR_REPLACEMENT.
46691 */*) func_dirname_result="${1%/*}${2}" ;;
46692 * ) func_dirname_result="${3}" ;;
46696 # func_basename file
46699 func_basename_result="${1##*/}"
46702 # func_dirname_and_basename file append nondir_replacement
46703 # perform func_basename and func_dirname in a single function
46705 # dirname: Compute the dirname of FILE. If nonempty,
46706 # add APPEND to the result, otherwise set result
46707 # to NONDIR_REPLACEMENT.
46708 # value returned in "$func_dirname_result"
46709 # basename: Compute filename of FILE.
46710 # value retuned in "$func_basename_result"
46711 # Implementation must be kept synchronized with func_dirname
46712 # and func_basename. For efficiency, we do not delegate to
46713 # those functions but instead duplicate the functionality here.
46714 func_dirname_and_basename ()
46717 */*) func_dirname_result="${1%/*}${2}" ;;
46718 * ) func_dirname_result="${3}" ;;
46720 func_basename_result="${1##*/}"
46723 # func_stripname prefix suffix name
46724 # strip PREFIX and SUFFIX off of NAME.
46725 # PREFIX and SUFFIX must not contain globbing or regex special
46726 # characters, hashes, percent signs, but SUFFIX may contain a leading
46727 # dot (in which case that matches only a dot).
46730 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46731 # positional parameters, so assign one to ordinary parameter first.
46732 func_stripname_result=${3}
46733 func_stripname_result=${func_stripname_result#"${1}"}
46734 func_stripname_result=${func_stripname_result%"${2}"}
46740 func_opt_split_opt=${1%%=*}
46741 func_opt_split_arg=${1#*=}
46748 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46749 *) func_lo2o_result=${1} ;;
46753 # func_xform libobj-or-source
46756 func_xform_result=${1%.*}.lo
46759 # func_arith arithmetic-term...
46762 func_arith_result=$(( $* ))
46766 # STRING may not start with a hyphen.
46769 func_len_result=${#1}
46774 *) # Bourne compatible functions.
46775 cat << \_LT_EOF >> "$cfgfile"
46777 # func_dirname file append nondir_replacement
46778 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46779 # otherwise set result to NONDIR_REPLACEMENT.
46782 # Extract subdirectory from the argument.
46783 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46784 if test "X$func_dirname_result" = "X${1}"; then
46785 func_dirname_result="${3}"
46787 func_dirname_result="$func_dirname_result${2}"
46791 # func_basename file
46794 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46798 # func_stripname prefix suffix name
46799 # strip PREFIX and SUFFIX off of NAME.
46800 # PREFIX and SUFFIX must not contain globbing or regex special
46801 # characters, hashes, percent signs, but SUFFIX may contain a leading
46802 # dot (in which case that matches only a dot).
46803 # func_strip_suffix prefix name
46807 .*) func_stripname_result=`$ECHO "X${3}" \
46808 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46809 *) func_stripname_result=`$ECHO "X${3}" \
46810 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46815 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46816 my_sed_long_arg='1s/^-[^=]*=//'
46821 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46822 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46828 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46831 # func_xform libobj-or-source
46834 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46837 # func_arith arithmetic-term...
46840 func_arith_result=`expr "$@"`
46844 # STRING may not start with a hyphen.
46847 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46853 case $lt_shell_append in
46855 cat << \_LT_EOF >> "$cfgfile"
46857 # func_append var value
46858 # Append VALUE to the end of shell variable VAR.
46866 cat << \_LT_EOF >> "$cfgfile"
46868 # func_append var value
46869 # Append VALUE to the end of shell variable VAR.
46880 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46881 || (rm -f "$cfgfile"; exit 1)
46883 mv -f "$cfgfile" "$ofile" ||
46884 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46888 cat <<_LT_EOF >> "$ofile"
46890 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46892 # The linker used to build libraries.
46895 # Commands used to build an old-style archive.
46896 old_archive_cmds=$lt_old_archive_cmds_CXX
46898 # A language specific compiler.
46899 CC=$lt_compiler_CXX
46901 # Is the compiler the GNU compiler?
46904 # Compiler flag to turn off builtin functions.
46905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46907 # How to pass a linker flag through the compiler.
46908 wl=$lt_lt_prog_compiler_wl_CXX
46910 # Additional compiler flags for building library objects.
46911 pic_flag=$lt_lt_prog_compiler_pic_CXX
46913 # Compiler flag to prevent dynamic linking.
46914 link_static_flag=$lt_lt_prog_compiler_static_CXX
46916 # Does compiler simultaneously support -c and -o options?
46917 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46919 # Whether or not to add -lc for building shared libraries.
46920 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46922 # Whether or not to disallow shared libs when runtime libs are static.
46923 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46925 # Compiler flag to allow reflexive dlopens.
46926 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46928 # Compiler flag to generate shared objects directly from archives.
46929 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46931 # Whether the compiler copes with passing no objects directly.
46932 compiler_needs_object=$lt_compiler_needs_object_CXX
46934 # Create an old-style archive from a shared archive.
46935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46937 # Create a temporary old-style archive to link instead of a shared archive.
46938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46940 # Commands used to build a shared archive.
46941 archive_cmds=$lt_archive_cmds_CXX
46942 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46944 # Commands used to build a loadable module if different from building
46945 # a shared archive.
46946 module_cmds=$lt_module_cmds_CXX
46947 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46949 # Whether we are building with GNU ld or not.
46950 with_gnu_ld=$lt_with_gnu_ld_CXX
46952 # Flag that allows shared libraries with undefined symbols to be built.
46953 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46955 # Flag that enforces no undefined symbols.
46956 no_undefined_flag=$lt_no_undefined_flag_CXX
46958 # Flag to hardcode \$libdir into a binary during linking.
46959 # This must work even if \$libdir does not exist
46960 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46962 # If ld is used when linking, flag to hardcode \$libdir into a binary
46963 # during linking. This must work even if \$libdir does not exist.
46964 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46966 # Whether we need a single "-rpath" flag with a separated argument.
46967 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46969 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46970 # DIR into the resulting binary.
46971 hardcode_direct=$hardcode_direct_CXX
46973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46974 # DIR into the resulting binary and the resulting library dependency is
46975 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46976 # library is relocated.
46977 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46979 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46980 # into the resulting binary.
46981 hardcode_minus_L=$hardcode_minus_L_CXX
46983 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46984 # into the resulting binary.
46985 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46987 # Set to "yes" if building a shared library automatically hardcodes DIR
46988 # into the library and all subsequent libraries and executables linked
46990 hardcode_automatic=$hardcode_automatic_CXX
46992 # Set to yes if linker adds runtime paths of dependent libraries
46993 # to runtime path list.
46994 inherit_rpath=$inherit_rpath_CXX
46996 # Whether libtool must link a program against all its dependency libraries.
46997 link_all_deplibs=$link_all_deplibs_CXX
46999 # Fix the shell variable \$srcfile for the compiler.
47000 fix_srcfile_path=$lt_fix_srcfile_path_CXX
47002 # Set to "yes" if exported symbols are required.
47003 always_export_symbols=$always_export_symbols_CXX
47005 # The commands to list exported symbols.
47006 export_symbols_cmds=$lt_export_symbols_cmds_CXX
47008 # Symbols that should not be listed in the preloaded symbols.
47009 exclude_expsyms=$lt_exclude_expsyms_CXX
47011 # Symbols that must always be exported.
47012 include_expsyms=$lt_include_expsyms_CXX
47014 # Commands necessary for linking programs (against libraries) with templates.
47015 prelink_cmds=$lt_prelink_cmds_CXX
47017 # Specify filename containing input files.
47018 file_list_spec=$lt_file_list_spec_CXX
47020 # How to hardcode a shared library path into an executable.
47021 hardcode_action=$hardcode_action_CXX
47023 # The directories searched by this compiler when creating a shared library.
47024 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
47026 # Dependencies to place before and after the objects being linked to
47027 # create a shared library.
47028 predep_objects=$lt_predep_objects_CXX
47029 postdep_objects=$lt_postdep_objects_CXX
47030 predeps=$lt_predeps_CXX
47031 postdeps=$lt_postdeps_CXX
47033 # The library search path used internally by the compiler when linking
47034 # a shared library.
47035 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
47037 # ### END LIBTOOL TAG CONFIG: CXX
47042 for ac_file in $CONFIG_FILES; do
47043 # Support "outfile[:infile[:infile...]]"
47045 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
47047 # PO directories have a Makefile.in generated from Makefile.in.in.
47048 case "$ac_file" in */Makefile.in)
47049 # Adjust a relative srcdir.
47050 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
47051 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47052 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
47053 # In autoconf-2.13 it is called $ac_given_srcdir.
47054 # In autoconf-2.50 it is called $srcdir.
47055 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
47056 case "$ac_given_srcdir" in
47057 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
47058 /*) top_srcdir="$ac_given_srcdir" ;;
47059 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
47061 # Treat a directory as a PO directory if and only if it has a
47062 # POTFILES.in file. This allows packages to have multiple PO
47063 # directories under different names or in different locations.
47064 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47065 rm -f "$ac_dir/POTFILES"
47066 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47067 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47068 POMAKEFILEDEPS="POTFILES.in"
47069 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
47070 # on $ac_dir but don't depend on user-specified configuration
47072 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47073 # The LINGUAS file contains the set of available languages.
47074 if test -n "$OBSOLETE_ALL_LINGUAS"; then
47075 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47077 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47078 # Hide the ALL_LINGUAS assigment from automake.
47079 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47080 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47082 # The set of available languages was given in configure.in.
47083 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47086 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
47087 # Compute UPDATEPOFILES
47088 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
47089 # Compute DUMMYPOFILES
47090 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
47092 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
47093 case "$ac_given_srcdir" in
47095 *) srcdirpre='$(srcdir)/' ;;
47101 for lang in $ALL_LINGUAS; do
47102 POFILES="$POFILES $srcdirpre$lang.po"
47103 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47104 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47105 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47107 # CATALOGS depends on both $ac_dir and the user's LINGUAS
47108 # environment variable.
47110 if test -n "$ALL_LINGUAS"; then
47111 for presentlang in $ALL_LINGUAS; do
47113 if test "%UNSET%" != "$LINGUAS"; then
47114 desiredlanguages="$LINGUAS"
47116 desiredlanguages="$ALL_LINGUAS"
47118 for desiredlang in $desiredlanguages; do
47119 # Use the presentlang catalog if desiredlang is
47120 # a. equal to presentlang, or
47121 # b. a variant of presentlang (because in this case,
47122 # presentlang can be used as a fallback for messages
47123 # which are not translated in the desiredlang catalog).
47124 case "$desiredlang" in
47125 "$presentlang"*) useit=yes;;
47128 if test $useit = yes; then
47129 INST_LINGUAS="$INST_LINGUAS $presentlang"
47134 if test -n "$INST_LINGUAS"; then
47135 for lang in $INST_LINGUAS; do
47136 CATALOGS="$CATALOGS $lang.gmo"
47139 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47140 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"
47141 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47142 if test -f "$f"; then
47144 *.orig | *.bak | *~) ;;
47145 *) cat "$f" >> "$ac_dir/Makefile" ;;
47160 { (exit 0); exit 0; }
47162 chmod +x $CONFIG_STATUS
47163 ac_clean_files=$ac_clean_files_save
47166 # configure is writing to config.log, and then calls config.status.
47167 # config.status does its own redirection, appending to config.log.
47168 # Unfortunately, on DOS this fails, as config.log is still kept open
47169 # by configure, so config.status won't be able to write to it; its
47170 # output is simply discarded. So we exec the FD to /dev/null,
47171 # effectively closing config.log, so it can be properly (re)opened and
47172 # appended to by config.status. When coming back to configure, we
47173 # need to make the FD available again.
47174 if test "$no_create" != yes; then
47176 ac_config_status_args=
47177 test "$silent" = yes &&
47178 ac_config_status_args="$ac_config_status_args --quiet"
47180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47183 # would make configure fail if this is the last instruction.
47184 $ac_cs_success || { (exit 1); exit 1; }
47188 if test "${support_bat}" = "yes" ; then
47189 if test "x$QMAKE" = "xnone"; then
47190 { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
47191 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
47192 { (exit 1); exit 1; }; }
47197 echo "Creating bat Makefile"
47202 ${MAKE:-make} clean
47206 if test X"$GCC" = "Xyes" ; then
47207 echo "Doing make of dependencies"
47208 ${MAKE:-make} depend
47212 chmod 755 install_conf_file build-depkgs-qt-console
47216 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47217 chmod 755 dvd-handler dvd-simulator
47218 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47222 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
47223 chmod 755 $c/update_postgresql_tables_10_to_11
47227 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
47228 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
47230 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
47231 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
47233 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
47234 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
47236 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
47237 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
47239 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
47240 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
47242 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
47243 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
47246 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
47247 chmod 755 $c/sqlite
47250 chmod 755 src/win32/build-depkgs-mingw32
47252 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47253 largefile_support="yes"
47256 if test X"$GCC" = "Xyes" ; then
47257 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47258 if test "x${CCVERSION}" = "x" ; then
47259 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47261 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47262 if test x"${CXXVERSION}" = x ; then
47263 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47267 # clean up any old junk
47271 ${MAKE:-make} clean
47273 if test "x${db_type}" = "xInternal" ; then
47276 echo "You have not specified either --enable-client-only or one of the"
47277 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47278 echo " This is not permitted. Please reconfigure."
47280 echo "Aborting the configuration ..."
47287 Configuration on `date`:
47289 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47290 Bacula version: ${BACULA} ${VERSION} (${DATE})
47291 Source code location: ${srcdir}
47292 Install binaries: ${sbindir}
47293 Install libraries: ${libdir}
47294 Install config files: ${sysconfdir}
47295 Scripts directory: ${scriptdir}
47296 Archive directory: ${archivedir}
47297 Working directory: ${working_dir}
47298 PID directory: ${piddir}
47299 Subsys directory: ${subsysdir}
47300 Man directory: ${mandir}
47301 Data directory: ${datarootdir}
47302 Plugin directory: ${plugindir}
47303 C Compiler: ${CC} ${CCVERSION}
47304 C++ Compiler: ${CXX} ${CXXVERSION}
47305 Compiler flags: ${WCFLAGS} ${CFLAGS}
47306 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47308 Statically Linked Tools: ${support_static_tools}
47309 Statically Linked FD: ${support_static_fd}
47310 Statically Linked SD: ${support_static_sd}
47311 Statically Linked DIR: ${support_static_dir}
47312 Statically Linked CONS: ${support_static_cons}
47313 Database type: ${db_type}
47314 Database port: ${db_port}
47315 Database lib: ${DB_LIBS}
47316 Database name: ${db_name}
47317 Database user: ${db_user}
47319 Job Output Email: ${job_email}
47320 Traceback Email: ${dump_email}
47321 SMTP Host Address: ${smtp_host}
47323 Director Port: ${dir_port}
47324 File daemon Port: ${fd_port}
47325 Storage daemon Port: ${sd_port}
47327 Director User: ${dir_user}
47328 Director Group: ${dir_group}
47329 Storage Daemon User: ${sd_user}
47330 Storage DaemonGroup: ${sd_group}
47331 File Daemon User: ${fd_user}
47332 File Daemon Group: ${fd_group}
47334 SQL binaries Directory ${SQL_BINDIR}
47336 Large file support: $largefile_support
47337 Bacula conio support: ${got_conio} ${CONS_LIBS}
47338 readline support: ${got_readline} ${PRTREADLINE_SRC}
47339 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47340 TLS support: ${support_tls}
47341 Encryption support: ${support_crypto}
47342 ZLIB support: ${have_zlib}
47343 enable-smartalloc: ${support_smartalloc}
47344 enable-lockmgr: ${support_lockmgr}
47345 bat support: ${support_bat}
47346 enable-gnome: ${support_gnome} ${gnome_version}
47347 enable-bwx-console: ${support_wx_console} ${wx_version}
47348 enable-tray-monitor: ${support_tray_monitor}
47349 client-only: ${build_client_only}
47350 build-dird: ${build_dird}
47351 build-stored: ${build_stored}
47352 Plugin support: ${have_plugins}
47353 ACL support: ${have_acl}
47354 XATTR support: ${have_xattr}
47355 Python support: ${support_python} ${PYTHON_LIBS}
47356 Batch insert enabled: ${support_batch_insert}
47360 # create a small shell script useful for support with
47361 # configure options and config.out info
47362 cat > scripts/bacula_config << EOF
47365 $ $0 $ac_configure_args
47367 cat config.out >> scripts/bacula_config
47368 echo __EOC__ >> scripts/bacula_config
47369 chmod 755 scripts/bacula_config
47373 # Display a warning message if postgresql client lib is <= 8.1
47374 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47375 -a x$support_batch_insert = xyes
47377 echo "WARNING: Your PostgreSQL client library is too old to detect "
47378 echo " if it was compiled with --enable-thread-safety, consider to"
47379 echo " upgrade it in order to avoid problems with Batch insert mode"