2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
894 INCLUDE_INSTALL_TARGET
895 INCLUDE_UNINSTALL_TARGET
907 HAVE_FREEBSD_OS_FALSE
911 HAVE_OPENBSD_OS_FALSE
942 BUILD_INCLUDED_LIBINTL
949 INTL_LIBTOOL_SUFFIX_PREFIX
958 TRAY_MONITOR_CPPFLAGS
1049 ac_subst_files='MCOMMON'
1050 ac_precious_vars='build_alias
1068 # Initialize some variables set by options.
1070 ac_init_version=false
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1080 program_transform_name=s,x,x,
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE}'
1105 infodir='${datarootdir}/info'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1118 # If the previous option needs an argument, assign it.
1119 if test -n "$ac_prev"; then
1120 eval $ac_prev=\$ac_option
1126 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1130 # Accept the important Cygnus configure options, so we can diagnose typos.
1132 case $ac_dashdash$ac_option in
1136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1139 bindir=$ac_optarg ;;
1141 -build | --build | --buil | --bui | --bu)
1142 ac_prev=build_alias ;;
1143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1144 build_alias=$ac_optarg ;;
1146 -cache-file | --cache-file | --cache-fil | --cache-fi \
1147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1148 ac_prev=cache_file ;;
1149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1151 cache_file=$ac_optarg ;;
1153 --config-cache | -C)
1154 cache_file=config.cache ;;
1156 -datadir | --datadir | --datadi | --datad)
1158 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1159 datadir=$ac_optarg ;;
1161 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1162 | --dataroo | --dataro | --datar)
1163 ac_prev=datarootdir ;;
1164 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1165 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1166 datarootdir=$ac_optarg ;;
1168 -disable-* | --disable-*)
1169 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1173 { (exit 1); exit 1; }; }
1174 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1175 eval enable_$ac_feature=no ;;
1177 -docdir | --docdir | --docdi | --doc | --do)
1179 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180 docdir=$ac_optarg ;;
1182 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1184 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185 dvidir=$ac_optarg ;;
1187 -enable-* | --enable-*)
1188 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1194 eval enable_$ac_feature=\$ac_optarg ;;
1196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198 | --exec | --exe | --ex)
1199 ac_prev=exec_prefix ;;
1200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202 | --exec=* | --exe=* | --ex=*)
1203 exec_prefix=$ac_optarg ;;
1205 -gas | --gas | --ga | --g)
1206 # Obsolete; use --with-gas.
1209 -help | --help | --hel | --he | -h)
1210 ac_init_help=long ;;
1211 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212 ac_init_help=recursive ;;
1213 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214 ac_init_help=short ;;
1216 -host | --host | --hos | --ho)
1217 ac_prev=host_alias ;;
1218 -host=* | --host=* | --hos=* | --ho=*)
1219 host_alias=$ac_optarg ;;
1221 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1223 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1225 htmldir=$ac_optarg ;;
1227 -includedir | --includedir | --includedi | --included | --include \
1228 | --includ | --inclu | --incl | --inc)
1229 ac_prev=includedir ;;
1230 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231 | --includ=* | --inclu=* | --incl=* | --inc=*)
1232 includedir=$ac_optarg ;;
1234 -infodir | --infodir | --infodi | --infod | --info | --inf)
1236 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237 infodir=$ac_optarg ;;
1239 -libdir | --libdir | --libdi | --libd)
1241 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242 libdir=$ac_optarg ;;
1244 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245 | --libexe | --libex | --libe)
1246 ac_prev=libexecdir ;;
1247 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248 | --libexe=* | --libex=* | --libe=*)
1249 libexecdir=$ac_optarg ;;
1251 -localedir | --localedir | --localedi | --localed | --locale)
1252 ac_prev=localedir ;;
1253 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254 localedir=$ac_optarg ;;
1256 -localstatedir | --localstatedir | --localstatedi | --localstated \
1257 | --localstate | --localstat | --localsta | --localst | --locals)
1258 ac_prev=localstatedir ;;
1259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261 localstatedir=$ac_optarg ;;
1263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266 mandir=$ac_optarg ;;
1268 -nfp | --nfp | --nf)
1269 # Obsolete; use --without-fp.
1272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273 | --no-cr | --no-c | -n)
1276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282 | --oldin | --oldi | --old | --ol | --o)
1283 ac_prev=oldincludedir ;;
1284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287 oldincludedir=$ac_optarg ;;
1289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292 prefix=$ac_optarg ;;
1294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295 | --program-pre | --program-pr | --program-p)
1296 ac_prev=program_prefix ;;
1297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299 program_prefix=$ac_optarg ;;
1301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302 | --program-suf | --program-su | --program-s)
1303 ac_prev=program_suffix ;;
1304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306 program_suffix=$ac_optarg ;;
1308 -program-transform-name | --program-transform-name \
1309 | --program-transform-nam | --program-transform-na \
1310 | --program-transform-n | --program-transform- \
1311 | --program-transform | --program-transfor \
1312 | --program-transfo | --program-transf \
1313 | --program-trans | --program-tran \
1314 | --progr-tra | --program-tr | --program-t)
1315 ac_prev=program_transform_name ;;
1316 -program-transform-name=* | --program-transform-name=* \
1317 | --program-transform-nam=* | --program-transform-na=* \
1318 | --program-transform-n=* | --program-transform-=* \
1319 | --program-transform=* | --program-transfor=* \
1320 | --program-transfo=* | --program-transf=* \
1321 | --program-trans=* | --program-tran=* \
1322 | --progr-tra=* | --program-tr=* | --program-t=*)
1323 program_transform_name=$ac_optarg ;;
1325 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1327 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328 pdfdir=$ac_optarg ;;
1330 -psdir | --psdir | --psdi | --psd | --ps)
1332 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336 | -silent | --silent | --silen | --sile | --sil)
1339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1343 sbindir=$ac_optarg ;;
1345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347 | --sharedst | --shareds | --shared | --share | --shar \
1349 ac_prev=sharedstatedir ;;
1350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1354 sharedstatedir=$ac_optarg ;;
1356 -site | --site | --sit)
1358 -site=* | --site=* | --sit=*)
1361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364 srcdir=$ac_optarg ;;
1366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367 | --syscon | --sysco | --sysc | --sys | --sy)
1368 ac_prev=sysconfdir ;;
1369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371 sysconfdir=$ac_optarg ;;
1373 -target | --target | --targe | --targ | --tar | --ta | --t)
1374 ac_prev=target_alias ;;
1375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376 target_alias=$ac_optarg ;;
1378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1381 -version | --version | --versio | --versi | --vers | -V)
1382 ac_init_version=: ;;
1385 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388 { echo "$as_me: error: invalid package name: $ac_package" >&2
1389 { (exit 1); exit 1; }; }
1390 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391 eval with_$ac_package=\$ac_optarg ;;
1393 -without-* | --without-*)
1394 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397 { echo "$as_me: error: invalid package name: $ac_package" >&2
1398 { (exit 1); exit 1; }; }
1399 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1400 eval with_$ac_package=no ;;
1403 # Obsolete; use --with-x.
1406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1407 | --x-incl | --x-inc | --x-in | --x-i)
1408 ac_prev=x_includes ;;
1409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1411 x_includes=$ac_optarg ;;
1413 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1415 ac_prev=x_libraries ;;
1416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1418 x_libraries=$ac_optarg ;;
1420 -*) { echo "$as_me: error: unrecognized option: $ac_option
1421 Try \`$0 --help' for more information." >&2
1422 { (exit 1); exit 1; }; }
1426 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427 # Reject names that are not valid shell variable names.
1428 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1429 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1430 { (exit 1); exit 1; }; }
1431 eval $ac_envvar=\$ac_optarg
1432 export $ac_envvar ;;
1435 # FIXME: should be removed in autoconf 3.0.
1436 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1437 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1438 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1439 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1445 if test -n "$ac_prev"; then
1446 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1447 { echo "$as_me: error: missing argument to $ac_option" >&2
1448 { (exit 1); exit 1; }; }
1451 # Be sure to have absolute directory names.
1452 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453 datadir sysconfdir sharedstatedir localstatedir includedir \
1454 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455 libdir localedir mandir
1457 eval ac_val=\$$ac_var
1459 [\\/$]* | ?:[\\/]* ) continue;;
1460 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463 { (exit 1); exit 1; }; }
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1471 target=$target_alias
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478 If a cross compiler is detected then cross compile mode will be used." >&2
1479 elif test "x$build_alias" != "x$host_alias"; then
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1487 test "$silent" = yes && exec 6>/dev/null
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493 { echo "$as_me: error: Working directory cannot be determined" >&2
1494 { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496 { echo "$as_me: error: pwd does not report name of working directory" >&2
1497 { (exit 1); exit 1; }; }
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502 ac_srcdir_defaulted=yes
1503 # Try the directory containing this script, then the parent directory.
1504 ac_confdir=`$as_dirname -- "$0" ||
1505 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506 X"$0" : 'X\(//\)[^/]' \| \
1507 X"$0" : 'X\(//\)$' \| \
1508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1532 ac_srcdir_defaulted=no
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537 { (exit 1); exit 1; }; }
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1541 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1542 { (exit 1); exit 1; }; }
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1554 for ac_var in $ac_precious_vars; do
1555 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556 eval ac_env_${ac_var}_value=\$${ac_var}
1557 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1562 # Report the --help message.
1564 if test "$ac_init_help" = "long"; then
1565 # Omit some internal or obsolete options to make the list less imposing.
1566 # This message is too long to be a string in the A/UX 3.1 sh.
1568 \`configure' configures this package to adapt to many kinds of systems.
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE. See below for descriptions of some of the useful variables.
1575 Defaults for the options are specified in brackets.
1578 -h, --help display this help and exit
1579 --help=short display options specific to this package
1580 --help=recursive display the short help of all the included packages
1581 -V, --version display version information and exit
1582 -q, --quiet, --silent do not print \`checking...' messages
1583 --cache-file=FILE cache test results in FILE [disabled]
1584 -C, --config-cache alias for \`--cache-file=config.cache'
1585 -n, --no-create do not create output files
1586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1588 Installation directories:
1589 --prefix=PREFIX install architecture-independent files in PREFIX
1590 [$ac_default_prefix]
1591 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1599 For better control, use the options below.
1601 Fine tuning of the installation directories:
1602 --bindir=DIR user executables [EPREFIX/bin]
1603 --sbindir=DIR system admin executables [EPREFIX/sbin]
1604 --libexecdir=DIR program executables [EPREFIX/libexec]
1605 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1606 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1607 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1608 --libdir=DIR object code libraries [EPREFIX/lib]
1609 --includedir=DIR C header files [PREFIX/include]
1610 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1611 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1612 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1613 --infodir=DIR info documentation [DATAROOTDIR/info]
1614 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1615 --mandir=DIR man documentation [DATAROOTDIR/man]
1616 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1617 --htmldir=DIR html documentation [DOCDIR]
1618 --dvidir=DIR dvi documentation [DOCDIR]
1619 --pdfdir=DIR pdf documentation [DOCDIR]
1620 --psdir=DIR ps documentation [DOCDIR]
1626 --x-includes=DIR X include files are in DIR
1627 --x-libraries=DIR X library files are in DIR
1630 --build=BUILD configure for building on BUILD [guessed]
1631 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1635 if test -n "$ac_init_help"; then
1640 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1641 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1642 --enable-libtool enable building using GNU libtool [default=yes]
1643 --enable-shared[=PKGS] build shared libraries [default=yes]
1644 --enable-static[=PKGS] build static libraries [default=no]
1645 --enable-fast-install[=PKGS]
1646 optimize for fast installation [default=yes]
1647 --disable-libtool-lock avoid locking (might break parallel builds)
1648 --enable-includes enable installing of include files [default=no]
1649 --disable-nls do not use Native Language Support
1650 --disable-rpath do not hardcode runtime library paths
1651 --enable-gnome enable build of bgnome-console GUI [default=no]
1652 --enable-bat enable build of bat Qt4 GUI [default=no]
1653 --enable-bwx-console enable build of wxWidgets console [default=no]
1654 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1656 --enable-smartalloc enable smartalloc debugging support [default=no]
1657 --enable-lockmgr enable lock manager support [default=no]
1658 --enable-static-tools enable static tape tools [default=no]
1659 --enable-static-fd enable static File daemon [default=no]
1660 --enable-static-sd enable static Storage daemon [default=no]
1661 --enable-static-dir enable static Director [default=no]
1662 --enable-static-cons enable static Console [default=no]
1663 --enable-client-only build client (File daemon) only [default=no]
1664 --enable-build-dird enable building of dird (Director) [default=yes]
1665 --enable-build-stored enable building of stored (Storage daemon)
1667 --disable-conio disable conio support [default=no]
1668 --enable-ipv6 enable ipv6 support [default=yes]
1669 --disable-readline disable readline support [default=yes]
1670 --enable-batch-insert enable the DB batch insert code [default=no]
1671 --disable-largefile omit support for large files
1672 --disable-acl disable acl support [default=auto]
1673 --disable-xattr disable xattr support [default=auto]
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-pic try to use only PIC/non-PIC objects [default=use
1680 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1681 --with-gnu-ld assume the C compiler uses GNU ld default=no
1682 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1683 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1684 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1685 --without-libintl-prefix don't search for libintl in includedir and libdir
1686 --with-included-gettext use the GNU gettext library included here
1687 --with-readline[=DIR] specify readline library directory
1688 --with-python[=DIR] Include Python support. DIR is the Python base
1689 install directory, default is to search through a
1690 number of common places for the Python files.
1691 --with-tcp-wrappers[=DIR]
1692 enable tcpwrappers support
1693 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1694 --with-working-dir=PATH specify path of Bacula working directory
1695 --with-archivedir=PATH specify path of SD archive directory
1696 --with-basename=RESNAME specify base resource name for daemons
1697 --with-hostname=RESNAME specify host name for daemons
1698 --with-scriptdir=PATH specify path of Bacula scripts directory
1699 --with-bsrdir=PATH specify path of Bacula bsrs directory
1700 --with-logdir=PATH specify path of Bacula logs directory
1701 --with-plugindir=PATH specify path of Bacula plugins directory
1702 --with-dump-email=EMAIL dump email address
1703 --with-job-email=EMAIL job output email address
1704 --with-smtp-host=HOST SMTP mail host address
1705 --with-pid-dir=PATH specify location of Bacula pid files
1706 --with-subsys-dir=PATH specify location of Bacula subsys file
1707 --with-baseport=PORT specify base port address for daemons
1708 --with-dir-password=PASSWORD
1709 specify Director's password
1710 --with-fd-password=PASSWORD
1711 specify Client's password
1712 --with-sd-password=PASSWORD
1713 specify Storage daemon's password
1714 --with-mon-dir-password=PASSWORD
1715 specify Director's password used by the monitor
1716 --with-mon-fd-password=PASSWORD
1717 specify Client's password used by the monitor
1718 --with-mon-sd-password=PASSWORD
1719 specify Storage daemon's password used by the
1721 --with-db-name=DBNAME specify database name [default=bacula]
1722 --with-db-user=UNAME specify database user [default=bacula]
1723 --with-db-password=PWD specify database password [default=*none*]
1724 --with-db-port=DBPORT specify a database port [default=null]
1725 --with-dir-user=USER specify user for Director daemon
1726 --with-dir-group=GROUP specify group for Director daemon
1727 --with-sd-user=USER specify user for Storage daemon
1728 --with-sd-group=GROUP specify group for Storage daemon
1729 --with-fd-user=USER specify user for File daemon
1730 --with-fd-group=GROUP specify group for File daemon
1731 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1732 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733 base install directory, [default=/usr/local/pgsql]
1734 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1735 directory, default is to search through a number of
1736 common places for the MySQL files.
1737 --with-embedded-mysql[=DIR]
1738 Include MySQL support. DIR is the MySQL base install
1739 directory, default is to search through a number of
1740 common places for the MySQL files.
1741 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1742 install directory, default is to search through a
1743 number of common places for the Ingres files.
1744 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1745 install directory, default is to search through a
1746 number of common places for the SQLite3 files.
1747 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1748 directory, default is to search through a number of
1749 common places for the DBI files.
1750 --with-dbi-driver[=DRIVER]
1751 Suport for DBI driver. DRIVER is the one DBI driver
1752 like Mysql, Postgresql, others. Default is to not
1753 configure any driver.
1754 --with-x use the X Window System
1756 Some influential environment variables:
1757 CC C compiler command
1758 CFLAGS C compiler flags
1759 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1760 nonstandard directory <lib dir>
1761 LIBS libraries to pass to the linker, e.g. -l<library>
1762 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1763 you have headers in a nonstandard directory <include dir>
1764 CXX C++ compiler command
1765 CXXFLAGS C++ compiler flags
1767 WXCONFIG wx-config command. On some systems, you must set it to
1768 wx-config-2.6 to use wxWidgets 2.6.
1769 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1770 CXXCPP C++ preprocessor
1771 XMKMF Path to xmkmf, Makefile generator for X Window System
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1780 if test "$ac_init_help" = "recursive"; then
1781 # If there are subdirs, report their specific --help.
1782 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783 test -d "$ac_dir" || continue
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1790 # A ".." for each directory in $ac_dir_suffix.
1791 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1792 case $ac_top_builddir_sub in
1793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1803 .) # We are building in place.
1805 ac_top_srcdir=$ac_top_builddir_sub
1806 ac_abs_top_srcdir=$ac_pwd ;;
1807 [\\/]* | ?:[\\/]* ) # Absolute name.
1808 ac_srcdir=$srcdir$ac_dir_suffix;
1809 ac_top_srcdir=$srcdir
1810 ac_abs_top_srcdir=$srcdir ;;
1812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813 ac_top_srcdir=$ac_top_build_prefix$srcdir
1814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1818 cd "$ac_dir" || { ac_status=$?; continue; }
1819 # Check for guested configure.
1820 if test -f "$ac_srcdir/configure.gnu"; then
1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823 elif test -f "$ac_srcdir/configure"; then
1825 $SHELL "$ac_srcdir/configure" --help=recursive
1827 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1829 cd "$ac_pwd" || { ac_status=$?; break; }
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1837 generated by GNU Autoconf 2.61
1839 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1840 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1841 This configure script is free software; the Free Software Foundation
1842 gives unlimited permission to copy, distribute and modify it.
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.61. Invocation command line was
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 echo "PATH: $as_dir"
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1911 ac_must_keep_next=false
1917 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919 | -silent | --silent | --silen | --sile | --sil)
1922 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1927 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1928 if test $ac_must_keep_next = true; then
1929 ac_must_keep_next=false # Got value, back to normal.
1932 *=* | --config-cache | -C | -disable-* | --disable-* \
1933 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935 | -with-* | --with-* | -without-* | --without-* | --x)
1936 case "$ac_configure_args0 " in
1937 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1940 -* ) ac_must_keep_next=true ;;
1943 ac_configure_args="$ac_configure_args '$ac_arg'"
1948 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1949 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log. We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957 # Save into config.log some information that might help in debugging.
1962 ## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##
1967 # The following way of writing the cache mishandles newlines in values,
1969 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970 eval ac_val=\$$ac_var
1974 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1978 _ | IFS | as_nl) ;; #(
1979 *) $as_unset $ac_var ;;
1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985 *${as_nl}ac_space=\ *)
1987 "s/'\''/'\''\\\\'\'''\''/g;
1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1999 ## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##
2004 for ac_var in $ac_subst_vars
2006 eval ac_val=\$$ac_var
2008 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 echo "$ac_var='\''$ac_val'\''"
2014 if test -n "$ac_subst_files"; then
2016 ## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##
2021 for ac_var in $ac_subst_files
2023 eval ac_val=\$$ac_var
2025 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 echo "$ac_var='\''$ac_val'\''"
2032 if test -s confdefs.h; then
2042 test "$ac_signal" != 0 &&
2043 echo "$as_me: caught signal $ac_signal"
2044 echo "$as_me: exit $exit_status"
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2058 # Predefined preprocessor variables.
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer explicitly selected file to automatically selected ones.
2087 if test -n "$CONFIG_SITE"; then
2088 set x "$CONFIG_SITE"
2089 elif test "x$prefix" != xNONE; then
2090 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2092 set x "$ac_default_prefix/share/config.site" \
2093 "$ac_default_prefix/etc/config.site"
2098 if test -r "$ac_site_file"; then
2099 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2100 echo "$as_me: loading site script $ac_site_file" >&6;}
2101 sed 's/^/| /' "$ac_site_file" >&5
2106 if test -r "$cache_file"; then
2107 # Some versions of bash will fail to source /dev/null (special
2108 # files actually), so we avoid doing that.
2109 if test -f "$cache_file"; then
2110 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2111 echo "$as_me: loading cache $cache_file" >&6;}
2113 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114 *) . "./$cache_file";;
2118 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2119 echo "$as_me: creating cache $cache_file" >&6;}
2123 # Check that the precious variables saved in the cache have kept the same
2125 ac_cache_corrupted=false
2126 for ac_var in $ac_precious_vars; do
2127 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128 eval ac_new_set=\$ac_env_${ac_var}_set
2129 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130 eval ac_new_val=\$ac_env_${ac_var}_value
2131 case $ac_old_set,$ac_new_set in
2133 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2137 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139 ac_cache_corrupted=: ;;
2142 if test "x$ac_old_val" != "x$ac_new_val"; then
2143 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2144 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2146 echo "$as_me: former value: $ac_old_val" >&2;}
2147 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2148 echo "$as_me: current value: $ac_new_val" >&2;}
2149 ac_cache_corrupted=:
2152 # Pass precious variables to config.status.
2153 if test "$ac_new_set" = set; then
2155 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156 *) ac_arg=$ac_var=$ac_new_val ;;
2158 case " $ac_configure_args " in
2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2160 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2164 if $ac_cache_corrupted; then
2165 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2166 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2168 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2169 { (exit 1); exit 1; }; }
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2203 if test -f "$ac_dir/install-sh"; then
2205 ac_install_sh="$ac_aux_dir/install-sh -c"
2207 elif test -f "$ac_dir/install.sh"; then
2209 ac_install_sh="$ac_aux_dir/install.sh -c"
2211 elif test -f "$ac_dir/shtool"; then
2213 ac_install_sh="$ac_aux_dir/shtool install -c"
2217 if test -z "$ac_aux_dir"; then
2218 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2219 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2220 { (exit 1); exit 1; }; }
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2232 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2235 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2236 WIN32MAINDIR=${BUILD_DIR}
2237 WIN32TOPDIR=${TOP_DIR}
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 TRUEPRG=$ac_cv_path_TRUEPRG
2278 if test -n "$TRUEPRG"; then
2279 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2280 echo "${ECHO_T}$TRUEPRG" >&6; }
2282 { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2287 test -n "$TRUEPRG" && break
2289 test -n "$TRUEPRG" || TRUEPRG=":"
2291 for ac_prog in false
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 FALSEPRG=$ac_cv_path_FALSEPRG
2324 if test -n "$FALSEPRG"; then
2325 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2326 echo "${ECHO_T}$FALSEPRG" >&6; }
2328 { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2333 test -n "$FALSEPRG" && break
2335 test -n "$FALSEPRG" || FALSEPRG=":"
2340 if test "x$BACULA" != x; then
2341 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2343 BACULA=${BACULA:-Bacula}
2344 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 echo "configuring for ${BACULA} $VERSION ($DATE)"
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 if test -n "$CC"; then
2385 { echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6; }
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2394 if test -z "$ac_cv_prog_CC"; then
2396 # Extract the first word of "gcc", so it can be a program name with args.
2397 set dummy gcc; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$ac_ct_CC"; then
2404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413 ac_cv_prog_ac_ct_CC="gcc"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6; }
2428 { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2432 if test "x$ac_ct_CC" = x; then
2435 case $cross_compiling:$ac_tool_warned in
2437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&5
2440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet. If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2443 ac_tool_warned=yes ;;
2451 if test -z "$CC"; then
2452 if test -n "$ac_tool_prefix"; then
2453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_CC="${ac_tool_prefix}cc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 if test -n "$CC"; then
2482 { echo "$as_me:$LINENO: result: $CC" >&5
2483 echo "${ECHO_T}$CC" >&6; }
2485 { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2492 if test -z "$CC"; then
2493 # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512 ac_prog_rejected=yes
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test $ac_prog_rejected = yes; then
2524 # We found a bogon in the path, so make sure we never use it.
2525 set dummy $ac_cv_prog_CC
2527 if test $# != 0; then
2528 # We chose a different compiler from the bogus one.
2529 # However, it has the same basename, so the bogon will be chosen
2530 # first if we set CC to just the basename; use the full file name.
2532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2538 if test -n "$CC"; then
2539 { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2542 { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2548 if test -z "$CC"; then
2549 if test -n "$ac_tool_prefix"; then
2550 for ac_prog in cl.exe
2552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2589 test -n "$CC" && break
2592 if test -z "$CC"; then
2594 for ac_prog in cl.exe
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_ac_ct_CC="$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2626 echo "${ECHO_T}$ac_ct_CC" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2633 test -n "$ac_ct_CC" && break
2636 if test "x$ac_ct_CC" = x; then
2639 case $cross_compiling:$ac_tool_warned in
2641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet. If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet. If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2647 ac_tool_warned=yes ;;
2656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&2;}
2660 { (exit 1); exit 1; }; }
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO: checking for C compiler version" >&5
2664 ac_compiler=`set X $ac_compile; echo $2`
2665 { (ac_try="$ac_compiler --version >&5"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compiler --version >&5") 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2675 { (ac_try="$ac_compiler -v >&5"
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compiler -v >&5") 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2685 { (ac_try="$ac_compiler -V >&5"
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler -V >&5") 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2711 ac_clean_files_save=$ac_clean_files
2712 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2713 # Try to create an executable without -o first, disregard a.out.
2714 # It will help us diagnose broken compilers, and finding out an intuition
2716 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2717 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720 # List of possible output files, starting from the most likely.
2721 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2722 # only as a last resort. b.out is created by i960 compilers.
2723 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2725 # The IRIX 6 linker writes into existing files which may not be
2726 # executable, retaining their permissions. Remove them first so a
2727 # subsequent execution test works.
2729 for ac_file in $ac_files
2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738 if { (ac_try="$ac_link_default"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_link_default") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; then
2748 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2749 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2750 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2751 # so that the user can short-circuit this test for compilers unknown to
2753 for ac_file in $ac_files ''
2755 test -f "$ac_file" || continue
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2760 # We found the default executable, but exeext='' is most
2764 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2766 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2768 # We set ac_cv_exeext here because the later test for it is not
2769 # safe: cross compilers may not add the suffix if given an `-o'
2770 # argument, so we may need to know it at that point already.
2771 # Even if this section looks crufty: it has the advantage of
2778 test "$ac_cv_exeext" = no && ac_cv_exeext=
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2786 if test -z "$ac_file"; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794 { (exit 77); exit 77; }; }
2797 ac_exeext=$ac_cv_exeext
2799 # Check that the compiler produces executables we can run. If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806 if { ac_try='./$ac_file'
2807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2818 if test "$cross_compiling" = maybe; then
2821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 for ac_file in conftest.exe conftest conftest.*; do
2860 test -f "$ac_file" || continue
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 for ac_file in conftest.o conftest.obj conftest.*; do
2915 test -f "$ac_file" || continue;
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930 { (exit 1); exit 1; }; }
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } && {
2976 test -z "$ac_c_werror_flag" ||
2977 test ! -s conftest.err
2978 } && test -s conftest.$ac_objext; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2993 GCC=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 ac_save_c_werror_flag=$ac_c_werror_flag
3002 ac_c_werror_flag=yes
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } && {
3034 test -z "$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 } && test -s conftest.$ac_objext; then
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 ac_c_werror_flag=$ac_save_c_werror_flag
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3133 if test "$ac_test_CFLAGS" = set; then
3134 CFLAGS=$ac_save_CFLAGS
3135 elif test $ac_cv_prog_cc_g = yes; then
3136 if test "$GCC" = yes; then
3142 if test "$GCC" = yes; then
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 ac_cv_prog_cc_c89=no
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3179 s = g (p, va_arg (v,int));
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3185 function prototypes and stuff, but not '\xHH' hex character constants.
3186 These don't provoke an error unfortunately, instead are silently treated
3187 as 'x'. The following induces an error, until -std is added to get
3188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3189 array size at least. It's necessary to write '\x00'==0 to get something
3190 that's true only with -std. */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194 inside strings and character constants. */
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3215 CC="$ac_save_CC $ac_arg"
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest.$ac_objext; then
3233 ac_cv_prog_cc_c89=$ac_arg
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3241 rm -f core conftest.err conftest.$ac_objext
3242 test "x$ac_cv_prog_cc_c89" != "xno" && break
3244 rm -f conftest.$ac_ext
3249 case "x$ac_cv_prog_cc_c89" in
3251 { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3254 { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3257 CC="$CC $ac_cv_prog_cc_c89"
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 ac_cpp='$CXXCPP $CPPFLAGS'
3271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3274 if test -z "$CXX"; then
3275 if test -n "$CCC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$CXX"; then
3289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CXX"; then
3310 { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3313 { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3318 test -n "$CXX" && break
3321 if test -z "$CXX"; then
3323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 if test -n "$ac_ct_CXX"; then
3333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_ac_ct_CXX="$ac_prog"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353 if test -n "$ac_ct_CXX"; then
3354 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3357 { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3362 test -n "$ac_ct_CXX" && break
3365 if test "x$ac_ct_CXX" = x; then
3368 case $cross_compiling:$ac_tool_warned in
3370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet. If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&5
3373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet. If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3376 ac_tool_warned=yes ;;
3384 # Provide some information about the compiler.
3385 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3386 ac_compiler=`set X $ac_compile; echo $2`
3387 { (ac_try="$ac_compiler --version >&5"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compiler --version >&5") 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }
3397 { (ac_try="$ac_compiler -v >&5"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compiler -v >&5") 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }
3407 { (ac_try="$ac_compiler -V >&5"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_compiler -V >&5") 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_cxx_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3472 GXX=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CXXFLAGS=${CXXFLAGS+set}
3474 ac_save_CXXFLAGS=$CXXFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cxx_g+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3481 ac_cxx_werror_flag=yes
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_compile") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && {
3513 test -z "$ac_cxx_werror_flag" ||
3514 test ! -s conftest.err
3515 } && test -s conftest.$ac_objext; then
3516 ac_cv_prog_cxx_g=yes
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && {
3551 test -z "$ac_cxx_werror_flag" ||
3552 test ! -s conftest.err
3553 } && test -s conftest.$ac_objext; then
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_cxx_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cxx_g=yes
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3612 if test "$ac_test_CXXFLAGS" = set; then
3613 CXXFLAGS=$ac_save_CXXFLAGS
3614 elif test $ac_cv_prog_cxx_g = yes; then
3615 if test "$GXX" = yes; then
3621 if test "$GXX" = yes; then
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 if test "x$CC" != xcc; then
3634 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3635 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3637 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3638 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3640 set dummy $CC; ac_cc=`echo $2 |
3641 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3642 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3660 # Make sure it works both with $CC and with simple cc.
3661 # We do the test twice because some compilers refuse to overwrite an
3662 # existing .o file with -o, though they will create one.
3663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3665 if { (case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_try") 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_try") 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); };
3684 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3685 if test "x$CC" != xcc; then
3686 # Test first that cc exists at all.
3687 if { ac_try='cc -c conftest.$ac_ext >&5'
3688 { (case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_try") 2>&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3699 if { (case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_try") 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_try") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); };
3721 # cc exists but doesn't like -o.
3722 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3727 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3729 rm -f core conftest*
3732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3733 { echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6; }
3736 { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3739 cat >>confdefs.h <<\_ACEOF
3740 #define NO_MINUS_C_MINUS_O 1
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3756 if test -z "$CPP"; then
3757 if test "${ac_cv_prog_CPP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 # Double quotes because CPP needs to be expanded
3761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3764 for ac_c_preproc_warn_flag in '' yes
3766 # Use a header file that comes with gcc, so configuring glibc
3767 # with a fresh cross-compiler works.
3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769 # <limits.h> exists even on freestanding compilers.
3770 # On the NeXT, cc -E runs the code through the compiler's parser,
3771 # not just through cpp. "Syntax error" is here to catch this case.
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3779 # include <limits.h>
3781 # include <assert.h>
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null && {
3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3838 # Broken: success on invalid input.
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 # include <limits.h>
3886 # include <assert.h>
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null && {
3903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 # Broken: fails on valid input.
3915 rm -f conftest.err conftest.$ac_ext
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #include <ac_nonexistent.h>
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null && {
3940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3943 # Broken: success on invalid input.
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Passes both tests.
3954 rm -f conftest.err conftest.$ac_ext
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3962 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3993 test -z "$as_dir" && as_dir=.
3994 for ac_prog in grep ggrep; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998 # Check for GNU ac_path_GREP and select it if it is found.
3999 # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4002 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4005 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4008 cat "conftest.in" "conftest.in" >"conftest.tmp"
4009 mv "conftest.tmp" "conftest.in"
4010 cp "conftest.in" "conftest.nl"
4011 echo 'GREP' >> "conftest.nl"
4012 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014 ac_count=`expr $ac_count + 1`
4015 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016 # Best one so far, save it but keep looking for a better one
4017 ac_cv_path_GREP="$ac_path_GREP"
4018 ac_path_GREP_max=$ac_count
4020 # 10*(2^10) chars as input seems more than enough
4021 test $ac_count -gt 10 && break
4023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 $ac_path_GREP_found && break 3
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cv_path_GREP=$GREP
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061 then ac_cv_path_EGREP="$GREP -E"
4063 # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4075 test -z "$as_dir" && as_dir=.
4076 for ac_prog in egrep; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080 # Check for GNU ac_path_EGREP and select it if it is found.
4081 # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4084 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4087 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4090 cat "conftest.in" "conftest.in" >"conftest.tmp"
4091 mv "conftest.tmp" "conftest.in"
4092 cp "conftest.in" "conftest.nl"
4093 echo 'EGREP' >> "conftest.nl"
4094 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096 ac_count=`expr $ac_count + 1`
4097 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098 # Best one so far, save it but keep looking for a better one
4099 ac_cv_path_EGREP="$ac_path_EGREP"
4100 ac_path_EGREP_max=$ac_count
4102 # 10*(2^10) chars as input seems more than enough
4103 test $ac_count -gt 10 && break
4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 $ac_path_EGREP_found && break 3
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123 { (exit 1); exit 1; }; }
4127 ac_cv_path_EGREP=$EGREP
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135 EGREP="$ac_cv_path_EGREP"
4138 if test $ac_cv_c_compiler_gnu = yes; then
4139 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 ac_pattern="Autoconf.*'x'"
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156 ac_cv_prog_gcc_traditional=yes
4158 ac_cv_prog_gcc_traditional=no
4163 if test $ac_cv_prog_gcc_traditional = no; then
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4175 ac_cv_prog_gcc_traditional=yes
4181 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4182 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4183 if test $ac_cv_prog_gcc_traditional = yes; then
4184 CC="$CC -traditional"
4188 BASECC=`basename $CC`
4190 if test "x$BASECC" = xgcc; then
4191 cat >>confdefs.h <<\_ACEOF
4197 # Extract the first word of "$CXX", so it can be a program name with args.
4198 set dummy $CXX; ac_word=$2
4199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_CXX+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4229 if test -n "$CXX"; then
4230 { echo "$as_me:$LINENO: result: $CXX" >&5
4231 echo "${ECHO_T}$CXX" >&6; }
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4238 if test ! -e $CXX; then
4239 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4240 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4241 { (exit 1); exit 1; }; }
4244 # Find a good install program. We prefer a C program (faster),
4245 # so one script is as good as another. But avoid the broken or
4246 # incompatible versions:
4247 # SysV /etc/install, /usr/sbin/install
4248 # SunOS /usr/etc/install
4249 # IRIX /sbin/install
4251 # AmigaOS /C/install, which installs bootblocks on floppy discs
4252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4255 # OS/2's system install, which has a completely different semantic
4256 # ./install, which can be erroneously created by make from ./install.sh.
4257 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4259 if test -z "$INSTALL"; then
4260 if test "${ac_cv_path_install+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir=.
4268 # Account for people who put trailing slashes in PATH elements.
4270 ./ | .// | /cC/* | \
4271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4272 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4275 # OSF1 and SCO ODT 3.0 have their own names for install.
4276 # Don't use installbsd from OSF since it installs stuff as root
4278 for ac_prog in ginstall scoinst install; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4281 if test $ac_prog = install &&
4282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283 # AIX install. It has an incompatible calling convention.
4285 elif test $ac_prog = install &&
4286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287 # program-specific install script used by HP pwplus--don't use.
4290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4303 if test "${ac_cv_path_install+set}" = set; then
4304 INSTALL=$ac_cv_path_install
4306 # As a last resort, use the slow shell script. Don't cache a
4307 # value for INSTALL within a source directory, because that will
4308 # break other packages using the cache if that directory is
4309 # removed, or if the value is a relative name.
4310 INSTALL=$ac_install_sh
4313 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4314 echo "${ECHO_T}$INSTALL" >&6; }
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4324 # Extract the first word of "mv", so it can be a program name with args.
4325 set dummy mv; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_path_MV+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4356 if test -n "$MV"; then
4357 { echo "$as_me:$LINENO: result: $MV" >&5
4358 echo "${ECHO_T}$MV" >&6; }
4360 { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4365 # Extract the first word of "rm", so it can be a program name with args.
4366 set dummy rm; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_path_REMOVE+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4396 REMOVE=$ac_cv_path_REMOVE
4397 if test -n "$REMOVE"; then
4398 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4399 echo "${ECHO_T}$REMOVE" >&6; }
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4406 # Extract the first word of "cp", so it can be a program name with args.
4407 set dummy cp; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_path_CP+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4438 if test -n "$CP"; then
4439 { echo "$as_me:$LINENO: result: $CP" >&5
4440 echo "${ECHO_T}$CP" >&6; }
4442 { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4447 # Extract the first word of "sed", so it can be a program name with args.
4448 set dummy sed; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_SED+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4479 if test -n "$SED"; then
4480 { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4488 # Extract the first word of "echo", so it can be a program name with args.
4489 set dummy echo; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_ECHO+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4519 ECHO=$ac_cv_path_ECHO
4520 if test -n "$ECHO"; then
4521 { echo "$as_me:$LINENO: result: $ECHO" >&5
4522 echo "${ECHO_T}$ECHO" >&6; }
4524 { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4529 # Extract the first word of "cmp", so it can be a program name with args.
4530 set dummy cmp; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_path_CMP+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561 if test -n "$CMP"; then
4562 { echo "$as_me:$LINENO: result: $CMP" >&5
4563 echo "${ECHO_T}$CMP" >&6; }
4565 { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4570 # Extract the first word of "tbl", so it can be a program name with args.
4571 set dummy tbl; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_TBL+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4602 if test -n "$TBL"; then
4603 { echo "$as_me:$LINENO: result: $TBL" >&5
4604 echo "${ECHO_T}$TBL" >&6; }
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4611 # Extract the first word of "ar", so it can be a program name with args.
4612 set dummy ar; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_AR+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4643 if test -n "$AR"; then
4644 { echo "$as_me:$LINENO: result: $AR" >&5
4645 echo "${ECHO_T}$AR" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4652 # Extract the first word of "openssl", so it can be a program name with args.
4653 set dummy openssl; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_path_OPENSSL+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4683 OPENSSL=$ac_cv_path_OPENSSL
4684 if test -n "$OPENSSL"; then
4685 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4686 echo "${ECHO_T}$OPENSSL" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 # Extract the first word of "mtx", so it can be a program name with args.
4694 set dummy mtx; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MTX+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4725 if test -n "$MTX"; then
4726 { echo "$as_me:$LINENO: result: $MTX" >&5
4727 echo "${ECHO_T}$MTX" >&6; }
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4734 # Extract the first word of "dd", so it can be a program name with args.
4735 set dummy dd; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_DD+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4766 if test -n "$DD"; then
4767 { echo "$as_me:$LINENO: result: $DD" >&5
4768 echo "${ECHO_T}$DD" >&6; }
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4775 # Extract the first word of "mkisofs", so it can be a program name with args.
4776 set dummy mkisofs; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_path_MKISOFS+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4806 MKISOFS=$ac_cv_path_MKISOFS
4807 if test -n "$MKISOFS"; then
4808 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4809 echo "${ECHO_T}$MKISOFS" >&6; }
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4816 # Extract the first word of "python", so it can be a program name with args.
4817 set dummy python; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_PYTHON+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4847 PYTHON=$ac_cv_path_PYTHON
4848 if test -n "$PYTHON"; then
4849 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4850 echo "${ECHO_T}$PYTHON" >&6; }
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 # Extract the first word of "growisofs", so it can be a program name with args.
4858 set dummy growisofs; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4888 GROWISOFS=$ac_cv_path_GROWISOFS
4889 if test -n "$GROWISOFS"; then
4890 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4891 echo "${ECHO_T}$GROWISOFS" >&6; }
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4898 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4899 set dummy dvd+rw-mediainfo; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 case $DVDRWMEDIAINFO in
4907 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4929 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4930 if test -n "$DVDRWMEDIAINFO"; then
4931 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4932 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4939 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4940 set dummy dvd+rw-format; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 case $DVDRWFORMAT in
4948 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4970 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4971 if test -n "$DVDRWFORMAT"; then
4972 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4973 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4975 { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4980 # Extract the first word of "pkg-config", so it can be a program name with args.
4981 set dummy pkg-config; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5011 PKGCONFIG=$ac_cv_path_PKGCONFIG
5012 if test -n "$PKGCONFIG"; then
5013 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5014 echo "${ECHO_T}$PKGCONFIG" >&6; }
5016 { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5021 # Extract the first word of "qmake", so it can be a program name with args.
5022 set dummy qmake; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_path_QMAKE+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5052 QMAKE=$ac_cv_path_QMAKE
5053 if test -n "$QMAKE"; then
5054 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5055 echo "${ECHO_T}$QMAKE" >&6; }
5057 { echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6; }
5062 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5063 set dummy qmake-qt4; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5093 QMAKEQT4=$ac_cv_path_QMAKEQT4
5094 if test -n "$QMAKEQT4"; then
5095 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5096 echo "${ECHO_T}$QMAKEQT4" >&6; }
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5103 # Extract the first word of "gmake", so it can be a program name with args.
5104 set dummy gmake; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_GMAKE+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5134 GMAKE=$ac_cv_path_GMAKE
5135 if test -n "$GMAKE"; then
5136 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5137 echo "${ECHO_T}$GMAKE" >&6; }
5139 { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5145 if test "x$WXCONFIG" = x; then
5148 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5149 set dummy ${WXCONFIG}; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5179 WXCONFIG=$ac_cv_path_WXCONFIG
5180 if test -n "$WXCONFIG"; then
5181 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5182 echo "${ECHO_T}$WXCONFIG" >&6; }
5184 { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5190 # Extract the first word of "cdrecord", so it can be a program name with args.
5191 set dummy cdrecord; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_CDRECORD+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5221 CDRECORD=$ac_cv_path_CDRECORD
5222 if test -n "$CDRECORD"; then
5223 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5224 echo "${ECHO_T}$CDRECORD" >&6; }
5226 { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5231 # Extract the first word of "pidof", so it can be a program name with args.
5232 set dummy pidof; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_PIDOF+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5262 PIDOF=$ac_cv_path_PIDOF
5263 if test -n "$PIDOF"; then
5264 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5265 echo "${ECHO_T}$PIDOF" >&6; }
5267 { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5272 for ac_prog in gawk mawk nawk awk
5274 # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_AWK+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 if test -n "$AWK"; then
5282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_AWK="$ac_prog"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 if test -n "$AWK"; then
5303 { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5311 test -n "$AWK" && break
5314 # Some AWK programs fail, so test it and warn the user
5315 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5316 { if ((prog == $2) || (("(" prog ")") == $2) ||
5317 (("" prog "") == $2) ||
5318 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5320 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321 The regex engine of $AWK is too broken to be used you
5322 might want to install GNU AWK.
5323 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5324 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325 The regex engine of $AWK is too broken to be used you
5326 might want to install GNU AWK.
5327 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5328 { (exit 1); exit 1; }; }
5331 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5332 set dummy $THE_AWK; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_AWK+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5363 if test -n "$AWK"; then
5364 { echo "$as_me:$LINENO: result: $AWK" >&5
5365 echo "${ECHO_T}$AWK" >&6; }
5367 { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5374 test -n "$ARFLAG" || ARFLAGS="cr"
5386 # Check whether --enable-libtool was given.
5387 if test "${enable_libtool+set}" = set; then
5388 enableval=$enable_libtool;
5389 if test x$enableval = xno; then
5398 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5399 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5404 macro_version='2.2.6'
5405 macro_revision='1.3012'
5419 ltmain="$ac_aux_dir/ltmain.sh"
5421 # Make sure we can run config.sub.
5422 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5423 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5424 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5425 { (exit 1); exit 1; }; }
5427 { echo "$as_me:$LINENO: checking build system type" >&5
5428 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5429 if test "${ac_cv_build+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 ac_build_alias=$build_alias
5433 test "x$ac_build_alias" = x &&
5434 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5435 test "x$ac_build_alias" = x &&
5436 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5438 { (exit 1); exit 1; }; }
5439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5440 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5441 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5442 { (exit 1); exit 1; }; }
5445 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5446 echo "${ECHO_T}$ac_cv_build" >&6; }
5447 case $ac_cv_build in
5449 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5450 echo "$as_me: error: invalid value of canonical build" >&2;}
5451 { (exit 1); exit 1; }; };;
5454 ac_save_IFS=$IFS; IFS='-'
5460 # Remember, the first character of IFS is used to create $*,
5461 # except with old shells:
5464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5467 { echo "$as_me:$LINENO: checking host system type" >&5
5468 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5469 if test "${ac_cv_host+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 if test "x$host_alias" = x; then
5473 ac_cv_host=$ac_cv_build
5475 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5476 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5477 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5478 { (exit 1); exit 1; }; }
5482 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5483 echo "${ECHO_T}$ac_cv_host" >&6; }
5486 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5487 echo "$as_me: error: invalid value of canonical host" >&2;}
5488 { (exit 1); exit 1; }; };;
5491 ac_save_IFS=$IFS; IFS='-'
5497 # Remember, the first character of IFS is used to create $*,
5498 # except with old shells:
5501 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5504 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5505 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5506 if test "${ac_cv_path_SED+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5510 for ac_i in 1 2 3 4 5 6 7; do
5511 ac_script="$ac_script$as_nl$ac_script"
5513 echo "$ac_script" | sed 99q >conftest.sed
5514 $as_unset ac_script || ac_script=
5515 # Extract the first word of "sed gsed" to use in msg output
5516 if test -z "$SED"; then
5517 set dummy sed gsed; ac_prog_name=$2
5518 if test "${ac_cv_path_SED+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 ac_path_SED_found=false
5522 # Loop through the user's path and test for each of PROGNAME-LIST
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_prog in sed gsed; do
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5531 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5532 # Check for GNU ac_path_SED and select it if it is found.
5533 # Check for GNU $ac_path_SED
5534 case `"$ac_path_SED" --version 2>&1` in
5536 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5542 cat "conftest.in" "conftest.in" >"conftest.tmp"
5543 mv "conftest.tmp" "conftest.in"
5544 cp "conftest.in" "conftest.nl"
5545 echo '' >> "conftest.nl"
5546 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5548 ac_count=`expr $ac_count + 1`
5549 if test $ac_count -gt ${ac_path_SED_max-0}; then
5550 # Best one so far, save it but keep looking for a better one
5551 ac_cv_path_SED="$ac_path_SED"
5552 ac_path_SED_max=$ac_count
5554 # 10*(2^10) chars as input seems more than enough
5555 test $ac_count -gt 10 && break
5557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5561 $ac_path_SED_found && break 3
5571 SED="$ac_cv_path_SED"
5572 if test -z "$SED"; then
5573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5574 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5575 { (exit 1); exit 1; }; }
5583 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5584 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5585 SED="$ac_cv_path_SED"
5588 test -z "$SED" && SED=sed
5589 Xsed="$SED -e 1s/^X//"
5601 { echo "$as_me:$LINENO: checking for fgrep" >&5
5602 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5603 if test "${ac_cv_path_FGREP+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5607 then ac_cv_path_FGREP="$GREP -F"
5609 # Extract the first word of "fgrep" to use in msg output
5610 if test -z "$FGREP"; then
5611 set dummy fgrep; ac_prog_name=$2
5612 if test "${ac_cv_path_FGREP+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_path_FGREP_found=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621 test -z "$as_dir" && as_dir=.
5622 for ac_prog in fgrep; do
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5625 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5626 # Check for GNU ac_path_FGREP and select it if it is found.
5627 # Check for GNU $ac_path_FGREP
5628 case `"$ac_path_FGREP" --version 2>&1` in
5630 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5633 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5636 cat "conftest.in" "conftest.in" >"conftest.tmp"
5637 mv "conftest.tmp" "conftest.in"
5638 cp "conftest.in" "conftest.nl"
5639 echo 'FGREP' >> "conftest.nl"
5640 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642 ac_count=`expr $ac_count + 1`
5643 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5644 # Best one so far, save it but keep looking for a better one
5645 ac_cv_path_FGREP="$ac_path_FGREP"
5646 ac_path_FGREP_max=$ac_count
5648 # 10*(2^10) chars as input seems more than enough
5649 test $ac_count -gt 10 && break
5651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 $ac_path_FGREP_found && break 3
5665 FGREP="$ac_cv_path_FGREP"
5666 if test -z "$FGREP"; then
5667 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5668 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5669 { (exit 1); exit 1; }; }
5673 ac_cv_path_FGREP=$FGREP
5679 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5680 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5681 FGREP="$ac_cv_path_FGREP"
5684 test -z "$GREP" && GREP=grep
5704 # Check whether --with-gnu-ld was given.
5705 if test "${with_gnu_ld+set}" = set; then
5706 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5712 if test "$GCC" = yes; then
5713 # Check if gcc -print-prog-name=ld gives a path.
5714 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5715 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5718 # gcc leaves a trailing carriage return which upsets mingw
5719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5724 # Accept absolute paths.
5726 re_direlt='/[^/][^/]*/\.\./'
5727 # Canonicalize the pathname of ld
5728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5730 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5732 test -z "$LD" && LD="$ac_prog"
5735 # If it fails, then pretend we aren't using GCC.
5739 # If it is relative, then search for the first ld in PATH.
5743 elif test "$with_gnu_ld" = yes; then
5744 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5747 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5750 if test "${lt_cv_path_LD+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test -z "$LD"; then
5754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5755 for ac_dir in $PATH; do
5757 test -z "$ac_dir" && ac_dir=.
5758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5759 lt_cv_path_LD="$ac_dir/$ac_prog"
5760 # Check to see if the program is GNU ld. I'd rather use --version,
5761 # but apparently some variants of GNU ld only accept -v.
5762 # Break only if it was the GNU/non-GNU ld that we prefer.
5763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5764 *GNU* | *'with BFD'*)
5765 test "$with_gnu_ld" != no && break
5768 test "$with_gnu_ld" != yes && break
5775 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5780 if test -n "$LD"; then
5781 { echo "$as_me:$LINENO: result: $LD" >&5
5782 echo "${ECHO_T}$LD" >&6; }
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5787 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5788 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5789 { (exit 1); exit 1; }; }
5790 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5791 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5792 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5796 case `$LD -v 2>&1 </dev/null` in
5797 *GNU* | *'with BFD'*)
5798 lt_cv_prog_gnu_ld=yes
5801 lt_cv_prog_gnu_ld=no
5805 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5806 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5807 with_gnu_ld=$lt_cv_prog_gnu_ld
5817 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5818 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5819 if test "${lt_cv_path_NM+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 if test -n "$NM"; then
5823 # Let the user override the test.
5826 lt_nm_to_check="${ac_tool_prefix}nm"
5827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828 lt_nm_to_check="$lt_nm_to_check nm"
5830 for lt_tmp_nm in $lt_nm_to_check; do
5831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5834 test -z "$ac_dir" && ac_dir=.
5835 tmp_nm="$ac_dir/$lt_tmp_nm"
5836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837 # Check to see if the nm accepts a BSD-compat flag.
5838 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839 # nm: unknown option "B" ignored
5840 # Tru64's nm complains that /dev/null is an invalid object file
5841 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842 */dev/null* | *'Invalid file or object type'*)
5843 lt_cv_path_NM="$tmp_nm -B"
5847 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5849 lt_cv_path_NM="$tmp_nm -p"
5853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854 continue # so that we can try to find one that supports BSD flags
5863 : ${lt_cv_path_NM=no}
5866 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5867 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5868 if test "$lt_cv_path_NM" != "no"; then
5871 # Didn't find any BSD compatible name lister, look for dumpbin.
5872 if test -n "$ac_tool_prefix"; then
5873 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 if test -n "$DUMPBIN"; then
5883 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 DUMPBIN=$ac_cv_prog_DUMPBIN
5903 if test -n "$DUMPBIN"; then
5904 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5905 echo "${ECHO_T}$DUMPBIN" >&6; }
5907 { echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6; }
5912 test -n "$DUMPBIN" && break
5915 if test -z "$DUMPBIN"; then
5916 ac_ct_DUMPBIN=$DUMPBIN
5917 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5919 # Extract the first word of "$ac_prog", so it can be a program name with args.
5920 set dummy $ac_prog; ac_word=$2
5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 if test -n "$ac_ct_DUMPBIN"; then
5927 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5947 if test -n "$ac_ct_DUMPBIN"; then
5948 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5949 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 test -n "$ac_ct_DUMPBIN" && break
5959 if test "x$ac_ct_DUMPBIN" = x; then
5962 case $cross_compiling:$ac_tool_warned in
5964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5965 whose name does not start with the host triplet. If you think this
5966 configuration is useful to you, please write to autoconf@gnu.org." >&5
5967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5968 whose name does not start with the host triplet. If you think this
5969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5970 ac_tool_warned=yes ;;
5972 DUMPBIN=$ac_ct_DUMPBIN
5977 if test "$DUMPBIN" != ":"; then
5981 test -z "$NM" && NM=nm
5988 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5989 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5990 if test "${lt_cv_nm_interface+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 lt_cv_nm_interface="BSD nm"
5994 echo "int some_variable = 0;" > conftest.$ac_ext
5995 (eval echo "\"\$as_me:5995: $ac_compile\"" >&5)
5996 (eval "$ac_compile" 2>conftest.err)
5997 cat conftest.err >&5
5998 (eval echo "\"\$as_me:5998: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5999 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6000 cat conftest.err >&5
6001 (eval echo "\"\$as_me:6001: output\"" >&5)
6002 cat conftest.out >&5
6003 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6004 lt_cv_nm_interface="MS dumpbin"
6008 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6009 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6011 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6014 if test "$LN_S" = "ln -s"; then
6015 { echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6; }
6018 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019 echo "${ECHO_T}no, using $LN_S" >&6; }
6022 # find the maximum length of command line arguments
6023 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 # On DJGPP, this test can blow up pretty badly due to problems in libc
6034 # (any single argument exceeding 2000 bytes causes a buffer overrun
6035 # during glob expansion). Even if it were fixed, the result of this
6036 # check would be larger than it should be.
6037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6041 # Under GNU Hurd, this test is not required because there is
6042 # no limit to the length of command line arguments.
6043 # Libtool will interpret -1 as no limit whatsoever
6044 lt_cv_sys_max_cmd_len=-1;
6047 cygwin* | mingw* | cegcc*)
6048 # On Win9x/ME, this test blows up -- it succeeds, but takes
6049 # about 5 minutes as the teststring grows exponentially.
6050 # Worse, since 9x/ME are not pre-emptively multitasking,
6051 # you end up with a "frozen" computer, even though with patience
6052 # the test eventually succeeds (with a max line length of 256k).
6053 # Instead, let's just punt: use the minimum linelength reported by
6054 # all of the supported platforms: 8192 (on NT/2K/XP).
6055 lt_cv_sys_max_cmd_len=8192;
6059 # On AmigaOS with pdksh, this test takes hours, literally.
6060 # So we just punt and use a minimum line length of 8192.
6061 lt_cv_sys_max_cmd_len=8192;
6064 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6065 # This has been around since 386BSD, at least. Likely further.
6066 if test -x /sbin/sysctl; then
6067 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6068 elif test -x /usr/sbin/sysctl; then
6069 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6071 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6073 # And add a safety zone
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6080 lt_cv_sys_max_cmd_len=196608
6084 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086 # nice to cause kernel panics so lets avoid the loop below.
6087 # First set a reasonable default.
6088 lt_cv_sys_max_cmd_len=16384
6090 if test -x /sbin/sysconfig; then
6091 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6097 lt_cv_sys_max_cmd_len=102400
6099 sysv5* | sco5v6* | sysv4.2uw2*)
6100 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101 if test -n "$kargmax"; then
6102 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6104 lt_cv_sys_max_cmd_len=32768
6108 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6109 if test -n "$lt_cv_sys_max_cmd_len"; then
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6113 # Make teststring a little bigger before we do anything with it.
6114 # a 1K string should be a reasonable start.
6115 for i in 1 2 3 4 5 6 7 8 ; do
6116 teststring=$teststring$teststring
6118 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6119 # If test is not a shell built-in, we'll probably end up computing a
6120 # maximum length that is only half of the actual maximum length, but
6122 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6123 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6124 test $i != 17 # 1/2 MB should be enough
6127 teststring=$teststring$teststring
6129 # Only check the string length outside the loop.
6130 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6132 # Add a significant safety factor because C++ compilers can tack on
6133 # massive amounts of additional arguments before passing them to the
6134 # linker. It appears as though 1/2 is a usable value.
6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6142 if test -n $lt_cv_sys_max_cmd_len ; then
6143 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6144 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6146 { echo "$as_me:$LINENO: result: none" >&5
6147 echo "${ECHO_T}none" >&6; }
6149 max_cmd_len=$lt_cv_sys_max_cmd_len
6160 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6161 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6162 # Try some XSI features
6165 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6167 && eval 'test $(( 1 + 1 )) -eq 2 \
6168 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6170 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6171 echo "${ECHO_T}$xsi_shell" >&6; }
6174 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6175 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6177 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6179 && lt_shell_append=yes
6180 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6181 echo "${ECHO_T}$lt_shell_append" >&6; }
6184 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6194 # test EBCDIC or ASCII
6195 case `echo X|tr X '\101'` in
6196 A) # ASCII based system
6197 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6198 lt_SP2NL='tr \040 \012'
6199 lt_NL2SP='tr \015\012 \040\040'
6201 *) # EBCDIC based system
6202 lt_SP2NL='tr \100 \n'
6203 lt_NL2SP='tr \r\n \100\100'
6215 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6216 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6217 if test "${lt_cv_ld_reload_flag+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 lt_cv_ld_reload_flag='-r'
6222 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6223 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6224 reload_flag=$lt_cv_ld_reload_flag
6225 case $reload_flag in
6227 *) reload_flag=" $reload_flag" ;;
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6232 if test "$GCC" = yes; then
6233 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6235 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 if test -n "$OBJDUMP"; then
6257 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 OBJDUMP=$ac_cv_prog_OBJDUMP
6277 if test -n "$OBJDUMP"; then
6278 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6279 echo "${ECHO_T}$OBJDUMP" >&6; }
6281 { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6287 if test -z "$ac_cv_prog_OBJDUMP"; then
6288 ac_ct_OBJDUMP=$OBJDUMP
6289 # Extract the first word of "objdump", so it can be a program name with args.
6290 set dummy objdump; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 if test -n "$ac_ct_OBJDUMP"; then
6297 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6317 if test -n "$ac_ct_OBJDUMP"; then
6318 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6319 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6321 { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6325 if test "x$ac_ct_OBJDUMP" = x; then
6328 case $cross_compiling:$ac_tool_warned in
6330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6331 whose name does not start with the host triplet. If you think this
6332 configuration is useful to you, please write to autoconf@gnu.org." >&5
6333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet. If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6336 ac_tool_warned=yes ;;
6338 OBJDUMP=$ac_ct_OBJDUMP
6341 OBJDUMP="$ac_cv_prog_OBJDUMP"
6344 test -z "$OBJDUMP" && OBJDUMP=objdump
6354 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6355 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6356 if test "${lt_cv_deplibs_check_method+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 lt_cv_file_magic_cmd='$MAGIC_CMD'
6360 lt_cv_file_magic_test_file=
6361 lt_cv_deplibs_check_method='unknown'
6362 # Need to set the preceding variable on all platforms that support
6363 # interlibrary dependencies.
6364 # 'none' -- dependencies not supported.
6365 # `unknown' -- same as none, but documents that we really don't know.
6366 # 'pass_all' -- all dependencies passed with no checks.
6367 # 'test_compile' -- check by making test program.
6368 # 'file_magic [[regex]]' -- check by looking for files in library path
6369 # which responds to the $file_magic_cmd with a given extended regex.
6370 # If you have `file' or equivalent on your system and you're not sure
6371 # whether `pass_all' will *always* work, you probably want this one.
6375 lt_cv_deplibs_check_method=pass_all
6379 lt_cv_deplibs_check_method=pass_all
6383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6384 lt_cv_file_magic_cmd='/usr/bin/file -L'
6385 lt_cv_file_magic_test_file=/shlib/libc.so
6389 # func_win32_libid is a shell function defined in ltmain.sh
6390 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391 lt_cv_file_magic_cmd='func_win32_libid'
6395 # Base MSYS/MinGW do not provide the 'file' command needed by
6396 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6397 # unless we find 'file', for example because we are cross-compiling.
6398 if ( file / ) >/dev/null 2>&1; then
6399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400 lt_cv_file_magic_cmd='func_win32_libid'
6402 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6403 lt_cv_file_magic_cmd='$OBJDUMP -f'
6408 # use the weaker test based on 'objdump'. See mingw*.
6409 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6410 lt_cv_file_magic_cmd='$OBJDUMP -f'
6413 darwin* | rhapsody*)
6414 lt_cv_deplibs_check_method=pass_all
6417 freebsd* | dragonfly*)
6418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6421 # Not sure whether the presence of OpenBSD here was a mistake.
6422 # Let's accept both of them until this is cleared up.
6423 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6424 lt_cv_file_magic_cmd=/usr/bin/file
6425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6429 lt_cv_deplibs_check_method=pass_all
6434 lt_cv_deplibs_check_method=pass_all
6437 hpux10.20* | hpux11*)
6438 lt_cv_file_magic_cmd=/usr/bin/file
6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6442 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6445 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]'
6446 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6450 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6456 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6460 irix5* | irix6* | nonstopux*)
6462 *-32|*"-32 ") libmagic=32-bit;;
6463 *-n32|*"-n32 ") libmagic=N32;;
6464 *-64|*"-64 ") libmagic=64-bit;;
6465 *) libmagic=never-match;;
6467 lt_cv_deplibs_check_method=pass_all
6470 # This must be Linux ELF.
6471 linux* | k*bsd*-gnu)
6472 lt_cv_deplibs_check_method=pass_all
6476 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6485 lt_cv_file_magic_cmd=/usr/bin/file
6486 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6490 lt_cv_deplibs_check_method=pass_all
6494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6501 osf3* | osf4* | osf5*)
6502 lt_cv_deplibs_check_method=pass_all
6506 lt_cv_deplibs_check_method=pass_all
6510 lt_cv_deplibs_check_method=pass_all
6513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6514 lt_cv_deplibs_check_method=pass_all
6518 case $host_vendor in
6520 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]'
6521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6524 lt_cv_deplibs_check_method=pass_all
6527 lt_cv_file_magic_cmd='/bin/file'
6528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6531 lt_cv_file_magic_cmd='/bin/file'
6532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6533 lt_cv_file_magic_test_file=/lib/libc.so
6536 lt_cv_deplibs_check_method=pass_all
6539 lt_cv_deplibs_check_method=pass_all
6545 lt_cv_deplibs_check_method=pass_all
6550 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6552 file_magic_cmd=$lt_cv_file_magic_cmd
6553 deplibs_check_method=$lt_cv_deplibs_check_method
6554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6567 if test -n "$ac_tool_prefix"; then
6568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6569 set dummy ${ac_tool_prefix}ar; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_AR+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 if test -n "$AR"; then
6576 ac_cv_prog_AR="$AR" # Let the user override the test.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_AR="${ac_tool_prefix}ar"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 if test -n "$AR"; then
6597 { echo "$as_me:$LINENO: result: $AR" >&5
6598 echo "${ECHO_T}$AR" >&6; }
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6606 if test -z "$ac_cv_prog_AR"; then
6608 # Extract the first word of "ar", so it can be a program name with args.
6609 set dummy ar; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 if test -n "$ac_ct_AR"; then
6616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_ac_ct_AR="ar"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636 if test -n "$ac_ct_AR"; then
6637 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6638 echo "${ECHO_T}$ac_ct_AR" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6644 if test "x$ac_ct_AR" = x; then
6647 case $cross_compiling:$ac_tool_warned in
6649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet. If you think this
6651 configuration is useful to you, please write to autoconf@gnu.org." >&5
6652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet. If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6655 ac_tool_warned=yes ;;
6663 test -z "$AR" && AR=ar
6664 test -z "$AR_FLAGS" && AR_FLAGS=cru
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}strip; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_prog_STRIP+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 if test -n "$STRIP"; then
6685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 STRIP=$ac_cv_prog_STRIP
6705 if test -n "$STRIP"; then
6706 { echo "$as_me:$LINENO: result: $STRIP" >&5
6707 echo "${ECHO_T}$STRIP" >&6; }
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6715 if test -z "$ac_cv_prog_STRIP"; then
6717 # Extract the first word of "strip", so it can be a program name with args.
6718 set dummy strip; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 if test -n "$ac_ct_STRIP"; then
6725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_STRIP="strip"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6745 if test -n "$ac_ct_STRIP"; then
6746 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6747 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6753 if test "x$ac_ct_STRIP" = x; then
6756 case $cross_compiling:$ac_tool_warned in
6758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet. If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&5
6761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet. If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6764 ac_tool_warned=yes ;;
6769 STRIP="$ac_cv_prog_STRIP"
6772 test -z "$STRIP" && STRIP=:
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_prog_RANLIB+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 if test -n "$RANLIB"; then
6788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 RANLIB=$ac_cv_prog_RANLIB
6808 if test -n "$RANLIB"; then
6809 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6810 echo "${ECHO_T}$RANLIB" >&6; }
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6818 if test -z "$ac_cv_prog_RANLIB"; then
6819 ac_ct_RANLIB=$RANLIB
6820 # Extract the first word of "ranlib", so it can be a program name with args.
6821 set dummy ranlib; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 if test -n "$ac_ct_RANLIB"; then
6828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_ac_ct_RANLIB="ranlib"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6848 if test -n "$ac_ct_RANLIB"; then
6849 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6850 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6856 if test "x$ac_ct_RANLIB" = x; then
6859 case $cross_compiling:$ac_tool_warned in
6861 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&5
6864 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet. If you think this
6866 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6867 ac_tool_warned=yes ;;
6869 RANLIB=$ac_ct_RANLIB
6872 RANLIB="$ac_cv_prog_RANLIB"
6875 test -z "$RANLIB" && RANLIB=:
6882 # Determine commands to create old-style static archives.
6883 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6884 old_postinstall_cmds='chmod 644 $oldlib'
6885 old_postuninstall_cmds=
6887 if test -n "$RANLIB"; then
6890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6896 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6932 # If no C compiler was specified, use CC.
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6938 # Allow CC to be a program name with arguments.
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6944 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6945 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6958 # Define system-specific variables.
6963 cygwin* | mingw* | pw32* | cegcc*)
6964 symcode='[ABCDGISTW]'
6967 if test "$host_cpu" = ia64; then
6968 symcode='[ABCDEGRST]'
6972 symcode='[BCDEGRST]'
6975 symcode='[BCDEGQRST]'
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997 symcode='[ABCDGIRSTW]' ;;
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7007 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'"
7009 # Handle CRLF in mingw tool chain
7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021 symxfrm="\\1 $ac_symprfx\\2 \\2"
7023 # Write the raw and C identifiers.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025 # Fake it for dumpbin and say T for any non-static function
7026 # and D for any global variable.
7027 # Also find C++ and __fastcall symbols from MSVC++,
7028 # which start with @ or ?.
7029 lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 " {last_section=section; section=\$ 3};"\
7031 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 " \$ 0!~/External *\|/{next};"\
7033 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 " {if(hide[section]) next};"\
7035 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 " ' prfx=^$ac_symprfx"
7041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7044 # Check to see that the pipe works correctly.
7048 cat > conftest.$ac_ext <<_LT_EOF
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062 (eval $ac_compile) 2>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; then
7066 # Now try to grab the symbols.
7068 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7069 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && test -s "$nlist"; then
7073 # Try sorting and uniquifying the output.
7074 if sort "$nlist" | uniq > "$nlist"T; then
7075 mv -f "$nlist"T "$nlist"
7080 # Make sure that we snagged all the symbols we need.
7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083 cat <<_LT_EOF > conftest.$ac_ext
7089 # Now generate the symbol file.
7090 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7092 cat <<_LT_EOF >> conftest.$ac_ext
7094 /* The mapping between symbol names and symbols. */
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7101 { "@PROGRAM@", (void *) 0 },
7103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104 cat <<\_LT_EOF >> conftest.$ac_ext
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111 return lt__PROGRAM__LTX_preloaded_symbols;
7119 # Now try linking the two files.
7120 mv conftest.$ac_objext conftstm.$ac_objext
7121 lt_save_LIBS="$LIBS"
7122 lt_save_CFLAGS="$CFLAGS"
7123 LIBS="conftstm.$ac_objext"
7124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7132 LIBS="$lt_save_LIBS"
7133 CFLAGS="$lt_save_CFLAGS"
7135 echo "cannot find nm_test_func in $nlist" >&5
7138 echo "cannot find nm_test_var in $nlist" >&5
7141 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7144 echo "$progname: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 rm -rf conftest* conftst*
7149 # Do not use the global_symbol_pipe unless it works.
7150 if test "$pipe_works" = yes; then
7153 lt_cv_sys_global_symbol_pipe=
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160 lt_cv_sys_global_symbol_to_cdecl=
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163 { echo "$as_me:$LINENO: result: failed" >&5
7164 echo "${ECHO_T}failed" >&6; }
7166 { echo "$as_me:$LINENO: result: ok" >&5
7167 echo "${ECHO_T}ok" >&6; }
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then
7193 enableval=$enable_libtool_lock;
7196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7198 # Some flags need to be propagated to the compiler or linker for good
7202 # Find out which ABI we are using.
7203 echo 'int i;' > conftest.$ac_ext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; then
7209 case `/usr/bin/file conftest.$ac_objext` in
7221 # Find out which ABI we are using.
7222 echo '#line 7222 "configure"' > conftest.$ac_ext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224 (eval $ac_compile) 2>&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; then
7228 if test "$lt_cv_prog_gnu_ld" = yes; then
7229 case `/usr/bin/file conftest.$ac_objext` in
7231 LD="${LD-ld} -melf32bsmip"
7234 LD="${LD-ld} -melf32bmipn32"
7237 LD="${LD-ld} -melf64bmip"
7241 case `/usr/bin/file conftest.$ac_objext` in
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259 # Find out which ABI we are using.
7260 echo 'int i;' > conftest.$ac_ext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262 (eval $ac_compile) 2>&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; then
7266 case `/usr/bin/file conftest.o` in
7269 x86_64-*kfreebsd*-gnu)
7270 LD="${LD-ld} -m elf_i386_fbsd"
7273 LD="${LD-ld} -m elf_i386"
7275 ppc64-*linux*|powerpc64-*linux*)
7276 LD="${LD-ld} -m elf32ppclinux"
7279 LD="${LD-ld} -m elf_s390"
7282 LD="${LD-ld} -m elf32_sparc"
7288 x86_64-*kfreebsd*-gnu)
7289 LD="${LD-ld} -m elf_x86_64_fbsd"
7292 LD="${LD-ld} -m elf_x86_64"
7294 ppc*-*linux*|powerpc*-*linux*)
7295 LD="${LD-ld} -m elf64ppc"
7297 s390*-*linux*|s390*-*tpf*)
7298 LD="${LD-ld} -m elf64_s390"
7301 LD="${LD-ld} -m elf64_sparc"
7311 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7312 SAVE_CFLAGS="$CFLAGS"
7313 CFLAGS="$CFLAGS -belf"
7314 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7316 if test "${lt_cv_cc_needs_belf+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7325 cat >conftest.$ac_ext <<_ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_link") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest$ac_exeext &&
7357 $as_test_x conftest$ac_exeext; then
7358 lt_cv_cc_needs_belf=yes
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7363 lt_cv_cc_needs_belf=no
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367 conftest$ac_exeext conftest.$ac_ext
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7376 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7379 CFLAGS="$SAVE_CFLAGS"
7383 # Find out which ABI we are using.
7384 echo 'int i;' > conftest.$ac_ext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7386 (eval $ac_compile) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; then
7390 case `/usr/bin/file conftest.o` in
7392 case $lt_cv_prog_gnu_ld in
7393 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7395 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7407 need_locks="$enable_libtool_lock"
7411 rhapsody* | darwin*)
7412 if test -n "$ac_tool_prefix"; then
7413 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 if test -n "$DSYMUTIL"; then
7421 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7441 if test -n "$DSYMUTIL"; then
7442 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7443 echo "${ECHO_T}$DSYMUTIL" >&6; }
7445 { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7451 if test -z "$ac_cv_prog_DSYMUTIL"; then
7452 ac_ct_DSYMUTIL=$DSYMUTIL
7453 # Extract the first word of "dsymutil", so it can be a program name with args.
7454 set dummy dsymutil; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 if test -n "$ac_ct_DSYMUTIL"; then
7461 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7481 if test -n "$ac_ct_DSYMUTIL"; then
7482 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7483 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7489 if test "x$ac_ct_DSYMUTIL" = x; then
7492 case $cross_compiling:$ac_tool_warned in
7494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7495 whose name does not start with the host triplet. If you think this
7496 configuration is useful to you, please write to autoconf@gnu.org." >&5
7497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet. If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7500 ac_tool_warned=yes ;;
7502 DSYMUTIL=$ac_ct_DSYMUTIL
7505 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 if test -n "$NMEDIT"; then
7517 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 NMEDIT=$ac_cv_prog_NMEDIT
7537 if test -n "$NMEDIT"; then
7538 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7539 echo "${ECHO_T}$NMEDIT" >&6; }
7541 { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7547 if test -z "$ac_cv_prog_NMEDIT"; then
7548 ac_ct_NMEDIT=$NMEDIT
7549 # Extract the first word of "nmedit", so it can be a program name with args.
7550 set dummy nmedit; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 if test -n "$ac_ct_NMEDIT"; then
7557 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7577 if test -n "$ac_ct_NMEDIT"; then
7578 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7579 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7585 if test "x$ac_ct_NMEDIT" = x; then
7588 case $cross_compiling:$ac_tool_warned in
7590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7591 whose name does not start with the host triplet. If you think this
7592 configuration is useful to you, please write to autoconf@gnu.org." >&5
7593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet. If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7596 ac_tool_warned=yes ;;
7598 NMEDIT=$ac_ct_NMEDIT
7601 NMEDIT="$ac_cv_prog_NMEDIT"
7604 if test -n "$ac_tool_prefix"; then
7605 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_prog_LIPO+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 if test -n "$LIPO"; then
7613 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 LIPO=$ac_cv_prog_LIPO
7633 if test -n "$LIPO"; then
7634 { echo "$as_me:$LINENO: result: $LIPO" >&5
7635 echo "${ECHO_T}$LIPO" >&6; }
7637 { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7643 if test -z "$ac_cv_prog_LIPO"; then
7645 # Extract the first word of "lipo", so it can be a program name with args.
7646 set dummy lipo; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 if test -n "$ac_ct_LIPO"; then
7653 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_prog_ac_ct_LIPO="lipo"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7673 if test -n "$ac_ct_LIPO"; then
7674 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7675 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7681 if test "x$ac_ct_LIPO" = x; then
7684 case $cross_compiling:$ac_tool_warned in
7686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7687 whose name does not start with the host triplet. If you think this
7688 configuration is useful to you, please write to autoconf@gnu.org." >&5
7689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7690 whose name does not start with the host triplet. If you think this
7691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7692 ac_tool_warned=yes ;;
7697 LIPO="$ac_cv_prog_LIPO"
7700 if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}otool; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_prog_OTOOL+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 if test -n "$OTOOL"; then
7709 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 OTOOL=$ac_cv_prog_OTOOL
7729 if test -n "$OTOOL"; then
7730 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7731 echo "${ECHO_T}$OTOOL" >&6; }
7733 { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7739 if test -z "$ac_cv_prog_OTOOL"; then
7741 # Extract the first word of "otool", so it can be a program name with args.
7742 set dummy otool; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 if test -n "$ac_ct_OTOOL"; then
7749 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7758 ac_cv_prog_ac_ct_OTOOL="otool"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7769 if test -n "$ac_ct_OTOOL"; then
7770 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7771 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7773 { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7777 if test "x$ac_ct_OTOOL" = x; then
7780 case $cross_compiling:$ac_tool_warned in
7782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7783 whose name does not start with the host triplet. If you think this
7784 configuration is useful to you, please write to autoconf@gnu.org." >&5
7785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7786 whose name does not start with the host triplet. If you think this
7787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7788 ac_tool_warned=yes ;;
7793 OTOOL="$ac_cv_prog_OTOOL"
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 if test -n "$OTOOL64"; then
7805 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 OTOOL64=$ac_cv_prog_OTOOL64
7825 if test -n "$OTOOL64"; then
7826 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7827 echo "${ECHO_T}$OTOOL64" >&6; }
7829 { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7835 if test -z "$ac_cv_prog_OTOOL64"; then
7836 ac_ct_OTOOL64=$OTOOL64
7837 # Extract the first word of "otool64", so it can be a program name with args.
7838 set dummy otool64; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 if test -n "$ac_ct_OTOOL64"; then
7845 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_prog_ac_ct_OTOOL64="otool64"
7855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7865 if test -n "$ac_ct_OTOOL64"; then
7866 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7867 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7869 { echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6; }
7873 if test "x$ac_ct_OTOOL64" = x; then
7876 case $cross_compiling:$ac_tool_warned in
7878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7879 whose name does not start with the host triplet. If you think this
7880 configuration is useful to you, please write to autoconf@gnu.org." >&5
7881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7882 whose name does not start with the host triplet. If you think this
7883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7884 ac_tool_warned=yes ;;
7886 OTOOL64=$ac_ct_OTOOL64
7889 OTOOL64="$ac_cv_prog_OTOOL64"
7918 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7919 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7920 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 lt_cv_apple_cc_single_mod=no
7924 if test -z "${LT_MULTI_MODULE}"; then
7925 # By default we will add the -single_module flag. You can override
7926 # by either setting the environment variable LT_MULTI_MODULE
7927 # non-empty at configure time, or by adding -multi_module to the
7929 rm -rf libconftest.dylib*
7930 echo "int foo(void){return 1;}" > conftest.c
7931 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7932 -dynamiclib -Wl,-single_module conftest.c" >&5
7933 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7936 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7937 lt_cv_apple_cc_single_mod=yes
7939 cat conftest.err >&5
7941 rm -rf libconftest.dylib*
7945 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7946 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7947 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7948 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7949 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 lt_cv_ld_exported_symbols_list=no
7953 save_LDFLAGS=$LDFLAGS
7954 echo "_main" > conftest.sym
7955 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_link") 2>conftest.er1
7980 grep -v '^ *+' conftest.er1 >conftest.err
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest$ac_exeext &&
7988 $as_test_x conftest$ac_exeext; then
7989 lt_cv_ld_exported_symbols_list=yes
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 lt_cv_ld_exported_symbols_list=no
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998 conftest$ac_exeext conftest.$ac_ext
7999 LDFLAGS="$save_LDFLAGS"
8002 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8003 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8005 rhapsody* | darwin1.[012])
8006 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009 darwin*) # darwin 5.x on
8010 # if running on 10.5 or later, the deployment target defaults
8011 # to the OS version, if on x86, and 10.4, the deployment
8012 # target defaults to 10.4. Don't you love it?
8013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8014 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8024 _lt_dar_single_mod='$single_module'
8026 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8027 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8031 if test "$DSYMUTIL" != ":"; then
8032 _lt_dsymutil='~$DSYMUTIL $lib || :'
8039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8041 if test "${ac_cv_header_stdc+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_header_stdc=yes
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 ac_cv_header_stdc=no
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 if test $ac_cv_header_stdc = yes; then
8091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102 $EGREP "memchr" >/dev/null 2>&1; then
8105 ac_cv_header_stdc=no
8111 if test $ac_cv_header_stdc = yes; then
8112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8123 $EGREP "free" >/dev/null 2>&1; then
8126 ac_cv_header_stdc=no
8132 if test $ac_cv_header_stdc = yes; then
8133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8134 if test "$cross_compiling" = yes; then
8137 cat >conftest.$ac_ext <<_ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8145 #if ((' ' & 0x0FF) == 0x020)
8146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8149 # define ISLOWER(c) \
8150 (('a' <= (c) && (c) <= 'i') \
8151 || ('j' <= (c) && (c) <= 'r') \
8152 || ('s' <= (c) && (c) <= 'z'))
8153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8161 for (i = 0; i < 256; i++)
8162 if (XOR (islower (i), ISLOWER (i))
8163 || toupper (i) != TOUPPER (i))
8168 rm -f conftest$ac_exeext
8169 if { (ac_try="$ac_link"
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_link") 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8190 echo "$as_me: program exited with status $ac_status" >&5
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_header_stdc=no
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8204 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8207 cat >>confdefs.h <<\_ACEOF
8208 #define STDC_HEADERS 1
8213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8224 inttypes.h stdint.h unistd.h
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 $ac_includes_default
8240 #include <$ac_header>
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest.$ac_objext; then
8259 eval "$as_ac_Header=yes"
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 eval "$as_ac_Header=no"
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270 { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273 cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8283 for ac_header in dlfcn.h
8285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 cat >conftest.$ac_ext <<_ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8299 #include <$ac_header>
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8310 grep -v '^ *+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then
8318 eval "$as_ac_Header=yes"
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 eval "$as_ac_Header=no"
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8343 ac_cpp='$CXXCPP $CPPFLAGS'
8344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8347 if test -z "$CXX"; then
8348 if test -n "$CCC"; then
8351 if test -n "$ac_tool_prefix"; then
8352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_CXX+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 if test -n "$CXX"; then
8362 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 if test -n "$CXX"; then
8383 { echo "$as_me:$LINENO: result: $CXX" >&5
8384 echo "${ECHO_T}$CXX" >&6; }
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8391 test -n "$CXX" && break
8394 if test -z "$CXX"; then
8396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 if test -n "$ac_ct_CXX"; then
8406 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 ac_cv_prog_ac_ct_CXX="$ac_prog"
8416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8426 if test -n "$ac_ct_CXX"; then
8427 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8428 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8430 { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8435 test -n "$ac_ct_CXX" && break
8438 if test "x$ac_ct_CXX" = x; then
8441 case $cross_compiling:$ac_tool_warned in
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet. If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet. If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8457 # Provide some information about the compiler.
8458 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8459 ac_compiler=`set X $ac_compile; echo $2`
8460 { (ac_try="$ac_compiler --version >&5"
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compiler --version >&5") 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }
8470 { (ac_try="$ac_compiler -v >&5"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compiler -v >&5") 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }
8480 { (ac_try="$ac_compiler -V >&5"
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_compiler -V >&5") 2>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }
8491 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8492 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8493 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_compile") 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } && {
8528 test -z "$ac_cxx_werror_flag" ||
8529 test ! -s conftest.err
8530 } && test -s conftest.$ac_objext; then
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8543 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8544 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8545 GXX=`test $ac_compiler_gnu = yes && echo yes`
8546 ac_test_CXXFLAGS=${CXXFLAGS+set}
8547 ac_save_CXXFLAGS=$CXXFLAGS
8548 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8549 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8550 if test "${ac_cv_prog_cxx_g+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8554 ac_cxx_werror_flag=yes
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_cxx_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.$ac_objext; then
8589 ac_cv_prog_cxx_g=yes
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_cxx_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.$ac_objext; then
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_compile") 2>conftest.er1
8658 grep -v '^ *+' conftest.er1 >conftest.err
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_cxx_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest.$ac_objext; then
8666 ac_cv_prog_cxx_g=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8683 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8684 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8685 if test "$ac_test_CXXFLAGS" = set; then
8686 CXXFLAGS=$ac_save_CXXFLAGS
8687 elif test $ac_cv_prog_cxx_g = yes; then
8688 if test "$GXX" = yes; then
8694 if test "$GXX" = yes; then
8701 ac_cpp='$CPP $CPPFLAGS'
8702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8706 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8707 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8708 (test "X$CXX" != "Xg++"))) ; then
8710 ac_cpp='$CXXCPP $CPPFLAGS'
8711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8714 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8715 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8716 if test -z "$CXXCPP"; then
8717 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 # Double quotes because CXXCPP needs to be expanded
8721 for CXXCPP in "$CXX -E" "/lib/cpp"
8724 for ac_cxx_preproc_warn_flag in '' yes
8726 # Use a header file that comes with gcc, so configuring glibc
8727 # with a fresh cross-compiler works.
8728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729 # <limits.h> exists even on freestanding compilers.
8730 # On the NeXT, cc -E runs the code through the compiler's parser,
8731 # not just through cpp. "Syntax error" is here to catch this case.
8732 cat >conftest.$ac_ext <<_ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8739 # include <limits.h>
8741 # include <assert.h>
8745 if { (ac_try="$ac_cpp conftest.$ac_ext"
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } >/dev/null && {
8758 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8759 test ! -s conftest.err
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 # Broken: fails on valid input.
8770 rm -f conftest.err conftest.$ac_ext
8772 # OK, works on sane cases. Now check whether nonexistent headers
8773 # can be detected and how.
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 #include <ac_nonexistent.h>
8782 if { (ac_try="$ac_cpp conftest.$ac_ext"
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8790 grep -v '^ *+' conftest.er1 >conftest.err
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } >/dev/null && {
8795 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8796 test ! -s conftest.err
8798 # Broken: success on invalid input.
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 # Passes both tests.
8809 rm -f conftest.err conftest.$ac_ext
8812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8813 rm -f conftest.err conftest.$ac_ext
8814 if $ac_preproc_ok; then
8819 ac_cv_prog_CXXCPP=$CXXCPP
8822 CXXCPP=$ac_cv_prog_CXXCPP
8824 ac_cv_prog_CXXCPP=$CXXCPP
8826 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8827 echo "${ECHO_T}$CXXCPP" >&6; }
8829 for ac_cxx_preproc_warn_flag in '' yes
8831 # Use a header file that comes with gcc, so configuring glibc
8832 # with a fresh cross-compiler works.
8833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8834 # <limits.h> exists even on freestanding compilers.
8835 # On the NeXT, cc -E runs the code through the compiler's parser,
8836 # not just through cpp. "Syntax error" is here to catch this case.
8837 cat >conftest.$ac_ext <<_ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8844 # include <limits.h>
8846 # include <assert.h>
8850 if { (ac_try="$ac_cpp conftest.$ac_ext"
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8858 grep -v '^ *+' conftest.er1 >conftest.err
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } >/dev/null && {
8863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8864 test ! -s conftest.err
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8871 # Broken: fails on valid input.
8875 rm -f conftest.err conftest.$ac_ext
8877 # OK, works on sane cases. Now check whether nonexistent headers
8878 # can be detected and how.
8879 cat >conftest.$ac_ext <<_ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 #include <ac_nonexistent.h>
8887 if { (ac_try="$ac_cpp conftest.$ac_ext"
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8895 grep -v '^ *+' conftest.er1 >conftest.err
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } >/dev/null && {
8900 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8901 test ! -s conftest.err
8903 # Broken: success on invalid input.
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 # Passes both tests.
8914 rm -f conftest.err conftest.$ac_ext
8917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8918 rm -f conftest.err conftest.$ac_ext
8919 if $ac_preproc_ok; then
8922 _lt_caught_CXX_error=yes
8926 ac_cpp='$CPP $CPPFLAGS'
8927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8932 _lt_caught_CXX_error=yes
8940 # Check whether --enable-shared was given.
8941 if test "${enable_shared+set}" = set; then
8942 enableval=$enable_shared; p=${PACKAGE-default}
8944 yes) enable_shared=yes ;;
8945 no) enable_shared=no ;;
8948 # Look at the argument we got. We use all the common list separators.
8949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8950 for pkg in $enableval; do
8952 if test "X$pkg" = "X$p"; then
8969 # Check whether --enable-static was given.
8970 if test "${enable_static+set}" = set; then
8971 enableval=$enable_static; p=${PACKAGE-default}
8973 yes) enable_static=yes ;;
8974 no) enable_static=no ;;
8977 # Look at the argument we got. We use all the common list separators.
8978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8979 for pkg in $enableval; do
8981 if test "X$pkg" = "X$p"; then
9010 # Check whether --with-pic was given.
9011 if test "${with_pic+set}" = set; then
9012 withval=$with_pic; pic_mode="$withval"
9018 test -z "$pic_mode" && pic_mode=default
9026 # Check whether --enable-fast-install was given.
9027 if test "${enable_fast_install+set}" = set; then
9028 enableval=$enable_fast_install; p=${PACKAGE-default}
9030 yes) enable_fast_install=yes ;;
9031 no) enable_fast_install=no ;;
9033 enable_fast_install=no
9034 # Look at the argument we got. We use all the common list separators.
9035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9036 for pkg in $enableval; do
9038 if test "X$pkg" = "X$p"; then
9039 enable_fast_install=yes
9046 enable_fast_install=yes
9059 # This can be used to rebuild libtool when needed
9060 LIBTOOL_DEPS="$ltmain"
9062 # Always use our own libtool.
9063 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9089 test -z "$LN_S" && LN_S="ln -s"
9104 if test -n "${ZSH_VERSION+set}" ; then
9105 setopt NO_GLOB_SUBST
9108 { echo "$as_me:$LINENO: checking for objdir" >&5
9109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9110 if test "${lt_cv_objdir+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 rm -f .libs 2>/dev/null
9114 mkdir .libs 2>/dev/null
9115 if test -d .libs; then
9118 # MS-DOS does not allow filenames that begin with a dot.
9121 rmdir .libs 2>/dev/null
9123 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9124 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9125 objdir=$lt_cv_objdir
9131 cat >>confdefs.h <<_ACEOF
9132 #define LT_OBJDIR "$lt_cv_objdir/"
9153 # AIX sometimes has problems with the GCC collect2 program. For some
9154 # reason, if we set the COLLECT_NAMES environment variable, the problems
9155 # vanish in a puff of smoke.
9156 if test "X${COLLECT_NAMES+set}" != Xset; then
9158 export COLLECT_NAMES
9163 # Sed substitution that helps us do robust quoting. It backslashifies
9164 # metacharacters that are still active within double-quoted strings.
9165 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9167 # Same as above, but do not quote variable references.
9168 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9170 # Sed substitution to delay expansion of an escaped shell variable in a
9171 # double_quote_subst'ed string.
9172 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9174 # Sed substitution to delay expansion of an escaped single quote.
9175 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9177 # Sed substitution to avoid accidental globbing in evaled expressions
9178 no_glob_subst='s/\*/\\\*/g'
9182 can_build_shared=yes
9184 # All known linkers require a `.a' archive for static linking (except MSVC,
9185 # which needs '.lib').
9188 with_gnu_ld="$lt_cv_prog_gnu_ld"
9191 old_CFLAGS="$CFLAGS"
9193 # Set sane defaults for various variables
9194 test -z "$CC" && CC=cc
9195 test -z "$LTCC" && LTCC=$CC
9196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9197 test -z "$LD" && LD=ld
9198 test -z "$ac_objext" && ac_objext=o
9200 for cc_temp in $compiler""; do
9202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9208 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9211 # Only perform the check for file, if the check method requires it
9212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9213 case $deplibs_check_method in
9215 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9216 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9217 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9218 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9226 lt_save_MAGIC_CMD="$MAGIC_CMD"
9227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9229 for ac_dir in $ac_dummy; do
9231 test -z "$ac_dir" && ac_dir=.
9232 if test -f $ac_dir/${ac_tool_prefix}file; then
9233 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9234 if test -n "$file_magic_test_file"; then
9235 case $deplibs_check_method in
9237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9240 $EGREP "$file_magic_regex" > /dev/null; then
9245 *** Warning: the command libtool uses to detect shared libraries,
9246 *** $file_magic_cmd, produces output that libtool cannot recognize.
9247 *** The result is that libtool may fail to recognize shared libraries
9248 *** as such. This will affect the creation of libtool libraries that
9249 *** depend on shared libraries, but programs linked with such libtool
9250 *** libraries will work regardless of this problem. Nevertheless, you
9251 *** may want to report the problem to your system manager and/or to
9252 *** bug-libtool@gnu.org
9262 MAGIC_CMD="$lt_save_MAGIC_CMD"
9267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268 if test -n "$MAGIC_CMD"; then
9269 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9270 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9272 { echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6; }
9280 if test -z "$lt_cv_path_MAGIC_CMD"; then
9281 if test -n "$ac_tool_prefix"; then
9282 { echo "$as_me:$LINENO: checking for file" >&5
9283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9292 lt_save_MAGIC_CMD="$MAGIC_CMD"
9293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9295 for ac_dir in $ac_dummy; do
9297 test -z "$ac_dir" && ac_dir=.
9298 if test -f $ac_dir/file; then
9299 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9300 if test -n "$file_magic_test_file"; then
9301 case $deplibs_check_method in
9303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9306 $EGREP "$file_magic_regex" > /dev/null; then
9311 *** Warning: the command libtool uses to detect shared libraries,
9312 *** $file_magic_cmd, produces output that libtool cannot recognize.
9313 *** The result is that libtool may fail to recognize shared libraries
9314 *** as such. This will affect the creation of libtool libraries that
9315 *** depend on shared libraries, but programs linked with such libtool
9316 *** libraries will work regardless of this problem. Nevertheless, you
9317 *** may want to report the problem to your system manager and/or to
9318 *** bug-libtool@gnu.org
9328 MAGIC_CMD="$lt_save_MAGIC_CMD"
9333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334 if test -n "$MAGIC_CMD"; then
9335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9338 { echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6; }
9352 # Use C for the default configuration in the libtool script
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9362 # Source file extension for C test sources.
9365 # Object file extension for compiled C test sources.
9369 # Code to be used in simple compile tests
9370 lt_simple_compile_test_code="int some_variable = 0;"
9372 # Code to be used in simple link tests
9373 lt_simple_link_test_code='int main(){return(0);}'
9381 # If no C compiler was specified, use CC.
9384 # If no C compiler flags were specified, use CFLAGS.
9385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9387 # Allow CC to be a program name with arguments.
9390 # Save the default compiler, since it gets overwritten when the other
9391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9392 compiler_DEFAULT=$CC
9394 # save warnings/boilerplate of simple test code
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_compiler_boilerplate=`cat conftest.err`
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_linker_boilerplate=`cat conftest.err`
9409 ## There is no encapsulation within the following macros, do not change
9410 ## the running order or otherwise move them around unless you know exactly
9411 ## what you are doing...
9412 if test -n "$compiler"; then
9414 lt_prog_compiler_no_builtin_flag=
9416 if test "$GCC" = yes; then
9417 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9419 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9420 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9421 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 lt_cv_prog_compiler_rtti_exceptions=no
9425 ac_outfile=conftest.$ac_objext
9426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9427 lt_compiler_flag="-fno-rtti -fno-exceptions"
9428 # Insert the option either (1) after the last *FLAGS variable, or
9429 # (2) before a word containing "conftest.", or (3) at the end.
9430 # Note that $ac_compile itself does not contain backslashes and begins
9431 # with a dollar sign (not a hyphen), so the echo should work correctly.
9432 # The option is referenced via a variable to avoid confusing sed.
9433 lt_compile=`echo "$ac_compile" | $SED \
9434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9436 -e 's:$: $lt_compiler_flag:'`
9437 (eval echo "\"\$as_me:9437: $lt_compile\"" >&5)
9438 (eval "$lt_compile" 2>conftest.err)
9440 cat conftest.err >&5
9441 echo "$as_me:9441: \$? = $ac_status" >&5
9442 if (exit $ac_status) && test -s "$ac_outfile"; then
9443 # The compiler can only warn and ignore the option if not recognized
9444 # So say no if there are warnings other than the usual output.
9445 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9448 lt_cv_prog_compiler_rtti_exceptions=yes
9454 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9455 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9458 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9470 lt_prog_compiler_wl=
9471 lt_prog_compiler_pic=
9472 lt_prog_compiler_static=
9474 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9477 if test "$GCC" = yes; then
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_static='-static'
9483 # All AIX code is PIC.
9484 if test "$host_cpu" = ia64; then
9485 # AIX 5 now supports IA64 processor
9486 lt_prog_compiler_static='-Bstatic'
9493 # see comment about AmigaOS4 .so support
9494 lt_prog_compiler_pic='-fPIC'
9497 # FIXME: we need at least 68020 code to build shared libraries, but
9498 # adding the `-m68020' flag to GCC prevents building anything better,
9500 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9505 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9506 # PIC is the default for these OSes.
9509 mingw* | cygwin* | pw32* | os2* | cegcc*)
9510 # This hack is so that the source file can tell whether it is being
9511 # built for inclusion in a dll (and should export symbols for example).
9512 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9513 # (--disable-auto-import) libraries
9514 lt_prog_compiler_pic='-DDLL_EXPORT'
9517 darwin* | rhapsody*)
9518 # PIC is the default on this platform
9519 # Common symbols not allowed in MH_DYLIB files
9520 lt_prog_compiler_pic='-fno-common'
9524 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9525 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9526 # sets the default TLS model and affects inlining.
9532 lt_prog_compiler_pic='-fPIC'
9538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9539 # Instead, we relocate shared libraries at runtime.
9543 # Just because we use GCC doesn't mean we suddenly get shared libraries
9544 # on systems that don't support them.
9545 lt_prog_compiler_can_build_shared=no
9550 # QNX uses GNU C++, but need to define -shared option too, otherwise
9552 lt_prog_compiler_pic='-fPIC -shared'
9556 if test -d /usr/nec; then
9557 lt_prog_compiler_pic=-Kconform_pic
9562 lt_prog_compiler_pic='-fPIC'
9566 # PORTME Check for flag to pass linker flags through the system compiler.
9569 lt_prog_compiler_wl='-Wl,'
9570 if test "$host_cpu" = ia64; then
9571 # AIX 5 now supports IA64 processor
9572 lt_prog_compiler_static='-Bstatic'
9574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9578 mingw* | cygwin* | pw32* | os2* | cegcc*)
9579 # This hack is so that the source file can tell whether it is being
9580 # built for inclusion in a dll (and should export symbols for example).
9581 lt_prog_compiler_pic='-DDLL_EXPORT'
9584 hpux9* | hpux10* | hpux11*)
9585 lt_prog_compiler_wl='-Wl,'
9586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9593 lt_prog_compiler_pic='+Z'
9596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9597 lt_prog_compiler_static='${wl}-a ${wl}archive'
9600 irix5* | irix6* | nonstopux*)
9601 lt_prog_compiler_wl='-Wl,'
9602 # PIC (with -KPIC) is the default.
9603 lt_prog_compiler_static='-non_shared'
9606 linux* | k*bsd*-gnu)
9607 case $cc_basename in
9608 # old Intel for x86_64 which still supported -KPIC.
9610 lt_prog_compiler_wl='-Wl,'
9611 lt_prog_compiler_pic='-KPIC'
9612 lt_prog_compiler_static='-static'
9614 # icc used to be incompatible with GCC.
9615 # ICC 10 doesn't accept -KPIC any more.
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='-fPIC'
9619 lt_prog_compiler_static='-static'
9621 # Lahey Fortran 8.1.
9623 lt_prog_compiler_wl='-Wl,'
9624 lt_prog_compiler_pic='--shared'
9625 lt_prog_compiler_static='--static'
9627 pgcc* | pgf77* | pgf90* | pgf95*)
9628 # Portland Group compilers (*not* the Pentium gcc compiler,
9629 # which looks to be a dead project)
9630 lt_prog_compiler_wl='-Wl,'
9631 lt_prog_compiler_pic='-fpic'
9632 lt_prog_compiler_static='-Bstatic'
9635 lt_prog_compiler_wl='-Wl,'
9636 # All Alpha code is PIC.
9637 lt_prog_compiler_static='-non_shared'
9640 # IBM XL C 8.0/Fortran 10.1 on PPC
9641 lt_prog_compiler_wl='-Wl,'
9642 lt_prog_compiler_pic='-qpic'
9643 lt_prog_compiler_static='-qstaticlink'
9646 case `$CC -V 2>&1 | sed 5q` in
9649 lt_prog_compiler_pic='-KPIC'
9650 lt_prog_compiler_static='-Bstatic'
9651 lt_prog_compiler_wl='-Wl,'
9654 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 lt_prog_compiler_wl=''
9665 lt_prog_compiler_pic='-KPIC'
9666 lt_prog_compiler_static='-Bstatic'
9670 # QNX uses GNU C++, but need to define -shared option too, otherwise
9672 lt_prog_compiler_pic='-fPIC -shared'
9675 osf3* | osf4* | osf5*)
9676 lt_prog_compiler_wl='-Wl,'
9677 # All OSF/1 code is PIC.
9678 lt_prog_compiler_static='-non_shared'
9682 lt_prog_compiler_static='-non_shared'
9686 lt_prog_compiler_pic='-KPIC'
9687 lt_prog_compiler_static='-Bstatic'
9688 case $cc_basename in
9690 lt_prog_compiler_wl='-Qoption ld ';;
9692 lt_prog_compiler_wl='-Wl,';;
9697 lt_prog_compiler_wl='-Qoption ld '
9698 lt_prog_compiler_pic='-PIC'
9699 lt_prog_compiler_static='-Bstatic'
9702 sysv4 | sysv4.2uw2* | sysv4.3*)
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_pic='-KPIC'
9705 lt_prog_compiler_static='-Bstatic'
9709 if test -d /usr/nec ;then
9710 lt_prog_compiler_pic='-Kconform_pic'
9711 lt_prog_compiler_static='-Bstatic'
9715 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9716 lt_prog_compiler_wl='-Wl,'
9717 lt_prog_compiler_pic='-KPIC'
9718 lt_prog_compiler_static='-Bstatic'
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_can_build_shared=no
9727 lt_prog_compiler_pic='-pic'
9728 lt_prog_compiler_static='-Bstatic'
9732 lt_prog_compiler_can_build_shared=no
9738 # For platforms which do not support PIC, -DPIC is meaningless:
9740 lt_prog_compiler_pic=
9743 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9747 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9755 # Check to make sure the PIC flag actually works.
9757 if test -n "$lt_prog_compiler_pic"; then
9758 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9759 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9760 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 lt_cv_prog_compiler_pic_works=no
9764 ac_outfile=conftest.$ac_objext
9765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9767 # Insert the option either (1) after the last *FLAGS variable, or
9768 # (2) before a word containing "conftest.", or (3) at the end.
9769 # Note that $ac_compile itself does not contain backslashes and begins
9770 # with a dollar sign (not a hyphen), so the echo should work correctly.
9771 # The option is referenced via a variable to avoid confusing sed.
9772 lt_compile=`echo "$ac_compile" | $SED \
9773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775 -e 's:$: $lt_compiler_flag:'`
9776 (eval echo "\"\$as_me:9776: $lt_compile\"" >&5)
9777 (eval "$lt_compile" 2>conftest.err)
9779 cat conftest.err >&5
9780 echo "$as_me:9780: \$? = $ac_status" >&5
9781 if (exit $ac_status) && test -s "$ac_outfile"; then
9782 # The compiler can only warn and ignore the option if not recognized
9783 # So say no if there are warnings other than the usual output.
9784 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9787 lt_cv_prog_compiler_pic_works=yes
9793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9794 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9796 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9797 case $lt_prog_compiler_pic in
9799 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9802 lt_prog_compiler_pic=
9803 lt_prog_compiler_can_build_shared=no
9814 # Check to make sure the static flag actually works.
9816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9819 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 lt_cv_prog_compiler_static_works=no
9823 save_LDFLAGS="$LDFLAGS"
9824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9825 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9827 # The linker can only warn and ignore the option if not recognized
9828 # So say no if there are warnings
9829 if test -s conftest.err; then
9830 # Append any errors to the config.log.
9831 cat conftest.err 1>&5
9832 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9834 if diff conftest.exp conftest.er2 >/dev/null; then
9835 lt_cv_prog_compiler_static_works=yes
9838 lt_cv_prog_compiler_static_works=yes
9842 LDFLAGS="$save_LDFLAGS"
9845 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9846 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9848 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9851 lt_prog_compiler_static=
9860 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9862 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 lt_cv_prog_compiler_c_o=no
9866 $RM -r conftest 2>/dev/null
9870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9872 lt_compiler_flag="-o out/conftest2.$ac_objext"
9873 # Insert the option either (1) after the last *FLAGS variable, or
9874 # (2) before a word containing "conftest.", or (3) at the end.
9875 # Note that $ac_compile itself does not contain backslashes and begins
9876 # with a dollar sign (not a hyphen), so the echo should work correctly.
9877 lt_compile=`echo "$ac_compile" | $SED \
9878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9880 -e 's:$: $lt_compiler_flag:'`
9881 (eval echo "\"\$as_me:9881: $lt_compile\"" >&5)
9882 (eval "$lt_compile" 2>out/conftest.err)
9884 cat out/conftest.err >&5
9885 echo "$as_me:9885: \$? = $ac_status" >&5
9886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9888 # The compiler can only warn and ignore the option if not recognized
9889 # So say no if there are warnings
9890 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9893 lt_cv_prog_compiler_c_o=yes
9898 # SGI C++ compiler will create directory out/ii_files/ for
9899 # template instantiation
9900 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9901 $RM out/* && rmdir out
9907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9908 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9915 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9917 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 lt_cv_prog_compiler_c_o=no
9921 $RM -r conftest 2>/dev/null
9925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9927 lt_compiler_flag="-o out/conftest2.$ac_objext"
9928 # Insert the option either (1) after the last *FLAGS variable, or
9929 # (2) before a word containing "conftest.", or (3) at the end.
9930 # Note that $ac_compile itself does not contain backslashes and begins
9931 # with a dollar sign (not a hyphen), so the echo should work correctly.
9932 lt_compile=`echo "$ac_compile" | $SED \
9933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9935 -e 's:$: $lt_compiler_flag:'`
9936 (eval echo "\"\$as_me:9936: $lt_compile\"" >&5)
9937 (eval "$lt_compile" 2>out/conftest.err)
9939 cat out/conftest.err >&5
9940 echo "$as_me:9940: \$? = $ac_status" >&5
9941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9943 # The compiler can only warn and ignore the option if not recognized
9944 # So say no if there are warnings
9945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9948 lt_cv_prog_compiler_c_o=yes
9953 # SGI C++ compiler will create directory out/ii_files/ for
9954 # template instantiation
9955 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9956 $RM out/* && rmdir out
9962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9968 hard_links="nottested"
9969 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9970 # do not overwrite the value of need_locks provided by the user
9971 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9977 ln conftest.a conftest.b 2>&5 || hard_links=no
9978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979 { echo "$as_me:$LINENO: result: $hard_links" >&5
9980 echo "${ECHO_T}$hard_links" >&6; }
9981 if test "$hard_links" = no; then
9982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9995 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9999 allow_undefined_flag=
10000 always_export_symbols=no
10002 archive_expsym_cmds=
10003 compiler_needs_object=no
10004 enable_shared_with_static_runtimes=no
10005 export_dynamic_flag_spec=
10006 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10007 hardcode_automatic=no
10009 hardcode_direct_absolute=no
10010 hardcode_libdir_flag_spec=
10011 hardcode_libdir_flag_spec_ld=
10012 hardcode_libdir_separator=
10013 hardcode_minus_L=no
10014 hardcode_shlibpath_var=unsupported
10016 link_all_deplibs=unknown
10018 module_expsym_cmds=
10019 old_archive_from_new_cmds=
10020 old_archive_from_expsyms_cmds=
10021 thread_safe_flag_spec=
10022 whole_archive_flag_spec=
10023 # include_expsyms should be a list of space-separated symbols to be *always*
10024 # included in the symbol list
10026 # exclude_expsyms can be an extended regexp of symbols to exclude
10027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10029 # as well as any symbol that contains `d'.
10030 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10032 # platforms (ab)use it in PIC code, but their linkers get confused if
10033 # the symbol is explicitly referenced. Since portable code cannot
10034 # rely on this symbol name, it's probably fine to never include it in
10035 # preloaded symbol tables.
10036 # Exclude shared library initialization/finalization symbols.
10037 extract_expsyms_cmds=
10040 cygwin* | mingw* | pw32* | cegcc*)
10041 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10042 # When not using gcc, we currently assume that we are using
10043 # Microsoft Visual C++.
10044 if test "$GCC" != yes; then
10049 # we just hope/assume this is gcc and not c89 (= MSVC++)
10058 if test "$with_gnu_ld" = yes; then
10059 # If archive_cmds runs LD, not CC, wlarc should be empty
10062 # Set some defaults for GNU ld with shared library support. These
10063 # are reset later if shared libraries are not supported. Putting them
10064 # here allows them to be overridden if necessary.
10065 runpath_var=LD_RUN_PATH
10066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067 export_dynamic_flag_spec='${wl}--export-dynamic'
10068 # ancient GNU ld didn't support --whole-archive et. al.
10069 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10070 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10072 whole_archive_flag_spec=
10074 supports_anon_versioning=no
10075 case `$LD -v 2>&1` in
10076 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10077 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10078 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10079 *\ 2.11.*) ;; # other 2.11 versions
10080 *) supports_anon_versioning=yes ;;
10083 # See if GNU ld supports shared libraries.
10086 # On AIX/PPC, the GNU linker is very broken
10087 if test "$host_cpu" != ia64; then
10091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10092 *** to be unable to reliably create shared libraries on AIX.
10093 *** Therefore, libtool is disabling shared libraries support. If you
10094 *** really care for shared libraries, you may want to modify your PATH
10095 *** so that a non-GNU linker is found, and then restart.
10104 # see comment about AmigaOS4 .so support
10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 archive_expsym_cmds=''
10109 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)'
10110 hardcode_libdir_flag_spec='-L$libdir'
10111 hardcode_minus_L=yes
10117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118 allow_undefined_flag=unsupported
10119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10120 # support --undefined. This deserves some investigation. FIXME
10121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10129 # as there is no search path for DLLs.
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 allow_undefined_flag=unsupported
10132 always_export_symbols=no
10133 enable_shared_with_static_runtimes=yes
10134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10136 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138 # If the export-symbols file already is a .def file (1st line
10139 # is EXPORTS), use it as is; otherwise, prepend...
10140 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10141 cp $export_symbols $output_objdir/$soname.def;
10143 echo EXPORTS > $output_objdir/$soname.def;
10144 cat $export_symbols >> $output_objdir/$soname.def;
10146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10154 hardcode_shlibpath_var=no
10155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156 export_dynamic_flag_spec='${wl}-E'
10157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10158 # Instead, shared libraries are loaded at an image base (0x10000000 by
10159 # default) and relocated if they conflict, which is a slow very memory
10160 # consuming and fragmenting process. To avoid this, we pick a random,
10161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10164 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'
10167 gnu* | linux* | tpf* | k*bsd*-gnu)
10169 if test "$host_os" = linux-dietlibc; then
10170 case $cc_basename in
10171 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10174 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10175 && test "$tmp_diet" = no
10178 tmp_sharedflag='-shared'
10179 case $cc_basename,$host_cpu in
10180 pgcc*) # Portland Group C compiler
10181 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'
10182 tmp_addflag=' $pic_flag'
10184 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10185 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'
10186 tmp_addflag=' $pic_flag -Mnomain' ;;
10187 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10188 tmp_addflag=' -i_dynamic' ;;
10189 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10190 tmp_addflag=' -i_dynamic -nofor_main' ;;
10191 ifc* | ifort*) # Intel Fortran compiler
10192 tmp_addflag=' -nofor_main' ;;
10193 lf95*) # Lahey Fortran 8.1
10194 whole_archive_flag_spec=
10195 tmp_sharedflag='--shared' ;;
10196 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10197 tmp_sharedflag='-qmkshrobj'
10200 case `$CC -V 2>&1 | sed 5q` in
10201 *Sun\ C*) # Sun C 5.9
10202 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'
10203 compiler_needs_object=yes
10204 tmp_sharedflag='-G' ;;
10205 *Sun\ F*) # Sun Fortran 8.3
10206 tmp_sharedflag='-G' ;;
10208 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10210 if test "x$supports_anon_versioning" = xyes; then
10211 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10213 echo "local: *; };" >> $output_objdir/$libname.ver~
10214 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10217 case $cc_basename in
10219 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10220 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10221 hardcode_libdir_flag_spec=
10222 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10223 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10224 if test "x$supports_anon_versioning" = xyes; then
10225 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10227 echo "local: *; };" >> $output_objdir/$libname.ver~
10228 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10239 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10248 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10253 *** create shared libraries on Solaris systems. Therefore, libtool
10254 *** is disabling shared libraries support. We urge you to upgrade GNU
10255 *** binutils to release 2.9.1 or newer. Another option is to modify
10256 *** your PATH or compiler configuration so that the native linker is
10257 *** used, and then restart.
10260 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10269 case `$LD -v 2>&1` in
10270 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10275 *** reliably create shared libraries on SCO systems. Therefore, libtool
10276 *** is disabling shared libraries support. We urge you to upgrade GNU
10277 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10278 *** your PATH or compiler configuration so that the native linker is
10279 *** used, and then restart.
10284 # For security reasons, it is highly recommended that you always
10285 # use absolute paths for naming shared libraries, and exclude the
10286 # DT_RUNPATH tag from executables and libraries. But doing so
10287 # requires that you compile everything twice, which is a pain.
10288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10300 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_direct=yes
10303 hardcode_shlibpath_var=no
10307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10316 if test "$ld_shlibs" = no; then
10318 hardcode_libdir_flag_spec=
10319 export_dynamic_flag_spec=
10320 whole_archive_flag_spec=
10323 # PORTME fill in a description of your system's linker (not GNU ld)
10326 allow_undefined_flag=unsupported
10327 always_export_symbols=yes
10328 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'
10329 # Note: this linker hardcodes the directories in LIBPATH if there
10330 # are no directories specified by -L.
10331 hardcode_minus_L=yes
10332 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10333 # Neither direct hardcoding nor static linking is supported with a
10335 hardcode_direct=unsupported
10340 if test "$host_cpu" = ia64; then
10341 # On IA64, the linker does run time linking by default, so we don't
10342 # have to do anything special.
10343 aix_use_runtimelinking=no
10344 exp_sym_flag='-Bexport'
10347 # If we're using GNU nm, then we don't want the "-C" option.
10348 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10349 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10350 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'
10352 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'
10354 aix_use_runtimelinking=no
10356 # Test if we are trying to use run time linking or normal
10357 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10358 # need to do runtime linking.
10359 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10360 for ld_flag in $LDFLAGS; do
10361 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10362 aix_use_runtimelinking=yes
10369 exp_sym_flag='-bexport'
10370 no_entry_flag='-bnoentry'
10373 # When large executables or shared objects are built, AIX ld can
10374 # have problems creating the table of contents. If linking a library
10375 # or program results in "error TOC overflow" add -mminimal-toc to
10376 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10377 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10380 hardcode_direct=yes
10381 hardcode_direct_absolute=yes
10382 hardcode_libdir_separator=':'
10383 link_all_deplibs=yes
10384 file_list_spec='${wl}-f,'
10386 if test "$GCC" = yes; then
10387 case $host_os in aix4.[012]|aix4.[012].*)
10388 # We only want to do this on AIX 4.2 and lower, the check
10389 # below for broken collect2 doesn't work under 4.3+
10390 collect2name=`${CC} -print-prog-name=collect2`
10391 if test -f "$collect2name" &&
10392 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10394 # We have reworked collect2
10397 # We have old collect2
10398 hardcode_direct=unsupported
10399 # It fails to find uninstalled libraries when the uninstalled
10400 # path is not listed in the libpath. Setting hardcode_minus_L
10401 # to unsupported forces relinking
10402 hardcode_minus_L=yes
10403 hardcode_libdir_flag_spec='-L$libdir'
10404 hardcode_libdir_separator=
10408 shared_flag='-shared'
10409 if test "$aix_use_runtimelinking" = yes; then
10410 shared_flag="$shared_flag "'${wl}-G'
10414 if test "$host_cpu" = ia64; then
10415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10416 # chokes on -Wl,-G. The following line is correct:
10419 if test "$aix_use_runtimelinking" = yes; then
10420 shared_flag='${wl}-G'
10422 shared_flag='${wl}-bM:SRE'
10427 export_dynamic_flag_spec='${wl}-bexpall'
10428 # It seems that -bexpall does not export symbols beginning with
10429 # underscore (_), so it is better to generate a list of symbols to export.
10430 always_export_symbols=yes
10431 if test "$aix_use_runtimelinking" = yes; then
10432 # Warning - without using the other runtime loading flags (-brtl),
10433 # -berok will link without error, but may produce a broken library.
10434 allow_undefined_flag='-berok'
10435 # Determine the default libpath from the value encoded in an
10436 # empty executable.
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_link") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext &&
10469 $as_test_x conftest$ac_exeext; then
10471 lt_aix_libpath_sed='
10472 /Import File Strings/,/^$/ {
10478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 # Check for a 64-bit object if we didn't find anything.
10480 if test -z "$aix_libpath"; then
10481 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10491 conftest$ac_exeext conftest.$ac_ext
10492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10494 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10495 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"
10497 if test "$host_cpu" = ia64; then
10498 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10499 allow_undefined_flag="-z nodefs"
10500 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"
10502 # Determine the default libpath from the value encoded in an
10503 # empty executable.
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (ac_try="$ac_link"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_link") 2>conftest.er1
10528 grep -v '^ *+' conftest.er1 >conftest.err
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest$ac_exeext &&
10536 $as_test_x conftest$ac_exeext; then
10538 lt_aix_libpath_sed='
10539 /Import File Strings/,/^$/ {
10545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10546 # Check for a 64-bit object if we didn't find anything.
10547 if test -z "$aix_libpath"; then
10548 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10562 # Warning - without using the other run time loading flags,
10563 # -berok will link without error, but may produce a broken library.
10564 no_undefined_flag=' ${wl}-bernotok'
10565 allow_undefined_flag=' ${wl}-berok'
10566 # Exported symbols can be pulled into shared objects from archives
10567 whole_archive_flag_spec='$convenience'
10568 archive_cmds_need_lc=yes
10569 # This is similar to how AIX traditionally builds its shared libraries.
10570 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'
10578 # see comment about AmigaOS4 .so support
10579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580 archive_expsym_cmds=''
10583 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)'
10584 hardcode_libdir_flag_spec='-L$libdir'
10585 hardcode_minus_L=yes
10591 export_dynamic_flag_spec=-rdynamic
10594 cygwin* | mingw* | pw32* | cegcc*)
10595 # When not using gcc, we currently assume that we are using
10596 # Microsoft Visual C++.
10597 # hardcode_libdir_flag_spec is actually meaningless, as there is
10598 # no search path for DLLs.
10599 hardcode_libdir_flag_spec=' '
10600 allow_undefined_flag=unsupported
10601 # Tell ltmain to make .lib files, not .a files.
10603 # Tell ltmain to make .dll files, not .so files.
10605 # FIXME: Setting linknames here is a bad hack.
10606 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10607 # The linker will automatically build a .lib file if we build a DLL.
10608 old_archive_from_new_cmds='true'
10609 # FIXME: Should let the user specify the lib program.
10610 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10611 fix_srcfile_path='`cygpath -w "$srcfile"`'
10612 enable_shared_with_static_runtimes=yes
10615 darwin* | rhapsody*)
10618 archive_cmds_need_lc=no
10620 hardcode_automatic=yes
10621 hardcode_shlibpath_var=unsupported
10622 whole_archive_flag_spec=''
10623 link_all_deplibs=yes
10624 allow_undefined_flag="$_lt_dar_allow_undefined"
10625 case $cc_basename in
10626 ifort*) _lt_dar_can_shared=yes ;;
10627 *) _lt_dar_can_shared=$GCC ;;
10629 if test "$_lt_dar_can_shared" = "yes"; then
10630 output_verbose_link_cmd=echo
10631 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10632 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10633 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}"
10634 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}"
10643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644 hardcode_libdir_flag_spec='-L$libdir'
10645 hardcode_shlibpath_var=no
10652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10653 # support. Future versions do this automatically, but an explicit c++rt0.o
10654 # does not break anything, and helps significantly (at the cost of a little
10657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10658 hardcode_libdir_flag_spec='-R$libdir'
10659 hardcode_direct=yes
10660 hardcode_shlibpath_var=no
10663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_direct=yes
10667 hardcode_minus_L=yes
10668 hardcode_shlibpath_var=no
10671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10672 freebsd* | dragonfly*)
10673 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10674 hardcode_libdir_flag_spec='-R$libdir'
10675 hardcode_direct=yes
10676 hardcode_shlibpath_var=no
10680 if test "$GCC" = yes; then
10681 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'
10683 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'
10685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686 hardcode_libdir_separator=:
10687 hardcode_direct=yes
10689 # hardcode_minus_L: Not really in the search PATH,
10690 # but as the default location of the library.
10691 hardcode_minus_L=yes
10692 export_dynamic_flag_spec='${wl}-E'
10696 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10701 if test "$with_gnu_ld" = no; then
10702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10703 hardcode_libdir_flag_spec_ld='+b $libdir'
10704 hardcode_libdir_separator=:
10705 hardcode_direct=yes
10706 hardcode_direct_absolute=yes
10707 export_dynamic_flag_spec='${wl}-E'
10708 # hardcode_minus_L: Not really in the search PATH,
10709 # but as the default location of the library.
10710 hardcode_minus_L=yes
10715 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10718 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10740 if test "$with_gnu_ld" = no; then
10741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742 hardcode_libdir_separator=:
10747 hardcode_shlibpath_var=no
10750 hardcode_direct=yes
10751 hardcode_direct_absolute=yes
10752 export_dynamic_flag_spec='${wl}-E'
10754 # hardcode_minus_L: Not really in the search PATH,
10755 # but as the default location of the library.
10756 hardcode_minus_L=yes
10762 irix5* | irix6* | nonstopux*)
10763 if test "$GCC" = yes; then
10764 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'
10765 # Try to use the -exported_symbol ld option, if it does not
10766 # work, assume that -exports_file does not work either and
10767 # implicitly export all symbols.
10768 save_LDFLAGS="$LDFLAGS"
10769 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10770 cat >conftest.$ac_ext <<_ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_link") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && {
10787 test -z "$ac_c_werror_flag" ||
10788 test ! -s conftest.err
10789 } && test -s conftest$ac_exeext &&
10790 $as_test_x conftest$ac_exeext; then
10791 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'
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LDFLAGS="$save_LDFLAGS"
10804 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'
10805 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'
10807 archive_cmds_need_lc='no'
10808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809 hardcode_libdir_separator=:
10811 link_all_deplibs=yes
10815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10818 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10820 hardcode_libdir_flag_spec='-R$libdir'
10821 hardcode_direct=yes
10822 hardcode_shlibpath_var=no
10826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827 hardcode_direct=yes
10828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10829 hardcode_libdir_separator=:
10830 hardcode_shlibpath_var=no
10837 if test -f /usr/libexec/ld.so; then
10838 hardcode_direct=yes
10839 hardcode_shlibpath_var=no
10840 hardcode_direct_absolute=yes
10841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10845 export_dynamic_flag_spec='${wl}-E'
10848 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10850 hardcode_libdir_flag_spec='-R$libdir'
10853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10854 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10864 hardcode_libdir_flag_spec='-L$libdir'
10865 hardcode_minus_L=yes
10866 allow_undefined_flag=unsupported
10867 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'
10868 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10872 if test "$GCC" = yes; then
10873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10874 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'
10876 allow_undefined_flag=' -expect_unresolved \*'
10877 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'
10879 archive_cmds_need_lc='no'
10880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10881 hardcode_libdir_separator=:
10884 osf4* | osf5*) # as osf3* with the addition of -msym flag
10885 if test "$GCC" = yes; then
10886 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10887 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'
10888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10890 allow_undefined_flag=' -expect_unresolved \*'
10891 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'
10892 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~
10893 $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'
10895 # Both c and cxx compiler support -rpath directly
10896 hardcode_libdir_flag_spec='-rpath $libdir'
10898 archive_cmds_need_lc='no'
10899 hardcode_libdir_separator=:
10903 no_undefined_flag=' -z defs'
10904 if test "$GCC" = yes; then
10906 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10907 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10908 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10910 case `$CC -V 2>&1` in
10913 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10919 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10925 hardcode_libdir_flag_spec='-R$libdir'
10926 hardcode_shlibpath_var=no
10928 solaris2.[0-5] | solaris2.[0-5].*) ;;
10930 # The compiler driver will combine and reorder linker options,
10931 # but understands `-z linker_flag'. GCC discards it without `$wl',
10932 # but is careful enough not to reorder.
10933 # Supported since Solaris 2.6 (maybe 2.5.1?)
10934 if test "$GCC" = yes; then
10935 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10937 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10941 link_all_deplibs=yes
10945 if test "x$host_vendor" = xsequent; then
10946 # Use $CC to link under sequent, because it throws in some extra .o
10947 # files that make .init and .fini sections work.
10948 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10952 hardcode_libdir_flag_spec='-L$libdir'
10953 hardcode_direct=yes
10954 hardcode_minus_L=yes
10955 hardcode_shlibpath_var=no
10959 case $host_vendor in
10961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962 hardcode_direct=yes # is this really true???
10965 ## LD is ld it makes a PLAMLIB
10966 ## CC just makes a GrossModule.
10967 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10968 reload_cmds='$CC -r -o $output$reload_objs'
10972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10976 runpath_var='LD_RUN_PATH'
10977 hardcode_shlibpath_var=no
10981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982 hardcode_shlibpath_var=no
10983 export_dynamic_flag_spec='-Bexport'
10987 if test -d /usr/nec; then
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_shlibpath_var=no
10990 runpath_var=LD_RUN_PATH
10991 hardcode_runpath_var=yes
10996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10997 no_undefined_flag='${wl}-z,text'
10998 archive_cmds_need_lc=no
10999 hardcode_shlibpath_var=no
11000 runpath_var='LD_RUN_PATH'
11002 if test "$GCC" = yes; then
11003 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011 sysv5* | sco3.2v5* | sco5v6*)
11012 # Note: We can NOT use -z defs as we might desire, because we do not
11013 # link with -lc, and that would cause any symbols used from libc to
11014 # always be unresolved, which means just about no library would
11015 # ever link correctly. If we're not using GNU ld we use -z text
11016 # though, which does catch some bad symbols but isn't as heavy-handed
11018 no_undefined_flag='${wl}-z,text'
11019 allow_undefined_flag='${wl}-z,nodefs'
11020 archive_cmds_need_lc=no
11021 hardcode_shlibpath_var=no
11022 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11023 hardcode_libdir_separator=':'
11024 link_all_deplibs=yes
11025 export_dynamic_flag_spec='${wl}-Bexport'
11026 runpath_var='LD_RUN_PATH'
11028 if test "$GCC" = yes; then
11029 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_libdir_flag_spec='-L$libdir'
11040 hardcode_shlibpath_var=no
11048 if test x$host_vendor = xsni; then
11050 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11051 export_dynamic_flag_spec='${wl}-Blargedynsym'
11057 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11058 echo "${ECHO_T}$ld_shlibs" >&6; }
11059 test "$ld_shlibs" = no && can_build_shared=no
11061 with_gnu_ld=$with_gnu_ld
11078 # Do we need to explicitly link libc?
11080 case "x$archive_cmds_need_lc" in
11082 # Assume -lc should be added
11083 archive_cmds_need_lc=yes
11085 if test "$enable_shared" = yes && test "$GCC" = yes; then
11086 case $archive_cmds in
11088 # FIXME: we may have to deal with multi-command sequences.
11091 # Test whether the compiler implicitly links with -lc since on some
11092 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11093 # to ld, don't add -lc before -lgcc.
11094 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11095 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } 2>conftest.err; then
11106 libobjs=conftest.$ac_objext
11108 wl=$lt_prog_compiler_wl
11109 pic_flag=$lt_prog_compiler_pic
11115 lt_save_allow_undefined_flag=$allow_undefined_flag
11116 allow_undefined_flag=
11117 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11118 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }
11123 archive_cmds_need_lc=no
11125 archive_cmds_need_lc=yes
11127 allow_undefined_flag=$lt_save_allow_undefined_flag
11129 cat conftest.err 1>&5
11132 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11133 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11296 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11299 if test "$GCC" = yes; then
11301 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11302 *) lt_awk_arg="/^libraries:/" ;;
11304 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11305 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11306 # if the path contains ";" then we assume it to be the separator
11307 # otherwise default to the standard path separator (i.e. ":") - it is
11308 # assumed that no part of a normal pathname contains ";" but that should
11309 # okay in the real world where ";" in dirpaths is itself problematic.
11310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11312 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11314 # Ok, now we have the path, separated by spaces, we can step through it
11315 # and add multilib dir if necessary.
11316 lt_tmp_lt_search_path_spec=
11317 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11318 for lt_sys_path in $lt_search_path_spec; do
11319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11322 test -d "$lt_sys_path" && \
11323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11326 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11327 BEGIN {RS=" "; FS="/|\n";} {
11330 for (lt_i = NF; lt_i > 0; lt_i--) {
11331 if ($lt_i != "" && $lt_i != ".") {
11332 if ($lt_i == "..") {
11335 if (lt_count == 0) {
11336 lt_foo="/" $lt_i lt_foo;
11343 if (lt_foo != "") { lt_freq[lt_foo]++; }
11344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11346 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11350 library_names_spec=
11351 libname_spec='lib$name'
11355 postuninstall_cmds=
11359 shlibpath_overrides_runpath=unknown
11361 dynamic_linker="$host_os ld.so"
11362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11363 need_lib_prefix=unknown
11364 hardcode_into_libs=no
11366 # when you set need_version to no, make sure it does not cause -set_version
11367 # flags to be left without arguments
11368 need_version=unknown
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11374 shlibpath_var=LIBPATH
11376 # AIX 3 has no versioning support, so we append a major version to the name.
11377 soname_spec='${libname}${release}${shared_ext}$major'
11384 hardcode_into_libs=yes
11385 if test "$host_cpu" = ia64; then
11386 # AIX 5 supports IA64
11387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11388 shlibpath_var=LD_LIBRARY_PATH
11390 # With GCC up to 2.95.x, collect2 would create an import file
11391 # for dependence libraries. The import file would start with
11392 # the line `#! .'. This would cause the generated library to
11393 # depend on `.', always an invalid library. This was fixed in
11394 # development snapshots of GCC prior to 3.0.
11396 aix4 | aix4.[01] | aix4.[01].*)
11397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11399 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11402 can_build_shared=no
11406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11407 # soname into executable. Probably we can add versioning support to
11408 # collect2, so additional links can be useful in future.
11409 if test "$aix_use_runtimelinking" = yes; then
11410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11411 # instead of lib<name>.a to let people know that these are not
11412 # typical AIX shared libraries.
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 # We preserve .a as extension for shared libraries through AIX4.2
11416 # and later when we are not doing run time linking.
11417 library_names_spec='${libname}${release}.a $libname.a'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11420 shlibpath_var=LIBPATH
11427 # Since July 2007 AmigaOS4 officially supports .so libraries.
11428 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 library_names_spec='$libname.ixlibrary $libname.a'
11433 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11434 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'
11440 library_names_spec='${libname}${shared_ext}'
11441 dynamic_linker="$host_os ld.so"
11442 shlibpath_var=LIBRARY_PATH
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11454 # the default ld.so.conf also contains /usr/contrib/lib and
11455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11456 # libtool to hard-code these into programs
11459 cygwin* | mingw* | pw32* | cegcc*)
11460 version_type=windows
11465 case $GCC,$host_os in
11466 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11467 library_names_spec='$libname.dll.a'
11468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11469 postinstall_cmds='base_file=`basename \${file}`~
11470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11471 dldir=$destdir/`dirname \$dlpath`~
11472 test -d \$dldir || mkdir -p \$dldir~
11473 $install_prog $dir/$dlname \$dldir/$dlname~
11474 chmod a+x \$dldir/$dlname~
11475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11479 dlpath=$dir/\$dldll~
11481 shlibpath_overrides_runpath=yes
11485 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11486 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11487 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11490 # MinGW DLLs use traditional 'lib' prefix
11491 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11492 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11493 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11494 # It is most probably a Windows format PATH printed by
11495 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11496 # path with ; separators, and with drive letters. We can handle the
11497 # drive letters (cygwin fileutils understands them), so leave them,
11498 # especially as we might pass files found there to a mingw objdump,
11499 # which wouldn't understand a cygwinified path. Ahh.
11500 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11502 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11506 # pw32 DLLs use 'pw' prefix rather than 'lib'
11507 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11513 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11516 dynamic_linker='Win32 ld.exe'
11517 # FIXME: first we should search . and the directory the executable is in
11521 darwin* | rhapsody*)
11522 dynamic_linker="$host_os dyld"
11523 version_type=darwin
11526 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11527 soname_spec='${libname}${release}${major}$shared_ext'
11528 shlibpath_overrides_runpath=yes
11529 shlibpath_var=DYLD_LIBRARY_PATH
11530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 shlibpath_var=LD_LIBRARY_PATH
11549 freebsd* | dragonfly*)
11550 # DragonFly does not have aout. When/if they implement a new
11551 # versioning mechanism, adjust this.
11552 if test -x /usr/bin/objformat; then
11553 objformat=`/usr/bin/objformat`
11556 freebsd[123]*) objformat=aout ;;
11557 *) objformat=elf ;;
11560 version_type=freebsd-$objformat
11561 case $version_type in
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11572 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=yes
11577 freebsd3.[01]* | freebsdelf3.[01]*)
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11586 *) # from 4.6 on, and DragonFly
11587 shlibpath_overrides_runpath=yes
11588 hardcode_into_libs=yes
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 hardcode_into_libs=yes
11603 hpux9* | hpux10* | hpux11*)
11604 # Give a soname corresponding to the major version so that dld.sl refuses to
11605 # link against other versions.
11612 hardcode_into_libs=yes
11613 dynamic_linker="$host_os dld.so"
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 if test "X$HPUX_IA64_MODE" = X32; then
11619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11627 hardcode_into_libs=yes
11628 dynamic_linker="$host_os dld.sl"
11629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638 dynamic_linker="$host_os dld.sl"
11639 shlibpath_var=SHLIB_PATH
11640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11645 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11646 postinstall_cmds='chmod 555 $lib'
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath=no
11658 hardcode_into_libs=yes
11661 irix5* | irix6* | nonstopux*)
11663 nonstopux*) version_type=nonstopux ;;
11665 if test "$lt_cv_prog_gnu_ld" = yes; then
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11676 irix5* | nonstopux*)
11677 libsuff= shlibsuff=
11680 case $LD in # libtool.m4 will add one of these switches to LD
11681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11682 libsuff= shlibsuff= libmagic=32-bit;;
11683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11684 libsuff=32 shlibsuff=N32 libmagic=N32;;
11685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11687 *) libsuff= shlibsuff= libmagic=never-match;;
11691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11692 shlibpath_overrides_runpath=no
11693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11695 hardcode_into_libs=yes
11698 # No shared lib support for Linux oldld, aout, or coff.
11699 linux*oldld* | linux*aout* | linux*coff*)
11703 # This must be Linux ELF.
11704 linux* | k*bsd*-gnu)
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709 soname_spec='${libname}${release}${shared_ext}$major'
11710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 shlibpath_overrides_runpath=no
11713 # Some binutils ld are patched to set DT_RUNPATH
11714 save_LDFLAGS=$LDFLAGS
11715 save_libdir=$libdir
11716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_link") 2>conftest.er1
11742 grep -v '^ *+' conftest.er1 >conftest.err
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } && {
11747 test -z "$ac_c_werror_flag" ||
11748 test ! -s conftest.err
11749 } && test -s conftest$ac_exeext &&
11750 $as_test_x conftest$ac_exeext; then
11751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11752 shlibpath_overrides_runpath=yes
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LDFLAGS=$save_LDFLAGS
11765 libdir=$save_libdir
11767 # This implies no fast_install, which is unacceptable.
11768 # Some rework will be needed to allow for fast_install
11769 # before this can be enabled.
11770 hardcode_into_libs=yes
11772 # Append ld.so.conf contents to the search path
11773 if test -f /etc/ld.so.conf; then
11774 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' ' '`
11775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11778 # We used to test for /lib/ld.so.1 and disable shared libraries on
11779 # powerpc, because MkLinux only supported shared libraries with the
11780 # GNU dynamic linker. Since this was broken with cross compilers,
11781 # most powerpc-linux boxes support dynamic linking these days and
11782 # people can always --disable-shared, the test was removed, and we
11783 # assume the GNU/Linux dynamic linker is in use.
11784 dynamic_linker='GNU/Linux ld.so'
11791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11794 dynamic_linker='NetBSD (a.out) ld.so'
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 dynamic_linker='NetBSD ld.elf_so'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 shlibpath_overrides_runpath=yes
11802 hardcode_into_libs=yes
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=yes
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 shlibpath_overrides_runpath=no
11820 hardcode_into_libs=yes
11821 dynamic_linker='ldqnx.so'
11826 sys_lib_dlsearch_path_spec="/usr/lib"
11828 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11830 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11831 *) need_version=no ;;
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11838 openbsd2.[89] | openbsd2.[89].*)
11839 shlibpath_overrides_runpath=no
11842 shlibpath_overrides_runpath=yes
11846 shlibpath_overrides_runpath=yes
11851 libname_spec='$name'
11854 library_names_spec='$libname${shared_ext} $libname.a'
11855 dynamic_linker='OS/2 ld.exe'
11856 shlibpath_var=LIBPATH
11859 osf3* | osf4* | osf5*)
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11867 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879 soname_spec='${libname}${release}${shared_ext}$major'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=yes
11882 hardcode_into_libs=yes
11883 # ldd complains unless libraries are executable
11884 postinstall_cmds='chmod +x $lib'
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes
11893 if test "$with_gnu_ld" = yes; then
11901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902 soname_spec='${libname}${release}${shared_ext}$major'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 case $host_vendor in
11906 shlibpath_overrides_runpath=no
11908 runpath_var=LD_RUN_PATH
11916 shlibpath_overrides_runpath=no
11917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11923 if test -d /usr/nec ;then
11925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11926 soname_spec='$libname${shared_ext}.$major'
11927 shlibpath_var=LD_LIBRARY_PATH
11931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11932 version_type=freebsd-elf
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 hardcode_into_libs=yes
11940 if test "$with_gnu_ld" = yes; then
11941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11946 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11950 sys_lib_dlsearch_path_spec='/usr/lib'
11954 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=no
11961 hardcode_into_libs=yes
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11975 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11976 echo "${ECHO_T}$dynamic_linker" >&6; }
11977 test "$dynamic_linker" = no && can_build_shared=no
11979 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11980 if test "$GCC" = yes; then
11981 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11984 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11985 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11987 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11988 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12077 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12080 if test -n "$hardcode_libdir_flag_spec" ||
12081 test -n "$runpath_var" ||
12082 test "X$hardcode_automatic" = "Xyes" ; then
12084 # We can hardcode non-existent directories.
12085 if test "$hardcode_direct" != no &&
12086 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12087 # have to relink, otherwise we might link with an installed library
12088 # when we should be linking with a yet-to-be-installed one
12089 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12090 test "$hardcode_minus_L" != no; then
12091 # Linking always hardcodes the temporary library directory.
12092 hardcode_action=relink
12094 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12095 hardcode_action=immediate
12098 # We cannot hardcode anything, or else we can only hardcode existing
12100 hardcode_action=unsupported
12102 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12103 echo "${ECHO_T}$hardcode_action" >&6; }
12105 if test "$hardcode_action" = relink ||
12106 test "$inherit_rpath" = yes; then
12107 # Fast installation is not supported
12108 enable_fast_install=no
12109 elif test "$shlibpath_overrides_runpath" = yes ||
12110 test "$enable_shared" = no; then
12111 # Fast installation is not necessary
12112 enable_fast_install=needless
12120 if test "x$enable_dlopen" != xyes; then
12121 enable_dlopen=unknown
12122 enable_dlopen_self=unknown
12123 enable_dlopen_self_static=unknown
12130 lt_cv_dlopen="load_add_on"
12132 lt_cv_dlopen_self=yes
12135 mingw* | pw32* | cegcc*)
12136 lt_cv_dlopen="LoadLibrary"
12141 lt_cv_dlopen="dlopen"
12146 # if libdl is installed we need to link against it
12147 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_check_lib_save_LIBS=$LIBS
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_link") 2>conftest.er1
12185 grep -v '^ *+' conftest.er1 >conftest.err
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest$ac_exeext &&
12193 $as_test_x conftest$ac_exeext; then
12194 ac_cv_lib_dl_dlopen=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_cv_lib_dl_dlopen=no
12202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12208 if test $ac_cv_lib_dl_dlopen = yes; then
12209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12212 lt_cv_dlopen="dyld"
12214 lt_cv_dlopen_self=yes
12221 { echo "$as_me:$LINENO: checking for shl_load" >&5
12222 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12223 if test "${ac_cv_func_shl_load+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12234 #define shl_load innocuous_shl_load
12236 /* System header to define __stub macros and hopefully few prototypes,
12237 which can conflict with char shl_load (); below.
12238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12239 <limits.h> exists even on freestanding compilers. */
12242 # include <limits.h>
12244 # include <assert.h>
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12256 /* The GNU C library defines this for functions which it implements
12257 to always fail with ENOSYS. Some functions are actually named
12258 something starting with __ and the normal name is an alias. */
12259 #if defined __stub_shl_load || defined __stub___shl_load
12266 return shl_load ();
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_link") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } && {
12285 test -z "$ac_c_werror_flag" ||
12286 test ! -s conftest.err
12287 } && test -s conftest$ac_exeext &&
12288 $as_test_x conftest$ac_exeext; then
12289 ac_cv_func_shl_load=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_cv_func_shl_load=no
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298 conftest$ac_exeext conftest.$ac_ext
12300 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12301 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12302 if test $ac_cv_func_shl_load = yes; then
12303 lt_cv_dlopen="shl_load"
12305 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12306 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 ac_check_lib_save_LIBS=$LIBS
12312 cat >conftest.$ac_ext <<_ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 /* Override any GCC internal prototype to avoid an error.
12320 Use char because int might match the return type of a GCC
12321 builtin and then its argument prototype would still apply. */
12329 return shl_load ();
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (ac_try="$ac_link"
12336 case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_link") 2>conftest.er1
12343 grep -v '^ *+' conftest.er1 >conftest.err
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest$ac_exeext &&
12351 $as_test_x conftest$ac_exeext; then
12352 ac_cv_lib_dld_shl_load=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_lib_dld_shl_load=no
12360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12361 conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12364 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12365 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12366 if test $ac_cv_lib_dld_shl_load = yes; then
12367 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12369 { echo "$as_me:$LINENO: checking for dlopen" >&5
12370 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12371 if test "${ac_cv_func_dlopen+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12382 #define dlopen innocuous_dlopen
12384 /* System header to define __stub macros and hopefully few prototypes,
12385 which can conflict with char dlopen (); below.
12386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12387 <limits.h> exists even on freestanding compilers. */
12390 # include <limits.h>
12392 # include <assert.h>
12397 /* Override any GCC internal prototype to avoid an error.
12398 Use char because int might match the return type of a GCC
12399 builtin and then its argument prototype would still apply. */
12404 /* The GNU C library defines this for functions which it implements
12405 to always fail with ENOSYS. Some functions are actually named
12406 something starting with __ and the normal name is an alias. */
12407 #if defined __stub_dlopen || defined __stub___dlopen
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest$ac_exeext &&
12436 $as_test_x conftest$ac_exeext; then
12437 ac_cv_func_dlopen=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_cv_func_dlopen=no
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446 conftest$ac_exeext conftest.$ac_ext
12448 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12449 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12450 if test $ac_cv_func_dlopen = yes; then
12451 lt_cv_dlopen="dlopen"
12453 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 ac_check_lib_save_LIBS=$LIBS
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_link") 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest$ac_exeext &&
12499 $as_test_x conftest$ac_exeext; then
12500 ac_cv_lib_dl_dlopen=yes
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 ac_cv_lib_dl_dlopen=no
12508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12509 conftest$ac_exeext conftest.$ac_ext
12510 LIBS=$ac_check_lib_save_LIBS
12512 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12513 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12514 if test $ac_cv_lib_dl_dlopen = yes; then
12515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12517 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12518 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12519 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-lsvld $LIBS"
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_link") 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && {
12560 test -z "$ac_c_werror_flag" ||
12561 test ! -s conftest.err
12562 } && test -s conftest$ac_exeext &&
12563 $as_test_x conftest$ac_exeext; then
12564 ac_cv_lib_svld_dlopen=yes
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_lib_svld_dlopen=no
12572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12573 conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12576 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12577 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12578 if test $ac_cv_lib_svld_dlopen = yes; then
12579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12581 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12582 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_check_lib_save_LIBS=$LIBS
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12605 return dld_link ();
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest$ac_exeext &&
12627 $as_test_x conftest$ac_exeext; then
12628 ac_cv_lib_dld_dld_link=yes
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12633 ac_cv_lib_dld_dld_link=no
12636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12637 conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12640 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12641 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12642 if test $ac_cv_lib_dld_dld_link = yes; then
12643 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12664 if test "x$lt_cv_dlopen" != xno; then
12670 case $lt_cv_dlopen in
12672 save_CPPFLAGS="$CPPFLAGS"
12673 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12675 save_LDFLAGS="$LDFLAGS"
12676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12679 LIBS="$lt_cv_dlopen_libs $LIBS"
12681 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12682 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12683 if test "${lt_cv_dlopen_self+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 if test "$cross_compiling" = yes; then :
12687 lt_cv_dlopen_self=cross
12689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12690 lt_status=$lt_dlunknown
12691 cat > conftest.$ac_ext <<_LT_EOF
12692 #line 12692 "configure"
12693 #include "confdefs.h"
12702 # define LT_DLGLOBAL RTLD_GLOBAL
12705 # define LT_DLGLOBAL DL_GLOBAL
12707 # define LT_DLGLOBAL 0
12711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12712 find out it does not work in some platform. */
12713 #ifndef LT_DLLAZY_OR_NOW
12715 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12718 # define LT_DLLAZY_OR_NOW DL_LAZY
12721 # define LT_DLLAZY_OR_NOW RTLD_NOW
12724 # define LT_DLLAZY_OR_NOW DL_NOW
12726 # define LT_DLLAZY_OR_NOW 0
12733 void fnord() { int i=42;}
12736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12737 int status = $lt_dlunknown;
12741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12743 /* dlclose (self); */
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12756 (./conftest; exit; ) >&5 2>/dev/null
12758 case x$lt_status in
12759 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12760 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12761 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12764 # compilation failed
12765 lt_cv_dlopen_self=no
12772 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12773 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12775 if test "x$lt_cv_dlopen_self" = xyes; then
12776 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12777 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12778 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12779 if test "${lt_cv_dlopen_self_static+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 if test "$cross_compiling" = yes; then :
12783 lt_cv_dlopen_self_static=cross
12785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12786 lt_status=$lt_dlunknown
12787 cat > conftest.$ac_ext <<_LT_EOF
12788 #line 12788 "configure"
12789 #include "confdefs.h"
12798 # define LT_DLGLOBAL RTLD_GLOBAL
12801 # define LT_DLGLOBAL DL_GLOBAL
12803 # define LT_DLGLOBAL 0
12807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12808 find out it does not work in some platform. */
12809 #ifndef LT_DLLAZY_OR_NOW
12811 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12814 # define LT_DLLAZY_OR_NOW DL_LAZY
12817 # define LT_DLLAZY_OR_NOW RTLD_NOW
12820 # define LT_DLLAZY_OR_NOW DL_NOW
12822 # define LT_DLLAZY_OR_NOW 0
12829 void fnord() { int i=42;}
12832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12833 int status = $lt_dlunknown;
12837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12839 /* dlclose (self); */
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12852 (./conftest; exit; ) >&5 2>/dev/null
12854 case x$lt_status in
12855 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12856 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12857 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12860 # compilation failed
12861 lt_cv_dlopen_self_static=no
12868 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12869 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12872 CPPFLAGS="$save_CPPFLAGS"
12873 LDFLAGS="$save_LDFLAGS"
12878 case $lt_cv_dlopen_self in
12879 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12880 *) enable_dlopen_self=unknown ;;
12883 case $lt_cv_dlopen_self_static in
12884 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12885 *) enable_dlopen_self_static=unknown ;;
12907 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12909 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12910 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12911 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12912 { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }
12915 # FIXME - insert some real tests, host_os isn't really good enough
12918 if test -n "$STRIP" ; then
12919 striplib="$STRIP -x"
12920 old_striplib="$STRIP -S"
12921 { echo "$as_me:$LINENO: result: yes" >&5
12922 echo "${ECHO_T}yes" >&6; }
12924 { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12929 { echo "$as_me:$LINENO: result: no" >&5
12930 echo "${ECHO_T}no" >&6; }
12946 # Report which library types will actually be built
12947 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12949 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12950 echo "${ECHO_T}$can_build_shared" >&6; }
12952 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12954 test "$can_build_shared" = "no" && enable_shared=no
12956 # On AIX, shared libraries and static libraries use the same namespace, and
12957 # are all built from PIC.
12960 test "$enable_shared" = yes && enable_static=no
12961 if test -n "$RANLIB"; then
12962 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12963 postinstall_cmds='$RANLIB $lib'
12968 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12969 test "$enable_shared" = yes && enable_static=no
12973 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12974 echo "${ECHO_T}$enable_shared" >&6; }
12976 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12978 # Make sure either enable_shared or enable_static is yes.
12979 test "$enable_shared" = yes || enable_static=yes
12980 { echo "$as_me:$LINENO: result: $enable_static" >&5
12981 echo "${ECHO_T}$enable_static" >&6; }
12988 ac_cpp='$CPP $CPPFLAGS'
12989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12997 ac_cpp='$CXXCPP $CPPFLAGS'
12998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13002 archive_cmds_need_lc_CXX=no
13003 allow_undefined_flag_CXX=
13004 always_export_symbols_CXX=no
13005 archive_expsym_cmds_CXX=
13006 compiler_needs_object_CXX=no
13007 export_dynamic_flag_spec_CXX=
13008 hardcode_direct_CXX=no
13009 hardcode_direct_absolute_CXX=no
13010 hardcode_libdir_flag_spec_CXX=
13011 hardcode_libdir_flag_spec_ld_CXX=
13012 hardcode_libdir_separator_CXX=
13013 hardcode_minus_L_CXX=no
13014 hardcode_shlibpath_var_CXX=unsupported
13015 hardcode_automatic_CXX=no
13016 inherit_rpath_CXX=no
13018 module_expsym_cmds_CXX=
13019 link_all_deplibs_CXX=unknown
13020 old_archive_cmds_CXX=$old_archive_cmds
13021 no_undefined_flag_CXX=
13022 whole_archive_flag_spec_CXX=
13023 enable_shared_with_static_runtimes_CXX=no
13025 # Source file extension for C++ test sources.
13028 # Object file extension for compiled C++ test sources.
13032 # No sense in running all these tests if we already determined that
13033 # the CXX compiler isn't working. Some variables (like enable_shared)
13034 # are currently assumed to apply to all compilers on this platform,
13035 # and will be corrupted by setting them based on a non-working compiler.
13036 if test "$_lt_caught_CXX_error" != yes; then
13037 # Code to be used in simple compile tests
13038 lt_simple_compile_test_code="int some_variable = 0;"
13040 # Code to be used in simple link tests
13041 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13043 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13050 # If no C compiler was specified, use CC.
13053 # If no C compiler flags were specified, use CFLAGS.
13054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13056 # Allow CC to be a program name with arguments.
13060 # save warnings/boilerplate of simple test code
13061 ac_outfile=conftest.$ac_objext
13062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13064 _lt_compiler_boilerplate=`cat conftest.err`
13067 ac_outfile=conftest.$ac_objext
13068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070 _lt_linker_boilerplate=`cat conftest.err`
13074 # Allow CC to be a program name with arguments.
13079 lt_save_with_gnu_ld=$with_gnu_ld
13080 lt_save_path_LD=$lt_cv_path_LD
13081 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13082 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13084 $as_unset lt_cv_prog_gnu_ld
13086 if test -n "${lt_cv_path_LDCXX+set}"; then
13087 lt_cv_path_LD=$lt_cv_path_LDCXX
13089 $as_unset lt_cv_path_LD
13091 test -z "${LDCXX+set}" || LD=$LDCXX
13095 for cc_temp in $compiler""; do
13097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13103 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13106 if test -n "$compiler"; then
13107 # We don't want -fno-exception when compiling C++ code, so set the
13108 # no_builtin_flag separately
13109 if test "$GXX" = yes; then
13110 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13112 lt_prog_compiler_no_builtin_flag_CXX=
13115 if test "$GXX" = yes; then
13116 # Set up default GNU C++ configuration
13120 # Check whether --with-gnu-ld was given.
13121 if test "${with_gnu_ld+set}" = set; then
13122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13128 if test "$GCC" = yes; then
13129 # Check if gcc -print-prog-name=ld gives a path.
13130 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13134 # gcc leaves a trailing carriage return which upsets mingw
13135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13140 # Accept absolute paths.
13142 re_direlt='/[^/][^/]*/\.\./'
13143 # Canonicalize the pathname of ld
13144 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13145 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13146 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13148 test -z "$LD" && LD="$ac_prog"
13151 # If it fails, then pretend we aren't using GCC.
13155 # If it is relative, then search for the first ld in PATH.
13156 with_gnu_ld=unknown
13159 elif test "$with_gnu_ld" = yes; then
13160 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13163 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13166 if test "${lt_cv_path_LD+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 if test -z "$LD"; then
13170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13171 for ac_dir in $PATH; do
13173 test -z "$ac_dir" && ac_dir=.
13174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13175 lt_cv_path_LD="$ac_dir/$ac_prog"
13176 # Check to see if the program is GNU ld. I'd rather use --version,
13177 # but apparently some variants of GNU ld only accept -v.
13178 # Break only if it was the GNU/non-GNU ld that we prefer.
13179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13180 *GNU* | *'with BFD'*)
13181 test "$with_gnu_ld" != no && break
13184 test "$with_gnu_ld" != yes && break
13191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13195 LD="$lt_cv_path_LD"
13196 if test -n "$LD"; then
13197 { echo "$as_me:$LINENO: result: $LD" >&5
13198 echo "${ECHO_T}$LD" >&6; }
13200 { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13205 { (exit 1); exit 1; }; }
13206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13212 case `$LD -v 2>&1 </dev/null` in
13213 *GNU* | *'with BFD'*)
13214 lt_cv_prog_gnu_ld=yes
13217 lt_cv_prog_gnu_ld=no
13221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13223 with_gnu_ld=$lt_cv_prog_gnu_ld
13231 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13232 # archiving commands below assume that GNU ld is being used.
13233 if test "$with_gnu_ld" = yes; then
13234 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235 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'
13237 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13240 # If archive_cmds runs LD, not CC, wlarc should be empty
13241 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13242 # investigate it a little bit more. (MM)
13245 # ancient GNU ld didn't support --whole-archive et. al.
13246 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13247 $GREP 'no-whole-archive' > /dev/null; then
13248 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13250 whole_archive_flag_spec_CXX=
13256 # A generic and very simple default shared library creation
13257 # command for GNU C++ for the case where it uses the native
13258 # linker, instead of GNU ld. If possible, this setting should
13259 # overridden to take advantage of the native linker features on
13260 # the platform it is being used on.
13261 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13264 # Commands to make compiler produce verbose output that lists
13265 # what "hidden" libraries, object files and flags are used when
13266 # linking a shared library.
13267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13275 # PORTME: fill in a description of your system's C++ link characteristics
13276 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13281 # FIXME: insert proper C++ library support
13285 if test "$host_cpu" = ia64; then
13286 # On IA64, the linker does run time linking by default, so we don't
13287 # have to do anything special.
13288 aix_use_runtimelinking=no
13289 exp_sym_flag='-Bexport'
13292 aix_use_runtimelinking=no
13294 # Test if we are trying to use run time linking or normal
13295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13296 # need to do runtime linking.
13297 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13298 for ld_flag in $LDFLAGS; do
13301 aix_use_runtimelinking=yes
13309 exp_sym_flag='-bexport'
13310 no_entry_flag='-bnoentry'
13313 # When large executables or shared objects are built, AIX ld can
13314 # have problems creating the table of contents. If linking a library
13315 # or program results in "error TOC overflow" add -mminimal-toc to
13316 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13317 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13319 archive_cmds_CXX=''
13320 hardcode_direct_CXX=yes
13321 hardcode_direct_absolute_CXX=yes
13322 hardcode_libdir_separator_CXX=':'
13323 link_all_deplibs_CXX=yes
13324 file_list_spec_CXX='${wl}-f,'
13326 if test "$GXX" = yes; then
13327 case $host_os in aix4.[012]|aix4.[012].*)
13328 # We only want to do this on AIX 4.2 and lower, the check
13329 # below for broken collect2 doesn't work under 4.3+
13330 collect2name=`${CC} -print-prog-name=collect2`
13331 if test -f "$collect2name" &&
13332 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13334 # We have reworked collect2
13337 # We have old collect2
13338 hardcode_direct_CXX=unsupported
13339 # It fails to find uninstalled libraries when the uninstalled
13340 # path is not listed in the libpath. Setting hardcode_minus_L
13341 # to unsupported forces relinking
13342 hardcode_minus_L_CXX=yes
13343 hardcode_libdir_flag_spec_CXX='-L$libdir'
13344 hardcode_libdir_separator_CXX=
13347 shared_flag='-shared'
13348 if test "$aix_use_runtimelinking" = yes; then
13349 shared_flag="$shared_flag "'${wl}-G'
13353 if test "$host_cpu" = ia64; then
13354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13355 # chokes on -Wl,-G. The following line is correct:
13358 if test "$aix_use_runtimelinking" = yes; then
13359 shared_flag='${wl}-G'
13361 shared_flag='${wl}-bM:SRE'
13366 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13367 # It seems that -bexpall does not export symbols beginning with
13368 # underscore (_), so it is better to generate a list of symbols to
13370 always_export_symbols_CXX=yes
13371 if test "$aix_use_runtimelinking" = yes; then
13372 # Warning - without using the other runtime loading flags (-brtl),
13373 # -berok will link without error, but may produce a broken library.
13374 allow_undefined_flag_CXX='-berok'
13375 # Determine the default libpath from the value encoded in an empty
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } && {
13406 test -z "$ac_cxx_werror_flag" ||
13407 test ! -s conftest.err
13408 } && test -s conftest$ac_exeext &&
13409 $as_test_x conftest$ac_exeext; then
13411 lt_aix_libpath_sed='
13412 /Import File Strings/,/^$/ {
13418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13419 # Check for a 64-bit object if we didn't find anything.
13420 if test -z "$aix_libpath"; then
13421 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431 conftest$ac_exeext conftest.$ac_ext
13432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13434 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13436 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"
13438 if test "$host_cpu" = ia64; then
13439 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13440 allow_undefined_flag_CXX="-z nodefs"
13441 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"
13443 # Determine the default libpath from the value encoded in an
13444 # empty executable.
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (ac_try="$ac_link"
13462 case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_link") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_cxx_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest$ac_exeext &&
13477 $as_test_x conftest$ac_exeext; then
13479 lt_aix_libpath_sed='
13480 /Import File Strings/,/^$/ {
13486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13487 # Check for a 64-bit object if we didn't find anything.
13488 if test -z "$aix_libpath"; then
13489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13499 conftest$ac_exeext conftest.$ac_ext
13500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13502 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13503 # Warning - without using the other run time loading flags,
13504 # -berok will link without error, but may produce a broken library.
13505 no_undefined_flag_CXX=' ${wl}-bernotok'
13506 allow_undefined_flag_CXX=' ${wl}-berok'
13507 # Exported symbols can be pulled into shared objects from archives
13508 whole_archive_flag_spec_CXX='$convenience'
13509 archive_cmds_need_lc_CXX=yes
13510 # This is similar to how AIX traditionally builds its shared
13512 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'
13518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13519 allow_undefined_flag_CXX=unsupported
13520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13521 # support --undefined. This deserves some investigation. FIXME
13522 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529 case $cc_basename in
13531 # FIXME: insert proper C++ library support
13537 cygwin* | mingw* | pw32* | cegcc*)
13538 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13539 # as there is no search path for DLLs.
13540 hardcode_libdir_flag_spec_CXX='-L$libdir'
13541 allow_undefined_flag_CXX=unsupported
13542 always_export_symbols_CXX=no
13543 enable_shared_with_static_runtimes_CXX=yes
13545 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13546 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'
13547 # If the export-symbols file already is a .def file (1st line
13548 # is EXPORTS), use it as is; otherwise, prepend...
13549 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13550 cp $export_symbols $output_objdir/$soname.def;
13552 echo EXPORTS > $output_objdir/$soname.def;
13553 cat $export_symbols >> $output_objdir/$soname.def;
13555 $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'
13560 darwin* | rhapsody*)
13563 archive_cmds_need_lc_CXX=no
13564 hardcode_direct_CXX=no
13565 hardcode_automatic_CXX=yes
13566 hardcode_shlibpath_var_CXX=unsupported
13567 whole_archive_flag_spec_CXX=''
13568 link_all_deplibs_CXX=yes
13569 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13570 case $cc_basename in
13571 ifort*) _lt_dar_can_shared=yes ;;
13572 *) _lt_dar_can_shared=$GCC ;;
13574 if test "$_lt_dar_can_shared" = "yes"; then
13575 output_verbose_link_cmd=echo
13576 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}"
13577 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13578 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}"
13579 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}"
13580 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13581 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}"
13582 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}"
13592 case $cc_basename in
13594 # FIXME: insert proper C++ library support
13598 # Green Hills C++ Compiler
13599 # FIXME: insert proper C++ library support
13603 # FIXME: insert proper C++ library support
13610 # C++ shared libraries reported to be fairly broken before
13616 archive_cmds_need_lc_CXX=no
13619 freebsd* | dragonfly*)
13620 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13630 hardcode_libdir_separator_CXX=:
13631 export_dynamic_flag_spec_CXX='${wl}-E'
13632 hardcode_direct_CXX=yes
13633 hardcode_minus_L_CXX=yes # Not in the search PATH,
13634 # but as the default
13635 # location of the library.
13637 case $cc_basename in
13639 # FIXME: insert proper C++ library support
13643 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'
13644 # Commands to make compiler produce verbose output that lists
13645 # what "hidden" libraries, object files and flags are used when
13646 # linking a shared library.
13648 # There doesn't appear to be a way to prevent this compiler from
13649 # explicitly linking system object files so we need to strip them
13650 # from the output so that they don't get included in the library
13652 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'
13655 if test "$GXX" = yes; then
13656 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'
13658 # FIXME: insert proper C++ library support
13666 if test $with_gnu_ld = no; then
13667 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13668 hardcode_libdir_separator_CXX=:
13674 export_dynamic_flag_spec_CXX='${wl}-E'
13680 hardcode_direct_CXX=no
13681 hardcode_shlibpath_var_CXX=no
13684 hardcode_direct_CXX=yes
13685 hardcode_direct_absolute_CXX=yes
13686 hardcode_minus_L_CXX=yes # Not in the search PATH,
13687 # but as the default
13688 # location of the library.
13692 case $cc_basename in
13694 # FIXME: insert proper C++ library support
13700 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13709 # Commands to make compiler produce verbose output that lists
13710 # what "hidden" libraries, object files and flags are used when
13711 # linking a shared library.
13713 # There doesn't appear to be a way to prevent this compiler from
13714 # explicitly linking system object files so we need to strip them
13715 # from the output so that they don't get included in the library
13717 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'
13720 if test "$GXX" = yes; then
13721 if test $with_gnu_ld = no; then
13724 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13730 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'
13735 # FIXME: insert proper C++ library support
13743 hardcode_direct_CXX=no
13744 hardcode_shlibpath_var_CXX=no
13745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746 export_dynamic_flag_spec_CXX='${wl}-E'
13747 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13748 # Instead, shared libraries are loaded at an image base (0x10000000 by
13749 # default) and relocated if they conflict, which is a slow very memory
13750 # consuming and fragmenting process. To avoid this, we pick a random,
13751 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13752 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13753 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'
13754 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'
13757 case $cc_basename in
13760 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'
13762 # Archives containing C++ object files must be created using
13763 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13764 # necessary to make sure instantiated templates are included
13766 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13769 if test "$GXX" = yes; then
13770 if test "$with_gnu_ld" = no; then
13771 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'
13773 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'
13776 link_all_deplibs_CXX=yes
13779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13780 hardcode_libdir_separator_CXX=:
13781 inherit_rpath_CXX=yes
13784 linux* | k*bsd*-gnu)
13785 case $cc_basename in
13787 # Kuck and Associates, Inc. (KAI) C++ Compiler
13789 # KCC will only create a shared library if the output file
13790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13791 # to its proper name (with version) after linking.
13792 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'
13793 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'
13794 # Commands to make compiler produce verbose output that lists
13795 # what "hidden" libraries, object files and flags are used when
13796 # linking a shared library.
13798 # There doesn't appear to be a way to prevent this compiler from
13799 # explicitly linking system object files so we need to strip them
13800 # from the output so that they don't get included in the library
13802 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'
13804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13807 # Archives containing C++ object files must be created using
13808 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13809 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13814 # version 8.0 and above of icpc choke on multiply defined symbols
13815 # if we add $predep_objects and $postdep_objects, however 7.1 and
13816 # earlier do not add the objects themselves.
13817 case `$CC -V 2>&1` in
13819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 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'
13822 *) # Version 8.0 or newer
13825 ia64*) tmp_idyn=' -i_dynamic';;
13827 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828 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'
13831 archive_cmds_need_lc_CXX=no
13832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13837 # Portland Group C++ compiler
13839 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13840 prelink_cmds_CXX='tpldir=Template.dir~
13842 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13843 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13844 old_archive_cmds_CXX='tpldir=Template.dir~
13846 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13847 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13849 archive_cmds_CXX='tpldir=Template.dir~
13851 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13853 archive_expsym_cmds_CXX='tpldir=Template.dir~
13855 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13856 $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'
13858 *) # Version 6 will use weak symbols
13859 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13860 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'
13864 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13865 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13866 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'
13870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871 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'
13873 runpath_var=LD_RUN_PATH
13874 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13875 hardcode_libdir_separator_CXX=:
13877 # Commands to make compiler produce verbose output that lists
13878 # what "hidden" libraries, object files and flags are used when
13879 # linking a shared library.
13881 # There doesn't appear to be a way to prevent this compiler from
13882 # explicitly linking system object files so we need to strip them
13883 # from the output so that they don't get included in the library
13885 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'
13888 # IBM XL 8.0 on PPC, with GNU ld
13889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13891 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13892 if test "x$supports_anon_versioning" = xyes; then
13893 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13895 echo "local: *; };" >> $output_objdir/$libname.ver~
13896 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13900 case `$CC -V 2>&1 | sed 5q` in
13903 no_undefined_flag_CXX=' -zdefs'
13904 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905 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'
13906 hardcode_libdir_flag_spec_CXX='-R$libdir'
13907 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'
13908 compiler_needs_object_CXX=yes
13910 # Not sure whether something based on
13911 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13913 output_verbose_link_cmd='echo'
13915 # Archives containing C++ object files must be created using
13916 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13917 # necessary to make sure instantiated templates are included
13919 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13927 # FIXME: insert proper C++ library support
13932 # FIXME: insert proper C++ library support
13937 case $cc_basename in
13939 # FIXME: insert proper C++ library support
13943 # FIXME: insert proper C++ library support
13950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13951 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13953 hardcode_libdir_flag_spec_CXX='-R$libdir'
13954 hardcode_direct_CXX=yes
13955 hardcode_shlibpath_var_CXX=no
13957 # Workaround some broken pre-1.5 toolchains
13958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13966 # C++ shared libraries are fairly broken
13971 if test -f /usr/libexec/ld.so; then
13972 hardcode_direct_CXX=yes
13973 hardcode_shlibpath_var_CXX=no
13974 hardcode_direct_absolute_CXX=yes
13975 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13978 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13979 export_dynamic_flag_spec_CXX='${wl}-E'
13980 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13982 output_verbose_link_cmd=echo
13988 osf3* | osf4* | osf5*)
13989 case $cc_basename in
13991 # Kuck and Associates, Inc. (KAI) C++ Compiler
13993 # KCC will only create a shared library if the output file
13994 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13995 # to its proper name (with version) after linking.
13996 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'
13998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13999 hardcode_libdir_separator_CXX=:
14001 # Archives containing C++ object files must be created using
14002 # the KAI C++ compiler.
14004 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14005 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14009 # Rational C++ 2.4.1
14010 # FIXME: insert proper C++ library support
14016 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14017 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'
14018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14021 allow_undefined_flag_CXX=' -expect_unresolved \*'
14022 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'
14023 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14024 echo "-hidden">> $lib.exp~
14025 $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~
14027 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14031 hardcode_libdir_separator_CXX=:
14033 # Commands to make compiler produce verbose output that lists
14034 # what "hidden" libraries, object files and flags are used when
14035 # linking a shared library.
14037 # There doesn't appear to be a way to prevent this compiler from
14038 # explicitly linking system object files so we need to strip them
14039 # from the output so that they don't get included in the library
14041 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'
14044 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14045 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14048 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'
14051 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'
14055 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14056 hardcode_libdir_separator_CXX=:
14058 # Commands to make compiler produce verbose output that lists
14059 # what "hidden" libraries, object files and flags are used when
14060 # linking a shared library.
14061 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14064 # FIXME: insert proper C++ library support
14072 # FIXME: insert proper C++ library support
14077 case $cc_basename in
14080 # FIXME: insert proper C++ library support
14085 # FIXME: insert proper C++ library support
14089 # FIXME: insert proper C++ library support
14096 case $cc_basename in
14098 # Sun C++ 4.2, 5.x and Centerline C++
14099 archive_cmds_need_lc_CXX=yes
14100 no_undefined_flag_CXX=' -zdefs'
14101 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14102 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14103 $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'
14105 hardcode_libdir_flag_spec_CXX='-R$libdir'
14106 hardcode_shlibpath_var_CXX=no
14108 solaris2.[0-5] | solaris2.[0-5].*) ;;
14110 # The compiler driver will combine and reorder linker options,
14111 # but understands `-z linker_flag'.
14112 # Supported since Solaris 2.6 (maybe 2.5.1?)
14113 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14116 link_all_deplibs_CXX=yes
14118 output_verbose_link_cmd='echo'
14120 # Archives containing C++ object files must be created using
14121 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14122 # necessary to make sure instantiated templates are included
14124 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14127 # Green Hills C++ Compiler
14128 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14130 # The C++ compiler must be used to create the archive.
14131 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14134 # GNU C++ compiler with Solaris linker
14135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14136 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14137 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14138 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14139 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14140 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14142 # Commands to make compiler produce verbose output that lists
14143 # what "hidden" libraries, object files and flags are used when
14144 # linking a shared library.
14145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14147 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14149 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14150 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14151 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14153 # Commands to make compiler produce verbose output that lists
14154 # what "hidden" libraries, object files and flags are used when
14155 # linking a shared library.
14156 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14159 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14161 solaris2.[0-5] | solaris2.[0-5].*) ;;
14163 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14171 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14172 no_undefined_flag_CXX='${wl}-z,text'
14173 archive_cmds_need_lc_CXX=no
14174 hardcode_shlibpath_var_CXX=no
14175 runpath_var='LD_RUN_PATH'
14177 case $cc_basename in
14179 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14189 sysv5* | sco3.2v5* | sco5v6*)
14190 # Note: We can NOT use -z defs as we might desire, because we do not
14191 # link with -lc, and that would cause any symbols used from libc to
14192 # always be unresolved, which means just about no library would
14193 # ever link correctly. If we're not using GNU ld we use -z text
14194 # though, which does catch some bad symbols but isn't as heavy-handed
14196 no_undefined_flag_CXX='${wl}-z,text'
14197 allow_undefined_flag_CXX='${wl}-z,nodefs'
14198 archive_cmds_need_lc_CXX=no
14199 hardcode_shlibpath_var_CXX=no
14200 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14201 hardcode_libdir_separator_CXX=':'
14202 link_all_deplibs_CXX=yes
14203 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14204 runpath_var='LD_RUN_PATH'
14206 case $cc_basename in
14208 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14219 case $cc_basename in
14221 # NonStop-UX NCC 3.20
14222 # FIXME: insert proper C++ library support
14226 # FIXME: insert proper C++ library support
14233 # FIXME: insert proper C++ library support
14238 # FIXME: insert proper C++ library support
14243 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14244 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14245 test "$ld_shlibs_CXX" = no && can_build_shared=no
14251 ## There is no encapsulation within the following macros, do not change
14252 ## the running order or otherwise move them around unless you know exactly
14253 ## what you are doing...
14254 # Dependencies to place before and after the object being linked:
14255 predep_objects_CXX=
14256 postdep_objects_CXX=
14259 compiler_lib_search_path_CXX=
14261 cat > conftest.$ac_ext <<_LT_EOF
14265 Foo (void) { a = 0; }
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; then
14276 # Parse the compiler output and extract the necessary
14277 # objects, libraries and library flags.
14279 # Sentinel used to keep track of whether or not we are before
14280 # the conftest object file.
14281 pre_test_object_deps_done=no
14283 for p in `eval "$output_verbose_link_cmd"`; do
14287 # Some compilers place space between "-{L,R}" and the path.
14288 # Remove the space.
14289 if test $p = "-L" ||
14290 test $p = "-R"; then
14297 if test "$pre_test_object_deps_done" = no; then
14300 # Internal compiler library paths should come after those
14301 # provided the user. The postdeps already come after the
14302 # user supplied libs so there is no need to process them.
14303 if test -z "$compiler_lib_search_path_CXX"; then
14304 compiler_lib_search_path_CXX="${prev}${p}"
14306 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14309 # The "-l" case would never come before the object being
14310 # linked, so don't bother handling this case.
14313 if test -z "$postdeps_CXX"; then
14314 postdeps_CXX="${prev}${p}"
14316 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14322 # This assumes that the test object file only shows up
14323 # once in the compiler output.
14324 if test "$p" = "conftest.$objext"; then
14325 pre_test_object_deps_done=yes
14329 if test "$pre_test_object_deps_done" = no; then
14330 if test -z "$predep_objects_CXX"; then
14331 predep_objects_CXX="$p"
14333 predep_objects_CXX="$predep_objects_CXX $p"
14336 if test -z "$postdep_objects_CXX"; then
14337 postdep_objects_CXX="$p"
14339 postdep_objects_CXX="$postdep_objects_CXX $p"
14344 *) ;; # Ignore the rest.
14352 echo "libtool.m4: error: problem compiling CXX test program"
14355 $RM -f confest.$objext
14357 # PORTME: override above test on systems where it is broken
14360 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14361 # hack all around it, let's just trust "g++" to DTRT.
14362 predep_objects_CXX=
14363 postdep_objects_CXX=
14368 case `$CC -V 2>&1 | sed 5q` in
14372 # The more standards-conforming stlport4 library is
14373 # incompatible with the Cstd library. Avoid specifying
14374 # it if it's in CXXFLAGS. Ignore libCrun as
14375 # -library=stlport4 depends on it.
14376 case " $CXX $CXXFLAGS " in
14377 *" -library=stlport4 "*)
14378 solaris_use_stlport4=yes
14382 if test "$solaris_use_stlport4" != yes; then
14383 postdeps_CXX='-library=Cstd -library=Crun'
14390 case $cc_basename in
14392 # The more standards-conforming stlport4 library is
14393 # incompatible with the Cstd library. Avoid specifying
14394 # it if it's in CXXFLAGS. Ignore libCrun as
14395 # -library=stlport4 depends on it.
14396 case " $CXX $CXXFLAGS " in
14397 *" -library=stlport4 "*)
14398 solaris_use_stlport4=yes
14402 # Adding this requires a known-good setup of shared libraries for
14403 # Sun compiler versions before 5.6, else PIC objects from an old
14404 # archive will be linked into the output, leading to subtle bugs.
14405 if test "$solaris_use_stlport4" != yes; then
14406 postdeps_CXX='-library=Cstd -library=Crun'
14414 case " $postdeps_CXX " in
14415 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14417 compiler_lib_search_dirs_CXX=
14418 if test -n "${compiler_lib_search_path_CXX}"; then
14419 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14452 lt_prog_compiler_wl_CXX=
14453 lt_prog_compiler_pic_CXX=
14454 lt_prog_compiler_static_CXX=
14456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14459 # C++ specific cases for pic, static, wl, etc.
14460 if test "$GXX" = yes; then
14461 lt_prog_compiler_wl_CXX='-Wl,'
14462 lt_prog_compiler_static_CXX='-static'
14466 # All AIX code is PIC.
14467 if test "$host_cpu" = ia64; then
14468 # AIX 5 now supports IA64 processor
14469 lt_prog_compiler_static_CXX='-Bstatic'
14476 # see comment about AmigaOS4 .so support
14477 lt_prog_compiler_pic_CXX='-fPIC'
14480 # FIXME: we need at least 68020 code to build shared libraries, but
14481 # adding the `-m68020' flag to GCC prevents building anything better,
14483 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14488 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14489 # PIC is the default for these OSes.
14491 mingw* | cygwin* | os2* | pw32* | cegcc*)
14492 # This hack is so that the source file can tell whether it is being
14493 # built for inclusion in a dll (and should export symbols for example).
14494 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14495 # (--disable-auto-import) libraries
14496 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14498 darwin* | rhapsody*)
14499 # PIC is the default on this platform
14500 # Common symbols not allowed in MH_DYLIB files
14501 lt_prog_compiler_pic_CXX='-fno-common'
14504 # DJGPP does not support shared libraries at all
14505 lt_prog_compiler_pic_CXX=
14508 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14509 # Instead, we relocate shared libraries at runtime.
14512 if test -d /usr/nec; then
14513 lt_prog_compiler_pic_CXX=-Kconform_pic
14517 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14518 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14519 # sets the default TLS model and affects inlining.
14524 lt_prog_compiler_pic_CXX='-fPIC'
14529 # QNX uses GNU C++, but need to define -shared option too, otherwise
14530 # it will coredump.
14531 lt_prog_compiler_pic_CXX='-fPIC -shared'
14534 lt_prog_compiler_pic_CXX='-fPIC'
14540 # All AIX code is PIC.
14541 if test "$host_cpu" = ia64; then
14542 # AIX 5 now supports IA64 processor
14543 lt_prog_compiler_static_CXX='-Bstatic'
14545 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14549 case $cc_basename in
14551 # Green Hills C++ Compiler
14552 # _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"
14557 case $cc_basename in
14559 lt_prog_compiler_pic_CXX='-KPIC'
14562 # Green Hills C++ Compiler
14563 lt_prog_compiler_pic_CXX='-pic'
14569 freebsd* | dragonfly*)
14570 # FreeBSD uses GNU C++
14572 hpux9* | hpux10* | hpux11*)
14573 case $cc_basename in
14575 lt_prog_compiler_wl_CXX='-Wl,'
14576 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14577 if test "$host_cpu" != ia64; then
14578 lt_prog_compiler_pic_CXX='+Z'
14582 lt_prog_compiler_wl_CXX='-Wl,'
14583 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14589 lt_prog_compiler_pic_CXX='+Z'
14598 # This is c89, which is MS Visual C++ (no shared libs)
14599 # Anyone wants to do a port?
14601 irix5* | irix6* | nonstopux*)
14602 case $cc_basename in
14604 lt_prog_compiler_wl_CXX='-Wl,'
14605 lt_prog_compiler_static_CXX='-non_shared'
14606 # CC pic flag -KPIC is the default.
14612 linux* | k*bsd*-gnu)
14613 case $cc_basename in
14616 lt_prog_compiler_wl_CXX='--backend -Wl,'
14617 lt_prog_compiler_pic_CXX='-fPIC'
14620 # old Intel C++ for x86_64 which still supported -KPIC.
14621 lt_prog_compiler_wl_CXX='-Wl,'
14622 lt_prog_compiler_pic_CXX='-KPIC'
14623 lt_prog_compiler_static_CXX='-static'
14626 # Intel C++, used to be incompatible with GCC.
14627 # ICC 10 doesn't accept -KPIC any more.
14628 lt_prog_compiler_wl_CXX='-Wl,'
14629 lt_prog_compiler_pic_CXX='-fPIC'
14630 lt_prog_compiler_static_CXX='-static'
14633 # Portland Group C++ compiler
14634 lt_prog_compiler_wl_CXX='-Wl,'
14635 lt_prog_compiler_pic_CXX='-fpic'
14636 lt_prog_compiler_static_CXX='-Bstatic'
14640 # Make sure the PIC flag is empty. It appears that all Alpha
14641 # Linux and Compaq Tru64 Unix objects are PIC.
14642 lt_prog_compiler_pic_CXX=
14643 lt_prog_compiler_static_CXX='-non_shared'
14646 # IBM XL 8.0 on PPC
14647 lt_prog_compiler_wl_CXX='-Wl,'
14648 lt_prog_compiler_pic_CXX='-qpic'
14649 lt_prog_compiler_static_CXX='-qstaticlink'
14652 case `$CC -V 2>&1 | sed 5q` in
14655 lt_prog_compiler_pic_CXX='-KPIC'
14656 lt_prog_compiler_static_CXX='-Bstatic'
14657 lt_prog_compiler_wl_CXX='-Qoption ld '
14668 case $cc_basename in
14670 lt_prog_compiler_pic_CXX='-W c,exportall'
14679 # QNX uses GNU C++, but need to define -shared option too, otherwise
14680 # it will coredump.
14681 lt_prog_compiler_pic_CXX='-fPIC -shared'
14683 osf3* | osf4* | osf5*)
14684 case $cc_basename in
14686 lt_prog_compiler_wl_CXX='--backend -Wl,'
14689 # Rational C++ 2.4.1
14690 lt_prog_compiler_pic_CXX='-pic'
14693 # Digital/Compaq C++
14694 lt_prog_compiler_wl_CXX='-Wl,'
14695 # Make sure the PIC flag is empty. It appears that all Alpha
14696 # Linux and Compaq Tru64 Unix objects are PIC.
14697 lt_prog_compiler_pic_CXX=
14698 lt_prog_compiler_static_CXX='-non_shared'
14707 case $cc_basename in
14709 # Sun C++ 4.2, 5.x and Centerline C++
14710 lt_prog_compiler_pic_CXX='-KPIC'
14711 lt_prog_compiler_static_CXX='-Bstatic'
14712 lt_prog_compiler_wl_CXX='-Qoption ld '
14715 # Green Hills C++ Compiler
14716 lt_prog_compiler_pic_CXX='-PIC'
14723 case $cc_basename in
14726 lt_prog_compiler_pic_CXX='-pic'
14727 lt_prog_compiler_static_CXX='-Bstatic'
14731 lt_prog_compiler_pic_CXX='-pic'
14737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14738 case $cc_basename in
14740 lt_prog_compiler_wl_CXX='-Wl,'
14741 lt_prog_compiler_pic_CXX='-KPIC'
14742 lt_prog_compiler_static_CXX='-Bstatic'
14747 case $cc_basename in
14749 # NonStop-UX NCC 3.20
14750 lt_prog_compiler_pic_CXX='-KPIC'
14759 lt_prog_compiler_can_build_shared_CXX=no
14765 # For platforms which do not support PIC, -DPIC is meaningless:
14767 lt_prog_compiler_pic_CXX=
14770 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14774 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14779 # Check to make sure the PIC flag actually works.
14781 if test -n "$lt_prog_compiler_pic_CXX"; then
14782 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 lt_cv_prog_compiler_pic_works_CXX=no
14788 ac_outfile=conftest.$ac_objext
14789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14790 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14791 # Insert the option either (1) after the last *FLAGS variable, or
14792 # (2) before a word containing "conftest.", or (3) at the end.
14793 # Note that $ac_compile itself does not contain backslashes and begins
14794 # with a dollar sign (not a hyphen), so the echo should work correctly.
14795 # The option is referenced via a variable to avoid confusing sed.
14796 lt_compile=`echo "$ac_compile" | $SED \
14797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14799 -e 's:$: $lt_compiler_flag:'`
14800 (eval echo "\"\$as_me:14800: $lt_compile\"" >&5)
14801 (eval "$lt_compile" 2>conftest.err)
14803 cat conftest.err >&5
14804 echo "$as_me:14804: \$? = $ac_status" >&5
14805 if (exit $ac_status) && test -s "$ac_outfile"; then
14806 # The compiler can only warn and ignore the option if not recognized
14807 # So say no if there are warnings other than the usual output.
14808 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14811 lt_cv_prog_compiler_pic_works_CXX=yes
14817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14818 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14820 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14821 case $lt_prog_compiler_pic_CXX in
14823 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14826 lt_prog_compiler_pic_CXX=
14827 lt_prog_compiler_can_build_shared_CXX=no
14835 # Check to make sure the static flag actually works.
14837 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14838 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14839 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14840 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 lt_cv_prog_compiler_static_works_CXX=no
14844 save_LDFLAGS="$LDFLAGS"
14845 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14846 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14848 # The linker can only warn and ignore the option if not recognized
14849 # So say no if there are warnings
14850 if test -s conftest.err; then
14851 # Append any errors to the config.log.
14852 cat conftest.err 1>&5
14853 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14855 if diff conftest.exp conftest.er2 >/dev/null; then
14856 lt_cv_prog_compiler_static_works_CXX=yes
14859 lt_cv_prog_compiler_static_works_CXX=yes
14863 LDFLAGS="$save_LDFLAGS"
14866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14867 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14869 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14872 lt_prog_compiler_static_CXX=
14878 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14880 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 lt_cv_prog_compiler_c_o_CXX=no
14884 $RM -r conftest 2>/dev/null
14888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14890 lt_compiler_flag="-o out/conftest2.$ac_objext"
14891 # Insert the option either (1) after the last *FLAGS variable, or
14892 # (2) before a word containing "conftest.", or (3) at the end.
14893 # Note that $ac_compile itself does not contain backslashes and begins
14894 # with a dollar sign (not a hyphen), so the echo should work correctly.
14895 lt_compile=`echo "$ac_compile" | $SED \
14896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898 -e 's:$: $lt_compiler_flag:'`
14899 (eval echo "\"\$as_me:14899: $lt_compile\"" >&5)
14900 (eval "$lt_compile" 2>out/conftest.err)
14902 cat out/conftest.err >&5
14903 echo "$as_me:14903: \$? = $ac_status" >&5
14904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14906 # The compiler can only warn and ignore the option if not recognized
14907 # So say no if there are warnings
14908 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14911 lt_cv_prog_compiler_c_o_CXX=yes
14916 # SGI C++ compiler will create directory out/ii_files/ for
14917 # template instantiation
14918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14919 $RM out/* && rmdir out
14925 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14930 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14932 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 lt_cv_prog_compiler_c_o_CXX=no
14936 $RM -r conftest 2>/dev/null
14940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14942 lt_compiler_flag="-o out/conftest2.$ac_objext"
14943 # Insert the option either (1) after the last *FLAGS variable, or
14944 # (2) before a word containing "conftest.", or (3) at the end.
14945 # Note that $ac_compile itself does not contain backslashes and begins
14946 # with a dollar sign (not a hyphen), so the echo should work correctly.
14947 lt_compile=`echo "$ac_compile" | $SED \
14948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14950 -e 's:$: $lt_compiler_flag:'`
14951 (eval echo "\"\$as_me:14951: $lt_compile\"" >&5)
14952 (eval "$lt_compile" 2>out/conftest.err)
14954 cat out/conftest.err >&5
14955 echo "$as_me:14955: \$? = $ac_status" >&5
14956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14958 # The compiler can only warn and ignore the option if not recognized
14959 # So say no if there are warnings
14960 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14963 lt_cv_prog_compiler_c_o_CXX=yes
14968 # SGI C++ compiler will create directory out/ii_files/ for
14969 # template instantiation
14970 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14971 $RM out/* && rmdir out
14977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14983 hard_links="nottested"
14984 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14985 # do not overwrite the value of need_locks provided by the user
14986 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14987 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14992 ln conftest.a conftest.b 2>&5 || hard_links=no
14993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994 { echo "$as_me:$LINENO: result: $hard_links" >&5
14995 echo "${ECHO_T}$hard_links" >&6; }
14996 if test "$hard_links" = no; then
14997 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14998 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15007 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15010 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15013 # If we're using GNU nm, then we don't want the "-C" option.
15014 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15015 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15016 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'
15018 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'
15022 export_symbols_cmds_CXX="$ltdll_cmds"
15024 cygwin* | mingw* | cegcc*)
15025 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'
15028 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15031 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15033 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15034 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15035 test "$ld_shlibs_CXX" = no && can_build_shared=no
15037 with_gnu_ld_CXX=$with_gnu_ld
15045 # Do we need to explicitly link libc?
15047 case "x$archive_cmds_need_lc_CXX" in
15049 # Assume -lc should be added
15050 archive_cmds_need_lc_CXX=yes
15052 if test "$enable_shared" = yes && test "$GCC" = yes; then
15053 case $archive_cmds_CXX in
15055 # FIXME: we may have to deal with multi-command sequences.
15058 # Test whether the compiler implicitly links with -lc since on some
15059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15060 # to ld, don't add -lc before -lgcc.
15061 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15062 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067 (eval $ac_compile) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } 2>conftest.err; then
15073 libobjs=conftest.$ac_objext
15075 wl=$lt_prog_compiler_wl_CXX
15076 pic_flag=$lt_prog_compiler_pic_CXX
15082 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15083 allow_undefined_flag_CXX=
15084 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15085 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }
15090 archive_cmds_need_lc_CXX=no
15092 archive_cmds_need_lc_CXX=yes
15094 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15096 cat conftest.err 1>&5
15099 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15100 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15170 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15173 library_names_spec=
15174 libname_spec='lib$name'
15178 postuninstall_cmds=
15182 shlibpath_overrides_runpath=unknown
15184 dynamic_linker="$host_os ld.so"
15185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15186 need_lib_prefix=unknown
15187 hardcode_into_libs=no
15189 # when you set need_version to no, make sure it does not cause -set_version
15190 # flags to be left without arguments
15191 need_version=unknown
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15197 shlibpath_var=LIBPATH
15199 # AIX 3 has no versioning support, so we append a major version to the name.
15200 soname_spec='${libname}${release}${shared_ext}$major'
15207 hardcode_into_libs=yes
15208 if test "$host_cpu" = ia64; then
15209 # AIX 5 supports IA64
15210 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15211 shlibpath_var=LD_LIBRARY_PATH
15213 # With GCC up to 2.95.x, collect2 would create an import file
15214 # for dependence libraries. The import file would start with
15215 # the line `#! .'. This would cause the generated library to
15216 # depend on `.', always an invalid library. This was fixed in
15217 # development snapshots of GCC prior to 3.0.
15219 aix4 | aix4.[01] | aix4.[01].*)
15220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15222 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15225 can_build_shared=no
15229 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15230 # soname into executable. Probably we can add versioning support to
15231 # collect2, so additional links can be useful in future.
15232 if test "$aix_use_runtimelinking" = yes; then
15233 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15234 # instead of lib<name>.a to let people know that these are not
15235 # typical AIX shared libraries.
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 # We preserve .a as extension for shared libraries through AIX4.2
15239 # and later when we are not doing run time linking.
15240 library_names_spec='${libname}${release}.a $libname.a'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15243 shlibpath_var=LIBPATH
15250 # Since July 2007 AmigaOS4 officially supports .so libraries.
15251 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255 library_names_spec='$libname.ixlibrary $libname.a'
15256 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15257 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'
15263 library_names_spec='${libname}${shared_ext}'
15264 dynamic_linker="$host_os ld.so"
15265 shlibpath_var=LIBRARY_PATH
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15277 # the default ld.so.conf also contains /usr/contrib/lib and
15278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15279 # libtool to hard-code these into programs
15282 cygwin* | mingw* | pw32* | cegcc*)
15283 version_type=windows
15288 case $GCC,$host_os in
15289 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15290 library_names_spec='$libname.dll.a'
15291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15292 postinstall_cmds='base_file=`basename \${file}`~
15293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15294 dldir=$destdir/`dirname \$dlpath`~
15295 test -d \$dldir || mkdir -p \$dldir~
15296 $install_prog $dir/$dlname \$dldir/$dlname~
15297 chmod a+x \$dldir/$dlname~
15298 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15299 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15302 dlpath=$dir/\$dldll~
15304 shlibpath_overrides_runpath=yes
15308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15309 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15313 # MinGW DLLs use traditional 'lib' prefix
15314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15315 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15316 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15317 # It is most probably a Windows format PATH printed by
15318 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15319 # path with ; separators, and with drive letters. We can handle the
15320 # drive letters (cygwin fileutils understands them), so leave them,
15321 # especially as we might pass files found there to a mingw objdump,
15322 # which wouldn't understand a cygwinified path. Ahh.
15323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15329 # pw32 DLLs use 'pw' prefix rather than 'lib'
15330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15339 dynamic_linker='Win32 ld.exe'
15340 # FIXME: first we should search . and the directory the executable is in
15344 darwin* | rhapsody*)
15345 dynamic_linker="$host_os dyld"
15346 version_type=darwin
15349 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15350 soname_spec='${libname}${release}${major}$shared_ext'
15351 shlibpath_overrides_runpath=yes
15352 shlibpath_var=DYLD_LIBRARY_PATH
15353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15364 shlibpath_var=LD_LIBRARY_PATH
15371 freebsd* | dragonfly*)
15372 # DragonFly does not have aout. When/if they implement a new
15373 # versioning mechanism, adjust this.
15374 if test -x /usr/bin/objformat; then
15375 objformat=`/usr/bin/objformat`
15378 freebsd[123]*) objformat=aout ;;
15379 *) objformat=elf ;;
15382 version_type=freebsd-$objformat
15383 case $version_type in
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15394 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15399 freebsd3.[01]* | freebsdelf3.[01]*)
15400 shlibpath_overrides_runpath=yes
15401 hardcode_into_libs=yes
15403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15405 shlibpath_overrides_runpath=no
15406 hardcode_into_libs=yes
15408 *) # from 4.6 on, and DragonFly
15409 shlibpath_overrides_runpath=yes
15410 hardcode_into_libs=yes
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 hardcode_into_libs=yes
15425 hpux9* | hpux10* | hpux11*)
15426 # Give a soname corresponding to the major version so that dld.sl refuses to
15427 # link against other versions.
15434 hardcode_into_libs=yes
15435 dynamic_linker="$host_os dld.so"
15436 shlibpath_var=LD_LIBRARY_PATH
15437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 if test "X$HPUX_IA64_MODE" = X32; then
15441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15449 hardcode_into_libs=yes
15450 dynamic_linker="$host_os dld.sl"
15451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15460 dynamic_linker="$host_os dld.sl"
15461 shlibpath_var=SHLIB_PATH
15462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15468 postinstall_cmds='chmod 555 $lib'
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15483 irix5* | irix6* | nonstopux*)
15485 nonstopux*) version_type=nonstopux ;;
15487 if test "$lt_cv_prog_gnu_ld" = yes; then
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15498 irix5* | nonstopux*)
15499 libsuff= shlibsuff=
15502 case $LD in # libtool.m4 will add one of these switches to LD
15503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15504 libsuff= shlibsuff= libmagic=32-bit;;
15505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15506 libsuff=32 shlibsuff=N32 libmagic=N32;;
15507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15509 *) libsuff= shlibsuff= libmagic=never-match;;
15513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15514 shlibpath_overrides_runpath=no
15515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15517 hardcode_into_libs=yes
15520 # No shared lib support for Linux oldld, aout, or coff.
15521 linux*oldld* | linux*aout* | linux*coff*)
15525 # This must be Linux ELF.
15526 linux* | k*bsd*-gnu)
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=no
15535 # Some binutils ld are patched to set DT_RUNPATH
15536 save_LDFLAGS=$LDFLAGS
15537 save_libdir=$libdir
15538 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15539 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15555 rm -f conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_link") 2>conftest.er1
15564 grep -v '^ *+' conftest.er1 >conftest.err
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } && {
15569 test -z "$ac_cxx_werror_flag" ||
15570 test ! -s conftest.err
15571 } && test -s conftest$ac_exeext &&
15572 $as_test_x conftest$ac_exeext; then
15573 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15574 shlibpath_overrides_runpath=yes
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585 conftest$ac_exeext conftest.$ac_ext
15586 LDFLAGS=$save_LDFLAGS
15587 libdir=$save_libdir
15589 # This implies no fast_install, which is unacceptable.
15590 # Some rework will be needed to allow for fast_install
15591 # before this can be enabled.
15592 hardcode_into_libs=yes
15594 # Append ld.so.conf contents to the search path
15595 if test -f /etc/ld.so.conf; then
15596 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' ' '`
15597 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15600 # We used to test for /lib/ld.so.1 and disable shared libraries on
15601 # powerpc, because MkLinux only supported shared libraries with the
15602 # GNU dynamic linker. Since this was broken with cross compilers,
15603 # most powerpc-linux boxes support dynamic linking these days and
15604 # people can always --disable-shared, the test was removed, and we
15605 # assume the GNU/Linux dynamic linker is in use.
15606 dynamic_linker='GNU/Linux ld.so'
15613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15616 dynamic_linker='NetBSD (a.out) ld.so'
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 dynamic_linker='NetBSD ld.elf_so'
15622 shlibpath_var=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath=yes
15624 hardcode_into_libs=yes
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath=yes
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 shlibpath_overrides_runpath=no
15642 hardcode_into_libs=yes
15643 dynamic_linker='ldqnx.so'
15648 sys_lib_dlsearch_path_spec="/usr/lib"
15650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15652 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15653 *) need_version=no ;;
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15660 openbsd2.[89] | openbsd2.[89].*)
15661 shlibpath_overrides_runpath=no
15664 shlibpath_overrides_runpath=yes
15668 shlibpath_overrides_runpath=yes
15673 libname_spec='$name'
15676 library_names_spec='$libname${shared_ext} $libname.a'
15677 dynamic_linker='OS/2 ld.exe'
15678 shlibpath_var=LIBPATH
15681 osf3* | osf4* | osf5*)
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=yes
15704 hardcode_into_libs=yes
15705 # ldd complains unless libraries are executable
15706 postinstall_cmds='chmod +x $lib'
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15715 if test "$with_gnu_ld" = yes; then
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 soname_spec='${libname}${release}${shared_ext}$major'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 case $host_vendor in
15728 shlibpath_overrides_runpath=no
15730 runpath_var=LD_RUN_PATH
15738 shlibpath_overrides_runpath=no
15739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15745 if test -d /usr/nec ;then
15747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15748 soname_spec='$libname${shared_ext}.$major'
15749 shlibpath_var=LD_LIBRARY_PATH
15753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15754 version_type=freebsd-elf
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=yes
15761 hardcode_into_libs=yes
15762 if test "$with_gnu_ld" = yes; then
15763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15772 sys_lib_dlsearch_path_spec='/usr/lib'
15776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath=no
15783 hardcode_into_libs=yes
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 shlibpath_var=LD_LIBRARY_PATH
15797 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15798 echo "${ECHO_T}$dynamic_linker" >&6; }
15799 test "$dynamic_linker" = no && can_build_shared=no
15801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15802 if test "$GCC" = yes; then
15803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15807 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15848 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15850 hardcode_action_CXX=
15851 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15852 test -n "$runpath_var_CXX" ||
15853 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15855 # We can hardcode non-existent directories.
15856 if test "$hardcode_direct_CXX" != no &&
15857 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15858 # have to relink, otherwise we might link with an installed library
15859 # when we should be linking with a yet-to-be-installed one
15860 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15861 test "$hardcode_minus_L_CXX" != no; then
15862 # Linking always hardcodes the temporary library directory.
15863 hardcode_action_CXX=relink
15865 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15866 hardcode_action_CXX=immediate
15869 # We cannot hardcode anything, or else we can only hardcode existing
15871 hardcode_action_CXX=unsupported
15873 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15874 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15876 if test "$hardcode_action_CXX" = relink ||
15877 test "$inherit_rpath_CXX" = yes; then
15878 # Fast installation is not supported
15879 enable_fast_install=no
15880 elif test "$shlibpath_overrides_runpath" = yes ||
15881 test "$enable_shared" = no; then
15882 # Fast installation is not necessary
15883 enable_fast_install=needless
15892 fi # test -n "$compiler"
15898 with_gnu_ld=$lt_save_with_gnu_ld
15899 lt_cv_path_LDCXX=$lt_cv_path_LD
15900 lt_cv_path_LD=$lt_save_path_LD
15901 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15902 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15903 fi # test "$_lt_caught_CXX_error" != yes
15906 ac_cpp='$CPP $CPPFLAGS'
15907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15923 ac_config_commands="$ac_config_commands libtool"
15928 # Only expand once:
15933 if test x$use_libtool != xno; then
15934 DEFAULT_OBJECT_TYPE=".lo"
15935 DEFAULT_ARCHIVE_TYPE=".la"
15936 DEFAULT_SHARED_OBJECT_TYPE=".la"
15937 LIBTOOL="\$(LIBTOOL)"
15938 LIBTOOL_INSTALL_TARGET="libtool-install"
15939 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15940 LIBTOOL_CLEAN_TARGET="libtool-clean"
15941 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15942 FD_PLUGIN_DIR="src/plugins/fd"
15945 DEFAULT_OBJECT_TYPE=".o"
15946 DEFAULT_ARCHIVE_TYPE=".a"
15947 DEFAULT_SHARED_OBJECT_TYPE=".so"
15948 LIBTOOL="# \$(LIBTOOL)"
15949 LIBTOOL_INSTALL_TARGET=""
15950 LIBTOOL_UNINSTALL_TARGET=""
15951 LIBTOOL_CLEAN_TARGET=""
15952 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15967 # Check whether --enable-includes was given.
15968 if test "${enable_includes+set}" = set; then
15969 enableval=$enable_includes;
15970 if test x$enableval = xyes; then
15971 install_includes=yes
15979 if test x$use_libtool != xno -a x$install_includes = xyes; then
15980 INCLUDE_INSTALL_TARGET="install-includes"
15981 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15983 INCLUDE_INSTALL_TARGET=""
15984 INCLUDE_UNINSTALL_TARGET=""
15990 { echo "$as_me:$LINENO: checking host system type" >&5
15991 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15992 if test "${ac_cv_host+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 if test "x$host_alias" = x; then
15996 ac_cv_host=$ac_cv_build
15998 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15999 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16001 { (exit 1); exit 1; }; }
16005 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16006 echo "${ECHO_T}$ac_cv_host" >&6; }
16007 case $ac_cv_host in
16009 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16010 echo "$as_me: error: invalid value of canonical host" >&2;}
16011 { (exit 1); exit 1; }; };;
16014 ac_save_IFS=$IFS; IFS='-'
16020 # Remember, the first character of IFS is used to create $*,
16021 # except with old shells:
16024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16028 *cygwin* ) CYGWIN=yes;;
16032 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16038 HAVE_SUN_OS_FALSE='#'
16040 HAVE_SUN_OS_TRUE='#'
16043 cat >>confdefs.h <<\_ACEOF
16044 #define HAVE_SUN_OS 1
16052 HAVE_SUN_OS_FALSE='#'
16054 HAVE_SUN_OS_TRUE='#'
16059 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16065 HAVE_OSF1_OS_FALSE='#'
16067 HAVE_OSF1_OS_TRUE='#'
16068 HAVE_OSF1_OS_FALSE=
16070 cat >>confdefs.h <<\_ACEOF
16071 #define HAVE_OSF1_OS 1
16079 HAVE_OSF1_OS_FALSE='#'
16081 HAVE_OSF1_OS_TRUE='#'
16082 HAVE_OSF1_OS_FALSE=
16086 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16092 HAVE_AIX_OS_FALSE='#'
16094 HAVE_AIX_OS_TRUE='#'
16097 cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_AIX_OS 1
16106 HAVE_AIX_OS_FALSE='#'
16108 HAVE_AIX_OS_TRUE='#'
16113 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16119 HAVE_HPUX_OS_FALSE='#'
16121 HAVE_HPUX_OS_TRUE='#'
16122 HAVE_HPUX_OS_FALSE=
16124 cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_HPUX_OS 1
16133 HAVE_HPUX_OS_FALSE='#'
16135 HAVE_HPUX_OS_TRUE='#'
16136 HAVE_HPUX_OS_FALSE=
16140 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16145 HAVE_LINUX_OS_TRUE=
16146 HAVE_LINUX_OS_FALSE='#'
16148 HAVE_LINUX_OS_TRUE='#'
16149 HAVE_LINUX_OS_FALSE=
16151 cat >>confdefs.h <<\_ACEOF
16152 #define HAVE_LINUX_OS 1
16159 HAVE_LINUX_OS_TRUE=
16160 HAVE_LINUX_OS_FALSE='#'
16162 HAVE_LINUX_OS_TRUE='#'
16163 HAVE_LINUX_OS_FALSE=
16167 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16172 HAVE_FREEBSD_OS_TRUE=
16173 HAVE_FREEBSD_OS_FALSE='#'
16175 HAVE_FREEBSD_OS_TRUE='#'
16176 HAVE_FREEBSD_OS_FALSE=
16178 cat >>confdefs.h <<\_ACEOF
16179 #define HAVE_FREEBSD_OS 1
16186 HAVE_FREEBSD_OS_TRUE=
16187 HAVE_FREEBSD_OS_FALSE='#'
16189 HAVE_FREEBSD_OS_TRUE='#'
16190 HAVE_FREEBSD_OS_FALSE=
16194 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16199 HAVE_NETBSD_OS_TRUE=
16200 HAVE_NETBSD_OS_FALSE='#'
16202 HAVE_NETBSD_OS_TRUE='#'
16203 HAVE_NETBSD_OS_FALSE=
16205 cat >>confdefs.h <<\_ACEOF
16206 #define HAVE_NETBSD_OS 1
16213 HAVE_NETBSD_OS_TRUE=
16214 HAVE_NETBSD_OS_FALSE='#'
16216 HAVE_NETBSD_OS_TRUE='#'
16217 HAVE_NETBSD_OS_FALSE=
16221 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16226 HAVE_OPENBSD_OS_TRUE=
16227 HAVE_OPENBSD_OS_FALSE='#'
16229 HAVE_OPENBSD_OS_TRUE='#'
16230 HAVE_OPENBSD_OS_FALSE=
16232 cat >>confdefs.h <<\_ACEOF
16233 #define HAVE_OPENBSD_OS 1
16240 HAVE_OPENBSD_OS_TRUE=
16241 HAVE_OPENBSD_OS_FALSE='#'
16243 HAVE_OPENBSD_OS_TRUE='#'
16244 HAVE_OPENBSD_OS_FALSE=
16248 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16254 HAVE_BSDI_OS_FALSE='#'
16256 HAVE_BSDI_OS_TRUE='#'
16257 HAVE_BSDI_OS_FALSE=
16259 cat >>confdefs.h <<\_ACEOF
16260 #define HAVE_BSDI_OS 1
16268 HAVE_BSDI_OS_FALSE='#'
16270 HAVE_BSDI_OS_TRUE='#'
16271 HAVE_BSDI_OS_FALSE=
16275 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16281 HAVE_SGI_OS_FALSE='#'
16283 HAVE_SGI_OS_TRUE='#'
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE_SGI_OS 1
16295 HAVE_SGI_OS_FALSE='#'
16297 HAVE_SGI_OS_TRUE='#'
16302 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16308 HAVE_IRIX_OS_FALSE='#'
16310 HAVE_IRIX_OS_TRUE='#'
16311 HAVE_IRIX_OS_FALSE=
16313 cat >>confdefs.h <<\_ACEOF
16314 #define HAVE_IRIX_OS 1
16322 HAVE_IRIX_OS_FALSE='#'
16324 HAVE_IRIX_OS_TRUE='#'
16325 HAVE_IRIX_OS_FALSE=
16329 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16334 HAVE_DARWIN_OS_TRUE=
16335 HAVE_DARWIN_OS_FALSE='#'
16337 HAVE_DARWIN_OS_TRUE='#'
16338 HAVE_DARWIN_OS_FALSE=
16340 cat >>confdefs.h <<\_ACEOF
16341 #define HAVE_DARWIN_OS 1
16348 HAVE_DARWIN_OS_TRUE=
16349 HAVE_DARWIN_OS_FALSE='#'
16351 HAVE_DARWIN_OS_TRUE='#'
16352 HAVE_DARWIN_OS_FALSE=
16357 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16358 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16359 if test "x$DISTNAME" != "x"
16361 echo "distname set to $DISTNAME"
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16383 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16386 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16389 elif test -f /etc/SuSE-release
16392 elif test -d /etc/SuSEconfig
16395 elif test -f /etc/mandrake-release
16398 elif test -f /etc/whitebox-release
16401 elif test -f /etc/redhat-release
16404 elif test -f /etc/gentoo-release
16407 elif test -f /etc/debian_version
16410 elif test -f /etc/slackware-version
16413 elif test x$host_vendor = xapple
16416 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16419 elif test -f /etc/engarde-version
16422 elif test "$CYGWIN" = yes
16425 cat >>confdefs.h <<\_ACEOF
16426 #define HAVE_CYGWIN 1
16432 { echo "$as_me:$LINENO: result: done" >&5
16433 echo "${ECHO_T}done" >&6; }
16436 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16437 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16438 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16439 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 cat >conftest.make <<\_ACEOF
16445 @echo '@@@%%%=$(MAKE)=@@@%%%'
16447 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16448 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16449 *@@@%%%=?*=@@@%%%*)
16450 eval ac_cv_prog_make_${ac_make}_set=yes;;
16452 eval ac_cv_prog_make_${ac_make}_set=no;;
16454 rm -f conftest.make
16456 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16457 { echo "$as_me:$LINENO: result: yes" >&5
16458 echo "${ECHO_T}yes" >&6; }
16461 { echo "$as_me:$LINENO: result: no" >&5
16462 echo "${ECHO_T}no" >&6; }
16463 SET_MAKE="MAKE=${MAKE-make}"
16469 if test -n "$ac_aux_dir"; then
16470 case "$ac_aux_dir" in
16471 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16472 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16475 if test -z "$MKINSTALLDIRS"; then
16476 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16481 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16482 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16483 # Check whether --enable-nls was given.
16484 if test "${enable_nls+set}" = set; then
16485 enableval=$enable_nls; USE_NLS=$enableval
16490 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16491 echo "${ECHO_T}$USE_NLS" >&6; }
16498 # Prepare PATH_SEPARATOR.
16499 # The user is always right.
16500 if test "${PATH_SEPARATOR+set}" != set; then
16501 echo "#! /bin/sh" >conf$$.sh
16502 echo "exit 0" >>conf$$.sh
16504 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16512 # Find out how to test for executable files. Don't use a zero-byte file,
16513 # as systems may use methods other than mode bits to determine executability.
16514 cat >conf$$.file <<_ASEOF
16518 chmod +x conf$$.file
16519 if test -x conf$$.file >/dev/null 2>&1; then
16520 ac_executable_p="test -x"
16522 ac_executable_p="test -f"
16526 # Extract the first word of "msgfmt", so it can be a program name with args.
16527 set dummy msgfmt; ac_word=$2
16528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16530 if test "${ac_cv_path_MSGFMT+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16538 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16539 for ac_dir in $PATH; do
16541 test -z "$ac_dir" && ac_dir=.
16542 for ac_exec_ext in '' $ac_executable_extensions; do
16543 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16544 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16545 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16546 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16547 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16554 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16558 MSGFMT="$ac_cv_path_MSGFMT"
16559 if test "$MSGFMT" != ":"; then
16560 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16561 echo "${ECHO_T}$MSGFMT" >&6; }
16563 { echo "$as_me:$LINENO: result: no" >&5
16564 echo "${ECHO_T}no" >&6; }
16567 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16568 set dummy gmsgfmt; ac_word=$2
16569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16571 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16580 for as_dir in $PATH
16583 test -z "$as_dir" && as_dir=.
16584 for ac_exec_ext in '' $ac_executable_extensions; do
16585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16586 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16594 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16598 GMSGFMT=$ac_cv_path_GMSGFMT
16599 if test -n "$GMSGFMT"; then
16600 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16601 echo "${ECHO_T}$GMSGFMT" >&6; }
16603 { echo "$as_me:$LINENO: result: no" >&5
16604 echo "${ECHO_T}no" >&6; }
16610 # Prepare PATH_SEPARATOR.
16611 # The user is always right.
16612 if test "${PATH_SEPARATOR+set}" != set; then
16613 echo "#! /bin/sh" >conf$$.sh
16614 echo "exit 0" >>conf$$.sh
16616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16624 # Find out how to test for executable files. Don't use a zero-byte file,
16625 # as systems may use methods other than mode bits to determine executability.
16626 cat >conf$$.file <<_ASEOF
16630 chmod +x conf$$.file
16631 if test -x conf$$.file >/dev/null 2>&1; then
16632 ac_executable_p="test -x"
16634 ac_executable_p="test -f"
16638 # Extract the first word of "xgettext", so it can be a program name with args.
16639 set dummy xgettext; ac_word=$2
16640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16642 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 case "$XGETTEXT" in
16647 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16650 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16651 for ac_dir in $PATH; do
16653 test -z "$ac_dir" && ac_dir=.
16654 for ac_exec_ext in '' $ac_executable_extensions; do
16655 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16656 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16657 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16658 (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
16659 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16666 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16670 XGETTEXT="$ac_cv_path_XGETTEXT"
16671 if test "$XGETTEXT" != ":"; then
16672 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16673 echo "${ECHO_T}$XGETTEXT" >&6; }
16675 { echo "$as_me:$LINENO: result: no" >&5
16676 echo "${ECHO_T}no" >&6; }
16682 # Prepare PATH_SEPARATOR.
16683 # The user is always right.
16684 if test "${PATH_SEPARATOR+set}" != set; then
16685 echo "#! /bin/sh" >conf$$.sh
16686 echo "exit 0" >>conf$$.sh
16688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16696 # Find out how to test for executable files. Don't use a zero-byte file,
16697 # as systems may use methods other than mode bits to determine executability.
16698 cat >conf$$.file <<_ASEOF
16702 chmod +x conf$$.file
16703 if test -x conf$$.file >/dev/null 2>&1; then
16704 ac_executable_p="test -x"
16706 ac_executable_p="test -f"
16710 # Extract the first word of "msgmerge", so it can be a program name with args.
16711 set dummy msgmerge; ac_word=$2
16712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16714 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 case "$MSGMERGE" in
16719 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16722 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16723 for ac_dir in $PATH; do
16725 test -z "$ac_dir" && ac_dir=.
16726 for ac_exec_ext in '' $ac_executable_extensions; do
16727 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16728 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16729 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16730 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16737 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16741 MSGMERGE="$ac_cv_path_MSGMERGE"
16742 if test "$MSGMERGE" != ":"; then
16743 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16744 echo "${ECHO_T}$MSGMERGE" >&6; }
16746 { echo "$as_me:$LINENO: result: no" >&5
16747 echo "${ECHO_T}no" >&6; }
16751 if test "$GMSGFMT" != ":"; then
16752 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16753 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16756 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16757 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16758 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16763 if test "$XGETTEXT" != ":"; then
16764 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16765 (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
16768 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16769 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16775 ac_config_commands="$ac_config_commands default-1"
16779 if test "X$prefix" = "XNONE"; then
16780 acl_final_prefix="$ac_default_prefix"
16782 acl_final_prefix="$prefix"
16784 if test "X$exec_prefix" = "XNONE"; then
16785 acl_final_exec_prefix='${prefix}'
16787 acl_final_exec_prefix="$exec_prefix"
16789 acl_save_prefix="$prefix"
16790 prefix="$acl_final_prefix"
16791 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16792 prefix="$acl_save_prefix"
16795 # Check whether --with-gnu-ld was given.
16796 if test "${with_gnu_ld+set}" = set; then
16797 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16802 # Prepare PATH_SEPARATOR.
16803 # The user is always right.
16804 if test "${PATH_SEPARATOR+set}" != set; then
16805 echo "#! /bin/sh" >conf$$.sh
16806 echo "exit 0" >>conf$$.sh
16808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16816 if test "$GCC" = yes; then
16817 # Check if gcc -print-prog-name=ld gives a path.
16818 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16819 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16822 # gcc leaves a trailing carriage return which upsets mingw
16823 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16825 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16828 # Accept absolute paths.
16829 [\\/]* | [A-Za-z]:[\\/]*)
16830 re_direlt='/[^/][^/]*/\.\./'
16831 # Canonicalize the path of ld
16832 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16833 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16834 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16836 test -z "$LD" && LD="$ac_prog"
16839 # If it fails, then pretend we aren't using GCC.
16843 # If it is relative, then search for the first ld in PATH.
16844 with_gnu_ld=unknown
16847 elif test "$with_gnu_ld" = yes; then
16848 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16849 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16851 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16852 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16854 if test "${acl_cv_path_LD+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 if test -z "$LD"; then
16858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16859 for ac_dir in $PATH; do
16860 test -z "$ac_dir" && ac_dir=.
16861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16862 acl_cv_path_LD="$ac_dir/$ac_prog"
16863 # Check to see if the program is GNU ld. I'd rather use --version,
16864 # but apparently some GNU ld's only accept -v.
16865 # Break only if it was the GNU/non-GNU ld that we prefer.
16866 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16867 *GNU* | *'with BFD'*)
16868 test "$with_gnu_ld" != no && break ;;
16870 test "$with_gnu_ld" != yes && break ;;
16876 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16880 LD="$acl_cv_path_LD"
16881 if test -n "$LD"; then
16882 { echo "$as_me:$LINENO: result: $LD" >&5
16883 echo "${ECHO_T}$LD" >&6; }
16885 { echo "$as_me:$LINENO: result: no" >&5
16886 echo "${ECHO_T}no" >&6; }
16888 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16889 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16890 { (exit 1); exit 1; }; }
16891 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16892 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16893 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16896 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16897 case `$LD -v 2>&1 </dev/null` in
16898 *GNU* | *'with BFD'*)
16899 acl_cv_prog_gnu_ld=yes ;;
16901 acl_cv_prog_gnu_ld=no ;;
16904 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16905 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16906 with_gnu_ld=$acl_cv_prog_gnu_ld
16911 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16912 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16913 if test "${acl_cv_rpath+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16918 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16920 rm -f ./conftest.sh
16924 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16925 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16927 libext="$acl_cv_libext"
16928 shlibext="$acl_cv_shlibext"
16929 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16930 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16931 hardcode_direct="$acl_cv_hardcode_direct"
16932 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16933 # Check whether --enable-rpath was given.
16934 if test "${enable_rpath+set}" = set; then
16935 enableval=$enable_rpath; :
16949 acl_save_prefix="$prefix"
16950 prefix="$acl_final_prefix"
16951 acl_save_exec_prefix="$exec_prefix"
16952 exec_prefix="$acl_final_exec_prefix"
16954 eval additional_includedir=\"$includedir\"
16955 eval additional_libdir=\"$libdir\"
16957 exec_prefix="$acl_save_exec_prefix"
16958 prefix="$acl_save_prefix"
16961 # Check whether --with-libiconv-prefix was given.
16962 if test "${with_libiconv_prefix+set}" = set; then
16963 withval=$with_libiconv_prefix;
16964 if test "X$withval" = "Xno"; then
16967 if test "X$withval" = "X"; then
16969 acl_save_prefix="$prefix"
16970 prefix="$acl_final_prefix"
16971 acl_save_exec_prefix="$exec_prefix"
16972 exec_prefix="$acl_final_exec_prefix"
16974 eval additional_includedir=\"$includedir\"
16975 eval additional_libdir=\"$libdir\"
16977 exec_prefix="$acl_save_exec_prefix"
16978 prefix="$acl_save_prefix"
16981 additional_includedir="$withval/include"
16982 additional_libdir="$withval/lib"
16993 names_already_handled=
16994 names_next_round='iconv '
16995 while test -n "$names_next_round"; do
16996 names_this_round="$names_next_round"
16998 for name in $names_this_round; do
17000 for n in $names_already_handled; do
17001 if test "$n" = "$name"; then
17002 already_handled=yes
17006 if test -z "$already_handled"; then
17007 names_already_handled="$names_already_handled $name"
17008 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17009 eval value=\"\$HAVE_LIB$uppername\"
17010 if test -n "$value"; then
17011 if test "$value" = yes; then
17012 eval value=\"\$LIB$uppername\"
17013 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17014 eval value=\"\$LTLIB$uppername\"
17015 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17024 if test $use_additional = yes; then
17025 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17026 found_dir="$additional_libdir"
17027 found_so="$additional_libdir/lib$name.$shlibext"
17028 if test -f "$additional_libdir/lib$name.la"; then
17029 found_la="$additional_libdir/lib$name.la"
17032 if test -f "$additional_libdir/lib$name.$libext"; then
17033 found_dir="$additional_libdir"
17034 found_a="$additional_libdir/lib$name.$libext"
17035 if test -f "$additional_libdir/lib$name.la"; then
17036 found_la="$additional_libdir/lib$name.la"
17041 if test "X$found_dir" = "X"; then
17042 for x in $LDFLAGS $LTLIBICONV; do
17044 acl_save_prefix="$prefix"
17045 prefix="$acl_final_prefix"
17046 acl_save_exec_prefix="$exec_prefix"
17047 exec_prefix="$acl_final_exec_prefix"
17049 exec_prefix="$acl_save_exec_prefix"
17050 prefix="$acl_save_prefix"
17054 dir=`echo "X$x" | sed -e 's/^X-L//'`
17055 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17057 found_so="$dir/lib$name.$shlibext"
17058 if test -f "$dir/lib$name.la"; then
17059 found_la="$dir/lib$name.la"
17062 if test -f "$dir/lib$name.$libext"; then
17064 found_a="$dir/lib$name.$libext"
17065 if test -f "$dir/lib$name.la"; then
17066 found_la="$dir/lib$name.la"
17072 if test "X$found_dir" != "X"; then
17077 if test "X$found_dir" != "X"; then
17078 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17079 if test "X$found_so" != "X"; then
17080 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17081 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17084 for x in $ltrpathdirs; do
17085 if test "X$x" = "X$found_dir"; then
17090 if test -z "$haveit"; then
17091 ltrpathdirs="$ltrpathdirs $found_dir"
17093 if test "$hardcode_direct" = yes; then
17094 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17096 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17097 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17099 for x in $rpathdirs; do
17100 if test "X$x" = "X$found_dir"; then
17105 if test -z "$haveit"; then
17106 rpathdirs="$rpathdirs $found_dir"
17110 for x in $LDFLAGS $LIBICONV; do
17112 acl_save_prefix="$prefix"
17113 prefix="$acl_final_prefix"
17114 acl_save_exec_prefix="$exec_prefix"
17115 exec_prefix="$acl_final_exec_prefix"
17117 exec_prefix="$acl_save_exec_prefix"
17118 prefix="$acl_save_prefix"
17120 if test "X$x" = "X-L$found_dir"; then
17125 if test -z "$haveit"; then
17126 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17128 if test "$hardcode_minus_L" != no; then
17129 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17131 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17137 if test "X$found_a" != "X"; then
17138 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17140 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17143 additional_includedir=
17144 case "$found_dir" in
17146 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17147 additional_includedir="$basedir/include"
17150 if test "X$additional_includedir" != "X"; then
17151 if test "X$additional_includedir" != "X/usr/include"; then
17153 if test "X$additional_includedir" = "X/usr/local/include"; then
17154 if test -n "$GCC"; then
17156 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17160 if test -z "$haveit"; then
17161 for x in $CPPFLAGS $INCICONV; do
17163 acl_save_prefix="$prefix"
17164 prefix="$acl_final_prefix"
17165 acl_save_exec_prefix="$exec_prefix"
17166 exec_prefix="$acl_final_exec_prefix"
17168 exec_prefix="$acl_save_exec_prefix"
17169 prefix="$acl_save_prefix"
17171 if test "X$x" = "X-I$additional_includedir"; then
17176 if test -z "$haveit"; then
17177 if test -d "$additional_includedir"; then
17178 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17184 if test -n "$found_la"; then
17185 save_libdir="$libdir"
17186 case "$found_la" in
17187 */* | *\\*) . "$found_la" ;;
17188 *) . "./$found_la" ;;
17190 libdir="$save_libdir"
17191 for dep in $dependency_libs; do
17194 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17195 if test "X$additional_libdir" != "X/usr/lib"; then
17197 if test "X$additional_libdir" = "X/usr/local/lib"; then
17198 if test -n "$GCC"; then
17200 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17204 if test -z "$haveit"; then
17206 for x in $LDFLAGS $LIBICONV; do
17208 acl_save_prefix="$prefix"
17209 prefix="$acl_final_prefix"
17210 acl_save_exec_prefix="$exec_prefix"
17211 exec_prefix="$acl_final_exec_prefix"
17213 exec_prefix="$acl_save_exec_prefix"
17214 prefix="$acl_save_prefix"
17216 if test "X$x" = "X-L$additional_libdir"; then
17221 if test -z "$haveit"; then
17222 if test -d "$additional_libdir"; then
17223 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17227 for x in $LDFLAGS $LTLIBICONV; do
17229 acl_save_prefix="$prefix"
17230 prefix="$acl_final_prefix"
17231 acl_save_exec_prefix="$exec_prefix"
17232 exec_prefix="$acl_final_exec_prefix"
17234 exec_prefix="$acl_save_exec_prefix"
17235 prefix="$acl_save_prefix"
17237 if test "X$x" = "X-L$additional_libdir"; then
17242 if test -z "$haveit"; then
17243 if test -d "$additional_libdir"; then
17244 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17251 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17252 if test "$enable_rpath" != no; then
17254 for x in $rpathdirs; do
17255 if test "X$x" = "X$dir"; then
17260 if test -z "$haveit"; then
17261 rpathdirs="$rpathdirs $dir"
17264 for x in $ltrpathdirs; do
17265 if test "X$x" = "X$dir"; then
17270 if test -z "$haveit"; then
17271 ltrpathdirs="$ltrpathdirs $dir"
17276 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17279 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17282 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17283 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17289 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17290 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17296 if test "X$rpathdirs" != "X"; then
17297 if test -n "$hardcode_libdir_separator"; then
17299 for found_dir in $rpathdirs; do
17300 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17302 acl_save_libdir="$libdir"
17304 eval flag=\"$hardcode_libdir_flag_spec\"
17305 libdir="$acl_save_libdir"
17306 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17308 for found_dir in $rpathdirs; do
17309 acl_save_libdir="$libdir"
17310 libdir="$found_dir"
17311 eval flag=\"$hardcode_libdir_flag_spec\"
17312 libdir="$acl_save_libdir"
17313 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17317 if test "X$ltrpathdirs" != "X"; then
17318 for found_dir in $ltrpathdirs; do
17319 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17340 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17341 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17342 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 gt_save_CPPFLAGS="$CPPFLAGS"
17346 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17347 gt_save_LIBS="$LIBS"
17348 LIBS="$LIBS -framework CoreFoundation"
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 #include <CFPreferences.h>
17359 CFPreferencesCopyAppValue(NULL, NULL)
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (ac_try="$ac_link"
17366 case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_link") 2>conftest.er1
17373 grep -v '^ *+' conftest.er1 >conftest.err
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } && {
17378 test -z "$ac_c_werror_flag" ||
17379 test ! -s conftest.err
17380 } && test -s conftest$ac_exeext &&
17381 $as_test_x conftest$ac_exeext; then
17382 gt_cv_func_CFPreferencesCopyAppValue=yes
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 gt_cv_func_CFPreferencesCopyAppValue=no
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392 CPPFLAGS="$gt_save_CPPFLAGS"
17393 LIBS="$gt_save_LIBS"
17395 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17396 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17397 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17404 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17405 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17406 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 gt_save_CPPFLAGS="$CPPFLAGS"
17410 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17411 gt_save_LIBS="$LIBS"
17412 LIBS="$LIBS -framework CoreFoundation"
17413 cat >conftest.$ac_ext <<_ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 #include <CFLocale.h>
17423 CFLocaleCopyCurrent();
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (ac_try="$ac_link"
17430 case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_link") 2>conftest.er1
17437 grep -v '^ *+' conftest.er1 >conftest.err
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } && {
17442 test -z "$ac_c_werror_flag" ||
17443 test ! -s conftest.err
17444 } && test -s conftest$ac_exeext &&
17445 $as_test_x conftest$ac_exeext; then
17446 gt_cv_func_CFLocaleCopyCurrent=yes
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 gt_cv_func_CFLocaleCopyCurrent=no
17454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17455 conftest$ac_exeext conftest.$ac_ext
17456 CPPFLAGS="$gt_save_CPPFLAGS"
17457 LIBS="$gt_save_LIBS"
17459 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17460 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17461 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17463 cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_CFLOCALECOPYCURRENT 1
17469 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17470 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17476 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17477 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17478 # Check whether --enable-nls was given.
17479 if test "${enable_nls+set}" = set; then
17480 enableval=$enable_nls; USE_NLS=$enableval
17485 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17486 echo "${ECHO_T}$USE_NLS" >&6; }
17495 if test "$USE_NLS" = "yes"; then
17496 gt_use_preinstalled_gnugettext=no
17503 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17504 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17505 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 cat >conftest.$ac_ext <<_ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <libintl.h>
17515 extern int _nl_msg_cat_cntr;
17516 extern int *_nl_domain_bindings;
17520 bindtextdomain ("", "");
17521 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (ac_try="$ac_link"
17528 case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533 (eval "$ac_link") 2>conftest.er1
17535 grep -v '^ *+' conftest.er1 >conftest.err
17537 cat conftest.err >&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } && {
17540 test -z "$ac_c_werror_flag" ||
17541 test ! -s conftest.err
17542 } && test -s conftest$ac_exeext &&
17543 $as_test_x conftest$ac_exeext; then
17544 gt_cv_func_gnugettext1_libc=yes
17546 echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17549 gt_cv_func_gnugettext1_libc=no
17552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17553 conftest$ac_exeext conftest.$ac_ext
17555 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17556 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17558 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17564 am_save_CPPFLAGS="$CPPFLAGS"
17566 for element in $INCICONV; do
17568 for x in $CPPFLAGS; do
17570 acl_save_prefix="$prefix"
17571 prefix="$acl_final_prefix"
17572 acl_save_exec_prefix="$exec_prefix"
17573 exec_prefix="$acl_final_exec_prefix"
17575 exec_prefix="$acl_save_exec_prefix"
17576 prefix="$acl_save_prefix"
17578 if test "X$x" = "X$element"; then
17583 if test -z "$haveit"; then
17584 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17589 { echo "$as_me:$LINENO: checking for iconv" >&5
17590 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17591 if test "${am_cv_func_iconv+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 am_cv_func_iconv="no, consider installing GNU libiconv"
17597 cat >conftest.$ac_ext <<_ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 #include <stdlib.h>
17608 iconv_t cd = iconv_open("","");
17609 iconv(cd,NULL,NULL,NULL,NULL);
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_link") 2>conftest.er1
17624 grep -v '^ *+' conftest.er1 >conftest.err
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest$ac_exeext &&
17632 $as_test_x conftest$ac_exeext; then
17633 am_cv_func_iconv=yes
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17642 conftest$ac_exeext conftest.$ac_ext
17643 if test "$am_cv_func_iconv" != yes; then
17644 am_save_LIBS="$LIBS"
17645 LIBS="$LIBS $LIBICONV"
17646 cat >conftest.$ac_ext <<_ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17652 #include <stdlib.h>
17657 iconv_t cd = iconv_open("","");
17658 iconv(cd,NULL,NULL,NULL,NULL);
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (ac_try="$ac_link"
17666 case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_link") 2>conftest.er1
17673 grep -v '^ *+' conftest.er1 >conftest.err
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } && {
17678 test -z "$ac_c_werror_flag" ||
17679 test ! -s conftest.err
17680 } && test -s conftest$ac_exeext &&
17681 $as_test_x conftest$ac_exeext; then
17682 am_cv_lib_iconv=yes
17683 am_cv_func_iconv=yes
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17692 conftest$ac_exeext conftest.$ac_ext
17693 LIBS="$am_save_LIBS"
17697 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17698 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17699 if test "$am_cv_func_iconv" = yes; then
17701 cat >>confdefs.h <<\_ACEOF
17702 #define HAVE_ICONV 1
17706 if test "$am_cv_lib_iconv" = yes; then
17707 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17708 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17709 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17710 echo "${ECHO_T}$LIBICONV" >&6; }
17712 CPPFLAGS="$am_save_CPPFLAGS"
17724 acl_save_prefix="$prefix"
17725 prefix="$acl_final_prefix"
17726 acl_save_exec_prefix="$exec_prefix"
17727 exec_prefix="$acl_final_exec_prefix"
17729 eval additional_includedir=\"$includedir\"
17730 eval additional_libdir=\"$libdir\"
17732 exec_prefix="$acl_save_exec_prefix"
17733 prefix="$acl_save_prefix"
17736 # Check whether --with-libintl-prefix was given.
17737 if test "${with_libintl_prefix+set}" = set; then
17738 withval=$with_libintl_prefix;
17739 if test "X$withval" = "Xno"; then
17742 if test "X$withval" = "X"; then
17744 acl_save_prefix="$prefix"
17745 prefix="$acl_final_prefix"
17746 acl_save_exec_prefix="$exec_prefix"
17747 exec_prefix="$acl_final_exec_prefix"
17749 eval additional_includedir=\"$includedir\"
17750 eval additional_libdir=\"$libdir\"
17752 exec_prefix="$acl_save_exec_prefix"
17753 prefix="$acl_save_prefix"
17756 additional_includedir="$withval/include"
17757 additional_libdir="$withval/lib"
17768 names_already_handled=
17769 names_next_round='intl '
17770 while test -n "$names_next_round"; do
17771 names_this_round="$names_next_round"
17773 for name in $names_this_round; do
17775 for n in $names_already_handled; do
17776 if test "$n" = "$name"; then
17777 already_handled=yes
17781 if test -z "$already_handled"; then
17782 names_already_handled="$names_already_handled $name"
17783 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17784 eval value=\"\$HAVE_LIB$uppername\"
17785 if test -n "$value"; then
17786 if test "$value" = yes; then
17787 eval value=\"\$LIB$uppername\"
17788 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17789 eval value=\"\$LTLIB$uppername\"
17790 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17799 if test $use_additional = yes; then
17800 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17801 found_dir="$additional_libdir"
17802 found_so="$additional_libdir/lib$name.$shlibext"
17803 if test -f "$additional_libdir/lib$name.la"; then
17804 found_la="$additional_libdir/lib$name.la"
17807 if test -f "$additional_libdir/lib$name.$libext"; then
17808 found_dir="$additional_libdir"
17809 found_a="$additional_libdir/lib$name.$libext"
17810 if test -f "$additional_libdir/lib$name.la"; then
17811 found_la="$additional_libdir/lib$name.la"
17816 if test "X$found_dir" = "X"; then
17817 for x in $LDFLAGS $LTLIBINTL; do
17819 acl_save_prefix="$prefix"
17820 prefix="$acl_final_prefix"
17821 acl_save_exec_prefix="$exec_prefix"
17822 exec_prefix="$acl_final_exec_prefix"
17824 exec_prefix="$acl_save_exec_prefix"
17825 prefix="$acl_save_prefix"
17829 dir=`echo "X$x" | sed -e 's/^X-L//'`
17830 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17832 found_so="$dir/lib$name.$shlibext"
17833 if test -f "$dir/lib$name.la"; then
17834 found_la="$dir/lib$name.la"
17837 if test -f "$dir/lib$name.$libext"; then
17839 found_a="$dir/lib$name.$libext"
17840 if test -f "$dir/lib$name.la"; then
17841 found_la="$dir/lib$name.la"
17847 if test "X$found_dir" != "X"; then
17852 if test "X$found_dir" != "X"; then
17853 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17854 if test "X$found_so" != "X"; then
17855 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17856 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17859 for x in $ltrpathdirs; do
17860 if test "X$x" = "X$found_dir"; then
17865 if test -z "$haveit"; then
17866 ltrpathdirs="$ltrpathdirs $found_dir"
17868 if test "$hardcode_direct" = yes; then
17869 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17871 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17872 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17874 for x in $rpathdirs; do
17875 if test "X$x" = "X$found_dir"; then
17880 if test -z "$haveit"; then
17881 rpathdirs="$rpathdirs $found_dir"
17885 for x in $LDFLAGS $LIBINTL; do
17887 acl_save_prefix="$prefix"
17888 prefix="$acl_final_prefix"
17889 acl_save_exec_prefix="$exec_prefix"
17890 exec_prefix="$acl_final_exec_prefix"
17892 exec_prefix="$acl_save_exec_prefix"
17893 prefix="$acl_save_prefix"
17895 if test "X$x" = "X-L$found_dir"; then
17900 if test -z "$haveit"; then
17901 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17903 if test "$hardcode_minus_L" != no; then
17904 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17906 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17912 if test "X$found_a" != "X"; then
17913 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17915 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17918 additional_includedir=
17919 case "$found_dir" in
17921 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17922 additional_includedir="$basedir/include"
17925 if test "X$additional_includedir" != "X"; then
17926 if test "X$additional_includedir" != "X/usr/include"; then
17928 if test "X$additional_includedir" = "X/usr/local/include"; then
17929 if test -n "$GCC"; then
17931 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17935 if test -z "$haveit"; then
17936 for x in $CPPFLAGS $INCINTL; do
17938 acl_save_prefix="$prefix"
17939 prefix="$acl_final_prefix"
17940 acl_save_exec_prefix="$exec_prefix"
17941 exec_prefix="$acl_final_exec_prefix"
17943 exec_prefix="$acl_save_exec_prefix"
17944 prefix="$acl_save_prefix"
17946 if test "X$x" = "X-I$additional_includedir"; then
17951 if test -z "$haveit"; then
17952 if test -d "$additional_includedir"; then
17953 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17959 if test -n "$found_la"; then
17960 save_libdir="$libdir"
17961 case "$found_la" in
17962 */* | *\\*) . "$found_la" ;;
17963 *) . "./$found_la" ;;
17965 libdir="$save_libdir"
17966 for dep in $dependency_libs; do
17969 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17970 if test "X$additional_libdir" != "X/usr/lib"; then
17972 if test "X$additional_libdir" = "X/usr/local/lib"; then
17973 if test -n "$GCC"; then
17975 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17979 if test -z "$haveit"; then
17981 for x in $LDFLAGS $LIBINTL; do
17983 acl_save_prefix="$prefix"
17984 prefix="$acl_final_prefix"
17985 acl_save_exec_prefix="$exec_prefix"
17986 exec_prefix="$acl_final_exec_prefix"
17988 exec_prefix="$acl_save_exec_prefix"
17989 prefix="$acl_save_prefix"
17991 if test "X$x" = "X-L$additional_libdir"; then
17996 if test -z "$haveit"; then
17997 if test -d "$additional_libdir"; then
17998 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18002 for x in $LDFLAGS $LTLIBINTL; do
18004 acl_save_prefix="$prefix"
18005 prefix="$acl_final_prefix"
18006 acl_save_exec_prefix="$exec_prefix"
18007 exec_prefix="$acl_final_exec_prefix"
18009 exec_prefix="$acl_save_exec_prefix"
18010 prefix="$acl_save_prefix"
18012 if test "X$x" = "X-L$additional_libdir"; then
18017 if test -z "$haveit"; then
18018 if test -d "$additional_libdir"; then
18019 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18026 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18027 if test "$enable_rpath" != no; then
18029 for x in $rpathdirs; do
18030 if test "X$x" = "X$dir"; then
18035 if test -z "$haveit"; then
18036 rpathdirs="$rpathdirs $dir"
18039 for x in $ltrpathdirs; do
18040 if test "X$x" = "X$dir"; then
18045 if test -z "$haveit"; then
18046 ltrpathdirs="$ltrpathdirs $dir"
18051 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18054 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18057 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18058 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18064 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18065 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18071 if test "X$rpathdirs" != "X"; then
18072 if test -n "$hardcode_libdir_separator"; then
18074 for found_dir in $rpathdirs; do
18075 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18077 acl_save_libdir="$libdir"
18079 eval flag=\"$hardcode_libdir_flag_spec\"
18080 libdir="$acl_save_libdir"
18081 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18083 for found_dir in $rpathdirs; do
18084 acl_save_libdir="$libdir"
18085 libdir="$found_dir"
18086 eval flag=\"$hardcode_libdir_flag_spec\"
18087 libdir="$acl_save_libdir"
18088 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18092 if test "X$ltrpathdirs" != "X"; then
18093 for found_dir in $ltrpathdirs; do
18094 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18098 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18099 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18100 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 gt_save_CPPFLAGS="$CPPFLAGS"
18104 CPPFLAGS="$CPPFLAGS $INCINTL"
18105 gt_save_LIBS="$LIBS"
18106 LIBS="$LIBS $LIBINTL"
18107 cat >conftest.$ac_ext <<_ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18113 #include <libintl.h>
18114 extern int _nl_msg_cat_cntr;
18119 const char *_nl_expand_alias (const char *);
18123 bindtextdomain ("", "");
18124 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (ac_try="$ac_link"
18131 case "(($ac_try" in
18132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136 (eval "$ac_link") 2>conftest.er1
18138 grep -v '^ *+' conftest.er1 >conftest.err
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } && {
18143 test -z "$ac_c_werror_flag" ||
18144 test ! -s conftest.err
18145 } && test -s conftest$ac_exeext &&
18146 $as_test_x conftest$ac_exeext; then
18147 gt_cv_func_gnugettext1_libintl=yes
18149 echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18152 gt_cv_func_gnugettext1_libintl=no
18155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18156 conftest$ac_exeext conftest.$ac_ext
18157 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18158 LIBS="$LIBS $LIBICONV"
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 #include <libintl.h>
18166 extern int _nl_msg_cat_cntr;
18171 const char *_nl_expand_alias (const char *);
18175 bindtextdomain ("", "");
18176 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_link") 2>conftest.er1
18190 grep -v '^ *+' conftest.er1 >conftest.err
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } && {
18195 test -z "$ac_c_werror_flag" ||
18196 test ! -s conftest.err
18197 } && test -s conftest$ac_exeext &&
18198 $as_test_x conftest$ac_exeext; then
18199 LIBINTL="$LIBINTL $LIBICONV"
18200 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18201 gt_cv_func_gnugettext1_libintl=yes
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18211 conftest$ac_exeext conftest.$ac_ext
18213 CPPFLAGS="$gt_save_CPPFLAGS"
18214 LIBS="$gt_save_LIBS"
18216 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18217 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18220 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18221 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18222 && test "$PACKAGE" != gettext-runtime \
18223 && test "$PACKAGE" != gettext-tools; }; then
18224 gt_use_preinstalled_gnugettext=yes
18233 if test -n "$INTL_MACOSX_LIBS"; then
18234 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18235 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18236 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18237 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18241 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18242 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18244 cat >>confdefs.h <<\_ACEOF
18245 #define ENABLE_NLS 1
18253 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18254 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18255 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18256 echo "${ECHO_T}$USE_NLS" >&6; }
18257 if test "$USE_NLS" = "yes"; then
18258 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18259 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18260 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18261 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18262 gt_source="external libintl"
18267 gt_source="included intl directory"
18269 { echo "$as_me:$LINENO: result: $gt_source" >&5
18270 echo "${ECHO_T}$gt_source" >&6; }
18273 if test "$USE_NLS" = "yes"; then
18275 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18276 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18277 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18278 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18279 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18280 echo "${ECHO_T}$LIBINTL" >&6; }
18282 for element in $INCINTL; do
18284 for x in $CPPFLAGS; do
18286 acl_save_prefix="$prefix"
18287 prefix="$acl_final_prefix"
18288 acl_save_exec_prefix="$exec_prefix"
18289 exec_prefix="$acl_final_exec_prefix"
18291 exec_prefix="$acl_save_exec_prefix"
18292 prefix="$acl_save_prefix"
18294 if test "X$x" = "X$element"; then
18299 if test -z "$haveit"; then
18300 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE_GETTEXT 1
18312 cat >>confdefs.h <<\_ACEOF
18313 #define HAVE_DCGETTEXT 1
18323 INTLLIBS="$LIBINTL"
18331 os_name=`uname -s 2>/dev/null`
18332 if test x${prefix} = xNONE ; then
18333 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18334 sysconfdir=/etc/bacula
18337 if test `eval echo ${libdir}` = NONE/lib ; then
18340 os_processor=`uname -p 2>/dev/null`
18341 case ${os_processor} in
18356 if test `eval echo ${includedir}` = NONE/include ; then
18357 includedir=/usr/include
18360 if test `eval echo ${datarootdir}` = NONE/share ; then
18361 datarootdir=/usr/share
18366 if test x${exec_prefix} = xNONE ; then
18367 exec_prefix=${prefix}
18370 sysconfdir=`eval echo ${sysconfdir}`
18371 datarootdir=`eval echo ${datarootdir}`
18372 docdir=`eval echo ${docdir}`
18373 htmldir=`eval echo ${htmldir}`
18374 libdir=`eval echo ${libdir}`
18375 includedir=`eval echo ${includedir}`
18376 localedir=`eval echo ${datarootdir}/locale`
18377 cat >>confdefs.h <<_ACEOF
18378 #define SYSCONFDIR "$sysconfdir"
18381 cat >>confdefs.h <<_ACEOF
18382 #define LOCALEDIR "$localedir"
18386 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18387 sbindir=${exec_prefix}/sbin
18389 sbindir=`eval echo ${sbindir}`
18391 if test x$mandir = x'${prefix}/man' ; then
18392 mandir=/usr/share/man
18395 if test x$htmldir = x${docdir} ; then
18396 htmldir=`eval echo ${docdir}bacula/html`
18399 if test x$docdir = x'/usr/share/doc/' ; then
18400 docdir=`eval echo ${docdir}bacula`
18404 for ac_prog in msgfmt
18406 # Extract the first word of "$ac_prog", so it can be a program name with args.
18407 set dummy $ac_prog; ac_word=$2
18408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18410 if test "${ac_cv_path_MSGFMT+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18419 for as_dir in $PATH
18422 test -z "$as_dir" && as_dir=.
18423 for ac_exec_ext in '' $ac_executable_extensions; do
18424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18425 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18436 MSGFMT=$ac_cv_path_MSGFMT
18437 if test -n "$MSGFMT"; then
18438 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18439 echo "${ECHO_T}$MSGFMT" >&6; }
18441 { echo "$as_me:$LINENO: result: no" >&5
18442 echo "${ECHO_T}no" >&6; }
18446 test -n "$MSGFMT" && break
18448 test -n "$MSGFMT" || MSGFMT="no"
18450 if test "$MSGFMT" = "no"
18452 echo 'msgfmt program not found, disabling NLS !'
18454 USE_INCLUDED_LIBINTL=no
18457 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18458 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18459 if test "${ac_cv_gnu_library_2+set}" = set; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 cat >conftest.$ac_ext <<_ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18469 #include <features.h>
18470 #ifdef __GNU_LIBRARY__
18471 #if (__GLIBC__ >= 2)
18477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18478 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18479 ac_cv_gnu_library_2=yes
18481 ac_cv_gnu_library_2=no
18488 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18489 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18491 GLIBC2="$ac_cv_gnu_library_2"
18494 if test -n "$ac_tool_prefix"; then
18495 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18499 if test "${ac_cv_prog_RANLIB+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 if test -n "$RANLIB"; then
18503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18506 for as_dir in $PATH
18509 test -z "$as_dir" && as_dir=.
18510 for ac_exec_ext in '' $ac_executable_extensions; do
18511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18522 RANLIB=$ac_cv_prog_RANLIB
18523 if test -n "$RANLIB"; then
18524 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18525 echo "${ECHO_T}$RANLIB" >&6; }
18527 { echo "$as_me:$LINENO: result: no" >&5
18528 echo "${ECHO_T}no" >&6; }
18533 if test -z "$ac_cv_prog_RANLIB"; then
18534 ac_ct_RANLIB=$RANLIB
18535 # Extract the first word of "ranlib", so it can be a program name with args.
18536 set dummy ranlib; ac_word=$2
18537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18539 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18542 if test -n "$ac_ct_RANLIB"; then
18543 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18546 for as_dir in $PATH
18549 test -z "$as_dir" && as_dir=.
18550 for ac_exec_ext in '' $ac_executable_extensions; do
18551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18552 ac_cv_prog_ac_ct_RANLIB="ranlib"
18553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18562 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18563 if test -n "$ac_ct_RANLIB"; then
18564 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18565 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18567 { echo "$as_me:$LINENO: result: no" >&5
18568 echo "${ECHO_T}no" >&6; }
18571 if test "x$ac_ct_RANLIB" = x; then
18574 case $cross_compiling:$ac_tool_warned in
18576 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18577 whose name does not start with the host triplet. If you think this
18578 configuration is useful to you, please write to autoconf@gnu.org." >&5
18579 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18580 whose name does not start with the host triplet. If you think this
18581 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18582 ac_tool_warned=yes ;;
18584 RANLIB=$ac_ct_RANLIB
18587 RANLIB="$ac_cv_prog_RANLIB"
18591 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18592 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18593 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 ac_check_lib_save_LIBS=$LIBS
18597 LIBS="-lcposix $LIBS"
18598 cat >conftest.$ac_ext <<_ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18605 /* Override any GCC internal prototype to avoid an error.
18606 Use char because int might match the return type of a GCC
18607 builtin and then its argument prototype would still apply. */
18615 return strerror ();
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_link") 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest$ac_exeext &&
18637 $as_test_x conftest$ac_exeext; then
18638 ac_cv_lib_cposix_strerror=yes
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 ac_cv_lib_cposix_strerror=no
18646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18647 conftest$ac_exeext conftest.$ac_ext
18648 LIBS=$ac_check_lib_save_LIBS
18650 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18651 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18652 if test $ac_cv_lib_cposix_strerror = yes; then
18653 LIBS="$LIBS -lcposix"
18658 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18659 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18660 if test "${ac_cv_c_const+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 cat >conftest.$ac_ext <<_ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18673 /* FIXME: Include the comments suggested by Paul. */
18674 #ifndef __cplusplus
18675 /* Ultrix mips cc rejects this. */
18676 typedef int charset[2];
18678 /* SunOS 4.1.1 cc rejects this. */
18679 char const *const *pcpcc;
18681 /* NEC SVR4.0.2 mips cc rejects this. */
18682 struct point {int x, y;};
18683 static struct point const zero = {0,0};
18684 /* AIX XL C 1.02.0.0 rejects this.
18685 It does not let you subtract one const X* pointer from another in
18686 an arm of an if-expression whose if-part is not a constant
18688 const char *g = "string";
18689 pcpcc = &g + (g ? g-g : 0);
18690 /* HPUX 7.0 cc rejects these. */
18692 ppc = (char**) pcpcc;
18693 pcpcc = (char const *const *) ppc;
18694 { /* SCO 3.2v4 cc rejects this. */
18696 char const *s = 0 ? (char *) 0 : (char const *) 0;
18701 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18702 int x[] = {25, 17};
18703 const int *foo = &x[0];
18706 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18707 typedef const int *iptr;
18711 { /* AIX XL C 1.02.0.0 rejects this saying
18712 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18713 struct s { int j; const int *ap[3]; };
18714 struct s *b; b->j = 5;
18716 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18717 const int foo = 10;
18718 if (!foo) return 0;
18720 return !cs[0] && !zero.x;
18727 rm -f conftest.$ac_objext
18728 if { (ac_try="$ac_compile"
18729 case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_compile") 2>conftest.er1
18736 grep -v '^ *+' conftest.er1 >conftest.err
18738 cat conftest.err >&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } && {
18741 test -z "$ac_c_werror_flag" ||
18742 test ! -s conftest.err
18743 } && test -s conftest.$ac_objext; then
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18754 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18755 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18756 if test $ac_cv_c_const = no; then
18758 cat >>confdefs.h <<\_ACEOF
18765 { echo "$as_me:$LINENO: checking for signed" >&5
18766 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18767 if test "${bh_cv_c_signed+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 cat >conftest.$ac_ext <<_ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18785 rm -f conftest.$ac_objext
18786 if { (ac_try="$ac_compile"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1 >conftest.err
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.$ac_objext; then
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18812 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18813 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18814 if test $bh_cv_c_signed = no; then
18816 cat >>confdefs.h <<\_ACEOF
18822 { echo "$as_me:$LINENO: checking for inline" >&5
18823 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18824 if test "${ac_cv_c_inline+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 for ac_kw in inline __inline__ __inline; do
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 #ifndef __cplusplus
18837 static $ac_kw foo_t static_foo () {return 0; }
18838 $ac_kw foo_t foo () {return 0; }
18842 rm -f conftest.$ac_objext
18843 if { (ac_try="$ac_compile"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_compile") 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } && {
18856 test -z "$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 } && test -s conftest.$ac_objext; then
18859 ac_cv_c_inline=$ac_kw
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868 test "$ac_cv_c_inline" != no && break
18872 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18873 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18876 case $ac_cv_c_inline in
18879 case $ac_cv_c_inline in
18881 *) ac_val=$ac_cv_c_inline;;
18883 cat >>confdefs.h <<_ACEOF
18884 #ifndef __cplusplus
18885 #define inline $ac_val
18891 { echo "$as_me:$LINENO: checking for off_t" >&5
18892 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18893 if test "${ac_cv_type_off_t+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 $ac_includes_default
18903 typedef off_t ac__type_new_;
18907 if ((ac__type_new_ *) 0)
18909 if (sizeof (ac__type_new_))
18915 rm -f conftest.$ac_objext
18916 if { (ac_try="$ac_compile"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_compile") 2>conftest.er1
18924 grep -v '^ *+' conftest.er1 >conftest.err
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest.$ac_objext; then
18932 ac_cv_type_off_t=yes
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18937 ac_cv_type_off_t=no
18940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18943 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18944 if test $ac_cv_type_off_t = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define off_t long int
18954 { echo "$as_me:$LINENO: checking for size_t" >&5
18955 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18956 if test "${ac_cv_type_size_t+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 cat >conftest.$ac_ext <<_ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18965 $ac_includes_default
18966 typedef size_t ac__type_new_;
18970 if ((ac__type_new_ *) 0)
18972 if (sizeof (ac__type_new_))
18978 rm -f conftest.$ac_objext
18979 if { (ac_try="$ac_compile"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_compile") 2>conftest.er1
18987 grep -v '^ *+' conftest.er1 >conftest.err
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } && {
18992 test -z "$ac_c_werror_flag" ||
18993 test ! -s conftest.err
18994 } && test -s conftest.$ac_objext; then
18995 ac_cv_type_size_t=yes
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_cv_type_size_t=no
19003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19005 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19006 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19007 if test $ac_cv_type_size_t = yes; then
19011 cat >>confdefs.h <<_ACEOF
19012 #define size_t unsigned int
19018 { echo "$as_me:$LINENO: checking for long long" >&5
19019 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19020 if test "${ac_cv_type_long_long+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 long long ll = 1LL; int i = 63;
19033 long long llmax = (long long) -1;
19034 return ll << i | ll >> i | llmax / ll | llmax % ll;
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_link") 2>conftest.er1
19048 grep -v '^ *+' conftest.er1 >conftest.err
19050 cat conftest.err >&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } && {
19053 test -z "$ac_c_werror_flag" ||
19054 test ! -s conftest.err
19055 } && test -s conftest$ac_exeext &&
19056 $as_test_x conftest$ac_exeext; then
19057 ac_cv_type_long_long=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_type_long_long=no
19065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19066 conftest$ac_exeext conftest.$ac_ext
19068 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19069 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19070 if test $ac_cv_type_long_long = yes; then
19072 cat >>confdefs.h <<\_ACEOF
19073 #define HAVE_LONG_LONG 1
19079 { echo "$as_me:$LINENO: checking for long double" >&5
19080 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19081 if test "${gt_cv_c_long_double+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 if test "$GCC" = yes; then
19085 gt_cv_c_long_double=yes
19087 cat >conftest.$ac_ext <<_ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19094 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19095 long double foo = 0.0;
19096 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19097 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19107 rm -f conftest.$ac_objext
19108 if { (ac_try="$ac_compile"
19109 case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_compile") 2>conftest.er1
19116 grep -v '^ *+' conftest.er1 >conftest.err
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } && {
19121 test -z "$ac_c_werror_flag" ||
19122 test ! -s conftest.err
19123 } && test -s conftest.$ac_objext; then
19124 gt_cv_c_long_double=yes
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19129 gt_cv_c_long_double=no
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19136 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19137 if test $gt_cv_c_long_double = yes; then
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_LONG_DOUBLE 1
19146 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19147 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19148 if test "${gt_cv_c_wchar_t+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19151 cat >conftest.$ac_ext <<_ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <stddef.h>
19158 wchar_t foo = (wchar_t)'\0';
19167 rm -f conftest.$ac_objext
19168 if { (ac_try="$ac_compile"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_compile") 2>conftest.er1
19176 grep -v '^ *+' conftest.er1 >conftest.err
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } && {
19181 test -z "$ac_c_werror_flag" ||
19182 test ! -s conftest.err
19183 } && test -s conftest.$ac_objext; then
19184 gt_cv_c_wchar_t=yes
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19194 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19195 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19196 if test $gt_cv_c_wchar_t = yes; then
19198 cat >>confdefs.h <<\_ACEOF
19199 #define HAVE_WCHAR_T 1
19205 { echo "$as_me:$LINENO: checking for wint_t" >&5
19206 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19207 if test "${gt_cv_c_wint_t+set}" = set; then
19208 echo $ECHO_N "(cached) $ECHO_C" >&6
19210 cat >conftest.$ac_ext <<_ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19217 wint_t foo = (wchar_t)'\0';
19226 rm -f conftest.$ac_objext
19227 if { (ac_try="$ac_compile"
19228 case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_compile") 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest.$ac_objext; then
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19253 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19254 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19255 if test $gt_cv_c_wint_t = yes; then
19257 cat >>confdefs.h <<\_ACEOF
19258 #define HAVE_WINT_T 1
19264 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19265 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19266 if test "${gl_cv_header_inttypes_h+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 cat >conftest.$ac_ext <<_ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19275 #include <sys/types.h>
19276 #include <inttypes.h>
19280 uintmax_t i = (uintmax_t) -1;
19285 rm -f conftest.$ac_objext
19286 if { (ac_try="$ac_compile"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_compile") 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } && {
19299 test -z "$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19301 } && test -s conftest.$ac_objext; then
19302 gl_cv_header_inttypes_h=yes
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 gl_cv_header_inttypes_h=no
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19312 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19313 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19314 if test $gl_cv_header_inttypes_h = yes; then
19316 cat >>confdefs.h <<_ACEOF
19317 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19323 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19324 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19325 if test "${gl_cv_header_stdint_h+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 cat >conftest.$ac_ext <<_ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19334 #include <sys/types.h>
19335 #include <stdint.h>
19339 uintmax_t i = (uintmax_t) -1;
19344 rm -f conftest.$ac_objext
19345 if { (ac_try="$ac_compile"
19346 case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_compile") 2>conftest.er1
19353 grep -v '^ *+' conftest.er1 >conftest.err
19355 cat conftest.err >&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } && {
19358 test -z "$ac_c_werror_flag" ||
19359 test ! -s conftest.err
19360 } && test -s conftest.$ac_objext; then
19361 gl_cv_header_stdint_h=yes
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19366 gl_cv_header_stdint_h=no
19369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19371 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19372 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19373 if test $gl_cv_header_stdint_h = yes; then
19375 cat >>confdefs.h <<_ACEOF
19376 #define HAVE_STDINT_H_WITH_UINTMAX 1
19384 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19385 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19386 if test "${gt_cv_c_intmax_t+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19396 #include <stddef.h>
19397 #include <stdlib.h>
19398 #if HAVE_STDINT_H_WITH_UINTMAX
19399 #include <stdint.h>
19401 #if HAVE_INTTYPES_H_WITH_UINTMAX
19402 #include <inttypes.h>
19413 rm -f conftest.$ac_objext
19414 if { (ac_try="$ac_compile"
19415 case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_compile") 2>conftest.er1
19422 grep -v '^ *+' conftest.er1 >conftest.err
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } && {
19427 test -z "$ac_c_werror_flag" ||
19428 test ! -s conftest.err
19429 } && test -s conftest.$ac_objext; then
19430 gt_cv_c_intmax_t=yes
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 gt_cv_c_intmax_t=no
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19440 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19441 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19442 if test $gt_cv_c_intmax_t = yes; then
19444 cat >>confdefs.h <<\_ACEOF
19445 #define HAVE_INTMAX_T 1
19452 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19453 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19454 if test "${gt_cv_func_printf_posix+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 if test "$cross_compiling" = yes; then
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19467 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19473 $EGREP "notposix" >/dev/null 2>&1; then
19474 gt_cv_func_printf_posix="guessing no"
19476 gt_cv_func_printf_posix="guessing yes"
19482 cat >conftest.$ac_ext <<_ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19490 #include <string.h>
19491 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19492 dollar expansion (possibly an autoconf bug). */
19493 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19494 static char buf[100];
19497 sprintf (buf, format, 33, 55);
19498 return (strcmp (buf, "55 33") != 0);
19501 rm -f conftest$ac_exeext
19502 if { (ac_try="$ac_link"
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_link") 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 gt_cv_func_printf_posix=yes
19523 echo "$as_me: program exited with status $ac_status" >&5
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 ( exit $ac_status )
19528 gt_cv_func_printf_posix=no
19530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19536 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19537 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19538 case $gt_cv_func_printf_posix in
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE_POSIX_PRINTF 1
19548 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19549 # for constant arguments. Useless!
19550 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19551 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19552 if test "${ac_cv_working_alloca_h+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 cat >conftest.$ac_ext <<_ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561 #include <alloca.h>
19565 char *p = (char *) alloca (2 * sizeof (int));
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (ac_try="$ac_link"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_link") 2>conftest.er1
19580 grep -v '^ *+' conftest.er1 >conftest.err
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } && {
19585 test -z "$ac_c_werror_flag" ||
19586 test ! -s conftest.err
19587 } && test -s conftest$ac_exeext &&
19588 $as_test_x conftest$ac_exeext; then
19589 ac_cv_working_alloca_h=yes
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_cv_working_alloca_h=no
19597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19598 conftest$ac_exeext conftest.$ac_ext
19600 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19601 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19602 if test $ac_cv_working_alloca_h = yes; then
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE_ALLOCA_H 1
19610 { echo "$as_me:$LINENO: checking for alloca" >&5
19611 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19612 if test "${ac_cv_func_alloca_works+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19622 # define alloca __builtin_alloca
19625 # include <malloc.h>
19626 # define alloca _alloca
19628 # ifdef HAVE_ALLOCA_H
19629 # include <alloca.h>
19634 # ifndef alloca /* predefined by HP cc +Olibcalls */
19645 char *p = (char *) alloca (1);
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_link") 2>conftest.er1
19660 grep -v '^ *+' conftest.er1 >conftest.err
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && {
19665 test -z "$ac_c_werror_flag" ||
19666 test ! -s conftest.err
19667 } && test -s conftest$ac_exeext &&
19668 $as_test_x conftest$ac_exeext; then
19669 ac_cv_func_alloca_works=yes
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ac_cv_func_alloca_works=no
19677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19678 conftest$ac_exeext conftest.$ac_ext
19680 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19681 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19683 if test $ac_cv_func_alloca_works = yes; then
19685 cat >>confdefs.h <<\_ACEOF
19686 #define HAVE_ALLOCA 1
19690 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19691 # that cause trouble. Some versions do not even contain alloca or
19692 # contain a buggy version. If you still want to use their alloca,
19693 # use ar to extract alloca.o from them instead of compiling alloca.c.
19695 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19697 cat >>confdefs.h <<\_ACEOF
19702 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19703 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19704 if test "${ac_cv_os_cray+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 cat >conftest.$ac_ext <<_ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713 #if defined CRAY && ! defined CRAY2
19720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19721 $EGREP "webecray" >/dev/null 2>&1; then
19729 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19730 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19731 if test $ac_cv_os_cray = yes; then
19732 for ac_func in _getb67 GETB67 getb67; do
19733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 cat >conftest.$ac_ext <<_ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19747 #define $ac_func innocuous_$ac_func
19749 /* System header to define __stub macros and hopefully few prototypes,
19750 which can conflict with char $ac_func (); below.
19751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19752 <limits.h> exists even on freestanding compilers. */
19755 # include <limits.h>
19757 # include <assert.h>
19762 /* Override any GCC internal prototype to avoid an error.
19763 Use char because int might match the return type of a GCC
19764 builtin and then its argument prototype would still apply. */
19769 /* The GNU C library defines this for functions which it implements
19770 to always fail with ENOSYS. Some functions are actually named
19771 something starting with __ and the normal name is an alias. */
19772 #if defined __stub_$ac_func || defined __stub___$ac_func
19779 return $ac_func ();
19784 rm -f conftest.$ac_objext conftest$ac_exeext
19785 if { (ac_try="$ac_link"
19786 case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_link") 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } && {
19798 test -z "$ac_c_werror_flag" ||
19799 test ! -s conftest.err
19800 } && test -s conftest$ac_exeext &&
19801 $as_test_x conftest$ac_exeext; then
19802 eval "$as_ac_var=yes"
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 eval "$as_ac_var=no"
19810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19811 conftest$ac_exeext conftest.$ac_ext
19813 ac_res=`eval echo '${'$as_ac_var'}'`
19814 { echo "$as_me:$LINENO: result: $ac_res" >&5
19815 echo "${ECHO_T}$ac_res" >&6; }
19816 if test `eval echo '${'$as_ac_var'}'` = yes; then
19818 cat >>confdefs.h <<_ACEOF
19819 #define CRAY_STACKSEG_END $ac_func
19828 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19829 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19830 if test "${ac_cv_c_stack_direction+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 if test "$cross_compiling" = yes; then
19834 ac_cv_c_stack_direction=0
19836 cat >conftest.$ac_ext <<_ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 $ac_includes_default
19844 find_stack_direction ()
19846 static char *addr = 0;
19851 return find_stack_direction ();
19854 return (&dummy > addr) ? 1 : -1;
19860 return find_stack_direction () < 0;
19863 rm -f conftest$ac_exeext
19864 if { (ac_try="$ac_link"
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_link") 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19874 { (case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_try") 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_cv_c_stack_direction=1
19885 echo "$as_me: program exited with status $ac_status" >&5
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ( exit $ac_status )
19890 ac_cv_c_stack_direction=-1
19892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19897 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19898 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19900 cat >>confdefs.h <<_ACEOF
19901 #define STACK_DIRECTION $ac_cv_c_stack_direction
19909 for ac_header in stdlib.h unistd.h
19911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 ac_res=`eval echo '${'$as_ac_Header'}'`
19919 { echo "$as_me:$LINENO: result: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19922 # Is the header compilable?
19923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 $ac_includes_default
19932 #include <$ac_header>
19934 rm -f conftest.$ac_objext
19935 if { (ac_try="$ac_compile"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_compile") 2>conftest.er1
19943 grep -v '^ *+' conftest.er1 >conftest.err
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_c_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest.$ac_objext; then
19951 ac_header_compiler=yes
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19956 ac_header_compiler=no
19959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19961 echo "${ECHO_T}$ac_header_compiler" >&6; }
19963 # Is the header present?
19964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19966 cat >conftest.$ac_ext <<_ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19972 #include <$ac_header>
19974 if { (ac_try="$ac_cpp conftest.$ac_ext"
19975 case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19982 grep -v '^ *+' conftest.er1 >conftest.err
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } >/dev/null && {
19987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19988 test ! -s conftest.err
19990 ac_header_preproc=yes
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_header_preproc=no
19998 rm -f conftest.err conftest.$ac_ext
19999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20000 echo "${ECHO_T}$ac_header_preproc" >&6; }
20002 # So? What about this header?
20003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20009 ac_header_preproc=yes
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 eval "$as_ac_Header=\$ac_header_preproc"
20034 ac_res=`eval echo '${'$as_ac_Header'}'`
20035 { echo "$as_me:$LINENO: result: $ac_res" >&5
20036 echo "${ECHO_T}$ac_res" >&6; }
20039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20040 cat >>confdefs.h <<_ACEOF
20041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20049 for ac_func in getpagesize
20051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 cat >conftest.$ac_ext <<_ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20065 #define $ac_func innocuous_$ac_func
20067 /* System header to define __stub macros and hopefully few prototypes,
20068 which can conflict with char $ac_func (); below.
20069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20070 <limits.h> exists even on freestanding compilers. */
20073 # include <limits.h>
20075 # include <assert.h>
20080 /* Override any GCC internal prototype to avoid an error.
20081 Use char because int might match the return type of a GCC
20082 builtin and then its argument prototype would still apply. */
20087 /* The GNU C library defines this for functions which it implements
20088 to always fail with ENOSYS. Some functions are actually named
20089 something starting with __ and the normal name is an alias. */
20090 #if defined __stub_$ac_func || defined __stub___$ac_func
20097 return $ac_func ();
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_link") 2>conftest.er1
20111 grep -v '^ *+' conftest.er1 >conftest.err
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && {
20116 test -z "$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest$ac_exeext &&
20119 $as_test_x conftest$ac_exeext; then
20120 eval "$as_ac_var=yes"
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 eval "$as_ac_var=no"
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129 conftest$ac_exeext conftest.$ac_ext
20131 ac_res=`eval echo '${'$as_ac_var'}'`
20132 { echo "$as_me:$LINENO: result: $ac_res" >&5
20133 echo "${ECHO_T}$ac_res" >&6; }
20134 if test `eval echo '${'$as_ac_var'}'` = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20142 { echo "$as_me:$LINENO: checking for working mmap" >&5
20143 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20144 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 if test "$cross_compiling" = yes; then
20148 ac_cv_func_mmap_fixed_mapped=no
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 $ac_includes_default
20157 /* malloc might have been renamed as rpl_malloc. */
20160 /* Thanks to Mike Haertel and Jim Avera for this test.
20161 Here is a matrix of mmap possibilities:
20162 mmap private not fixed
20163 mmap private fixed at somewhere currently unmapped
20164 mmap private fixed at somewhere already mapped
20165 mmap shared not fixed
20166 mmap shared fixed at somewhere currently unmapped
20167 mmap shared fixed at somewhere already mapped
20168 For private mappings, we should verify that changes cannot be read()
20169 back from the file, nor mmap's back from the file at a different
20170 address. (There have been systems where private was not correctly
20171 implemented like the infamous i386 svr4.0, and systems where the
20172 VM page cache was not coherent with the file system buffer cache
20173 like early versions of FreeBSD and possibly contemporary NetBSD.)
20174 For shared mappings, we should conversely verify that changes get
20175 propagated back to all the places they're supposed to be.
20177 Grep wants private fixed already mapped.
20178 The main things grep needs to know about mmap are:
20179 * does it exist and is it safe to write into the mmap'd area
20180 * how to use it (BSD variants) */
20183 #include <sys/mman.h>
20185 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20189 /* This mess was copied from the GNU getpagesize.h. */
20190 #ifndef HAVE_GETPAGESIZE
20191 /* Assume that all systems that can run configure have sys/param.h. */
20192 # ifndef HAVE_SYS_PARAM_H
20193 # define HAVE_SYS_PARAM_H 1
20196 # ifdef _SC_PAGESIZE
20197 # define getpagesize() sysconf(_SC_PAGESIZE)
20198 # else /* no _SC_PAGESIZE */
20199 # ifdef HAVE_SYS_PARAM_H
20200 # include <sys/param.h>
20201 # ifdef EXEC_PAGESIZE
20202 # define getpagesize() EXEC_PAGESIZE
20203 # else /* no EXEC_PAGESIZE */
20205 # define getpagesize() NBPG * CLSIZE
20208 # endif /* no CLSIZE */
20209 # else /* no NBPG */
20211 # define getpagesize() NBPC
20212 # else /* no NBPC */
20214 # define getpagesize() PAGESIZE
20215 # endif /* PAGESIZE */
20216 # endif /* no NBPC */
20217 # endif /* no NBPG */
20218 # endif /* no EXEC_PAGESIZE */
20219 # else /* no HAVE_SYS_PARAM_H */
20220 # define getpagesize() 8192 /* punt totally */
20221 # endif /* no HAVE_SYS_PARAM_H */
20222 # endif /* no _SC_PAGESIZE */
20224 #endif /* no HAVE_GETPAGESIZE */
20229 char *data, *data2, *data3;
20233 pagesize = getpagesize ();
20235 /* First, make a file with some known garbage in it. */
20236 data = (char *) malloc (pagesize);
20239 for (i = 0; i < pagesize; ++i)
20240 *(data + i) = rand ();
20242 fd = creat ("conftest.mmap", 0600);
20245 if (write (fd, data, pagesize) != pagesize)
20249 /* Next, try to mmap the file at a fixed address which already has
20250 something else allocated at it. If we can, also make sure that
20251 we see the same garbage. */
20252 fd = open ("conftest.mmap", O_RDWR);
20255 data2 = (char *) malloc (2 * pagesize);
20258 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20259 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20260 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20262 for (i = 0; i < pagesize; ++i)
20263 if (*(data + i) != *(data2 + i))
20266 /* Finally, make sure that changes to the mapped area do not
20267 percolate back to the file as seen by read(). (This is a bug on
20268 some variants of i386 svr4.0.) */
20269 for (i = 0; i < pagesize; ++i)
20270 *(data2 + i) = *(data2 + i) + 1;
20271 data3 = (char *) malloc (pagesize);
20274 if (read (fd, data3, pagesize) != pagesize)
20276 for (i = 0; i < pagesize; ++i)
20277 if (*(data + i) != *(data3 + i))
20283 rm -f conftest$ac_exeext
20284 if { (ac_try="$ac_link"
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_link") 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20294 { (case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_try") 2>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; }; then
20303 ac_cv_func_mmap_fixed_mapped=yes
20305 echo "$as_me: program exited with status $ac_status" >&5
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20309 ( exit $ac_status )
20310 ac_cv_func_mmap_fixed_mapped=no
20312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20317 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20318 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20319 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20321 cat >>confdefs.h <<\_ACEOF
20322 #define HAVE_MMAP 1
20326 rm -f conftest.mmap
20329 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20330 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20331 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20341 #include <features.h>
20342 #ifdef __GNU_LIBRARY__
20343 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20350 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20351 ac_cv_gnu_library_2_1=yes
20353 ac_cv_gnu_library_2_1=no
20360 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20361 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20363 GLIBC21="$ac_cv_gnu_library_2_1"
20368 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20369 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20370 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 if test "$cross_compiling" = yes; then
20376 # Guess based on the CPU.
20377 case "$host_cpu" in
20378 alpha* | i3456786 | m68k | s390*)
20379 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20381 gt_cv_int_divbyzero_sigfpe="guessing no";;
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20392 #include <stdlib.h>
20393 #include <signal.h>
20397 sigfpe_handler (int sig)
20399 sigfpe_handler (sig) int sig;
20402 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20403 exit (sig != SIGFPE);
20413 signal (SIGFPE, sigfpe_handler);
20414 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20415 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20416 signal (SIGTRAP, sigfpe_handler);
20418 /* Linux/SPARC yields signal SIGILL. */
20419 #if defined (__sparc__) && defined (__linux__)
20420 signal (SIGILL, sigfpe_handler);
20429 rm -f conftest$ac_exeext
20430 if { (ac_try="$ac_link"
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_link") 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20440 { (case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_try") 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 gt_cv_int_divbyzero_sigfpe=yes
20451 echo "$as_me: program exited with status $ac_status" >&5
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ( exit $ac_status )
20456 gt_cv_int_divbyzero_sigfpe=no
20458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20465 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20466 case "$gt_cv_int_divbyzero_sigfpe" in
20471 cat >>confdefs.h <<_ACEOF
20472 #define INTDIV0_RAISES_SIGFPE $value
20477 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20478 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20479 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 cat >conftest.$ac_ext <<_ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20488 unsigned long long ull = 1ULL; int i = 63;
20492 unsigned long long ullmax = (unsigned long long) -1;
20493 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20498 rm -f conftest.$ac_objext conftest$ac_exeext
20499 if { (ac_try="$ac_link"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_link") 2>conftest.er1
20507 grep -v '^ *+' conftest.er1 >conftest.err
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && {
20512 test -z "$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 } && test -s conftest$ac_exeext &&
20515 $as_test_x conftest$ac_exeext; then
20516 ac_cv_type_unsigned_long_long=yes
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_cv_type_unsigned_long_long=no
20524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20525 conftest$ac_exeext conftest.$ac_ext
20527 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20528 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20529 if test $ac_cv_type_unsigned_long_long = yes; then
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE_UNSIGNED_LONG_LONG 1
20540 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20542 test $ac_cv_type_unsigned_long_long = yes \
20543 && ac_type='unsigned long long' \
20544 || ac_type='unsigned long'
20546 cat >>confdefs.h <<_ACEOF
20547 #define uintmax_t $ac_type
20552 cat >>confdefs.h <<\_ACEOF
20553 #define HAVE_UINTMAX_T 1
20559 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20560 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20561 if test "${gt_cv_header_inttypes_h+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 cat >conftest.$ac_ext <<_ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571 #include <sys/types.h>
20572 #include <inttypes.h>
20581 rm -f conftest.$ac_objext
20582 if { (ac_try="$ac_compile"
20583 case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_compile") 2>conftest.er1
20590 grep -v '^ *+' conftest.er1 >conftest.err
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest.$ac_objext; then
20598 gt_cv_header_inttypes_h=yes
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20603 gt_cv_header_inttypes_h=no
20606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20610 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20611 if test $gt_cv_header_inttypes_h = yes; then
20613 cat >>confdefs.h <<_ACEOF
20614 #define HAVE_INTTYPES_H 1
20621 if test $gt_cv_header_inttypes_h = yes; then
20622 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20623 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20624 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 cat >conftest.$ac_ext <<_ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634 #include <inttypes.h>
20647 rm -f conftest.$ac_objext
20648 if { (ac_try="$ac_compile"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_compile") 2>conftest.er1
20656 grep -v '^ *+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest.$ac_objext; then
20664 gt_cv_inttypes_pri_broken=no
20666 echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20669 gt_cv_inttypes_pri_broken=yes
20672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20675 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20676 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20678 if test "$gt_cv_inttypes_pri_broken" = yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define PRI_MACROS_BROKEN 1
20688 for ac_header in stdint.h
20690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 ac_res=`eval echo '${'$as_ac_Header'}'`
20698 { echo "$as_me:$LINENO: result: $ac_res" >&5
20699 echo "${ECHO_T}$ac_res" >&6; }
20701 # Is the header compilable?
20702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 $ac_includes_default
20711 #include <$ac_header>
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20722 grep -v '^ *+' conftest.er1 >conftest.err
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && {
20727 test -z "$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 } && test -s conftest.$ac_objext; then
20730 ac_header_compiler=yes
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ac_header_compiler=no
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20740 echo "${ECHO_T}$ac_header_compiler" >&6; }
20742 # Is the header present?
20743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20745 cat >conftest.$ac_ext <<_ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 #include <$ac_header>
20753 if { (ac_try="$ac_cpp conftest.$ac_ext"
20754 case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20761 grep -v '^ *+' conftest.er1 >conftest.err
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } >/dev/null && {
20766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20767 test ! -s conftest.err
20769 ac_header_preproc=yes
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ac_header_preproc=no
20777 rm -f conftest.err conftest.$ac_ext
20778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20779 echo "${ECHO_T}$ac_header_preproc" >&6; }
20781 # So? What about this header?
20782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20788 ac_header_preproc=yes
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 eval "$as_ac_Header=\$ac_header_preproc"
20813 ac_res=`eval echo '${'$as_ac_Header'}'`
20814 { echo "$as_me:$LINENO: result: $ac_res" >&5
20815 echo "${ECHO_T}$ac_res" >&6; }
20818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20827 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20828 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20837 #include <limits.h>
20839 #include <stdint.h>
20846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20847 $EGREP "Found it" >/dev/null 2>&1; then
20852 if test -z "$result"; then
20853 if test "$cross_compiling" = yes; then
20854 # Depending upon the size, compute the lo and hi bounds.
20855 cat >conftest.$ac_ext <<_ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20861 #include <stddef.h>
20865 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_compile") 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } && {
20886 test -z "$ac_c_werror_flag" ||
20887 test ! -s conftest.err
20888 } && test -s conftest.$ac_objext; then
20891 cat >conftest.$ac_ext <<_ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 #include <stddef.h>
20901 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20908 rm -f conftest.$ac_objext
20909 if { (ac_try="$ac_compile"
20910 case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_compile") 2>conftest.er1
20917 grep -v '^ *+' conftest.er1 >conftest.err
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } && {
20922 test -z "$ac_c_werror_flag" ||
20923 test ! -s conftest.err
20924 } && test -s conftest.$ac_objext; then
20925 ac_hi=$ac_mid; break
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 ac_lo=`expr $ac_mid + 1`
20931 if test $ac_lo -le $ac_mid; then
20935 ac_mid=`expr 2 '*' $ac_mid + 1`
20938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 cat >conftest.$ac_ext <<_ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20950 #include <stddef.h>
20954 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20961 rm -f conftest.$ac_objext
20962 if { (ac_try="$ac_compile"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_compile") 2>conftest.er1
20970 grep -v '^ *+' conftest.er1 >conftest.err
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } && {
20975 test -z "$ac_c_werror_flag" ||
20976 test ! -s conftest.err
20977 } && test -s conftest.$ac_objext; then
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20986 #include <stddef.h>
20990 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20997 rm -f conftest.$ac_objext
20998 if { (ac_try="$ac_compile"
20999 case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_compile") 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest.$ac_objext; then
21014 ac_lo=$ac_mid; break
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ac_hi=`expr '(' $ac_mid ')' - 1`
21020 if test $ac_mid -le $ac_hi; then
21024 ac_mid=`expr 2 '*' $ac_mid`
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 # Binary search between lo and hi bounds.
21041 while test "x$ac_lo" != "x$ac_hi"; do
21042 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 #include <stddef.h>
21053 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21069 grep -v '^ *+' conftest.er1 >conftest.err
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21082 ac_lo=`expr '(' $ac_mid ')' + 1`
21085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21088 ?*) res_hi=$ac_lo;;
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 #include <stddef.h>
21099 static long int longval () { return ~(size_t)0 / 10; }
21100 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21102 #include <stdlib.h>
21107 FILE *f = fopen ("conftest.val", "w");
21110 if ((~(size_t)0 / 10) < 0)
21112 long int i = longval ();
21113 if (i != (~(size_t)0 / 10))
21115 fprintf (f, "%ld\n", i);
21119 unsigned long int i = ulongval ();
21120 if (i != (~(size_t)0 / 10))
21122 fprintf (f, "%lu\n", i);
21124 return ferror (f) || fclose (f) != 0;
21130 rm -f conftest$ac_exeext
21131 if { (ac_try="$ac_link"
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_link") 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21141 { (case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 res_hi=`cat conftest.val`
21152 echo "$as_me: program exited with status $ac_status" >&5
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21156 ( exit $ac_status )
21159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21163 if test "$cross_compiling" = yes; then
21164 # Depending upon the size, compute the lo and hi bounds.
21165 cat >conftest.$ac_ext <<_ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h. */
21171 #include <stddef.h>
21175 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21182 rm -f conftest.$ac_objext
21183 if { (ac_try="$ac_compile"
21184 case "(($ac_try" in
21185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186 *) ac_try_echo=$ac_try;;
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189 (eval "$ac_compile") 2>conftest.er1
21191 grep -v '^ *+' conftest.er1 >conftest.err
21193 cat conftest.err >&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } && {
21196 test -z "$ac_c_werror_flag" ||
21197 test ! -s conftest.err
21198 } && test -s conftest.$ac_objext; then
21201 cat >conftest.$ac_ext <<_ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21207 #include <stddef.h>
21211 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21218 rm -f conftest.$ac_objext
21219 if { (ac_try="$ac_compile"
21220 case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_compile") 2>conftest.er1
21227 grep -v '^ *+' conftest.er1 >conftest.err
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest.$ac_objext; then
21235 ac_hi=$ac_mid; break
21237 echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21240 ac_lo=`expr $ac_mid + 1`
21241 if test $ac_lo -le $ac_mid; then
21245 ac_mid=`expr 2 '*' $ac_mid + 1`
21248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 cat >conftest.$ac_ext <<_ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 #include <stddef.h>
21264 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21271 rm -f conftest.$ac_objext
21272 if { (ac_try="$ac_compile"
21273 case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_compile") 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && {
21285 test -z "$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21287 } && test -s conftest.$ac_objext; then
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 #include <stddef.h>
21300 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21307 rm -f conftest.$ac_objext
21308 if { (ac_try="$ac_compile"
21309 case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_compile") 2>conftest.er1
21316 grep -v '^ *+' conftest.er1 >conftest.err
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } && {
21321 test -z "$ac_c_werror_flag" ||
21322 test ! -s conftest.err
21323 } && test -s conftest.$ac_objext; then
21324 ac_lo=$ac_mid; break
21326 echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21329 ac_hi=`expr '(' $ac_mid ')' - 1`
21330 if test $ac_mid -le $ac_hi; then
21334 ac_mid=`expr 2 '*' $ac_mid`
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340 echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350 # Binary search between lo and hi bounds.
21351 while test "x$ac_lo" != "x$ac_hi"; do
21352 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21353 cat >conftest.$ac_ext <<_ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359 #include <stddef.h>
21363 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_compile") 2>conftest.er1
21379 grep -v '^ *+' conftest.er1 >conftest.err
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } && {
21384 test -z "$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21386 } && test -s conftest.$ac_objext; then
21389 echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 ac_lo=`expr '(' $ac_mid ')' + 1`
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 ?*) res_lo=$ac_lo;;
21402 cat >conftest.$ac_ext <<_ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 #include <stddef.h>
21409 static long int longval () { return ~(size_t)0 % 10; }
21410 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21412 #include <stdlib.h>
21417 FILE *f = fopen ("conftest.val", "w");
21420 if ((~(size_t)0 % 10) < 0)
21422 long int i = longval ();
21423 if (i != (~(size_t)0 % 10))
21425 fprintf (f, "%ld\n", i);
21429 unsigned long int i = ulongval ();
21430 if (i != (~(size_t)0 % 10))
21432 fprintf (f, "%lu\n", i);
21434 return ferror (f) || fclose (f) != 0;
21440 rm -f conftest$ac_exeext
21441 if { (ac_try="$ac_link"
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_link") 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21451 { (case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_try") 2>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; }; then
21460 res_lo=`cat conftest.val`
21462 echo "$as_me: program exited with status $ac_status" >&5
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ( exit $ac_status )
21469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21473 if test "$cross_compiling" = yes; then
21474 # Depending upon the size, compute the lo and hi bounds.
21475 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 #include <stddef.h>
21485 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21492 rm -f conftest.$ac_objext
21493 if { (ac_try="$ac_compile"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_compile") 2>conftest.er1
21501 grep -v '^ *+' conftest.er1 >conftest.err
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } && {
21506 test -z "$ac_c_werror_flag" ||
21507 test ! -s conftest.err
21508 } && test -s conftest.$ac_objext; then
21511 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 #include <stddef.h>
21521 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21528 rm -f conftest.$ac_objext
21529 if { (ac_try="$ac_compile"
21530 case "(($ac_try" in
21531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532 *) ac_try_echo=$ac_try;;
21534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21535 (eval "$ac_compile") 2>conftest.er1
21537 grep -v '^ *+' conftest.er1 >conftest.err
21539 cat conftest.err >&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } && {
21542 test -z "$ac_c_werror_flag" ||
21543 test ! -s conftest.err
21544 } && test -s conftest.$ac_objext; then
21545 ac_hi=$ac_mid; break
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21550 ac_lo=`expr $ac_mid + 1`
21551 if test $ac_lo -le $ac_mid; then
21555 ac_mid=`expr 2 '*' $ac_mid + 1`
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 cat >conftest.$ac_ext <<_ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 #include <stddef.h>
21574 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21581 rm -f conftest.$ac_objext
21582 if { (ac_try="$ac_compile"
21583 case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_compile") 2>conftest.er1
21590 grep -v '^ *+' conftest.er1 >conftest.err
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } && {
21595 test -z "$ac_c_werror_flag" ||
21596 test ! -s conftest.err
21597 } && test -s conftest.$ac_objext; then
21600 cat >conftest.$ac_ext <<_ACEOF
21603 cat confdefs.h >>conftest.$ac_ext
21604 cat >>conftest.$ac_ext <<_ACEOF
21605 /* end confdefs.h. */
21606 #include <stddef.h>
21610 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21617 rm -f conftest.$ac_objext
21618 if { (ac_try="$ac_compile"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_compile") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && {
21631 test -z "$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 } && test -s conftest.$ac_objext; then
21634 ac_lo=$ac_mid; break
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 ac_hi=`expr '(' $ac_mid ')' - 1`
21640 if test $ac_mid -le $ac_hi; then
21644 ac_mid=`expr 2 '*' $ac_mid`
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 # Binary search between lo and hi bounds.
21661 while test "x$ac_lo" != "x$ac_hi"; do
21662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21663 cat >conftest.$ac_ext <<_ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21669 #include <stddef.h>
21673 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21680 rm -f conftest.$ac_objext
21681 if { (ac_try="$ac_compile"
21682 case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_compile") 2>conftest.er1
21689 grep -v '^ *+' conftest.er1 >conftest.err
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } && {
21694 test -z "$ac_c_werror_flag" ||
21695 test ! -s conftest.err
21696 } && test -s conftest.$ac_objext; then
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_lo=`expr '(' $ac_mid ')' + 1`
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21708 ?*) fits_in_uint=$ac_lo;;
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 #include <stddef.h>
21719 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21720 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21722 #include <stdlib.h>
21727 FILE *f = fopen ("conftest.val", "w");
21730 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21732 long int i = longval ();
21733 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21735 fprintf (f, "%ld\n", i);
21739 unsigned long int i = ulongval ();
21740 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21742 fprintf (f, "%lu\n", i);
21744 return ferror (f) || fclose (f) != 0;
21750 rm -f conftest$ac_exeext
21751 if { (ac_try="$ac_link"
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_link") 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21761 { (case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_try") 2>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770 fits_in_uint=`cat conftest.val`
21772 echo "$as_me: program exited with status $ac_status" >&5
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21776 ( exit $ac_status )
21779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21783 if test "$fits_in_uint" = 1; then
21784 cat >conftest.$ac_ext <<_ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <stddef.h>
21792 extern unsigned long foo;
21802 rm -f conftest.$ac_objext
21803 if { (ac_try="$ac_compile"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809 (eval "$ac_compile") 2>conftest.er1
21811 grep -v '^ *+' conftest.er1 >conftest.err
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } && {
21816 test -z "$ac_c_werror_flag" ||
21817 test ! -s conftest.err
21818 } && test -s conftest.$ac_objext; then
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829 if test -z "$result"; then
21830 if test "$fits_in_uint" = 1; then
21831 result="$res_hi$res_lo"U
21833 result="$res_hi$res_lo"UL
21836 result='~(size_t)0'
21839 { echo "$as_me:$LINENO: result: $result" >&5
21840 echo "${ECHO_T}$result" >&6; }
21841 if test "$result" != yes; then
21843 cat >>confdefs.h <<_ACEOF
21844 #define SIZE_MAX $result
21853 for ac_header in stdint.h
21855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 ac_res=`eval echo '${'$as_ac_Header'}'`
21863 { echo "$as_me:$LINENO: result: $ac_res" >&5
21864 echo "${ECHO_T}$ac_res" >&6; }
21866 # Is the header compilable?
21867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21875 $ac_includes_default
21876 #include <$ac_header>
21878 rm -f conftest.$ac_objext
21879 if { (ac_try="$ac_compile"
21880 case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885 (eval "$ac_compile") 2>conftest.er1
21887 grep -v '^ *+' conftest.er1 >conftest.err
21889 cat conftest.err >&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } && {
21892 test -z "$ac_c_werror_flag" ||
21893 test ! -s conftest.err
21894 } && test -s conftest.$ac_objext; then
21895 ac_header_compiler=yes
21897 echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21900 ac_header_compiler=no
21903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21905 echo "${ECHO_T}$ac_header_compiler" >&6; }
21907 # Is the header present?
21908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21910 cat >conftest.$ac_ext <<_ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 #include <$ac_header>
21918 if { (ac_try="$ac_cpp conftest.$ac_ext"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } >/dev/null && {
21931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21934 ac_header_preproc=yes
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 ac_header_preproc=no
21942 rm -f conftest.err conftest.$ac_ext
21943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21944 echo "${ECHO_T}$ac_header_preproc" >&6; }
21946 # So? What about this header?
21947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21953 ac_header_preproc=yes
21956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21974 echo $ECHO_N "(cached) $ECHO_C" >&6
21976 eval "$as_ac_Header=\$ac_header_preproc"
21978 ac_res=`eval echo '${'$as_ac_Header'}'`
21979 { echo "$as_me:$LINENO: result: $ac_res" >&5
21980 echo "${ECHO_T}$ac_res" >&6; }
21983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21984 cat >>confdefs.h <<_ACEOF
21985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21999 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22000 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
22001 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 cat >conftest.$ac_ext <<_ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 $ac_includes_default
22011 typedef ptrdiff_t ac__type_new_;
22015 if ((ac__type_new_ *) 0)
22017 if (sizeof (ac__type_new_))
22023 rm -f conftest.$ac_objext
22024 if { (ac_try="$ac_compile"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_compile") 2>conftest.er1
22032 grep -v '^ *+' conftest.er1 >conftest.err
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } && {
22037 test -z "$ac_c_werror_flag" ||
22038 test ! -s conftest.err
22039 } && test -s conftest.$ac_objext; then
22040 ac_cv_type_ptrdiff_t=yes
22042 echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22045 ac_cv_type_ptrdiff_t=no
22048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22050 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22051 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22052 if test $ac_cv_type_ptrdiff_t = yes; then
22056 cat >>confdefs.h <<\_ACEOF
22057 #define ptrdiff_t long
22073 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22074 stdlib.h string.h unistd.h sys/param.h
22076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 ac_res=`eval echo '${'$as_ac_Header'}'`
22084 { echo "$as_me:$LINENO: result: $ac_res" >&5
22085 echo "${ECHO_T}$ac_res" >&6; }
22087 # Is the header compilable?
22088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 $ac_includes_default
22097 #include <$ac_header>
22099 rm -f conftest.$ac_objext
22100 if { (ac_try="$ac_compile"
22101 case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106 (eval "$ac_compile") 2>conftest.er1
22108 grep -v '^ *+' conftest.er1 >conftest.err
22110 cat conftest.err >&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } && {
22113 test -z "$ac_c_werror_flag" ||
22114 test ! -s conftest.err
22115 } && test -s conftest.$ac_objext; then
22116 ac_header_compiler=yes
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22121 ac_header_compiler=no
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22126 echo "${ECHO_T}$ac_header_compiler" >&6; }
22128 # Is the header present?
22129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22131 cat >conftest.$ac_ext <<_ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h. */
22137 #include <$ac_header>
22139 if { (ac_try="$ac_cpp conftest.$ac_ext"
22140 case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22147 grep -v '^ *+' conftest.er1 >conftest.err
22149 cat conftest.err >&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } >/dev/null && {
22152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22153 test ! -s conftest.err
22155 ac_header_preproc=yes
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22160 ac_header_preproc=no
22163 rm -f conftest.err conftest.$ac_ext
22164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22165 echo "${ECHO_T}$ac_header_preproc" >&6; }
22167 # So? What about this header?
22168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22174 ac_header_preproc=yes
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 eval "$as_ac_Header=\$ac_header_preproc"
22199 ac_res=`eval echo '${'$as_ac_Header'}'`
22200 { echo "$as_me:$LINENO: result: $ac_res" >&5
22201 echo "${ECHO_T}$ac_res" >&6; }
22204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22205 cat >>confdefs.h <<_ACEOF
22206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22236 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22237 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22238 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 cat >conftest.$ac_ext <<_ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22255 #define $ac_func innocuous_$ac_func
22257 /* System header to define __stub macros and hopefully few prototypes,
22258 which can conflict with char $ac_func (); below.
22259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22260 <limits.h> exists even on freestanding compilers. */
22263 # include <limits.h>
22265 # include <assert.h>
22270 /* Override any GCC internal prototype to avoid an error.
22271 Use char because int might match the return type of a GCC
22272 builtin and then its argument prototype would still apply. */
22277 /* The GNU C library defines this for functions which it implements
22278 to always fail with ENOSYS. Some functions are actually named
22279 something starting with __ and the normal name is an alias. */
22280 #if defined __stub_$ac_func || defined __stub___$ac_func
22287 return $ac_func ();
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299 (eval "$ac_link") 2>conftest.er1
22301 grep -v '^ *+' conftest.er1 >conftest.err
22303 cat conftest.err >&5
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } && {
22306 test -z "$ac_c_werror_flag" ||
22307 test ! -s conftest.err
22308 } && test -s conftest$ac_exeext &&
22309 $as_test_x conftest$ac_exeext; then
22310 eval "$as_ac_var=yes"
22312 echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22315 eval "$as_ac_var=no"
22318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22319 conftest$ac_exeext conftest.$ac_ext
22321 ac_res=`eval echo '${'$as_ac_var'}'`
22322 { echo "$as_me:$LINENO: result: $ac_res" >&5
22323 echo "${ECHO_T}$ac_res" >&6; }
22324 if test `eval echo '${'$as_ac_var'}'` = yes; then
22325 cat >>confdefs.h <<_ACEOF
22326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22334 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22335 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22336 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 cat >conftest.$ac_ext <<_ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22351 char *p = (char *) _snprintf;
22358 rm -f conftest.$ac_objext
22359 if { (ac_try="$ac_compile"
22360 case "(($ac_try" in
22361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362 *) ac_try_echo=$ac_try;;
22364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22365 (eval "$ac_compile") 2>conftest.er1
22367 grep -v '^ *+' conftest.er1 >conftest.err
22369 cat conftest.err >&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } && {
22372 test -z "$ac_c_werror_flag" ||
22373 test ! -s conftest.err
22374 } && test -s conftest.$ac_objext; then
22375 ac_cv_have_decl__snprintf=yes
22377 echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22380 ac_cv_have_decl__snprintf=no
22383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22385 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22386 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22387 if test $ac_cv_have_decl__snprintf = yes; then
22393 cat >>confdefs.h <<_ACEOF
22394 #define HAVE_DECL__SNPRINTF $gt_value
22399 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22400 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22401 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 cat >conftest.$ac_ext <<_ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22416 char *p = (char *) _snwprintf;
22423 rm -f conftest.$ac_objext
22424 if { (ac_try="$ac_compile"
22425 case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430 (eval "$ac_compile") 2>conftest.er1
22432 grep -v '^ *+' conftest.er1 >conftest.err
22434 cat conftest.err >&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } && {
22437 test -z "$ac_c_werror_flag" ||
22438 test ! -s conftest.err
22439 } && test -s conftest.$ac_objext; then
22440 ac_cv_have_decl__snwprintf=yes
22442 echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 ac_cv_have_decl__snwprintf=no
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22451 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22452 if test $ac_cv_have_decl__snwprintf = yes; then
22458 cat >>confdefs.h <<_ACEOF
22459 #define HAVE_DECL__SNWPRINTF $gt_value
22465 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22466 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22467 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22468 echo $ECHO_N "(cached) $ECHO_C" >&6
22470 cat >conftest.$ac_ext <<_ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22481 #ifndef feof_unlocked
22482 char *p = (char *) feof_unlocked;
22489 rm -f conftest.$ac_objext
22490 if { (ac_try="$ac_compile"
22491 case "(($ac_try" in
22492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493 *) ac_try_echo=$ac_try;;
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496 (eval "$ac_compile") 2>conftest.er1
22498 grep -v '^ *+' conftest.er1 >conftest.err
22500 cat conftest.err >&5
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); } && {
22503 test -z "$ac_c_werror_flag" ||
22504 test ! -s conftest.err
22505 } && test -s conftest.$ac_objext; then
22506 ac_cv_have_decl_feof_unlocked=yes
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ac_cv_have_decl_feof_unlocked=no
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22516 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22517 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22518 if test $ac_cv_have_decl_feof_unlocked = yes; then
22524 cat >>confdefs.h <<_ACEOF
22525 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22530 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22531 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22532 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 cat >conftest.$ac_ext <<_ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h. */
22546 #ifndef fgets_unlocked
22547 char *p = (char *) fgets_unlocked;
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest.$ac_objext; then
22571 ac_cv_have_decl_fgets_unlocked=yes
22573 echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22576 ac_cv_have_decl_fgets_unlocked=no
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22582 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22583 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22589 cat >>confdefs.h <<_ACEOF
22590 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22595 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22596 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22597 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22600 cat >conftest.$ac_ext <<_ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h. */
22611 #ifndef getc_unlocked
22612 char *p = (char *) getc_unlocked;
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_compile") 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest.$ac_objext; then
22636 ac_cv_have_decl_getc_unlocked=yes
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 ac_cv_have_decl_getc_unlocked=no
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22647 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22648 if test $ac_cv_have_decl_getc_unlocked = yes; then
22654 cat >>confdefs.h <<_ACEOF
22655 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22660 case $gt_cv_func_printf_posix in
22661 *yes) HAVE_POSIX_PRINTF=1 ;;
22662 *) HAVE_POSIX_PRINTF=0 ;;
22665 if test "$ac_cv_func_asprintf" = yes; then
22671 if test "$ac_cv_func_snprintf" = yes; then
22677 if test "$ac_cv_func_wprintf" = yes; then
22689 am_save_CPPFLAGS="$CPPFLAGS"
22691 for element in $INCICONV; do
22693 for x in $CPPFLAGS; do
22695 acl_save_prefix="$prefix"
22696 prefix="$acl_final_prefix"
22697 acl_save_exec_prefix="$exec_prefix"
22698 exec_prefix="$acl_final_exec_prefix"
22700 exec_prefix="$acl_save_exec_prefix"
22701 prefix="$acl_save_prefix"
22703 if test "X$x" = "X$element"; then
22708 if test -z "$haveit"; then
22709 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22714 { echo "$as_me:$LINENO: checking for iconv" >&5
22715 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22716 if test "${am_cv_func_iconv+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 am_cv_func_iconv="no, consider installing GNU libiconv"
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 #include <stdlib.h>
22733 iconv_t cd = iconv_open("","");
22734 iconv(cd,NULL,NULL,NULL,NULL);
22740 rm -f conftest.$ac_objext conftest$ac_exeext
22741 if { (ac_try="$ac_link"
22742 case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_link") 2>conftest.er1
22749 grep -v '^ *+' conftest.er1 >conftest.err
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } && {
22754 test -z "$ac_c_werror_flag" ||
22755 test ! -s conftest.err
22756 } && test -s conftest$ac_exeext &&
22757 $as_test_x conftest$ac_exeext; then
22758 am_cv_func_iconv=yes
22760 echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22767 conftest$ac_exeext conftest.$ac_ext
22768 if test "$am_cv_func_iconv" != yes; then
22769 am_save_LIBS="$LIBS"
22770 LIBS="$LIBS $LIBICONV"
22771 cat >conftest.$ac_ext <<_ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 #include <stdlib.h>
22782 iconv_t cd = iconv_open("","");
22783 iconv(cd,NULL,NULL,NULL,NULL);
22789 rm -f conftest.$ac_objext conftest$ac_exeext
22790 if { (ac_try="$ac_link"
22791 case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796 (eval "$ac_link") 2>conftest.er1
22798 grep -v '^ *+' conftest.er1 >conftest.err
22800 cat conftest.err >&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && {
22803 test -z "$ac_c_werror_flag" ||
22804 test ! -s conftest.err
22805 } && test -s conftest$ac_exeext &&
22806 $as_test_x conftest$ac_exeext; then
22807 am_cv_lib_iconv=yes
22808 am_cv_func_iconv=yes
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22817 conftest$ac_exeext conftest.$ac_ext
22818 LIBS="$am_save_LIBS"
22822 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22823 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22824 if test "$am_cv_func_iconv" = yes; then
22826 cat >>confdefs.h <<\_ACEOF
22827 #define HAVE_ICONV 1
22831 if test "$am_cv_lib_iconv" = yes; then
22832 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22833 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22834 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22835 echo "${ECHO_T}$LIBICONV" >&6; }
22837 CPPFLAGS="$am_save_CPPFLAGS"
22844 if test "$am_cv_func_iconv" = yes; then
22845 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22846 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22847 if test "${am_cv_proto_iconv+set}" = set; then
22848 echo $ECHO_N "(cached) $ECHO_C" >&6
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22858 #include <stdlib.h>
22864 #if defined(__STDC__) || defined(__cplusplus)
22865 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_compile") 2>conftest.er1
22887 grep -v '^ *+' conftest.er1 >conftest.err
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && {
22892 test -z "$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22894 } && test -s conftest.$ac_objext; then
22895 am_cv_proto_iconv_arg1=""
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 am_cv_proto_iconv_arg1="const"
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 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);"
22907 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22908 { echo "$as_me:$LINENO: result: ${ac_t:-
22909 }$am_cv_proto_iconv" >&5
22910 echo "${ECHO_T}${ac_t:-
22911 }$am_cv_proto_iconv" >&6; }
22913 cat >>confdefs.h <<_ACEOF
22914 #define ICONV_CONST $am_cv_proto_iconv_arg1
22920 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22921 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22922 if test "${am_cv_langinfo_codeset+set}" = set; then
22923 echo $ECHO_N "(cached) $ECHO_C" >&6
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 #include <langinfo.h>
22935 char* cs = nl_langinfo(CODESET);
22940 rm -f conftest.$ac_objext conftest$ac_exeext
22941 if { (ac_try="$ac_link"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_link") 2>conftest.er1
22949 grep -v '^ *+' conftest.er1 >conftest.err
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } && {
22954 test -z "$ac_c_werror_flag" ||
22955 test ! -s conftest.err
22956 } && test -s conftest$ac_exeext &&
22957 $as_test_x conftest$ac_exeext; then
22958 am_cv_langinfo_codeset=yes
22960 echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22963 am_cv_langinfo_codeset=no
22966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22967 conftest$ac_exeext conftest.$ac_ext
22970 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22971 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22972 if test $am_cv_langinfo_codeset = yes; then
22974 cat >>confdefs.h <<\_ACEOF
22975 #define HAVE_LANGINFO_CODESET 1
22980 if test $ac_cv_header_locale_h = yes; then
22982 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22983 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22984 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22985 echo $ECHO_N "(cached) $ECHO_C" >&6
22987 cat >conftest.$ac_ext <<_ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h. */
22993 #include <locale.h>
23002 rm -f conftest.$ac_objext conftest$ac_exeext
23003 if { (ac_try="$ac_link"
23004 case "(($ac_try" in
23005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23006 *) ac_try_echo=$ac_try;;
23008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23009 (eval "$ac_link") 2>conftest.er1
23011 grep -v '^ *+' conftest.er1 >conftest.err
23013 cat conftest.err >&5
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } && {
23016 test -z "$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23018 } && test -s conftest$ac_exeext &&
23019 $as_test_x conftest$ac_exeext; then
23020 gt_cv_val_LC_MESSAGES=yes
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23025 gt_cv_val_LC_MESSAGES=no
23028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23029 conftest$ac_exeext conftest.$ac_ext
23031 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23032 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23033 if test $gt_cv_val_LC_MESSAGES = yes; then
23035 cat >>confdefs.h <<\_ACEOF
23036 #define HAVE_LC_MESSAGES 1
23043 if test -n "$INTL_MACOSX_LIBS"; then
23044 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23047 for ac_prog in bison
23049 # Extract the first word of "$ac_prog", so it can be a program name with args.
23050 set dummy $ac_prog; ac_word=$2
23051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23053 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23056 if test -n "$INTLBISON"; then
23057 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23060 for as_dir in $PATH
23063 test -z "$as_dir" && as_dir=.
23064 for ac_exec_ext in '' $ac_executable_extensions; do
23065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23066 ac_cv_prog_INTLBISON="$ac_prog"
23067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23076 INTLBISON=$ac_cv_prog_INTLBISON
23077 if test -n "$INTLBISON"; then
23078 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23079 echo "${ECHO_T}$INTLBISON" >&6; }
23081 { echo "$as_me:$LINENO: result: no" >&5
23082 echo "${ECHO_T}no" >&6; }
23086 test -n "$INTLBISON" && break
23089 if test -z "$INTLBISON"; then
23092 { echo "$as_me:$LINENO: checking version of bison" >&5
23093 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23094 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23095 case $ac_prog_version in
23096 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23097 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23098 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23099 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23101 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23102 echo "${ECHO_T}$ac_prog_version" >&6; }
23104 if test $ac_verc_fail = yes; then
23123 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23124 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23125 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23126 echo $ECHO_N "(cached) $ECHO_C" >&6
23128 gt_save_CPPFLAGS="$CPPFLAGS"
23129 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23130 gt_save_LIBS="$LIBS"
23131 LIBS="$LIBS -framework CoreFoundation"
23132 cat >conftest.$ac_ext <<_ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h. */
23138 #include <CFPreferences.h>
23142 CFPreferencesCopyAppValue(NULL, NULL)
23147 rm -f conftest.$ac_objext conftest$ac_exeext
23148 if { (ac_try="$ac_link"
23149 case "(($ac_try" in
23150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151 *) ac_try_echo=$ac_try;;
23153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23154 (eval "$ac_link") 2>conftest.er1
23156 grep -v '^ *+' conftest.er1 >conftest.err
23158 cat conftest.err >&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } && {
23161 test -z "$ac_c_werror_flag" ||
23162 test ! -s conftest.err
23163 } && test -s conftest$ac_exeext &&
23164 $as_test_x conftest$ac_exeext; then
23165 gt_cv_func_CFPreferencesCopyAppValue=yes
23167 echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23170 gt_cv_func_CFPreferencesCopyAppValue=no
23173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23174 conftest$ac_exeext conftest.$ac_ext
23175 CPPFLAGS="$gt_save_CPPFLAGS"
23176 LIBS="$gt_save_LIBS"
23178 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23179 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23180 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23182 cat >>confdefs.h <<\_ACEOF
23183 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23187 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23188 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23189 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23192 gt_save_CPPFLAGS="$CPPFLAGS"
23193 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23194 gt_save_LIBS="$LIBS"
23195 LIBS="$LIBS -framework CoreFoundation"
23196 cat >conftest.$ac_ext <<_ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202 #include <CFLocale.h>
23206 CFLocaleCopyCurrent();
23211 rm -f conftest.$ac_objext conftest$ac_exeext
23212 if { (ac_try="$ac_link"
23213 case "(($ac_try" in
23214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215 *) ac_try_echo=$ac_try;;
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218 (eval "$ac_link") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest$ac_exeext &&
23228 $as_test_x conftest$ac_exeext; then
23229 gt_cv_func_CFLocaleCopyCurrent=yes
23231 echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23234 gt_cv_func_CFLocaleCopyCurrent=no
23237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23238 conftest$ac_exeext conftest.$ac_ext
23239 CPPFLAGS="$gt_save_CPPFLAGS"
23240 LIBS="$gt_save_LIBS"
23242 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23243 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23244 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23246 cat >>confdefs.h <<\_ACEOF
23247 #define HAVE_CFLOCALECOPYCURRENT 1
23252 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23253 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23259 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23260 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23261 # Check whether --enable-nls was given.
23262 if test "${enable_nls+set}" = set; then
23263 enableval=$enable_nls; USE_NLS=$enableval
23268 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23269 echo "${ECHO_T}$USE_NLS" >&6; }
23274 BUILD_INCLUDED_LIBINTL=no
23275 USE_INCLUDED_LIBINTL=no
23281 if test "$USE_NLS" = "yes"; then
23282 gt_use_preinstalled_gnugettext=no
23284 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23285 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23287 # Check whether --with-included-gettext was given.
23288 if test "${with_included_gettext+set}" = set; then
23289 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23291 nls_cv_force_use_gnu_gettext=no
23294 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23295 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23297 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23298 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23305 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23306 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23307 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23308 echo $ECHO_N "(cached) $ECHO_C" >&6
23310 cat >conftest.$ac_ext <<_ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23316 #include <libintl.h>
23317 extern int _nl_msg_cat_cntr;
23318 extern int *_nl_domain_bindings;
23322 bindtextdomain ("", "");
23323 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23328 rm -f conftest.$ac_objext conftest$ac_exeext
23329 if { (ac_try="$ac_link"
23330 case "(($ac_try" in
23331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332 *) ac_try_echo=$ac_try;;
23334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23335 (eval "$ac_link") 2>conftest.er1
23337 grep -v '^ *+' conftest.er1 >conftest.err
23339 cat conftest.err >&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); } && {
23342 test -z "$ac_c_werror_flag" ||
23343 test ! -s conftest.err
23344 } && test -s conftest$ac_exeext &&
23345 $as_test_x conftest$ac_exeext; then
23346 gt_cv_func_gnugettext1_libc=yes
23348 echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23351 gt_cv_func_gnugettext1_libc=no
23354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23355 conftest$ac_exeext conftest.$ac_ext
23357 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23358 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23360 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23366 acl_save_prefix="$prefix"
23367 prefix="$acl_final_prefix"
23368 acl_save_exec_prefix="$exec_prefix"
23369 exec_prefix="$acl_final_exec_prefix"
23371 eval additional_includedir=\"$includedir\"
23372 eval additional_libdir=\"$libdir\"
23374 exec_prefix="$acl_save_exec_prefix"
23375 prefix="$acl_save_prefix"
23378 # Check whether --with-libintl-prefix was given.
23379 if test "${with_libintl_prefix+set}" = set; then
23380 withval=$with_libintl_prefix;
23381 if test "X$withval" = "Xno"; then
23384 if test "X$withval" = "X"; then
23386 acl_save_prefix="$prefix"
23387 prefix="$acl_final_prefix"
23388 acl_save_exec_prefix="$exec_prefix"
23389 exec_prefix="$acl_final_exec_prefix"
23391 eval additional_includedir=\"$includedir\"
23392 eval additional_libdir=\"$libdir\"
23394 exec_prefix="$acl_save_exec_prefix"
23395 prefix="$acl_save_prefix"
23398 additional_includedir="$withval/include"
23399 additional_libdir="$withval/lib"
23410 names_already_handled=
23411 names_next_round='intl '
23412 while test -n "$names_next_round"; do
23413 names_this_round="$names_next_round"
23415 for name in $names_this_round; do
23417 for n in $names_already_handled; do
23418 if test "$n" = "$name"; then
23419 already_handled=yes
23423 if test -z "$already_handled"; then
23424 names_already_handled="$names_already_handled $name"
23425 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23426 eval value=\"\$HAVE_LIB$uppername\"
23427 if test -n "$value"; then
23428 if test "$value" = yes; then
23429 eval value=\"\$LIB$uppername\"
23430 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23431 eval value=\"\$LTLIB$uppername\"
23432 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23441 if test $use_additional = yes; then
23442 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23443 found_dir="$additional_libdir"
23444 found_so="$additional_libdir/lib$name.$shlibext"
23445 if test -f "$additional_libdir/lib$name.la"; then
23446 found_la="$additional_libdir/lib$name.la"
23449 if test -f "$additional_libdir/lib$name.$libext"; then
23450 found_dir="$additional_libdir"
23451 found_a="$additional_libdir/lib$name.$libext"
23452 if test -f "$additional_libdir/lib$name.la"; then
23453 found_la="$additional_libdir/lib$name.la"
23458 if test "X$found_dir" = "X"; then
23459 for x in $LDFLAGS $LTLIBINTL; do
23461 acl_save_prefix="$prefix"
23462 prefix="$acl_final_prefix"
23463 acl_save_exec_prefix="$exec_prefix"
23464 exec_prefix="$acl_final_exec_prefix"
23466 exec_prefix="$acl_save_exec_prefix"
23467 prefix="$acl_save_prefix"
23471 dir=`echo "X$x" | sed -e 's/^X-L//'`
23472 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23474 found_so="$dir/lib$name.$shlibext"
23475 if test -f "$dir/lib$name.la"; then
23476 found_la="$dir/lib$name.la"
23479 if test -f "$dir/lib$name.$libext"; then
23481 found_a="$dir/lib$name.$libext"
23482 if test -f "$dir/lib$name.la"; then
23483 found_la="$dir/lib$name.la"
23489 if test "X$found_dir" != "X"; then
23494 if test "X$found_dir" != "X"; then
23495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23496 if test "X$found_so" != "X"; then
23497 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23498 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23501 for x in $ltrpathdirs; do
23502 if test "X$x" = "X$found_dir"; then
23507 if test -z "$haveit"; then
23508 ltrpathdirs="$ltrpathdirs $found_dir"
23510 if test "$hardcode_direct" = yes; then
23511 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23513 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23514 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23516 for x in $rpathdirs; do
23517 if test "X$x" = "X$found_dir"; then
23522 if test -z "$haveit"; then
23523 rpathdirs="$rpathdirs $found_dir"
23527 for x in $LDFLAGS $LIBINTL; do
23529 acl_save_prefix="$prefix"
23530 prefix="$acl_final_prefix"
23531 acl_save_exec_prefix="$exec_prefix"
23532 exec_prefix="$acl_final_exec_prefix"
23534 exec_prefix="$acl_save_exec_prefix"
23535 prefix="$acl_save_prefix"
23537 if test "X$x" = "X-L$found_dir"; then
23542 if test -z "$haveit"; then
23543 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23545 if test "$hardcode_minus_L" != no; then
23546 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23548 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23554 if test "X$found_a" != "X"; then
23555 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23560 additional_includedir=
23561 case "$found_dir" in
23563 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23564 additional_includedir="$basedir/include"
23567 if test "X$additional_includedir" != "X"; then
23568 if test "X$additional_includedir" != "X/usr/include"; then
23570 if test "X$additional_includedir" = "X/usr/local/include"; then
23571 if test -n "$GCC"; then
23573 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23577 if test -z "$haveit"; then
23578 for x in $CPPFLAGS $INCINTL; do
23580 acl_save_prefix="$prefix"
23581 prefix="$acl_final_prefix"
23582 acl_save_exec_prefix="$exec_prefix"
23583 exec_prefix="$acl_final_exec_prefix"
23585 exec_prefix="$acl_save_exec_prefix"
23586 prefix="$acl_save_prefix"
23588 if test "X$x" = "X-I$additional_includedir"; then
23593 if test -z "$haveit"; then
23594 if test -d "$additional_includedir"; then
23595 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23601 if test -n "$found_la"; then
23602 save_libdir="$libdir"
23603 case "$found_la" in
23604 */* | *\\*) . "$found_la" ;;
23605 *) . "./$found_la" ;;
23607 libdir="$save_libdir"
23608 for dep in $dependency_libs; do
23611 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23612 if test "X$additional_libdir" != "X/usr/lib"; then
23614 if test "X$additional_libdir" = "X/usr/local/lib"; then
23615 if test -n "$GCC"; then
23617 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23621 if test -z "$haveit"; then
23623 for x in $LDFLAGS $LIBINTL; do
23625 acl_save_prefix="$prefix"
23626 prefix="$acl_final_prefix"
23627 acl_save_exec_prefix="$exec_prefix"
23628 exec_prefix="$acl_final_exec_prefix"
23630 exec_prefix="$acl_save_exec_prefix"
23631 prefix="$acl_save_prefix"
23633 if test "X$x" = "X-L$additional_libdir"; then
23638 if test -z "$haveit"; then
23639 if test -d "$additional_libdir"; then
23640 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23644 for x in $LDFLAGS $LTLIBINTL; do
23646 acl_save_prefix="$prefix"
23647 prefix="$acl_final_prefix"
23648 acl_save_exec_prefix="$exec_prefix"
23649 exec_prefix="$acl_final_exec_prefix"
23651 exec_prefix="$acl_save_exec_prefix"
23652 prefix="$acl_save_prefix"
23654 if test "X$x" = "X-L$additional_libdir"; then
23659 if test -z "$haveit"; then
23660 if test -d "$additional_libdir"; then
23661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23668 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23669 if test "$enable_rpath" != no; then
23671 for x in $rpathdirs; do
23672 if test "X$x" = "X$dir"; then
23677 if test -z "$haveit"; then
23678 rpathdirs="$rpathdirs $dir"
23681 for x in $ltrpathdirs; do
23682 if test "X$x" = "X$dir"; then
23687 if test -z "$haveit"; then
23688 ltrpathdirs="$ltrpathdirs $dir"
23693 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23696 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23699 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23700 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23706 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23707 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23713 if test "X$rpathdirs" != "X"; then
23714 if test -n "$hardcode_libdir_separator"; then
23716 for found_dir in $rpathdirs; do
23717 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23719 acl_save_libdir="$libdir"
23721 eval flag=\"$hardcode_libdir_flag_spec\"
23722 libdir="$acl_save_libdir"
23723 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23725 for found_dir in $rpathdirs; do
23726 acl_save_libdir="$libdir"
23727 libdir="$found_dir"
23728 eval flag=\"$hardcode_libdir_flag_spec\"
23729 libdir="$acl_save_libdir"
23730 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23734 if test "X$ltrpathdirs" != "X"; then
23735 for found_dir in $ltrpathdirs; do
23736 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23740 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23741 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23742 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23743 echo $ECHO_N "(cached) $ECHO_C" >&6
23745 gt_save_CPPFLAGS="$CPPFLAGS"
23746 CPPFLAGS="$CPPFLAGS $INCINTL"
23747 gt_save_LIBS="$LIBS"
23748 LIBS="$LIBS $LIBINTL"
23749 cat >conftest.$ac_ext <<_ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h. */
23755 #include <libintl.h>
23756 extern int _nl_msg_cat_cntr;
23761 const char *_nl_expand_alias (const char *);
23765 bindtextdomain ("", "");
23766 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23771 rm -f conftest.$ac_objext conftest$ac_exeext
23772 if { (ac_try="$ac_link"
23773 case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_link") 2>conftest.er1
23780 grep -v '^ *+' conftest.er1 >conftest.err
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } && {
23785 test -z "$ac_c_werror_flag" ||
23786 test ! -s conftest.err
23787 } && test -s conftest$ac_exeext &&
23788 $as_test_x conftest$ac_exeext; then
23789 gt_cv_func_gnugettext1_libintl=yes
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23794 gt_cv_func_gnugettext1_libintl=no
23797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23798 conftest$ac_exeext conftest.$ac_ext
23799 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23800 LIBS="$LIBS $LIBICONV"
23801 cat >conftest.$ac_ext <<_ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h. */
23807 #include <libintl.h>
23808 extern int _nl_msg_cat_cntr;
23813 const char *_nl_expand_alias (const char *);
23817 bindtextdomain ("", "");
23818 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23823 rm -f conftest.$ac_objext conftest$ac_exeext
23824 if { (ac_try="$ac_link"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_link") 2>conftest.er1
23832 grep -v '^ *+' conftest.er1 >conftest.err
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } && {
23837 test -z "$ac_c_werror_flag" ||
23838 test ! -s conftest.err
23839 } && test -s conftest$ac_exeext &&
23840 $as_test_x conftest$ac_exeext; then
23841 LIBINTL="$LIBINTL $LIBICONV"
23842 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23843 gt_cv_func_gnugettext1_libintl=yes
23846 echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23853 conftest$ac_exeext conftest.$ac_ext
23855 CPPFLAGS="$gt_save_CPPFLAGS"
23856 LIBS="$gt_save_LIBS"
23858 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23859 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23862 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23863 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23864 && test "$PACKAGE" != gettext-runtime \
23865 && test "$PACKAGE" != gettext-tools; }; then
23866 gt_use_preinstalled_gnugettext=yes
23874 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23875 nls_cv_use_gnu_gettext=yes
23879 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23880 BUILD_INCLUDED_LIBINTL=yes
23881 USE_INCLUDED_LIBINTL=yes
23882 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23883 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23884 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23888 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23889 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23894 if test -n "$INTL_MACOSX_LIBS"; then
23895 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23896 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23897 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23898 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23902 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23903 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23905 cat >>confdefs.h <<\_ACEOF
23906 #define ENABLE_NLS 1
23914 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23915 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23916 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23917 echo "${ECHO_T}$USE_NLS" >&6; }
23918 if test "$USE_NLS" = "yes"; then
23919 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23920 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23921 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23922 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23923 gt_source="external libintl"
23928 gt_source="included intl directory"
23930 { echo "$as_me:$LINENO: result: $gt_source" >&5
23931 echo "${ECHO_T}$gt_source" >&6; }
23934 if test "$USE_NLS" = "yes"; then
23936 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23937 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23938 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23939 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23940 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23941 echo "${ECHO_T}$LIBINTL" >&6; }
23943 for element in $INCINTL; do
23945 for x in $CPPFLAGS; do
23947 acl_save_prefix="$prefix"
23948 prefix="$acl_final_prefix"
23949 acl_save_exec_prefix="$exec_prefix"
23950 exec_prefix="$acl_final_exec_prefix"
23952 exec_prefix="$acl_save_exec_prefix"
23953 prefix="$acl_save_prefix"
23955 if test "X$x" = "X$element"; then
23960 if test -z "$haveit"; then
23961 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23968 cat >>confdefs.h <<\_ACEOF
23969 #define HAVE_GETTEXT 1
23973 cat >>confdefs.h <<\_ACEOF
23974 #define HAVE_DCGETTEXT 1
23983 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23984 BUILD_INCLUDED_LIBINTL=yes
23991 nls_cv_header_intl=
23992 nls_cv_header_libgt=
24004 if test "$USE_INCLUDED_LIBINTL" = yes; then
24005 INTLOBJS="\$(GETTOBJS)"
24009 INTL_LIBTOOL_SUFFIX_PREFIX=
24013 INTLLIBS="$LIBINTL"
24025 support_postgresql=no
24028 support_smartalloc=yes
24029 support_readline=yes
24033 support_wx_console=no
24034 support_tray_monitor=no
24039 support_static_tools=no
24040 support_static_fd=no
24041 support_static_sd=no
24042 support_static_dir=no
24043 support_static_cons=no
24045 build_client_only=no
24054 # Check whether --enable-gnome was given.
24055 if test "${enable_gnome+set}" = set; then
24056 enableval=$enable_gnome;
24057 if test x$enableval = xyes; then
24066 if test x$support_gnome = xyes; then
24067 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24068 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24069 { (exit 1); exit 1; }; }
24070 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24071 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24072 { (exit 1); exit 1; }; }
24074 # AC_SUBST(GNOME_DIR)
24076 # Check whether --enable-bat was given.
24077 if test "${enable_bat+set}" = set; then
24078 enableval=$enable_bat;
24079 if test x$enableval = xyes; then
24081 cat >>confdefs.h <<\_ACEOF
24093 if test x$support_bat = xyes; then
24094 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24096 if test $pkg = 0; then
24097 BAT_DIR=src/qt-console
24099 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24100 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24101 { (exit 1); exit 1; }; }
24119 # Check whether --enable-bwx-console was given.
24120 if test "${enable_bwx_console+set}" = set; then
24121 enableval=$enable_bwx_console;
24122 if test x$enableval = xyes; then
24123 support_wx_console=yes
24131 if test x$support_wx_console = xyes; then
24132 abc=`$WXCONFIG $WXFLAGS --cppflags`
24134 if test $pkg = 0; then
24135 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24136 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24137 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24141 WX_DIR="src/wx-console"
24144 echo "wx-config program not found. bwx-console disabled."
24146 support_wx_console=no
24151 # Check whether --enable-tray-monitor was given.
24152 if test "${enable_tray_monitor+set}" = set; then
24153 enableval=$enable_tray_monitor;
24154 if test x$enableval = xyes; then
24155 support_tray_monitor=yes
24163 if test x$support_tray_monitor = xyes; then
24164 abc=`$PKGCONFIG --exists gtk+-2.0`
24166 if test $pkg = 0; then
24167 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24168 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24171 TRAY_MONITOR_DIR=src/tray-monitor
24172 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24174 if test $pkg = 0; then
24176 cat >>confdefs.h <<\_ACEOF
24177 #define HAVE_GTK_2_4 1
24185 # Check whether --enable-smartalloc was given.
24186 if test "${enable_smartalloc+set}" = set; then
24187 enableval=$enable_smartalloc;
24188 if test x$enableval = xno; then
24189 support_smartalloc=no
24196 if test x$support_smartalloc = xyes; then
24198 cat >>confdefs.h <<\_ACEOF
24199 #define SMARTALLOC 1
24204 # Check whether --enable-lockmgr was given.
24205 if test "${enable_lockmgr+set}" = set; then
24206 enableval=$enable_lockmgr;
24207 if test x$enableval = xyes; then
24208 support_lockmgr=yes
24215 if test x$support_lockmgr = xyes; then
24217 cat >>confdefs.h <<\_ACEOF
24218 #define _USE_LOCKMGR 1
24224 # Check whether --enable-static-tools was given.
24225 if test "${enable_static_tools+set}" = set; then
24226 enableval=$enable_static_tools;
24227 if test x$enableval = xyes; then
24228 if test x$use_libtool = xyes; then
24229 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24230 please rerun configure with --disable-libtool" >&5
24231 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24232 please rerun configure with --disable-libtool" >&2;}
24233 { (exit 1); exit 1; }; }
24235 support_static_tools=yes
24243 if test x$support_static_tools = xyes; then
24244 TTOOL_LDFLAGS="-static"
24248 # Check whether --enable-static-fd was given.
24249 if test "${enable_static_fd+set}" = set; then
24250 enableval=$enable_static_fd;
24251 if test x$enableval = xyes; then
24252 if test x$use_libtool = xyes; then
24253 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24254 please rerun configure with --disable-libtool" >&5
24255 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24256 please rerun configure with --disable-libtool" >&2;}
24257 { (exit 1); exit 1; }; }
24259 support_static_fd=yes
24267 if test x$support_static_fd = xyes; then
24268 STATIC_FD="static-bacula-fd"
24272 # Check whether --enable-static-sd was given.
24273 if test "${enable_static_sd+set}" = set; then
24274 enableval=$enable_static_sd;
24275 if test x$enableval = xyes; then
24276 if test x$use_libtool = xyes; then
24277 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24278 please rerun configure with --disable-libtool" >&5
24279 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24280 please rerun configure with --disable-libtool" >&2;}
24281 { (exit 1); exit 1; }; }
24283 support_static_sd=yes
24291 if test x$support_static_sd = xyes; then
24292 STATIC_SD="static-bacula-sd"
24296 # Check whether --enable-static-dir was given.
24297 if test "${enable_static_dir+set}" = set; then
24298 enableval=$enable_static_dir;
24299 if test x$enableval = xyes; then
24300 if test x$use_libtool = xyes; then
24301 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24302 please rerun configure with --disable-libtool" >&5
24303 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24304 please rerun configure with --disable-libtool" >&2;}
24305 { (exit 1); exit 1; }; }
24307 support_static_dir=yes
24315 if test x$support_static_dir = xyes; then
24316 STATIC_DIR="static-bacula-dir"
24320 # Check whether --enable-static-cons was given.
24321 if test "${enable_static_cons+set}" = set; then
24322 enableval=$enable_static_cons;
24323 if test x$enableval = xyes; then
24324 if test x$use_libtool = xyes; then
24325 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24326 please rerun configure with --disable-libtool" >&5
24327 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24328 please rerun configure with --disable-libtool" >&2;}
24329 { (exit 1); exit 1; }; }
24331 support_static_cons=yes
24341 if test x$support_static_cons = xyes; then
24342 STATIC_CONS="static-bconsole"
24343 STATIC_GNOME_CONS="static-bgnome-console"
24344 STATIC_WX_CONS="static-bwx-console"
24350 # Check whether --enable-client-only was given.
24351 if test "${enable_client_only+set}" = set; then
24352 enableval=$enable_client_only;
24353 if test x$enableval = xyes; then
24354 build_client_only=yes
24362 if test x$build_client_only = xno; then
24369 # Check whether --enable-build-dird was given.
24370 if test "${enable_build_dird+set}" = set; then
24371 enableval=$enable_build_dird;
24372 if test x$enableval = xno; then
24379 if test x$build_dird = xyes; then
24380 DIRD_DIR="src/dird"
24381 DIR_TOOLS="DIRTOOLS"
24384 DIR_TOOLS="NODIRTOOLS"
24389 # Check whether --enable-build-stored was given.
24390 if test "${enable_build_stored+set}" = set; then
24391 enableval=$enable_build_stored;
24392 if test x$enableval = xno; then
24399 if test x$build_stored = xyes; then
24400 STORED_DIR="src/stored"
24406 # Check whether --enable-conio was given.
24407 if test "${enable_conio+set}" = set; then
24408 enableval=$enable_conio;
24409 if test x$enableval = xno; then
24419 # Check whether --enable-ipv6 was given.
24420 if test "${enable_ipv6+set}" = set; then
24421 enableval=$enable_ipv6;
24422 if test x$enableval = xno; then
24430 if test x$support_ipv6 = xyes; then
24431 cat >conftest.$ac_ext <<_ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h. */
24437 #include <sys/types.h>
24438 #include <sys/socket.h>
24439 #include <netinet/in.h>
24443 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24448 rm -f conftest.$ac_objext conftest$ac_exeext
24449 if { (ac_try="$ac_link"
24450 case "(($ac_try" in
24451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452 *) ac_try_echo=$ac_try;;
24454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24455 (eval "$ac_link") 2>conftest.er1
24457 grep -v '^ *+' conftest.er1 >conftest.err
24459 cat conftest.err >&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } && {
24462 test -z "$ac_c_werror_flag" ||
24463 test ! -s conftest.err
24464 } && test -s conftest$ac_exeext &&
24465 $as_test_x conftest$ac_exeext; then
24468 echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24475 conftest$ac_exeext conftest.$ac_ext
24478 if test x$support_ipv6 = xyes; then
24480 cat >>confdefs.h <<\_ACEOF
24481 #define HAVE_IPV6 1
24487 if test x$support_conio = xyes; then
24488 if test "${ac_cv_header_termcap_h+set}" = set; then
24489 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24490 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24491 if test "${ac_cv_header_termcap_h+set}" = set; then
24492 echo $ECHO_N "(cached) $ECHO_C" >&6
24494 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24495 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24497 # Is the header compilable?
24498 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24499 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24500 cat >conftest.$ac_ext <<_ACEOF
24503 cat confdefs.h >>conftest.$ac_ext
24504 cat >>conftest.$ac_ext <<_ACEOF
24505 /* end confdefs.h. */
24506 $ac_includes_default
24507 #include <termcap.h>
24509 rm -f conftest.$ac_objext
24510 if { (ac_try="$ac_compile"
24511 case "(($ac_try" in
24512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513 *) ac_try_echo=$ac_try;;
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516 (eval "$ac_compile") 2>conftest.er1
24518 grep -v '^ *+' conftest.er1 >conftest.err
24520 cat conftest.err >&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } && {
24523 test -z "$ac_c_werror_flag" ||
24524 test ! -s conftest.err
24525 } && test -s conftest.$ac_objext; then
24526 ac_header_compiler=yes
24528 echo "$as_me: failed program was:" >&5
24529 sed 's/^/| /' conftest.$ac_ext >&5
24531 ac_header_compiler=no
24534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24536 echo "${ECHO_T}$ac_header_compiler" >&6; }
24538 # Is the header present?
24539 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24540 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24541 cat >conftest.$ac_ext <<_ACEOF
24544 cat confdefs.h >>conftest.$ac_ext
24545 cat >>conftest.$ac_ext <<_ACEOF
24546 /* end confdefs.h. */
24547 #include <termcap.h>
24549 if { (ac_try="$ac_cpp conftest.$ac_ext"
24550 case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24557 grep -v '^ *+' conftest.er1 >conftest.err
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } >/dev/null && {
24562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24563 test ! -s conftest.err
24565 ac_header_preproc=yes
24567 echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24570 ac_header_preproc=no
24573 rm -f conftest.err conftest.$ac_ext
24574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24575 echo "${ECHO_T}$ac_header_preproc" >&6; }
24577 # So? What about this header?
24578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24580 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24581 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24582 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24583 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24584 ac_header_preproc=yes
24587 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24588 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24589 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24590 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24591 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24592 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24593 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24594 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24595 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24596 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24597 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24598 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24602 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24603 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24604 if test "${ac_cv_header_termcap_h+set}" = set; then
24605 echo $ECHO_N "(cached) $ECHO_C" >&6
24607 ac_cv_header_termcap_h=$ac_header_preproc
24609 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24610 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24613 if test $ac_cv_header_termcap_h = yes; then
24614 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24615 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24616 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24617 echo $ECHO_N "(cached) $ECHO_C" >&6
24619 ac_check_lib_save_LIBS=$LIBS
24620 LIBS="-ltermcap $LIBS"
24621 cat >conftest.$ac_ext <<_ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h. */
24628 /* Override any GCC internal prototype to avoid an error.
24629 Use char because int might match the return type of a GCC
24630 builtin and then its argument prototype would still apply. */
24643 rm -f conftest.$ac_objext conftest$ac_exeext
24644 if { (ac_try="$ac_link"
24645 case "(($ac_try" in
24646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24647 *) ac_try_echo=$ac_try;;
24649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24650 (eval "$ac_link") 2>conftest.er1
24652 grep -v '^ *+' conftest.er1 >conftest.err
24654 cat conftest.err >&5
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); } && {
24657 test -z "$ac_c_werror_flag" ||
24658 test ! -s conftest.err
24659 } && test -s conftest$ac_exeext &&
24660 $as_test_x conftest$ac_exeext; then
24661 ac_cv_lib_termcap_tgetent=yes
24663 echo "$as_me: failed program was:" >&5
24664 sed 's/^/| /' conftest.$ac_ext >&5
24666 ac_cv_lib_termcap_tgetent=no
24669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24670 conftest$ac_exeext conftest.$ac_ext
24671 LIBS=$ac_check_lib_save_LIBS
24673 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24674 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24675 if test $ac_cv_lib_termcap_tgetent = yes; then
24676 CONS_LIBS="-ltermcap"
24680 support_readline=no
24682 cat >>confdefs.h <<\_ACEOF
24683 #define HAVE_CONIO 1
24688 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24689 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24690 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24691 echo $ECHO_N "(cached) $ECHO_C" >&6
24693 ac_check_lib_save_LIBS=$LIBS
24694 LIBS="-lncurses $LIBS"
24695 cat >conftest.$ac_ext <<_ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h. */
24702 /* Override any GCC internal prototype to avoid an error.
24703 Use char because int might match the return type of a GCC
24704 builtin and then its argument prototype would still apply. */
24717 rm -f conftest.$ac_objext conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_link") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest$ac_exeext &&
24734 $as_test_x conftest$ac_exeext; then
24735 ac_cv_lib_ncurses_tgetent=yes
24737 echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24740 ac_cv_lib_ncurses_tgetent=no
24743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24744 conftest$ac_exeext conftest.$ac_ext
24745 LIBS=$ac_check_lib_save_LIBS
24747 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24748 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24749 if test $ac_cv_lib_ncurses_tgetent = yes; then
24750 CONS_LIBS="-lncurses"
24754 support_readline=no
24756 cat >>confdefs.h <<\_ACEOF
24757 #define HAVE_CONIO 1
24770 for ac_header in curses.h
24772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24779 ac_res=`eval echo '${'$as_ac_Header'}'`
24780 { echo "$as_me:$LINENO: result: $ac_res" >&5
24781 echo "${ECHO_T}$ac_res" >&6; }
24783 # Is the header compilable?
24784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24786 cat >conftest.$ac_ext <<_ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 $ac_includes_default
24793 #include <$ac_header>
24795 rm -f conftest.$ac_objext
24796 if { (ac_try="$ac_compile"
24797 case "(($ac_try" in
24798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24799 *) ac_try_echo=$ac_try;;
24801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24802 (eval "$ac_compile") 2>conftest.er1
24804 grep -v '^ *+' conftest.er1 >conftest.err
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } && {
24809 test -z "$ac_c_werror_flag" ||
24810 test ! -s conftest.err
24811 } && test -s conftest.$ac_objext; then
24812 ac_header_compiler=yes
24814 echo "$as_me: failed program was:" >&5
24815 sed 's/^/| /' conftest.$ac_ext >&5
24817 ac_header_compiler=no
24820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24822 echo "${ECHO_T}$ac_header_compiler" >&6; }
24824 # Is the header present?
24825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24827 cat >conftest.$ac_ext <<_ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h. */
24833 #include <$ac_header>
24835 if { (ac_try="$ac_cpp conftest.$ac_ext"
24836 case "(($ac_try" in
24837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838 *) ac_try_echo=$ac_try;;
24840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24843 grep -v '^ *+' conftest.er1 >conftest.err
24845 cat conftest.err >&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); } >/dev/null && {
24848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24849 test ! -s conftest.err
24851 ac_header_preproc=yes
24853 echo "$as_me: failed program was:" >&5
24854 sed 's/^/| /' conftest.$ac_ext >&5
24856 ac_header_preproc=no
24859 rm -f conftest.err conftest.$ac_ext
24860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24861 echo "${ECHO_T}$ac_header_preproc" >&6; }
24863 # So? What about this header?
24864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24870 ac_header_preproc=yes
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24893 eval "$as_ac_Header=\$ac_header_preproc"
24895 ac_res=`eval echo '${'$as_ac_Header'}'`
24896 { echo "$as_me:$LINENO: result: $ac_res" >&5
24897 echo "${ECHO_T}$ac_res" >&6; }
24900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24901 cat >>confdefs.h <<_ACEOF
24902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24909 { echo "$as_me:$LINENO: checking for term.h" >&5
24910 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24911 if test "${ac_cv_header_term_h+set}" = set; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24914 cat >conftest.$ac_ext <<_ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h. */
24921 #include <curses.h>
24927 rm -f conftest.$ac_objext
24928 if { (ac_try="$ac_compile"
24929 case "(($ac_try" in
24930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931 *) ac_try_echo=$ac_try;;
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934 (eval "$ac_compile") 2>conftest.er1
24936 grep -v '^ *+' conftest.er1 >conftest.err
24938 cat conftest.err >&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); } && {
24941 test -z "$ac_c_werror_flag" ||
24942 test ! -s conftest.err
24943 } && test -s conftest.$ac_objext; then
24944 ac_cv_header_term_h=yes
24946 echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24949 ac_cv_header_term_h=no
24952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24954 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24955 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24956 if test $ac_cv_header_term_h = yes; then
24957 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24958 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24959 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24962 ac_check_lib_save_LIBS=$LIBS
24963 LIBS="-lcurses $LIBS"
24964 cat >conftest.$ac_ext <<_ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h. */
24971 /* Override any GCC internal prototype to avoid an error.
24972 Use char because int might match the return type of a GCC
24973 builtin and then its argument prototype would still apply. */
24986 rm -f conftest.$ac_objext conftest$ac_exeext
24987 if { (ac_try="$ac_link"
24988 case "(($ac_try" in
24989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_link") 2>conftest.er1
24995 grep -v '^ *+' conftest.er1 >conftest.err
24997 cat conftest.err >&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } && {
25000 test -z "$ac_c_werror_flag" ||
25001 test ! -s conftest.err
25002 } && test -s conftest$ac_exeext &&
25003 $as_test_x conftest$ac_exeext; then
25004 ac_cv_lib_curses_tgetent=yes
25006 echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25009 ac_cv_lib_curses_tgetent=no
25012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25013 conftest$ac_exeext conftest.$ac_ext
25014 LIBS=$ac_check_lib_save_LIBS
25016 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25017 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25018 if test $ac_cv_lib_curses_tgetent = yes; then
25019 CONS_LIBS="-lcurses"
25023 support_readline=no
25025 cat >>confdefs.h <<\_ACEOF
25026 #define HAVE_CONIO 1
25034 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25045 # Check whether --enable-readline was given.
25046 if test "${enable_readline+set}" = set; then
25047 enableval=$enable_readline;
25048 if test x$enableval = xno; then
25049 support_readline=no
25058 if test x$support_readline = xyes; then
25060 # Check whether --with-readline was given.
25061 if test "${with_readline+set}" = set; then
25062 withval=$with_readline;
25063 case "$with_readline" in
25068 if test -f ${with_readline}/readline.h; then
25069 CONS_INC="-I${with_readline}"
25070 CONS_LDFLAGS="-L$with_readline"
25071 elif test -f ${with_readline}/include/readline/readline.h; then
25072 CONS_INC="-I${with_readline}/include/readline"
25073 CONS_LDFLAGS="-L${with_readline}/lib"
25074 with_readline="${with_readline}/include/readline"
25076 with_readline="/usr/include/readline"
25079 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25081 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25082 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25084 echo $ECHO_N "(cached) $ECHO_C" >&6
25086 ac_res=`eval echo '${'$as_ac_Header'}'`
25087 { echo "$as_me:$LINENO: result: $ac_res" >&5
25088 echo "${ECHO_T}$ac_res" >&6; }
25090 # Is the header compilable?
25091 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25092 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25093 cat >conftest.$ac_ext <<_ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 $ac_includes_default
25100 #include <${with_readline}/readline.h>
25102 rm -f conftest.$ac_objext
25103 if { (ac_try="$ac_compile"
25104 case "(($ac_try" in
25105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109 (eval "$ac_compile") 2>conftest.er1
25111 grep -v '^ *+' conftest.er1 >conftest.err
25113 cat conftest.err >&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } && {
25116 test -z "$ac_c_werror_flag" ||
25117 test ! -s conftest.err
25118 } && test -s conftest.$ac_objext; then
25119 ac_header_compiler=yes
25121 echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25124 ac_header_compiler=no
25127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25129 echo "${ECHO_T}$ac_header_compiler" >&6; }
25131 # Is the header present?
25132 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25133 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25134 cat >conftest.$ac_ext <<_ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25140 #include <${with_readline}/readline.h>
25142 if { (ac_try="$ac_cpp conftest.$ac_ext"
25143 case "(($ac_try" in
25144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145 *) ac_try_echo=$ac_try;;
25147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25150 grep -v '^ *+' conftest.er1 >conftest.err
25152 cat conftest.err >&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } >/dev/null && {
25155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25156 test ! -s conftest.err
25158 ac_header_preproc=yes
25160 echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25163 ac_header_preproc=no
25166 rm -f conftest.err conftest.$ac_ext
25167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25168 echo "${ECHO_T}$ac_header_preproc" >&6; }
25170 # So? What about this header?
25171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25173 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25174 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25175 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25176 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25177 ac_header_preproc=yes
25180 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25181 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25182 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25183 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25184 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25185 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25186 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25187 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25188 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25189 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25190 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25191 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25195 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25196 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25198 echo $ECHO_N "(cached) $ECHO_C" >&6
25200 eval "$as_ac_Header=\$ac_header_preproc"
25202 ac_res=`eval echo '${'$as_ac_Header'}'`
25203 { echo "$as_me:$LINENO: result: $ac_res" >&5
25204 echo "${ECHO_T}$ac_res" >&6; }
25207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25210 cat >>confdefs.h <<\_ACEOF
25211 #define HAVE_READLINE 1
25214 CONS_LIBS="-lreadline -lhistory -ltermcap"
25220 echo "readline.h not found. readline turned off ..."
25232 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25233 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25234 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25235 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25236 echo $ECHO_N "(cached) $ECHO_C" >&6
25238 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25239 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25241 # Is the header compilable?
25242 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25243 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25244 cat >conftest.$ac_ext <<_ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25250 $ac_includes_default
25251 #include </usr/include/readline/readline.h>
25253 rm -f conftest.$ac_objext
25254 if { (ac_try="$ac_compile"
25255 case "(($ac_try" in
25256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257 *) ac_try_echo=$ac_try;;
25259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260 (eval "$ac_compile") 2>conftest.er1
25262 grep -v '^ *+' conftest.er1 >conftest.err
25264 cat conftest.err >&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } && {
25267 test -z "$ac_c_werror_flag" ||
25268 test ! -s conftest.err
25269 } && test -s conftest.$ac_objext; then
25270 ac_header_compiler=yes
25272 echo "$as_me: failed program was:" >&5
25273 sed 's/^/| /' conftest.$ac_ext >&5
25275 ac_header_compiler=no
25278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25280 echo "${ECHO_T}$ac_header_compiler" >&6; }
25282 # Is the header present?
25283 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25284 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25285 cat >conftest.$ac_ext <<_ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h. */
25291 #include </usr/include/readline/readline.h>
25293 if { (ac_try="$ac_cpp conftest.$ac_ext"
25294 case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25301 grep -v '^ *+' conftest.er1 >conftest.err
25303 cat conftest.err >&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } >/dev/null && {
25306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25307 test ! -s conftest.err
25309 ac_header_preproc=yes
25311 echo "$as_me: failed program was:" >&5
25312 sed 's/^/| /' conftest.$ac_ext >&5
25314 ac_header_preproc=no
25317 rm -f conftest.err conftest.$ac_ext
25318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25319 echo "${ECHO_T}$ac_header_preproc" >&6; }
25321 # So? What about this header?
25322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25324 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25325 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25326 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25327 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25328 ac_header_preproc=yes
25331 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25332 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25333 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25334 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25335 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25336 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25337 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25338 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25339 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25340 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25341 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25342 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25346 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25347 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25348 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25349 echo $ECHO_N "(cached) $ECHO_C" >&6
25351 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25353 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25354 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25357 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25360 cat >>confdefs.h <<\_ACEOF
25361 #define HAVE_READLINE 1
25365 CONS_INC="-I/usr/include/readline"
25366 CONS_LIBS="-lreadline -ltermcap"
25370 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25372 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25373 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25375 echo $ECHO_N "(cached) $ECHO_C" >&6
25377 ac_res=`eval echo '${'$as_ac_Header'}'`
25378 { echo "$as_me:$LINENO: result: $ac_res" >&5
25379 echo "${ECHO_T}$ac_res" >&6; }
25381 # Is the header compilable?
25382 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25383 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25384 cat >conftest.$ac_ext <<_ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h. */
25390 $ac_includes_default
25391 #include <${TOP_DIR}/depkgs/readline/readline.h>
25393 rm -f conftest.$ac_objext
25394 if { (ac_try="$ac_compile"
25395 case "(($ac_try" in
25396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25397 *) ac_try_echo=$ac_try;;
25399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25400 (eval "$ac_compile") 2>conftest.er1
25402 grep -v '^ *+' conftest.er1 >conftest.err
25404 cat conftest.err >&5
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } && {
25407 test -z "$ac_c_werror_flag" ||
25408 test ! -s conftest.err
25409 } && test -s conftest.$ac_objext; then
25410 ac_header_compiler=yes
25412 echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25415 ac_header_compiler=no
25418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25420 echo "${ECHO_T}$ac_header_compiler" >&6; }
25422 # Is the header present?
25423 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25424 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25425 cat >conftest.$ac_ext <<_ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h. */
25431 #include <${TOP_DIR}/depkgs/readline/readline.h>
25433 if { (ac_try="$ac_cpp conftest.$ac_ext"
25434 case "(($ac_try" in
25435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436 *) ac_try_echo=$ac_try;;
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25441 grep -v '^ *+' conftest.er1 >conftest.err
25443 cat conftest.err >&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); } >/dev/null && {
25446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25447 test ! -s conftest.err
25449 ac_header_preproc=yes
25451 echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.$ac_ext >&5
25454 ac_header_preproc=no
25457 rm -f conftest.err conftest.$ac_ext
25458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25459 echo "${ECHO_T}$ac_header_preproc" >&6; }
25461 # So? What about this header?
25462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25464 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25465 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25466 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25467 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25468 ac_header_preproc=yes
25471 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25473 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25474 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25475 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25476 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25477 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25478 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25479 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25480 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25481 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25482 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25486 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25487 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25489 echo $ECHO_N "(cached) $ECHO_C" >&6
25491 eval "$as_ac_Header=\$ac_header_preproc"
25493 ac_res=`eval echo '${'$as_ac_Header'}'`
25494 { echo "$as_me:$LINENO: result: $ac_res" >&5
25495 echo "${ECHO_T}$ac_res" >&6; }
25498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25501 cat >>confdefs.h <<\_ACEOF
25502 #define HAVE_READLINE 1
25506 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25507 CONS_LIBS="-lreadline -lhistory -ltermcap"
25508 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25509 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25514 echo "readline.h not found. readline turned off ..."
25541 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25542 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25543 if test "${ac_cv_header_stat_broken+set}" = set; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25546 cat >conftest.$ac_ext <<_ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 #include <sys/types.h>
25553 #include <sys/stat.h>
25555 #if defined S_ISBLK && defined S_IFDIR
25556 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25559 #if defined S_ISBLK && defined S_IFCHR
25560 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25563 #if defined S_ISLNK && defined S_IFREG
25564 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25567 #if defined S_ISSOCK && defined S_IFREG
25568 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25572 rm -f conftest.$ac_objext
25573 if { (ac_try="$ac_compile"
25574 case "(($ac_try" in
25575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25576 *) ac_try_echo=$ac_try;;
25578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25579 (eval "$ac_compile") 2>conftest.er1
25581 grep -v '^ *+' conftest.er1 >conftest.err
25583 cat conftest.err >&5
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); } && {
25586 test -z "$ac_c_werror_flag" ||
25587 test ! -s conftest.err
25588 } && test -s conftest.$ac_objext; then
25589 ac_cv_header_stat_broken=no
25591 echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.$ac_ext >&5
25594 ac_cv_header_stat_broken=yes
25597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25599 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25600 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25601 if test $ac_cv_header_stat_broken = yes; then
25603 cat >>confdefs.h <<\_ACEOF
25604 #define STAT_MACROS_BROKEN 1
25614 ac_header_dirent=no
25615 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25616 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25617 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25618 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25620 echo $ECHO_N "(cached) $ECHO_C" >&6
25622 cat >conftest.$ac_ext <<_ACEOF
25625 cat confdefs.h >>conftest.$ac_ext
25626 cat >>conftest.$ac_ext <<_ACEOF
25627 /* end confdefs.h. */
25628 #include <sys/types.h>
25640 rm -f conftest.$ac_objext
25641 if { (ac_try="$ac_compile"
25642 case "(($ac_try" in
25643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644 *) ac_try_echo=$ac_try;;
25646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25647 (eval "$ac_compile") 2>conftest.er1
25649 grep -v '^ *+' conftest.er1 >conftest.err
25651 cat conftest.err >&5
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); } && {
25654 test -z "$ac_c_werror_flag" ||
25655 test ! -s conftest.err
25656 } && test -s conftest.$ac_objext; then
25657 eval "$as_ac_Header=yes"
25659 echo "$as_me: failed program was:" >&5
25660 sed 's/^/| /' conftest.$ac_ext >&5
25662 eval "$as_ac_Header=no"
25665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667 ac_res=`eval echo '${'$as_ac_Header'}'`
25668 { echo "$as_me:$LINENO: result: $ac_res" >&5
25669 echo "${ECHO_T}$ac_res" >&6; }
25670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25671 cat >>confdefs.h <<_ACEOF
25672 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25675 ac_header_dirent=$ac_hdr; break
25679 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25680 if test $ac_header_dirent = dirent.h; then
25681 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25682 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25683 if test "${ac_cv_search_opendir+set}" = set; then
25684 echo $ECHO_N "(cached) $ECHO_C" >&6
25686 ac_func_search_save_LIBS=$LIBS
25687 cat >conftest.$ac_ext <<_ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h. */
25694 /* Override any GCC internal prototype to avoid an error.
25695 Use char because int might match the return type of a GCC
25696 builtin and then its argument prototype would still apply. */
25709 for ac_lib in '' dir; do
25710 if test -z "$ac_lib"; then
25711 ac_res="none required"
25714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25716 rm -f conftest.$ac_objext conftest$ac_exeext
25717 if { (ac_try="$ac_link"
25718 case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25723 (eval "$ac_link") 2>conftest.er1
25725 grep -v '^ *+' conftest.er1 >conftest.err
25727 cat conftest.err >&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } && {
25730 test -z "$ac_c_werror_flag" ||
25731 test ! -s conftest.err
25732 } && test -s conftest$ac_exeext &&
25733 $as_test_x conftest$ac_exeext; then
25734 ac_cv_search_opendir=$ac_res
25736 echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25744 if test "${ac_cv_search_opendir+set}" = set; then
25748 if test "${ac_cv_search_opendir+set}" = set; then
25751 ac_cv_search_opendir=no
25753 rm conftest.$ac_ext
25754 LIBS=$ac_func_search_save_LIBS
25756 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25757 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25758 ac_res=$ac_cv_search_opendir
25759 if test "$ac_res" != no; then
25760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25765 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25766 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25767 if test "${ac_cv_search_opendir+set}" = set; then
25768 echo $ECHO_N "(cached) $ECHO_C" >&6
25770 ac_func_search_save_LIBS=$LIBS
25771 cat >conftest.$ac_ext <<_ACEOF
25774 cat confdefs.h >>conftest.$ac_ext
25775 cat >>conftest.$ac_ext <<_ACEOF
25776 /* end confdefs.h. */
25778 /* Override any GCC internal prototype to avoid an error.
25779 Use char because int might match the return type of a GCC
25780 builtin and then its argument prototype would still apply. */
25793 for ac_lib in '' x; do
25794 if test -z "$ac_lib"; then
25795 ac_res="none required"
25798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25800 rm -f conftest.$ac_objext conftest$ac_exeext
25801 if { (ac_try="$ac_link"
25802 case "(($ac_try" in
25803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804 *) ac_try_echo=$ac_try;;
25806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25807 (eval "$ac_link") 2>conftest.er1
25809 grep -v '^ *+' conftest.er1 >conftest.err
25811 cat conftest.err >&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); } && {
25814 test -z "$ac_c_werror_flag" ||
25815 test ! -s conftest.err
25816 } && test -s conftest$ac_exeext &&
25817 $as_test_x conftest$ac_exeext; then
25818 ac_cv_search_opendir=$ac_res
25820 echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25828 if test "${ac_cv_search_opendir+set}" = set; then
25832 if test "${ac_cv_search_opendir+set}" = set; then
25835 ac_cv_search_opendir=no
25837 rm conftest.$ac_ext
25838 LIBS=$ac_func_search_save_LIBS
25840 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25841 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25842 ac_res=$ac_cv_search_opendir
25843 if test "$ac_res" != no; then
25844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25857 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25863 echo $ECHO_N "(cached) $ECHO_C" >&6
25865 cat >conftest.$ac_ext <<_ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h. */
25871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25873 #define $ac_func innocuous_$ac_func
25875 /* System header to define __stub macros and hopefully few prototypes,
25876 which can conflict with char $ac_func (); below.
25877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25878 <limits.h> exists even on freestanding compilers. */
25881 # include <limits.h>
25883 # include <assert.h>
25888 /* Override any GCC internal prototype to avoid an error.
25889 Use char because int might match the return type of a GCC
25890 builtin and then its argument prototype would still apply. */
25895 /* The GNU C library defines this for functions which it implements
25896 to always fail with ENOSYS. Some functions are actually named
25897 something starting with __ and the normal name is an alias. */
25898 #if defined __stub_$ac_func || defined __stub___$ac_func
25905 return $ac_func ();
25910 rm -f conftest.$ac_objext conftest$ac_exeext
25911 if { (ac_try="$ac_link"
25912 case "(($ac_try" in
25913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25914 *) ac_try_echo=$ac_try;;
25916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25917 (eval "$ac_link") 2>conftest.er1
25919 grep -v '^ *+' conftest.er1 >conftest.err
25921 cat conftest.err >&5
25922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); } && {
25924 test -z "$ac_c_werror_flag" ||
25925 test ! -s conftest.err
25926 } && test -s conftest$ac_exeext &&
25927 $as_test_x conftest$ac_exeext; then
25928 eval "$as_ac_var=yes"
25930 echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25933 eval "$as_ac_var=no"
25936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25937 conftest$ac_exeext conftest.$ac_ext
25939 ac_res=`eval echo '${'$as_ac_var'}'`
25940 { echo "$as_me:$LINENO: result: $ac_res" >&5
25941 echo "${ECHO_T}$ac_res" >&6; }
25942 if test `eval echo '${'$as_ac_var'}'` = yes; then
25943 cat >>confdefs.h <<_ACEOF
25944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25952 for ac_func in nanosleep nl_langinfo
25954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25958 echo $ECHO_N "(cached) $ECHO_C" >&6
25960 cat >conftest.$ac_ext <<_ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25968 #define $ac_func innocuous_$ac_func
25970 /* System header to define __stub macros and hopefully few prototypes,
25971 which can conflict with char $ac_func (); below.
25972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25973 <limits.h> exists even on freestanding compilers. */
25976 # include <limits.h>
25978 # include <assert.h>
25983 /* Override any GCC internal prototype to avoid an error.
25984 Use char because int might match the return type of a GCC
25985 builtin and then its argument prototype would still apply. */
25990 /* The GNU C library defines this for functions which it implements
25991 to always fail with ENOSYS. Some functions are actually named
25992 something starting with __ and the normal name is an alias. */
25993 #if defined __stub_$ac_func || defined __stub___$ac_func
26000 return $ac_func ();
26005 rm -f conftest.$ac_objext conftest$ac_exeext
26006 if { (ac_try="$ac_link"
26007 case "(($ac_try" in
26008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009 *) ac_try_echo=$ac_try;;
26011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26012 (eval "$ac_link") 2>conftest.er1
26014 grep -v '^ *+' conftest.er1 >conftest.err
26016 cat conftest.err >&5
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } && {
26019 test -z "$ac_c_werror_flag" ||
26020 test ! -s conftest.err
26021 } && test -s conftest$ac_exeext &&
26022 $as_test_x conftest$ac_exeext; then
26023 eval "$as_ac_var=yes"
26025 echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26028 eval "$as_ac_var=no"
26031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26032 conftest$ac_exeext conftest.$ac_ext
26034 ac_res=`eval echo '${'$as_ac_var'}'`
26035 { echo "$as_me:$LINENO: result: $ac_res" >&5
26036 echo "${ECHO_T}$ac_res" >&6; }
26037 if test `eval echo '${'$as_ac_var'}'` = yes; then
26038 cat >>confdefs.h <<_ACEOF
26039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26046 for ac_header in varargs.h
26048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26053 echo $ECHO_N "(cached) $ECHO_C" >&6
26055 ac_res=`eval echo '${'$as_ac_Header'}'`
26056 { echo "$as_me:$LINENO: result: $ac_res" >&5
26057 echo "${ECHO_T}$ac_res" >&6; }
26059 # Is the header compilable?
26060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26062 cat >conftest.$ac_ext <<_ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h. */
26068 $ac_includes_default
26069 #include <$ac_header>
26071 rm -f conftest.$ac_objext
26072 if { (ac_try="$ac_compile"
26073 case "(($ac_try" in
26074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075 *) ac_try_echo=$ac_try;;
26077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26078 (eval "$ac_compile") 2>conftest.er1
26080 grep -v '^ *+' conftest.er1 >conftest.err
26082 cat conftest.err >&5
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); } && {
26085 test -z "$ac_c_werror_flag" ||
26086 test ! -s conftest.err
26087 } && test -s conftest.$ac_objext; then
26088 ac_header_compiler=yes
26090 echo "$as_me: failed program was:" >&5
26091 sed 's/^/| /' conftest.$ac_ext >&5
26093 ac_header_compiler=no
26096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26098 echo "${ECHO_T}$ac_header_compiler" >&6; }
26100 # Is the header present?
26101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26103 cat >conftest.$ac_ext <<_ACEOF
26106 cat confdefs.h >>conftest.$ac_ext
26107 cat >>conftest.$ac_ext <<_ACEOF
26108 /* end confdefs.h. */
26109 #include <$ac_header>
26111 if { (ac_try="$ac_cpp conftest.$ac_ext"
26112 case "(($ac_try" in
26113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26114 *) ac_try_echo=$ac_try;;
26116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26119 grep -v '^ *+' conftest.er1 >conftest.err
26121 cat conftest.err >&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } >/dev/null && {
26124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26125 test ! -s conftest.err
26127 ac_header_preproc=yes
26129 echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26132 ac_header_preproc=no
26135 rm -f conftest.err conftest.$ac_ext
26136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26137 echo "${ECHO_T}$ac_header_preproc" >&6; }
26139 # So? What about this header?
26140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26146 ac_header_preproc=yes
26149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26169 eval "$as_ac_Header=\$ac_header_preproc"
26171 ac_res=`eval echo '${'$as_ac_Header'}'`
26172 { echo "$as_me:$LINENO: result: $ac_res" >&5
26173 echo "${ECHO_T}$ac_res" >&6; }
26176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26177 cat >>confdefs.h <<_ACEOF
26178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26187 { echo "$as_me:$LINENO: checking for Python support" >&5
26188 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26190 # Check whether --with-python was given.
26191 if test "${with_python+set}" = set; then
26192 withval=$with_python;
26195 if test "$withval" != "no"; then
26196 if test "$withval" = "yes"; then
26197 if test -e /usr/bin/python-config ; then
26198 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26199 PYTHON_LIBS=`/usr/bin/python-config --libs`
26201 for python_root in /usr /usr/local /usr/sfw; do
26202 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26203 if test -f $python_root/include/${ver}/Python.h; then
26204 PYTHON_INCDIR=-I$python_root/include/${ver}
26205 if test -d $python_root/lib64/${ver}/config; then
26206 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26208 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26215 if test x$PYTHON_INCDIR = x; then
26216 if test -f $prefix/include/Python.h; then
26217 PYTHON_INCDIR=-I$prefix/include
26218 if test -d $prefix/lib64/config; then
26219 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26221 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26224 { echo "$as_me:$LINENO: result: no" >&5
26225 echo "${ECHO_T}no" >&6; }
26226 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26227 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26228 { (exit 1); exit 1; }; }
26233 if test -e $withval/bin/python-config ; then
26234 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26235 PYTHON_LIBS=`$withval/bin/python-config --libs`
26236 elif test -f $withval/Python.h; then
26237 PYTHON_INCDIR=-I$withval
26238 PYTHON_LIBS="-L$withval/config -lpython"
26239 elif test -f $withval/include/Python.h; then
26240 PYTHON_INCDIR=-I$withval/include
26241 if test -d $withval/lib64/config; then
26242 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26244 PYTHON_LIBS="-L$withval/lib/config -lpython"
26246 elif test -f $withval/include/python/Python.h; then
26247 PYTHON_INCDIR=-I$withval/include/python
26248 if test -d $withval/lib64/python/config; then
26249 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26251 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26254 { echo "$as_me:$LINENO: result: no" >&5
26255 echo "${ECHO_T}no" >&6; }
26256 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26257 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26258 { (exit 1); exit 1; }; }
26262 cat >>confdefs.h <<\_ACEOF
26263 #define HAVE_PYTHON 1
26266 { echo "$as_me:$LINENO: result: yes" >&5
26267 echo "${ECHO_T}yes" >&6; }
26269 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26270 echo "$as_me: checking for more Python libs" >&6;}
26271 saved_LIBS="$LIBS"; LIBS=
26272 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26273 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26274 if test "${ac_cv_search_shm_open+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26277 ac_func_search_save_LIBS=$LIBS
26278 cat >conftest.$ac_ext <<_ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26285 /* Override any GCC internal prototype to avoid an error.
26286 Use char because int might match the return type of a GCC
26287 builtin and then its argument prototype would still apply. */
26295 return shm_open ();
26300 for ac_lib in '' rt; do
26301 if test -z "$ac_lib"; then
26302 ac_res="none required"
26305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26307 rm -f conftest.$ac_objext conftest$ac_exeext
26308 if { (ac_try="$ac_link"
26309 case "(($ac_try" in
26310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311 *) ac_try_echo=$ac_try;;
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314 (eval "$ac_link") 2>conftest.er1
26316 grep -v '^ *+' conftest.er1 >conftest.err
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } && {
26321 test -z "$ac_c_werror_flag" ||
26322 test ! -s conftest.err
26323 } && test -s conftest$ac_exeext &&
26324 $as_test_x conftest$ac_exeext; then
26325 ac_cv_search_shm_open=$ac_res
26327 echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26335 if test "${ac_cv_search_shm_open+set}" = set; then
26339 if test "${ac_cv_search_shm_open+set}" = set; then
26342 ac_cv_search_shm_open=no
26344 rm conftest.$ac_ext
26345 LIBS=$ac_func_search_save_LIBS
26347 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26348 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26349 ac_res=$ac_cv_search_shm_open
26350 if test "$ac_res" != no; then
26351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26356 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26357 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26358 if test "${ac_cv_lib_util_openpty+set}" = set; then
26359 echo $ECHO_N "(cached) $ECHO_C" >&6
26361 ac_check_lib_save_LIBS=$LIBS
26362 LIBS="-lutil $LIBS"
26363 cat >conftest.$ac_ext <<_ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h. */
26370 /* Override any GCC internal prototype to avoid an error.
26371 Use char because int might match the return type of a GCC
26372 builtin and then its argument prototype would still apply. */
26385 rm -f conftest.$ac_objext conftest$ac_exeext
26386 if { (ac_try="$ac_link"
26387 case "(($ac_try" in
26388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389 *) ac_try_echo=$ac_try;;
26391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26392 (eval "$ac_link") 2>conftest.er1
26394 grep -v '^ *+' conftest.er1 >conftest.err
26396 cat conftest.err >&5
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); } && {
26399 test -z "$ac_c_werror_flag" ||
26400 test ! -s conftest.err
26401 } && test -s conftest$ac_exeext &&
26402 $as_test_x conftest$ac_exeext; then
26403 ac_cv_lib_util_openpty=yes
26405 echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26408 ac_cv_lib_util_openpty=no
26411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26412 conftest$ac_exeext conftest.$ac_ext
26413 LIBS=$ac_check_lib_save_LIBS
26415 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26416 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26417 if test $ac_cv_lib_util_openpty = yes; then
26418 cat >>confdefs.h <<_ACEOF
26419 #define HAVE_LIBUTIL 1
26422 LIBS="-lutil $LIBS"
26426 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26429 { echo "$as_me:$LINENO: result: no" >&5
26430 echo "${ECHO_T}no" >&6; }
26435 { echo "$as_me:$LINENO: result: no" >&5
26436 echo "${ECHO_T}no" >&6; }
26444 { echo "$as_me:$LINENO: checking for socket" >&5
26445 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26446 if test "${ac_cv_func_socket+set}" = set; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26449 cat >conftest.$ac_ext <<_ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h. */
26455 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26457 #define socket innocuous_socket
26459 /* System header to define __stub macros and hopefully few prototypes,
26460 which can conflict with char socket (); below.
26461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26462 <limits.h> exists even on freestanding compilers. */
26465 # include <limits.h>
26467 # include <assert.h>
26472 /* Override any GCC internal prototype to avoid an error.
26473 Use char because int might match the return type of a GCC
26474 builtin and then its argument prototype would still apply. */
26479 /* The GNU C library defines this for functions which it implements
26480 to always fail with ENOSYS. Some functions are actually named
26481 something starting with __ and the normal name is an alias. */
26482 #if defined __stub_socket || defined __stub___socket
26494 rm -f conftest.$ac_objext conftest$ac_exeext
26495 if { (ac_try="$ac_link"
26496 case "(($ac_try" in
26497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498 *) ac_try_echo=$ac_try;;
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501 (eval "$ac_link") 2>conftest.er1
26503 grep -v '^ *+' conftest.er1 >conftest.err
26505 cat conftest.err >&5
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } && {
26508 test -z "$ac_c_werror_flag" ||
26509 test ! -s conftest.err
26510 } && test -s conftest$ac_exeext &&
26511 $as_test_x conftest$ac_exeext; then
26512 ac_cv_func_socket=yes
26514 echo "$as_me: failed program was:" >&5
26515 sed 's/^/| /' conftest.$ac_ext >&5
26517 ac_cv_func_socket=no
26520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26521 conftest$ac_exeext conftest.$ac_ext
26523 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26524 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26525 if test $ac_cv_func_socket = yes; then
26526 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26527 echo "${ECHO_T}using libc's socket" >&6; }
26530 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26531 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26532 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26533 echo $ECHO_N "(cached) $ECHO_C" >&6
26535 ac_check_lib_save_LIBS=$LIBS
26536 LIBS="-lxnet $LIBS"
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26544 /* Override any GCC internal prototype to avoid an error.
26545 Use char because int might match the return type of a GCC
26546 builtin and then its argument prototype would still apply. */
26559 rm -f conftest.$ac_objext conftest$ac_exeext
26560 if { (ac_try="$ac_link"
26561 case "(($ac_try" in
26562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563 *) ac_try_echo=$ac_try;;
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566 (eval "$ac_link") 2>conftest.er1
26568 grep -v '^ *+' conftest.er1 >conftest.err
26570 cat conftest.err >&5
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } && {
26573 test -z "$ac_c_werror_flag" ||
26574 test ! -s conftest.err
26575 } && test -s conftest$ac_exeext &&
26576 $as_test_x conftest$ac_exeext; then
26577 ac_cv_lib_xnet_socket=yes
26579 echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26582 ac_cv_lib_xnet_socket=no
26585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26586 conftest$ac_exeext conftest.$ac_ext
26587 LIBS=$ac_check_lib_save_LIBS
26589 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26590 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26591 if test $ac_cv_lib_xnet_socket = yes; then
26592 cat >>confdefs.h <<_ACEOF
26593 #define HAVE_LIBXNET 1
26596 LIBS="-lxnet $LIBS"
26601 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26602 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26603 if test "${ac_cv_lib_socket_socket+set}" = set; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26606 ac_check_lib_save_LIBS=$LIBS
26607 LIBS="-lsocket $LIBS"
26608 cat >conftest.$ac_ext <<_ACEOF
26611 cat confdefs.h >>conftest.$ac_ext
26612 cat >>conftest.$ac_ext <<_ACEOF
26613 /* end confdefs.h. */
26615 /* Override any GCC internal prototype to avoid an error.
26616 Use char because int might match the return type of a GCC
26617 builtin and then its argument prototype would still apply. */
26630 rm -f conftest.$ac_objext conftest$ac_exeext
26631 if { (ac_try="$ac_link"
26632 case "(($ac_try" in
26633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634 *) ac_try_echo=$ac_try;;
26636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637 (eval "$ac_link") 2>conftest.er1
26639 grep -v '^ *+' conftest.er1 >conftest.err
26641 cat conftest.err >&5
26642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643 (exit $ac_status); } && {
26644 test -z "$ac_c_werror_flag" ||
26645 test ! -s conftest.err
26646 } && test -s conftest$ac_exeext &&
26647 $as_test_x conftest$ac_exeext; then
26648 ac_cv_lib_socket_socket=yes
26650 echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26653 ac_cv_lib_socket_socket=no
26656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26657 conftest$ac_exeext conftest.$ac_ext
26658 LIBS=$ac_check_lib_save_LIBS
26660 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26661 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26662 if test $ac_cv_lib_socket_socket = yes; then
26663 cat >>confdefs.h <<_ACEOF
26664 #define HAVE_LIBSOCKET 1
26667 LIBS="-lsocket $LIBS"
26672 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26673 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26674 if test "${ac_cv_lib_inet_socket+set}" = set; then
26675 echo $ECHO_N "(cached) $ECHO_C" >&6
26677 ac_check_lib_save_LIBS=$LIBS
26678 LIBS="-linet $LIBS"
26679 cat >conftest.$ac_ext <<_ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h. */
26686 /* Override any GCC internal prototype to avoid an error.
26687 Use char because int might match the return type of a GCC
26688 builtin and then its argument prototype would still apply. */
26701 rm -f conftest.$ac_objext conftest$ac_exeext
26702 if { (ac_try="$ac_link"
26703 case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708 (eval "$ac_link") 2>conftest.er1
26710 grep -v '^ *+' conftest.er1 >conftest.err
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } && {
26715 test -z "$ac_c_werror_flag" ||
26716 test ! -s conftest.err
26717 } && test -s conftest$ac_exeext &&
26718 $as_test_x conftest$ac_exeext; then
26719 ac_cv_lib_inet_socket=yes
26721 echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26724 ac_cv_lib_inet_socket=no
26727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26728 conftest$ac_exeext conftest.$ac_ext
26729 LIBS=$ac_check_lib_save_LIBS
26731 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26732 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26733 if test $ac_cv_lib_inet_socket = yes; then
26734 cat >>confdefs.h <<_ACEOF
26735 #define HAVE_LIBINET 1
26738 LIBS="-linet $LIBS"
26748 # Check whether --with-tcp-wrappers was given.
26749 if test "${with_tcp_wrappers+set}" = set; then
26750 withval=$with_tcp_wrappers;
26751 if test "x$withval" != "xno" ; then
26753 LIBS="$saved_LIBS -lwrap"
26754 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26755 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26756 if test "${ac_cv_search_nanosleep+set}" = set; then
26757 echo $ECHO_N "(cached) $ECHO_C" >&6
26759 ac_func_search_save_LIBS=$LIBS
26760 cat >conftest.$ac_ext <<_ACEOF
26763 cat confdefs.h >>conftest.$ac_ext
26764 cat >>conftest.$ac_ext <<_ACEOF
26765 /* end confdefs.h. */
26767 /* Override any GCC internal prototype to avoid an error.
26768 Use char because int might match the return type of a GCC
26769 builtin and then its argument prototype would still apply. */
26777 return nanosleep ();
26782 for ac_lib in '' rt; do
26783 if test -z "$ac_lib"; then
26784 ac_res="none required"
26787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26789 rm -f conftest.$ac_objext conftest$ac_exeext
26790 if { (ac_try="$ac_link"
26791 case "(($ac_try" in
26792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793 *) ac_try_echo=$ac_try;;
26795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26796 (eval "$ac_link") 2>conftest.er1
26798 grep -v '^ *+' conftest.er1 >conftest.err
26800 cat conftest.err >&5
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); } && {
26803 test -z "$ac_c_werror_flag" ||
26804 test ! -s conftest.err
26805 } && test -s conftest$ac_exeext &&
26806 $as_test_x conftest$ac_exeext; then
26807 ac_cv_search_nanosleep=$ac_res
26809 echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26817 if test "${ac_cv_search_nanosleep+set}" = set; then
26821 if test "${ac_cv_search_nanosleep+set}" = set; then
26824 ac_cv_search_nanosleep=no
26826 rm conftest.$ac_ext
26827 LIBS=$ac_func_search_save_LIBS
26829 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26830 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26831 ac_res=$ac_cv_search_nanosleep
26832 if test "$ac_res" != no; then
26833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26837 { echo "$as_me:$LINENO: checking for libwrap" >&5
26838 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26839 cat >conftest.$ac_ext <<_ACEOF
26842 cat confdefs.h >>conftest.$ac_ext
26843 cat >>conftest.$ac_ext <<_ACEOF
26844 /* end confdefs.h. */
26846 #include <sys/types.h>
26848 int deny_severity = 0;
26849 int allow_severity = 0;
26850 struct request_info *req;
26862 rm -f conftest.$ac_objext conftest$ac_exeext
26863 if { (ac_try="$ac_link"
26864 case "(($ac_try" in
26865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26866 *) ac_try_echo=$ac_try;;
26868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26869 (eval "$ac_link") 2>conftest.er1
26871 grep -v '^ *+' conftest.er1 >conftest.err
26873 cat conftest.err >&5
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } && {
26876 test -z "$ac_c_werror_flag" ||
26877 test ! -s conftest.err
26878 } && test -s conftest$ac_exeext &&
26879 $as_test_x conftest$ac_exeext; then
26881 { echo "$as_me:$LINENO: result: yes" >&5
26882 echo "${ECHO_T}yes" >&6; }
26884 cat >>confdefs.h <<\_ACEOF
26885 #define HAVE_LIBWRAP 1
26893 echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26897 LIBS="$saved_LIBS -lwrap -lnsl"
26898 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26899 cat >conftest.$ac_ext <<_ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26906 #include <sys/types.h>
26908 int deny_severity = 0;
26909 int allow_severity = 0;
26910 struct request_info *req;
26922 rm -f conftest.$ac_objext conftest$ac_exeext
26923 if { (ac_try="$ac_link"
26924 case "(($ac_try" in
26925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926 *) ac_try_echo=$ac_try;;
26928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26929 (eval "$ac_link") 2>conftest.er1
26931 grep -v '^ *+' conftest.er1 >conftest.err
26933 cat conftest.err >&5
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); } && {
26936 test -z "$ac_c_werror_flag" ||
26937 test ! -s conftest.err
26938 } && test -s conftest$ac_exeext &&
26939 $as_test_x conftest$ac_exeext; then
26941 { echo "$as_me:$LINENO: result: yes" >&5
26942 echo "${ECHO_T}yes" >&6; }
26944 cat >>confdefs.h <<\_ACEOF
26945 #define HAVE_LIBWRAP 1
26953 echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26957 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26958 echo "$as_me: error: *** libwrap missing" >&2;}
26959 { (exit 1); exit 1; }; }
26964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26965 conftest$ac_exeext conftest.$ac_ext
26970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26971 conftest$ac_exeext conftest.$ac_ext
26978 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26979 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26981 # Check whether --with-openssl was given.
26982 if test "${with_openssl+set}" = set; then
26983 withval=$with_openssl;
26984 with_openssl_directory=${withval}
26990 if test "x$with_openssl_directory" != "xno"; then
26991 OPENSSL_LIBS="-lssl -lcrypto"
26994 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26996 # Make sure the $with_openssl_directory also makes sense
26998 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26999 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27000 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27004 saved_LIBS="${LIBS}"
27005 saved_CFLAGS="${CFLAGS}"
27006 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27007 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27009 cat >conftest.$ac_ext <<_ACEOF
27012 cat confdefs.h >>conftest.$ac_ext
27013 cat >>conftest.$ac_ext <<_ACEOF
27014 /* end confdefs.h. */
27016 #include <openssl/ssl.h>
27022 CRYPTO_set_id_callback(NULL);
27028 rm -f conftest.$ac_objext conftest$ac_exeext
27029 if { (ac_try="$ac_link"
27030 case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035 (eval "$ac_link") 2>conftest.er1
27037 grep -v '^ *+' conftest.er1 >conftest.err
27039 cat conftest.err >&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } && {
27042 test -z "$ac_c_werror_flag" ||
27043 test ! -s conftest.err
27044 } && test -s conftest$ac_exeext &&
27045 $as_test_x conftest$ac_exeext; then
27048 support_crypto="yes"
27051 echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27056 support_crypto="no"
27061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27062 conftest$ac_exeext conftest.$ac_ext
27064 cat >conftest.$ac_ext <<_ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h. */
27071 #include <openssl/evp.h>
27083 rm -f conftest.$ac_objext conftest$ac_exeext
27084 if { (ac_try="$ac_link"
27085 case "(($ac_try" in
27086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087 *) ac_try_echo=$ac_try;;
27089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27090 (eval "$ac_link") 2>conftest.er1
27092 grep -v '^ *+' conftest.er1 >conftest.err
27094 cat conftest.err >&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } && {
27097 test -z "$ac_c_werror_flag" ||
27098 test ! -s conftest.err
27099 } && test -s conftest$ac_exeext &&
27100 $as_test_x conftest$ac_exeext; then
27102 ac_cv_openssl_sha2="yes"
27105 echo "$as_me: failed program was:" >&5
27106 sed 's/^/| /' conftest.$ac_ext >&5
27109 ac_cv_openssl_sha2="no"
27114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27115 conftest$ac_exeext conftest.$ac_ext
27117 cat >conftest.$ac_ext <<_ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h. */
27124 #include <openssl/evp.h>
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (ac_try="$ac_link"
27138 case "(($ac_try" in
27139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140 *) ac_try_echo=$ac_try;;
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143 (eval "$ac_link") 2>conftest.er1
27145 grep -v '^ *+' conftest.er1 >conftest.err
27147 cat conftest.err >&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } && {
27150 test -z "$ac_c_werror_flag" ||
27151 test ! -s conftest.err
27152 } && test -s conftest$ac_exeext &&
27153 $as_test_x conftest$ac_exeext; then
27155 ac_cv_openssl_export="no"
27158 echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27162 ac_cv_openssl_export="yes"
27167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27168 conftest$ac_exeext conftest.$ac_ext
27170 LIBS="${saved_LIBS}"
27171 CFLAGS="${saved_CFLAGS}"
27173 if test "$support_tls" = "yes"; then
27175 cat >>confdefs.h <<\_ACEOF
27176 #define HAVE_OPENSSL 1
27180 cat >>confdefs.h <<\_ACEOF
27185 cat >>confdefs.h <<\_ACEOF
27186 #define HAVE_CRYPTO 1
27191 if test "$ac_cv_openssl_sha2" = "yes"; then
27193 cat >>confdefs.h <<\_ACEOF
27194 #define HAVE_SHA2 1
27199 if test "$ac_cv_openssl_export" = "yes"; then
27201 cat >>confdefs.h <<\_ACEOF
27202 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27208 support_crypto="no"
27213 if test "$support_tls" = "no"; then
27217 if test "$support_crypto" = "no"; then
27222 { echo "$as_me:$LINENO: result: $support_tls" >&5
27223 echo "${ECHO_T}$support_tls" >&6; }
27227 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27228 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27229 if test "${ac_cv_search_dlopen+set}" = set; then
27230 echo $ECHO_N "(cached) $ECHO_C" >&6
27232 ac_func_search_save_LIBS=$LIBS
27233 cat >conftest.$ac_ext <<_ACEOF
27236 cat confdefs.h >>conftest.$ac_ext
27237 cat >>conftest.$ac_ext <<_ACEOF
27238 /* end confdefs.h. */
27240 /* Override any GCC internal prototype to avoid an error.
27241 Use char because int might match the return type of a GCC
27242 builtin and then its argument prototype would still apply. */
27255 for ac_lib in '' dl; do
27256 if test -z "$ac_lib"; then
27257 ac_res="none required"
27260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27262 rm -f conftest.$ac_objext conftest$ac_exeext
27263 if { (ac_try="$ac_link"
27264 case "(($ac_try" in
27265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27266 *) ac_try_echo=$ac_try;;
27268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27269 (eval "$ac_link") 2>conftest.er1
27271 grep -v '^ *+' conftest.er1 >conftest.err
27273 cat conftest.err >&5
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); } && {
27276 test -z "$ac_c_werror_flag" ||
27277 test ! -s conftest.err
27278 } && test -s conftest$ac_exeext &&
27279 $as_test_x conftest$ac_exeext; then
27280 ac_cv_search_dlopen=$ac_res
27282 echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27290 if test "${ac_cv_search_dlopen+set}" = set; then
27294 if test "${ac_cv_search_dlopen+set}" = set; then
27297 ac_cv_search_dlopen=no
27299 rm conftest.$ac_ext
27300 LIBS=$ac_func_search_save_LIBS
27302 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27303 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27304 ac_res=$ac_cv_search_dlopen
27305 if test "$ac_res" != no; then
27306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27311 working_dir=`eval echo ${prefix}/var/bacula/working`
27313 # Check whether --with-working-dir was given.
27314 if test "${with_working_dir+set}" = set; then
27315 withval=$with_working_dir;
27316 if test "x$withval" != "xno" ; then
27317 working_dir=$withval
27328 # Check whether --with-archivedir was given.
27329 if test "${with_archivedir+set}" = set; then
27330 withval=$with_archivedir;
27331 if test "x$withval" != "xno" ; then
27332 archivedir=$withval
27341 basename=`hostname`
27343 # Check whether --with-basename was given.
27344 if test "${with_basename+set}" = set; then
27345 withval=$with_basename;
27346 if test "x$withval" != "xno" ; then
27356 hostname=`uname -n | cut -d '.' -f 1`
27357 if test x${hostname} = x ; then
27358 hostname="localhost"
27361 # Check whether --with-hostname was given.
27362 if test "${with_hostname+set}" = set; then
27363 withval=$with_hostname;
27364 if test "x$withval" != "xno" ; then
27375 scriptdir=`eval echo ${sysconfdir}`
27377 # Check whether --with-scriptdir was given.
27378 if test "${with_scriptdir+set}" = set; then
27379 withval=$with_scriptdir;
27380 if test "x$withval" != "xno" ; then
27393 # Check whether --with-bsrdir was given.
27394 if test "${with_bsrdir+set}" = set; then
27395 withval=$with_bsrdir;
27396 if test "x$withval" != "xno" ; then
27408 # Check whether --with-logdir was given.
27409 if test "${with_logdir+set}" = set; then
27410 withval=$with_logdir;
27411 if test "x$withval" != "xno" ; then
27422 # ------------------------------------------
27423 # Where to place plugindir (plugin files)
27424 # ------------------------------------------
27425 plugindir=`eval echo ${libdir}`
27427 # Check whether --with-plugindir was given.
27428 if test "${with_plugindir+set}" = set; then
27429 withval=$with_plugindir;
27430 if test "x$withval" != "xno" ; then
27440 dump_email=root@localhost
27442 # Check whether --with-dump-email was given.
27443 if test "${with_dump_email+set}" = set; then
27444 withval=$with_dump_email;
27445 if test "x$withval" != "xno" ; then
27446 dump_email=$withval
27455 job_email=root@localhost
27457 # Check whether --with-job-email was given.
27458 if test "${with_job_email+set}" = set; then
27459 withval=$with_job_email;
27460 if test "x$withval" != "xno" ; then
27470 smtp_host=localhost
27472 # Check whether --with-smtp_host was given.
27473 if test "${with_smtp_host+set}" = set; then
27474 withval=$with_smtp_host;
27475 if test "x$withval" != "xno" ; then
27487 # Check whether --with-pid-dir was given.
27488 if test "${with_pid_dir+set}" = set; then
27489 withval=$with_pid_dir;
27490 if test "x$withval" != "xno" ; then
27498 cat >>confdefs.h <<_ACEOF
27499 #define _PATH_BACULA_PIDDIR "$piddir"
27504 subsysdir=/var/run/subsys
27505 if test -d /var/run/subsys; then
27506 subsysdir=/var/run/subsys
27507 elif test -d /var/lock/subsys; then
27508 subsysdir=/var/lock/subsys
27510 subsysdir=/var/run/subsys
27513 # Check whether --with-subsys-dir was given.
27514 if test "${with_subsys_dir+set}" = set; then
27515 withval=$with_subsys_dir;
27516 if test "x$withval" != "xno" ; then
27528 # Check whether --with-baseport was given.
27529 if test "${with_baseport+set}" = set; then
27530 withval=$with_baseport;
27531 if test "x$withval" != "xno" ; then
27540 dir_port=`expr $baseport`
27541 fd_port=`expr $baseport + 1`
27542 sd_port=`expr $fd_port + 1`
27550 # Check whether --with-dir-password was given.
27551 if test "${with_dir_password+set}" = set; then
27552 withval=$with_dir_password;
27553 if test "x$withval" != "xno" ; then
27554 dir_password=$withval
27561 if test "x$dir_password" = "x" ; then
27562 if test "x$OPENSSL" = "xnone" ; then
27563 key=`autoconf/randpass 33`
27565 key=`openssl rand -base64 33`
27572 # Check whether --with-fd-password was given.
27573 if test "${with_fd_password+set}" = set; then
27574 withval=$with_fd_password;
27575 if test "x$withval" != "xno" ; then
27576 fd_password=$withval
27583 if test "x$fd_password" = "x" ; then
27584 if test "x$OPENSSL" = "xnone" ; then
27585 key=`autoconf/randpass 37`
27587 key=`openssl rand -base64 33`
27594 # Check whether --with-sd-password was given.
27595 if test "${with_sd_password+set}" = set; then
27596 withval=$with_sd_password;
27597 if test "x$withval" != "xno" ; then
27598 sd_password=$withval
27605 if test "x$sd_password" = "x" ; then
27606 if test "x$OPENSSL" = "xnone" ; then
27607 key=`autoconf/randpass 41`
27609 key=`openssl rand -base64 33`
27616 # Check whether --with-mon-dir-password was given.
27617 if test "${with_mon_dir_password+set}" = set; then
27618 withval=$with_mon_dir_password;
27619 if test "x$withval" != "xno" ; then
27620 mon_dir_password=$withval
27627 if test "x$mon_dir_password" = "x" ; then
27628 if test "x$OPENSSL" = "xnone" ; then
27629 key=`autoconf/randpass 33`
27631 key=`openssl rand -base64 33`
27633 mon_dir_password=$key
27638 # Check whether --with-mon-fd-password was given.
27639 if test "${with_mon_fd_password+set}" = set; then
27640 withval=$with_mon_fd_password;
27641 if test "x$withval" != "xno" ; then
27642 mon_fd_password=$withval
27649 if test "x$mon_fd_password" = "x" ; then
27650 if test "x$OPENSSL" = "xnone" ; then
27651 key=`autoconf/randpass 37`
27653 key=`openssl rand -base64 33`
27655 mon_fd_password=$key
27660 # Check whether --with-mon-sd-password was given.
27661 if test "${with_mon_sd_password+set}" = set; then
27662 withval=$with_mon_sd_password;
27663 if test "x$withval" != "xno" ; then
27664 mon_sd_password=$withval
27671 if test "x$mon_sd_password" = "x" ; then
27672 if test "x$OPENSSL" = "xnone" ; then
27673 key=`autoconf/randpass 41`
27675 key=`openssl rand -base64 33`
27677 mon_sd_password=$key
27689 # Check whether --with-db_name was given.
27690 if test "${with_db_name+set}" = set; then
27691 withval=$with_db_name;
27692 if test "x$withval" != "x" ; then
27703 # Check whether --with-db_user was given.
27704 if test "${with_db_user+set}" = set; then
27705 withval=$with_db_user;
27706 if test "x$withval" != "x" ; then
27717 # Check whether --with-db_password was given.
27718 if test "${with_db_password+set}" = set; then
27719 withval=$with_db_password;
27720 if test "x$withval" != "x" ; then
27721 db_password=$withval
27731 # Check whether --with-db_port was given.
27732 if test "${with_db_port+set}" = set; then
27733 withval=$with_db_port;
27734 if test "x$withval" != "x" ; then
27744 # Handle users and groups for each daemon
27748 # Check whether --with-dir_user was given.
27749 if test "${with_dir_user+set}" = set; then
27750 withval=$with_dir_user;
27751 if test "x$withval" != "x" ; then
27761 # Check whether --with-dir_group was given.
27762 if test "${with_dir_group+set}" = set; then
27763 withval=$with_dir_group;
27764 if test "x$withval" != "x" ; then
27774 # Check whether --with-sd_user was given.
27775 if test "${with_sd_user+set}" = set; then
27776 withval=$with_sd_user;
27777 if test "x$withval" != "x" ; then
27787 # Check whether --with-sd_group was given.
27788 if test "${with_sd_group+set}" = set; then
27789 withval=$with_sd_group;
27790 if test "x$withval" != "x" ; then
27800 # Check whether --with-fd_user was given.
27801 if test "${with_fd_user+set}" = set; then
27802 withval=$with_fd_user;
27803 if test "x$withval" != "x" ; then
27813 # Check whether --with-fd_group was given.
27814 if test "${with_fd_group+set}" = set; then
27815 withval=$with_fd_group;
27816 if test "x$withval" != "x" ; then
27833 # Check whether --with-sbin-perm was given.
27834 if test "${with_sbin_perm+set}" = set; then
27835 withval=$with_sbin_perm;
27836 if test "x$withval" != "x" ; then
27849 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27850 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27852 # Check whether --with-postgresql was given.
27853 if test "${with_postgresql+set}" = set; then
27854 withval=$with_postgresql;
27855 if test "$withval" != "no"; then
27856 if test "$db_found" = "yes"; then
27857 { echo "$as_me:$LINENO: result: error" >&5
27858 echo "${ECHO_T}error" >&6; }
27859 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27860 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27861 { (exit 1); exit 1; }; };
27863 if test "$withval" = "yes"; then
27864 PG_CONFIG=`which pg_config`
27865 if test -n "$PG_CONFIG";then
27866 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27867 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27868 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27869 elif test -f /usr/local/include/libpq-fe.h; then
27870 POSTGRESQL_INCDIR=/usr/local/include
27871 if test -d /usr/local/lib64; then
27872 POSTGRESQL_LIBDIR=/usr/local/lib64
27874 POSTGRESQL_LIBDIR=/usr/local/lib
27876 POSTGRESQL_BINDIR=/usr/local/bin
27877 elif test -f /usr/include/libpq-fe.h; then
27878 POSTGRESQL_INCDIR=/usr/include
27879 if test -d /usr/lib64; then
27880 POSTGRESQL_LIBDIR=/usr/lib64
27882 POSTGRESQL_LIBDIR=/usr/lib
27884 POSTGRESQL_BINDIR=/usr/bin
27885 elif test -f /usr/include/pgsql/libpq-fe.h; then
27886 POSTGRESQL_INCDIR=/usr/include/pgsql
27887 if test -d /usr/lib64/pgsql; then
27888 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27890 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27892 POSTGRESQL_BINDIR=/usr/bin
27893 elif test -f /usr/include/postgresql/libpq-fe.h; then
27894 POSTGRESQL_INCDIR=/usr/include/postgresql
27895 if test -d /usr/lib64/postgresql; then
27896 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27898 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27900 POSTGRESQL_BINDIR=/usr/bin
27902 { echo "$as_me:$LINENO: result: no" >&5
27903 echo "${ECHO_T}no" >&6; }
27904 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27905 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27906 { (exit 1); exit 1; }; }
27908 elif test -f $withval/include/libpq-fe.h; then
27909 POSTGRESQL_INCDIR=$withval/include
27910 POSTGRESQL_LIBDIR=$withval/lib
27911 POSTGRESQL_BINDIR=$withval/bin
27912 elif test -f $withval/include/postgresql/libpq-fe.h; then
27913 POSTGRESQL_INCDIR=$withval/include/postgresql
27914 if test -d $withval/lib64; then
27915 POSTGRESQL_LIBDIR=$withval/lib64
27917 POSTGRESQL_LIBDIR=$withval/lib
27919 POSTGRESQL_BINDIR=$withval/bin
27921 { echo "$as_me:$LINENO: result: no" >&5
27922 echo "${ECHO_T}no" >&6; }
27923 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27924 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27925 { (exit 1); exit 1; }; }
27927 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27928 { echo "$as_me:$LINENO: checking for crypt" >&5
27929 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27930 if test "${ac_cv_func_crypt+set}" = set; then
27931 echo $ECHO_N "(cached) $ECHO_C" >&6
27933 cat >conftest.$ac_ext <<_ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h. */
27939 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27941 #define crypt innocuous_crypt
27943 /* System header to define __stub macros and hopefully few prototypes,
27944 which can conflict with char crypt (); below.
27945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27946 <limits.h> exists even on freestanding compilers. */
27949 # include <limits.h>
27951 # include <assert.h>
27956 /* Override any GCC internal prototype to avoid an error.
27957 Use char because int might match the return type of a GCC
27958 builtin and then its argument prototype would still apply. */
27963 /* The GNU C library defines this for functions which it implements
27964 to always fail with ENOSYS. Some functions are actually named
27965 something starting with __ and the normal name is an alias. */
27966 #if defined __stub_crypt || defined __stub___crypt
27978 rm -f conftest.$ac_objext conftest$ac_exeext
27979 if { (ac_try="$ac_link"
27980 case "(($ac_try" in
27981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982 *) ac_try_echo=$ac_try;;
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985 (eval "$ac_link") 2>conftest.er1
27987 grep -v '^ *+' conftest.er1 >conftest.err
27989 cat conftest.err >&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } && {
27992 test -z "$ac_c_werror_flag" ||
27993 test ! -s conftest.err
27994 } && test -s conftest$ac_exeext &&
27995 $as_test_x conftest$ac_exeext; then
27996 ac_cv_func_crypt=yes
27998 echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28001 ac_cv_func_crypt=no
28004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28005 conftest$ac_exeext conftest.$ac_ext
28007 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28008 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28009 if test $ac_cv_func_crypt = yes; then
28012 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28013 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28014 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28015 echo $ECHO_N "(cached) $ECHO_C" >&6
28017 ac_check_lib_save_LIBS=$LIBS
28018 LIBS="-lcrypt $LIBS"
28019 cat >conftest.$ac_ext <<_ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h. */
28026 /* Override any GCC internal prototype to avoid an error.
28027 Use char because int might match the return type of a GCC
28028 builtin and then its argument prototype would still apply. */
28041 rm -f conftest.$ac_objext conftest$ac_exeext
28042 if { (ac_try="$ac_link"
28043 case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_link") 2>conftest.er1
28050 grep -v '^ *+' conftest.er1 >conftest.err
28052 cat conftest.err >&5
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); } && {
28055 test -z "$ac_c_werror_flag" ||
28056 test ! -s conftest.err
28057 } && test -s conftest$ac_exeext &&
28058 $as_test_x conftest$ac_exeext; then
28059 ac_cv_lib_crypt_crypt=yes
28061 echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28064 ac_cv_lib_crypt_crypt=no
28067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28068 conftest$ac_exeext conftest.$ac_ext
28069 LIBS=$ac_check_lib_save_LIBS
28071 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28072 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28073 if test $ac_cv_lib_crypt_crypt = yes; then
28074 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28079 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28080 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28081 SQL_BINDIR=$POSTGRESQL_BINDIR
28082 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28084 cat >>confdefs.h <<\_ACEOF
28085 #define HAVE_POSTGRESQL 1
28088 { echo "$as_me:$LINENO: result: yes" >&5
28089 echo "${ECHO_T}yes" >&6; }
28091 support_postgresql=yes
28095 { echo "$as_me:$LINENO: result: no" >&5
28096 echo "${ECHO_T}no" >&6; }
28101 { echo "$as_me:$LINENO: result: no" >&5
28102 echo "${ECHO_T}no" >&6; }
28114 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28115 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28117 # Check whether --with-mysql was given.
28118 if test "${with_mysql+set}" = set; then
28119 withval=$with_mysql;
28120 if test "$withval" != "no"; then
28121 if test "$withval" = "yes"; then
28122 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28123 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28124 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28125 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28126 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28128 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28130 MYSQL_BINDIR=/usr/local/mysql/bin
28131 elif test -f /usr/include/mysql/mysql.h; then
28132 MYSQL_INCDIR=/usr/include/mysql
28133 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28134 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28135 MYSQL_LIBDIR=/usr/lib64/mysql
28136 elif test -f /usr/lib64/libmysqlclient_r.a \
28137 -o -f /usr/lib64/libmysqlclient_r.so; then
28138 MYSQL_LIBDIR=/usr/lib64
28139 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28140 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28141 MYSQL_LIBDIR=/usr/lib/mysql
28143 MYSQL_LIBDIR=/usr/lib
28145 MYSQL_BINDIR=/usr/bin
28146 elif test -f /usr/include/mysql.h; then
28147 MYSQL_INCDIR=/usr/include
28148 if test -f /usr/lib64/libmysqlclient_r.a \
28149 -o -f /usr/lib64/libmysqlclient_r.so; then
28150 MYSQL_LIBDIR=/usr/lib64
28152 MYSQL_LIBDIR=/usr/lib
28154 MYSQL_BINDIR=/usr/bin
28155 elif test -f /usr/local/include/mysql/mysql.h; then
28156 MYSQL_INCDIR=/usr/local/include/mysql
28157 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28158 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28159 MYSQL_LIBDIR=/usr/local/lib64/mysql
28161 MYSQL_LIBDIR=/usr/local/lib/mysql
28163 MYSQL_BINDIR=/usr/local/bin
28164 elif test -f /usr/local/include/mysql.h; then
28165 MYSQL_INCDIR=/usr/local/include
28166 if test -f /usr/local/lib64/libmysqlclient_r.a \
28167 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28168 MYSQL_LIBDIR=/usr/local/lib64
28170 MYSQL_LIBDIR=/usr/local/lib
28172 MYSQL_BINDIR=/usr/local/bin
28174 { echo "$as_me:$LINENO: result: no" >&5
28175 echo "${ECHO_T}no" >&6; }
28176 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28177 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28178 { (exit 1); exit 1; }; }
28181 if test -f $withval/include/mysql/mysql.h; then
28182 MYSQL_INCDIR=$withval/include/mysql
28183 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28184 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28185 MYSQL_LIBDIR=$withval/lib64/mysql
28186 elif test -f $withval/lib64/libmysqlclient_r.a \
28187 -o -f $withval/lib64/libmysqlclient_r.so; then
28188 MYSQL_LIBDIR=$withval/lib64
28189 elif test -f $withval/lib/libmysqlclient_r.a \
28190 -o -f $withval/lib/libmysqlclient_r.so; then
28191 MYSQL_LIBDIR=$withval/lib
28193 MYSQL_LIBDIR=$withval/lib/mysql
28195 MYSQL_BINDIR=$withval/bin
28196 elif test -f $withval/include/mysql.h; then
28197 MYSQL_INCDIR=$withval/include
28198 if test -f $withval/lib64/libmysqlclient_r.a \
28199 -o -f $withval/lib64/libmysqlclient_r.so; then
28200 MYSQL_LIBDIR=$withval/lib64
28202 MYSQL_LIBDIR=$withval/lib
28204 MYSQL_BINDIR=$withval/bin
28206 { echo "$as_me:$LINENO: result: no" >&5
28207 echo "${ECHO_T}no" >&6; }
28208 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28209 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28210 { (exit 1); exit 1; }; }
28213 SQL_INCLUDE=-I$MYSQL_INCDIR
28214 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28215 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28216 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28217 cat >>confdefs.h <<\_ACEOF
28218 #define HAVE_THREAD_SAFE_MYSQL 1
28222 SQL_BINDIR=$MYSQL_BINDIR
28223 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28226 cat >>confdefs.h <<\_ACEOF
28227 #define HAVE_MYSQL 1
28230 { echo "$as_me:$LINENO: result: yes" >&5
28231 echo "${ECHO_T}yes" >&6; }
28238 { echo "$as_me:$LINENO: result: no" >&5
28239 echo "${ECHO_T}no" >&6; }
28247 # Check whether --with-embedded-mysql was given.
28248 if test "${with_embedded_mysql+set}" = set; then
28249 withval=$with_embedded_mysql;
28250 if test "$withval" != "no"; then
28251 if test "$withval" = "yes"; then
28252 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28253 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28254 if test -d /usr/local/mysql/lib64/mysql; then
28255 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28257 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28259 MYSQL_BINDIR=/usr/local/mysql/bin
28260 elif test -f /usr/include/mysql/mysql.h; then
28261 MYSQL_INCDIR=/usr/include/mysql
28262 if test -d /usr/lib64/mysql; then
28263 MYSQL_LIBDIR=/usr/lib64/mysql
28265 MYSQL_LIBDIR=/usr/lib/mysql
28267 MYSQL_BINDIR=/usr/bin
28268 elif test -f /usr/include/mysql.h; then
28269 MYSQL_INCDIR=/usr/include
28270 if test -d /usr/lib64; then
28271 MYSQL_LIBDIR=/usr/lib64
28273 MYSQL_LIBDIR=/usr/lib
28275 MYSQL_BINDIR=/usr/bin
28276 elif test -f /usr/local/include/mysql/mysql.h; then
28277 MYSQL_INCDIR=/usr/local/include/mysql
28278 if test -d /usr/local/lib64/mysql; then
28279 MYSQL_LIBDIR=/usr/local/lib64/mysql
28281 MYSQL_LIBDIR=/usr/local/lib/mysql
28283 MYSQL_BINDIR=/usr/local/bin
28284 elif test -f /usr/local/include/mysql.h; then
28285 MYSQL_INCDIR=/usr/local/include
28286 if test -d /usr/local/lib64; then
28287 MYSQL_LIBDIR=/usr/local/lib64
28289 MYSQL_LIBDIR=/usr/local/lib
28291 MYSQL_BINDIR=/usr/local/bin
28293 { echo "$as_me:$LINENO: result: no" >&5
28294 echo "${ECHO_T}no" >&6; }
28295 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28296 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28297 { (exit 1); exit 1; }; }
28300 if test -f $withval/include/mysql/mysql.h; then
28301 MYSQL_INCDIR=$withval/include/mysql
28302 if test -d $withval/lib64/mysql; then
28303 MYSQL_LIBDIR=$withval/lib64/mysql
28305 MYSQL_LIBDIR=$withval/lib/mysql
28307 MYSQL_BINDIR=$withval/bin
28308 elif test -f $withval/include/mysql.h; then
28309 MYSQL_INCDIR=$withval/include
28310 if test -d $withval/lib64; then
28311 MYSQL_LIBDIR=$withval/lib64
28313 MYSQL_LIBDIR=$withval/lib
28315 MYSQL_BINDIR=$withval/bin
28317 { echo "$as_me:$LINENO: result: no" >&5
28318 echo "${ECHO_T}no" >&6; }
28319 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28320 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28321 { (exit 1); exit 1; }; }
28324 SQL_INCLUDE=-I$MYSQL_INCDIR
28325 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28326 SQL_BINDIR=$MYSQL_BINDIR
28327 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28329 cat >>confdefs.h <<\_ACEOF
28330 #define HAVE_MYSQL 1
28333 cat >>confdefs.h <<\_ACEOF
28334 #define HAVE_EMBEDDED_MYSQL 1
28337 { echo "$as_me:$LINENO: result: yes" >&5
28338 echo "${ECHO_T}yes" >&6; }
28345 { echo "$as_me:$LINENO: result: no" >&5
28346 echo "${ECHO_T}no" >&6; }
28362 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28363 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28365 # Check whether --with-ingres was given.
28366 if test "${with_ingres+set}" = set; then
28367 withval=$with_ingres;
28368 if test "$withval" != "no"; then
28369 if test "$withval" = "yes"; then
28370 if test -f ${II_SYSTEM}/files/eqdefc.h; then
28371 INGRES_INCDIR=${II_SYSTEM}/files
28372 INGRES_LIBDIR=${II_SYSTEM}/lib
28373 INGRES_BINDIR=${II_SYSTEM}/bin
28374 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28375 INGRES_INCDIR=${II_SYSTEM}/ingres/files
28376 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28377 INGRES_BINDIR=${II_SYSTEM}/bin
28379 { echo "$as_me:$LINENO: result: no" >&5
28380 echo "${ECHO_T}no" >&6; }
28381 { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28382 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28383 { (exit 1); exit 1; }; }
28386 if test -f $withval/files/eqdefc.h; then
28387 INGRES_INCDIR=$withval/files
28388 INGRES_LIBDIR=$withval/lib
28389 INGRES_BINDIR=$withval/bin
28391 { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28393 { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&5
28394 echo "$as_me: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&2;}
28395 { (exit 1); exit 1; }; }
28398 SQL_INCLUDE=-I$INGRES_INCDIR
28399 SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
28400 SQL_BINDIR=$INGRES_BINDIR
28401 SQL_LIB=$INGRES_LIBDIR/libingres.a
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_INGRES 1
28407 { echo "$as_me:$LINENO: result: yes" >&5
28408 echo "${ECHO_T}yes" >&6; }
28415 { echo "$as_me:$LINENO: result: no" >&5
28416 echo "${ECHO_T}no" >&6; }
28421 { echo "$as_me:$LINENO: result: no" >&5
28422 echo "${ECHO_T}no" >&6; }
28434 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28435 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28437 # Check whether --with-sqlite3 was given.
28438 if test "${with_sqlite3+set}" = set; then
28439 withval=$with_sqlite3;
28440 if test "$withval" != "no"; then
28441 if test "$withval" = "yes"; then
28442 if test -f /usr/local/include/sqlite3.h; then
28443 SQLITE_INCDIR=/usr/local/include
28444 if test -d /usr/local/lib64; then
28445 SQLITE_LIBDIR=/usr/local/lib64
28447 SQLITE_LIBDIR=/usr/local/lib
28449 SQLITE_BINDIR=/usr/local/bin
28450 elif test -f /usr/include/sqlite3.h; then
28451 SQLITE_INCDIR=/usr/include
28452 if test -d /usr/lib64; then
28453 SQLITE_LIBDIR=/usr/lib64
28455 SQLITE_LIBDIR=/usr/lib
28457 SQLITE_BINDIR=/usr/bin
28458 elif test -f $prefix/include/sqlite3.h; then
28459 SQLITE_INCDIR=$prefix/include
28460 if test -d $prefix/lib64; then
28461 SQLITE_LIBDIR=$prefix/lib64
28463 SQLITE_LIBDIR=$prefix/lib
28465 SQLITE_BINDIR=$prefix/bin
28467 { echo "$as_me:$LINENO: result: no" >&5
28468 echo "${ECHO_T}no" >&6; }
28469 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28470 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28471 { (exit 1); exit 1; }; }
28474 if test -f $withval/sqlite3.h; then
28475 SQLITE_INCDIR=$withval
28476 SQLITE_LIBDIR=$withval
28477 SQLITE_BINDIR=$withval
28478 elif test -f $withval/include/sqlite3.h; then
28479 SQLITE_INCDIR=$withval/include
28480 if test -d $withval/lib64; then
28481 SQLITE_LIBDIR=$withval/lib64
28483 SQLITE_LIBDIR=$withval/lib
28485 SQLITE_BINDIR=$withval/bin
28487 { echo "$as_me:$LINENO: result: no" >&5
28488 echo "${ECHO_T}no" >&6; }
28489 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28490 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28491 { (exit 1); exit 1; }; }
28494 SQL_INCLUDE=-I$SQLITE_INCDIR
28495 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28496 SQL_BINDIR=$SQLITE_BINDIR
28497 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28499 cat >>confdefs.h <<\_ACEOF
28500 #define HAVE_SQLITE3 1
28503 { echo "$as_me:$LINENO: result: yes" >&5
28504 echo "${ECHO_T}yes" >&6; }
28506 support_sqlite3=yes
28511 { echo "$as_me:$LINENO: result: no" >&5
28512 echo "${ECHO_T}no" >&6; }
28517 { echo "$as_me:$LINENO: result: no" >&5
28518 echo "${ECHO_T}no" >&6; }
28528 # BA_CHECK_SQLITE_DB
28532 { echo "$as_me:$LINENO: checking for DBI support" >&5
28533 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28535 # Check whether --with-dbi was given.
28536 if test "${with_dbi+set}" = set; then
28538 if test "$withval" != "no"; then
28539 if test "$withval" = "yes"; then
28540 if test -f /usr/local/include/dbi/dbi.h; then
28541 DBI_INCDIR=/usr/local/dbi/include
28542 if test -d /usr/local/lib64; then
28543 DBI_LIBDIR=/usr/local/lib64
28545 DBI_LIBDIR=/usr/local/lib
28547 DBI_BINDIR=/usr/local/bin
28548 elif test -f /usr/include/dbi/dbi.h; then
28549 DBI_INCDIR=/usr/include
28550 if test -d /usr/lib64; then
28551 DBI_LIBDIR=/usr/lib64
28553 DBI_LIBDIR=/usr/lib
28555 DBI_BINDIR=/usr/bin
28556 elif test -f $prefix/include/dbi/dbi.h; then
28557 DBI_INCDIR=$prefix/include
28558 if test -d $prefix/lib64; then
28559 DBI_LIBDIR=$prefix/lib64
28561 DBI_LIBDIR=$prefix/lib
28563 DBI_BINDIR=$prefix/bin
28565 { echo "$as_me:$LINENO: result: no" >&5
28566 echo "${ECHO_T}no" >&6; }
28567 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28568 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28569 { (exit 1); exit 1; }; }
28571 if test -d /usr/local/lib/dbd; then
28572 DRIVERDIR=/usr/local/lib/dbd
28573 if test -d /usr/local/lib64/dbd; then
28574 DRIVERDIR=/usr/local/lib64/dbd
28576 DRIVERDIR=/usr/local/lib/dbd
28578 elif test -d /usr/lib/dbd; then
28579 DRIVERDIR=/usr/lib/dbd
28580 if test -d /usr/lib64/dbd; then
28581 DRIVERDIR=/usr/lib64/dbd
28583 DRIVERDIR=/usr/lib/dbd
28585 elif test -d $prefix/lib/dbd; then
28586 if test -d $prefix/lib64/dbd; then
28587 DRIVERDIR=$prefix/lib64/dbd
28589 DRIVERDIR=$prefix/lib/dbd
28591 elif test -d /usr/local/lib64/dbd; then
28592 DRIVERDIR=/usr/local/lib64/dbd
28593 elif test -d /usr/lib64/dbd; then
28594 DRIVERDIR=/usr/lib64/dbd
28595 elif test -d $prefix/lib64/dbd; then
28596 DRIVERDIR=$prefix/lib64/dbd
28598 { echo "$as_me:$LINENO: result: no" >&5
28599 echo "${ECHO_T}no" >&6; }
28600 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28601 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28602 { (exit 1); exit 1; }; }
28605 if test -f $withval/dbi.h; then
28606 DBI_INCDIR=$withval
28607 DBI_LIBDIR=$withval
28608 DBI_BINDIR=$withval
28609 elif test -f $withval/include/dbi/dbi.h; then
28610 DBI_INCDIR=$withval/include
28611 if test -d $withval/lib64; then
28612 DBI_LIBDIR=$withval/lib64
28614 DBI_LIBDIR=$withval/lib
28616 DBI_BINDIR=$withval/bin
28618 { echo "$as_me:$LINENO: result: no" >&5
28619 echo "${ECHO_T}no" >&6; }
28620 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28621 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28622 { (exit 1); exit 1; }; }
28624 if test -d $withval/dbd; then
28625 DRIVERDIR=$withval/dbd
28626 elif test -d $withval/lib/; then
28627 if test -d $withval/lib64/dbd; then
28628 DRIVERDIR=$withval/lib64/dbd
28630 DRIVERDIR=$withval/lib/dbd
28632 elif test -d $withval/lib64/dbd; then
28633 DRIVERDIR=$withval/lib64/dbd
28635 { echo "$as_me:$LINENO: result: no" >&5
28636 echo "${ECHO_T}no" >&6; }
28637 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28638 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28639 { (exit 1); exit 1; }; }
28642 SQL_INCLUDE=-I$DBI_INCDIR
28643 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28644 SQL_BINDIR=$DBI_BINDIR
28645 SQL_LIB=$DBI_LIBDIR/libdbi.a
28646 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28649 cat >>confdefs.h <<\_ACEOF
28653 { echo "$as_me:$LINENO: result: yes" >&5
28654 echo "${ECHO_T}yes" >&6; }
28662 { echo "$as_me:$LINENO: result: no" >&5
28663 echo "${ECHO_T}no" >&6; }
28668 { echo "$as_me:$LINENO: result: no" >&5
28669 echo "${ECHO_T}no" >&6; }
28684 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28685 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28687 # Check whether --with-dbi-driver was given.
28688 if test "${with_dbi_driver+set}" = set; then
28689 withval=$with_dbi_driver;
28690 if test "$withval" != "no"; then
28694 if test -f /usr/local/mysql/bin/mysql; then
28695 SQL_BINDIR=/usr/local/mysql/bin
28696 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28697 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28698 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28700 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28702 elif test -f /usr/bin/mysql; then
28703 SQL_BINDIR=/usr/bin
28704 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28705 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28706 SQL_LIBDIR=/usr/lib64/mysql
28707 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28708 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28709 SQL_LIBDIR=/usr/lib/mysql
28711 SQL_LIBDIR=/usr/lib
28713 elif test -f /usr/local/bin/mysql; then
28714 SQL_BINDIR=/usr/local/bin
28715 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28716 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28717 SQL_LIBDIR=/usr/local/lib64/mysql
28718 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28719 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28720 SQL_LIBDIR=/usr/local/lib/mysql
28722 SQL_LIBDIR=/usr/local/lib
28724 elif test -f $withval/bin/mysql; then
28725 SQL_BINDIR=$withval/bin
28726 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28727 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28728 SQL_LIBDIR=$withval/lib64/mysql
28729 elif test -f $withval/lib64/libmysqlclient_r.a \
28730 -o -f $withval/lib64/libmysqlclient_r.so; then
28731 SQL_LIBDIR=$withval/lib64
28732 elif test -f $withval/lib/libmysqlclient_r.a \
28733 -o -f $withval/lib/libmysqlclient_r.so; then
28734 SQL_LIBDIR=$withval/lib/
28736 SQL_LIBDIR=$withval/lib/mysql
28739 { echo "$as_me:$LINENO: result: no" >&5
28740 echo "${ECHO_T}no" >&6; }
28741 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28742 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28743 { (exit 1); exit 1; }; }
28745 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28746 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28748 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28752 db_prog="postgresql"
28753 PG_CONFIG=`which pg_config`
28754 if test -n "$PG_CONFIG"; then
28755 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28756 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28757 elif test -f /usr/local/bin/psql; then
28758 SQL_BINDIR=/usr/local/bin
28759 if test -d /usr/local/lib64; then
28760 SQL_LIBDIR=/usr/local/lib64
28762 SQL_LIBDIR=/usr/local/lib
28764 elif test -f /usr/bin/psql; then
28765 SQL_BINDIR=/usr/local/bin
28766 if test -d /usr/lib64/postgresql; then
28767 SQL_LIBDIR=/usr/lib64/postgresql
28768 elif test -d /usr/lib/postgresql; then
28769 SQL_LIBDIR=/usr/lib/postgresql
28770 elif test -d /usr/lib64; then
28771 SQL_LIBDIR=/usr/lib64
28773 SQL_LIBDIR=/usr/lib
28775 elif test -f $withval/bin/psql; then
28776 SQL_BINDIR=$withval/bin
28777 if test -d $withval/lib64; then
28778 SQL_LIBDIR=$withval/lib64
28780 SQL_LIBDIR=$withval/lib
28783 { echo "$as_me:$LINENO: result: no" >&5
28784 echo "${ECHO_T}no" >&6; }
28785 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28786 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28787 { (exit 1); exit 1; }; }
28789 if test -f $SQL_LIBDIR/libpq.so; then
28790 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28792 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28797 if test -f /usr/local/bin/sqlite; then
28798 SQL_BINDIR=/usr/local/bin
28799 if test -d /usr/local/lib64; then
28800 SQL_LIBDIR=/usr/local/lib64
28802 SQL_LIBDIR=/usr/local/lib
28804 elif test -f /usr/bin/sqlite; then
28805 SQL_BINDIR=/usr/bin
28806 if test -d /usr/lib64; then
28807 SQL_LIBDIR=/usr/lib64
28809 SQL_LIBDIR=/usr/lib
28811 elif test -f $withval/bin/sqlite; then
28812 SQL_BINDIR=$withval/bin
28813 if test -d $withval/lib64; then
28814 SQL_LIBDIR=$withval/lib64
28816 SQL_LIBDIR=$withval/lib
28819 { echo "$as_me:$LINENO: result: no" >&5
28820 echo "${ECHO_T}no" >&6; }
28821 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28822 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28823 { (exit 1); exit 1; }; }
28825 if test -f $SQL_LIBDIR/libsqlite.so; then
28826 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28828 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28833 if test -f /usr/local/bin/sqlite3; then
28834 SQL_BINDIR=/usr/local/bin
28835 if test -d /usr/local/lib64; then
28836 SQL_LIBDIR=/usr/local/lib64
28838 SQL_LIBDIR=/usr/local/lib
28840 elif test -f /usr/bin/sqlite3; then
28841 SQL_BINDIR=/usr/bin
28842 if test -d /usr/lib64; then
28843 SQL_LIBDIR=/usr/lib64
28845 SQL_LIBDIR=/usr/lib
28847 elif test -f $withval/bin/sqlite3; then
28848 SQL_BINDIR=$withval/bin
28849 if test -d $withval/lib64; then
28850 SQL_LIBDIR=$withval/lib64
28852 SQL_LIBDIR=$withval/lib
28855 { echo "$as_me:$LINENO: result: no" >&5
28856 echo "${ECHO_T}no" >&6; }
28857 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28858 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28859 { (exit 1); exit 1; }; }
28861 if test -f $SQL_LIBDIR/libsqlite3.so; then
28862 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28864 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28868 { echo "$as_me:$LINENO: result: no" >&5
28869 echo "${ECHO_T}no" >&6; }
28870 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28871 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28872 { (exit 1); exit 1; }; }
28876 { echo "$as_me:$LINENO: result: yes" >&5
28877 echo "${ECHO_T}yes" >&6; }
28880 { echo "$as_me:$LINENO: result: no" >&5
28881 echo "${ECHO_T}no" >&6; }
28886 { echo "$as_me:$LINENO: result: no" >&5
28887 echo "${ECHO_T}no" >&6; }
28900 support_batch_insert=no
28901 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28903 if test $pkg = 0; then
28904 support_batch_insert=yes
28905 # Check whether --enable-batch-insert was given.
28906 if test "${enable_batch_insert+set}" = set; then
28907 enableval=$enable_batch_insert;
28908 if test x$enableval = xno; then
28909 support_batch_insert=no
28911 support_batch_insert=yes
28919 if test x$DB_TYPE = xpostgresql; then
28920 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28921 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28922 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28923 echo $ECHO_N "(cached) $ECHO_C" >&6
28925 ac_check_lib_save_LIBS=$LIBS
28927 cat >conftest.$ac_ext <<_ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h. */
28934 /* Override any GCC internal prototype to avoid an error.
28935 Use char because int might match the return type of a GCC
28936 builtin and then its argument prototype would still apply. */
28940 char PQisthreadsafe ();
28944 return PQisthreadsafe ();
28949 rm -f conftest.$ac_objext conftest$ac_exeext
28950 if { (ac_try="$ac_link"
28951 case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_link") 2>conftest.er1
28958 grep -v '^ *+' conftest.er1 >conftest.err
28960 cat conftest.err >&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); } && {
28963 test -z "$ac_c_werror_flag" ||
28964 test ! -s conftest.err
28965 } && test -s conftest$ac_exeext &&
28966 $as_test_x conftest$ac_exeext; then
28967 ac_cv_lib_pq_PQisthreadsafe=yes
28969 echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28972 ac_cv_lib_pq_PQisthreadsafe=no
28975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28976 conftest$ac_exeext conftest.$ac_ext
28977 LIBS=$ac_check_lib_save_LIBS
28979 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28980 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28981 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28983 cat >>confdefs.h <<\_ACEOF
28984 #define HAVE_PQISTHREADSAFE 1
28989 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28990 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28991 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28992 echo $ECHO_N "(cached) $ECHO_C" >&6
28994 ac_check_lib_save_LIBS=$LIBS
28996 cat >conftest.$ac_ext <<_ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h. */
29003 /* Override any GCC internal prototype to avoid an error.
29004 Use char because int might match the return type of a GCC
29005 builtin and then its argument prototype would still apply. */
29009 char PQputCopyData ();
29013 return PQputCopyData ();
29018 rm -f conftest.$ac_objext conftest$ac_exeext
29019 if { (ac_try="$ac_link"
29020 case "(($ac_try" in
29021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29022 *) ac_try_echo=$ac_try;;
29024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29025 (eval "$ac_link") 2>conftest.er1
29027 grep -v '^ *+' conftest.er1 >conftest.err
29029 cat conftest.err >&5
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); } && {
29032 test -z "$ac_c_werror_flag" ||
29033 test ! -s conftest.err
29034 } && test -s conftest$ac_exeext &&
29035 $as_test_x conftest$ac_exeext; then
29036 ac_cv_lib_pq_PQputCopyData=yes
29038 echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29041 ac_cv_lib_pq_PQputCopyData=no
29044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29045 conftest$ac_exeext conftest.$ac_ext
29046 LIBS=$ac_check_lib_save_LIBS
29048 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29049 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29050 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29052 cat >>confdefs.h <<\_ACEOF
29053 #define HAVE_PQ_COPY 1
29058 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29060 support_batch_insert=no
29064 if test x$DB_TYPE = xdbi; then
29068 if test $DB_PROG = postgresql; then
29069 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29070 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29071 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29072 echo $ECHO_N "(cached) $ECHO_C" >&6
29074 ac_check_lib_save_LIBS=$LIBS
29076 cat >conftest.$ac_ext <<_ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h. */
29083 /* Override any GCC internal prototype to avoid an error.
29084 Use char because int might match the return type of a GCC
29085 builtin and then its argument prototype would still apply. */
29089 char PQisthreadsafe ();
29093 return PQisthreadsafe ();
29098 rm -f conftest.$ac_objext conftest$ac_exeext
29099 if { (ac_try="$ac_link"
29100 case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_link") 2>conftest.er1
29107 grep -v '^ *+' conftest.er1 >conftest.err
29109 cat conftest.err >&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); } && {
29112 test -z "$ac_c_werror_flag" ||
29113 test ! -s conftest.err
29114 } && test -s conftest$ac_exeext &&
29115 $as_test_x conftest$ac_exeext; then
29116 ac_cv_lib_pq_PQisthreadsafe=yes
29118 echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29121 ac_cv_lib_pq_PQisthreadsafe=no
29124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29125 conftest$ac_exeext conftest.$ac_ext
29126 LIBS=$ac_check_lib_save_LIBS
29128 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29129 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29130 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29131 cat >>confdefs.h <<\_ACEOF
29132 #define HAVE_PQISTHREADSAFE 1
29137 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29138 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29139 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29142 ac_check_lib_save_LIBS=$LIBS
29144 cat >conftest.$ac_ext <<_ACEOF
29147 cat confdefs.h >>conftest.$ac_ext
29148 cat >>conftest.$ac_ext <<_ACEOF
29149 /* end confdefs.h. */
29151 /* Override any GCC internal prototype to avoid an error.
29152 Use char because int might match the return type of a GCC
29153 builtin and then its argument prototype would still apply. */
29157 char PQputCopyData ();
29161 return PQputCopyData ();
29166 rm -f conftest.$ac_objext conftest$ac_exeext
29167 if { (ac_try="$ac_link"
29168 case "(($ac_try" in
29169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170 *) ac_try_echo=$ac_try;;
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173 (eval "$ac_link") 2>conftest.er1
29175 grep -v '^ *+' conftest.er1 >conftest.err
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } && {
29180 test -z "$ac_c_werror_flag" ||
29181 test ! -s conftest.err
29182 } && test -s conftest$ac_exeext &&
29183 $as_test_x conftest$ac_exeext; then
29184 ac_cv_lib_pq_PQputCopyData=yes
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 ac_cv_lib_pq_PQputCopyData=no
29192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29193 conftest$ac_exeext conftest.$ac_ext
29194 LIBS=$ac_check_lib_save_LIBS
29196 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29197 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29198 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29199 cat >>confdefs.h <<\_ACEOF
29200 #define HAVE_PQ_COPY 1
29205 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29209 if test $DB_PROG = mysql; then
29210 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29214 if test $DB_PROG = sqlite3; then
29215 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29219 if test $pkg = 0; then
29220 # Check whether --enable-batch-insert was given.
29221 if test "${enable_batch_insert+set}" = set; then
29222 enableval=$enable_batch_insert;
29223 if test x$enableval = xno; then
29224 support_batch_insert=no
29226 support_batch_insert=yes
29239 if test $support_batch_insert = yes ; then
29241 cat >>confdefs.h <<\_ACEOF
29242 #define HAVE_BATCH_FILE_INSERT 1
29247 cat >>confdefs.h <<\_ACEOF
29248 #define PROTOTYPES 1
29252 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29253 if test -z "$CCOPTS"; then
29254 CCOPTS='-g -O2 -Wall'
29261 largefile_support="no"
29263 # Check whether --enable-largefile was given.
29264 if test "${enable_largefile+set}" = set; then
29265 enableval=$enable_largefile;
29268 if test "$enable_largefile" != no; then
29269 if test -n "$ac_tool_prefix"; then
29270 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29271 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29274 if test "${ac_cv_prog_GETCONF+set}" = set; then
29275 echo $ECHO_N "(cached) $ECHO_C" >&6
29277 if test -n "$GETCONF"; then
29278 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29281 for as_dir in $PATH
29284 test -z "$as_dir" && as_dir=.
29285 for ac_exec_ext in '' $ac_executable_extensions; do
29286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29287 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29297 GETCONF=$ac_cv_prog_GETCONF
29298 if test -n "$GETCONF"; then
29299 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29300 echo "${ECHO_T}$GETCONF" >&6; }
29302 { echo "$as_me:$LINENO: result: no" >&5
29303 echo "${ECHO_T}no" >&6; }
29308 if test -z "$ac_cv_prog_GETCONF"; then
29309 ac_ct_GETCONF=$GETCONF
29310 # Extract the first word of "getconf", so it can be a program name with args.
29311 set dummy getconf; ac_word=$2
29312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29314 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29315 echo $ECHO_N "(cached) $ECHO_C" >&6
29317 if test -n "$ac_ct_GETCONF"; then
29318 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29321 for as_dir in $PATH
29324 test -z "$as_dir" && as_dir=.
29325 for ac_exec_ext in '' $ac_executable_extensions; do
29326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29327 ac_cv_prog_ac_ct_GETCONF="getconf"
29328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29337 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29338 if test -n "$ac_ct_GETCONF"; then
29339 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29340 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29342 { echo "$as_me:$LINENO: result: no" >&5
29343 echo "${ECHO_T}no" >&6; }
29346 if test "x$ac_ct_GETCONF" = x; then
29349 case $cross_compiling:$ac_tool_warned in
29351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29352 whose name does not start with the host triplet. If you think this
29353 configuration is useful to you, please write to autoconf@gnu.org." >&5
29354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29355 whose name does not start with the host triplet. If you think this
29356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29357 ac_tool_warned=yes ;;
29359 GETCONF=$ac_ct_GETCONF
29362 GETCONF="$ac_cv_prog_GETCONF"
29365 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29366 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29367 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29371 ac_cv_sys_largefile_CFLAGS=no
29373 # IRIX 6.2 and later require cc -n32.
29374 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29375 if test "$GCC" != yes; then
29376 ac_cv_sys_largefile_CFLAGS=-n32
29379 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29380 cat >conftest.$ac_ext <<_ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h. */
29395 rm -f conftest.$ac_objext conftest$ac_exeext
29396 if { (ac_try="$ac_link"
29397 case "(($ac_try" in
29398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399 *) ac_try_echo=$ac_try;;
29401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402 (eval "$ac_link") 2>conftest.er1
29404 grep -v '^ *+' conftest.er1 >conftest.err
29406 cat conftest.err >&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); } && {
29409 test -z "$ac_c_werror_flag" ||
29410 test ! -s conftest.err
29411 } && test -s conftest$ac_exeext &&
29412 $as_test_x conftest$ac_exeext; then
29415 echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29418 ac_cv_sys_largefile_CFLAGS=no
29421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29422 conftest$ac_exeext conftest.$ac_ext
29427 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29428 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29429 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29430 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29431 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29434 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29435 ac_cv_sys_largefile_LDFLAGS=no
29439 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29440 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29441 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29442 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29443 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29446 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29447 ac_cv_sys_largefile_LIBS=no
29451 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29452 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29454 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29457 -D_FILE_OFFSET_BITS=*) ;;
29458 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29459 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29464 case "$CPPFLAGS" in
29465 '') CPPFLAGS="$ac_flag" ;;
29466 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29474 '') CFLAGS="$ac_flag" ;;
29475 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29480 case "$ac_cv_sys_largefile_LDFLAGS" in
29484 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29485 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29488 case "$ac_cv_sys_largefile_LIBS" in
29492 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29493 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29496 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29497 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29498 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29499 echo $ECHO_N "(cached) $ECHO_C" >&6
29501 ac_cv_sys_file_offset_bits=no
29502 ac_cv_sys_file_offset_bits=64
29503 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29505 -D_FILE_OFFSET_BITS)
29506 ac_cv_sys_file_offset_bits=1 ;;
29507 -D_FILE_OFFSET_BITS=*)
29508 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29513 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29514 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29515 if test "$ac_cv_sys_file_offset_bits" != no; then
29517 cat >>confdefs.h <<_ACEOF
29518 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29522 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29523 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29524 if test "${ac_cv_sys_largefile_source+set}" = set; then
29525 echo $ECHO_N "(cached) $ECHO_C" >&6
29527 ac_cv_sys_largefile_source=no
29528 ac_cv_sys_largefile_source=1
29529 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29531 -D_LARGEFILE_SOURCE)
29532 ac_cv_sys_largefile_source=1 ;;
29533 -D_LARGEFILE_SOURCE=*)
29534 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29539 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29540 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29541 if test "$ac_cv_sys_largefile_source" != no; then
29543 cat >>confdefs.h <<_ACEOF
29544 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29548 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29549 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29550 if test "${ac_cv_sys_large_files+set}" = set; then
29551 echo $ECHO_N "(cached) $ECHO_C" >&6
29553 ac_cv_sys_large_files=no
29554 ac_cv_sys_large_files=1
29555 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29558 ac_cv_sys_large_files=1 ;;
29560 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29565 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29566 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29567 if test "$ac_cv_sys_large_files" != no; then
29569 cat >>confdefs.h <<_ACEOF
29570 #define _LARGE_FILES $ac_cv_sys_large_files
29577 { echo "$as_me:$LINENO: checking for X" >&5
29578 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29581 # Check whether --with-x was given.
29582 if test "${with_x+set}" = set; then
29586 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29587 if test "x$with_x" = xno; then
29588 # The user explicitly disabled X.
29591 case $x_includes,$x_libraries in #(
29592 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29593 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29594 { (exit 1); exit 1; }; };; #(
29595 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29596 echo $ECHO_N "(cached) $ECHO_C" >&6
29598 # One or both of the vars are not set, and there is no cached value.
29599 ac_x_includes=no ac_x_libraries=no
29600 rm -f -r conftest.dir
29601 if mkdir conftest.dir; then
29603 cat >Imakefile <<'_ACEOF'
29605 @echo incroot='${INCROOT}'
29607 @echo usrlibdir='${USRLIBDIR}'
29609 @echo libdir='${LIBDIR}'
29611 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29613 for ac_var in incroot usrlibdir libdir; do
29614 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29616 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29617 for ac_extension in a so sl; do
29618 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29619 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29620 ac_im_usrlibdir=$ac_im_libdir; break
29623 # Screen out bogus values from the imake configuration. They are
29624 # bogus both because they are the default anyway, and because
29625 # using them would break gcc on systems where it needs fixed includes.
29626 case $ac_im_incroot in
29627 /usr/include) ac_x_includes= ;;
29628 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29630 case $ac_im_usrlibdir in
29631 /usr/lib | /lib) ;;
29632 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29636 rm -f -r conftest.dir
29639 # Standard set of common directories for X headers.
29640 # Check X11 before X11Rn because it is often a symlink to the current release.
29652 /usr/local/X11/include
29653 /usr/local/X11R6/include
29654 /usr/local/X11R5/include
29655 /usr/local/X11R4/include
29657 /usr/local/include/X11
29658 /usr/local/include/X11R6
29659 /usr/local/include/X11R5
29660 /usr/local/include/X11R4
29664 /usr/XFree86/include/X11
29668 /usr/unsupported/include
29669 /usr/athena/include
29670 /usr/local/x11r5/include
29671 /usr/lpp/Xamples/include
29673 /usr/openwin/include
29674 /usr/openwin/share/include'
29676 if test "$ac_x_includes" = no; then
29677 # Guess where to find include files, by looking for Xlib.h.
29678 # First, try using that file with no special directory specified.
29679 cat >conftest.$ac_ext <<_ACEOF
29682 cat confdefs.h >>conftest.$ac_ext
29683 cat >>conftest.$ac_ext <<_ACEOF
29684 /* end confdefs.h. */
29685 #include <X11/Xlib.h>
29687 if { (ac_try="$ac_cpp conftest.$ac_ext"
29688 case "(($ac_try" in
29689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690 *) ac_try_echo=$ac_try;;
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29695 grep -v '^ *+' conftest.er1 >conftest.err
29697 cat conftest.err >&5
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } >/dev/null && {
29700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29701 test ! -s conftest.err
29703 # We can compile using X headers with no special include directory.
29706 echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29709 for ac_dir in $ac_x_header_dirs; do
29710 if test -r "$ac_dir/X11/Xlib.h"; then
29711 ac_x_includes=$ac_dir
29717 rm -f conftest.err conftest.$ac_ext
29718 fi # $ac_x_includes = no
29720 if test "$ac_x_libraries" = no; then
29721 # Check for the libraries.
29722 # See if we find them without any special options.
29723 # Don't add to $LIBS permanently.
29726 cat >conftest.$ac_ext <<_ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h. */
29732 #include <X11/Xlib.h>
29741 rm -f conftest.$ac_objext conftest$ac_exeext
29742 if { (ac_try="$ac_link"
29743 case "(($ac_try" in
29744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745 *) ac_try_echo=$ac_try;;
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748 (eval "$ac_link") 2>conftest.er1
29750 grep -v '^ *+' conftest.er1 >conftest.err
29752 cat conftest.err >&5
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); } && {
29755 test -z "$ac_c_werror_flag" ||
29756 test ! -s conftest.err
29757 } && test -s conftest$ac_exeext &&
29758 $as_test_x conftest$ac_exeext; then
29760 # We can link X programs with no special library path.
29763 echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29767 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29769 # Don't even attempt the hair of trying to link an X program!
29770 for ac_extension in a so sl; do
29771 if test -r "$ac_dir/libX11.$ac_extension"; then
29772 ac_x_libraries=$ac_dir
29779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29780 conftest$ac_exeext conftest.$ac_ext
29781 fi # $ac_x_libraries = no
29783 case $ac_x_includes,$ac_x_libraries in #(
29784 no,* | *,no | *\'*)
29785 # Didn't find X, or a directory has "'" in its name.
29786 ac_cv_have_x="have_x=no";; #(
29788 # Record where we found X for the cache.
29789 ac_cv_have_x="have_x=yes\
29790 ac_x_includes='$ac_x_includes'\
29791 ac_x_libraries='$ac_x_libraries'"
29797 eval "$ac_cv_have_x"
29800 if test "$have_x" != yes; then
29801 { echo "$as_me:$LINENO: result: $have_x" >&5
29802 echo "${ECHO_T}$have_x" >&6; }
29805 # If each of the values was on the command line, it overrides each guess.
29806 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29807 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29808 # Update the cache value to reflect the command line values.
29809 ac_cv_have_x="have_x=yes\
29810 ac_x_includes='$x_includes'\
29811 ac_x_libraries='$x_libraries'"
29812 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29813 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29816 if test "$no_x" = yes; then
29817 # Not all programs may use this symbol, but it does not hurt to define it.
29819 cat >>confdefs.h <<\_ACEOF
29820 #define X_DISPLAY_MISSING 1
29823 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29825 if test -n "$x_includes"; then
29826 X_CFLAGS="$X_CFLAGS -I$x_includes"
29829 # It would also be nice to do this for all -L options, not just this one.
29830 if test -n "$x_libraries"; then
29831 X_LIBS="$X_LIBS -L$x_libraries"
29832 # For Solaris; some versions of Sun CC require a space after -R and
29833 # others require no space. Words are not sufficient . . . .
29834 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29835 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29836 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29837 ac_xsave_c_werror_flag=$ac_c_werror_flag
29838 ac_c_werror_flag=yes
29839 cat >conftest.$ac_ext <<_ACEOF
29842 cat confdefs.h >>conftest.$ac_ext
29843 cat >>conftest.$ac_ext <<_ACEOF
29844 /* end confdefs.h. */
29854 rm -f conftest.$ac_objext conftest$ac_exeext
29855 if { (ac_try="$ac_link"
29856 case "(($ac_try" in
29857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29858 *) ac_try_echo=$ac_try;;
29860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29861 (eval "$ac_link") 2>conftest.er1
29863 grep -v '^ *+' conftest.er1 >conftest.err
29865 cat conftest.err >&5
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); } && {
29868 test -z "$ac_c_werror_flag" ||
29869 test ! -s conftest.err
29870 } && test -s conftest$ac_exeext &&
29871 $as_test_x conftest$ac_exeext; then
29872 { echo "$as_me:$LINENO: result: no" >&5
29873 echo "${ECHO_T}no" >&6; }
29874 X_LIBS="$X_LIBS -R$x_libraries"
29876 echo "$as_me: failed program was:" >&5
29877 sed 's/^/| /' conftest.$ac_ext >&5
29879 LIBS="$ac_xsave_LIBS -R $x_libraries"
29880 cat >conftest.$ac_ext <<_ACEOF
29883 cat confdefs.h >>conftest.$ac_ext
29884 cat >>conftest.$ac_ext <<_ACEOF
29885 /* end confdefs.h. */
29895 rm -f conftest.$ac_objext conftest$ac_exeext
29896 if { (ac_try="$ac_link"
29897 case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_link") 2>conftest.er1
29904 grep -v '^ *+' conftest.er1 >conftest.err
29906 cat conftest.err >&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); } && {
29909 test -z "$ac_c_werror_flag" ||
29910 test ! -s conftest.err
29911 } && test -s conftest$ac_exeext &&
29912 $as_test_x conftest$ac_exeext; then
29913 { echo "$as_me:$LINENO: result: yes" >&5
29914 echo "${ECHO_T}yes" >&6; }
29915 X_LIBS="$X_LIBS -R $x_libraries"
29917 echo "$as_me: failed program was:" >&5
29918 sed 's/^/| /' conftest.$ac_ext >&5
29920 { echo "$as_me:$LINENO: result: neither works" >&5
29921 echo "${ECHO_T}neither works" >&6; }
29924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29925 conftest$ac_exeext conftest.$ac_ext
29928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29929 conftest$ac_exeext conftest.$ac_ext
29930 ac_c_werror_flag=$ac_xsave_c_werror_flag
29931 LIBS=$ac_xsave_LIBS
29934 # Check for system-dependent libraries X programs must link with.
29935 # Do this before checking for the system-independent R6 libraries
29936 # (-lICE), since we may need -lsocket or whatever for X linking.
29938 if test "$ISC" = yes; then
29939 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29941 # Martyn Johnson says this is needed for Ultrix, if the X
29942 # libraries were built with DECnet support. And Karl Berry says
29943 # the Alpha needs dnet_stub (dnet does not exist).
29944 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29945 cat >conftest.$ac_ext <<_ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h. */
29952 /* Override any GCC internal prototype to avoid an error.
29953 Use char because int might match the return type of a GCC
29954 builtin and then its argument prototype would still apply. */
29958 char XOpenDisplay ();
29962 return XOpenDisplay ();
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (ac_try="$ac_link"
29969 case "(($ac_try" in
29970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971 *) ac_try_echo=$ac_try;;
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974 (eval "$ac_link") 2>conftest.er1
29976 grep -v '^ *+' conftest.er1 >conftest.err
29978 cat conftest.err >&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } && {
29981 test -z "$ac_c_werror_flag" ||
29982 test ! -s conftest.err
29983 } && test -s conftest$ac_exeext &&
29984 $as_test_x conftest$ac_exeext; then
29987 echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29990 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29991 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29992 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29993 echo $ECHO_N "(cached) $ECHO_C" >&6
29995 ac_check_lib_save_LIBS=$LIBS
29996 LIBS="-ldnet $LIBS"
29997 cat >conftest.$ac_ext <<_ACEOF
30000 cat confdefs.h >>conftest.$ac_ext
30001 cat >>conftest.$ac_ext <<_ACEOF
30002 /* end confdefs.h. */
30004 /* Override any GCC internal prototype to avoid an error.
30005 Use char because int might match the return type of a GCC
30006 builtin and then its argument prototype would still apply. */
30014 return dnet_ntoa ();
30019 rm -f conftest.$ac_objext conftest$ac_exeext
30020 if { (ac_try="$ac_link"
30021 case "(($ac_try" in
30022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023 *) ac_try_echo=$ac_try;;
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026 (eval "$ac_link") 2>conftest.er1
30028 grep -v '^ *+' conftest.er1 >conftest.err
30030 cat conftest.err >&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } && {
30033 test -z "$ac_c_werror_flag" ||
30034 test ! -s conftest.err
30035 } && test -s conftest$ac_exeext &&
30036 $as_test_x conftest$ac_exeext; then
30037 ac_cv_lib_dnet_dnet_ntoa=yes
30039 echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30042 ac_cv_lib_dnet_dnet_ntoa=no
30045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30046 conftest$ac_exeext conftest.$ac_ext
30047 LIBS=$ac_check_lib_save_LIBS
30049 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30050 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30051 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30052 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30055 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30056 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30057 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30058 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30059 echo $ECHO_N "(cached) $ECHO_C" >&6
30061 ac_check_lib_save_LIBS=$LIBS
30062 LIBS="-ldnet_stub $LIBS"
30063 cat >conftest.$ac_ext <<_ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h. */
30070 /* Override any GCC internal prototype to avoid an error.
30071 Use char because int might match the return type of a GCC
30072 builtin and then its argument prototype would still apply. */
30080 return dnet_ntoa ();
30085 rm -f conftest.$ac_objext conftest$ac_exeext
30086 if { (ac_try="$ac_link"
30087 case "(($ac_try" in
30088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089 *) ac_try_echo=$ac_try;;
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092 (eval "$ac_link") 2>conftest.er1
30094 grep -v '^ *+' conftest.er1 >conftest.err
30096 cat conftest.err >&5
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); } && {
30099 test -z "$ac_c_werror_flag" ||
30100 test ! -s conftest.err
30101 } && test -s conftest$ac_exeext &&
30102 $as_test_x conftest$ac_exeext; then
30103 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 ac_cv_lib_dnet_stub_dnet_ntoa=no
30111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30112 conftest$ac_exeext conftest.$ac_ext
30113 LIBS=$ac_check_lib_save_LIBS
30115 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30116 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30117 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30118 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30125 conftest$ac_exeext conftest.$ac_ext
30126 LIBS="$ac_xsave_LIBS"
30128 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30129 # to get the SysV transport functions.
30130 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30132 # The nsl library prevents programs from opening the X display
30133 # on Irix 5.2, according to T.E. Dickey.
30134 # The functions gethostbyname, getservbyname, and inet_addr are
30135 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30136 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30137 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30138 if test "${ac_cv_func_gethostbyname+set}" = set; then
30139 echo $ECHO_N "(cached) $ECHO_C" >&6
30141 cat >conftest.$ac_ext <<_ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h. */
30147 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30149 #define gethostbyname innocuous_gethostbyname
30151 /* System header to define __stub macros and hopefully few prototypes,
30152 which can conflict with char gethostbyname (); below.
30153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30154 <limits.h> exists even on freestanding compilers. */
30157 # include <limits.h>
30159 # include <assert.h>
30162 #undef gethostbyname
30164 /* Override any GCC internal prototype to avoid an error.
30165 Use char because int might match the return type of a GCC
30166 builtin and then its argument prototype would still apply. */
30170 char gethostbyname ();
30171 /* The GNU C library defines this for functions which it implements
30172 to always fail with ENOSYS. Some functions are actually named
30173 something starting with __ and the normal name is an alias. */
30174 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30181 return gethostbyname ();
30186 rm -f conftest.$ac_objext conftest$ac_exeext
30187 if { (ac_try="$ac_link"
30188 case "(($ac_try" in
30189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30190 *) ac_try_echo=$ac_try;;
30192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30193 (eval "$ac_link") 2>conftest.er1
30195 grep -v '^ *+' conftest.er1 >conftest.err
30197 cat conftest.err >&5
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); } && {
30200 test -z "$ac_c_werror_flag" ||
30201 test ! -s conftest.err
30202 } && test -s conftest$ac_exeext &&
30203 $as_test_x conftest$ac_exeext; then
30204 ac_cv_func_gethostbyname=yes
30206 echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.$ac_ext >&5
30209 ac_cv_func_gethostbyname=no
30212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30213 conftest$ac_exeext conftest.$ac_ext
30215 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30216 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30218 if test $ac_cv_func_gethostbyname = no; then
30219 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30220 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30221 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30222 echo $ECHO_N "(cached) $ECHO_C" >&6
30224 ac_check_lib_save_LIBS=$LIBS
30226 cat >conftest.$ac_ext <<_ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h. */
30233 /* Override any GCC internal prototype to avoid an error.
30234 Use char because int might match the return type of a GCC
30235 builtin and then its argument prototype would still apply. */
30239 char gethostbyname ();
30243 return gethostbyname ();
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252 *) ac_try_echo=$ac_try;;
30254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30255 (eval "$ac_link") 2>conftest.er1
30257 grep -v '^ *+' conftest.er1 >conftest.err
30259 cat conftest.err >&5
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); } && {
30262 test -z "$ac_c_werror_flag" ||
30263 test ! -s conftest.err
30264 } && test -s conftest$ac_exeext &&
30265 $as_test_x conftest$ac_exeext; then
30266 ac_cv_lib_nsl_gethostbyname=yes
30268 echo "$as_me: failed program was:" >&5
30269 sed 's/^/| /' conftest.$ac_ext >&5
30271 ac_cv_lib_nsl_gethostbyname=no
30274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30275 conftest$ac_exeext conftest.$ac_ext
30276 LIBS=$ac_check_lib_save_LIBS
30278 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30279 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30280 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30284 if test $ac_cv_lib_nsl_gethostbyname = no; then
30285 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30286 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30287 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30288 echo $ECHO_N "(cached) $ECHO_C" >&6
30290 ac_check_lib_save_LIBS=$LIBS
30292 cat >conftest.$ac_ext <<_ACEOF
30295 cat confdefs.h >>conftest.$ac_ext
30296 cat >>conftest.$ac_ext <<_ACEOF
30297 /* end confdefs.h. */
30299 /* Override any GCC internal prototype to avoid an error.
30300 Use char because int might match the return type of a GCC
30301 builtin and then its argument prototype would still apply. */
30305 char gethostbyname ();
30309 return gethostbyname ();
30314 rm -f conftest.$ac_objext conftest$ac_exeext
30315 if { (ac_try="$ac_link"
30316 case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_link") 2>conftest.er1
30323 grep -v '^ *+' conftest.er1 >conftest.err
30325 cat conftest.err >&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); } && {
30328 test -z "$ac_c_werror_flag" ||
30329 test ! -s conftest.err
30330 } && test -s conftest$ac_exeext &&
30331 $as_test_x conftest$ac_exeext; then
30332 ac_cv_lib_bsd_gethostbyname=yes
30334 echo "$as_me: failed program was:" >&5
30335 sed 's/^/| /' conftest.$ac_ext >&5
30337 ac_cv_lib_bsd_gethostbyname=no
30340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30341 conftest$ac_exeext conftest.$ac_ext
30342 LIBS=$ac_check_lib_save_LIBS
30344 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30345 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30346 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30347 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30353 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30354 # socket/setsockopt and other routines are undefined under SCO ODT
30355 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30356 # on later versions), says Simon Leinen: it contains gethostby*
30357 # variants that don't use the name server (or something). -lsocket
30358 # must be given before -lnsl if both are needed. We assume that
30359 # if connect needs -lnsl, so does gethostbyname.
30360 { echo "$as_me:$LINENO: checking for connect" >&5
30361 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30362 if test "${ac_cv_func_connect+set}" = set; then
30363 echo $ECHO_N "(cached) $ECHO_C" >&6
30365 cat >conftest.$ac_ext <<_ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h. */
30371 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30373 #define connect innocuous_connect
30375 /* System header to define __stub macros and hopefully few prototypes,
30376 which can conflict with char connect (); below.
30377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30378 <limits.h> exists even on freestanding compilers. */
30381 # include <limits.h>
30383 # include <assert.h>
30388 /* Override any GCC internal prototype to avoid an error.
30389 Use char because int might match the return type of a GCC
30390 builtin and then its argument prototype would still apply. */
30395 /* The GNU C library defines this for functions which it implements
30396 to always fail with ENOSYS. Some functions are actually named
30397 something starting with __ and the normal name is an alias. */
30398 #if defined __stub_connect || defined __stub___connect
30410 rm -f conftest.$ac_objext conftest$ac_exeext
30411 if { (ac_try="$ac_link"
30412 case "(($ac_try" in
30413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414 *) ac_try_echo=$ac_try;;
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417 (eval "$ac_link") 2>conftest.er1
30419 grep -v '^ *+' conftest.er1 >conftest.err
30421 cat conftest.err >&5
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); } && {
30424 test -z "$ac_c_werror_flag" ||
30425 test ! -s conftest.err
30426 } && test -s conftest$ac_exeext &&
30427 $as_test_x conftest$ac_exeext; then
30428 ac_cv_func_connect=yes
30430 echo "$as_me: failed program was:" >&5
30431 sed 's/^/| /' conftest.$ac_ext >&5
30433 ac_cv_func_connect=no
30436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30437 conftest$ac_exeext conftest.$ac_ext
30439 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30440 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30442 if test $ac_cv_func_connect = no; then
30443 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30444 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30445 if test "${ac_cv_lib_socket_connect+set}" = set; then
30446 echo $ECHO_N "(cached) $ECHO_C" >&6
30448 ac_check_lib_save_LIBS=$LIBS
30449 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30450 cat >conftest.$ac_ext <<_ACEOF
30453 cat confdefs.h >>conftest.$ac_ext
30454 cat >>conftest.$ac_ext <<_ACEOF
30455 /* end confdefs.h. */
30457 /* Override any GCC internal prototype to avoid an error.
30458 Use char because int might match the return type of a GCC
30459 builtin and then its argument prototype would still apply. */
30472 rm -f conftest.$ac_objext conftest$ac_exeext
30473 if { (ac_try="$ac_link"
30474 case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_link") 2>conftest.er1
30481 grep -v '^ *+' conftest.er1 >conftest.err
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } && {
30486 test -z "$ac_c_werror_flag" ||
30487 test ! -s conftest.err
30488 } && test -s conftest$ac_exeext &&
30489 $as_test_x conftest$ac_exeext; then
30490 ac_cv_lib_socket_connect=yes
30492 echo "$as_me: failed program was:" >&5
30493 sed 's/^/| /' conftest.$ac_ext >&5
30495 ac_cv_lib_socket_connect=no
30498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30499 conftest$ac_exeext conftest.$ac_ext
30500 LIBS=$ac_check_lib_save_LIBS
30502 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30503 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30504 if test $ac_cv_lib_socket_connect = yes; then
30505 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30510 # Guillermo Gomez says -lposix is necessary on A/UX.
30511 { echo "$as_me:$LINENO: checking for remove" >&5
30512 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30513 if test "${ac_cv_func_remove+set}" = set; then
30514 echo $ECHO_N "(cached) $ECHO_C" >&6
30516 cat >conftest.$ac_ext <<_ACEOF
30519 cat confdefs.h >>conftest.$ac_ext
30520 cat >>conftest.$ac_ext <<_ACEOF
30521 /* end confdefs.h. */
30522 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30524 #define remove innocuous_remove
30526 /* System header to define __stub macros and hopefully few prototypes,
30527 which can conflict with char remove (); below.
30528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30529 <limits.h> exists even on freestanding compilers. */
30532 # include <limits.h>
30534 # include <assert.h>
30539 /* Override any GCC internal prototype to avoid an error.
30540 Use char because int might match the return type of a GCC
30541 builtin and then its argument prototype would still apply. */
30546 /* The GNU C library defines this for functions which it implements
30547 to always fail with ENOSYS. Some functions are actually named
30548 something starting with __ and the normal name is an alias. */
30549 #if defined __stub_remove || defined __stub___remove
30561 rm -f conftest.$ac_objext conftest$ac_exeext
30562 if { (ac_try="$ac_link"
30563 case "(($ac_try" in
30564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565 *) ac_try_echo=$ac_try;;
30567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568 (eval "$ac_link") 2>conftest.er1
30570 grep -v '^ *+' conftest.er1 >conftest.err
30572 cat conftest.err >&5
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); } && {
30575 test -z "$ac_c_werror_flag" ||
30576 test ! -s conftest.err
30577 } && test -s conftest$ac_exeext &&
30578 $as_test_x conftest$ac_exeext; then
30579 ac_cv_func_remove=yes
30581 echo "$as_me: failed program was:" >&5
30582 sed 's/^/| /' conftest.$ac_ext >&5
30584 ac_cv_func_remove=no
30587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30588 conftest$ac_exeext conftest.$ac_ext
30590 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30591 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30593 if test $ac_cv_func_remove = no; then
30594 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30595 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30596 if test "${ac_cv_lib_posix_remove+set}" = set; then
30597 echo $ECHO_N "(cached) $ECHO_C" >&6
30599 ac_check_lib_save_LIBS=$LIBS
30600 LIBS="-lposix $LIBS"
30601 cat >conftest.$ac_ext <<_ACEOF
30604 cat confdefs.h >>conftest.$ac_ext
30605 cat >>conftest.$ac_ext <<_ACEOF
30606 /* end confdefs.h. */
30608 /* Override any GCC internal prototype to avoid an error.
30609 Use char because int might match the return type of a GCC
30610 builtin and then its argument prototype would still apply. */
30623 rm -f conftest.$ac_objext conftest$ac_exeext
30624 if { (ac_try="$ac_link"
30625 case "(($ac_try" in
30626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30627 *) ac_try_echo=$ac_try;;
30629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30630 (eval "$ac_link") 2>conftest.er1
30632 grep -v '^ *+' conftest.er1 >conftest.err
30634 cat conftest.err >&5
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); } && {
30637 test -z "$ac_c_werror_flag" ||
30638 test ! -s conftest.err
30639 } && test -s conftest$ac_exeext &&
30640 $as_test_x conftest$ac_exeext; then
30641 ac_cv_lib_posix_remove=yes
30643 echo "$as_me: failed program was:" >&5
30644 sed 's/^/| /' conftest.$ac_ext >&5
30646 ac_cv_lib_posix_remove=no
30649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30650 conftest$ac_exeext conftest.$ac_ext
30651 LIBS=$ac_check_lib_save_LIBS
30653 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30654 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30655 if test $ac_cv_lib_posix_remove = yes; then
30656 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30661 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30662 { echo "$as_me:$LINENO: checking for shmat" >&5
30663 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30664 if test "${ac_cv_func_shmat+set}" = set; then
30665 echo $ECHO_N "(cached) $ECHO_C" >&6
30667 cat >conftest.$ac_ext <<_ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h. */
30673 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30675 #define shmat innocuous_shmat
30677 /* System header to define __stub macros and hopefully few prototypes,
30678 which can conflict with char shmat (); below.
30679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30680 <limits.h> exists even on freestanding compilers. */
30683 # include <limits.h>
30685 # include <assert.h>
30690 /* Override any GCC internal prototype to avoid an error.
30691 Use char because int might match the return type of a GCC
30692 builtin and then its argument prototype would still apply. */
30697 /* The GNU C library defines this for functions which it implements
30698 to always fail with ENOSYS. Some functions are actually named
30699 something starting with __ and the normal name is an alias. */
30700 #if defined __stub_shmat || defined __stub___shmat
30712 rm -f conftest.$ac_objext conftest$ac_exeext
30713 if { (ac_try="$ac_link"
30714 case "(($ac_try" in
30715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716 *) ac_try_echo=$ac_try;;
30718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719 (eval "$ac_link") 2>conftest.er1
30721 grep -v '^ *+' conftest.er1 >conftest.err
30723 cat conftest.err >&5
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); } && {
30726 test -z "$ac_c_werror_flag" ||
30727 test ! -s conftest.err
30728 } && test -s conftest$ac_exeext &&
30729 $as_test_x conftest$ac_exeext; then
30730 ac_cv_func_shmat=yes
30732 echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.$ac_ext >&5
30735 ac_cv_func_shmat=no
30738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30739 conftest$ac_exeext conftest.$ac_ext
30741 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30742 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30744 if test $ac_cv_func_shmat = no; then
30745 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30746 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30747 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30748 echo $ECHO_N "(cached) $ECHO_C" >&6
30750 ac_check_lib_save_LIBS=$LIBS
30752 cat >conftest.$ac_ext <<_ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h. */
30759 /* Override any GCC internal prototype to avoid an error.
30760 Use char because int might match the return type of a GCC
30761 builtin and then its argument prototype would still apply. */
30774 rm -f conftest.$ac_objext conftest$ac_exeext
30775 if { (ac_try="$ac_link"
30776 case "(($ac_try" in
30777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778 *) ac_try_echo=$ac_try;;
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781 (eval "$ac_link") 2>conftest.er1
30783 grep -v '^ *+' conftest.er1 >conftest.err
30785 cat conftest.err >&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } && {
30788 test -z "$ac_c_werror_flag" ||
30789 test ! -s conftest.err
30790 } && test -s conftest$ac_exeext &&
30791 $as_test_x conftest$ac_exeext; then
30792 ac_cv_lib_ipc_shmat=yes
30794 echo "$as_me: failed program was:" >&5
30795 sed 's/^/| /' conftest.$ac_ext >&5
30797 ac_cv_lib_ipc_shmat=no
30800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30801 conftest$ac_exeext conftest.$ac_ext
30802 LIBS=$ac_check_lib_save_LIBS
30804 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30805 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30806 if test $ac_cv_lib_ipc_shmat = yes; then
30807 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30813 # Check for libraries that X11R6 Xt/Xaw programs need.
30814 ac_save_LDFLAGS=$LDFLAGS
30815 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30816 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30817 # check for ICE first), but we must link in the order -lSM -lICE or
30818 # we get undefined symbols. So assume we have SM if we have ICE.
30819 # These have to be linked with before -lX11, unlike the other
30820 # libraries we check for below, so use a different variable.
30821 # John Interrante, Karl Berry
30822 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30823 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30824 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30825 echo $ECHO_N "(cached) $ECHO_C" >&6
30827 ac_check_lib_save_LIBS=$LIBS
30828 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30829 cat >conftest.$ac_ext <<_ACEOF
30832 cat confdefs.h >>conftest.$ac_ext
30833 cat >>conftest.$ac_ext <<_ACEOF
30834 /* end confdefs.h. */
30836 /* Override any GCC internal prototype to avoid an error.
30837 Use char because int might match the return type of a GCC
30838 builtin and then its argument prototype would still apply. */
30842 char IceConnectionNumber ();
30846 return IceConnectionNumber ();
30851 rm -f conftest.$ac_objext conftest$ac_exeext
30852 if { (ac_try="$ac_link"
30853 case "(($ac_try" in
30854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30855 *) ac_try_echo=$ac_try;;
30857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30858 (eval "$ac_link") 2>conftest.er1
30860 grep -v '^ *+' conftest.er1 >conftest.err
30862 cat conftest.err >&5
30863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864 (exit $ac_status); } && {
30865 test -z "$ac_c_werror_flag" ||
30866 test ! -s conftest.err
30867 } && test -s conftest$ac_exeext &&
30868 $as_test_x conftest$ac_exeext; then
30869 ac_cv_lib_ICE_IceConnectionNumber=yes
30871 echo "$as_me: failed program was:" >&5
30872 sed 's/^/| /' conftest.$ac_ext >&5
30874 ac_cv_lib_ICE_IceConnectionNumber=no
30877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30878 conftest$ac_exeext conftest.$ac_ext
30879 LIBS=$ac_check_lib_save_LIBS
30881 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30882 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30883 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30884 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30887 LDFLAGS=$ac_save_LDFLAGS
30953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30958 echo $ECHO_N "(cached) $ECHO_C" >&6
30960 ac_res=`eval echo '${'$as_ac_Header'}'`
30961 { echo "$as_me:$LINENO: result: $ac_res" >&5
30962 echo "${ECHO_T}$ac_res" >&6; }
30964 # Is the header compilable?
30965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30967 cat >conftest.$ac_ext <<_ACEOF
30970 cat confdefs.h >>conftest.$ac_ext
30971 cat >>conftest.$ac_ext <<_ACEOF
30972 /* end confdefs.h. */
30973 $ac_includes_default
30974 #include <$ac_header>
30976 rm -f conftest.$ac_objext
30977 if { (ac_try="$ac_compile"
30978 case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_compile") 2>conftest.er1
30985 grep -v '^ *+' conftest.er1 >conftest.err
30987 cat conftest.err >&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } && {
30990 test -z "$ac_c_werror_flag" ||
30991 test ! -s conftest.err
30992 } && test -s conftest.$ac_objext; then
30993 ac_header_compiler=yes
30995 echo "$as_me: failed program was:" >&5
30996 sed 's/^/| /' conftest.$ac_ext >&5
30998 ac_header_compiler=no
31001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31003 echo "${ECHO_T}$ac_header_compiler" >&6; }
31005 # Is the header present?
31006 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31008 cat >conftest.$ac_ext <<_ACEOF
31011 cat confdefs.h >>conftest.$ac_ext
31012 cat >>conftest.$ac_ext <<_ACEOF
31013 /* end confdefs.h. */
31014 #include <$ac_header>
31016 if { (ac_try="$ac_cpp conftest.$ac_ext"
31017 case "(($ac_try" in
31018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019 *) ac_try_echo=$ac_try;;
31021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31024 grep -v '^ *+' conftest.er1 >conftest.err
31026 cat conftest.err >&5
31027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028 (exit $ac_status); } >/dev/null && {
31029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31030 test ! -s conftest.err
31032 ac_header_preproc=yes
31034 echo "$as_me: failed program was:" >&5
31035 sed 's/^/| /' conftest.$ac_ext >&5
31037 ac_header_preproc=no
31040 rm -f conftest.err conftest.$ac_ext
31041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31042 echo "${ECHO_T}$ac_header_preproc" >&6; }
31044 # So? What about this header?
31045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31051 ac_header_preproc=yes
31054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31072 echo $ECHO_N "(cached) $ECHO_C" >&6
31074 eval "$as_ac_Header=\$ac_header_preproc"
31076 ac_res=`eval echo '${'$as_ac_Header'}'`
31077 { echo "$as_me:$LINENO: result: $ac_res" >&5
31078 echo "${ECHO_T}$ac_res" >&6; }
31081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31082 cat >>confdefs.h <<_ACEOF
31083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31090 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31092 if test "${ac_cv_header_stdc+set}" = set; then
31093 echo $ECHO_N "(cached) $ECHO_C" >&6
31095 cat >conftest.$ac_ext <<_ACEOF
31098 cat confdefs.h >>conftest.$ac_ext
31099 cat >>conftest.$ac_ext <<_ACEOF
31100 /* end confdefs.h. */
31101 #include <stdlib.h>
31102 #include <stdarg.h>
31103 #include <string.h>
31114 rm -f conftest.$ac_objext
31115 if { (ac_try="$ac_compile"
31116 case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_compile") 2>conftest.er1
31123 grep -v '^ *+' conftest.er1 >conftest.err
31125 cat conftest.err >&5
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); } && {
31128 test -z "$ac_c_werror_flag" ||
31129 test ! -s conftest.err
31130 } && test -s conftest.$ac_objext; then
31131 ac_cv_header_stdc=yes
31133 echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.$ac_ext >&5
31136 ac_cv_header_stdc=no
31139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31141 if test $ac_cv_header_stdc = yes; then
31142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31143 cat >conftest.$ac_ext <<_ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h. */
31149 #include <string.h>
31152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31153 $EGREP "memchr" >/dev/null 2>&1; then
31156 ac_cv_header_stdc=no
31162 if test $ac_cv_header_stdc = yes; then
31163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31164 cat >conftest.$ac_ext <<_ACEOF
31167 cat confdefs.h >>conftest.$ac_ext
31168 cat >>conftest.$ac_ext <<_ACEOF
31169 /* end confdefs.h. */
31170 #include <stdlib.h>
31173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31174 $EGREP "free" >/dev/null 2>&1; then
31177 ac_cv_header_stdc=no
31183 if test $ac_cv_header_stdc = yes; then
31184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31185 if test "$cross_compiling" = yes; then
31188 cat >conftest.$ac_ext <<_ACEOF
31191 cat confdefs.h >>conftest.$ac_ext
31192 cat >>conftest.$ac_ext <<_ACEOF
31193 /* end confdefs.h. */
31195 #include <stdlib.h>
31196 #if ((' ' & 0x0FF) == 0x020)
31197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31200 # define ISLOWER(c) \
31201 (('a' <= (c) && (c) <= 'i') \
31202 || ('j' <= (c) && (c) <= 'r') \
31203 || ('s' <= (c) && (c) <= 'z'))
31204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31212 for (i = 0; i < 256; i++)
31213 if (XOR (islower (i), ISLOWER (i))
31214 || toupper (i) != TOUPPER (i))
31219 rm -f conftest$ac_exeext
31220 if { (ac_try="$ac_link"
31221 case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_link") 2>&5
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31230 { (case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_try") 2>&5
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; }; then
31241 echo "$as_me: program exited with status $ac_status" >&5
31242 echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.$ac_ext >&5
31245 ( exit $ac_status )
31246 ac_cv_header_stdc=no
31248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31254 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31255 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31256 if test $ac_cv_header_stdc = yes; then
31258 cat >>confdefs.h <<\_ACEOF
31259 #define STDC_HEADERS 1
31264 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31265 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31266 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
31269 cat >conftest.$ac_ext <<_ACEOF
31272 cat confdefs.h >>conftest.$ac_ext
31273 cat >>conftest.$ac_ext <<_ACEOF
31274 /* end confdefs.h. */
31275 #include <sys/types.h>
31279 return makedev(0, 0);
31284 rm -f conftest.$ac_objext conftest$ac_exeext
31285 if { (ac_try="$ac_link"
31286 case "(($ac_try" in
31287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31288 *) ac_try_echo=$ac_try;;
31290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31291 (eval "$ac_link") 2>conftest.er1
31293 grep -v '^ *+' conftest.er1 >conftest.err
31295 cat conftest.err >&5
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); } && {
31298 test -z "$ac_c_werror_flag" ||
31299 test ! -s conftest.err
31300 } && test -s conftest$ac_exeext &&
31301 $as_test_x conftest$ac_exeext; then
31302 ac_cv_header_sys_types_h_makedev=yes
31304 echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31307 ac_cv_header_sys_types_h_makedev=no
31310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31311 conftest$ac_exeext conftest.$ac_ext
31314 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31315 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31317 if test $ac_cv_header_sys_types_h_makedev = no; then
31318 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31319 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31320 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31321 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31322 echo $ECHO_N "(cached) $ECHO_C" >&6
31324 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31325 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31327 # Is the header compilable?
31328 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31329 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31330 cat >conftest.$ac_ext <<_ACEOF
31333 cat confdefs.h >>conftest.$ac_ext
31334 cat >>conftest.$ac_ext <<_ACEOF
31335 /* end confdefs.h. */
31336 $ac_includes_default
31337 #include <sys/mkdev.h>
31339 rm -f conftest.$ac_objext
31340 if { (ac_try="$ac_compile"
31341 case "(($ac_try" in
31342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343 *) ac_try_echo=$ac_try;;
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346 (eval "$ac_compile") 2>conftest.er1
31348 grep -v '^ *+' conftest.er1 >conftest.err
31350 cat conftest.err >&5
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); } && {
31353 test -z "$ac_c_werror_flag" ||
31354 test ! -s conftest.err
31355 } && test -s conftest.$ac_objext; then
31356 ac_header_compiler=yes
31358 echo "$as_me: failed program was:" >&5
31359 sed 's/^/| /' conftest.$ac_ext >&5
31361 ac_header_compiler=no
31364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31366 echo "${ECHO_T}$ac_header_compiler" >&6; }
31368 # Is the header present?
31369 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31370 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31371 cat >conftest.$ac_ext <<_ACEOF
31374 cat confdefs.h >>conftest.$ac_ext
31375 cat >>conftest.$ac_ext <<_ACEOF
31376 /* end confdefs.h. */
31377 #include <sys/mkdev.h>
31379 if { (ac_try="$ac_cpp conftest.$ac_ext"
31380 case "(($ac_try" in
31381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31382 *) ac_try_echo=$ac_try;;
31384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31387 grep -v '^ *+' conftest.er1 >conftest.err
31389 cat conftest.err >&5
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); } >/dev/null && {
31392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31393 test ! -s conftest.err
31395 ac_header_preproc=yes
31397 echo "$as_me: failed program was:" >&5
31398 sed 's/^/| /' conftest.$ac_ext >&5
31400 ac_header_preproc=no
31403 rm -f conftest.err conftest.$ac_ext
31404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31405 echo "${ECHO_T}$ac_header_preproc" >&6; }
31407 # So? What about this header?
31408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31410 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31411 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31412 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31413 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31414 ac_header_preproc=yes
31417 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31418 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31419 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31420 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31421 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31422 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31423 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31424 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31425 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31426 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31427 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31428 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31432 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31433 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31434 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31435 echo $ECHO_N "(cached) $ECHO_C" >&6
31437 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31439 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31440 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31443 if test $ac_cv_header_sys_mkdev_h = yes; then
31445 cat >>confdefs.h <<\_ACEOF
31446 #define MAJOR_IN_MKDEV 1
31453 if test $ac_cv_header_sys_mkdev_h = no; then
31454 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31455 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31456 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31457 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31458 echo $ECHO_N "(cached) $ECHO_C" >&6
31460 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31461 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31463 # Is the header compilable?
31464 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31465 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31466 cat >conftest.$ac_ext <<_ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h. */
31472 $ac_includes_default
31473 #include <sys/sysmacros.h>
31475 rm -f conftest.$ac_objext
31476 if { (ac_try="$ac_compile"
31477 case "(($ac_try" in
31478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31479 *) ac_try_echo=$ac_try;;
31481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31482 (eval "$ac_compile") 2>conftest.er1
31484 grep -v '^ *+' conftest.er1 >conftest.err
31486 cat conftest.err >&5
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); } && {
31489 test -z "$ac_c_werror_flag" ||
31490 test ! -s conftest.err
31491 } && test -s conftest.$ac_objext; then
31492 ac_header_compiler=yes
31494 echo "$as_me: failed program was:" >&5
31495 sed 's/^/| /' conftest.$ac_ext >&5
31497 ac_header_compiler=no
31500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31502 echo "${ECHO_T}$ac_header_compiler" >&6; }
31504 # Is the header present?
31505 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31506 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31507 cat >conftest.$ac_ext <<_ACEOF
31510 cat confdefs.h >>conftest.$ac_ext
31511 cat >>conftest.$ac_ext <<_ACEOF
31512 /* end confdefs.h. */
31513 #include <sys/sysmacros.h>
31515 if { (ac_try="$ac_cpp conftest.$ac_ext"
31516 case "(($ac_try" in
31517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518 *) ac_try_echo=$ac_try;;
31520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31523 grep -v '^ *+' conftest.er1 >conftest.err
31525 cat conftest.err >&5
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); } >/dev/null && {
31528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31529 test ! -s conftest.err
31531 ac_header_preproc=yes
31533 echo "$as_me: failed program was:" >&5
31534 sed 's/^/| /' conftest.$ac_ext >&5
31536 ac_header_preproc=no
31539 rm -f conftest.err conftest.$ac_ext
31540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31541 echo "${ECHO_T}$ac_header_preproc" >&6; }
31543 # So? What about this header?
31544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31546 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31547 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31548 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31549 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31550 ac_header_preproc=yes
31553 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31554 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31555 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31556 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31557 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31558 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31559 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31560 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31561 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31562 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31563 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31564 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31568 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31569 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31570 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31571 echo $ECHO_N "(cached) $ECHO_C" >&6
31573 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31575 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31576 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31579 if test $ac_cv_header_sys_sysmacros_h = yes; then
31581 cat >>confdefs.h <<\_ACEOF
31582 #define MAJOR_IN_SYSMACROS 1
31596 ac_header_dirent=no
31597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31598 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31599 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31602 echo $ECHO_N "(cached) $ECHO_C" >&6
31604 cat >conftest.$ac_ext <<_ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h. */
31610 #include <sys/types.h>
31622 rm -f conftest.$ac_objext
31623 if { (ac_try="$ac_compile"
31624 case "(($ac_try" in
31625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626 *) ac_try_echo=$ac_try;;
31628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629 (eval "$ac_compile") 2>conftest.er1
31631 grep -v '^ *+' conftest.er1 >conftest.err
31633 cat conftest.err >&5
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } && {
31636 test -z "$ac_c_werror_flag" ||
31637 test ! -s conftest.err
31638 } && test -s conftest.$ac_objext; then
31639 eval "$as_ac_Header=yes"
31641 echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31644 eval "$as_ac_Header=no"
31647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31649 ac_res=`eval echo '${'$as_ac_Header'}'`
31650 { echo "$as_me:$LINENO: result: $ac_res" >&5
31651 echo "${ECHO_T}$ac_res" >&6; }
31652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31653 cat >>confdefs.h <<_ACEOF
31654 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31657 ac_header_dirent=$ac_hdr; break
31661 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31662 if test $ac_header_dirent = dirent.h; then
31663 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31664 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31665 if test "${ac_cv_search_opendir+set}" = set; then
31666 echo $ECHO_N "(cached) $ECHO_C" >&6
31668 ac_func_search_save_LIBS=$LIBS
31669 cat >conftest.$ac_ext <<_ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h. */
31676 /* Override any GCC internal prototype to avoid an error.
31677 Use char because int might match the return type of a GCC
31678 builtin and then its argument prototype would still apply. */
31691 for ac_lib in '' dir; do
31692 if test -z "$ac_lib"; then
31693 ac_res="none required"
31696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31698 rm -f conftest.$ac_objext conftest$ac_exeext
31699 if { (ac_try="$ac_link"
31700 case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_link") 2>conftest.er1
31707 grep -v '^ *+' conftest.er1 >conftest.err
31709 cat conftest.err >&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } && {
31712 test -z "$ac_c_werror_flag" ||
31713 test ! -s conftest.err
31714 } && test -s conftest$ac_exeext &&
31715 $as_test_x conftest$ac_exeext; then
31716 ac_cv_search_opendir=$ac_res
31718 echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.$ac_ext >&5
31724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31726 if test "${ac_cv_search_opendir+set}" = set; then
31730 if test "${ac_cv_search_opendir+set}" = set; then
31733 ac_cv_search_opendir=no
31735 rm conftest.$ac_ext
31736 LIBS=$ac_func_search_save_LIBS
31738 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31739 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31740 ac_res=$ac_cv_search_opendir
31741 if test "$ac_res" != no; then
31742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31747 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31748 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31749 if test "${ac_cv_search_opendir+set}" = set; then
31750 echo $ECHO_N "(cached) $ECHO_C" >&6
31752 ac_func_search_save_LIBS=$LIBS
31753 cat >conftest.$ac_ext <<_ACEOF
31756 cat confdefs.h >>conftest.$ac_ext
31757 cat >>conftest.$ac_ext <<_ACEOF
31758 /* end confdefs.h. */
31760 /* Override any GCC internal prototype to avoid an error.
31761 Use char because int might match the return type of a GCC
31762 builtin and then its argument prototype would still apply. */
31775 for ac_lib in '' x; do
31776 if test -z "$ac_lib"; then
31777 ac_res="none required"
31780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31782 rm -f conftest.$ac_objext conftest$ac_exeext
31783 if { (ac_try="$ac_link"
31784 case "(($ac_try" in
31785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31786 *) ac_try_echo=$ac_try;;
31788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31789 (eval "$ac_link") 2>conftest.er1
31791 grep -v '^ *+' conftest.er1 >conftest.err
31793 cat conftest.err >&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); } && {
31796 test -z "$ac_c_werror_flag" ||
31797 test ! -s conftest.err
31798 } && test -s conftest$ac_exeext &&
31799 $as_test_x conftest$ac_exeext; then
31800 ac_cv_search_opendir=$ac_res
31802 echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31810 if test "${ac_cv_search_opendir+set}" = set; then
31814 if test "${ac_cv_search_opendir+set}" = set; then
31817 ac_cv_search_opendir=no
31819 rm conftest.$ac_ext
31820 LIBS=$ac_func_search_save_LIBS
31822 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31823 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31824 ac_res=$ac_cv_search_opendir
31825 if test "$ac_res" != no; then
31826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31832 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31833 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31834 if test "${ac_cv_header_stat_broken+set}" = set; then
31835 echo $ECHO_N "(cached) $ECHO_C" >&6
31837 cat >conftest.$ac_ext <<_ACEOF
31840 cat confdefs.h >>conftest.$ac_ext
31841 cat >>conftest.$ac_ext <<_ACEOF
31842 /* end confdefs.h. */
31843 #include <sys/types.h>
31844 #include <sys/stat.h>
31846 #if defined S_ISBLK && defined S_IFDIR
31847 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31850 #if defined S_ISBLK && defined S_IFCHR
31851 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31854 #if defined S_ISLNK && defined S_IFREG
31855 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31858 #if defined S_ISSOCK && defined S_IFREG
31859 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31863 rm -f conftest.$ac_objext
31864 if { (ac_try="$ac_compile"
31865 case "(($ac_try" in
31866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31867 *) ac_try_echo=$ac_try;;
31869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31870 (eval "$ac_compile") 2>conftest.er1
31872 grep -v '^ *+' conftest.er1 >conftest.err
31874 cat conftest.err >&5
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); } && {
31877 test -z "$ac_c_werror_flag" ||
31878 test ! -s conftest.err
31879 } && test -s conftest.$ac_objext; then
31880 ac_cv_header_stat_broken=no
31882 echo "$as_me: failed program was:" >&5
31883 sed 's/^/| /' conftest.$ac_ext >&5
31885 ac_cv_header_stat_broken=yes
31888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31890 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31891 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31892 if test $ac_cv_header_stat_broken = yes; then
31894 cat >>confdefs.h <<\_ACEOF
31895 #define STAT_MACROS_BROKEN 1
31900 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31901 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31902 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31903 echo $ECHO_N "(cached) $ECHO_C" >&6
31905 cat >conftest.$ac_ext <<_ACEOF
31908 cat confdefs.h >>conftest.$ac_ext
31909 cat >>conftest.$ac_ext <<_ACEOF
31910 /* end confdefs.h. */
31911 #include <sys/types.h>
31912 #include <sys/wait.h>
31913 #ifndef WEXITSTATUS
31914 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31917 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31925 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31930 rm -f conftest.$ac_objext
31931 if { (ac_try="$ac_compile"
31932 case "(($ac_try" in
31933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934 *) ac_try_echo=$ac_try;;
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_compile") 2>conftest.er1
31939 grep -v '^ *+' conftest.er1 >conftest.err
31941 cat conftest.err >&5
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); } && {
31944 test -z "$ac_c_werror_flag" ||
31945 test ! -s conftest.err
31946 } && test -s conftest.$ac_objext; then
31947 ac_cv_header_sys_wait_h=yes
31949 echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31952 ac_cv_header_sys_wait_h=no
31955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31957 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31958 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31959 if test $ac_cv_header_sys_wait_h = yes; then
31961 cat >>confdefs.h <<\_ACEOF
31962 #define HAVE_SYS_WAIT_H 1
31967 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31968 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31969 if test "${ac_cv_header_time+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31972 cat >conftest.$ac_ext <<_ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h. */
31978 #include <sys/types.h>
31979 #include <sys/time.h>
31985 if ((struct tm *) 0)
31991 rm -f conftest.$ac_objext
31992 if { (ac_try="$ac_compile"
31993 case "(($ac_try" in
31994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995 *) ac_try_echo=$ac_try;;
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998 (eval "$ac_compile") 2>conftest.er1
32000 grep -v '^ *+' conftest.er1 >conftest.err
32002 cat conftest.err >&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); } && {
32005 test -z "$ac_c_werror_flag" ||
32006 test ! -s conftest.err
32007 } && test -s conftest.$ac_objext; then
32008 ac_cv_header_time=yes
32010 echo "$as_me: failed program was:" >&5
32011 sed 's/^/| /' conftest.$ac_ext >&5
32013 ac_cv_header_time=no
32016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32018 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32019 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32020 if test $ac_cv_header_time = yes; then
32022 cat >>confdefs.h <<\_ACEOF
32023 #define TIME_WITH_SYS_TIME 1
32028 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32029 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32030 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32031 echo $ECHO_N "(cached) $ECHO_C" >&6
32033 cat >conftest.$ac_ext <<_ACEOF
32036 cat confdefs.h >>conftest.$ac_ext
32037 cat >>conftest.$ac_ext <<_ACEOF
32038 /* end confdefs.h. */
32039 $ac_includes_default
32043 static struct stat ac_aggr;
32044 if (ac_aggr.st_blksize)
32050 rm -f conftest.$ac_objext
32051 if { (ac_try="$ac_compile"
32052 case "(($ac_try" in
32053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054 *) ac_try_echo=$ac_try;;
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057 (eval "$ac_compile") 2>conftest.er1
32059 grep -v '^ *+' conftest.er1 >conftest.err
32061 cat conftest.err >&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); } && {
32064 test -z "$ac_c_werror_flag" ||
32065 test ! -s conftest.err
32066 } && test -s conftest.$ac_objext; then
32067 ac_cv_member_struct_stat_st_blksize=yes
32069 echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32072 cat >conftest.$ac_ext <<_ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h. */
32078 $ac_includes_default
32082 static struct stat ac_aggr;
32083 if (sizeof ac_aggr.st_blksize)
32089 rm -f conftest.$ac_objext
32090 if { (ac_try="$ac_compile"
32091 case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_compile") 2>conftest.er1
32098 grep -v '^ *+' conftest.er1 >conftest.err
32100 cat conftest.err >&5
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } && {
32103 test -z "$ac_c_werror_flag" ||
32104 test ! -s conftest.err
32105 } && test -s conftest.$ac_objext; then
32106 ac_cv_member_struct_stat_st_blksize=yes
32108 echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32111 ac_cv_member_struct_stat_st_blksize=no
32114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32120 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32121 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32123 cat >>confdefs.h <<_ACEOF
32124 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32128 cat >>confdefs.h <<\_ACEOF
32129 #define HAVE_ST_BLKSIZE 1
32135 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32136 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32137 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32138 echo $ECHO_N "(cached) $ECHO_C" >&6
32140 cat >conftest.$ac_ext <<_ACEOF
32143 cat confdefs.h >>conftest.$ac_ext
32144 cat >>conftest.$ac_ext <<_ACEOF
32145 /* end confdefs.h. */
32146 $ac_includes_default
32150 static struct stat ac_aggr;
32151 if (ac_aggr.st_blocks)
32157 rm -f conftest.$ac_objext
32158 if { (ac_try="$ac_compile"
32159 case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_compile") 2>conftest.er1
32166 grep -v '^ *+' conftest.er1 >conftest.err
32168 cat conftest.err >&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } && {
32171 test -z "$ac_c_werror_flag" ||
32172 test ! -s conftest.err
32173 } && test -s conftest.$ac_objext; then
32174 ac_cv_member_struct_stat_st_blocks=yes
32176 echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32179 cat >conftest.$ac_ext <<_ACEOF
32182 cat confdefs.h >>conftest.$ac_ext
32183 cat >>conftest.$ac_ext <<_ACEOF
32184 /* end confdefs.h. */
32185 $ac_includes_default
32189 static struct stat ac_aggr;
32190 if (sizeof ac_aggr.st_blocks)
32196 rm -f conftest.$ac_objext
32197 if { (ac_try="$ac_compile"
32198 case "(($ac_try" in
32199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32200 *) ac_try_echo=$ac_try;;
32202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32203 (eval "$ac_compile") 2>conftest.er1
32205 grep -v '^ *+' conftest.er1 >conftest.err
32207 cat conftest.err >&5
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); } && {
32210 test -z "$ac_c_werror_flag" ||
32211 test ! -s conftest.err
32212 } && test -s conftest.$ac_objext; then
32213 ac_cv_member_struct_stat_st_blocks=yes
32215 echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32218 ac_cv_member_struct_stat_st_blocks=no
32221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32226 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32227 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32228 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32230 cat >>confdefs.h <<_ACEOF
32231 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32235 cat >>confdefs.h <<\_ACEOF
32236 #define HAVE_ST_BLOCKS 1
32240 case " $LIBOBJS " in
32241 *" fileblocks.$ac_objext "* ) ;;
32242 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32249 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32250 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32251 if test "${ac_cv_struct_tm+set}" = set; then
32252 echo $ECHO_N "(cached) $ECHO_C" >&6
32254 cat >conftest.$ac_ext <<_ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h. */
32260 #include <sys/types.h>
32267 int *p = &tm.tm_sec;
32273 rm -f conftest.$ac_objext
32274 if { (ac_try="$ac_compile"
32275 case "(($ac_try" in
32276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277 *) ac_try_echo=$ac_try;;
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280 (eval "$ac_compile") 2>conftest.er1
32282 grep -v '^ *+' conftest.er1 >conftest.err
32284 cat conftest.err >&5
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); } && {
32287 test -z "$ac_c_werror_flag" ||
32288 test ! -s conftest.err
32289 } && test -s conftest.$ac_objext; then
32290 ac_cv_struct_tm=time.h
32292 echo "$as_me: failed program was:" >&5
32293 sed 's/^/| /' conftest.$ac_ext >&5
32295 ac_cv_struct_tm=sys/time.h
32298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32300 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32301 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32302 if test $ac_cv_struct_tm = sys/time.h; then
32304 cat >>confdefs.h <<\_ACEOF
32305 #define TM_IN_SYS_TIME 1
32310 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32311 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32312 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32313 echo $ECHO_N "(cached) $ECHO_C" >&6
32315 cat >conftest.$ac_ext <<_ACEOF
32318 cat confdefs.h >>conftest.$ac_ext
32319 cat >>conftest.$ac_ext <<_ACEOF
32320 /* end confdefs.h. */
32321 #include <sys/types.h>
32322 #include <$ac_cv_struct_tm>
32328 static struct tm ac_aggr;
32329 if (ac_aggr.tm_zone)
32335 rm -f conftest.$ac_objext
32336 if { (ac_try="$ac_compile"
32337 case "(($ac_try" in
32338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339 *) ac_try_echo=$ac_try;;
32341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32342 (eval "$ac_compile") 2>conftest.er1
32344 grep -v '^ *+' conftest.er1 >conftest.err
32346 cat conftest.err >&5
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); } && {
32349 test -z "$ac_c_werror_flag" ||
32350 test ! -s conftest.err
32351 } && test -s conftest.$ac_objext; then
32352 ac_cv_member_struct_tm_tm_zone=yes
32354 echo "$as_me: failed program was:" >&5
32355 sed 's/^/| /' conftest.$ac_ext >&5
32357 cat >conftest.$ac_ext <<_ACEOF
32360 cat confdefs.h >>conftest.$ac_ext
32361 cat >>conftest.$ac_ext <<_ACEOF
32362 /* end confdefs.h. */
32363 #include <sys/types.h>
32364 #include <$ac_cv_struct_tm>
32370 static struct tm ac_aggr;
32371 if (sizeof ac_aggr.tm_zone)
32377 rm -f conftest.$ac_objext
32378 if { (ac_try="$ac_compile"
32379 case "(($ac_try" in
32380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381 *) ac_try_echo=$ac_try;;
32383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384 (eval "$ac_compile") 2>conftest.er1
32386 grep -v '^ *+' conftest.er1 >conftest.err
32388 cat conftest.err >&5
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); } && {
32391 test -z "$ac_c_werror_flag" ||
32392 test ! -s conftest.err
32393 } && test -s conftest.$ac_objext; then
32394 ac_cv_member_struct_tm_tm_zone=yes
32396 echo "$as_me: failed program was:" >&5
32397 sed 's/^/| /' conftest.$ac_ext >&5
32399 ac_cv_member_struct_tm_tm_zone=no
32402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32407 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32408 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32409 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32411 cat >>confdefs.h <<_ACEOF
32412 #define HAVE_STRUCT_TM_TM_ZONE 1
32418 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32420 cat >>confdefs.h <<\_ACEOF
32421 #define HAVE_TM_ZONE 1
32425 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32426 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32427 if test "${ac_cv_have_decl_tzname+set}" = set; then
32428 echo $ECHO_N "(cached) $ECHO_C" >&6
32430 cat >conftest.$ac_ext <<_ACEOF
32433 cat confdefs.h >>conftest.$ac_ext
32434 cat >>conftest.$ac_ext <<_ACEOF
32435 /* end confdefs.h. */
32449 rm -f conftest.$ac_objext
32450 if { (ac_try="$ac_compile"
32451 case "(($ac_try" in
32452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453 *) ac_try_echo=$ac_try;;
32455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456 (eval "$ac_compile") 2>conftest.er1
32458 grep -v '^ *+' conftest.er1 >conftest.err
32460 cat conftest.err >&5
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } && {
32463 test -z "$ac_c_werror_flag" ||
32464 test ! -s conftest.err
32465 } && test -s conftest.$ac_objext; then
32466 ac_cv_have_decl_tzname=yes
32468 echo "$as_me: failed program was:" >&5
32469 sed 's/^/| /' conftest.$ac_ext >&5
32471 ac_cv_have_decl_tzname=no
32474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32476 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32477 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32478 if test $ac_cv_have_decl_tzname = yes; then
32480 cat >>confdefs.h <<_ACEOF
32481 #define HAVE_DECL_TZNAME 1
32486 cat >>confdefs.h <<_ACEOF
32487 #define HAVE_DECL_TZNAME 0
32494 { echo "$as_me:$LINENO: checking for tzname" >&5
32495 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32496 if test "${ac_cv_var_tzname+set}" = set; then
32497 echo $ECHO_N "(cached) $ECHO_C" >&6
32499 cat >conftest.$ac_ext <<_ACEOF
32502 cat confdefs.h >>conftest.$ac_ext
32503 cat >>conftest.$ac_ext <<_ACEOF
32504 /* end confdefs.h. */
32506 #if !HAVE_DECL_TZNAME
32507 extern char *tzname[];
32513 return tzname[0][0];
32518 rm -f conftest.$ac_objext conftest$ac_exeext
32519 if { (ac_try="$ac_link"
32520 case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_link") 2>conftest.er1
32527 grep -v '^ *+' conftest.er1 >conftest.err
32529 cat conftest.err >&5
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); } && {
32532 test -z "$ac_c_werror_flag" ||
32533 test ! -s conftest.err
32534 } && test -s conftest$ac_exeext &&
32535 $as_test_x conftest$ac_exeext; then
32536 ac_cv_var_tzname=yes
32538 echo "$as_me: failed program was:" >&5
32539 sed 's/^/| /' conftest.$ac_ext >&5
32541 ac_cv_var_tzname=no
32544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32545 conftest$ac_exeext conftest.$ac_ext
32547 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32548 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32549 if test $ac_cv_var_tzname = yes; then
32551 cat >>confdefs.h <<\_ACEOF
32552 #define HAVE_TZNAME 1
32559 { echo "$as_me:$LINENO: checking for utime.h" >&5
32560 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32561 if test "${ba_cv_header_utime_h+set}" = set; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32565 cat >conftest.$ac_ext <<_ACEOF
32568 cat confdefs.h >>conftest.$ac_ext
32569 cat >>conftest.$ac_ext <<_ACEOF
32570 /* end confdefs.h. */
32572 #include <sys/types.h>
32585 rm -f conftest.$ac_objext
32586 if { (ac_try="$ac_compile"
32587 case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_compile") 2>conftest.er1
32594 grep -v '^ *+' conftest.er1 >conftest.err
32596 cat conftest.err >&5
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); } && {
32599 test -z "$ac_c_werror_flag" ||
32600 test ! -s conftest.err
32601 } && test -s conftest.$ac_objext; then
32603 ba_cv_header_utime_h=yes
32606 echo "$as_me: failed program was:" >&5
32607 sed 's/^/| /' conftest.$ac_ext >&5
32610 ba_cv_header_utime_h=no
32615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32619 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32620 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32621 test $ba_cv_header_utime_h = yes &&
32622 cat >>confdefs.h <<\_ACEOF
32623 #define HAVE_UTIME_H 1
32627 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32628 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32629 if test "${ba_cv_header_socklen_t+set}" = set; then
32630 echo $ECHO_N "(cached) $ECHO_C" >&6
32633 cat >conftest.$ac_ext <<_ACEOF
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h. */
32640 #include <sys/types.h>
32641 #include <sys/socket.h>
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_compile") 2>conftest.er1
32662 grep -v '^ *+' conftest.er1 >conftest.err
32664 cat conftest.err >&5
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } && {
32667 test -z "$ac_c_werror_flag" ||
32668 test ! -s conftest.err
32669 } && test -s conftest.$ac_objext; then
32671 ba_cv_header_socklen_t=yes
32674 echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32678 ba_cv_header_socklen_t=no
32683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32687 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32688 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32689 test $ba_cv_header_socklen_t = yes &&
32690 cat >>confdefs.h <<\_ACEOF
32691 #define HAVE_SOCKLEN_T 1
32696 ac_cpp='$CXXCPP $CPPFLAGS'
32697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32701 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32702 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32703 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32704 echo $ECHO_N "(cached) $ECHO_C" >&6
32707 cat >conftest.$ac_ext <<_ACEOF
32710 cat confdefs.h >>conftest.$ac_ext
32711 cat >>conftest.$ac_ext <<_ACEOF
32712 /* end confdefs.h. */
32714 #include <unistd.h>
32715 #include <sys/types.h>
32716 #include <sys/ioctl.h>
32722 int (*d_ioctl)(int fd, unsigned long int request, ...);
32729 rm -f conftest.$ac_objext
32730 if { (ac_try="$ac_compile"
32731 case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_compile") 2>conftest.er1
32738 grep -v '^ *+' conftest.er1 >conftest.err
32740 cat conftest.err >&5
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); } && {
32743 test -z "$ac_cxx_werror_flag" ||
32744 test ! -s conftest.err
32745 } && test -s conftest.$ac_objext; then
32747 ba_cv_header_ioctl_req_t=yes
32750 echo "$as_me: failed program was:" >&5
32751 sed 's/^/| /' conftest.$ac_ext >&5
32754 ba_cv_header_ioctl_req_t=no
32759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32763 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32764 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32765 test $ba_cv_header_ioctl_req_t = yes &&
32766 cat >>confdefs.h <<\_ACEOF
32767 #define HAVE_IOCTL_ULINT_REQUEST 1
32772 ac_cpp='$CPP $CPPFLAGS'
32773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32779 ac_cpp='$CXXCPP $CPPFLAGS'
32780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32784 { echo "$as_me:$LINENO: checking for typeof" >&5
32785 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32786 if test "${ba_cv_have_typeof+set}" = set; then
32787 echo $ECHO_N "(cached) $ECHO_C" >&6
32790 if test "$cross_compiling" = yes; then
32792 ba_cv_have_typeof=no
32796 cat >conftest.$ac_ext <<_ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h. */
32803 main(){char *a = 0; a = (typeof a)a;}
32806 rm -f conftest$ac_exeext
32807 if { (ac_try="$ac_link"
32808 case "(($ac_try" in
32809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810 *) ac_try_echo=$ac_try;;
32812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32813 (eval "$ac_link") 2>&5
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32817 { (case "(($ac_try" in
32818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819 *) ac_try_echo=$ac_try;;
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822 (eval "$ac_try") 2>&5
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; }; then
32827 ba_cv_have_typeof=yes
32830 echo "$as_me: program exited with status $ac_status" >&5
32831 echo "$as_me: failed program was:" >&5
32832 sed 's/^/| /' conftest.$ac_ext >&5
32834 ( exit $ac_status )
32836 ba_cv_have_typeof=no
32839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32846 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32847 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32848 test $ba_cv_have_typeof = yes &&
32849 cat >>confdefs.h <<\_ACEOF
32850 #define HAVE_TYPEOF 1
32854 ac_cpp='$CPP $CPPFLAGS'
32855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32860 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32861 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32862 if test "${ac_cv_c_const+set}" = set; then
32863 echo $ECHO_N "(cached) $ECHO_C" >&6
32865 cat >conftest.$ac_ext <<_ACEOF
32868 cat confdefs.h >>conftest.$ac_ext
32869 cat >>conftest.$ac_ext <<_ACEOF
32870 /* end confdefs.h. */
32875 /* FIXME: Include the comments suggested by Paul. */
32876 #ifndef __cplusplus
32877 /* Ultrix mips cc rejects this. */
32878 typedef int charset[2];
32880 /* SunOS 4.1.1 cc rejects this. */
32881 char const *const *pcpcc;
32883 /* NEC SVR4.0.2 mips cc rejects this. */
32884 struct point {int x, y;};
32885 static struct point const zero = {0,0};
32886 /* AIX XL C 1.02.0.0 rejects this.
32887 It does not let you subtract one const X* pointer from another in
32888 an arm of an if-expression whose if-part is not a constant
32890 const char *g = "string";
32891 pcpcc = &g + (g ? g-g : 0);
32892 /* HPUX 7.0 cc rejects these. */
32894 ppc = (char**) pcpcc;
32895 pcpcc = (char const *const *) ppc;
32896 { /* SCO 3.2v4 cc rejects this. */
32898 char const *s = 0 ? (char *) 0 : (char const *) 0;
32903 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32904 int x[] = {25, 17};
32905 const int *foo = &x[0];
32908 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32909 typedef const int *iptr;
32913 { /* AIX XL C 1.02.0.0 rejects this saying
32914 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32915 struct s { int j; const int *ap[3]; };
32916 struct s *b; b->j = 5;
32918 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32919 const int foo = 10;
32920 if (!foo) return 0;
32922 return !cs[0] && !zero.x;
32929 rm -f conftest.$ac_objext
32930 if { (ac_try="$ac_compile"
32931 case "(($ac_try" in
32932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933 *) ac_try_echo=$ac_try;;
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936 (eval "$ac_compile") 2>conftest.er1
32938 grep -v '^ *+' conftest.er1 >conftest.err
32940 cat conftest.err >&5
32941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942 (exit $ac_status); } && {
32943 test -z "$ac_c_werror_flag" ||
32944 test ! -s conftest.err
32945 } && test -s conftest.$ac_objext; then
32948 echo "$as_me: failed program was:" >&5
32949 sed 's/^/| /' conftest.$ac_ext >&5
32954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32956 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32957 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32958 if test $ac_cv_c_const = no; then
32960 cat >>confdefs.h <<\_ACEOF
32967 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32968 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32970 # The order of these tests is important.
32971 cat >conftest.$ac_ext <<_ACEOF
32974 cat confdefs.h >>conftest.$ac_ext
32975 cat >>conftest.$ac_ext <<_ACEOF
32976 /* end confdefs.h. */
32978 #include <sys/statvfs.h>
32979 #include <sys/fstyp.h>
32982 if { (ac_try="$ac_cpp conftest.$ac_ext"
32983 case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32990 grep -v '^ *+' conftest.er1 >conftest.err
32992 cat conftest.err >&5
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); } >/dev/null && {
32995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32996 test ! -s conftest.err
32998 cat >>confdefs.h <<\_ACEOF
32999 #define FSTYPE_STATVFS 1
33004 echo "$as_me: failed program was:" >&5
33005 sed 's/^/| /' conftest.$ac_ext >&5
33010 rm -f conftest.err conftest.$ac_ext
33011 if test $fstype = no; then
33012 cat >conftest.$ac_ext <<_ACEOF
33015 cat confdefs.h >>conftest.$ac_ext
33016 cat >>conftest.$ac_ext <<_ACEOF
33017 /* end confdefs.h. */
33019 #include <sys/statfs.h>
33020 #include <sys/fstyp.h>
33023 if { (ac_try="$ac_cpp conftest.$ac_ext"
33024 case "(($ac_try" in
33025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33026 *) ac_try_echo=$ac_try;;
33028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33031 grep -v '^ *+' conftest.er1 >conftest.err
33033 cat conftest.err >&5
33034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035 (exit $ac_status); } >/dev/null && {
33036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33037 test ! -s conftest.err
33039 cat >>confdefs.h <<\_ACEOF
33040 #define FSTYPE_USG_STATFS 1
33045 echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33051 rm -f conftest.err conftest.$ac_ext
33053 if test $fstype = no; then
33054 cat >conftest.$ac_ext <<_ACEOF
33057 cat confdefs.h >>conftest.$ac_ext
33058 cat >>conftest.$ac_ext <<_ACEOF
33059 /* end confdefs.h. */
33061 #include <sys/statfs.h>
33062 #include <sys/vmount.h>
33065 if { (ac_try="$ac_cpp conftest.$ac_ext"
33066 case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33073 grep -v '^ *+' conftest.er1 >conftest.err
33075 cat conftest.err >&5
33076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077 (exit $ac_status); } >/dev/null && {
33078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33079 test ! -s conftest.err
33081 cat >>confdefs.h <<\_ACEOF
33082 #define FSTYPE_AIX_STATFS 1
33087 echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.$ac_ext >&5
33093 rm -f conftest.err conftest.$ac_ext
33095 if test $fstype = no; then
33096 cat >conftest.$ac_ext <<_ACEOF
33099 cat confdefs.h >>conftest.$ac_ext
33100 cat >>conftest.$ac_ext <<_ACEOF
33101 /* end confdefs.h. */
33103 #include <mntent.h>
33106 if { (ac_try="$ac_cpp conftest.$ac_ext"
33107 case "(($ac_try" in
33108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109 *) ac_try_echo=$ac_try;;
33111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33114 grep -v '^ *+' conftest.er1 >conftest.err
33116 cat conftest.err >&5
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); } >/dev/null && {
33119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33120 test ! -s conftest.err
33122 cat >>confdefs.h <<\_ACEOF
33123 #define FSTYPE_MNTENT 1
33128 echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33134 rm -f conftest.err conftest.$ac_ext
33136 if test $fstype = no; then
33137 cat >conftest.$ac_ext <<_ACEOF
33140 cat confdefs.h >>conftest.$ac_ext
33141 cat >>conftest.$ac_ext <<_ACEOF
33142 /* end confdefs.h. */
33143 #include <sys/mount.h>
33146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33147 $EGREP "f_type;" >/dev/null 2>&1; then
33148 cat >>confdefs.h <<\_ACEOF
33149 #define FSTYPE_STATFS 1
33156 if test $fstype = no; then
33157 cat >conftest.$ac_ext <<_ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h. */
33164 #include <sys/mount.h>
33165 #include <sys/fs_types.h>
33168 if { (ac_try="$ac_cpp conftest.$ac_ext"
33169 case "(($ac_try" in
33170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33171 *) ac_try_echo=$ac_try;;
33173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33176 grep -v '^ *+' conftest.er1 >conftest.err
33178 cat conftest.err >&5
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); } >/dev/null && {
33181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33182 test ! -s conftest.err
33184 cat >>confdefs.h <<\_ACEOF
33185 #define FSTYPE_GETMNT 1
33190 echo "$as_me: failed program was:" >&5
33191 sed 's/^/| /' conftest.$ac_ext >&5
33196 rm -f conftest.err conftest.$ac_ext
33198 { echo "$as_me:$LINENO: result: $fstype" >&5
33199 echo "${ECHO_T}$fstype" >&6; }
33201 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33202 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33203 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33204 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33205 echo $ECHO_N "(cached) $ECHO_C" >&6
33207 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33208 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33210 # Is the header compilable?
33211 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33212 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33213 cat >conftest.$ac_ext <<_ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h. */
33219 $ac_includes_default
33220 #include <sys/statvfs.h>
33222 rm -f conftest.$ac_objext
33223 if { (ac_try="$ac_compile"
33224 case "(($ac_try" in
33225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226 *) ac_try_echo=$ac_try;;
33228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229 (eval "$ac_compile") 2>conftest.er1
33231 grep -v '^ *+' conftest.er1 >conftest.err
33233 cat conftest.err >&5
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); } && {
33236 test -z "$ac_c_werror_flag" ||
33237 test ! -s conftest.err
33238 } && test -s conftest.$ac_objext; then
33239 ac_header_compiler=yes
33241 echo "$as_me: failed program was:" >&5
33242 sed 's/^/| /' conftest.$ac_ext >&5
33244 ac_header_compiler=no
33247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33249 echo "${ECHO_T}$ac_header_compiler" >&6; }
33251 # Is the header present?
33252 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33253 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33254 cat >conftest.$ac_ext <<_ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h. */
33260 #include <sys/statvfs.h>
33262 if { (ac_try="$ac_cpp conftest.$ac_ext"
33263 case "(($ac_try" in
33264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33265 *) ac_try_echo=$ac_try;;
33267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33270 grep -v '^ *+' conftest.er1 >conftest.err
33272 cat conftest.err >&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); } >/dev/null && {
33275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33276 test ! -s conftest.err
33278 ac_header_preproc=yes
33280 echo "$as_me: failed program was:" >&5
33281 sed 's/^/| /' conftest.$ac_ext >&5
33283 ac_header_preproc=no
33286 rm -f conftest.err conftest.$ac_ext
33287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33288 echo "${ECHO_T}$ac_header_preproc" >&6; }
33290 # So? What about this header?
33291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33293 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33294 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33295 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33296 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33297 ac_header_preproc=yes
33300 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33301 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33302 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33303 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33304 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33305 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33306 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33307 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33308 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33309 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33310 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33311 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33315 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33316 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33317 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33318 echo $ECHO_N "(cached) $ECHO_C" >&6
33320 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33322 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33323 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33326 if test $ac_cv_header_sys_statvfs_h = yes; then
33328 cat >>confdefs.h <<\_ACEOF
33329 #define HAVE_SYS_STATVFS_H 1
33336 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33337 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33338 if test "${ac_cv_type_signal+set}" = set; then
33339 echo $ECHO_N "(cached) $ECHO_C" >&6
33341 cat >conftest.$ac_ext <<_ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h. */
33347 #include <sys/types.h>
33348 #include <signal.h>
33353 return *(signal (0, 0)) (0) == 1;
33358 rm -f conftest.$ac_objext
33359 if { (ac_try="$ac_compile"
33360 case "(($ac_try" in
33361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362 *) ac_try_echo=$ac_try;;
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365 (eval "$ac_compile") 2>conftest.er1
33367 grep -v '^ *+' conftest.er1 >conftest.err
33369 cat conftest.err >&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } && {
33372 test -z "$ac_c_werror_flag" ||
33373 test ! -s conftest.err
33374 } && test -s conftest.$ac_objext; then
33375 ac_cv_type_signal=int
33377 echo "$as_me: failed program was:" >&5
33378 sed 's/^/| /' conftest.$ac_ext >&5
33380 ac_cv_type_signal=void
33383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33385 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33386 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33388 cat >>confdefs.h <<_ACEOF
33389 #define RETSIGTYPE $ac_cv_type_signal
33394 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33395 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33396 if test "${bash_cv_signal_vintage+set}" = set; then
33397 echo $ECHO_N "(cached) $ECHO_C" >&6
33400 cat >conftest.$ac_ext <<_ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h. */
33406 #include <signal.h>
33412 struct sigaction sa;
33413 sigemptyset(&ss); sigsuspend(&ss);
33414 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33415 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33421 rm -f conftest.$ac_objext conftest$ac_exeext
33422 if { (ac_try="$ac_link"
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_link") 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_exeext &&
33438 $as_test_x conftest$ac_exeext; then
33439 bash_cv_signal_vintage="posix"
33441 echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33445 cat >conftest.$ac_ext <<_ACEOF
33448 cat confdefs.h >>conftest.$ac_ext
33449 cat >>conftest.$ac_ext <<_ACEOF
33450 /* end confdefs.h. */
33451 #include <signal.h>
33456 int mask = sigmask(SIGINT);
33457 sigsetmask(mask); sigblock(mask); sigpause(mask);
33463 rm -f conftest.$ac_objext conftest$ac_exeext
33464 if { (ac_try="$ac_link"
33465 case "(($ac_try" in
33466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33467 *) ac_try_echo=$ac_try;;
33469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33470 (eval "$ac_link") 2>conftest.er1
33472 grep -v '^ *+' conftest.er1 >conftest.err
33474 cat conftest.err >&5
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); } && {
33477 test -z "$ac_c_werror_flag" ||
33478 test ! -s conftest.err
33479 } && test -s conftest$ac_exeext &&
33480 $as_test_x conftest$ac_exeext; then
33481 bash_cv_signal_vintage="4.2bsd"
33483 echo "$as_me: failed program was:" >&5
33484 sed 's/^/| /' conftest.$ac_ext >&5
33487 cat >conftest.$ac_ext <<_ACEOF
33490 cat confdefs.h >>conftest.$ac_ext
33491 cat >>conftest.$ac_ext <<_ACEOF
33492 /* end confdefs.h. */
33494 #include <signal.h>
33495 RETSIGTYPE foo() { }
33500 int mask = sigmask(SIGINT);
33501 sigset(SIGINT, foo); sigrelse(SIGINT);
33502 sighold(SIGINT); sigpause(SIGINT);
33508 rm -f conftest.$ac_objext conftest$ac_exeext
33509 if { (ac_try="$ac_link"
33510 case "(($ac_try" in
33511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33512 *) ac_try_echo=$ac_try;;
33514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33515 (eval "$ac_link") 2>conftest.er1
33517 grep -v '^ *+' conftest.er1 >conftest.err
33519 cat conftest.err >&5
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); } && {
33522 test -z "$ac_c_werror_flag" ||
33523 test ! -s conftest.err
33524 } && test -s conftest$ac_exeext &&
33525 $as_test_x conftest$ac_exeext; then
33526 bash_cv_signal_vintage="svr3"
33528 echo "$as_me: failed program was:" >&5
33529 sed 's/^/| /' conftest.$ac_ext >&5
33531 bash_cv_signal_vintage="v7"
33535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33536 conftest$ac_exeext conftest.$ac_ext
33540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33541 conftest$ac_exeext conftest.$ac_ext
33545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33546 conftest$ac_exeext conftest.$ac_ext
33550 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33551 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33552 if test "$bash_cv_signal_vintage" = "posix"; then
33553 cat >>confdefs.h <<\_ACEOF
33554 #define HAVE_POSIX_SIGNALS 1
33557 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33558 cat >>confdefs.h <<\_ACEOF
33559 #define HAVE_BSD_SIGNALS 1
33562 elif test "$bash_cv_signal_vintage" = "svr3"; then
33563 cat >>confdefs.h <<\_ACEOF
33564 #define HAVE_USG_SIGHOLD 1
33569 { echo "$as_me:$LINENO: checking for mode_t" >&5
33570 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33571 if test "${ac_cv_type_mode_t+set}" = set; then
33572 echo $ECHO_N "(cached) $ECHO_C" >&6
33574 cat >conftest.$ac_ext <<_ACEOF
33577 cat confdefs.h >>conftest.$ac_ext
33578 cat >>conftest.$ac_ext <<_ACEOF
33579 /* end confdefs.h. */
33580 $ac_includes_default
33581 typedef mode_t ac__type_new_;
33585 if ((ac__type_new_ *) 0)
33587 if (sizeof (ac__type_new_))
33593 rm -f conftest.$ac_objext
33594 if { (ac_try="$ac_compile"
33595 case "(($ac_try" in
33596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33597 *) ac_try_echo=$ac_try;;
33599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33600 (eval "$ac_compile") 2>conftest.er1
33602 grep -v '^ *+' conftest.er1 >conftest.err
33604 cat conftest.err >&5
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); } && {
33607 test -z "$ac_c_werror_flag" ||
33608 test ! -s conftest.err
33609 } && test -s conftest.$ac_objext; then
33610 ac_cv_type_mode_t=yes
33612 echo "$as_me: failed program was:" >&5
33613 sed 's/^/| /' conftest.$ac_ext >&5
33615 ac_cv_type_mode_t=no
33618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33620 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33621 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33622 if test $ac_cv_type_mode_t = yes; then
33626 cat >>confdefs.h <<_ACEOF
33632 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33633 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33634 if test "${ac_cv_type_uid_t+set}" = set; then
33635 echo $ECHO_N "(cached) $ECHO_C" >&6
33637 cat >conftest.$ac_ext <<_ACEOF
33640 cat confdefs.h >>conftest.$ac_ext
33641 cat >>conftest.$ac_ext <<_ACEOF
33642 /* end confdefs.h. */
33643 #include <sys/types.h>
33646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33647 $EGREP "uid_t" >/dev/null 2>&1; then
33648 ac_cv_type_uid_t=yes
33650 ac_cv_type_uid_t=no
33655 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33656 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33657 if test $ac_cv_type_uid_t = no; then
33659 cat >>confdefs.h <<\_ACEOF
33664 cat >>confdefs.h <<\_ACEOF
33670 { echo "$as_me:$LINENO: checking for size_t" >&5
33671 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33672 if test "${ac_cv_type_size_t+set}" = set; then
33673 echo $ECHO_N "(cached) $ECHO_C" >&6
33675 cat >conftest.$ac_ext <<_ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h. */
33681 $ac_includes_default
33682 typedef size_t ac__type_new_;
33686 if ((ac__type_new_ *) 0)
33688 if (sizeof (ac__type_new_))
33694 rm -f conftest.$ac_objext
33695 if { (ac_try="$ac_compile"
33696 case "(($ac_try" in
33697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698 *) ac_try_echo=$ac_try;;
33700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701 (eval "$ac_compile") 2>conftest.er1
33703 grep -v '^ *+' conftest.er1 >conftest.err
33705 cat conftest.err >&5
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); } && {
33708 test -z "$ac_c_werror_flag" ||
33709 test ! -s conftest.err
33710 } && test -s conftest.$ac_objext; then
33711 ac_cv_type_size_t=yes
33713 echo "$as_me: failed program was:" >&5
33714 sed 's/^/| /' conftest.$ac_ext >&5
33716 ac_cv_type_size_t=no
33719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33721 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33722 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33723 if test $ac_cv_type_size_t = yes; then
33727 cat >>confdefs.h <<_ACEOF
33728 #define size_t unsigned int
33733 { echo "$as_me:$LINENO: checking for pid_t" >&5
33734 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33735 if test "${ac_cv_type_pid_t+set}" = set; then
33736 echo $ECHO_N "(cached) $ECHO_C" >&6
33738 cat >conftest.$ac_ext <<_ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h. */
33744 $ac_includes_default
33745 typedef pid_t ac__type_new_;
33749 if ((ac__type_new_ *) 0)
33751 if (sizeof (ac__type_new_))
33757 rm -f conftest.$ac_objext
33758 if { (ac_try="$ac_compile"
33759 case "(($ac_try" in
33760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_compile") 2>conftest.er1
33766 grep -v '^ *+' conftest.er1 >conftest.err
33768 cat conftest.err >&5
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); } && {
33771 test -z "$ac_c_werror_flag" ||
33772 test ! -s conftest.err
33773 } && test -s conftest.$ac_objext; then
33774 ac_cv_type_pid_t=yes
33776 echo "$as_me: failed program was:" >&5
33777 sed 's/^/| /' conftest.$ac_ext >&5
33779 ac_cv_type_pid_t=no
33782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33784 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33785 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33786 if test $ac_cv_type_pid_t = yes; then
33790 cat >>confdefs.h <<_ACEOF
33796 { echo "$as_me:$LINENO: checking for off_t" >&5
33797 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33798 if test "${ac_cv_type_off_t+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33801 cat >conftest.$ac_ext <<_ACEOF
33804 cat confdefs.h >>conftest.$ac_ext
33805 cat >>conftest.$ac_ext <<_ACEOF
33806 /* end confdefs.h. */
33807 $ac_includes_default
33808 typedef off_t ac__type_new_;
33812 if ((ac__type_new_ *) 0)
33814 if (sizeof (ac__type_new_))
33820 rm -f conftest.$ac_objext
33821 if { (ac_try="$ac_compile"
33822 case "(($ac_try" in
33823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824 *) ac_try_echo=$ac_try;;
33826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33827 (eval "$ac_compile") 2>conftest.er1
33829 grep -v '^ *+' conftest.er1 >conftest.err
33831 cat conftest.err >&5
33832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 (exit $ac_status); } && {
33834 test -z "$ac_c_werror_flag" ||
33835 test ! -s conftest.err
33836 } && test -s conftest.$ac_objext; then
33837 ac_cv_type_off_t=yes
33839 echo "$as_me: failed program was:" >&5
33840 sed 's/^/| /' conftest.$ac_ext >&5
33842 ac_cv_type_off_t=no
33845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33847 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33848 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33849 if test $ac_cv_type_off_t = yes; then
33853 cat >>confdefs.h <<_ACEOF
33854 #define off_t long int
33860 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33861 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33862 if test "${ac_cv_type_intptr_t+set}" = set; then
33863 echo $ECHO_N "(cached) $ECHO_C" >&6
33865 cat >conftest.$ac_ext <<_ACEOF
33868 cat confdefs.h >>conftest.$ac_ext
33869 cat >>conftest.$ac_ext <<_ACEOF
33870 /* end confdefs.h. */
33871 $ac_includes_default
33872 typedef intptr_t ac__type_new_;
33876 if ((ac__type_new_ *) 0)
33878 if (sizeof (ac__type_new_))
33884 rm -f conftest.$ac_objext
33885 if { (ac_try="$ac_compile"
33886 case "(($ac_try" in
33887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33888 *) ac_try_echo=$ac_try;;
33890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33891 (eval "$ac_compile") 2>conftest.er1
33893 grep -v '^ *+' conftest.er1 >conftest.err
33895 cat conftest.err >&5
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); } && {
33898 test -z "$ac_c_werror_flag" ||
33899 test ! -s conftest.err
33900 } && test -s conftest.$ac_objext; then
33901 ac_cv_type_intptr_t=yes
33903 echo "$as_me: failed program was:" >&5
33904 sed 's/^/| /' conftest.$ac_ext >&5
33906 ac_cv_type_intptr_t=no
33909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33911 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33912 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33913 if test $ac_cv_type_intptr_t = yes; then
33915 cat >>confdefs.h <<\_ACEOF
33916 #define HAVE_INTPTR_T 1
33920 for ac_type in 'int' 'long int' 'long long int'; do
33921 cat >conftest.$ac_ext <<_ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h. */
33927 $ac_includes_default
33931 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33938 rm -f conftest.$ac_objext
33939 if { (ac_try="$ac_compile"
33940 case "(($ac_try" in
33941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33942 *) ac_try_echo=$ac_try;;
33944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33945 (eval "$ac_compile") 2>conftest.er1
33947 grep -v '^ *+' conftest.er1 >conftest.err
33949 cat conftest.err >&5
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); } && {
33952 test -z "$ac_c_werror_flag" ||
33953 test ! -s conftest.err
33954 } && test -s conftest.$ac_objext; then
33956 cat >>confdefs.h <<_ACEOF
33957 #define intptr_t $ac_type
33962 echo "$as_me: failed program was:" >&5
33963 sed 's/^/| /' conftest.$ac_ext >&5
33968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33969 test -z "$ac_type" && break
33975 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33976 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33977 if test "${ac_cv_type_uintptr_t+set}" = set; then
33978 echo $ECHO_N "(cached) $ECHO_C" >&6
33980 cat >conftest.$ac_ext <<_ACEOF
33983 cat confdefs.h >>conftest.$ac_ext
33984 cat >>conftest.$ac_ext <<_ACEOF
33985 /* end confdefs.h. */
33986 $ac_includes_default
33987 typedef uintptr_t ac__type_new_;
33991 if ((ac__type_new_ *) 0)
33993 if (sizeof (ac__type_new_))
33999 rm -f conftest.$ac_objext
34000 if { (ac_try="$ac_compile"
34001 case "(($ac_try" in
34002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34003 *) ac_try_echo=$ac_try;;
34005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34006 (eval "$ac_compile") 2>conftest.er1
34008 grep -v '^ *+' conftest.er1 >conftest.err
34010 cat conftest.err >&5
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); } && {
34013 test -z "$ac_c_werror_flag" ||
34014 test ! -s conftest.err
34015 } && test -s conftest.$ac_objext; then
34016 ac_cv_type_uintptr_t=yes
34018 echo "$as_me: failed program was:" >&5
34019 sed 's/^/| /' conftest.$ac_ext >&5
34021 ac_cv_type_uintptr_t=no
34024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34026 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34027 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34028 if test $ac_cv_type_uintptr_t = yes; then
34030 cat >>confdefs.h <<\_ACEOF
34031 #define HAVE_UINTPTR_T 1
34035 for ac_type in 'unsigned int' 'unsigned long int' \
34036 'unsigned long long int'; do
34037 cat >conftest.$ac_ext <<_ACEOF
34040 cat confdefs.h >>conftest.$ac_ext
34041 cat >>conftest.$ac_ext <<_ACEOF
34042 /* end confdefs.h. */
34043 $ac_includes_default
34047 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34054 rm -f conftest.$ac_objext
34055 if { (ac_try="$ac_compile"
34056 case "(($ac_try" in
34057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34058 *) ac_try_echo=$ac_try;;
34060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34061 (eval "$ac_compile") 2>conftest.er1
34063 grep -v '^ *+' conftest.er1 >conftest.err
34065 cat conftest.err >&5
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); } && {
34068 test -z "$ac_c_werror_flag" ||
34069 test ! -s conftest.err
34070 } && test -s conftest.$ac_objext; then
34072 cat >>confdefs.h <<_ACEOF
34073 #define uintptr_t $ac_type
34078 echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34085 test -z "$ac_type" && break
34090 { echo "$as_me:$LINENO: checking for ino_t" >&5
34091 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34092 if test "${ac_cv_type_ino_t+set}" = set; then
34093 echo $ECHO_N "(cached) $ECHO_C" >&6
34095 cat >conftest.$ac_ext <<_ACEOF
34098 cat confdefs.h >>conftest.$ac_ext
34099 cat >>conftest.$ac_ext <<_ACEOF
34100 /* end confdefs.h. */
34101 $ac_includes_default
34102 typedef ino_t ac__type_new_;
34106 if ((ac__type_new_ *) 0)
34108 if (sizeof (ac__type_new_))
34114 rm -f conftest.$ac_objext
34115 if { (ac_try="$ac_compile"
34116 case "(($ac_try" in
34117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34118 *) ac_try_echo=$ac_try;;
34120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34121 (eval "$ac_compile") 2>conftest.er1
34123 grep -v '^ *+' conftest.er1 >conftest.err
34125 cat conftest.err >&5
34126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127 (exit $ac_status); } && {
34128 test -z "$ac_c_werror_flag" ||
34129 test ! -s conftest.err
34130 } && test -s conftest.$ac_objext; then
34131 ac_cv_type_ino_t=yes
34133 echo "$as_me: failed program was:" >&5
34134 sed 's/^/| /' conftest.$ac_ext >&5
34136 ac_cv_type_ino_t=no
34139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34141 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34142 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34143 if test $ac_cv_type_ino_t = yes; then
34147 cat >>confdefs.h <<_ACEOF
34148 #define ino_t unsigned long
34153 { echo "$as_me:$LINENO: checking for dev_t" >&5
34154 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34155 if test "${ac_cv_type_dev_t+set}" = set; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34158 cat >conftest.$ac_ext <<_ACEOF
34161 cat confdefs.h >>conftest.$ac_ext
34162 cat >>conftest.$ac_ext <<_ACEOF
34163 /* end confdefs.h. */
34164 $ac_includes_default
34165 typedef dev_t ac__type_new_;
34169 if ((ac__type_new_ *) 0)
34171 if (sizeof (ac__type_new_))
34177 rm -f conftest.$ac_objext
34178 if { (ac_try="$ac_compile"
34179 case "(($ac_try" in
34180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181 *) ac_try_echo=$ac_try;;
34183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184 (eval "$ac_compile") 2>conftest.er1
34186 grep -v '^ *+' conftest.er1 >conftest.err
34188 cat conftest.err >&5
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); } && {
34191 test -z "$ac_c_werror_flag" ||
34192 test ! -s conftest.err
34193 } && test -s conftest.$ac_objext; then
34194 ac_cv_type_dev_t=yes
34196 echo "$as_me: failed program was:" >&5
34197 sed 's/^/| /' conftest.$ac_ext >&5
34199 ac_cv_type_dev_t=no
34202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34204 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34205 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34206 if test $ac_cv_type_dev_t = yes; then
34210 cat >>confdefs.h <<_ACEOF
34211 #define dev_t unsigned long
34216 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34217 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34218 if test "${ac_cv_type_daddr_t+set}" = set; then
34219 echo $ECHO_N "(cached) $ECHO_C" >&6
34221 cat >conftest.$ac_ext <<_ACEOF
34224 cat confdefs.h >>conftest.$ac_ext
34225 cat >>conftest.$ac_ext <<_ACEOF
34226 /* end confdefs.h. */
34227 $ac_includes_default
34228 typedef daddr_t ac__type_new_;
34232 if ((ac__type_new_ *) 0)
34234 if (sizeof (ac__type_new_))
34240 rm -f conftest.$ac_objext
34241 if { (ac_try="$ac_compile"
34242 case "(($ac_try" in
34243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34244 *) ac_try_echo=$ac_try;;
34246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34247 (eval "$ac_compile") 2>conftest.er1
34249 grep -v '^ *+' conftest.er1 >conftest.err
34251 cat conftest.err >&5
34252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253 (exit $ac_status); } && {
34254 test -z "$ac_c_werror_flag" ||
34255 test ! -s conftest.err
34256 } && test -s conftest.$ac_objext; then
34257 ac_cv_type_daddr_t=yes
34259 echo "$as_me: failed program was:" >&5
34260 sed 's/^/| /' conftest.$ac_ext >&5
34262 ac_cv_type_daddr_t=no
34265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34267 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34268 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34269 if test $ac_cv_type_daddr_t = yes; then
34273 cat >>confdefs.h <<_ACEOF
34274 #define daddr_t long
34279 { echo "$as_me:$LINENO: checking for major_t" >&5
34280 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34281 if test "${ac_cv_type_major_t+set}" = set; then
34282 echo $ECHO_N "(cached) $ECHO_C" >&6
34284 cat >conftest.$ac_ext <<_ACEOF
34287 cat confdefs.h >>conftest.$ac_ext
34288 cat >>conftest.$ac_ext <<_ACEOF
34289 /* end confdefs.h. */
34290 $ac_includes_default
34291 typedef major_t ac__type_new_;
34295 if ((ac__type_new_ *) 0)
34297 if (sizeof (ac__type_new_))
34303 rm -f conftest.$ac_objext
34304 if { (ac_try="$ac_compile"
34305 case "(($ac_try" in
34306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34307 *) ac_try_echo=$ac_try;;
34309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34310 (eval "$ac_compile") 2>conftest.er1
34312 grep -v '^ *+' conftest.er1 >conftest.err
34314 cat conftest.err >&5
34315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316 (exit $ac_status); } && {
34317 test -z "$ac_c_werror_flag" ||
34318 test ! -s conftest.err
34319 } && test -s conftest.$ac_objext; then
34320 ac_cv_type_major_t=yes
34322 echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34325 ac_cv_type_major_t=no
34328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34330 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34331 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34332 if test $ac_cv_type_major_t = yes; then
34336 cat >>confdefs.h <<_ACEOF
34337 #define major_t int
34342 { echo "$as_me:$LINENO: checking for minor_t" >&5
34343 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34344 if test "${ac_cv_type_minor_t+set}" = set; then
34345 echo $ECHO_N "(cached) $ECHO_C" >&6
34347 cat >conftest.$ac_ext <<_ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h. */
34353 $ac_includes_default
34354 typedef minor_t ac__type_new_;
34358 if ((ac__type_new_ *) 0)
34360 if (sizeof (ac__type_new_))
34366 rm -f conftest.$ac_objext
34367 if { (ac_try="$ac_compile"
34368 case "(($ac_try" in
34369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34370 *) ac_try_echo=$ac_try;;
34372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34373 (eval "$ac_compile") 2>conftest.er1
34375 grep -v '^ *+' conftest.er1 >conftest.err
34377 cat conftest.err >&5
34378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34379 (exit $ac_status); } && {
34380 test -z "$ac_c_werror_flag" ||
34381 test ! -s conftest.err
34382 } && test -s conftest.$ac_objext; then
34383 ac_cv_type_minor_t=yes
34385 echo "$as_me: failed program was:" >&5
34386 sed 's/^/| /' conftest.$ac_ext >&5
34388 ac_cv_type_minor_t=no
34391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34394 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34395 if test $ac_cv_type_minor_t = yes; then
34399 cat >>confdefs.h <<_ACEOF
34400 #define minor_t int
34405 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34406 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34407 if test "${ac_cv_type_ssize_t+set}" = set; then
34408 echo $ECHO_N "(cached) $ECHO_C" >&6
34410 cat >conftest.$ac_ext <<_ACEOF
34413 cat confdefs.h >>conftest.$ac_ext
34414 cat >>conftest.$ac_ext <<_ACEOF
34415 /* end confdefs.h. */
34416 $ac_includes_default
34417 typedef ssize_t ac__type_new_;
34421 if ((ac__type_new_ *) 0)
34423 if (sizeof (ac__type_new_))
34429 rm -f conftest.$ac_objext
34430 if { (ac_try="$ac_compile"
34431 case "(($ac_try" in
34432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34433 *) ac_try_echo=$ac_try;;
34435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34436 (eval "$ac_compile") 2>conftest.er1
34438 grep -v '^ *+' conftest.er1 >conftest.err
34440 cat conftest.err >&5
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); } && {
34443 test -z "$ac_c_werror_flag" ||
34444 test ! -s conftest.err
34445 } && test -s conftest.$ac_objext; then
34446 ac_cv_type_ssize_t=yes
34448 echo "$as_me: failed program was:" >&5
34449 sed 's/^/| /' conftest.$ac_ext >&5
34451 ac_cv_type_ssize_t=no
34454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34456 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34457 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34458 if test $ac_cv_type_ssize_t = yes; then
34462 cat >>confdefs.h <<_ACEOF
34463 #define ssize_t int
34468 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34469 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34470 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34471 echo $ECHO_N "(cached) $ECHO_C" >&6
34473 cat >conftest.$ac_ext <<_ACEOF
34476 cat confdefs.h >>conftest.$ac_ext
34477 cat >>conftest.$ac_ext <<_ACEOF
34478 /* end confdefs.h. */
34479 $ac_includes_default
34483 static struct stat ac_aggr;
34484 if (ac_aggr.st_blocks)
34490 rm -f conftest.$ac_objext
34491 if { (ac_try="$ac_compile"
34492 case "(($ac_try" in
34493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34494 *) ac_try_echo=$ac_try;;
34496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34497 (eval "$ac_compile") 2>conftest.er1
34499 grep -v '^ *+' conftest.er1 >conftest.err
34501 cat conftest.err >&5
34502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34503 (exit $ac_status); } && {
34504 test -z "$ac_c_werror_flag" ||
34505 test ! -s conftest.err
34506 } && test -s conftest.$ac_objext; then
34507 ac_cv_member_struct_stat_st_blocks=yes
34509 echo "$as_me: failed program was:" >&5
34510 sed 's/^/| /' conftest.$ac_ext >&5
34512 cat >conftest.$ac_ext <<_ACEOF
34515 cat confdefs.h >>conftest.$ac_ext
34516 cat >>conftest.$ac_ext <<_ACEOF
34517 /* end confdefs.h. */
34518 $ac_includes_default
34522 static struct stat ac_aggr;
34523 if (sizeof ac_aggr.st_blocks)
34529 rm -f conftest.$ac_objext
34530 if { (ac_try="$ac_compile"
34531 case "(($ac_try" in
34532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34533 *) ac_try_echo=$ac_try;;
34535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34536 (eval "$ac_compile") 2>conftest.er1
34538 grep -v '^ *+' conftest.er1 >conftest.err
34540 cat conftest.err >&5
34541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542 (exit $ac_status); } && {
34543 test -z "$ac_c_werror_flag" ||
34544 test ! -s conftest.err
34545 } && test -s conftest.$ac_objext; then
34546 ac_cv_member_struct_stat_st_blocks=yes
34548 echo "$as_me: failed program was:" >&5
34549 sed 's/^/| /' conftest.$ac_ext >&5
34551 ac_cv_member_struct_stat_st_blocks=no
34554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34559 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34560 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34561 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34563 cat >>confdefs.h <<_ACEOF
34564 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34568 cat >>confdefs.h <<\_ACEOF
34569 #define HAVE_ST_BLOCKS 1
34573 case " $LIBOBJS " in
34574 *" fileblocks.$ac_objext "* ) ;;
34575 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34582 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34583 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34584 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34585 echo $ECHO_N "(cached) $ECHO_C" >&6
34587 cat >conftest.$ac_ext <<_ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h. */
34593 $ac_includes_default
34597 static struct stat ac_aggr;
34598 if (ac_aggr.st_rdev)
34604 rm -f conftest.$ac_objext
34605 if { (ac_try="$ac_compile"
34606 case "(($ac_try" in
34607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34608 *) ac_try_echo=$ac_try;;
34610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34611 (eval "$ac_compile") 2>conftest.er1
34613 grep -v '^ *+' conftest.er1 >conftest.err
34615 cat conftest.err >&5
34616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617 (exit $ac_status); } && {
34618 test -z "$ac_c_werror_flag" ||
34619 test ! -s conftest.err
34620 } && test -s conftest.$ac_objext; then
34621 ac_cv_member_struct_stat_st_rdev=yes
34623 echo "$as_me: failed program was:" >&5
34624 sed 's/^/| /' conftest.$ac_ext >&5
34626 cat >conftest.$ac_ext <<_ACEOF
34629 cat confdefs.h >>conftest.$ac_ext
34630 cat >>conftest.$ac_ext <<_ACEOF
34631 /* end confdefs.h. */
34632 $ac_includes_default
34636 static struct stat ac_aggr;
34637 if (sizeof ac_aggr.st_rdev)
34643 rm -f conftest.$ac_objext
34644 if { (ac_try="$ac_compile"
34645 case "(($ac_try" in
34646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34647 *) ac_try_echo=$ac_try;;
34649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34650 (eval "$ac_compile") 2>conftest.er1
34652 grep -v '^ *+' conftest.er1 >conftest.err
34654 cat conftest.err >&5
34655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656 (exit $ac_status); } && {
34657 test -z "$ac_c_werror_flag" ||
34658 test ! -s conftest.err
34659 } && test -s conftest.$ac_objext; then
34660 ac_cv_member_struct_stat_st_rdev=yes
34662 echo "$as_me: failed program was:" >&5
34663 sed 's/^/| /' conftest.$ac_ext >&5
34665 ac_cv_member_struct_stat_st_rdev=no
34668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34673 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34674 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34675 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34677 cat >>confdefs.h <<_ACEOF
34678 #define HAVE_STRUCT_STAT_ST_RDEV 1
34682 cat >>confdefs.h <<\_ACEOF
34683 #define HAVE_ST_RDEV 1
34689 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34690 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34691 if test "${ac_cv_struct_tm+set}" = set; then
34692 echo $ECHO_N "(cached) $ECHO_C" >&6
34694 cat >conftest.$ac_ext <<_ACEOF
34697 cat confdefs.h >>conftest.$ac_ext
34698 cat >>conftest.$ac_ext <<_ACEOF
34699 /* end confdefs.h. */
34700 #include <sys/types.h>
34707 int *p = &tm.tm_sec;
34713 rm -f conftest.$ac_objext
34714 if { (ac_try="$ac_compile"
34715 case "(($ac_try" in
34716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34717 *) ac_try_echo=$ac_try;;
34719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34720 (eval "$ac_compile") 2>conftest.er1
34722 grep -v '^ *+' conftest.er1 >conftest.err
34724 cat conftest.err >&5
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); } && {
34727 test -z "$ac_c_werror_flag" ||
34728 test ! -s conftest.err
34729 } && test -s conftest.$ac_objext; then
34730 ac_cv_struct_tm=time.h
34732 echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34735 ac_cv_struct_tm=sys/time.h
34738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34740 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34741 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34742 if test $ac_cv_struct_tm = sys/time.h; then
34744 cat >>confdefs.h <<\_ACEOF
34745 #define TM_IN_SYS_TIME 1
34750 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34751 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34752 if test "${ac_cv_c_const+set}" = set; then
34753 echo $ECHO_N "(cached) $ECHO_C" >&6
34755 cat >conftest.$ac_ext <<_ACEOF
34758 cat confdefs.h >>conftest.$ac_ext
34759 cat >>conftest.$ac_ext <<_ACEOF
34760 /* end confdefs.h. */
34765 /* FIXME: Include the comments suggested by Paul. */
34766 #ifndef __cplusplus
34767 /* Ultrix mips cc rejects this. */
34768 typedef int charset[2];
34770 /* SunOS 4.1.1 cc rejects this. */
34771 char const *const *pcpcc;
34773 /* NEC SVR4.0.2 mips cc rejects this. */
34774 struct point {int x, y;};
34775 static struct point const zero = {0,0};
34776 /* AIX XL C 1.02.0.0 rejects this.
34777 It does not let you subtract one const X* pointer from another in
34778 an arm of an if-expression whose if-part is not a constant
34780 const char *g = "string";
34781 pcpcc = &g + (g ? g-g : 0);
34782 /* HPUX 7.0 cc rejects these. */
34784 ppc = (char**) pcpcc;
34785 pcpcc = (char const *const *) ppc;
34786 { /* SCO 3.2v4 cc rejects this. */
34788 char const *s = 0 ? (char *) 0 : (char const *) 0;
34793 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34794 int x[] = {25, 17};
34795 const int *foo = &x[0];
34798 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34799 typedef const int *iptr;
34803 { /* AIX XL C 1.02.0.0 rejects this saying
34804 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34805 struct s { int j; const int *ap[3]; };
34806 struct s *b; b->j = 5;
34808 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34809 const int foo = 10;
34810 if (!foo) return 0;
34812 return !cs[0] && !zero.x;
34819 rm -f conftest.$ac_objext
34820 if { (ac_try="$ac_compile"
34821 case "(($ac_try" in
34822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34823 *) ac_try_echo=$ac_try;;
34825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34826 (eval "$ac_compile") 2>conftest.er1
34828 grep -v '^ *+' conftest.er1 >conftest.err
34830 cat conftest.err >&5
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); } && {
34833 test -z "$ac_c_werror_flag" ||
34834 test ! -s conftest.err
34835 } && test -s conftest.$ac_objext; then
34838 echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34846 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34847 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34848 if test $ac_cv_c_const = no; then
34850 cat >>confdefs.h <<\_ACEOF
34857 { echo "$as_me:$LINENO: checking for char" >&5
34858 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34859 if test "${ac_cv_type_char+set}" = set; then
34860 echo $ECHO_N "(cached) $ECHO_C" >&6
34862 cat >conftest.$ac_ext <<_ACEOF
34865 cat confdefs.h >>conftest.$ac_ext
34866 cat >>conftest.$ac_ext <<_ACEOF
34867 /* end confdefs.h. */
34868 $ac_includes_default
34869 typedef char ac__type_new_;
34873 if ((ac__type_new_ *) 0)
34875 if (sizeof (ac__type_new_))
34881 rm -f conftest.$ac_objext
34882 if { (ac_try="$ac_compile"
34883 case "(($ac_try" in
34884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34885 *) ac_try_echo=$ac_try;;
34887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34888 (eval "$ac_compile") 2>conftest.er1
34890 grep -v '^ *+' conftest.er1 >conftest.err
34892 cat conftest.err >&5
34893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894 (exit $ac_status); } && {
34895 test -z "$ac_c_werror_flag" ||
34896 test ! -s conftest.err
34897 } && test -s conftest.$ac_objext; then
34898 ac_cv_type_char=yes
34900 echo "$as_me: failed program was:" >&5
34901 sed 's/^/| /' conftest.$ac_ext >&5
34906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34908 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34909 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34911 # The cast to long int works around a bug in the HP C Compiler
34912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34914 # This bug is HP SR number 8606223364.
34915 { echo "$as_me:$LINENO: checking size of char" >&5
34916 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34917 if test "${ac_cv_sizeof_char+set}" = set; then
34918 echo $ECHO_N "(cached) $ECHO_C" >&6
34920 if test "$cross_compiling" = yes; then
34921 # Depending upon the size, compute the lo and hi bounds.
34922 cat >conftest.$ac_ext <<_ACEOF
34925 cat confdefs.h >>conftest.$ac_ext
34926 cat >>conftest.$ac_ext <<_ACEOF
34927 /* end confdefs.h. */
34928 $ac_includes_default
34929 typedef char ac__type_sizeof_;
34933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34940 rm -f conftest.$ac_objext
34941 if { (ac_try="$ac_compile"
34942 case "(($ac_try" in
34943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34944 *) ac_try_echo=$ac_try;;
34946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34947 (eval "$ac_compile") 2>conftest.er1
34949 grep -v '^ *+' conftest.er1 >conftest.err
34951 cat conftest.err >&5
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); } && {
34954 test -z "$ac_c_werror_flag" ||
34955 test ! -s conftest.err
34956 } && test -s conftest.$ac_objext; then
34959 cat >conftest.$ac_ext <<_ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h. */
34965 $ac_includes_default
34966 typedef char ac__type_sizeof_;
34970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34977 rm -f conftest.$ac_objext
34978 if { (ac_try="$ac_compile"
34979 case "(($ac_try" in
34980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34981 *) ac_try_echo=$ac_try;;
34983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34984 (eval "$ac_compile") 2>conftest.er1
34986 grep -v '^ *+' conftest.er1 >conftest.err
34988 cat conftest.err >&5
34989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990 (exit $ac_status); } && {
34991 test -z "$ac_c_werror_flag" ||
34992 test ! -s conftest.err
34993 } && test -s conftest.$ac_objext; then
34994 ac_hi=$ac_mid; break
34996 echo "$as_me: failed program was:" >&5
34997 sed 's/^/| /' conftest.$ac_ext >&5
34999 ac_lo=`expr $ac_mid + 1`
35000 if test $ac_lo -le $ac_mid; then
35004 ac_mid=`expr 2 '*' $ac_mid + 1`
35007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35010 echo "$as_me: failed program was:" >&5
35011 sed 's/^/| /' conftest.$ac_ext >&5
35013 cat >conftest.$ac_ext <<_ACEOF
35016 cat confdefs.h >>conftest.$ac_ext
35017 cat >>conftest.$ac_ext <<_ACEOF
35018 /* end confdefs.h. */
35019 $ac_includes_default
35020 typedef char ac__type_sizeof_;
35024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35031 rm -f conftest.$ac_objext
35032 if { (ac_try="$ac_compile"
35033 case "(($ac_try" in
35034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35035 *) ac_try_echo=$ac_try;;
35037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35038 (eval "$ac_compile") 2>conftest.er1
35040 grep -v '^ *+' conftest.er1 >conftest.err
35042 cat conftest.err >&5
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); } && {
35045 test -z "$ac_c_werror_flag" ||
35046 test ! -s conftest.err
35047 } && test -s conftest.$ac_objext; then
35050 cat >conftest.$ac_ext <<_ACEOF
35053 cat confdefs.h >>conftest.$ac_ext
35054 cat >>conftest.$ac_ext <<_ACEOF
35055 /* end confdefs.h. */
35056 $ac_includes_default
35057 typedef char ac__type_sizeof_;
35061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35068 rm -f conftest.$ac_objext
35069 if { (ac_try="$ac_compile"
35070 case "(($ac_try" in
35071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35072 *) ac_try_echo=$ac_try;;
35074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35075 (eval "$ac_compile") 2>conftest.er1
35077 grep -v '^ *+' conftest.er1 >conftest.err
35079 cat conftest.err >&5
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); } && {
35082 test -z "$ac_c_werror_flag" ||
35083 test ! -s conftest.err
35084 } && test -s conftest.$ac_objext; then
35085 ac_lo=$ac_mid; break
35087 echo "$as_me: failed program was:" >&5
35088 sed 's/^/| /' conftest.$ac_ext >&5
35090 ac_hi=`expr '(' $ac_mid ')' - 1`
35091 if test $ac_mid -le $ac_hi; then
35095 ac_mid=`expr 2 '*' $ac_mid`
35098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35101 echo "$as_me: failed program was:" >&5
35102 sed 's/^/| /' conftest.$ac_ext >&5
35107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35111 # Binary search between lo and hi bounds.
35112 while test "x$ac_lo" != "x$ac_hi"; do
35113 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35114 cat >conftest.$ac_ext <<_ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h. */
35120 $ac_includes_default
35121 typedef char ac__type_sizeof_;
35125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35132 rm -f conftest.$ac_objext
35133 if { (ac_try="$ac_compile"
35134 case "(($ac_try" in
35135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35136 *) ac_try_echo=$ac_try;;
35138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35139 (eval "$ac_compile") 2>conftest.er1
35141 grep -v '^ *+' conftest.er1 >conftest.err
35143 cat conftest.err >&5
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); } && {
35146 test -z "$ac_c_werror_flag" ||
35147 test ! -s conftest.err
35148 } && test -s conftest.$ac_objext; then
35151 echo "$as_me: failed program was:" >&5
35152 sed 's/^/| /' conftest.$ac_ext >&5
35154 ac_lo=`expr '(' $ac_mid ')' + 1`
35157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35160 ?*) ac_cv_sizeof_char=$ac_lo;;
35161 '') if test "$ac_cv_type_char" = yes; then
35162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35163 See \`config.log' for more details." >&5
35164 echo "$as_me: error: cannot compute sizeof (char)
35165 See \`config.log' for more details." >&2;}
35166 { (exit 77); exit 77; }; }
35168 ac_cv_sizeof_char=0
35172 cat >conftest.$ac_ext <<_ACEOF
35175 cat confdefs.h >>conftest.$ac_ext
35176 cat >>conftest.$ac_ext <<_ACEOF
35177 /* end confdefs.h. */
35178 $ac_includes_default
35179 typedef char ac__type_sizeof_;
35180 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35181 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35183 #include <stdlib.h>
35188 FILE *f = fopen ("conftest.val", "w");
35191 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35193 long int i = longval ();
35194 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35196 fprintf (f, "%ld\n", i);
35200 unsigned long int i = ulongval ();
35201 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35203 fprintf (f, "%lu\n", i);
35205 return ferror (f) || fclose (f) != 0;
35211 rm -f conftest$ac_exeext
35212 if { (ac_try="$ac_link"
35213 case "(($ac_try" in
35214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35215 *) ac_try_echo=$ac_try;;
35217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35218 (eval "$ac_link") 2>&5
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35222 { (case "(($ac_try" in
35223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35224 *) ac_try_echo=$ac_try;;
35226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35227 (eval "$ac_try") 2>&5
35229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230 (exit $ac_status); }; }; then
35231 ac_cv_sizeof_char=`cat conftest.val`
35233 echo "$as_me: program exited with status $ac_status" >&5
35234 echo "$as_me: failed program was:" >&5
35235 sed 's/^/| /' conftest.$ac_ext >&5
35237 ( exit $ac_status )
35238 if test "$ac_cv_type_char" = yes; then
35239 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35240 See \`config.log' for more details." >&5
35241 echo "$as_me: error: cannot compute sizeof (char)
35242 See \`config.log' for more details." >&2;}
35243 { (exit 77); exit 77; }; }
35245 ac_cv_sizeof_char=0
35248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35252 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35253 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35257 cat >>confdefs.h <<_ACEOF
35258 #define SIZEOF_CHAR $ac_cv_sizeof_char
35262 { echo "$as_me:$LINENO: checking for short int" >&5
35263 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35264 if test "${ac_cv_type_short_int+set}" = set; then
35265 echo $ECHO_N "(cached) $ECHO_C" >&6
35267 cat >conftest.$ac_ext <<_ACEOF
35270 cat confdefs.h >>conftest.$ac_ext
35271 cat >>conftest.$ac_ext <<_ACEOF
35272 /* end confdefs.h. */
35273 $ac_includes_default
35274 typedef short int ac__type_new_;
35278 if ((ac__type_new_ *) 0)
35280 if (sizeof (ac__type_new_))
35286 rm -f conftest.$ac_objext
35287 if { (ac_try="$ac_compile"
35288 case "(($ac_try" in
35289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35290 *) ac_try_echo=$ac_try;;
35292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35293 (eval "$ac_compile") 2>conftest.er1
35295 grep -v '^ *+' conftest.er1 >conftest.err
35297 cat conftest.err >&5
35298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35299 (exit $ac_status); } && {
35300 test -z "$ac_c_werror_flag" ||
35301 test ! -s conftest.err
35302 } && test -s conftest.$ac_objext; then
35303 ac_cv_type_short_int=yes
35305 echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.$ac_ext >&5
35308 ac_cv_type_short_int=no
35311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35313 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35314 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35316 # The cast to long int works around a bug in the HP C Compiler
35317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35319 # This bug is HP SR number 8606223364.
35320 { echo "$as_me:$LINENO: checking size of short int" >&5
35321 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35322 if test "${ac_cv_sizeof_short_int+set}" = set; then
35323 echo $ECHO_N "(cached) $ECHO_C" >&6
35325 if test "$cross_compiling" = yes; then
35326 # Depending upon the size, compute the lo and hi bounds.
35327 cat >conftest.$ac_ext <<_ACEOF
35330 cat confdefs.h >>conftest.$ac_ext
35331 cat >>conftest.$ac_ext <<_ACEOF
35332 /* end confdefs.h. */
35333 $ac_includes_default
35334 typedef short int ac__type_sizeof_;
35338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35345 rm -f conftest.$ac_objext
35346 if { (ac_try="$ac_compile"
35347 case "(($ac_try" in
35348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35349 *) ac_try_echo=$ac_try;;
35351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35352 (eval "$ac_compile") 2>conftest.er1
35354 grep -v '^ *+' conftest.er1 >conftest.err
35356 cat conftest.err >&5
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); } && {
35359 test -z "$ac_c_werror_flag" ||
35360 test ! -s conftest.err
35361 } && test -s conftest.$ac_objext; then
35364 cat >conftest.$ac_ext <<_ACEOF
35367 cat confdefs.h >>conftest.$ac_ext
35368 cat >>conftest.$ac_ext <<_ACEOF
35369 /* end confdefs.h. */
35370 $ac_includes_default
35371 typedef short int ac__type_sizeof_;
35375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35382 rm -f conftest.$ac_objext
35383 if { (ac_try="$ac_compile"
35384 case "(($ac_try" in
35385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35386 *) ac_try_echo=$ac_try;;
35388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35389 (eval "$ac_compile") 2>conftest.er1
35391 grep -v '^ *+' conftest.er1 >conftest.err
35393 cat conftest.err >&5
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); } && {
35396 test -z "$ac_c_werror_flag" ||
35397 test ! -s conftest.err
35398 } && test -s conftest.$ac_objext; then
35399 ac_hi=$ac_mid; break
35401 echo "$as_me: failed program was:" >&5
35402 sed 's/^/| /' conftest.$ac_ext >&5
35404 ac_lo=`expr $ac_mid + 1`
35405 if test $ac_lo -le $ac_mid; then
35409 ac_mid=`expr 2 '*' $ac_mid + 1`
35412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35415 echo "$as_me: failed program was:" >&5
35416 sed 's/^/| /' conftest.$ac_ext >&5
35418 cat >conftest.$ac_ext <<_ACEOF
35421 cat confdefs.h >>conftest.$ac_ext
35422 cat >>conftest.$ac_ext <<_ACEOF
35423 /* end confdefs.h. */
35424 $ac_includes_default
35425 typedef short int ac__type_sizeof_;
35429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35436 rm -f conftest.$ac_objext
35437 if { (ac_try="$ac_compile"
35438 case "(($ac_try" in
35439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35440 *) ac_try_echo=$ac_try;;
35442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35443 (eval "$ac_compile") 2>conftest.er1
35445 grep -v '^ *+' conftest.er1 >conftest.err
35447 cat conftest.err >&5
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); } && {
35450 test -z "$ac_c_werror_flag" ||
35451 test ! -s conftest.err
35452 } && test -s conftest.$ac_objext; then
35455 cat >conftest.$ac_ext <<_ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h. */
35461 $ac_includes_default
35462 typedef short int ac__type_sizeof_;
35466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35473 rm -f conftest.$ac_objext
35474 if { (ac_try="$ac_compile"
35475 case "(($ac_try" in
35476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35477 *) ac_try_echo=$ac_try;;
35479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35480 (eval "$ac_compile") 2>conftest.er1
35482 grep -v '^ *+' conftest.er1 >conftest.err
35484 cat conftest.err >&5
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); } && {
35487 test -z "$ac_c_werror_flag" ||
35488 test ! -s conftest.err
35489 } && test -s conftest.$ac_objext; then
35490 ac_lo=$ac_mid; break
35492 echo "$as_me: failed program was:" >&5
35493 sed 's/^/| /' conftest.$ac_ext >&5
35495 ac_hi=`expr '(' $ac_mid ')' - 1`
35496 if test $ac_mid -le $ac_hi; then
35500 ac_mid=`expr 2 '*' $ac_mid`
35503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35506 echo "$as_me: failed program was:" >&5
35507 sed 's/^/| /' conftest.$ac_ext >&5
35512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35516 # Binary search between lo and hi bounds.
35517 while test "x$ac_lo" != "x$ac_hi"; do
35518 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35519 cat >conftest.$ac_ext <<_ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h. */
35525 $ac_includes_default
35526 typedef short int ac__type_sizeof_;
35530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35537 rm -f conftest.$ac_objext
35538 if { (ac_try="$ac_compile"
35539 case "(($ac_try" in
35540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35541 *) ac_try_echo=$ac_try;;
35543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35544 (eval "$ac_compile") 2>conftest.er1
35546 grep -v '^ *+' conftest.er1 >conftest.err
35548 cat conftest.err >&5
35549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); } && {
35551 test -z "$ac_c_werror_flag" ||
35552 test ! -s conftest.err
35553 } && test -s conftest.$ac_objext; then
35556 echo "$as_me: failed program was:" >&5
35557 sed 's/^/| /' conftest.$ac_ext >&5
35559 ac_lo=`expr '(' $ac_mid ')' + 1`
35562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35565 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35566 '') if test "$ac_cv_type_short_int" = yes; then
35567 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35568 See \`config.log' for more details." >&5
35569 echo "$as_me: error: cannot compute sizeof (short int)
35570 See \`config.log' for more details." >&2;}
35571 { (exit 77); exit 77; }; }
35573 ac_cv_sizeof_short_int=0
35577 cat >conftest.$ac_ext <<_ACEOF
35580 cat confdefs.h >>conftest.$ac_ext
35581 cat >>conftest.$ac_ext <<_ACEOF
35582 /* end confdefs.h. */
35583 $ac_includes_default
35584 typedef short int ac__type_sizeof_;
35585 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35586 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35588 #include <stdlib.h>
35593 FILE *f = fopen ("conftest.val", "w");
35596 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35598 long int i = longval ();
35599 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35601 fprintf (f, "%ld\n", i);
35605 unsigned long int i = ulongval ();
35606 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35608 fprintf (f, "%lu\n", i);
35610 return ferror (f) || fclose (f) != 0;
35616 rm -f conftest$ac_exeext
35617 if { (ac_try="$ac_link"
35618 case "(($ac_try" in
35619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35620 *) ac_try_echo=$ac_try;;
35622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35623 (eval "$ac_link") 2>&5
35625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35627 { (case "(($ac_try" in
35628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35629 *) ac_try_echo=$ac_try;;
35631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35632 (eval "$ac_try") 2>&5
35634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635 (exit $ac_status); }; }; then
35636 ac_cv_sizeof_short_int=`cat conftest.val`
35638 echo "$as_me: program exited with status $ac_status" >&5
35639 echo "$as_me: failed program was:" >&5
35640 sed 's/^/| /' conftest.$ac_ext >&5
35642 ( exit $ac_status )
35643 if test "$ac_cv_type_short_int" = yes; then
35644 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35645 See \`config.log' for more details." >&5
35646 echo "$as_me: error: cannot compute sizeof (short int)
35647 See \`config.log' for more details." >&2;}
35648 { (exit 77); exit 77; }; }
35650 ac_cv_sizeof_short_int=0
35653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35657 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35658 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35662 cat >>confdefs.h <<_ACEOF
35663 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35667 { echo "$as_me:$LINENO: checking for int" >&5
35668 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35669 if test "${ac_cv_type_int+set}" = set; then
35670 echo $ECHO_N "(cached) $ECHO_C" >&6
35672 cat >conftest.$ac_ext <<_ACEOF
35675 cat confdefs.h >>conftest.$ac_ext
35676 cat >>conftest.$ac_ext <<_ACEOF
35677 /* end confdefs.h. */
35678 $ac_includes_default
35679 typedef int ac__type_new_;
35683 if ((ac__type_new_ *) 0)
35685 if (sizeof (ac__type_new_))
35691 rm -f conftest.$ac_objext
35692 if { (ac_try="$ac_compile"
35693 case "(($ac_try" in
35694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35695 *) ac_try_echo=$ac_try;;
35697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35698 (eval "$ac_compile") 2>conftest.er1
35700 grep -v '^ *+' conftest.er1 >conftest.err
35702 cat conftest.err >&5
35703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); } && {
35705 test -z "$ac_c_werror_flag" ||
35706 test ! -s conftest.err
35707 } && test -s conftest.$ac_objext; then
35710 echo "$as_me: failed program was:" >&5
35711 sed 's/^/| /' conftest.$ac_ext >&5
35716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35718 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35719 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35721 # The cast to long int works around a bug in the HP C Compiler
35722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35724 # This bug is HP SR number 8606223364.
35725 { echo "$as_me:$LINENO: checking size of int" >&5
35726 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35727 if test "${ac_cv_sizeof_int+set}" = set; then
35728 echo $ECHO_N "(cached) $ECHO_C" >&6
35730 if test "$cross_compiling" = yes; then
35731 # Depending upon the size, compute the lo and hi bounds.
35732 cat >conftest.$ac_ext <<_ACEOF
35735 cat confdefs.h >>conftest.$ac_ext
35736 cat >>conftest.$ac_ext <<_ACEOF
35737 /* end confdefs.h. */
35738 $ac_includes_default
35739 typedef int ac__type_sizeof_;
35743 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35750 rm -f conftest.$ac_objext
35751 if { (ac_try="$ac_compile"
35752 case "(($ac_try" in
35753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35754 *) ac_try_echo=$ac_try;;
35756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35757 (eval "$ac_compile") 2>conftest.er1
35759 grep -v '^ *+' conftest.er1 >conftest.err
35761 cat conftest.err >&5
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); } && {
35764 test -z "$ac_c_werror_flag" ||
35765 test ! -s conftest.err
35766 } && test -s conftest.$ac_objext; then
35769 cat >conftest.$ac_ext <<_ACEOF
35772 cat confdefs.h >>conftest.$ac_ext
35773 cat >>conftest.$ac_ext <<_ACEOF
35774 /* end confdefs.h. */
35775 $ac_includes_default
35776 typedef int ac__type_sizeof_;
35780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35787 rm -f conftest.$ac_objext
35788 if { (ac_try="$ac_compile"
35789 case "(($ac_try" in
35790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35791 *) ac_try_echo=$ac_try;;
35793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35794 (eval "$ac_compile") 2>conftest.er1
35796 grep -v '^ *+' conftest.er1 >conftest.err
35798 cat conftest.err >&5
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); } && {
35801 test -z "$ac_c_werror_flag" ||
35802 test ! -s conftest.err
35803 } && test -s conftest.$ac_objext; then
35804 ac_hi=$ac_mid; break
35806 echo "$as_me: failed program was:" >&5
35807 sed 's/^/| /' conftest.$ac_ext >&5
35809 ac_lo=`expr $ac_mid + 1`
35810 if test $ac_lo -le $ac_mid; then
35814 ac_mid=`expr 2 '*' $ac_mid + 1`
35817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35820 echo "$as_me: failed program was:" >&5
35821 sed 's/^/| /' conftest.$ac_ext >&5
35823 cat >conftest.$ac_ext <<_ACEOF
35826 cat confdefs.h >>conftest.$ac_ext
35827 cat >>conftest.$ac_ext <<_ACEOF
35828 /* end confdefs.h. */
35829 $ac_includes_default
35830 typedef int ac__type_sizeof_;
35834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35841 rm -f conftest.$ac_objext
35842 if { (ac_try="$ac_compile"
35843 case "(($ac_try" in
35844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35845 *) ac_try_echo=$ac_try;;
35847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35848 (eval "$ac_compile") 2>conftest.er1
35850 grep -v '^ *+' conftest.er1 >conftest.err
35852 cat conftest.err >&5
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); } && {
35855 test -z "$ac_c_werror_flag" ||
35856 test ! -s conftest.err
35857 } && test -s conftest.$ac_objext; then
35860 cat >conftest.$ac_ext <<_ACEOF
35863 cat confdefs.h >>conftest.$ac_ext
35864 cat >>conftest.$ac_ext <<_ACEOF
35865 /* end confdefs.h. */
35866 $ac_includes_default
35867 typedef int ac__type_sizeof_;
35871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35878 rm -f conftest.$ac_objext
35879 if { (ac_try="$ac_compile"
35880 case "(($ac_try" in
35881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35882 *) ac_try_echo=$ac_try;;
35884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35885 (eval "$ac_compile") 2>conftest.er1
35887 grep -v '^ *+' conftest.er1 >conftest.err
35889 cat conftest.err >&5
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); } && {
35892 test -z "$ac_c_werror_flag" ||
35893 test ! -s conftest.err
35894 } && test -s conftest.$ac_objext; then
35895 ac_lo=$ac_mid; break
35897 echo "$as_me: failed program was:" >&5
35898 sed 's/^/| /' conftest.$ac_ext >&5
35900 ac_hi=`expr '(' $ac_mid ')' - 1`
35901 if test $ac_mid -le $ac_hi; then
35905 ac_mid=`expr 2 '*' $ac_mid`
35908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35911 echo "$as_me: failed program was:" >&5
35912 sed 's/^/| /' conftest.$ac_ext >&5
35917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35921 # Binary search between lo and hi bounds.
35922 while test "x$ac_lo" != "x$ac_hi"; do
35923 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35924 cat >conftest.$ac_ext <<_ACEOF
35927 cat confdefs.h >>conftest.$ac_ext
35928 cat >>conftest.$ac_ext <<_ACEOF
35929 /* end confdefs.h. */
35930 $ac_includes_default
35931 typedef int ac__type_sizeof_;
35935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35942 rm -f conftest.$ac_objext
35943 if { (ac_try="$ac_compile"
35944 case "(($ac_try" in
35945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35946 *) ac_try_echo=$ac_try;;
35948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35949 (eval "$ac_compile") 2>conftest.er1
35951 grep -v '^ *+' conftest.er1 >conftest.err
35953 cat conftest.err >&5
35954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955 (exit $ac_status); } && {
35956 test -z "$ac_c_werror_flag" ||
35957 test ! -s conftest.err
35958 } && test -s conftest.$ac_objext; then
35961 echo "$as_me: failed program was:" >&5
35962 sed 's/^/| /' conftest.$ac_ext >&5
35964 ac_lo=`expr '(' $ac_mid ')' + 1`
35967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35970 ?*) ac_cv_sizeof_int=$ac_lo;;
35971 '') if test "$ac_cv_type_int" = yes; then
35972 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35973 See \`config.log' for more details." >&5
35974 echo "$as_me: error: cannot compute sizeof (int)
35975 See \`config.log' for more details." >&2;}
35976 { (exit 77); exit 77; }; }
35982 cat >conftest.$ac_ext <<_ACEOF
35985 cat confdefs.h >>conftest.$ac_ext
35986 cat >>conftest.$ac_ext <<_ACEOF
35987 /* end confdefs.h. */
35988 $ac_includes_default
35989 typedef int ac__type_sizeof_;
35990 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35991 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35993 #include <stdlib.h>
35998 FILE *f = fopen ("conftest.val", "w");
36001 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36003 long int i = longval ();
36004 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36006 fprintf (f, "%ld\n", i);
36010 unsigned long int i = ulongval ();
36011 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36013 fprintf (f, "%lu\n", i);
36015 return ferror (f) || fclose (f) != 0;
36021 rm -f conftest$ac_exeext
36022 if { (ac_try="$ac_link"
36023 case "(($ac_try" in
36024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36025 *) ac_try_echo=$ac_try;;
36027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36028 (eval "$ac_link") 2>&5
36030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36032 { (case "(($ac_try" in
36033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36034 *) ac_try_echo=$ac_try;;
36036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36037 (eval "$ac_try") 2>&5
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); }; }; then
36041 ac_cv_sizeof_int=`cat conftest.val`
36043 echo "$as_me: program exited with status $ac_status" >&5
36044 echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36047 ( exit $ac_status )
36048 if test "$ac_cv_type_int" = yes; then
36049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36050 See \`config.log' for more details." >&5
36051 echo "$as_me: error: cannot compute sizeof (int)
36052 See \`config.log' for more details." >&2;}
36053 { (exit 77); exit 77; }; }
36058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36062 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36063 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36067 cat >>confdefs.h <<_ACEOF
36068 #define SIZEOF_INT $ac_cv_sizeof_int
36072 { echo "$as_me:$LINENO: checking for long int" >&5
36073 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36074 if test "${ac_cv_type_long_int+set}" = set; then
36075 echo $ECHO_N "(cached) $ECHO_C" >&6
36077 cat >conftest.$ac_ext <<_ACEOF
36080 cat confdefs.h >>conftest.$ac_ext
36081 cat >>conftest.$ac_ext <<_ACEOF
36082 /* end confdefs.h. */
36083 $ac_includes_default
36084 typedef long int ac__type_new_;
36088 if ((ac__type_new_ *) 0)
36090 if (sizeof (ac__type_new_))
36096 rm -f conftest.$ac_objext
36097 if { (ac_try="$ac_compile"
36098 case "(($ac_try" in
36099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36100 *) ac_try_echo=$ac_try;;
36102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36103 (eval "$ac_compile") 2>conftest.er1
36105 grep -v '^ *+' conftest.er1 >conftest.err
36107 cat conftest.err >&5
36108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109 (exit $ac_status); } && {
36110 test -z "$ac_c_werror_flag" ||
36111 test ! -s conftest.err
36112 } && test -s conftest.$ac_objext; then
36113 ac_cv_type_long_int=yes
36115 echo "$as_me: failed program was:" >&5
36116 sed 's/^/| /' conftest.$ac_ext >&5
36118 ac_cv_type_long_int=no
36121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36123 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36124 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36126 # The cast to long int works around a bug in the HP C Compiler
36127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36129 # This bug is HP SR number 8606223364.
36130 { echo "$as_me:$LINENO: checking size of long int" >&5
36131 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36132 if test "${ac_cv_sizeof_long_int+set}" = set; then
36133 echo $ECHO_N "(cached) $ECHO_C" >&6
36135 if test "$cross_compiling" = yes; then
36136 # Depending upon the size, compute the lo and hi bounds.
36137 cat >conftest.$ac_ext <<_ACEOF
36140 cat confdefs.h >>conftest.$ac_ext
36141 cat >>conftest.$ac_ext <<_ACEOF
36142 /* end confdefs.h. */
36143 $ac_includes_default
36144 typedef long int ac__type_sizeof_;
36148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36155 rm -f conftest.$ac_objext
36156 if { (ac_try="$ac_compile"
36157 case "(($ac_try" in
36158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36159 *) ac_try_echo=$ac_try;;
36161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36162 (eval "$ac_compile") 2>conftest.er1
36164 grep -v '^ *+' conftest.er1 >conftest.err
36166 cat conftest.err >&5
36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); } && {
36169 test -z "$ac_c_werror_flag" ||
36170 test ! -s conftest.err
36171 } && test -s conftest.$ac_objext; then
36174 cat >conftest.$ac_ext <<_ACEOF
36177 cat confdefs.h >>conftest.$ac_ext
36178 cat >>conftest.$ac_ext <<_ACEOF
36179 /* end confdefs.h. */
36180 $ac_includes_default
36181 typedef long int ac__type_sizeof_;
36185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36192 rm -f conftest.$ac_objext
36193 if { (ac_try="$ac_compile"
36194 case "(($ac_try" in
36195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36196 *) ac_try_echo=$ac_try;;
36198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36199 (eval "$ac_compile") 2>conftest.er1
36201 grep -v '^ *+' conftest.er1 >conftest.err
36203 cat conftest.err >&5
36204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205 (exit $ac_status); } && {
36206 test -z "$ac_c_werror_flag" ||
36207 test ! -s conftest.err
36208 } && test -s conftest.$ac_objext; then
36209 ac_hi=$ac_mid; break
36211 echo "$as_me: failed program was:" >&5
36212 sed 's/^/| /' conftest.$ac_ext >&5
36214 ac_lo=`expr $ac_mid + 1`
36215 if test $ac_lo -le $ac_mid; then
36219 ac_mid=`expr 2 '*' $ac_mid + 1`
36222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36225 echo "$as_me: failed program was:" >&5
36226 sed 's/^/| /' conftest.$ac_ext >&5
36228 cat >conftest.$ac_ext <<_ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h. */
36234 $ac_includes_default
36235 typedef long int ac__type_sizeof_;
36239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36246 rm -f conftest.$ac_objext
36247 if { (ac_try="$ac_compile"
36248 case "(($ac_try" in
36249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36250 *) ac_try_echo=$ac_try;;
36252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36253 (eval "$ac_compile") 2>conftest.er1
36255 grep -v '^ *+' conftest.er1 >conftest.err
36257 cat conftest.err >&5
36258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259 (exit $ac_status); } && {
36260 test -z "$ac_c_werror_flag" ||
36261 test ! -s conftest.err
36262 } && test -s conftest.$ac_objext; then
36265 cat >conftest.$ac_ext <<_ACEOF
36268 cat confdefs.h >>conftest.$ac_ext
36269 cat >>conftest.$ac_ext <<_ACEOF
36270 /* end confdefs.h. */
36271 $ac_includes_default
36272 typedef long int ac__type_sizeof_;
36276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36283 rm -f conftest.$ac_objext
36284 if { (ac_try="$ac_compile"
36285 case "(($ac_try" in
36286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36287 *) ac_try_echo=$ac_try;;
36289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36290 (eval "$ac_compile") 2>conftest.er1
36292 grep -v '^ *+' conftest.er1 >conftest.err
36294 cat conftest.err >&5
36295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296 (exit $ac_status); } && {
36297 test -z "$ac_c_werror_flag" ||
36298 test ! -s conftest.err
36299 } && test -s conftest.$ac_objext; then
36300 ac_lo=$ac_mid; break
36302 echo "$as_me: failed program was:" >&5
36303 sed 's/^/| /' conftest.$ac_ext >&5
36305 ac_hi=`expr '(' $ac_mid ')' - 1`
36306 if test $ac_mid -le $ac_hi; then
36310 ac_mid=`expr 2 '*' $ac_mid`
36313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36316 echo "$as_me: failed program was:" >&5
36317 sed 's/^/| /' conftest.$ac_ext >&5
36322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36326 # Binary search between lo and hi bounds.
36327 while test "x$ac_lo" != "x$ac_hi"; do
36328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36329 cat >conftest.$ac_ext <<_ACEOF
36332 cat confdefs.h >>conftest.$ac_ext
36333 cat >>conftest.$ac_ext <<_ACEOF
36334 /* end confdefs.h. */
36335 $ac_includes_default
36336 typedef long int ac__type_sizeof_;
36340 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36347 rm -f conftest.$ac_objext
36348 if { (ac_try="$ac_compile"
36349 case "(($ac_try" in
36350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36351 *) ac_try_echo=$ac_try;;
36353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36354 (eval "$ac_compile") 2>conftest.er1
36356 grep -v '^ *+' conftest.er1 >conftest.err
36358 cat conftest.err >&5
36359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360 (exit $ac_status); } && {
36361 test -z "$ac_c_werror_flag" ||
36362 test ! -s conftest.err
36363 } && test -s conftest.$ac_objext; then
36366 echo "$as_me: failed program was:" >&5
36367 sed 's/^/| /' conftest.$ac_ext >&5
36369 ac_lo=`expr '(' $ac_mid ')' + 1`
36372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36375 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36376 '') if test "$ac_cv_type_long_int" = yes; then
36377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36378 See \`config.log' for more details." >&5
36379 echo "$as_me: error: cannot compute sizeof (long int)
36380 See \`config.log' for more details." >&2;}
36381 { (exit 77); exit 77; }; }
36383 ac_cv_sizeof_long_int=0
36387 cat >conftest.$ac_ext <<_ACEOF
36390 cat confdefs.h >>conftest.$ac_ext
36391 cat >>conftest.$ac_ext <<_ACEOF
36392 /* end confdefs.h. */
36393 $ac_includes_default
36394 typedef long int ac__type_sizeof_;
36395 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36396 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36398 #include <stdlib.h>
36403 FILE *f = fopen ("conftest.val", "w");
36406 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36408 long int i = longval ();
36409 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36411 fprintf (f, "%ld\n", i);
36415 unsigned long int i = ulongval ();
36416 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36418 fprintf (f, "%lu\n", i);
36420 return ferror (f) || fclose (f) != 0;
36426 rm -f conftest$ac_exeext
36427 if { (ac_try="$ac_link"
36428 case "(($ac_try" in
36429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36430 *) ac_try_echo=$ac_try;;
36432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36433 (eval "$ac_link") 2>&5
36435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36437 { (case "(($ac_try" in
36438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36439 *) ac_try_echo=$ac_try;;
36441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36442 (eval "$ac_try") 2>&5
36444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445 (exit $ac_status); }; }; then
36446 ac_cv_sizeof_long_int=`cat conftest.val`
36448 echo "$as_me: program exited with status $ac_status" >&5
36449 echo "$as_me: failed program was:" >&5
36450 sed 's/^/| /' conftest.$ac_ext >&5
36452 ( exit $ac_status )
36453 if test "$ac_cv_type_long_int" = yes; then
36454 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36455 See \`config.log' for more details." >&5
36456 echo "$as_me: error: cannot compute sizeof (long int)
36457 See \`config.log' for more details." >&2;}
36458 { (exit 77); exit 77; }; }
36460 ac_cv_sizeof_long_int=0
36463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36467 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36468 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36472 cat >>confdefs.h <<_ACEOF
36473 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36477 { echo "$as_me:$LINENO: checking for long long int" >&5
36478 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36479 if test "${ac_cv_type_long_long_int+set}" = set; then
36480 echo $ECHO_N "(cached) $ECHO_C" >&6
36482 cat >conftest.$ac_ext <<_ACEOF
36485 cat confdefs.h >>conftest.$ac_ext
36486 cat >>conftest.$ac_ext <<_ACEOF
36487 /* end confdefs.h. */
36488 $ac_includes_default
36489 typedef long long int ac__type_new_;
36493 if ((ac__type_new_ *) 0)
36495 if (sizeof (ac__type_new_))
36501 rm -f conftest.$ac_objext
36502 if { (ac_try="$ac_compile"
36503 case "(($ac_try" in
36504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36505 *) ac_try_echo=$ac_try;;
36507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36508 (eval "$ac_compile") 2>conftest.er1
36510 grep -v '^ *+' conftest.er1 >conftest.err
36512 cat conftest.err >&5
36513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514 (exit $ac_status); } && {
36515 test -z "$ac_c_werror_flag" ||
36516 test ! -s conftest.err
36517 } && test -s conftest.$ac_objext; then
36518 ac_cv_type_long_long_int=yes
36520 echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36523 ac_cv_type_long_long_int=no
36526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36528 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36529 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36531 # The cast to long int works around a bug in the HP C Compiler
36532 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36533 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36534 # This bug is HP SR number 8606223364.
36535 { echo "$as_me:$LINENO: checking size of long long int" >&5
36536 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36537 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36538 echo $ECHO_N "(cached) $ECHO_C" >&6
36540 if test "$cross_compiling" = yes; then
36541 # Depending upon the size, compute the lo and hi bounds.
36542 cat >conftest.$ac_ext <<_ACEOF
36545 cat confdefs.h >>conftest.$ac_ext
36546 cat >>conftest.$ac_ext <<_ACEOF
36547 /* end confdefs.h. */
36548 $ac_includes_default
36549 typedef long long int ac__type_sizeof_;
36553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36560 rm -f conftest.$ac_objext
36561 if { (ac_try="$ac_compile"
36562 case "(($ac_try" in
36563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36564 *) ac_try_echo=$ac_try;;
36566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36567 (eval "$ac_compile") 2>conftest.er1
36569 grep -v '^ *+' conftest.er1 >conftest.err
36571 cat conftest.err >&5
36572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573 (exit $ac_status); } && {
36574 test -z "$ac_c_werror_flag" ||
36575 test ! -s conftest.err
36576 } && test -s conftest.$ac_objext; then
36579 cat >conftest.$ac_ext <<_ACEOF
36582 cat confdefs.h >>conftest.$ac_ext
36583 cat >>conftest.$ac_ext <<_ACEOF
36584 /* end confdefs.h. */
36585 $ac_includes_default
36586 typedef long long int ac__type_sizeof_;
36590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36597 rm -f conftest.$ac_objext
36598 if { (ac_try="$ac_compile"
36599 case "(($ac_try" in
36600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36601 *) ac_try_echo=$ac_try;;
36603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36604 (eval "$ac_compile") 2>conftest.er1
36606 grep -v '^ *+' conftest.er1 >conftest.err
36608 cat conftest.err >&5
36609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610 (exit $ac_status); } && {
36611 test -z "$ac_c_werror_flag" ||
36612 test ! -s conftest.err
36613 } && test -s conftest.$ac_objext; then
36614 ac_hi=$ac_mid; break
36616 echo "$as_me: failed program was:" >&5
36617 sed 's/^/| /' conftest.$ac_ext >&5
36619 ac_lo=`expr $ac_mid + 1`
36620 if test $ac_lo -le $ac_mid; then
36624 ac_mid=`expr 2 '*' $ac_mid + 1`
36627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36630 echo "$as_me: failed program was:" >&5
36631 sed 's/^/| /' conftest.$ac_ext >&5
36633 cat >conftest.$ac_ext <<_ACEOF
36636 cat confdefs.h >>conftest.$ac_ext
36637 cat >>conftest.$ac_ext <<_ACEOF
36638 /* end confdefs.h. */
36639 $ac_includes_default
36640 typedef long long int ac__type_sizeof_;
36644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36651 rm -f conftest.$ac_objext
36652 if { (ac_try="$ac_compile"
36653 case "(($ac_try" in
36654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36655 *) ac_try_echo=$ac_try;;
36657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36658 (eval "$ac_compile") 2>conftest.er1
36660 grep -v '^ *+' conftest.er1 >conftest.err
36662 cat conftest.err >&5
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); } && {
36665 test -z "$ac_c_werror_flag" ||
36666 test ! -s conftest.err
36667 } && test -s conftest.$ac_objext; then
36670 cat >conftest.$ac_ext <<_ACEOF
36673 cat confdefs.h >>conftest.$ac_ext
36674 cat >>conftest.$ac_ext <<_ACEOF
36675 /* end confdefs.h. */
36676 $ac_includes_default
36677 typedef long long int ac__type_sizeof_;
36681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36688 rm -f conftest.$ac_objext
36689 if { (ac_try="$ac_compile"
36690 case "(($ac_try" in
36691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36692 *) ac_try_echo=$ac_try;;
36694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36695 (eval "$ac_compile") 2>conftest.er1
36697 grep -v '^ *+' conftest.er1 >conftest.err
36699 cat conftest.err >&5
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); } && {
36702 test -z "$ac_c_werror_flag" ||
36703 test ! -s conftest.err
36704 } && test -s conftest.$ac_objext; then
36705 ac_lo=$ac_mid; break
36707 echo "$as_me: failed program was:" >&5
36708 sed 's/^/| /' conftest.$ac_ext >&5
36710 ac_hi=`expr '(' $ac_mid ')' - 1`
36711 if test $ac_mid -le $ac_hi; then
36715 ac_mid=`expr 2 '*' $ac_mid`
36718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36721 echo "$as_me: failed program was:" >&5
36722 sed 's/^/| /' conftest.$ac_ext >&5
36727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36731 # Binary search between lo and hi bounds.
36732 while test "x$ac_lo" != "x$ac_hi"; do
36733 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36734 cat >conftest.$ac_ext <<_ACEOF
36737 cat confdefs.h >>conftest.$ac_ext
36738 cat >>conftest.$ac_ext <<_ACEOF
36739 /* end confdefs.h. */
36740 $ac_includes_default
36741 typedef long long int ac__type_sizeof_;
36745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36752 rm -f conftest.$ac_objext
36753 if { (ac_try="$ac_compile"
36754 case "(($ac_try" in
36755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36756 *) ac_try_echo=$ac_try;;
36758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36759 (eval "$ac_compile") 2>conftest.er1
36761 grep -v '^ *+' conftest.er1 >conftest.err
36763 cat conftest.err >&5
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); } && {
36766 test -z "$ac_c_werror_flag" ||
36767 test ! -s conftest.err
36768 } && test -s conftest.$ac_objext; then
36771 echo "$as_me: failed program was:" >&5
36772 sed 's/^/| /' conftest.$ac_ext >&5
36774 ac_lo=`expr '(' $ac_mid ')' + 1`
36777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36780 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36781 '') if test "$ac_cv_type_long_long_int" = yes; then
36782 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36783 See \`config.log' for more details." >&5
36784 echo "$as_me: error: cannot compute sizeof (long long int)
36785 See \`config.log' for more details." >&2;}
36786 { (exit 77); exit 77; }; }
36788 ac_cv_sizeof_long_long_int=0
36792 cat >conftest.$ac_ext <<_ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h. */
36798 $ac_includes_default
36799 typedef long long int ac__type_sizeof_;
36800 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36801 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36803 #include <stdlib.h>
36808 FILE *f = fopen ("conftest.val", "w");
36811 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36813 long int i = longval ();
36814 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36816 fprintf (f, "%ld\n", i);
36820 unsigned long int i = ulongval ();
36821 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36823 fprintf (f, "%lu\n", i);
36825 return ferror (f) || fclose (f) != 0;
36831 rm -f conftest$ac_exeext
36832 if { (ac_try="$ac_link"
36833 case "(($ac_try" in
36834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36835 *) ac_try_echo=$ac_try;;
36837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36838 (eval "$ac_link") 2>&5
36840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36842 { (case "(($ac_try" in
36843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36844 *) ac_try_echo=$ac_try;;
36846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36847 (eval "$ac_try") 2>&5
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); }; }; then
36851 ac_cv_sizeof_long_long_int=`cat conftest.val`
36853 echo "$as_me: program exited with status $ac_status" >&5
36854 echo "$as_me: failed program was:" >&5
36855 sed 's/^/| /' conftest.$ac_ext >&5
36857 ( exit $ac_status )
36858 if test "$ac_cv_type_long_long_int" = yes; then
36859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36860 See \`config.log' for more details." >&5
36861 echo "$as_me: error: cannot compute sizeof (long long int)
36862 See \`config.log' for more details." >&2;}
36863 { (exit 77); exit 77; }; }
36865 ac_cv_sizeof_long_long_int=0
36868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36872 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36873 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36877 cat >>confdefs.h <<_ACEOF
36878 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36882 { echo "$as_me:$LINENO: checking for int *" >&5
36883 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36884 if test "${ac_cv_type_int_p+set}" = set; then
36885 echo $ECHO_N "(cached) $ECHO_C" >&6
36887 cat >conftest.$ac_ext <<_ACEOF
36890 cat confdefs.h >>conftest.$ac_ext
36891 cat >>conftest.$ac_ext <<_ACEOF
36892 /* end confdefs.h. */
36893 $ac_includes_default
36894 typedef int * ac__type_new_;
36898 if ((ac__type_new_ *) 0)
36900 if (sizeof (ac__type_new_))
36906 rm -f conftest.$ac_objext
36907 if { (ac_try="$ac_compile"
36908 case "(($ac_try" in
36909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36910 *) ac_try_echo=$ac_try;;
36912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36913 (eval "$ac_compile") 2>conftest.er1
36915 grep -v '^ *+' conftest.er1 >conftest.err
36917 cat conftest.err >&5
36918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919 (exit $ac_status); } && {
36920 test -z "$ac_c_werror_flag" ||
36921 test ! -s conftest.err
36922 } && test -s conftest.$ac_objext; then
36923 ac_cv_type_int_p=yes
36925 echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36928 ac_cv_type_int_p=no
36931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36933 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36934 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36936 # The cast to long int works around a bug in the HP C Compiler
36937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36939 # This bug is HP SR number 8606223364.
36940 { echo "$as_me:$LINENO: checking size of int *" >&5
36941 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36942 if test "${ac_cv_sizeof_int_p+set}" = set; then
36943 echo $ECHO_N "(cached) $ECHO_C" >&6
36945 if test "$cross_compiling" = yes; then
36946 # Depending upon the size, compute the lo and hi bounds.
36947 cat >conftest.$ac_ext <<_ACEOF
36950 cat confdefs.h >>conftest.$ac_ext
36951 cat >>conftest.$ac_ext <<_ACEOF
36952 /* end confdefs.h. */
36953 $ac_includes_default
36954 typedef int * ac__type_sizeof_;
36958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36965 rm -f conftest.$ac_objext
36966 if { (ac_try="$ac_compile"
36967 case "(($ac_try" in
36968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36969 *) ac_try_echo=$ac_try;;
36971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36972 (eval "$ac_compile") 2>conftest.er1
36974 grep -v '^ *+' conftest.er1 >conftest.err
36976 cat conftest.err >&5
36977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36978 (exit $ac_status); } && {
36979 test -z "$ac_c_werror_flag" ||
36980 test ! -s conftest.err
36981 } && test -s conftest.$ac_objext; then
36984 cat >conftest.$ac_ext <<_ACEOF
36987 cat confdefs.h >>conftest.$ac_ext
36988 cat >>conftest.$ac_ext <<_ACEOF
36989 /* end confdefs.h. */
36990 $ac_includes_default
36991 typedef int * ac__type_sizeof_;
36995 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37002 rm -f conftest.$ac_objext
37003 if { (ac_try="$ac_compile"
37004 case "(($ac_try" in
37005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37006 *) ac_try_echo=$ac_try;;
37008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37009 (eval "$ac_compile") 2>conftest.er1
37011 grep -v '^ *+' conftest.er1 >conftest.err
37013 cat conftest.err >&5
37014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37015 (exit $ac_status); } && {
37016 test -z "$ac_c_werror_flag" ||
37017 test ! -s conftest.err
37018 } && test -s conftest.$ac_objext; then
37019 ac_hi=$ac_mid; break
37021 echo "$as_me: failed program was:" >&5
37022 sed 's/^/| /' conftest.$ac_ext >&5
37024 ac_lo=`expr $ac_mid + 1`
37025 if test $ac_lo -le $ac_mid; then
37029 ac_mid=`expr 2 '*' $ac_mid + 1`
37032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37035 echo "$as_me: failed program was:" >&5
37036 sed 's/^/| /' conftest.$ac_ext >&5
37038 cat >conftest.$ac_ext <<_ACEOF
37041 cat confdefs.h >>conftest.$ac_ext
37042 cat >>conftest.$ac_ext <<_ACEOF
37043 /* end confdefs.h. */
37044 $ac_includes_default
37045 typedef int * ac__type_sizeof_;
37049 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37056 rm -f conftest.$ac_objext
37057 if { (ac_try="$ac_compile"
37058 case "(($ac_try" in
37059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37060 *) ac_try_echo=$ac_try;;
37062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37063 (eval "$ac_compile") 2>conftest.er1
37065 grep -v '^ *+' conftest.er1 >conftest.err
37067 cat conftest.err >&5
37068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069 (exit $ac_status); } && {
37070 test -z "$ac_c_werror_flag" ||
37071 test ! -s conftest.err
37072 } && test -s conftest.$ac_objext; then
37075 cat >conftest.$ac_ext <<_ACEOF
37078 cat confdefs.h >>conftest.$ac_ext
37079 cat >>conftest.$ac_ext <<_ACEOF
37080 /* end confdefs.h. */
37081 $ac_includes_default
37082 typedef int * ac__type_sizeof_;
37086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37093 rm -f conftest.$ac_objext
37094 if { (ac_try="$ac_compile"
37095 case "(($ac_try" in
37096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37097 *) ac_try_echo=$ac_try;;
37099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37100 (eval "$ac_compile") 2>conftest.er1
37102 grep -v '^ *+' conftest.er1 >conftest.err
37104 cat conftest.err >&5
37105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106 (exit $ac_status); } && {
37107 test -z "$ac_c_werror_flag" ||
37108 test ! -s conftest.err
37109 } && test -s conftest.$ac_objext; then
37110 ac_lo=$ac_mid; break
37112 echo "$as_me: failed program was:" >&5
37113 sed 's/^/| /' conftest.$ac_ext >&5
37115 ac_hi=`expr '(' $ac_mid ')' - 1`
37116 if test $ac_mid -le $ac_hi; then
37120 ac_mid=`expr 2 '*' $ac_mid`
37123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37126 echo "$as_me: failed program was:" >&5
37127 sed 's/^/| /' conftest.$ac_ext >&5
37132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37136 # Binary search between lo and hi bounds.
37137 while test "x$ac_lo" != "x$ac_hi"; do
37138 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37139 cat >conftest.$ac_ext <<_ACEOF
37142 cat confdefs.h >>conftest.$ac_ext
37143 cat >>conftest.$ac_ext <<_ACEOF
37144 /* end confdefs.h. */
37145 $ac_includes_default
37146 typedef int * ac__type_sizeof_;
37150 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37157 rm -f conftest.$ac_objext
37158 if { (ac_try="$ac_compile"
37159 case "(($ac_try" in
37160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37161 *) ac_try_echo=$ac_try;;
37163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37164 (eval "$ac_compile") 2>conftest.er1
37166 grep -v '^ *+' conftest.er1 >conftest.err
37168 cat conftest.err >&5
37169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170 (exit $ac_status); } && {
37171 test -z "$ac_c_werror_flag" ||
37172 test ! -s conftest.err
37173 } && test -s conftest.$ac_objext; then
37176 echo "$as_me: failed program was:" >&5
37177 sed 's/^/| /' conftest.$ac_ext >&5
37179 ac_lo=`expr '(' $ac_mid ')' + 1`
37182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37185 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37186 '') if test "$ac_cv_type_int_p" = yes; then
37187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37188 See \`config.log' for more details." >&5
37189 echo "$as_me: error: cannot compute sizeof (int *)
37190 See \`config.log' for more details." >&2;}
37191 { (exit 77); exit 77; }; }
37193 ac_cv_sizeof_int_p=0
37197 cat >conftest.$ac_ext <<_ACEOF
37200 cat confdefs.h >>conftest.$ac_ext
37201 cat >>conftest.$ac_ext <<_ACEOF
37202 /* end confdefs.h. */
37203 $ac_includes_default
37204 typedef int * ac__type_sizeof_;
37205 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37206 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37208 #include <stdlib.h>
37213 FILE *f = fopen ("conftest.val", "w");
37216 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37218 long int i = longval ();
37219 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37221 fprintf (f, "%ld\n", i);
37225 unsigned long int i = ulongval ();
37226 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37228 fprintf (f, "%lu\n", i);
37230 return ferror (f) || fclose (f) != 0;
37236 rm -f conftest$ac_exeext
37237 if { (ac_try="$ac_link"
37238 case "(($ac_try" in
37239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37240 *) ac_try_echo=$ac_try;;
37242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37243 (eval "$ac_link") 2>&5
37245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37247 { (case "(($ac_try" in
37248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37249 *) ac_try_echo=$ac_try;;
37251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37252 (eval "$ac_try") 2>&5
37254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255 (exit $ac_status); }; }; then
37256 ac_cv_sizeof_int_p=`cat conftest.val`
37258 echo "$as_me: program exited with status $ac_status" >&5
37259 echo "$as_me: failed program was:" >&5
37260 sed 's/^/| /' conftest.$ac_ext >&5
37262 ( exit $ac_status )
37263 if test "$ac_cv_type_int_p" = yes; then
37264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37265 See \`config.log' for more details." >&5
37266 echo "$as_me: error: cannot compute sizeof (int *)
37267 See \`config.log' for more details." >&2;}
37268 { (exit 77); exit 77; }; }
37270 ac_cv_sizeof_int_p=0
37273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37277 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37278 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37282 cat >>confdefs.h <<_ACEOF
37283 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37288 { echo "$as_me:$LINENO: checking for u_int type" >&5
37289 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37290 if test "${ac_cv_have_u_int+set}" = set; then
37291 echo $ECHO_N "(cached) $ECHO_C" >&6
37294 cat >conftest.$ac_ext <<_ACEOF
37297 cat confdefs.h >>conftest.$ac_ext
37298 cat >>conftest.$ac_ext <<_ACEOF
37299 /* end confdefs.h. */
37301 #include <sys/types.h>
37313 rm -f conftest.$ac_objext
37314 if { (ac_try="$ac_compile"
37315 case "(($ac_try" in
37316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37317 *) ac_try_echo=$ac_try;;
37319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37320 (eval "$ac_compile") 2>conftest.er1
37322 grep -v '^ *+' conftest.er1 >conftest.err
37324 cat conftest.err >&5
37325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); } && {
37327 test -z "$ac_c_werror_flag" ||
37328 test ! -s conftest.err
37329 } && test -s conftest.$ac_objext; then
37331 ac_cv_have_u_int="yes"
37334 echo "$as_me: failed program was:" >&5
37335 sed 's/^/| /' conftest.$ac_ext >&5
37338 ac_cv_have_u_int="no"
37343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37347 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37348 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37349 if test "x$ac_cv_have_u_int" = "xyes" ; then
37350 cat >>confdefs.h <<\_ACEOF
37351 #define HAVE_U_INT 1
37357 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37358 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37359 if test "${ac_cv_have_intmax_t+set}" = set; then
37360 echo $ECHO_N "(cached) $ECHO_C" >&6
37363 cat >conftest.$ac_ext <<_ACEOF
37366 cat confdefs.h >>conftest.$ac_ext
37367 cat >>conftest.$ac_ext <<_ACEOF
37368 /* end confdefs.h. */
37370 #include <sys/types.h>
37382 rm -f conftest.$ac_objext
37383 if { (ac_try="$ac_compile"
37384 case "(($ac_try" in
37385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37386 *) ac_try_echo=$ac_try;;
37388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37389 (eval "$ac_compile") 2>conftest.er1
37391 grep -v '^ *+' conftest.er1 >conftest.err
37393 cat conftest.err >&5
37394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395 (exit $ac_status); } && {
37396 test -z "$ac_c_werror_flag" ||
37397 test ! -s conftest.err
37398 } && test -s conftest.$ac_objext; then
37400 ac_cv_have_intmax_t="yes"
37403 echo "$as_me: failed program was:" >&5
37404 sed 's/^/| /' conftest.$ac_ext >&5
37407 cat >conftest.$ac_ext <<_ACEOF
37410 cat confdefs.h >>conftest.$ac_ext
37411 cat >>conftest.$ac_ext <<_ACEOF
37412 /* end confdefs.h. */
37414 #include <stdint.h>
37426 rm -f conftest.$ac_objext
37427 if { (ac_try="$ac_compile"
37428 case "(($ac_try" in
37429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37430 *) ac_try_echo=$ac_try;;
37432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37433 (eval "$ac_compile") 2>conftest.er1
37435 grep -v '^ *+' conftest.er1 >conftest.err
37437 cat conftest.err >&5
37438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439 (exit $ac_status); } && {
37440 test -z "$ac_c_werror_flag" ||
37441 test ! -s conftest.err
37442 } && test -s conftest.$ac_objext; then
37444 ac_cv_have_intmax_t="yes"
37447 echo "$as_me: failed program was:" >&5
37448 sed 's/^/| /' conftest.$ac_ext >&5
37451 ac_cv_have_intmax_t="no"
37456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37465 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37466 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37467 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37468 cat >>confdefs.h <<\_ACEOF
37469 #define HAVE_INTMAX_T 1
37475 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37476 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37477 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37478 echo $ECHO_N "(cached) $ECHO_C" >&6
37481 cat >conftest.$ac_ext <<_ACEOF
37484 cat confdefs.h >>conftest.$ac_ext
37485 cat >>conftest.$ac_ext <<_ACEOF
37486 /* end confdefs.h. */
37488 #include <sys/types.h>
37494 u_intmax_t a; a = 1;
37500 rm -f conftest.$ac_objext
37501 if { (ac_try="$ac_compile"
37502 case "(($ac_try" in
37503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37504 *) ac_try_echo=$ac_try;;
37506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37507 (eval "$ac_compile") 2>conftest.er1
37509 grep -v '^ *+' conftest.er1 >conftest.err
37511 cat conftest.err >&5
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); } && {
37514 test -z "$ac_c_werror_flag" ||
37515 test ! -s conftest.err
37516 } && test -s conftest.$ac_objext; then
37518 ac_cv_have_u_intmax_t="yes"
37521 echo "$as_me: failed program was:" >&5
37522 sed 's/^/| /' conftest.$ac_ext >&5
37525 cat >conftest.$ac_ext <<_ACEOF
37528 cat confdefs.h >>conftest.$ac_ext
37529 cat >>conftest.$ac_ext <<_ACEOF
37530 /* end confdefs.h. */
37532 #include <stdint.h>
37538 u_intmax_t a; a = 1;
37544 rm -f conftest.$ac_objext
37545 if { (ac_try="$ac_compile"
37546 case "(($ac_try" in
37547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37548 *) ac_try_echo=$ac_try;;
37550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37551 (eval "$ac_compile") 2>conftest.er1
37553 grep -v '^ *+' conftest.er1 >conftest.err
37555 cat conftest.err >&5
37556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); } && {
37558 test -z "$ac_c_werror_flag" ||
37559 test ! -s conftest.err
37560 } && test -s conftest.$ac_objext; then
37562 ac_cv_have_u_intmax_t="yes"
37565 echo "$as_me: failed program was:" >&5
37566 sed 's/^/| /' conftest.$ac_ext >&5
37569 ac_cv_have_u_intmax_t="no"
37574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37583 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37584 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37585 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37586 cat >>confdefs.h <<\_ACEOF
37587 #define HAVE_U_INTMAX_T 1
37593 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37594 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37595 if test "${ac_cv_have_intxx_t+set}" = set; then
37596 echo $ECHO_N "(cached) $ECHO_C" >&6
37599 cat >conftest.$ac_ext <<_ACEOF
37602 cat confdefs.h >>conftest.$ac_ext
37603 cat >>conftest.$ac_ext <<_ACEOF
37604 /* end confdefs.h. */
37606 #include <sys/types.h>
37612 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37618 rm -f conftest.$ac_objext
37619 if { (ac_try="$ac_compile"
37620 case "(($ac_try" in
37621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37622 *) ac_try_echo=$ac_try;;
37624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37625 (eval "$ac_compile") 2>conftest.er1
37627 grep -v '^ *+' conftest.er1 >conftest.err
37629 cat conftest.err >&5
37630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37631 (exit $ac_status); } && {
37632 test -z "$ac_c_werror_flag" ||
37633 test ! -s conftest.err
37634 } && test -s conftest.$ac_objext; then
37636 ac_cv_have_intxx_t="yes"
37639 echo "$as_me: failed program was:" >&5
37640 sed 's/^/| /' conftest.$ac_ext >&5
37643 ac_cv_have_intxx_t="no"
37648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37652 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37653 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37654 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37655 cat >>confdefs.h <<\_ACEOF
37656 #define HAVE_INTXX_T 1
37662 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37663 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37664 if test "${ac_cv_have_int64_t+set}" = set; then
37665 echo $ECHO_N "(cached) $ECHO_C" >&6
37668 cat >conftest.$ac_ext <<_ACEOF
37671 cat confdefs.h >>conftest.$ac_ext
37672 cat >>conftest.$ac_ext <<_ACEOF
37673 /* end confdefs.h. */
37675 #include <sys/types.h>
37687 rm -f conftest.$ac_objext
37688 if { (ac_try="$ac_compile"
37689 case "(($ac_try" in
37690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37691 *) ac_try_echo=$ac_try;;
37693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37694 (eval "$ac_compile") 2>conftest.er1
37696 grep -v '^ *+' conftest.er1 >conftest.err
37698 cat conftest.err >&5
37699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37700 (exit $ac_status); } && {
37701 test -z "$ac_c_werror_flag" ||
37702 test ! -s conftest.err
37703 } && test -s conftest.$ac_objext; then
37705 ac_cv_have_int64_t="yes"
37708 echo "$as_me: failed program was:" >&5
37709 sed 's/^/| /' conftest.$ac_ext >&5
37712 ac_cv_have_int64_t="no"
37717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37721 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37722 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37723 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37724 cat >>confdefs.h <<\_ACEOF
37725 #define HAVE_INT64_T 1
37731 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37732 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37733 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37734 echo $ECHO_N "(cached) $ECHO_C" >&6
37737 cat >conftest.$ac_ext <<_ACEOF
37740 cat confdefs.h >>conftest.$ac_ext
37741 cat >>conftest.$ac_ext <<_ACEOF
37742 /* end confdefs.h. */
37744 #include <sys/types.h>
37750 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37756 rm -f conftest.$ac_objext
37757 if { (ac_try="$ac_compile"
37758 case "(($ac_try" in
37759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37760 *) ac_try_echo=$ac_try;;
37762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37763 (eval "$ac_compile") 2>conftest.er1
37765 grep -v '^ *+' conftest.er1 >conftest.err
37767 cat conftest.err >&5
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); } && {
37770 test -z "$ac_c_werror_flag" ||
37771 test ! -s conftest.err
37772 } && test -s conftest.$ac_objext; then
37774 ac_cv_have_u_intxx_t="yes"
37777 echo "$as_me: failed program was:" >&5
37778 sed 's/^/| /' conftest.$ac_ext >&5
37781 ac_cv_have_u_intxx_t="no"
37786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37790 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37791 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37792 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37793 cat >>confdefs.h <<\_ACEOF
37794 #define HAVE_U_INTXX_T 1
37800 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37801 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37802 if test "${ac_cv_have_u_int64_t+set}" = set; then
37803 echo $ECHO_N "(cached) $ECHO_C" >&6
37806 cat >conftest.$ac_ext <<_ACEOF
37809 cat confdefs.h >>conftest.$ac_ext
37810 cat >>conftest.$ac_ext <<_ACEOF
37811 /* end confdefs.h. */
37813 #include <sys/types.h>
37819 u_int64_t a; a = 1;
37825 rm -f conftest.$ac_objext
37826 if { (ac_try="$ac_compile"
37827 case "(($ac_try" in
37828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37829 *) ac_try_echo=$ac_try;;
37831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37832 (eval "$ac_compile") 2>conftest.er1
37834 grep -v '^ *+' conftest.er1 >conftest.err
37836 cat conftest.err >&5
37837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838 (exit $ac_status); } && {
37839 test -z "$ac_c_werror_flag" ||
37840 test ! -s conftest.err
37841 } && test -s conftest.$ac_objext; then
37843 ac_cv_have_u_int64_t="yes"
37846 echo "$as_me: failed program was:" >&5
37847 sed 's/^/| /' conftest.$ac_ext >&5
37850 ac_cv_have_u_int64_t="no"
37855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37859 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37860 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37861 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37862 cat >>confdefs.h <<\_ACEOF
37863 #define HAVE_U_INT64_T 1
37869 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37870 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37872 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37873 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37874 cat >conftest.$ac_ext <<_ACEOF
37877 cat confdefs.h >>conftest.$ac_ext
37878 cat >>conftest.$ac_ext <<_ACEOF
37879 /* end confdefs.h. */
37881 #include <sys/bitypes.h>
37887 int8_t a; int16_t b; int32_t c;
37888 u_int8_t e; u_int16_t f; u_int32_t g;
37889 a = b = c = e = f = g = 1;
37895 rm -f conftest.$ac_objext
37896 if { (ac_try="$ac_compile"
37897 case "(($ac_try" in
37898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37899 *) ac_try_echo=$ac_try;;
37901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37902 (eval "$ac_compile") 2>conftest.er1
37904 grep -v '^ *+' conftest.er1 >conftest.err
37906 cat conftest.err >&5
37907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37908 (exit $ac_status); } && {
37909 test -z "$ac_c_werror_flag" ||
37910 test ! -s conftest.err
37911 } && test -s conftest.$ac_objext; then
37913 cat >>confdefs.h <<\_ACEOF
37914 #define HAVE_U_INTXX_T 1
37917 cat >>confdefs.h <<\_ACEOF
37918 #define HAVE_INTXX_T 1
37921 cat >>confdefs.h <<\_ACEOF
37922 #define HAVE_SYS_BITYPES_H 1
37925 { echo "$as_me:$LINENO: result: yes" >&5
37926 echo "${ECHO_T}yes" >&6; }
37929 echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37933 { echo "$as_me:$LINENO: result: no" >&5
37934 echo "${ECHO_T}no" >&6; }
37939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37942 if test -z "$have_u_intxx_t" ; then
37943 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37944 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37945 if test "${ac_cv_have_uintxx_t+set}" = set; then
37946 echo $ECHO_N "(cached) $ECHO_C" >&6
37949 cat >conftest.$ac_ext <<_ACEOF
37952 cat confdefs.h >>conftest.$ac_ext
37953 cat >>conftest.$ac_ext <<_ACEOF
37954 /* end confdefs.h. */
37956 #include <sys/types.h>
37962 uint8_t a; uint16_t b;
37963 uint32_t c; a = b = c = 1;
37969 rm -f conftest.$ac_objext
37970 if { (ac_try="$ac_compile"
37971 case "(($ac_try" in
37972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37973 *) ac_try_echo=$ac_try;;
37975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37976 (eval "$ac_compile") 2>conftest.er1
37978 grep -v '^ *+' conftest.er1 >conftest.err
37980 cat conftest.err >&5
37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); } && {
37983 test -z "$ac_c_werror_flag" ||
37984 test ! -s conftest.err
37985 } && test -s conftest.$ac_objext; then
37987 ac_cv_have_uintxx_t="yes"
37990 echo "$as_me: failed program was:" >&5
37991 sed 's/^/| /' conftest.$ac_ext >&5
37994 ac_cv_have_uintxx_t="no"
37999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38003 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38004 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38005 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38006 cat >>confdefs.h <<\_ACEOF
38007 #define HAVE_UINTXX_T 1
38013 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38014 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38016 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38017 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38018 cat >conftest.$ac_ext <<_ACEOF
38021 cat confdefs.h >>conftest.$ac_ext
38022 cat >>conftest.$ac_ext <<_ACEOF
38023 /* end confdefs.h. */
38025 #include <sys/bitypes.h>
38031 int64_t a; u_int64_t b;
38038 rm -f conftest.$ac_objext
38039 if { (ac_try="$ac_compile"
38040 case "(($ac_try" in
38041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38042 *) ac_try_echo=$ac_try;;
38044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38045 (eval "$ac_compile") 2>conftest.er1
38047 grep -v '^ *+' conftest.er1 >conftest.err
38049 cat conftest.err >&5
38050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38051 (exit $ac_status); } && {
38052 test -z "$ac_c_werror_flag" ||
38053 test ! -s conftest.err
38054 } && test -s conftest.$ac_objext; then
38056 cat >>confdefs.h <<\_ACEOF
38057 #define HAVE_U_INT64_T 1
38060 cat >>confdefs.h <<\_ACEOF
38061 #define HAVE_INT64_T 1
38064 { echo "$as_me:$LINENO: result: yes" >&5
38065 echo "${ECHO_T}yes" >&6; }
38068 echo "$as_me: failed program was:" >&5
38069 sed 's/^/| /' conftest.$ac_ext >&5
38072 { echo "$as_me:$LINENO: result: no" >&5
38073 echo "${ECHO_T}no" >&6; }
38078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38081 if (test -z "$have_uintxx_t" && \
38082 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38084 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38085 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38086 cat >conftest.$ac_ext <<_ACEOF
38089 cat confdefs.h >>conftest.$ac_ext
38090 cat >>conftest.$ac_ext <<_ACEOF
38091 /* end confdefs.h. */
38093 #include <sys/bitypes.h>
38099 uint8_t a; uint16_t b;
38100 uint32_t c; a = b = c = 1;
38106 rm -f conftest.$ac_objext
38107 if { (ac_try="$ac_compile"
38108 case "(($ac_try" in
38109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38110 *) ac_try_echo=$ac_try;;
38112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38113 (eval "$ac_compile") 2>conftest.er1
38115 grep -v '^ *+' conftest.er1 >conftest.err
38117 cat conftest.err >&5
38118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119 (exit $ac_status); } && {
38120 test -z "$ac_c_werror_flag" ||
38121 test ! -s conftest.err
38122 } && test -s conftest.$ac_objext; then
38124 cat >>confdefs.h <<\_ACEOF
38125 #define HAVE_UINTXX_T 1
38128 { echo "$as_me:$LINENO: result: yes" >&5
38129 echo "${ECHO_T}yes" >&6; }
38132 echo "$as_me: failed program was:" >&5
38133 sed 's/^/| /' conftest.$ac_ext >&5
38136 { echo "$as_me:$LINENO: result: no" >&5
38137 echo "${ECHO_T}no" >&6; }
38142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38178 echo $ECHO_N "(cached) $ECHO_C" >&6
38180 cat >conftest.$ac_ext <<_ACEOF
38183 cat confdefs.h >>conftest.$ac_ext
38184 cat >>conftest.$ac_ext <<_ACEOF
38185 /* end confdefs.h. */
38186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38188 #define $ac_func innocuous_$ac_func
38190 /* System header to define __stub macros and hopefully few prototypes,
38191 which can conflict with char $ac_func (); below.
38192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38193 <limits.h> exists even on freestanding compilers. */
38196 # include <limits.h>
38198 # include <assert.h>
38203 /* Override any GCC internal prototype to avoid an error.
38204 Use char because int might match the return type of a GCC
38205 builtin and then its argument prototype would still apply. */
38210 /* The GNU C library defines this for functions which it implements
38211 to always fail with ENOSYS. Some functions are actually named
38212 something starting with __ and the normal name is an alias. */
38213 #if defined __stub_$ac_func || defined __stub___$ac_func
38220 return $ac_func ();
38225 rm -f conftest.$ac_objext conftest$ac_exeext
38226 if { (ac_try="$ac_link"
38227 case "(($ac_try" in
38228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38229 *) ac_try_echo=$ac_try;;
38231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38232 (eval "$ac_link") 2>conftest.er1
38234 grep -v '^ *+' conftest.er1 >conftest.err
38236 cat conftest.err >&5
38237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238 (exit $ac_status); } && {
38239 test -z "$ac_c_werror_flag" ||
38240 test ! -s conftest.err
38241 } && test -s conftest$ac_exeext &&
38242 $as_test_x conftest$ac_exeext; then
38243 eval "$as_ac_var=yes"
38245 echo "$as_me: failed program was:" >&5
38246 sed 's/^/| /' conftest.$ac_ext >&5
38248 eval "$as_ac_var=no"
38251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38252 conftest$ac_exeext conftest.$ac_ext
38254 ac_res=`eval echo '${'$as_ac_var'}'`
38255 { echo "$as_me:$LINENO: result: $ac_res" >&5
38256 echo "${ECHO_T}$ac_res" >&6; }
38257 if test `eval echo '${'$as_ac_var'}'` = yes; then
38258 cat >>confdefs.h <<_ACEOF
38259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38263 echo 'configure: cannot find needed function.'; exit 1
38270 for ac_func in fchdir
38272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38276 echo $ECHO_N "(cached) $ECHO_C" >&6
38278 cat >conftest.$ac_ext <<_ACEOF
38281 cat confdefs.h >>conftest.$ac_ext
38282 cat >>conftest.$ac_ext <<_ACEOF
38283 /* end confdefs.h. */
38284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38286 #define $ac_func innocuous_$ac_func
38288 /* System header to define __stub macros and hopefully few prototypes,
38289 which can conflict with char $ac_func (); below.
38290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38291 <limits.h> exists even on freestanding compilers. */
38294 # include <limits.h>
38296 # include <assert.h>
38301 /* Override any GCC internal prototype to avoid an error.
38302 Use char because int might match the return type of a GCC
38303 builtin and then its argument prototype would still apply. */
38308 /* The GNU C library defines this for functions which it implements
38309 to always fail with ENOSYS. Some functions are actually named
38310 something starting with __ and the normal name is an alias. */
38311 #if defined __stub_$ac_func || defined __stub___$ac_func
38318 return $ac_func ();
38323 rm -f conftest.$ac_objext conftest$ac_exeext
38324 if { (ac_try="$ac_link"
38325 case "(($ac_try" in
38326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38327 *) ac_try_echo=$ac_try;;
38329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38330 (eval "$ac_link") 2>conftest.er1
38332 grep -v '^ *+' conftest.er1 >conftest.err
38334 cat conftest.err >&5
38335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336 (exit $ac_status); } && {
38337 test -z "$ac_c_werror_flag" ||
38338 test ! -s conftest.err
38339 } && test -s conftest$ac_exeext &&
38340 $as_test_x conftest$ac_exeext; then
38341 eval "$as_ac_var=yes"
38343 echo "$as_me: failed program was:" >&5
38344 sed 's/^/| /' conftest.$ac_ext >&5
38346 eval "$as_ac_var=no"
38349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38350 conftest$ac_exeext conftest.$ac_ext
38352 ac_res=`eval echo '${'$as_ac_var'}'`
38353 { echo "$as_me:$LINENO: result: $ac_res" >&5
38354 echo "${ECHO_T}$ac_res" >&6; }
38355 if test `eval echo '${'$as_ac_var'}'` = yes; then
38356 cat >>confdefs.h <<_ACEOF
38357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38359 cat >>confdefs.h <<\_ACEOF
38360 #define HAVE_FCHDIR 1
38367 for ac_func in strtoll
38369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38373 echo $ECHO_N "(cached) $ECHO_C" >&6
38375 cat >conftest.$ac_ext <<_ACEOF
38378 cat confdefs.h >>conftest.$ac_ext
38379 cat >>conftest.$ac_ext <<_ACEOF
38380 /* end confdefs.h. */
38381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38383 #define $ac_func innocuous_$ac_func
38385 /* System header to define __stub macros and hopefully few prototypes,
38386 which can conflict with char $ac_func (); below.
38387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38388 <limits.h> exists even on freestanding compilers. */
38391 # include <limits.h>
38393 # include <assert.h>
38398 /* Override any GCC internal prototype to avoid an error.
38399 Use char because int might match the return type of a GCC
38400 builtin and then its argument prototype would still apply. */
38405 /* The GNU C library defines this for functions which it implements
38406 to always fail with ENOSYS. Some functions are actually named
38407 something starting with __ and the normal name is an alias. */
38408 #if defined __stub_$ac_func || defined __stub___$ac_func
38415 return $ac_func ();
38420 rm -f conftest.$ac_objext conftest$ac_exeext
38421 if { (ac_try="$ac_link"
38422 case "(($ac_try" in
38423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38424 *) ac_try_echo=$ac_try;;
38426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38427 (eval "$ac_link") 2>conftest.er1
38429 grep -v '^ *+' conftest.er1 >conftest.err
38431 cat conftest.err >&5
38432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433 (exit $ac_status); } && {
38434 test -z "$ac_c_werror_flag" ||
38435 test ! -s conftest.err
38436 } && test -s conftest$ac_exeext &&
38437 $as_test_x conftest$ac_exeext; then
38438 eval "$as_ac_var=yes"
38440 echo "$as_me: failed program was:" >&5
38441 sed 's/^/| /' conftest.$ac_ext >&5
38443 eval "$as_ac_var=no"
38446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38447 conftest$ac_exeext conftest.$ac_ext
38449 ac_res=`eval echo '${'$as_ac_var'}'`
38450 { echo "$as_me:$LINENO: result: $ac_res" >&5
38451 echo "${ECHO_T}$ac_res" >&6; }
38452 if test `eval echo '${'$as_ac_var'}'` = yes; then
38453 cat >>confdefs.h <<_ACEOF
38454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38456 cat >>confdefs.h <<\_ACEOF
38457 #define HAVE_STRTOLL 1
38464 for ac_func in posix_fadvise
38466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38470 echo $ECHO_N "(cached) $ECHO_C" >&6
38472 cat >conftest.$ac_ext <<_ACEOF
38475 cat confdefs.h >>conftest.$ac_ext
38476 cat >>conftest.$ac_ext <<_ACEOF
38477 /* end confdefs.h. */
38478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38480 #define $ac_func innocuous_$ac_func
38482 /* System header to define __stub macros and hopefully few prototypes,
38483 which can conflict with char $ac_func (); below.
38484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38485 <limits.h> exists even on freestanding compilers. */
38488 # include <limits.h>
38490 # include <assert.h>
38495 /* Override any GCC internal prototype to avoid an error.
38496 Use char because int might match the return type of a GCC
38497 builtin and then its argument prototype would still apply. */
38502 /* The GNU C library defines this for functions which it implements
38503 to always fail with ENOSYS. Some functions are actually named
38504 something starting with __ and the normal name is an alias. */
38505 #if defined __stub_$ac_func || defined __stub___$ac_func
38512 return $ac_func ();
38517 rm -f conftest.$ac_objext conftest$ac_exeext
38518 if { (ac_try="$ac_link"
38519 case "(($ac_try" in
38520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38521 *) ac_try_echo=$ac_try;;
38523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38524 (eval "$ac_link") 2>conftest.er1
38526 grep -v '^ *+' conftest.er1 >conftest.err
38528 cat conftest.err >&5
38529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530 (exit $ac_status); } && {
38531 test -z "$ac_c_werror_flag" ||
38532 test ! -s conftest.err
38533 } && test -s conftest$ac_exeext &&
38534 $as_test_x conftest$ac_exeext; then
38535 eval "$as_ac_var=yes"
38537 echo "$as_me: failed program was:" >&5
38538 sed 's/^/| /' conftest.$ac_ext >&5
38540 eval "$as_ac_var=no"
38543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38544 conftest$ac_exeext conftest.$ac_ext
38546 ac_res=`eval echo '${'$as_ac_var'}'`
38547 { echo "$as_me:$LINENO: result: $ac_res" >&5
38548 echo "${ECHO_T}$ac_res" >&6; }
38549 if test `eval echo '${'$as_ac_var'}'` = yes; then
38550 cat >>confdefs.h <<_ACEOF
38551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38558 for ac_func in fdatasync
38560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38564 echo $ECHO_N "(cached) $ECHO_C" >&6
38566 cat >conftest.$ac_ext <<_ACEOF
38569 cat confdefs.h >>conftest.$ac_ext
38570 cat >>conftest.$ac_ext <<_ACEOF
38571 /* end confdefs.h. */
38572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38574 #define $ac_func innocuous_$ac_func
38576 /* System header to define __stub macros and hopefully few prototypes,
38577 which can conflict with char $ac_func (); below.
38578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38579 <limits.h> exists even on freestanding compilers. */
38582 # include <limits.h>
38584 # include <assert.h>
38589 /* Override any GCC internal prototype to avoid an error.
38590 Use char because int might match the return type of a GCC
38591 builtin and then its argument prototype would still apply. */
38596 /* The GNU C library defines this for functions which it implements
38597 to always fail with ENOSYS. Some functions are actually named
38598 something starting with __ and the normal name is an alias. */
38599 #if defined __stub_$ac_func || defined __stub___$ac_func
38606 return $ac_func ();
38611 rm -f conftest.$ac_objext conftest$ac_exeext
38612 if { (ac_try="$ac_link"
38613 case "(($ac_try" in
38614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38615 *) ac_try_echo=$ac_try;;
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618 (eval "$ac_link") 2>conftest.er1
38620 grep -v '^ *+' conftest.er1 >conftest.err
38622 cat conftest.err >&5
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); } && {
38625 test -z "$ac_c_werror_flag" ||
38626 test ! -s conftest.err
38627 } && test -s conftest$ac_exeext &&
38628 $as_test_x conftest$ac_exeext; then
38629 eval "$as_ac_var=yes"
38631 echo "$as_me: failed program was:" >&5
38632 sed 's/^/| /' conftest.$ac_ext >&5
38634 eval "$as_ac_var=no"
38637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38638 conftest$ac_exeext conftest.$ac_ext
38640 ac_res=`eval echo '${'$as_ac_var'}'`
38641 { echo "$as_me:$LINENO: result: $ac_res" >&5
38642 echo "${ECHO_T}$ac_res" >&6; }
38643 if test `eval echo '${'$as_ac_var'}'` = yes; then
38644 cat >>confdefs.h <<_ACEOF
38645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38653 for ac_func in chflags
38655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38659 echo $ECHO_N "(cached) $ECHO_C" >&6
38661 cat >conftest.$ac_ext <<_ACEOF
38664 cat confdefs.h >>conftest.$ac_ext
38665 cat >>conftest.$ac_ext <<_ACEOF
38666 /* end confdefs.h. */
38667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38669 #define $ac_func innocuous_$ac_func
38671 /* System header to define __stub macros and hopefully few prototypes,
38672 which can conflict with char $ac_func (); below.
38673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38674 <limits.h> exists even on freestanding compilers. */
38677 # include <limits.h>
38679 # include <assert.h>
38684 /* Override any GCC internal prototype to avoid an error.
38685 Use char because int might match the return type of a GCC
38686 builtin and then its argument prototype would still apply. */
38691 /* The GNU C library defines this for functions which it implements
38692 to always fail with ENOSYS. Some functions are actually named
38693 something starting with __ and the normal name is an alias. */
38694 #if defined __stub_$ac_func || defined __stub___$ac_func
38701 return $ac_func ();
38706 rm -f conftest.$ac_objext conftest$ac_exeext
38707 if { (ac_try="$ac_link"
38708 case "(($ac_try" in
38709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38710 *) ac_try_echo=$ac_try;;
38712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38713 (eval "$ac_link") 2>conftest.er1
38715 grep -v '^ *+' conftest.er1 >conftest.err
38717 cat conftest.err >&5
38718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38719 (exit $ac_status); } && {
38720 test -z "$ac_c_werror_flag" ||
38721 test ! -s conftest.err
38722 } && test -s conftest$ac_exeext &&
38723 $as_test_x conftest$ac_exeext; then
38724 eval "$as_ac_var=yes"
38726 echo "$as_me: failed program was:" >&5
38727 sed 's/^/| /' conftest.$ac_ext >&5
38729 eval "$as_ac_var=no"
38732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38733 conftest$ac_exeext conftest.$ac_ext
38735 ac_res=`eval echo '${'$as_ac_var'}'`
38736 { echo "$as_me:$LINENO: result: $ac_res" >&5
38737 echo "${ECHO_T}$ac_res" >&6; }
38738 if test `eval echo '${'$as_ac_var'}'` = yes; then
38739 cat >>confdefs.h <<_ACEOF
38740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38751 for ac_func in snprintf vsnprintf gethostid fseeko
38753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38757 echo $ECHO_N "(cached) $ECHO_C" >&6
38759 cat >conftest.$ac_ext <<_ACEOF
38762 cat confdefs.h >>conftest.$ac_ext
38763 cat >>conftest.$ac_ext <<_ACEOF
38764 /* end confdefs.h. */
38765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38767 #define $ac_func innocuous_$ac_func
38769 /* System header to define __stub macros and hopefully few prototypes,
38770 which can conflict with char $ac_func (); below.
38771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38772 <limits.h> exists even on freestanding compilers. */
38775 # include <limits.h>
38777 # include <assert.h>
38782 /* Override any GCC internal prototype to avoid an error.
38783 Use char because int might match the return type of a GCC
38784 builtin and then its argument prototype would still apply. */
38789 /* The GNU C library defines this for functions which it implements
38790 to always fail with ENOSYS. Some functions are actually named
38791 something starting with __ and the normal name is an alias. */
38792 #if defined __stub_$ac_func || defined __stub___$ac_func
38799 return $ac_func ();
38804 rm -f conftest.$ac_objext conftest$ac_exeext
38805 if { (ac_try="$ac_link"
38806 case "(($ac_try" in
38807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38808 *) ac_try_echo=$ac_try;;
38810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38811 (eval "$ac_link") 2>conftest.er1
38813 grep -v '^ *+' conftest.er1 >conftest.err
38815 cat conftest.err >&5
38816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817 (exit $ac_status); } && {
38818 test -z "$ac_c_werror_flag" ||
38819 test ! -s conftest.err
38820 } && test -s conftest$ac_exeext &&
38821 $as_test_x conftest$ac_exeext; then
38822 eval "$as_ac_var=yes"
38824 echo "$as_me: failed program was:" >&5
38825 sed 's/^/| /' conftest.$ac_ext >&5
38827 eval "$as_ac_var=no"
38830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38831 conftest$ac_exeext conftest.$ac_ext
38833 ac_res=`eval echo '${'$as_ac_var'}'`
38834 { echo "$as_me:$LINENO: result: $ac_res" >&5
38835 echo "${ECHO_T}$ac_res" >&6; }
38836 if test `eval echo '${'$as_ac_var'}'` = yes; then
38837 cat >>confdefs.h <<_ACEOF
38838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38845 { echo "$as_me:$LINENO: checking for va_copy" >&5
38846 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38847 if test "${ba_cv_va_copy+set}" = set; then
38848 echo $ECHO_N "(cached) $ECHO_C" >&6
38851 cat >conftest.$ac_ext <<_ACEOF
38854 cat confdefs.h >>conftest.$ac_ext
38855 cat >>conftest.$ac_ext <<_ACEOF
38856 /* end confdefs.h. */
38858 #include <stdarg.h>
38859 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38860 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38866 call_use_va_copy(1,2,3)
38872 rm -f conftest.$ac_objext conftest$ac_exeext
38873 if { (ac_try="$ac_link"
38874 case "(($ac_try" in
38875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38876 *) ac_try_echo=$ac_try;;
38878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38879 (eval "$ac_link") 2>conftest.er1
38881 grep -v '^ *+' conftest.er1 >conftest.err
38883 cat conftest.err >&5
38884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885 (exit $ac_status); } && {
38886 test -z "$ac_c_werror_flag" ||
38887 test ! -s conftest.err
38888 } && test -s conftest$ac_exeext &&
38889 $as_test_x conftest$ac_exeext; then
38894 echo "$as_me: failed program was:" >&5
38895 sed 's/^/| /' conftest.$ac_ext >&5
38903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38904 conftest$ac_exeext conftest.$ac_ext
38908 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38909 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38910 test $ba_cv_va_copy = yes &&
38911 cat >>confdefs.h <<\_ACEOF
38912 #define HAVE_VA_COPY 1
38920 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38926 echo $ECHO_N "(cached) $ECHO_C" >&6
38928 cat >conftest.$ac_ext <<_ACEOF
38931 cat confdefs.h >>conftest.$ac_ext
38932 cat >>conftest.$ac_ext <<_ACEOF
38933 /* end confdefs.h. */
38934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38936 #define $ac_func innocuous_$ac_func
38938 /* System header to define __stub macros and hopefully few prototypes,
38939 which can conflict with char $ac_func (); below.
38940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38941 <limits.h> exists even on freestanding compilers. */
38944 # include <limits.h>
38946 # include <assert.h>
38951 /* Override any GCC internal prototype to avoid an error.
38952 Use char because int might match the return type of a GCC
38953 builtin and then its argument prototype would still apply. */
38958 /* The GNU C library defines this for functions which it implements
38959 to always fail with ENOSYS. Some functions are actually named
38960 something starting with __ and the normal name is an alias. */
38961 #if defined __stub_$ac_func || defined __stub___$ac_func
38968 return $ac_func ();
38973 rm -f conftest.$ac_objext conftest$ac_exeext
38974 if { (ac_try="$ac_link"
38975 case "(($ac_try" in
38976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38977 *) ac_try_echo=$ac_try;;
38979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38980 (eval "$ac_link") 2>conftest.er1
38982 grep -v '^ *+' conftest.er1 >conftest.err
38984 cat conftest.err >&5
38985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38986 (exit $ac_status); } && {
38987 test -z "$ac_c_werror_flag" ||
38988 test ! -s conftest.err
38989 } && test -s conftest$ac_exeext &&
38990 $as_test_x conftest$ac_exeext; then
38991 eval "$as_ac_var=yes"
38993 echo "$as_me: failed program was:" >&5
38994 sed 's/^/| /' conftest.$ac_ext >&5
38996 eval "$as_ac_var=no"
38999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39000 conftest$ac_exeext conftest.$ac_ext
39002 ac_res=`eval echo '${'$as_ac_var'}'`
39003 { echo "$as_me:$LINENO: result: $ac_res" >&5
39004 echo "${ECHO_T}$ac_res" >&6; }
39005 if test `eval echo '${'$as_ac_var'}'` = yes; then
39006 cat >>confdefs.h <<_ACEOF
39007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39014 # If resolver functions are not in libc check for -lnsl or -lresolv.
39015 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39016 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39017 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39018 echo $ECHO_N "(cached) $ECHO_C" >&6
39020 cat >conftest.$ac_ext <<_ACEOF
39023 cat confdefs.h >>conftest.$ac_ext
39024 cat >>conftest.$ac_ext <<_ACEOF
39025 /* end confdefs.h. */
39026 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39028 #define gethostbyname_r innocuous_gethostbyname_r
39030 /* System header to define __stub macros and hopefully few prototypes,
39031 which can conflict with char gethostbyname_r (); below.
39032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39033 <limits.h> exists even on freestanding compilers. */
39036 # include <limits.h>
39038 # include <assert.h>
39041 #undef gethostbyname_r
39043 /* Override any GCC internal prototype to avoid an error.
39044 Use char because int might match the return type of a GCC
39045 builtin and then its argument prototype would still apply. */
39049 char gethostbyname_r ();
39050 /* The GNU C library defines this for functions which it implements
39051 to always fail with ENOSYS. Some functions are actually named
39052 something starting with __ and the normal name is an alias. */
39053 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39060 return gethostbyname_r ();
39065 rm -f conftest.$ac_objext conftest$ac_exeext
39066 if { (ac_try="$ac_link"
39067 case "(($ac_try" in
39068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39069 *) ac_try_echo=$ac_try;;
39071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39072 (eval "$ac_link") 2>conftest.er1
39074 grep -v '^ *+' conftest.er1 >conftest.err
39076 cat conftest.err >&5
39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 (exit $ac_status); } && {
39079 test -z "$ac_c_werror_flag" ||
39080 test ! -s conftest.err
39081 } && test -s conftest$ac_exeext &&
39082 $as_test_x conftest$ac_exeext; then
39083 ac_cv_func_gethostbyname_r=yes
39085 echo "$as_me: failed program was:" >&5
39086 sed 's/^/| /' conftest.$ac_ext >&5
39088 ac_cv_func_gethostbyname_r=no
39091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39092 conftest$ac_exeext conftest.$ac_ext
39094 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39095 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39096 if test $ac_cv_func_gethostbyname_r = yes; then
39097 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39098 echo "${ECHO_T}using libc's resolver" >&6; }
39101 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39102 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39103 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39104 echo $ECHO_N "(cached) $ECHO_C" >&6
39106 ac_check_lib_save_LIBS=$LIBS
39108 cat >conftest.$ac_ext <<_ACEOF
39111 cat confdefs.h >>conftest.$ac_ext
39112 cat >>conftest.$ac_ext <<_ACEOF
39113 /* end confdefs.h. */
39115 /* Override any GCC internal prototype to avoid an error.
39116 Use char because int might match the return type of a GCC
39117 builtin and then its argument prototype would still apply. */
39121 char gethostbyname_r ();
39125 return gethostbyname_r ();
39130 rm -f conftest.$ac_objext conftest$ac_exeext
39131 if { (ac_try="$ac_link"
39132 case "(($ac_try" in
39133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39134 *) ac_try_echo=$ac_try;;
39136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39137 (eval "$ac_link") 2>conftest.er1
39139 grep -v '^ *+' conftest.er1 >conftest.err
39141 cat conftest.err >&5
39142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39143 (exit $ac_status); } && {
39144 test -z "$ac_c_werror_flag" ||
39145 test ! -s conftest.err
39146 } && test -s conftest$ac_exeext &&
39147 $as_test_x conftest$ac_exeext; then
39148 ac_cv_lib_nsl_gethostbyname_r=yes
39150 echo "$as_me: failed program was:" >&5
39151 sed 's/^/| /' conftest.$ac_ext >&5
39153 ac_cv_lib_nsl_gethostbyname_r=no
39156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39157 conftest$ac_exeext conftest.$ac_ext
39158 LIBS=$ac_check_lib_save_LIBS
39160 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39161 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39162 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39163 cat >>confdefs.h <<_ACEOF
39164 #define HAVE_LIBNSL 1
39172 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39173 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39174 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39175 echo $ECHO_N "(cached) $ECHO_C" >&6
39177 ac_check_lib_save_LIBS=$LIBS
39178 LIBS="-lresolv $LIBS"
39179 cat >conftest.$ac_ext <<_ACEOF
39182 cat confdefs.h >>conftest.$ac_ext
39183 cat >>conftest.$ac_ext <<_ACEOF
39184 /* end confdefs.h. */
39186 /* Override any GCC internal prototype to avoid an error.
39187 Use char because int might match the return type of a GCC
39188 builtin and then its argument prototype would still apply. */
39192 char gethostbyname_r ();
39196 return gethostbyname_r ();
39201 rm -f conftest.$ac_objext conftest$ac_exeext
39202 if { (ac_try="$ac_link"
39203 case "(($ac_try" in
39204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39205 *) ac_try_echo=$ac_try;;
39207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39208 (eval "$ac_link") 2>conftest.er1
39210 grep -v '^ *+' conftest.er1 >conftest.err
39212 cat conftest.err >&5
39213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214 (exit $ac_status); } && {
39215 test -z "$ac_c_werror_flag" ||
39216 test ! -s conftest.err
39217 } && test -s conftest$ac_exeext &&
39218 $as_test_x conftest$ac_exeext; then
39219 ac_cv_lib_resolv_gethostbyname_r=yes
39221 echo "$as_me: failed program was:" >&5
39222 sed 's/^/| /' conftest.$ac_ext >&5
39224 ac_cv_lib_resolv_gethostbyname_r=no
39227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39228 conftest$ac_exeext conftest.$ac_ext
39229 LIBS=$ac_check_lib_save_LIBS
39231 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39232 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39233 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39234 cat >>confdefs.h <<_ACEOF
39235 #define HAVE_LIBRESOLV 1
39238 LIBS="-lresolv $LIBS"
39246 for ac_func in inet_pton
39248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39252 echo $ECHO_N "(cached) $ECHO_C" >&6
39254 cat >conftest.$ac_ext <<_ACEOF
39257 cat confdefs.h >>conftest.$ac_ext
39258 cat >>conftest.$ac_ext <<_ACEOF
39259 /* end confdefs.h. */
39260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39262 #define $ac_func innocuous_$ac_func
39264 /* System header to define __stub macros and hopefully few prototypes,
39265 which can conflict with char $ac_func (); below.
39266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39267 <limits.h> exists even on freestanding compilers. */
39270 # include <limits.h>
39272 # include <assert.h>
39277 /* Override any GCC internal prototype to avoid an error.
39278 Use char because int might match the return type of a GCC
39279 builtin and then its argument prototype would still apply. */
39284 /* The GNU C library defines this for functions which it implements
39285 to always fail with ENOSYS. Some functions are actually named
39286 something starting with __ and the normal name is an alias. */
39287 #if defined __stub_$ac_func || defined __stub___$ac_func
39294 return $ac_func ();
39299 rm -f conftest.$ac_objext conftest$ac_exeext
39300 if { (ac_try="$ac_link"
39301 case "(($ac_try" in
39302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39303 *) ac_try_echo=$ac_try;;
39305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39306 (eval "$ac_link") 2>conftest.er1
39308 grep -v '^ *+' conftest.er1 >conftest.err
39310 cat conftest.err >&5
39311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312 (exit $ac_status); } && {
39313 test -z "$ac_c_werror_flag" ||
39314 test ! -s conftest.err
39315 } && test -s conftest$ac_exeext &&
39316 $as_test_x conftest$ac_exeext; then
39317 eval "$as_ac_var=yes"
39319 echo "$as_me: failed program was:" >&5
39320 sed 's/^/| /' conftest.$ac_ext >&5
39322 eval "$as_ac_var=no"
39325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39326 conftest$ac_exeext conftest.$ac_ext
39328 ac_res=`eval echo '${'$as_ac_var'}'`
39329 { echo "$as_me:$LINENO: result: $ac_res" >&5
39330 echo "${ECHO_T}$ac_res" >&6; }
39331 if test `eval echo '${'$as_ac_var'}'` = yes; then
39332 cat >>confdefs.h <<_ACEOF
39333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39335 cat >>confdefs.h <<\_ACEOF
39336 #define HAVE_INET_PTON 1
39343 for ac_func in inet_ntop
39345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39349 echo $ECHO_N "(cached) $ECHO_C" >&6
39351 cat >conftest.$ac_ext <<_ACEOF
39354 cat confdefs.h >>conftest.$ac_ext
39355 cat >>conftest.$ac_ext <<_ACEOF
39356 /* end confdefs.h. */
39357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39359 #define $ac_func innocuous_$ac_func
39361 /* System header to define __stub macros and hopefully few prototypes,
39362 which can conflict with char $ac_func (); below.
39363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39364 <limits.h> exists even on freestanding compilers. */
39367 # include <limits.h>
39369 # include <assert.h>
39374 /* Override any GCC internal prototype to avoid an error.
39375 Use char because int might match the return type of a GCC
39376 builtin and then its argument prototype would still apply. */
39381 /* The GNU C library defines this for functions which it implements
39382 to always fail with ENOSYS. Some functions are actually named
39383 something starting with __ and the normal name is an alias. */
39384 #if defined __stub_$ac_func || defined __stub___$ac_func
39391 return $ac_func ();
39396 rm -f conftest.$ac_objext conftest$ac_exeext
39397 if { (ac_try="$ac_link"
39398 case "(($ac_try" in
39399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39400 *) ac_try_echo=$ac_try;;
39402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39403 (eval "$ac_link") 2>conftest.er1
39405 grep -v '^ *+' conftest.er1 >conftest.err
39407 cat conftest.err >&5
39408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409 (exit $ac_status); } && {
39410 test -z "$ac_c_werror_flag" ||
39411 test ! -s conftest.err
39412 } && test -s conftest$ac_exeext &&
39413 $as_test_x conftest$ac_exeext; then
39414 eval "$as_ac_var=yes"
39416 echo "$as_me: failed program was:" >&5
39417 sed 's/^/| /' conftest.$ac_ext >&5
39419 eval "$as_ac_var=no"
39422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39423 conftest$ac_exeext conftest.$ac_ext
39425 ac_res=`eval echo '${'$as_ac_var'}'`
39426 { echo "$as_me:$LINENO: result: $ac_res" >&5
39427 echo "${ECHO_T}$ac_res" >&6; }
39428 if test `eval echo '${'$as_ac_var'}'` = yes; then
39429 cat >>confdefs.h <<_ACEOF
39430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39432 cat >>confdefs.h <<\_ACEOF
39433 #define HAVE_INET_NTOP 1
39440 for ac_func in gethostbyname2
39442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39446 echo $ECHO_N "(cached) $ECHO_C" >&6
39448 cat >conftest.$ac_ext <<_ACEOF
39451 cat confdefs.h >>conftest.$ac_ext
39452 cat >>conftest.$ac_ext <<_ACEOF
39453 /* end confdefs.h. */
39454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39456 #define $ac_func innocuous_$ac_func
39458 /* System header to define __stub macros and hopefully few prototypes,
39459 which can conflict with char $ac_func (); below.
39460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39461 <limits.h> exists even on freestanding compilers. */
39464 # include <limits.h>
39466 # include <assert.h>
39471 /* Override any GCC internal prototype to avoid an error.
39472 Use char because int might match the return type of a GCC
39473 builtin and then its argument prototype would still apply. */
39478 /* The GNU C library defines this for functions which it implements
39479 to always fail with ENOSYS. Some functions are actually named
39480 something starting with __ and the normal name is an alias. */
39481 #if defined __stub_$ac_func || defined __stub___$ac_func
39488 return $ac_func ();
39493 rm -f conftest.$ac_objext conftest$ac_exeext
39494 if { (ac_try="$ac_link"
39495 case "(($ac_try" in
39496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39497 *) ac_try_echo=$ac_try;;
39499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39500 (eval "$ac_link") 2>conftest.er1
39502 grep -v '^ *+' conftest.er1 >conftest.err
39504 cat conftest.err >&5
39505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506 (exit $ac_status); } && {
39507 test -z "$ac_c_werror_flag" ||
39508 test ! -s conftest.err
39509 } && test -s conftest$ac_exeext &&
39510 $as_test_x conftest$ac_exeext; then
39511 eval "$as_ac_var=yes"
39513 echo "$as_me: failed program was:" >&5
39514 sed 's/^/| /' conftest.$ac_ext >&5
39516 eval "$as_ac_var=no"
39519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39520 conftest$ac_exeext conftest.$ac_ext
39522 ac_res=`eval echo '${'$as_ac_var'}'`
39523 { echo "$as_me:$LINENO: result: $ac_res" >&5
39524 echo "${ECHO_T}$ac_res" >&6; }
39525 if test `eval echo '${'$as_ac_var'}'` = yes; then
39526 cat >>confdefs.h <<_ACEOF
39527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39529 cat >>confdefs.h <<\_ACEOF
39530 #define HAVE_GETHOSTBYNAME2 1
39537 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39538 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39539 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39540 echo $ECHO_N "(cached) $ECHO_C" >&6
39543 cat >conftest.$ac_ext <<_ACEOF
39546 cat confdefs.h >>conftest.$ac_ext
39547 cat >>conftest.$ac_ext <<_ACEOF
39548 /* end confdefs.h. */
39550 #include <sys/socket.h>
39556 struct sockaddr s; s.sa_len;
39562 rm -f conftest.$ac_objext
39563 if { (ac_try="$ac_compile"
39564 case "(($ac_try" in
39565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39566 *) ac_try_echo=$ac_try;;
39568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39569 (eval "$ac_compile") 2>conftest.er1
39571 grep -v '^ *+' conftest.er1 >conftest.err
39573 cat conftest.err >&5
39574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39575 (exit $ac_status); } && {
39576 test -z "$ac_c_werror_flag" ||
39577 test ! -s conftest.err
39578 } && test -s conftest.$ac_objext; then
39580 ac_cv_struct_sockaddr_sa_len=yes
39583 echo "$as_me: failed program was:" >&5
39584 sed 's/^/| /' conftest.$ac_ext >&5
39586 ac_cv_struct_sockaddr_sa_len=no
39591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39595 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39596 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39598 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39600 cat >>confdefs.h <<\_ACEOF
39601 #define HAVE_SA_LEN 1
39607 for ac_func in strftime
39609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39613 echo $ECHO_N "(cached) $ECHO_C" >&6
39615 cat >conftest.$ac_ext <<_ACEOF
39618 cat confdefs.h >>conftest.$ac_ext
39619 cat >>conftest.$ac_ext <<_ACEOF
39620 /* end confdefs.h. */
39621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39623 #define $ac_func innocuous_$ac_func
39625 /* System header to define __stub macros and hopefully few prototypes,
39626 which can conflict with char $ac_func (); below.
39627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39628 <limits.h> exists even on freestanding compilers. */
39631 # include <limits.h>
39633 # include <assert.h>
39638 /* Override any GCC internal prototype to avoid an error.
39639 Use char because int might match the return type of a GCC
39640 builtin and then its argument prototype would still apply. */
39645 /* The GNU C library defines this for functions which it implements
39646 to always fail with ENOSYS. Some functions are actually named
39647 something starting with __ and the normal name is an alias. */
39648 #if defined __stub_$ac_func || defined __stub___$ac_func
39655 return $ac_func ();
39660 rm -f conftest.$ac_objext conftest$ac_exeext
39661 if { (ac_try="$ac_link"
39662 case "(($ac_try" in
39663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39664 *) ac_try_echo=$ac_try;;
39666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39667 (eval "$ac_link") 2>conftest.er1
39669 grep -v '^ *+' conftest.er1 >conftest.err
39671 cat conftest.err >&5
39672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673 (exit $ac_status); } && {
39674 test -z "$ac_c_werror_flag" ||
39675 test ! -s conftest.err
39676 } && test -s conftest$ac_exeext &&
39677 $as_test_x conftest$ac_exeext; then
39678 eval "$as_ac_var=yes"
39680 echo "$as_me: failed program was:" >&5
39681 sed 's/^/| /' conftest.$ac_ext >&5
39683 eval "$as_ac_var=no"
39686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39687 conftest$ac_exeext conftest.$ac_ext
39689 ac_res=`eval echo '${'$as_ac_var'}'`
39690 { echo "$as_me:$LINENO: result: $ac_res" >&5
39691 echo "${ECHO_T}$ac_res" >&6; }
39692 if test `eval echo '${'$as_ac_var'}'` = yes; then
39693 cat >>confdefs.h <<_ACEOF
39694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39698 # strftime is in -lintl on SCO UNIX.
39699 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39700 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39701 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39702 echo $ECHO_N "(cached) $ECHO_C" >&6
39704 ac_check_lib_save_LIBS=$LIBS
39705 LIBS="-lintl $LIBS"
39706 cat >conftest.$ac_ext <<_ACEOF
39709 cat confdefs.h >>conftest.$ac_ext
39710 cat >>conftest.$ac_ext <<_ACEOF
39711 /* end confdefs.h. */
39713 /* Override any GCC internal prototype to avoid an error.
39714 Use char because int might match the return type of a GCC
39715 builtin and then its argument prototype would still apply. */
39723 return strftime ();
39728 rm -f conftest.$ac_objext conftest$ac_exeext
39729 if { (ac_try="$ac_link"
39730 case "(($ac_try" in
39731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39732 *) ac_try_echo=$ac_try;;
39734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39735 (eval "$ac_link") 2>conftest.er1
39737 grep -v '^ *+' conftest.er1 >conftest.err
39739 cat conftest.err >&5
39740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741 (exit $ac_status); } && {
39742 test -z "$ac_c_werror_flag" ||
39743 test ! -s conftest.err
39744 } && test -s conftest$ac_exeext &&
39745 $as_test_x conftest$ac_exeext; then
39746 ac_cv_lib_intl_strftime=yes
39748 echo "$as_me: failed program was:" >&5
39749 sed 's/^/| /' conftest.$ac_ext >&5
39751 ac_cv_lib_intl_strftime=no
39754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39755 conftest$ac_exeext conftest.$ac_ext
39756 LIBS=$ac_check_lib_save_LIBS
39758 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39759 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39760 if test $ac_cv_lib_intl_strftime = yes; then
39761 cat >>confdefs.h <<\_ACEOF
39762 #define HAVE_STRFTIME 1
39765 LIBS="-lintl $LIBS"
39772 for ac_func in vprintf
39774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39778 echo $ECHO_N "(cached) $ECHO_C" >&6
39780 cat >conftest.$ac_ext <<_ACEOF
39783 cat confdefs.h >>conftest.$ac_ext
39784 cat >>conftest.$ac_ext <<_ACEOF
39785 /* end confdefs.h. */
39786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39788 #define $ac_func innocuous_$ac_func
39790 /* System header to define __stub macros and hopefully few prototypes,
39791 which can conflict with char $ac_func (); below.
39792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39793 <limits.h> exists even on freestanding compilers. */
39796 # include <limits.h>
39798 # include <assert.h>
39803 /* Override any GCC internal prototype to avoid an error.
39804 Use char because int might match the return type of a GCC
39805 builtin and then its argument prototype would still apply. */
39810 /* The GNU C library defines this for functions which it implements
39811 to always fail with ENOSYS. Some functions are actually named
39812 something starting with __ and the normal name is an alias. */
39813 #if defined __stub_$ac_func || defined __stub___$ac_func
39820 return $ac_func ();
39825 rm -f conftest.$ac_objext conftest$ac_exeext
39826 if { (ac_try="$ac_link"
39827 case "(($ac_try" in
39828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39829 *) ac_try_echo=$ac_try;;
39831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39832 (eval "$ac_link") 2>conftest.er1
39834 grep -v '^ *+' conftest.er1 >conftest.err
39836 cat conftest.err >&5
39837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); } && {
39839 test -z "$ac_c_werror_flag" ||
39840 test ! -s conftest.err
39841 } && test -s conftest$ac_exeext &&
39842 $as_test_x conftest$ac_exeext; then
39843 eval "$as_ac_var=yes"
39845 echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39848 eval "$as_ac_var=no"
39851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39852 conftest$ac_exeext conftest.$ac_ext
39854 ac_res=`eval echo '${'$as_ac_var'}'`
39855 { echo "$as_me:$LINENO: result: $ac_res" >&5
39856 echo "${ECHO_T}$ac_res" >&6; }
39857 if test `eval echo '${'$as_ac_var'}'` = yes; then
39858 cat >>confdefs.h <<_ACEOF
39859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39862 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39863 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39864 if test "${ac_cv_func__doprnt+set}" = set; then
39865 echo $ECHO_N "(cached) $ECHO_C" >&6
39867 cat >conftest.$ac_ext <<_ACEOF
39870 cat confdefs.h >>conftest.$ac_ext
39871 cat >>conftest.$ac_ext <<_ACEOF
39872 /* end confdefs.h. */
39873 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39875 #define _doprnt innocuous__doprnt
39877 /* System header to define __stub macros and hopefully few prototypes,
39878 which can conflict with char _doprnt (); below.
39879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39880 <limits.h> exists even on freestanding compilers. */
39883 # include <limits.h>
39885 # include <assert.h>
39890 /* Override any GCC internal prototype to avoid an error.
39891 Use char because int might match the return type of a GCC
39892 builtin and then its argument prototype would still apply. */
39897 /* The GNU C library defines this for functions which it implements
39898 to always fail with ENOSYS. Some functions are actually named
39899 something starting with __ and the normal name is an alias. */
39900 #if defined __stub__doprnt || defined __stub____doprnt
39912 rm -f conftest.$ac_objext conftest$ac_exeext
39913 if { (ac_try="$ac_link"
39914 case "(($ac_try" in
39915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39916 *) ac_try_echo=$ac_try;;
39918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39919 (eval "$ac_link") 2>conftest.er1
39921 grep -v '^ *+' conftest.er1 >conftest.err
39923 cat conftest.err >&5
39924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925 (exit $ac_status); } && {
39926 test -z "$ac_c_werror_flag" ||
39927 test ! -s conftest.err
39928 } && test -s conftest$ac_exeext &&
39929 $as_test_x conftest$ac_exeext; then
39930 ac_cv_func__doprnt=yes
39932 echo "$as_me: failed program was:" >&5
39933 sed 's/^/| /' conftest.$ac_ext >&5
39935 ac_cv_func__doprnt=no
39938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39939 conftest$ac_exeext conftest.$ac_ext
39941 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39942 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39943 if test $ac_cv_func__doprnt = yes; then
39945 cat >>confdefs.h <<\_ACEOF
39946 #define HAVE_DOPRNT 1
39955 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39956 # for constant arguments. Useless!
39957 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39958 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39959 if test "${ac_cv_working_alloca_h+set}" = set; then
39960 echo $ECHO_N "(cached) $ECHO_C" >&6
39962 cat >conftest.$ac_ext <<_ACEOF
39965 cat confdefs.h >>conftest.$ac_ext
39966 cat >>conftest.$ac_ext <<_ACEOF
39967 /* end confdefs.h. */
39968 #include <alloca.h>
39972 char *p = (char *) alloca (2 * sizeof (int));
39978 rm -f conftest.$ac_objext conftest$ac_exeext
39979 if { (ac_try="$ac_link"
39980 case "(($ac_try" in
39981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39982 *) ac_try_echo=$ac_try;;
39984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39985 (eval "$ac_link") 2>conftest.er1
39987 grep -v '^ *+' conftest.er1 >conftest.err
39989 cat conftest.err >&5
39990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991 (exit $ac_status); } && {
39992 test -z "$ac_c_werror_flag" ||
39993 test ! -s conftest.err
39994 } && test -s conftest$ac_exeext &&
39995 $as_test_x conftest$ac_exeext; then
39996 ac_cv_working_alloca_h=yes
39998 echo "$as_me: failed program was:" >&5
39999 sed 's/^/| /' conftest.$ac_ext >&5
40001 ac_cv_working_alloca_h=no
40004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40005 conftest$ac_exeext conftest.$ac_ext
40007 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40008 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40009 if test $ac_cv_working_alloca_h = yes; then
40011 cat >>confdefs.h <<\_ACEOF
40012 #define HAVE_ALLOCA_H 1
40017 { echo "$as_me:$LINENO: checking for alloca" >&5
40018 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40019 if test "${ac_cv_func_alloca_works+set}" = set; then
40020 echo $ECHO_N "(cached) $ECHO_C" >&6
40022 cat >conftest.$ac_ext <<_ACEOF
40025 cat confdefs.h >>conftest.$ac_ext
40026 cat >>conftest.$ac_ext <<_ACEOF
40027 /* end confdefs.h. */
40029 # define alloca __builtin_alloca
40032 # include <malloc.h>
40033 # define alloca _alloca
40035 # ifdef HAVE_ALLOCA_H
40036 # include <alloca.h>
40041 # ifndef alloca /* predefined by HP cc +Olibcalls */
40052 char *p = (char *) alloca (1);
40058 rm -f conftest.$ac_objext conftest$ac_exeext
40059 if { (ac_try="$ac_link"
40060 case "(($ac_try" in
40061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40062 *) ac_try_echo=$ac_try;;
40064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40065 (eval "$ac_link") 2>conftest.er1
40067 grep -v '^ *+' conftest.er1 >conftest.err
40069 cat conftest.err >&5
40070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40071 (exit $ac_status); } && {
40072 test -z "$ac_c_werror_flag" ||
40073 test ! -s conftest.err
40074 } && test -s conftest$ac_exeext &&
40075 $as_test_x conftest$ac_exeext; then
40076 ac_cv_func_alloca_works=yes
40078 echo "$as_me: failed program was:" >&5
40079 sed 's/^/| /' conftest.$ac_ext >&5
40081 ac_cv_func_alloca_works=no
40084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40085 conftest$ac_exeext conftest.$ac_ext
40087 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40088 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40090 if test $ac_cv_func_alloca_works = yes; then
40092 cat >>confdefs.h <<\_ACEOF
40093 #define HAVE_ALLOCA 1
40097 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40098 # that cause trouble. Some versions do not even contain alloca or
40099 # contain a buggy version. If you still want to use their alloca,
40100 # use ar to extract alloca.o from them instead of compiling alloca.c.
40102 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40104 cat >>confdefs.h <<\_ACEOF
40109 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40110 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40111 if test "${ac_cv_os_cray+set}" = set; then
40112 echo $ECHO_N "(cached) $ECHO_C" >&6
40114 cat >conftest.$ac_ext <<_ACEOF
40117 cat confdefs.h >>conftest.$ac_ext
40118 cat >>conftest.$ac_ext <<_ACEOF
40119 /* end confdefs.h. */
40120 #if defined CRAY && ! defined CRAY2
40127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40128 $EGREP "webecray" >/dev/null 2>&1; then
40136 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40137 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40138 if test $ac_cv_os_cray = yes; then
40139 for ac_func in _getb67 GETB67 getb67; do
40140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40144 echo $ECHO_N "(cached) $ECHO_C" >&6
40146 cat >conftest.$ac_ext <<_ACEOF
40149 cat confdefs.h >>conftest.$ac_ext
40150 cat >>conftest.$ac_ext <<_ACEOF
40151 /* end confdefs.h. */
40152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40154 #define $ac_func innocuous_$ac_func
40156 /* System header to define __stub macros and hopefully few prototypes,
40157 which can conflict with char $ac_func (); below.
40158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40159 <limits.h> exists even on freestanding compilers. */
40162 # include <limits.h>
40164 # include <assert.h>
40169 /* Override any GCC internal prototype to avoid an error.
40170 Use char because int might match the return type of a GCC
40171 builtin and then its argument prototype would still apply. */
40176 /* The GNU C library defines this for functions which it implements
40177 to always fail with ENOSYS. Some functions are actually named
40178 something starting with __ and the normal name is an alias. */
40179 #if defined __stub_$ac_func || defined __stub___$ac_func
40186 return $ac_func ();
40191 rm -f conftest.$ac_objext conftest$ac_exeext
40192 if { (ac_try="$ac_link"
40193 case "(($ac_try" in
40194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40195 *) ac_try_echo=$ac_try;;
40197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40198 (eval "$ac_link") 2>conftest.er1
40200 grep -v '^ *+' conftest.er1 >conftest.err
40202 cat conftest.err >&5
40203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204 (exit $ac_status); } && {
40205 test -z "$ac_c_werror_flag" ||
40206 test ! -s conftest.err
40207 } && test -s conftest$ac_exeext &&
40208 $as_test_x conftest$ac_exeext; then
40209 eval "$as_ac_var=yes"
40211 echo "$as_me: failed program was:" >&5
40212 sed 's/^/| /' conftest.$ac_ext >&5
40214 eval "$as_ac_var=no"
40217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40218 conftest$ac_exeext conftest.$ac_ext
40220 ac_res=`eval echo '${'$as_ac_var'}'`
40221 { echo "$as_me:$LINENO: result: $ac_res" >&5
40222 echo "${ECHO_T}$ac_res" >&6; }
40223 if test `eval echo '${'$as_ac_var'}'` = yes; then
40225 cat >>confdefs.h <<_ACEOF
40226 #define CRAY_STACKSEG_END $ac_func
40235 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40236 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40237 if test "${ac_cv_c_stack_direction+set}" = set; then
40238 echo $ECHO_N "(cached) $ECHO_C" >&6
40240 if test "$cross_compiling" = yes; then
40241 ac_cv_c_stack_direction=0
40243 cat >conftest.$ac_ext <<_ACEOF
40246 cat confdefs.h >>conftest.$ac_ext
40247 cat >>conftest.$ac_ext <<_ACEOF
40248 /* end confdefs.h. */
40249 $ac_includes_default
40251 find_stack_direction ()
40253 static char *addr = 0;
40258 return find_stack_direction ();
40261 return (&dummy > addr) ? 1 : -1;
40267 return find_stack_direction () < 0;
40270 rm -f conftest$ac_exeext
40271 if { (ac_try="$ac_link"
40272 case "(($ac_try" in
40273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40274 *) ac_try_echo=$ac_try;;
40276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40277 (eval "$ac_link") 2>&5
40279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40281 { (case "(($ac_try" in
40282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40283 *) ac_try_echo=$ac_try;;
40285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40286 (eval "$ac_try") 2>&5
40288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289 (exit $ac_status); }; }; then
40290 ac_cv_c_stack_direction=1
40292 echo "$as_me: program exited with status $ac_status" >&5
40293 echo "$as_me: failed program was:" >&5
40294 sed 's/^/| /' conftest.$ac_ext >&5
40296 ( exit $ac_status )
40297 ac_cv_c_stack_direction=-1
40299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40304 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40305 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40307 cat >>confdefs.h <<_ACEOF
40308 #define STACK_DIRECTION $ac_cv_c_stack_direction
40314 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40315 # -lseq on Dynix/PTX, -lgen on Unixware.
40316 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40317 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40318 if test "${ac_cv_search_getmntent+set}" = set; then
40319 echo $ECHO_N "(cached) $ECHO_C" >&6
40321 ac_func_search_save_LIBS=$LIBS
40322 cat >conftest.$ac_ext <<_ACEOF
40325 cat confdefs.h >>conftest.$ac_ext
40326 cat >>conftest.$ac_ext <<_ACEOF
40327 /* end confdefs.h. */
40329 /* Override any GCC internal prototype to avoid an error.
40330 Use char because int might match the return type of a GCC
40331 builtin and then its argument prototype would still apply. */
40339 return getmntent ();
40344 for ac_lib in '' sun seq gen; do
40345 if test -z "$ac_lib"; then
40346 ac_res="none required"
40349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40351 rm -f conftest.$ac_objext conftest$ac_exeext
40352 if { (ac_try="$ac_link"
40353 case "(($ac_try" in
40354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40355 *) ac_try_echo=$ac_try;;
40357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40358 (eval "$ac_link") 2>conftest.er1
40360 grep -v '^ *+' conftest.er1 >conftest.err
40362 cat conftest.err >&5
40363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364 (exit $ac_status); } && {
40365 test -z "$ac_c_werror_flag" ||
40366 test ! -s conftest.err
40367 } && test -s conftest$ac_exeext &&
40368 $as_test_x conftest$ac_exeext; then
40369 ac_cv_search_getmntent=$ac_res
40371 echo "$as_me: failed program was:" >&5
40372 sed 's/^/| /' conftest.$ac_ext >&5
40377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40379 if test "${ac_cv_search_getmntent+set}" = set; then
40383 if test "${ac_cv_search_getmntent+set}" = set; then
40386 ac_cv_search_getmntent=no
40388 rm conftest.$ac_ext
40389 LIBS=$ac_func_search_save_LIBS
40391 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40392 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40393 ac_res=$ac_cv_search_getmntent
40394 if test "$ac_res" != no; then
40395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40396 ac_cv_func_getmntent=yes
40398 cat >>confdefs.h <<\_ACEOF
40399 #define HAVE_GETMNTENT 1
40403 ac_cv_func_getmntent=no
40407 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40408 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40409 if test "${ac_cv_func_closedir_void+set}" = set; then
40410 echo $ECHO_N "(cached) $ECHO_C" >&6
40412 if test "$cross_compiling" = yes; then
40413 ac_cv_func_closedir_void=yes
40415 cat >conftest.$ac_ext <<_ACEOF
40418 cat confdefs.h >>conftest.$ac_ext
40419 cat >>conftest.$ac_ext <<_ACEOF
40420 /* end confdefs.h. */
40421 $ac_includes_default
40422 #include <$ac_header_dirent>
40423 #ifndef __cplusplus
40430 return closedir (opendir (".")) != 0;
40435 rm -f conftest$ac_exeext
40436 if { (ac_try="$ac_link"
40437 case "(($ac_try" in
40438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40439 *) ac_try_echo=$ac_try;;
40441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40442 (eval "$ac_link") 2>&5
40444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40446 { (case "(($ac_try" in
40447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40448 *) ac_try_echo=$ac_try;;
40450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40451 (eval "$ac_try") 2>&5
40453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40454 (exit $ac_status); }; }; then
40455 ac_cv_func_closedir_void=no
40457 echo "$as_me: program exited with status $ac_status" >&5
40458 echo "$as_me: failed program was:" >&5
40459 sed 's/^/| /' conftest.$ac_ext >&5
40461 ( exit $ac_status )
40462 ac_cv_func_closedir_void=yes
40464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40469 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40470 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40471 if test $ac_cv_func_closedir_void = yes; then
40473 cat >>confdefs.h <<\_ACEOF
40474 #define CLOSEDIR_VOID 1
40479 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40480 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40481 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40482 echo $ECHO_N "(cached) $ECHO_C" >&6
40484 if test "$cross_compiling" = yes; then
40485 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40486 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40487 { (exit 1); exit 1; }; }
40489 cat >conftest.$ac_ext <<_ACEOF
40492 cat confdefs.h >>conftest.$ac_ext
40493 cat >>conftest.$ac_ext <<_ACEOF
40494 /* end confdefs.h. */
40495 $ac_includes_default
40499 /* If this system has a BSD-style setpgrp which takes arguments,
40500 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40501 exit successfully. */
40502 return setpgrp (1,1) != -1;
40507 rm -f conftest$ac_exeext
40508 if { (ac_try="$ac_link"
40509 case "(($ac_try" in
40510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40511 *) ac_try_echo=$ac_try;;
40513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40514 (eval "$ac_link") 2>&5
40516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40518 { (case "(($ac_try" in
40519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40520 *) ac_try_echo=$ac_try;;
40522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40523 (eval "$ac_try") 2>&5
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); }; }; then
40527 ac_cv_func_setpgrp_void=no
40529 echo "$as_me: program exited with status $ac_status" >&5
40530 echo "$as_me: failed program was:" >&5
40531 sed 's/^/| /' conftest.$ac_ext >&5
40533 ( exit $ac_status )
40534 ac_cv_func_setpgrp_void=yes
40536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40541 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40542 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40543 if test $ac_cv_func_setpgrp_void = yes; then
40545 cat >>confdefs.h <<\_ACEOF
40546 #define SETPGRP_VOID 1
40550 # AC_FUNC_FNMATCH dnl use local version
40552 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40553 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40554 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40555 echo $ECHO_N "(cached) $ECHO_C" >&6
40557 ac_check_lib_save_LIBS=$LIBS
40558 LIBS="-lintl $LIBS"
40559 cat >conftest.$ac_ext <<_ACEOF
40562 cat confdefs.h >>conftest.$ac_ext
40563 cat >>conftest.$ac_ext <<_ACEOF
40564 /* end confdefs.h. */
40566 /* Override any GCC internal prototype to avoid an error.
40567 Use char because int might match the return type of a GCC
40568 builtin and then its argument prototype would still apply. */
40581 rm -f conftest.$ac_objext conftest$ac_exeext
40582 if { (ac_try="$ac_link"
40583 case "(($ac_try" in
40584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40585 *) ac_try_echo=$ac_try;;
40587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40588 (eval "$ac_link") 2>conftest.er1
40590 grep -v '^ *+' conftest.er1 >conftest.err
40592 cat conftest.err >&5
40593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594 (exit $ac_status); } && {
40595 test -z "$ac_c_werror_flag" ||
40596 test ! -s conftest.err
40597 } && test -s conftest$ac_exeext &&
40598 $as_test_x conftest$ac_exeext; then
40599 ac_cv_lib_intl_gettext=yes
40601 echo "$as_me: failed program was:" >&5
40602 sed 's/^/| /' conftest.$ac_ext >&5
40604 ac_cv_lib_intl_gettext=no
40607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40608 conftest$ac_exeext conftest.$ac_ext
40609 LIBS=$ac_check_lib_save_LIBS
40611 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40612 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40613 if test $ac_cv_lib_intl_gettext = yes; then
40614 LIBS="$LIBS -lintl"
40619 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40620 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40621 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40622 echo $ECHO_N "(cached) $ECHO_C" >&6
40624 ac_check_lib_save_LIBS=$LIBS
40626 cat >conftest.$ac_ext <<_ACEOF
40629 cat confdefs.h >>conftest.$ac_ext
40630 cat >>conftest.$ac_ext <<_ACEOF
40631 /* end confdefs.h. */
40633 /* Override any GCC internal prototype to avoid an error.
40634 Use char because int might match the return type of a GCC
40635 builtin and then its argument prototype would still apply. */
40643 return getpwnam ();
40648 rm -f conftest.$ac_objext conftest$ac_exeext
40649 if { (ac_try="$ac_link"
40650 case "(($ac_try" in
40651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40652 *) ac_try_echo=$ac_try;;
40654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40655 (eval "$ac_link") 2>conftest.er1
40657 grep -v '^ *+' conftest.er1 >conftest.err
40659 cat conftest.err >&5
40660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40661 (exit $ac_status); } && {
40662 test -z "$ac_c_werror_flag" ||
40663 test ! -s conftest.err
40664 } && test -s conftest$ac_exeext &&
40665 $as_test_x conftest$ac_exeext; then
40666 ac_cv_lib_sun_getpwnam=yes
40668 echo "$as_me: failed program was:" >&5
40669 sed 's/^/| /' conftest.$ac_ext >&5
40671 ac_cv_lib_sun_getpwnam=no
40674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40675 conftest$ac_exeext conftest.$ac_ext
40676 LIBS=$ac_check_lib_save_LIBS
40678 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40679 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40680 if test $ac_cv_lib_sun_getpwnam = yes; then
40681 cat >>confdefs.h <<_ACEOF
40682 #define HAVE_LIBSUN 1
40691 for ac_header in zlib.h
40693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40698 echo $ECHO_N "(cached) $ECHO_C" >&6
40700 ac_res=`eval echo '${'$as_ac_Header'}'`
40701 { echo "$as_me:$LINENO: result: $ac_res" >&5
40702 echo "${ECHO_T}$ac_res" >&6; }
40704 # Is the header compilable?
40705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40707 cat >conftest.$ac_ext <<_ACEOF
40710 cat confdefs.h >>conftest.$ac_ext
40711 cat >>conftest.$ac_ext <<_ACEOF
40712 /* end confdefs.h. */
40713 $ac_includes_default
40714 #include <$ac_header>
40716 rm -f conftest.$ac_objext
40717 if { (ac_try="$ac_compile"
40718 case "(($ac_try" in
40719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40720 *) ac_try_echo=$ac_try;;
40722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40723 (eval "$ac_compile") 2>conftest.er1
40725 grep -v '^ *+' conftest.er1 >conftest.err
40727 cat conftest.err >&5
40728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40729 (exit $ac_status); } && {
40730 test -z "$ac_c_werror_flag" ||
40731 test ! -s conftest.err
40732 } && test -s conftest.$ac_objext; then
40733 ac_header_compiler=yes
40735 echo "$as_me: failed program was:" >&5
40736 sed 's/^/| /' conftest.$ac_ext >&5
40738 ac_header_compiler=no
40741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40743 echo "${ECHO_T}$ac_header_compiler" >&6; }
40745 # Is the header present?
40746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40748 cat >conftest.$ac_ext <<_ACEOF
40751 cat confdefs.h >>conftest.$ac_ext
40752 cat >>conftest.$ac_ext <<_ACEOF
40753 /* end confdefs.h. */
40754 #include <$ac_header>
40756 if { (ac_try="$ac_cpp conftest.$ac_ext"
40757 case "(($ac_try" in
40758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40759 *) ac_try_echo=$ac_try;;
40761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40764 grep -v '^ *+' conftest.er1 >conftest.err
40766 cat conftest.err >&5
40767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40768 (exit $ac_status); } >/dev/null && {
40769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40770 test ! -s conftest.err
40772 ac_header_preproc=yes
40774 echo "$as_me: failed program was:" >&5
40775 sed 's/^/| /' conftest.$ac_ext >&5
40777 ac_header_preproc=no
40780 rm -f conftest.err conftest.$ac_ext
40781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40782 echo "${ECHO_T}$ac_header_preproc" >&6; }
40784 # So? What about this header?
40785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40791 ac_header_preproc=yes
40794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40812 echo $ECHO_N "(cached) $ECHO_C" >&6
40814 eval "$as_ac_Header=\$ac_header_preproc"
40816 ac_res=`eval echo '${'$as_ac_Header'}'`
40817 { echo "$as_me:$LINENO: result: $ac_res" >&5
40818 echo "${ECHO_T}$ac_res" >&6; }
40821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40822 cat >>confdefs.h <<_ACEOF
40823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40830 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40831 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40832 if test "${ac_cv_lib_z_deflate+set}" = set; then
40833 echo $ECHO_N "(cached) $ECHO_C" >&6
40835 ac_check_lib_save_LIBS=$LIBS
40837 cat >conftest.$ac_ext <<_ACEOF
40840 cat confdefs.h >>conftest.$ac_ext
40841 cat >>conftest.$ac_ext <<_ACEOF
40842 /* end confdefs.h. */
40844 /* Override any GCC internal prototype to avoid an error.
40845 Use char because int might match the return type of a GCC
40846 builtin and then its argument prototype would still apply. */
40859 rm -f conftest.$ac_objext conftest$ac_exeext
40860 if { (ac_try="$ac_link"
40861 case "(($ac_try" in
40862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40863 *) ac_try_echo=$ac_try;;
40865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40866 (eval "$ac_link") 2>conftest.er1
40868 grep -v '^ *+' conftest.er1 >conftest.err
40870 cat conftest.err >&5
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); } && {
40873 test -z "$ac_c_werror_flag" ||
40874 test ! -s conftest.err
40875 } && test -s conftest$ac_exeext &&
40876 $as_test_x conftest$ac_exeext; then
40877 ac_cv_lib_z_deflate=yes
40879 echo "$as_me: failed program was:" >&5
40880 sed 's/^/| /' conftest.$ac_ext >&5
40882 ac_cv_lib_z_deflate=no
40885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40886 conftest$ac_exeext conftest.$ac_ext
40887 LIBS=$ac_check_lib_save_LIBS
40889 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40890 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40891 if test $ac_cv_lib_z_deflate = yes; then
40896 if test x$FDLIBS = x-lz; then
40897 cat >>confdefs.h <<\_ACEOF
40898 #define HAVE_LIBZ 1
40905 # Check whether --enable-acl was given.
40906 if test "${enable_acl+set}" = set; then
40907 enableval=$enable_acl;
40908 if test x$enableval = xyes; then
40910 elif test x$enableval = xno; then
40919 have_extended_acl=no
40920 if test x$support_acl = xyes -o x$support_acl = xauto; then
40921 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40922 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40923 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40924 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40925 echo $ECHO_N "(cached) $ECHO_C" >&6
40927 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40928 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40930 # Is the header compilable?
40931 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40932 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40933 cat >conftest.$ac_ext <<_ACEOF
40936 cat confdefs.h >>conftest.$ac_ext
40937 cat >>conftest.$ac_ext <<_ACEOF
40938 /* end confdefs.h. */
40939 $ac_includes_default
40940 #include <sys/acl.h>
40942 rm -f conftest.$ac_objext
40943 if { (ac_try="$ac_compile"
40944 case "(($ac_try" in
40945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40946 *) ac_try_echo=$ac_try;;
40948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40949 (eval "$ac_compile") 2>conftest.er1
40951 grep -v '^ *+' conftest.er1 >conftest.err
40953 cat conftest.err >&5
40954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40955 (exit $ac_status); } && {
40956 test -z "$ac_c_werror_flag" ||
40957 test ! -s conftest.err
40958 } && test -s conftest.$ac_objext; then
40959 ac_header_compiler=yes
40961 echo "$as_me: failed program was:" >&5
40962 sed 's/^/| /' conftest.$ac_ext >&5
40964 ac_header_compiler=no
40967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40969 echo "${ECHO_T}$ac_header_compiler" >&6; }
40971 # Is the header present?
40972 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40973 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40974 cat >conftest.$ac_ext <<_ACEOF
40977 cat confdefs.h >>conftest.$ac_ext
40978 cat >>conftest.$ac_ext <<_ACEOF
40979 /* end confdefs.h. */
40980 #include <sys/acl.h>
40982 if { (ac_try="$ac_cpp conftest.$ac_ext"
40983 case "(($ac_try" in
40984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40985 *) ac_try_echo=$ac_try;;
40987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40990 grep -v '^ *+' conftest.er1 >conftest.err
40992 cat conftest.err >&5
40993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40994 (exit $ac_status); } >/dev/null && {
40995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40996 test ! -s conftest.err
40998 ac_header_preproc=yes
41000 echo "$as_me: failed program was:" >&5
41001 sed 's/^/| /' conftest.$ac_ext >&5
41003 ac_header_preproc=no
41006 rm -f conftest.err conftest.$ac_ext
41007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41008 echo "${ECHO_T}$ac_header_preproc" >&6; }
41010 # So? What about this header?
41011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41013 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41014 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41015 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41016 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41017 ac_header_preproc=yes
41020 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41021 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41022 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
41023 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
41024 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41025 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41026 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
41027 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
41028 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41029 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41030 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41031 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41035 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41036 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41037 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41038 echo $ECHO_N "(cached) $ECHO_C" >&6
41040 ac_cv_header_sys_acl_h=$ac_header_preproc
41042 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41043 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41046 if test $ac_cv_header_sys_acl_h = yes; then
41048 cat >>confdefs.h <<\_ACEOF
41049 #define HAVE_SYS_ACL_H 1
41055 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41056 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41057 if test "${ac_cv_func_acl_get_file+set}" = set; then
41058 echo $ECHO_N "(cached) $ECHO_C" >&6
41060 cat >conftest.$ac_ext <<_ACEOF
41063 cat confdefs.h >>conftest.$ac_ext
41064 cat >>conftest.$ac_ext <<_ACEOF
41065 /* end confdefs.h. */
41066 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41068 #define acl_get_file innocuous_acl_get_file
41070 /* System header to define __stub macros and hopefully few prototypes,
41071 which can conflict with char acl_get_file (); below.
41072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41073 <limits.h> exists even on freestanding compilers. */
41076 # include <limits.h>
41078 # include <assert.h>
41081 #undef acl_get_file
41083 /* Override any GCC internal prototype to avoid an error.
41084 Use char because int might match the return type of a GCC
41085 builtin and then its argument prototype would still apply. */
41089 char acl_get_file ();
41090 /* The GNU C library defines this for functions which it implements
41091 to always fail with ENOSYS. Some functions are actually named
41092 something starting with __ and the normal name is an alias. */
41093 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41100 return acl_get_file ();
41105 rm -f conftest.$ac_objext conftest$ac_exeext
41106 if { (ac_try="$ac_link"
41107 case "(($ac_try" in
41108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41109 *) ac_try_echo=$ac_try;;
41111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41112 (eval "$ac_link") 2>conftest.er1
41114 grep -v '^ *+' conftest.er1 >conftest.err
41116 cat conftest.err >&5
41117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118 (exit $ac_status); } && {
41119 test -z "$ac_c_werror_flag" ||
41120 test ! -s conftest.err
41121 } && test -s conftest$ac_exeext &&
41122 $as_test_x conftest$ac_exeext; then
41123 ac_cv_func_acl_get_file=yes
41125 echo "$as_me: failed program was:" >&5
41126 sed 's/^/| /' conftest.$ac_ext >&5
41128 ac_cv_func_acl_get_file=no
41131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41132 conftest$ac_exeext conftest.$ac_ext
41134 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41135 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41136 if test $ac_cv_func_acl_get_file = yes; then
41142 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41143 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41144 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41145 echo $ECHO_N "(cached) $ECHO_C" >&6
41147 ac_check_lib_save_LIBS=$LIBS
41149 cat >conftest.$ac_ext <<_ACEOF
41152 cat confdefs.h >>conftest.$ac_ext
41153 cat >>conftest.$ac_ext <<_ACEOF
41154 /* end confdefs.h. */
41156 /* Override any GCC internal prototype to avoid an error.
41157 Use char because int might match the return type of a GCC
41158 builtin and then its argument prototype would still apply. */
41162 char acl_get_file ();
41166 return acl_get_file ();
41171 rm -f conftest.$ac_objext conftest$ac_exeext
41172 if { (ac_try="$ac_link"
41173 case "(($ac_try" in
41174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41175 *) ac_try_echo=$ac_try;;
41177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41178 (eval "$ac_link") 2>conftest.er1
41180 grep -v '^ *+' conftest.er1 >conftest.err
41182 cat conftest.err >&5
41183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41184 (exit $ac_status); } && {
41185 test -z "$ac_c_werror_flag" ||
41186 test ! -s conftest.err
41187 } && test -s conftest$ac_exeext &&
41188 $as_test_x conftest$ac_exeext; then
41189 ac_cv_lib_acl_acl_get_file=yes
41191 echo "$as_me: failed program was:" >&5
41192 sed 's/^/| /' conftest.$ac_ext >&5
41194 ac_cv_lib_acl_acl_get_file=no
41197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41198 conftest$ac_exeext conftest.$ac_ext
41199 LIBS=$ac_check_lib_save_LIBS
41201 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41202 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41203 if test $ac_cv_lib_acl_acl_get_file = yes; then
41206 FDLIBS="-lacl $FDLIBS"
41210 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41211 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41212 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41213 echo $ECHO_N "(cached) $ECHO_C" >&6
41215 ac_check_lib_save_LIBS=$LIBS
41216 LIBS="-lpacl $LIBS"
41217 cat >conftest.$ac_ext <<_ACEOF
41220 cat confdefs.h >>conftest.$ac_ext
41221 cat >>conftest.$ac_ext <<_ACEOF
41222 /* end confdefs.h. */
41224 /* Override any GCC internal prototype to avoid an error.
41225 Use char because int might match the return type of a GCC
41226 builtin and then its argument prototype would still apply. */
41230 char acl_get_file ();
41234 return acl_get_file ();
41239 rm -f conftest.$ac_objext conftest$ac_exeext
41240 if { (ac_try="$ac_link"
41241 case "(($ac_try" in
41242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41243 *) ac_try_echo=$ac_try;;
41245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41246 (eval "$ac_link") 2>conftest.er1
41248 grep -v '^ *+' conftest.er1 >conftest.err
41250 cat conftest.err >&5
41251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252 (exit $ac_status); } && {
41253 test -z "$ac_c_werror_flag" ||
41254 test ! -s conftest.err
41255 } && test -s conftest$ac_exeext &&
41256 $as_test_x conftest$ac_exeext; then
41257 ac_cv_lib_pacl_acl_get_file=yes
41259 echo "$as_me: failed program was:" >&5
41260 sed 's/^/| /' conftest.$ac_ext >&5
41262 ac_cv_lib_pacl_acl_get_file=no
41265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41266 conftest$ac_exeext conftest.$ac_ext
41267 LIBS=$ac_check_lib_save_LIBS
41269 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41270 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41271 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41274 FDLIBS="-lpacl $FDLIBS"
41278 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41279 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41280 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41281 echo $ECHO_N "(cached) $ECHO_C" >&6
41283 ac_check_lib_save_LIBS=$LIBS
41285 cat >conftest.$ac_ext <<_ACEOF
41288 cat confdefs.h >>conftest.$ac_ext
41289 cat >>conftest.$ac_ext <<_ACEOF
41290 /* end confdefs.h. */
41292 /* Override any GCC internal prototype to avoid an error.
41293 Use char because int might match the return type of a GCC
41294 builtin and then its argument prototype would still apply. */
41302 return acltotext ();
41307 rm -f conftest.$ac_objext conftest$ac_exeext
41308 if { (ac_try="$ac_link"
41309 case "(($ac_try" in
41310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41311 *) ac_try_echo=$ac_try;;
41313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41314 (eval "$ac_link") 2>conftest.er1
41316 grep -v '^ *+' conftest.er1 >conftest.err
41318 cat conftest.err >&5
41319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41320 (exit $ac_status); } && {
41321 test -z "$ac_c_werror_flag" ||
41322 test ! -s conftest.err
41323 } && test -s conftest$ac_exeext &&
41324 $as_test_x conftest$ac_exeext; then
41325 ac_cv_lib_sec_acltotext=yes
41327 echo "$as_me: failed program was:" >&5
41328 sed 's/^/| /' conftest.$ac_ext >&5
41330 ac_cv_lib_sec_acltotext=no
41333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41334 conftest$ac_exeext conftest.$ac_ext
41335 LIBS=$ac_check_lib_save_LIBS
41337 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41338 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41339 if test $ac_cv_lib_sec_acltotext = yes; then
41342 FDLIBS="-lsec $FDLIBS"
41344 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41345 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41346 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41347 echo $ECHO_N "(cached) $ECHO_C" >&6
41349 ac_check_lib_save_LIBS=$LIBS
41351 cat >conftest.$ac_ext <<_ACEOF
41354 cat confdefs.h >>conftest.$ac_ext
41355 cat >>conftest.$ac_ext <<_ACEOF
41356 /* end confdefs.h. */
41358 /* Override any GCC internal prototype to avoid an error.
41359 Use char because int might match the return type of a GCC
41360 builtin and then its argument prototype would still apply. */
41364 char acl_totext ();
41368 return acl_totext ();
41373 rm -f conftest.$ac_objext conftest$ac_exeext
41374 if { (ac_try="$ac_link"
41375 case "(($ac_try" in
41376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41377 *) ac_try_echo=$ac_try;;
41379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41380 (eval "$ac_link") 2>conftest.er1
41382 grep -v '^ *+' conftest.er1 >conftest.err
41384 cat conftest.err >&5
41385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386 (exit $ac_status); } && {
41387 test -z "$ac_c_werror_flag" ||
41388 test ! -s conftest.err
41389 } && test -s conftest$ac_exeext &&
41390 $as_test_x conftest$ac_exeext; then
41391 ac_cv_lib_sec_acl_totext=yes
41393 echo "$as_me: failed program was:" >&5
41394 sed 's/^/| /' conftest.$ac_ext >&5
41396 ac_cv_lib_sec_acl_totext=no
41399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41400 conftest$ac_exeext conftest.$ac_ext
41401 LIBS=$ac_check_lib_save_LIBS
41403 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41404 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41405 if test $ac_cv_lib_sec_acl_totext = yes; then
41407 have_extended_acl=yes
41429 if test x$support_acl = xyes -a $have_acl != yes; then
41430 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41431 please either load the acl libraries or rerun configure without --enable-acl" >&5
41432 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41433 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41434 { (exit 1); exit 1; }; }
41436 if test $have_acl = yes; then
41438 cat >>confdefs.h <<\_ACEOF
41444 if test $have_extended_acl = yes; then
41446 cat >>confdefs.h <<\_ACEOF
41447 #define HAVE_EXTENDED_ACL 1
41455 # Check whether --enable-xattr was given.
41456 if test "${enable_xattr+set}" = set; then
41457 enableval=$enable_xattr;
41458 if test x$enableval = xyes; then
41460 elif test x$enableval = xno; then
41469 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41470 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41471 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41472 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41473 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41474 echo $ECHO_N "(cached) $ECHO_C" >&6
41476 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41477 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41479 # Is the header compilable?
41480 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41481 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41482 cat >conftest.$ac_ext <<_ACEOF
41485 cat confdefs.h >>conftest.$ac_ext
41486 cat >>conftest.$ac_ext <<_ACEOF
41487 /* end confdefs.h. */
41488 $ac_includes_default
41489 #include <sys/extattr.h>
41491 rm -f conftest.$ac_objext
41492 if { (ac_try="$ac_compile"
41493 case "(($ac_try" in
41494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41495 *) ac_try_echo=$ac_try;;
41497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41498 (eval "$ac_compile") 2>conftest.er1
41500 grep -v '^ *+' conftest.er1 >conftest.err
41502 cat conftest.err >&5
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); } && {
41505 test -z "$ac_c_werror_flag" ||
41506 test ! -s conftest.err
41507 } && test -s conftest.$ac_objext; then
41508 ac_header_compiler=yes
41510 echo "$as_me: failed program was:" >&5
41511 sed 's/^/| /' conftest.$ac_ext >&5
41513 ac_header_compiler=no
41516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41518 echo "${ECHO_T}$ac_header_compiler" >&6; }
41520 # Is the header present?
41521 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41522 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41523 cat >conftest.$ac_ext <<_ACEOF
41526 cat confdefs.h >>conftest.$ac_ext
41527 cat >>conftest.$ac_ext <<_ACEOF
41528 /* end confdefs.h. */
41529 #include <sys/extattr.h>
41531 if { (ac_try="$ac_cpp conftest.$ac_ext"
41532 case "(($ac_try" in
41533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41534 *) ac_try_echo=$ac_try;;
41536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41539 grep -v '^ *+' conftest.er1 >conftest.err
41541 cat conftest.err >&5
41542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543 (exit $ac_status); } >/dev/null && {
41544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41545 test ! -s conftest.err
41547 ac_header_preproc=yes
41549 echo "$as_me: failed program was:" >&5
41550 sed 's/^/| /' conftest.$ac_ext >&5
41552 ac_header_preproc=no
41555 rm -f conftest.err conftest.$ac_ext
41556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41557 echo "${ECHO_T}$ac_header_preproc" >&6; }
41559 # So? What about this header?
41560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41562 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41563 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41564 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41565 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41566 ac_header_preproc=yes
41569 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41570 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41571 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41572 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41573 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41574 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41575 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41576 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41577 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41578 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41579 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41580 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41584 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41585 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41586 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41587 echo $ECHO_N "(cached) $ECHO_C" >&6
41589 ac_cv_header_sys_extattr_h=$ac_header_preproc
41591 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41592 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41595 if test $ac_cv_header_sys_extattr_h = yes; then
41597 cat >>confdefs.h <<\_ACEOF
41598 #define HAVE_SYS_EXTATTR_H 1
41604 if test "${ac_cv_header_libutil_h+set}" = set; then
41605 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41606 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41607 if test "${ac_cv_header_libutil_h+set}" = set; then
41608 echo $ECHO_N "(cached) $ECHO_C" >&6
41610 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41611 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41613 # Is the header compilable?
41614 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41615 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41616 cat >conftest.$ac_ext <<_ACEOF
41619 cat confdefs.h >>conftest.$ac_ext
41620 cat >>conftest.$ac_ext <<_ACEOF
41621 /* end confdefs.h. */
41622 $ac_includes_default
41623 #include <libutil.h>
41625 rm -f conftest.$ac_objext
41626 if { (ac_try="$ac_compile"
41627 case "(($ac_try" in
41628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41629 *) ac_try_echo=$ac_try;;
41631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41632 (eval "$ac_compile") 2>conftest.er1
41634 grep -v '^ *+' conftest.er1 >conftest.err
41636 cat conftest.err >&5
41637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638 (exit $ac_status); } && {
41639 test -z "$ac_c_werror_flag" ||
41640 test ! -s conftest.err
41641 } && test -s conftest.$ac_objext; then
41642 ac_header_compiler=yes
41644 echo "$as_me: failed program was:" >&5
41645 sed 's/^/| /' conftest.$ac_ext >&5
41647 ac_header_compiler=no
41650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41652 echo "${ECHO_T}$ac_header_compiler" >&6; }
41654 # Is the header present?
41655 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41656 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41657 cat >conftest.$ac_ext <<_ACEOF
41660 cat confdefs.h >>conftest.$ac_ext
41661 cat >>conftest.$ac_ext <<_ACEOF
41662 /* end confdefs.h. */
41663 #include <libutil.h>
41665 if { (ac_try="$ac_cpp conftest.$ac_ext"
41666 case "(($ac_try" in
41667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41668 *) ac_try_echo=$ac_try;;
41670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41673 grep -v '^ *+' conftest.er1 >conftest.err
41675 cat conftest.err >&5
41676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677 (exit $ac_status); } >/dev/null && {
41678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41679 test ! -s conftest.err
41681 ac_header_preproc=yes
41683 echo "$as_me: failed program was:" >&5
41684 sed 's/^/| /' conftest.$ac_ext >&5
41686 ac_header_preproc=no
41689 rm -f conftest.err conftest.$ac_ext
41690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41691 echo "${ECHO_T}$ac_header_preproc" >&6; }
41693 # So? What about this header?
41694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41696 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41697 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41698 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41699 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41700 ac_header_preproc=yes
41703 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41704 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41705 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41706 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41707 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41708 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41709 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41710 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41711 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41712 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41713 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41714 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41718 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41719 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41720 if test "${ac_cv_header_libutil_h+set}" = set; then
41721 echo $ECHO_N "(cached) $ECHO_C" >&6
41723 ac_cv_header_libutil_h=$ac_header_preproc
41725 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41726 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41729 if test $ac_cv_header_libutil_h = yes; then
41731 cat >>confdefs.h <<\_ACEOF
41732 #define HAVE_LIBUTIL_H 1
41741 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41747 echo $ECHO_N "(cached) $ECHO_C" >&6
41749 cat >conftest.$ac_ext <<_ACEOF
41752 cat confdefs.h >>conftest.$ac_ext
41753 cat >>conftest.$ac_ext <<_ACEOF
41754 /* end confdefs.h. */
41755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41757 #define $ac_func innocuous_$ac_func
41759 /* System header to define __stub macros and hopefully few prototypes,
41760 which can conflict with char $ac_func (); below.
41761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41762 <limits.h> exists even on freestanding compilers. */
41765 # include <limits.h>
41767 # include <assert.h>
41772 /* Override any GCC internal prototype to avoid an error.
41773 Use char because int might match the return type of a GCC
41774 builtin and then its argument prototype would still apply. */
41779 /* The GNU C library defines this for functions which it implements
41780 to always fail with ENOSYS. Some functions are actually named
41781 something starting with __ and the normal name is an alias. */
41782 #if defined __stub_$ac_func || defined __stub___$ac_func
41789 return $ac_func ();
41794 rm -f conftest.$ac_objext conftest$ac_exeext
41795 if { (ac_try="$ac_link"
41796 case "(($ac_try" in
41797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41798 *) ac_try_echo=$ac_try;;
41800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41801 (eval "$ac_link") 2>conftest.er1
41803 grep -v '^ *+' conftest.er1 >conftest.err
41805 cat conftest.err >&5
41806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41807 (exit $ac_status); } && {
41808 test -z "$ac_c_werror_flag" ||
41809 test ! -s conftest.err
41810 } && test -s conftest$ac_exeext &&
41811 $as_test_x conftest$ac_exeext; then
41812 eval "$as_ac_var=yes"
41814 echo "$as_me: failed program was:" >&5
41815 sed 's/^/| /' conftest.$ac_ext >&5
41817 eval "$as_ac_var=no"
41820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41821 conftest$ac_exeext conftest.$ac_ext
41823 ac_res=`eval echo '${'$as_ac_var'}'`
41824 { echo "$as_me:$LINENO: result: $ac_res" >&5
41825 echo "${ECHO_T}$ac_res" >&6; }
41826 if test `eval echo '${'$as_ac_var'}'` = yes; then
41827 cat >>confdefs.h <<_ACEOF
41828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41833 cat >>confdefs.h <<\_ACEOF
41834 #define HAVE_EXTATTR_GET_LINK 1
41838 cat >>confdefs.h <<\_ACEOF
41839 #define HAVE_EXTATTR_SET_LINK 1
41843 cat >>confdefs.h <<\_ACEOF
41844 #define HAVE_EXTATTR_LIST_LINK 1
41853 if test $have_xattr = no; then
41857 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41863 echo $ECHO_N "(cached) $ECHO_C" >&6
41865 cat >conftest.$ac_ext <<_ACEOF
41868 cat confdefs.h >>conftest.$ac_ext
41869 cat >>conftest.$ac_ext <<_ACEOF
41870 /* end confdefs.h. */
41871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41873 #define $ac_func innocuous_$ac_func
41875 /* System header to define __stub macros and hopefully few prototypes,
41876 which can conflict with char $ac_func (); below.
41877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41878 <limits.h> exists even on freestanding compilers. */
41881 # include <limits.h>
41883 # include <assert.h>
41888 /* Override any GCC internal prototype to avoid an error.
41889 Use char because int might match the return type of a GCC
41890 builtin and then its argument prototype would still apply. */
41895 /* The GNU C library defines this for functions which it implements
41896 to always fail with ENOSYS. Some functions are actually named
41897 something starting with __ and the normal name is an alias. */
41898 #if defined __stub_$ac_func || defined __stub___$ac_func
41905 return $ac_func ();
41910 rm -f conftest.$ac_objext conftest$ac_exeext
41911 if { (ac_try="$ac_link"
41912 case "(($ac_try" in
41913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41914 *) ac_try_echo=$ac_try;;
41916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41917 (eval "$ac_link") 2>conftest.er1
41919 grep -v '^ *+' conftest.er1 >conftest.err
41921 cat conftest.err >&5
41922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923 (exit $ac_status); } && {
41924 test -z "$ac_c_werror_flag" ||
41925 test ! -s conftest.err
41926 } && test -s conftest$ac_exeext &&
41927 $as_test_x conftest$ac_exeext; then
41928 eval "$as_ac_var=yes"
41930 echo "$as_me: failed program was:" >&5
41931 sed 's/^/| /' conftest.$ac_ext >&5
41933 eval "$as_ac_var=no"
41936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41937 conftest$ac_exeext conftest.$ac_ext
41939 ac_res=`eval echo '${'$as_ac_var'}'`
41940 { echo "$as_me:$LINENO: result: $ac_res" >&5
41941 echo "${ECHO_T}$ac_res" >&6; }
41942 if test `eval echo '${'$as_ac_var'}'` = yes; then
41943 cat >>confdefs.h <<_ACEOF
41944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41949 cat >>confdefs.h <<\_ACEOF
41950 #define HAVE_EXTATTR_GET_FILE 1
41954 cat >>confdefs.h <<\_ACEOF
41955 #define HAVE_EXTATTR_SET_FILE 1
41959 cat >>confdefs.h <<\_ACEOF
41960 #define HAVE_EXTATTR_LIST_FILE 1
41970 if test $have_xattr = yes; then
41971 have_extattr_string_in_libc=no
41974 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41980 echo $ECHO_N "(cached) $ECHO_C" >&6
41982 cat >conftest.$ac_ext <<_ACEOF
41985 cat confdefs.h >>conftest.$ac_ext
41986 cat >>conftest.$ac_ext <<_ACEOF
41987 /* end confdefs.h. */
41988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41990 #define $ac_func innocuous_$ac_func
41992 /* System header to define __stub macros and hopefully few prototypes,
41993 which can conflict with char $ac_func (); below.
41994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41995 <limits.h> exists even on freestanding compilers. */
41998 # include <limits.h>
42000 # include <assert.h>
42005 /* Override any GCC internal prototype to avoid an error.
42006 Use char because int might match the return type of a GCC
42007 builtin and then its argument prototype would still apply. */
42012 /* The GNU C library defines this for functions which it implements
42013 to always fail with ENOSYS. Some functions are actually named
42014 something starting with __ and the normal name is an alias. */
42015 #if defined __stub_$ac_func || defined __stub___$ac_func
42022 return $ac_func ();
42027 rm -f conftest.$ac_objext conftest$ac_exeext
42028 if { (ac_try="$ac_link"
42029 case "(($ac_try" in
42030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42031 *) ac_try_echo=$ac_try;;
42033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42034 (eval "$ac_link") 2>conftest.er1
42036 grep -v '^ *+' conftest.er1 >conftest.err
42038 cat conftest.err >&5
42039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42040 (exit $ac_status); } && {
42041 test -z "$ac_c_werror_flag" ||
42042 test ! -s conftest.err
42043 } && test -s conftest$ac_exeext &&
42044 $as_test_x conftest$ac_exeext; then
42045 eval "$as_ac_var=yes"
42047 echo "$as_me: failed program was:" >&5
42048 sed 's/^/| /' conftest.$ac_ext >&5
42050 eval "$as_ac_var=no"
42053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42054 conftest$ac_exeext conftest.$ac_ext
42056 ac_res=`eval echo '${'$as_ac_var'}'`
42057 { echo "$as_me:$LINENO: result: $ac_res" >&5
42058 echo "${ECHO_T}$ac_res" >&6; }
42059 if test `eval echo '${'$as_ac_var'}'` = yes; then
42060 cat >>confdefs.h <<_ACEOF
42061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42064 have_extattr_string_in_libc=yes
42066 cat >>confdefs.h <<\_ACEOF
42067 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42071 cat >>confdefs.h <<\_ACEOF
42072 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42081 if test $have_extattr_string_in_libc = no; then
42082 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42083 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42084 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42085 echo $ECHO_N "(cached) $ECHO_C" >&6
42087 ac_check_lib_save_LIBS=$LIBS
42088 LIBS="-lutil $LIBS"
42089 cat >conftest.$ac_ext <<_ACEOF
42092 cat confdefs.h >>conftest.$ac_ext
42093 cat >>conftest.$ac_ext <<_ACEOF
42094 /* end confdefs.h. */
42096 /* Override any GCC internal prototype to avoid an error.
42097 Use char because int might match the return type of a GCC
42098 builtin and then its argument prototype would still apply. */
42102 char extattr_namespace_to_string extattr_string_to_namespace ();
42106 return extattr_namespace_to_string extattr_string_to_namespace ();
42111 rm -f conftest.$ac_objext conftest$ac_exeext
42112 if { (ac_try="$ac_link"
42113 case "(($ac_try" in
42114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42115 *) ac_try_echo=$ac_try;;
42117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42118 (eval "$ac_link") 2>conftest.er1
42120 grep -v '^ *+' conftest.er1 >conftest.err
42122 cat conftest.err >&5
42123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42124 (exit $ac_status); } && {
42125 test -z "$ac_c_werror_flag" ||
42126 test ! -s conftest.err
42127 } && test -s conftest$ac_exeext &&
42128 $as_test_x conftest$ac_exeext; then
42129 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42131 echo "$as_me: failed program was:" >&5
42132 sed 's/^/| /' conftest.$ac_ext >&5
42134 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42138 conftest$ac_exeext conftest.$ac_ext
42139 LIBS=$ac_check_lib_save_LIBS
42141 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42142 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42143 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42146 cat >>confdefs.h <<\_ACEOF
42147 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42151 cat >>confdefs.h <<\_ACEOF
42152 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42155 FDLIBS="-lutil $FDLIBS"
42163 if test $have_xattr = no; then
42164 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42165 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42166 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42167 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42168 echo $ECHO_N "(cached) $ECHO_C" >&6
42170 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42171 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42173 # Is the header compilable?
42174 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42175 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42176 cat >conftest.$ac_ext <<_ACEOF
42179 cat confdefs.h >>conftest.$ac_ext
42180 cat >>conftest.$ac_ext <<_ACEOF
42181 /* end confdefs.h. */
42182 $ac_includes_default
42183 #include <sys/xattr.h>
42185 rm -f conftest.$ac_objext
42186 if { (ac_try="$ac_compile"
42187 case "(($ac_try" in
42188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42189 *) ac_try_echo=$ac_try;;
42191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42192 (eval "$ac_compile") 2>conftest.er1
42194 grep -v '^ *+' conftest.er1 >conftest.err
42196 cat conftest.err >&5
42197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198 (exit $ac_status); } && {
42199 test -z "$ac_c_werror_flag" ||
42200 test ! -s conftest.err
42201 } && test -s conftest.$ac_objext; then
42202 ac_header_compiler=yes
42204 echo "$as_me: failed program was:" >&5
42205 sed 's/^/| /' conftest.$ac_ext >&5
42207 ac_header_compiler=no
42210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42212 echo "${ECHO_T}$ac_header_compiler" >&6; }
42214 # Is the header present?
42215 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42216 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42217 cat >conftest.$ac_ext <<_ACEOF
42220 cat confdefs.h >>conftest.$ac_ext
42221 cat >>conftest.$ac_ext <<_ACEOF
42222 /* end confdefs.h. */
42223 #include <sys/xattr.h>
42225 if { (ac_try="$ac_cpp conftest.$ac_ext"
42226 case "(($ac_try" in
42227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42228 *) ac_try_echo=$ac_try;;
42230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42233 grep -v '^ *+' conftest.er1 >conftest.err
42235 cat conftest.err >&5
42236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42237 (exit $ac_status); } >/dev/null && {
42238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42239 test ! -s conftest.err
42241 ac_header_preproc=yes
42243 echo "$as_me: failed program was:" >&5
42244 sed 's/^/| /' conftest.$ac_ext >&5
42246 ac_header_preproc=no
42249 rm -f conftest.err conftest.$ac_ext
42250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42251 echo "${ECHO_T}$ac_header_preproc" >&6; }
42253 # So? What about this header?
42254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42256 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42257 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42258 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42259 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42260 ac_header_preproc=yes
42263 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42264 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42265 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42266 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42267 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42268 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42269 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42270 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42271 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42272 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42273 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42274 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42278 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42279 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42280 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42281 echo $ECHO_N "(cached) $ECHO_C" >&6
42283 ac_cv_header_sys_xattr_h=$ac_header_preproc
42285 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42286 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42289 if test $ac_cv_header_sys_xattr_h = yes; then
42291 cat >>confdefs.h <<\_ACEOF
42292 #define HAVE_SYS_XATTR_H 1
42301 for ac_func in llistxattr lgetxattr lsetxattr
42303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42307 echo $ECHO_N "(cached) $ECHO_C" >&6
42309 cat >conftest.$ac_ext <<_ACEOF
42312 cat confdefs.h >>conftest.$ac_ext
42313 cat >>conftest.$ac_ext <<_ACEOF
42314 /* end confdefs.h. */
42315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42317 #define $ac_func innocuous_$ac_func
42319 /* System header to define __stub macros and hopefully few prototypes,
42320 which can conflict with char $ac_func (); below.
42321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42322 <limits.h> exists even on freestanding compilers. */
42325 # include <limits.h>
42327 # include <assert.h>
42332 /* Override any GCC internal prototype to avoid an error.
42333 Use char because int might match the return type of a GCC
42334 builtin and then its argument prototype would still apply. */
42339 /* The GNU C library defines this for functions which it implements
42340 to always fail with ENOSYS. Some functions are actually named
42341 something starting with __ and the normal name is an alias. */
42342 #if defined __stub_$ac_func || defined __stub___$ac_func
42349 return $ac_func ();
42354 rm -f conftest.$ac_objext conftest$ac_exeext
42355 if { (ac_try="$ac_link"
42356 case "(($ac_try" in
42357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42358 *) ac_try_echo=$ac_try;;
42360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42361 (eval "$ac_link") 2>conftest.er1
42363 grep -v '^ *+' conftest.er1 >conftest.err
42365 cat conftest.err >&5
42366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367 (exit $ac_status); } && {
42368 test -z "$ac_c_werror_flag" ||
42369 test ! -s conftest.err
42370 } && test -s conftest$ac_exeext &&
42371 $as_test_x conftest$ac_exeext; then
42372 eval "$as_ac_var=yes"
42374 echo "$as_me: failed program was:" >&5
42375 sed 's/^/| /' conftest.$ac_ext >&5
42377 eval "$as_ac_var=no"
42380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42381 conftest$ac_exeext conftest.$ac_ext
42383 ac_res=`eval echo '${'$as_ac_var'}'`
42384 { echo "$as_me:$LINENO: result: $ac_res" >&5
42385 echo "${ECHO_T}$ac_res" >&6; }
42386 if test `eval echo '${'$as_ac_var'}'` = yes; then
42387 cat >>confdefs.h <<_ACEOF
42388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42393 cat >>confdefs.h <<\_ACEOF
42394 #define HAVE_LLISTXATTR 1
42398 cat >>confdefs.h <<\_ACEOF
42399 #define HAVE_LGETXATTR 1
42403 cat >>confdefs.h <<\_ACEOF
42404 #define HAVE_LSETXATTR 1
42413 if test $have_xattr = no; then
42417 for ac_func in listxattr getxattr setxattr
42419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42423 echo $ECHO_N "(cached) $ECHO_C" >&6
42425 cat >conftest.$ac_ext <<_ACEOF
42428 cat confdefs.h >>conftest.$ac_ext
42429 cat >>conftest.$ac_ext <<_ACEOF
42430 /* end confdefs.h. */
42431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42433 #define $ac_func innocuous_$ac_func
42435 /* System header to define __stub macros and hopefully few prototypes,
42436 which can conflict with char $ac_func (); below.
42437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42438 <limits.h> exists even on freestanding compilers. */
42441 # include <limits.h>
42443 # include <assert.h>
42448 /* Override any GCC internal prototype to avoid an error.
42449 Use char because int might match the return type of a GCC
42450 builtin and then its argument prototype would still apply. */
42455 /* The GNU C library defines this for functions which it implements
42456 to always fail with ENOSYS. Some functions are actually named
42457 something starting with __ and the normal name is an alias. */
42458 #if defined __stub_$ac_func || defined __stub___$ac_func
42465 return $ac_func ();
42470 rm -f conftest.$ac_objext conftest$ac_exeext
42471 if { (ac_try="$ac_link"
42472 case "(($ac_try" in
42473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42474 *) ac_try_echo=$ac_try;;
42476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42477 (eval "$ac_link") 2>conftest.er1
42479 grep -v '^ *+' conftest.er1 >conftest.err
42481 cat conftest.err >&5
42482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483 (exit $ac_status); } && {
42484 test -z "$ac_c_werror_flag" ||
42485 test ! -s conftest.err
42486 } && test -s conftest$ac_exeext &&
42487 $as_test_x conftest$ac_exeext; then
42488 eval "$as_ac_var=yes"
42490 echo "$as_me: failed program was:" >&5
42491 sed 's/^/| /' conftest.$ac_ext >&5
42493 eval "$as_ac_var=no"
42496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42497 conftest$ac_exeext conftest.$ac_ext
42499 ac_res=`eval echo '${'$as_ac_var'}'`
42500 { echo "$as_me:$LINENO: result: $ac_res" >&5
42501 echo "${ECHO_T}$ac_res" >&6; }
42502 if test `eval echo '${'$as_ac_var'}'` = yes; then
42503 cat >>confdefs.h <<_ACEOF
42504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42509 cat >>confdefs.h <<\_ACEOF
42510 #define HAVE_LISTXATTR 1
42514 cat >>confdefs.h <<\_ACEOF
42515 #define HAVE_GETXATTR 1
42519 cat >>confdefs.h <<\_ACEOF
42520 #define HAVE_SETXATTR 1
42531 if test $have_xattr = no; then
42532 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42533 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42534 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42535 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42536 echo $ECHO_N "(cached) $ECHO_C" >&6
42538 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42539 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42541 # Is the header compilable?
42542 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42543 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42544 cat >conftest.$ac_ext <<_ACEOF
42547 cat confdefs.h >>conftest.$ac_ext
42548 cat >>conftest.$ac_ext <<_ACEOF
42549 /* end confdefs.h. */
42550 $ac_includes_default
42551 #include <sys/attr.h>
42553 rm -f conftest.$ac_objext
42554 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
42570 ac_header_compiler=yes
42572 echo "$as_me: failed program was:" >&5
42573 sed 's/^/| /' conftest.$ac_ext >&5
42575 ac_header_compiler=no
42578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42580 echo "${ECHO_T}$ac_header_compiler" >&6; }
42582 # Is the header present?
42583 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42584 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42585 cat >conftest.$ac_ext <<_ACEOF
42588 cat confdefs.h >>conftest.$ac_ext
42589 cat >>conftest.$ac_ext <<_ACEOF
42590 /* end confdefs.h. */
42591 #include <sys/attr.h>
42593 if { (ac_try="$ac_cpp conftest.$ac_ext"
42594 case "(($ac_try" in
42595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42596 *) ac_try_echo=$ac_try;;
42598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42601 grep -v '^ *+' conftest.er1 >conftest.err
42603 cat conftest.err >&5
42604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42605 (exit $ac_status); } >/dev/null && {
42606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42607 test ! -s conftest.err
42609 ac_header_preproc=yes
42611 echo "$as_me: failed program was:" >&5
42612 sed 's/^/| /' conftest.$ac_ext >&5
42614 ac_header_preproc=no
42617 rm -f conftest.err conftest.$ac_ext
42618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42619 echo "${ECHO_T}$ac_header_preproc" >&6; }
42621 # So? What about this header?
42622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42624 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42625 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42626 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42627 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42628 ac_header_preproc=yes
42631 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42632 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42633 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42634 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42635 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42636 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42637 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42638 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42639 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42640 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42641 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42642 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42646 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42647 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42648 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42649 echo $ECHO_N "(cached) $ECHO_C" >&6
42651 ac_cv_header_sys_attr_h=$ac_header_preproc
42653 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42654 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42657 if test $ac_cv_header_sys_attr_h = yes; then
42659 cat >>confdefs.h <<\_ACEOF
42660 #define HAVE_SYS_ATTR_H 1
42666 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42667 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42668 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42669 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42670 echo $ECHO_N "(cached) $ECHO_C" >&6
42672 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42673 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42675 # Is the header compilable?
42676 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42677 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42678 cat >conftest.$ac_ext <<_ACEOF
42681 cat confdefs.h >>conftest.$ac_ext
42682 cat >>conftest.$ac_ext <<_ACEOF
42683 /* end confdefs.h. */
42684 $ac_includes_default
42685 #include <sys/nvpair.h>
42687 rm -f conftest.$ac_objext
42688 if { (ac_try="$ac_compile"
42689 case "(($ac_try" in
42690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42691 *) ac_try_echo=$ac_try;;
42693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42694 (eval "$ac_compile") 2>conftest.er1
42696 grep -v '^ *+' conftest.er1 >conftest.err
42698 cat conftest.err >&5
42699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42700 (exit $ac_status); } && {
42701 test -z "$ac_c_werror_flag" ||
42702 test ! -s conftest.err
42703 } && test -s conftest.$ac_objext; then
42704 ac_header_compiler=yes
42706 echo "$as_me: failed program was:" >&5
42707 sed 's/^/| /' conftest.$ac_ext >&5
42709 ac_header_compiler=no
42712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42714 echo "${ECHO_T}$ac_header_compiler" >&6; }
42716 # Is the header present?
42717 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42718 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42719 cat >conftest.$ac_ext <<_ACEOF
42722 cat confdefs.h >>conftest.$ac_ext
42723 cat >>conftest.$ac_ext <<_ACEOF
42724 /* end confdefs.h. */
42725 #include <sys/nvpair.h>
42727 if { (ac_try="$ac_cpp conftest.$ac_ext"
42728 case "(($ac_try" in
42729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42730 *) ac_try_echo=$ac_try;;
42732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42735 grep -v '^ *+' conftest.er1 >conftest.err
42737 cat conftest.err >&5
42738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739 (exit $ac_status); } >/dev/null && {
42740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42741 test ! -s conftest.err
42743 ac_header_preproc=yes
42745 echo "$as_me: failed program was:" >&5
42746 sed 's/^/| /' conftest.$ac_ext >&5
42748 ac_header_preproc=no
42751 rm -f conftest.err conftest.$ac_ext
42752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42753 echo "${ECHO_T}$ac_header_preproc" >&6; }
42755 # So? What about this header?
42756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42758 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42759 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42760 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42761 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42762 ac_header_preproc=yes
42765 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42766 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42767 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42768 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42769 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42770 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42771 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42772 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42773 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42774 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42775 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42776 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42780 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42781 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42782 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42783 echo $ECHO_N "(cached) $ECHO_C" >&6
42785 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42787 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42788 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42791 if test $ac_cv_header_sys_nvpair_h = yes; then
42793 cat >>confdefs.h <<\_ACEOF
42794 #define HAVE_SYS_NVPAIR_H 1
42800 if test "${ac_cv_header_attr_h+set}" = set; then
42801 { echo "$as_me:$LINENO: checking for attr.h" >&5
42802 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42803 if test "${ac_cv_header_attr_h+set}" = set; then
42804 echo $ECHO_N "(cached) $ECHO_C" >&6
42806 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42807 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42809 # Is the header compilable?
42810 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42811 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42812 cat >conftest.$ac_ext <<_ACEOF
42815 cat confdefs.h >>conftest.$ac_ext
42816 cat >>conftest.$ac_ext <<_ACEOF
42817 /* end confdefs.h. */
42818 $ac_includes_default
42821 rm -f conftest.$ac_objext
42822 if { (ac_try="$ac_compile"
42823 case "(($ac_try" in
42824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42825 *) ac_try_echo=$ac_try;;
42827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42828 (eval "$ac_compile") 2>conftest.er1
42830 grep -v '^ *+' conftest.er1 >conftest.err
42832 cat conftest.err >&5
42833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42834 (exit $ac_status); } && {
42835 test -z "$ac_c_werror_flag" ||
42836 test ! -s conftest.err
42837 } && test -s conftest.$ac_objext; then
42838 ac_header_compiler=yes
42840 echo "$as_me: failed program was:" >&5
42841 sed 's/^/| /' conftest.$ac_ext >&5
42843 ac_header_compiler=no
42846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42848 echo "${ECHO_T}$ac_header_compiler" >&6; }
42850 # Is the header present?
42851 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42852 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42853 cat >conftest.$ac_ext <<_ACEOF
42856 cat confdefs.h >>conftest.$ac_ext
42857 cat >>conftest.$ac_ext <<_ACEOF
42858 /* end confdefs.h. */
42861 if { (ac_try="$ac_cpp conftest.$ac_ext"
42862 case "(($ac_try" in
42863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42864 *) ac_try_echo=$ac_try;;
42866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42869 grep -v '^ *+' conftest.er1 >conftest.err
42871 cat conftest.err >&5
42872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42873 (exit $ac_status); } >/dev/null && {
42874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42875 test ! -s conftest.err
42877 ac_header_preproc=yes
42879 echo "$as_me: failed program was:" >&5
42880 sed 's/^/| /' conftest.$ac_ext >&5
42882 ac_header_preproc=no
42885 rm -f conftest.err conftest.$ac_ext
42886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42887 echo "${ECHO_T}$ac_header_preproc" >&6; }
42889 # So? What about this header?
42890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42892 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42893 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42894 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42895 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42896 ac_header_preproc=yes
42899 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42900 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42901 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
42902 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
42903 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42904 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42905 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
42906 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42907 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42908 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42909 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42910 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42914 { echo "$as_me:$LINENO: checking for attr.h" >&5
42915 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42916 if test "${ac_cv_header_attr_h+set}" = set; then
42917 echo $ECHO_N "(cached) $ECHO_C" >&6
42919 ac_cv_header_attr_h=$ac_header_preproc
42921 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42922 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42925 if test $ac_cv_header_attr_h = yes; then
42927 cat >>confdefs.h <<\_ACEOF
42928 #define HAVE_ATTR_H 1
42940 for ac_func in openat fstatat unlinkat fchownat futimesat
42942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42946 echo $ECHO_N "(cached) $ECHO_C" >&6
42948 cat >conftest.$ac_ext <<_ACEOF
42951 cat confdefs.h >>conftest.$ac_ext
42952 cat >>conftest.$ac_ext <<_ACEOF
42953 /* end confdefs.h. */
42954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42956 #define $ac_func innocuous_$ac_func
42958 /* System header to define __stub macros and hopefully few prototypes,
42959 which can conflict with char $ac_func (); below.
42960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42961 <limits.h> exists even on freestanding compilers. */
42964 # include <limits.h>
42966 # include <assert.h>
42971 /* Override any GCC internal prototype to avoid an error.
42972 Use char because int might match the return type of a GCC
42973 builtin and then its argument prototype would still apply. */
42978 /* The GNU C library defines this for functions which it implements
42979 to always fail with ENOSYS. Some functions are actually named
42980 something starting with __ and the normal name is an alias. */
42981 #if defined __stub_$ac_func || defined __stub___$ac_func
42988 return $ac_func ();
42993 rm -f conftest.$ac_objext conftest$ac_exeext
42994 if { (ac_try="$ac_link"
42995 case "(($ac_try" in
42996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42997 *) ac_try_echo=$ac_try;;
42999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43000 (eval "$ac_link") 2>conftest.er1
43002 grep -v '^ *+' conftest.er1 >conftest.err
43004 cat conftest.err >&5
43005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43006 (exit $ac_status); } && {
43007 test -z "$ac_c_werror_flag" ||
43008 test ! -s conftest.err
43009 } && test -s conftest$ac_exeext &&
43010 $as_test_x conftest$ac_exeext; then
43011 eval "$as_ac_var=yes"
43013 echo "$as_me: failed program was:" >&5
43014 sed 's/^/| /' conftest.$ac_ext >&5
43016 eval "$as_ac_var=no"
43019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43020 conftest$ac_exeext conftest.$ac_ext
43022 ac_res=`eval echo '${'$as_ac_var'}'`
43023 { echo "$as_me:$LINENO: result: $ac_res" >&5
43024 echo "${ECHO_T}$ac_res" >&6; }
43025 if test `eval echo '${'$as_ac_var'}'` = yes; then
43026 cat >>confdefs.h <<_ACEOF
43027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43032 cat >>confdefs.h <<\_ACEOF
43033 #define HAVE_OPENAT 1
43037 cat >>confdefs.h <<\_ACEOF
43038 #define HAVE_FSTATAT 1
43042 cat >>confdefs.h <<\_ACEOF
43043 #define HAVE_UNLINKAT 1
43047 cat >>confdefs.h <<\_ACEOF
43048 #define HAVE_FCHOWNAT 1
43052 cat >>confdefs.h <<\_ACEOF
43053 #define HAVE_FUTIMESAT 1
43062 if test $have_xattr = yes; then
43063 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43064 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43065 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43066 echo $ECHO_N "(cached) $ECHO_C" >&6
43068 ac_check_lib_save_LIBS=$LIBS
43069 LIBS="-lnvpair $LIBS"
43070 cat >conftest.$ac_ext <<_ACEOF
43073 cat confdefs.h >>conftest.$ac_ext
43074 cat >>conftest.$ac_ext <<_ACEOF
43075 /* end confdefs.h. */
43077 /* Override any GCC internal prototype to avoid an error.
43078 Use char because int might match the return type of a GCC
43079 builtin and then its argument prototype would still apply. */
43083 char nvlist_next_nvpair ();
43087 return nvlist_next_nvpair ();
43092 rm -f conftest.$ac_objext conftest$ac_exeext
43093 if { (ac_try="$ac_link"
43094 case "(($ac_try" in
43095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43096 *) ac_try_echo=$ac_try;;
43098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43099 (eval "$ac_link") 2>conftest.er1
43101 grep -v '^ *+' conftest.er1 >conftest.err
43103 cat conftest.err >&5
43104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105 (exit $ac_status); } && {
43106 test -z "$ac_c_werror_flag" ||
43107 test ! -s conftest.err
43108 } && test -s conftest$ac_exeext &&
43109 $as_test_x conftest$ac_exeext; then
43110 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43112 echo "$as_me: failed program was:" >&5
43113 sed 's/^/| /' conftest.$ac_ext >&5
43115 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43119 conftest$ac_exeext conftest.$ac_ext
43120 LIBS=$ac_check_lib_save_LIBS
43122 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43123 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43124 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43127 cat >>confdefs.h <<\_ACEOF
43128 #define HAVE_NVLIST_NEXT_NVPAIR 1
43131 FDLIBS="-lnvpair $FDLIBS"
43139 if test x$support_xattr = xyes -a $have_xattr != yes; then
43140 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43141 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43142 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43143 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43144 { (exit 1); exit 1; }; }
43146 if test $have_xattr = yes; then
43148 cat >>confdefs.h <<\_ACEOF
43149 #define HAVE_XATTR 1
43157 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43158 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43159 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43160 echo $ECHO_N "(cached) $ECHO_C" >&6
43162 ac_check_lib_save_LIBS=$LIBS
43163 LIBS="-lpthread $LIBS"
43164 cat >conftest.$ac_ext <<_ACEOF
43167 cat confdefs.h >>conftest.$ac_ext
43168 cat >>conftest.$ac_ext <<_ACEOF
43169 /* end confdefs.h. */
43171 /* Override any GCC internal prototype to avoid an error.
43172 Use char because int might match the return type of a GCC
43173 builtin and then its argument prototype would still apply. */
43177 char pthread_create ();
43181 return pthread_create ();
43186 rm -f conftest.$ac_objext conftest$ac_exeext
43187 if { (ac_try="$ac_link"
43188 case "(($ac_try" in
43189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43190 *) ac_try_echo=$ac_try;;
43192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43193 (eval "$ac_link") 2>conftest.er1
43195 grep -v '^ *+' conftest.er1 >conftest.err
43197 cat conftest.err >&5
43198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43199 (exit $ac_status); } && {
43200 test -z "$ac_c_werror_flag" ||
43201 test ! -s conftest.err
43202 } && test -s conftest$ac_exeext &&
43203 $as_test_x conftest$ac_exeext; then
43204 ac_cv_lib_pthread_pthread_create=yes
43206 echo "$as_me: failed program was:" >&5
43207 sed 's/^/| /' conftest.$ac_ext >&5
43209 ac_cv_lib_pthread_pthread_create=no
43212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43213 conftest$ac_exeext conftest.$ac_ext
43214 LIBS=$ac_check_lib_save_LIBS
43216 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43217 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43218 if test $ac_cv_lib_pthread_pthread_create = yes; then
43219 PTHREAD_LIB="-lpthread"
43222 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43223 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43224 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43225 echo $ECHO_N "(cached) $ECHO_C" >&6
43227 ac_check_lib_save_LIBS=$LIBS
43228 LIBS="-lpthreads $LIBS"
43229 cat >conftest.$ac_ext <<_ACEOF
43232 cat confdefs.h >>conftest.$ac_ext
43233 cat >>conftest.$ac_ext <<_ACEOF
43234 /* end confdefs.h. */
43236 /* Override any GCC internal prototype to avoid an error.
43237 Use char because int might match the return type of a GCC
43238 builtin and then its argument prototype would still apply. */
43242 char pthread_create ();
43246 return pthread_create ();
43251 rm -f conftest.$ac_objext conftest$ac_exeext
43252 if { (ac_try="$ac_link"
43253 case "(($ac_try" in
43254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43255 *) ac_try_echo=$ac_try;;
43257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43258 (eval "$ac_link") 2>conftest.er1
43260 grep -v '^ *+' conftest.er1 >conftest.err
43262 cat conftest.err >&5
43263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264 (exit $ac_status); } && {
43265 test -z "$ac_c_werror_flag" ||
43266 test ! -s conftest.err
43267 } && test -s conftest$ac_exeext &&
43268 $as_test_x conftest$ac_exeext; then
43269 ac_cv_lib_pthreads_pthread_create=yes
43271 echo "$as_me: failed program was:" >&5
43272 sed 's/^/| /' conftest.$ac_ext >&5
43274 ac_cv_lib_pthreads_pthread_create=no
43277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43278 conftest$ac_exeext conftest.$ac_ext
43279 LIBS=$ac_check_lib_save_LIBS
43281 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43282 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43283 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43284 PTHREAD_LIB="-lpthreads"
43287 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43288 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43289 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43290 echo $ECHO_N "(cached) $ECHO_C" >&6
43292 ac_check_lib_save_LIBS=$LIBS
43294 cat >conftest.$ac_ext <<_ACEOF
43297 cat confdefs.h >>conftest.$ac_ext
43298 cat >>conftest.$ac_ext <<_ACEOF
43299 /* end confdefs.h. */
43301 /* Override any GCC internal prototype to avoid an error.
43302 Use char because int might match the return type of a GCC
43303 builtin and then its argument prototype would still apply. */
43307 char pthread_create ();
43311 return pthread_create ();
43316 rm -f conftest.$ac_objext conftest$ac_exeext
43317 if { (ac_try="$ac_link"
43318 case "(($ac_try" in
43319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43320 *) ac_try_echo=$ac_try;;
43322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43323 (eval "$ac_link") 2>conftest.er1
43325 grep -v '^ *+' conftest.er1 >conftest.err
43327 cat conftest.err >&5
43328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43329 (exit $ac_status); } && {
43330 test -z "$ac_c_werror_flag" ||
43331 test ! -s conftest.err
43332 } && test -s conftest$ac_exeext &&
43333 $as_test_x conftest$ac_exeext; then
43334 ac_cv_lib_c_r_pthread_create=yes
43336 echo "$as_me: failed program was:" >&5
43337 sed 's/^/| /' conftest.$ac_ext >&5
43339 ac_cv_lib_c_r_pthread_create=no
43342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43343 conftest$ac_exeext conftest.$ac_ext
43344 LIBS=$ac_check_lib_save_LIBS
43346 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43347 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43348 if test $ac_cv_lib_c_r_pthread_create = yes; then
43349 PTHREAD_LIB="-lc_r"
43352 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43353 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43354 if test "${ac_cv_func_pthread_create+set}" = set; then
43355 echo $ECHO_N "(cached) $ECHO_C" >&6
43357 cat >conftest.$ac_ext <<_ACEOF
43360 cat confdefs.h >>conftest.$ac_ext
43361 cat >>conftest.$ac_ext <<_ACEOF
43362 /* end confdefs.h. */
43363 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43365 #define pthread_create innocuous_pthread_create
43367 /* System header to define __stub macros and hopefully few prototypes,
43368 which can conflict with char pthread_create (); below.
43369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43370 <limits.h> exists even on freestanding compilers. */
43373 # include <limits.h>
43375 # include <assert.h>
43378 #undef pthread_create
43380 /* Override any GCC internal prototype to avoid an error.
43381 Use char because int might match the return type of a GCC
43382 builtin and then its argument prototype would still apply. */
43386 char pthread_create ();
43387 /* The GNU C library defines this for functions which it implements
43388 to always fail with ENOSYS. Some functions are actually named
43389 something starting with __ and the normal name is an alias. */
43390 #if defined __stub_pthread_create || defined __stub___pthread_create
43397 return pthread_create ();
43402 rm -f conftest.$ac_objext conftest$ac_exeext
43403 if { (ac_try="$ac_link"
43404 case "(($ac_try" in
43405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43406 *) ac_try_echo=$ac_try;;
43408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43409 (eval "$ac_link") 2>conftest.er1
43411 grep -v '^ *+' conftest.er1 >conftest.err
43413 cat conftest.err >&5
43414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43415 (exit $ac_status); } && {
43416 test -z "$ac_c_werror_flag" ||
43417 test ! -s conftest.err
43418 } && test -s conftest$ac_exeext &&
43419 $as_test_x conftest$ac_exeext; then
43420 ac_cv_func_pthread_create=yes
43422 echo "$as_me: failed program was:" >&5
43423 sed 's/^/| /' conftest.$ac_ext >&5
43425 ac_cv_func_pthread_create=no
43428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43429 conftest$ac_exeext conftest.$ac_ext
43431 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43432 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43449 for ac_header in sys/prctl.h sys/capability.h
43451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43456 echo $ECHO_N "(cached) $ECHO_C" >&6
43458 ac_res=`eval echo '${'$as_ac_Header'}'`
43459 { echo "$as_me:$LINENO: result: $ac_res" >&5
43460 echo "${ECHO_T}$ac_res" >&6; }
43462 # Is the header compilable?
43463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43465 cat >conftest.$ac_ext <<_ACEOF
43468 cat confdefs.h >>conftest.$ac_ext
43469 cat >>conftest.$ac_ext <<_ACEOF
43470 /* end confdefs.h. */
43471 $ac_includes_default
43472 #include <$ac_header>
43474 rm -f conftest.$ac_objext
43475 if { (ac_try="$ac_compile"
43476 case "(($ac_try" in
43477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43478 *) ac_try_echo=$ac_try;;
43480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43481 (eval "$ac_compile") 2>conftest.er1
43483 grep -v '^ *+' conftest.er1 >conftest.err
43485 cat conftest.err >&5
43486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43487 (exit $ac_status); } && {
43488 test -z "$ac_c_werror_flag" ||
43489 test ! -s conftest.err
43490 } && test -s conftest.$ac_objext; then
43491 ac_header_compiler=yes
43493 echo "$as_me: failed program was:" >&5
43494 sed 's/^/| /' conftest.$ac_ext >&5
43496 ac_header_compiler=no
43499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43501 echo "${ECHO_T}$ac_header_compiler" >&6; }
43503 # Is the header present?
43504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43506 cat >conftest.$ac_ext <<_ACEOF
43509 cat confdefs.h >>conftest.$ac_ext
43510 cat >>conftest.$ac_ext <<_ACEOF
43511 /* end confdefs.h. */
43512 #include <$ac_header>
43514 if { (ac_try="$ac_cpp conftest.$ac_ext"
43515 case "(($ac_try" in
43516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43517 *) ac_try_echo=$ac_try;;
43519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43522 grep -v '^ *+' conftest.er1 >conftest.err
43524 cat conftest.err >&5
43525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526 (exit $ac_status); } >/dev/null && {
43527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43528 test ! -s conftest.err
43530 ac_header_preproc=yes
43532 echo "$as_me: failed program was:" >&5
43533 sed 's/^/| /' conftest.$ac_ext >&5
43535 ac_header_preproc=no
43538 rm -f conftest.err conftest.$ac_ext
43539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43540 echo "${ECHO_T}$ac_header_preproc" >&6; }
43542 # So? What about this header?
43543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43549 ac_header_preproc=yes
43552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43570 echo $ECHO_N "(cached) $ECHO_C" >&6
43572 eval "$as_ac_Header=\$ac_header_preproc"
43574 ac_res=`eval echo '${'$as_ac_Header'}'`
43575 { echo "$as_me:$LINENO: result: $ac_res" >&5
43576 echo "${ECHO_T}$ac_res" >&6; }
43579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43580 cat >>confdefs.h <<_ACEOF
43581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43590 for ac_func in prctl setreuid
43592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43596 echo $ECHO_N "(cached) $ECHO_C" >&6
43598 cat >conftest.$ac_ext <<_ACEOF
43601 cat confdefs.h >>conftest.$ac_ext
43602 cat >>conftest.$ac_ext <<_ACEOF
43603 /* end confdefs.h. */
43604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43606 #define $ac_func innocuous_$ac_func
43608 /* System header to define __stub macros and hopefully few prototypes,
43609 which can conflict with char $ac_func (); below.
43610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43611 <limits.h> exists even on freestanding compilers. */
43614 # include <limits.h>
43616 # include <assert.h>
43621 /* Override any GCC internal prototype to avoid an error.
43622 Use char because int might match the return type of a GCC
43623 builtin and then its argument prototype would still apply. */
43628 /* The GNU C library defines this for functions which it implements
43629 to always fail with ENOSYS. Some functions are actually named
43630 something starting with __ and the normal name is an alias. */
43631 #if defined __stub_$ac_func || defined __stub___$ac_func
43638 return $ac_func ();
43643 rm -f conftest.$ac_objext conftest$ac_exeext
43644 if { (ac_try="$ac_link"
43645 case "(($ac_try" in
43646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43647 *) ac_try_echo=$ac_try;;
43649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43650 (eval "$ac_link") 2>conftest.er1
43652 grep -v '^ *+' conftest.er1 >conftest.err
43654 cat conftest.err >&5
43655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43656 (exit $ac_status); } && {
43657 test -z "$ac_c_werror_flag" ||
43658 test ! -s conftest.err
43659 } && test -s conftest$ac_exeext &&
43660 $as_test_x conftest$ac_exeext; then
43661 eval "$as_ac_var=yes"
43663 echo "$as_me: failed program was:" >&5
43664 sed 's/^/| /' conftest.$ac_ext >&5
43666 eval "$as_ac_var=no"
43669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43670 conftest$ac_exeext conftest.$ac_ext
43672 ac_res=`eval echo '${'$as_ac_var'}'`
43673 { echo "$as_me:$LINENO: result: $ac_res" >&5
43674 echo "${ECHO_T}$ac_res" >&6; }
43675 if test `eval echo '${'$as_ac_var'}'` = yes; then
43676 cat >>confdefs.h <<_ACEOF
43677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43683 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43684 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43685 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43686 echo $ECHO_N "(cached) $ECHO_C" >&6
43688 ac_check_lib_save_LIBS=$LIBS
43690 cat >conftest.$ac_ext <<_ACEOF
43693 cat confdefs.h >>conftest.$ac_ext
43694 cat >>conftest.$ac_ext <<_ACEOF
43695 /* end confdefs.h. */
43697 /* Override any GCC internal prototype to avoid an error.
43698 Use char because int might match the return type of a GCC
43699 builtin and then its argument prototype would still apply. */
43703 char cap_set_proc ();
43707 return cap_set_proc ();
43712 rm -f conftest.$ac_objext conftest$ac_exeext
43713 if { (ac_try="$ac_link"
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_link") 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); } && {
43726 test -z "$ac_c_werror_flag" ||
43727 test ! -s conftest.err
43728 } && test -s conftest$ac_exeext &&
43729 $as_test_x conftest$ac_exeext; then
43730 ac_cv_lib_cap_cap_set_proc=yes
43732 echo "$as_me: failed program was:" >&5
43733 sed 's/^/| /' conftest.$ac_ext >&5
43735 ac_cv_lib_cap_cap_set_proc=no
43738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43739 conftest$ac_exeext conftest.$ac_ext
43740 LIBS=$ac_check_lib_save_LIBS
43742 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43743 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43744 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43750 if test x$CAP_LIBS = x-lcap; then
43752 cat >>confdefs.h <<\_ACEOF
43753 #define HAVE_LIBCAP 1
43760 cat >>confdefs.h <<\_ACEOF
43765 CFLAGS=${CFLAGS--O}
43767 if test x$have_gcc = xyes ; then
43768 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43769 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43771 LDFLAGS=${LDFLAGS--O}
43772 DB_LIBS="${SQL_LFLAGS}"
43773 CPPFLAGS="$CPPFLAGS"
43800 PFILES="platforms/Makefile"
43805 hostname=`uname -n | cut -d '.' -f 1`
43806 if test x${hostname} = x ; then
43807 hostname="localhost"
43809 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43810 if test ! $? = 0; then
43811 hostname="localhost"
43814 case "$DISTNAME" in
43817 PSCMD="ps -e -o pid,comm"
43818 PFILES="${PFILES} \
43819 platforms/aix/Makefile"
43820 TAPEDRIVE="/dev/rmt0.1"
43824 PTHREAD_LIB="-lpthread -lexc"
43825 if test "${CC}" = "gcc" ; then
43832 TAPEDRIVE="/dev/nrmt0"
43835 DISTVER=`uname -a |awk '{print $3}'`
43836 TAPEDRIVE="/dev/nrmt0"
43837 PTHREAD_LIB="-pthread"
43838 CFLAGS="${CFLAGS} -pthread"
43839 PSCMD="ps -ax -o pid,command"
43842 PFILES="${PFILES} \
43843 platforms/bsdi/Makefile \
43844 platforms/bsdi/bacula-fd \
43845 platforms/bsdi/bacula-sd \
43846 platforms/bsdi/bacula-dir"
43847 largefile_support="yes"
43850 DISTVER=`uname -a |awk '{print $3}'`
43851 TAPEDRIVE="/dev/nrst0"
43853 WCFLAGS="-mwindows"
43854 WLDFLAGS="-mwindows"
43858 TAPEDRIVE="/dev/nst0"
43859 PSCMD="ps -e -o pid,command"
43861 PFILES="${PFILES} \
43862 platforms/darwin/Makefile"
43866 TAPEDRIVE="/dev/nst0"
43867 PSCMD="ps -e -o pid,command"
43869 PFILES="${PFILES} \
43870 platforms/osx/Makefile"
43873 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43876 DISTVER=`cat /etc/debian_version`
43877 if test -f /etc/lsb-release ; then
43879 if test "x$DISTRIB_ID" != "x" ; then
43880 DISTNAME=$DISTRIB_ID
43882 if test "x$DISTRIB_RELEASE" != "x" ; then
43883 DISTVER=$DISTRIB_RELEASE
43886 if test "$DISTNAME" = "Ubuntu" ; then
43889 TAPEDRIVE="/dev/nst0"
43890 PSCMD="ps -e -o pid,command"
43891 if test "$DISTNAME" = "ubuntu" ; then
43892 PFILES="${PFILES} \
43893 platforms/ubuntu/Makefile \
43894 platforms/ubuntu/bacula-fd \
43895 platforms/ubuntu/bacula-sd \
43896 platforms/ubuntu/bacula-dir"
43898 PFILES="${PFILES} \
43899 platforms/debian/Makefile \
43900 platforms/debian/bacula-fd \
43901 platforms/debian/bacula-sd \
43902 platforms/debian/bacula-dir"
43906 DISTVER=`uname -a |awk '{print $3}'`
43907 VER=`echo $DISTVER | cut -c 1`
43908 if test x$VER = x4 ; then
43909 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43910 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43914 TAPEDRIVE="/dev/nrsa0"
43915 PSCMD="ps -ax -o pid,command"
43916 PFILES="${PFILES} \
43917 platforms/freebsd/Makefile \
43918 platforms/freebsd/bacula-fd \
43919 platforms/freebsd/bacula-sd \
43920 platforms/freebsd/bacula-dir"
43921 largefile_support="yes"
43924 PSCMD="UNIX95=1; ps -e -o pid,comm"
43925 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43927 TAPEDRIVE="/dev/rmt/0hnb"
43928 PTHREAD_LIB="-lpthread"
43929 cat >>confdefs.h <<\_ACEOF
43930 #define _INCLUDE_LONGLONG 1
43936 TAPEDRIVE="/dev/rmt/0cbn"
43937 PSCMD="ps -e -o pid,comm"
43938 PFILES="${PFILES} \
43939 platforms/irix/Makefile \
43940 platforms/irix/bacula-fd \
43941 platforms/irix/bacula-sd \
43942 platforms/irix/bacula-dir"
43945 DISTVER=`uname -a |awk '{print $3}'`
43948 TAPEDRIVE="/dev/nrst0"
43949 PSCMD="ps -ax -o pid,command"
43950 PTHREAD_LIB="-pthread"
43951 CFLAGS="${CFLAGS} -pthread"
43954 DISTVER=`uname -a |awk '{print $3}'`
43957 TAPEDRIVE="/dev/nrst0"
43958 PSCMD="ps -ax -o pid,command"
43959 PTHREAD_LIB="-pthread"
43960 CFLAGS="${CFLAGS} -pthread"
43961 PFILES="${PFILES} \
43962 platforms/openbsd/Makefile \
43963 platforms/openbsd/bacula-fd \
43964 platforms/openbsd/bacula-sd \
43965 platforms/openbsd/bacula-dir"
43968 if test -f /etc/whitebox-release ; then
43969 f=/etc/whitebox-release
43971 f=/etc/redhat-release
43973 if test `cat $f | grep release |\
43974 cut -f 3 -d ' '`x = "Enterprise"x ; then
43975 DISTVER="Enterprise "`cat $f | grep release |\
43978 DISTVER=`cat /etc/redhat-release | grep release |\
43981 TAPEDRIVE="/dev/nst0"
43982 PSCMD="ps -e -o pid,command"
43983 PFILES="${PFILES} \
43984 platforms/redhat/Makefile \
43985 platforms/redhat/bacula-fd \
43986 platforms/redhat/bacula-sd \
43987 platforms/redhat/bacula-dir
43991 DISTVER=`cat /etc/mandrake-release | grep release |\
43993 TAPEDRIVE="/dev/nst0"
43994 PSCMD="ps -e -o pid,command"
43995 PFILES="${PFILES} \
43996 platforms/mandrake/Makefile \
43997 platforms/mandrake/bacula-fd \
43998 platforms/mandrake/bacula-sd \
43999 platforms/mandrake/bacula-dir \
44000 platforms/mandrake/bacula.spec \
44004 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44005 TAPEDRIVE="/dev/nst0"
44006 PSCMD="ps -e -o pid,command"
44007 PFILES="${PFILES} \
44008 platforms/gentoo/Makefile \
44009 platforms/gentoo/bacula-init \
44010 platforms/gentoo/bacula-fd \
44011 platforms/gentoo/bacula-sd \
44012 platforms/gentoo/bacula-dir"
44015 DISTVER=`cat /etc/slackware-version`
44016 TAPEDRIVE="/dev/nst0"
44017 PSCMD="ps -e -o pid,command"
44018 PFILES="${PFILES} \
44019 platforms/slackware/Makefile \
44020 platforms/slackware/rc.bacula-fd \
44021 platforms/slackware/rc.bacula-sd \
44022 platforms/slackware/rc.bacula-dir\
44023 platforms/slackware/functions.bacula"
44027 TAPEDRIVE="/dev/rmt/0cbn"
44028 PSCMD="ps -e -o pid,comm"
44029 PFILES="${PFILES} \
44030 platforms/solaris/Makefile \
44031 platforms/solaris/bacula-fd \
44032 platforms/solaris/bacula-sd \
44033 platforms/solaris/bacula-dir"
44034 if test x$DISTVER = x5.6 ; then
44035 cat >>confdefs.h <<\_ACEOF
44036 #define HAVE_OLD_SOCKOPT 1
44040 LIBS="$LIBS -lresolv"
44043 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44045 TAPEDRIVE="/dev/nst0"
44046 PSCMD="ps -e -o pid,command"
44047 PFILES="${PFILES} \
44048 platforms/suse/Makefile \
44049 platforms/suse/bacula-fd \
44050 platforms/suse/bacula-sd \
44051 platforms/suse/bacula-dir \
44052 platforms/suse/bacula \
44053 platforms/suse/bacula.spec"
44058 TAPEDRIVE="/dev/nst0"
44059 PSCMD="ps -e -o pid,command"
44060 PFILES="${PFILES} \
44061 platforms/suse/Makefile \
44062 platforms/suse/bacula-fd \
44063 platforms/suse/bacula-sd \
44064 platforms/suse/bacula-dir"
44068 TAPEDRIVE="/dev/nst0"
44071 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44077 LIBS="$PTHREAD_LIB $LIBS"
44079 cat >>confdefs.h <<_ACEOF
44083 cat >>confdefs.h <<_ACEOF
44094 MCOMMON=./autoconf/Make.common
44097 if test "x${subsysdir}" = "x${sbindir}" ; then
44100 echo "You have set both --sbindir and --with-subsys-dir"
44101 echo " equal to: ${subsysdir} "
44102 echo "This is not permitted. Please reconfigure."
44104 echo "Aborting configuration ..."
44110 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 scripts/make_catalog_backup.pl src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44112 ac_config_commands="$ac_config_commands default"
44114 cat >confcache <<\_ACEOF
44115 # This file is a shell script that caches the results of configure
44116 # tests run on this system so they can be shared between configure
44117 # scripts and configure runs, see configure's option --config-cache.
44118 # It is not useful on other systems. If it contains results you don't
44119 # want to keep, you may remove or edit it.
44121 # config.status only pays attention to the cache file if you give it
44122 # the --recheck option to rerun configure.
44124 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44126 # following values.
44130 # The following way of writing the cache mishandles newlines in values,
44131 # but we know of no workaround that is simple, portable, and efficient.
44132 # So, we kill variables containing newlines.
44133 # Ultrix sh set writes to stderr and can't be redirected directly,
44134 # and sets the high bit in the cache file unless we assign to the vars.
44136 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44137 eval ac_val=\$$ac_var
44141 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44142 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44145 _ | IFS | as_nl) ;; #(
44146 *) $as_unset $ac_var ;;
44152 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44153 *${as_nl}ac_space=\ *)
44154 # `set' does not quote correctly, so add quotes (double-quote
44155 # substitution turns \\\\ into \\, and sed turns \\ into \).
44158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44161 # `set' quotes correctly as required by POSIX, so do not add quotes.
44162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44175 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44176 if test -w "$cache_file"; then
44177 test "x$cache_file" != "x/dev/null" &&
44178 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44179 echo "$as_me: updating cache $cache_file" >&6;}
44180 cat confcache >$cache_file
44182 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44183 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44189 # Let make expand exec_prefix.
44190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44192 DEFS=-DHAVE_CONFIG_H
44196 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44197 # 1. Remove the extension, and $U if already installed.
44198 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44199 ac_i=`echo "$ac_i" | sed "$ac_script"`
44200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44201 # will be set to the directory where LIBOBJS objects are built.
44202 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44203 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44205 LIBOBJS=$ac_libobjs
44207 LTLIBOBJS=$ac_ltlibobjs
44211 : ${CONFIG_STATUS=./config.status}
44212 ac_clean_files_save=$ac_clean_files
44213 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44214 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44215 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44216 cat >$CONFIG_STATUS <<_ACEOF
44218 # Generated by $as_me.
44219 # Run this file to recreate the current configuration.
44220 # Compiler output produced by configure, useful for debugging
44221 # configure, is in config.log if it exists.
44224 ac_cs_recheck=false
44226 SHELL=\${CONFIG_SHELL-$SHELL}
44229 cat >>$CONFIG_STATUS <<\_ACEOF
44230 ## --------------------- ##
44231 ## M4sh Initialization. ##
44232 ## --------------------- ##
44234 # Be more Bourne compatible
44235 DUALCASE=1; export DUALCASE # for MKS sh
44236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44239 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44240 # is contrary to our usage. Disable this feature.
44241 alias -g '${1+"$@"}'='"$@"'
44242 setopt NO_GLOB_SUBST
44244 case `(set -o) 2>/dev/null` in
44245 *posix*) set -o posix ;;
44254 # Avoid depending upon Character Ranges.
44255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44258 as_cr_digits='0123456789'
44259 as_cr_alnum=$as_cr_Letters$as_cr_digits
44261 # The user is always right.
44262 if test "${PATH_SEPARATOR+set}" != set; then
44263 echo "#! /bin/sh" >conf$$.sh
44264 echo "exit 0" >>conf$$.sh
44266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44274 # Support unset when possible.
44275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44283 # We need space, tab and new line, in precisely that order. Quoting is
44284 # there to prevent editors from complaining about space-tab.
44285 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44286 # splitting by setting IFS to empty value.)
44291 # Find who we are. Look in the path if we contain no directory separator.
44293 *[\\/]* ) as_myself=$0 ;;
44294 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44295 for as_dir in $PATH
44298 test -z "$as_dir" && as_dir=.
44299 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44305 # We did not find ourselves, most probably we were run as `sh COMMAND'
44306 # in which case we are not to be found in the path.
44307 if test "x$as_myself" = x; then
44310 if test ! -f "$as_myself"; then
44311 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44312 { (exit 1); exit 1; }
44315 # Work around bugs in pre-3.0 UWIN ksh.
44316 for as_var in ENV MAIL MAILPATH
44317 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44325 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44326 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44327 LC_TELEPHONE LC_TIME
44329 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44330 eval $as_var=C; export $as_var
44332 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44336 # Required to use basename.
44337 if expr a : '\(a\)' >/dev/null 2>&1 &&
44338 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44344 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44345 as_basename=basename
44351 # Name of the executable.
44352 as_me=`$as_basename -- "$0" ||
44353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44354 X"$0" : 'X\(//\)$' \| \
44355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44357 sed '/^.*\/\([^/][^/]*\)\/*$/{
44376 as_lineno_1=$LINENO
44377 as_lineno_2=$LINENO
44378 test "x$as_lineno_1" != "x$as_lineno_2" &&
44379 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44382 # uniformly replaced by the line number. The first 'sed' inserts a
44383 # line-number line after each line using $LINENO; the second 'sed'
44384 # does the real work. The second script uses 'N' to pair each
44385 # line-number line with the line containing $LINENO, and appends
44386 # trailing '-' during substitution so that $LINENO is not a special
44387 # case at line end.
44388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44389 # scripts with optimization help from Paolo Bonzini. Blame Lee
44390 # E. McMahon (1931-1989) for sed's syntax. :-)
44402 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44405 ' >$as_me.lineno &&
44406 chmod +x "$as_me.lineno" ||
44407 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44408 { (exit 1); exit 1; }; }
44410 # Don't try to exec as it changes $[0], causing all sort of problems
44411 # (the dirname of $[0] is not the place where we might find the
44412 # original and so on. Autoconf is especially sensitive to this).
44413 . "./$as_me.lineno"
44414 # Exit status is that of the last command.
44419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44425 ECHO_C= ECHO_N= ECHO_T=
44426 case `echo -n x` in
44428 case `echo 'x\c'` in
44429 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44436 if expr a : '\(a\)' >/dev/null 2>&1 &&
44437 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44443 rm -f conf$$ conf$$.exe conf$$.file
44444 if test -d conf$$.dir; then
44445 rm -f conf$$.dir/conf$$.file
44451 if ln -s conf$$.file conf$$ 2>/dev/null; then
44453 # ... but there are two gotchas:
44454 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44455 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44456 # In both cases, we have to default to `cp -p'.
44457 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44459 elif ln conf$$.file conf$$ 2>/dev/null; then
44464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44465 rmdir conf$$.dir 2>/dev/null
44467 if mkdir -p . 2>/dev/null; then
44470 test -d ./-p && rmdir ./-p
44474 if test -x / >/dev/null 2>&1; then
44475 as_test_x='test -x'
44477 if ls -dL / >/dev/null 2>&1; then
44484 if test -d "$1"; then
44490 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44491 ???[sx]*):;;*)false;;esac;fi
44495 as_executable_p=$as_test_x
44497 # Sed expression to map a string onto a valid CPP name.
44498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44500 # Sed expression to map a string onto a valid variable name.
44501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44506 # Save the log message, to keep $[0] and so on meaningful, and to
44507 # report actual input values of CONFIG_FILES etc. instead of their
44508 # values after options handling.
44510 This file was extended by $as_me, which was
44511 generated by GNU Autoconf 2.61. Invocation command line was
44513 CONFIG_FILES = $CONFIG_FILES
44514 CONFIG_HEADERS = $CONFIG_HEADERS
44515 CONFIG_LINKS = $CONFIG_LINKS
44516 CONFIG_COMMANDS = $CONFIG_COMMANDS
44519 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44524 cat >>$CONFIG_STATUS <<_ACEOF
44525 # Files that config.status was made for.
44526 config_files="$ac_config_files"
44527 config_headers="$ac_config_headers"
44528 config_commands="$ac_config_commands"
44532 cat >>$CONFIG_STATUS <<\_ACEOF
44534 \`$as_me' instantiates files from templates according to the
44535 current configuration.
44537 Usage: $0 [OPTIONS] [FILE]...
44539 -h, --help print this help, then exit
44540 -V, --version print version number and configuration settings, then exit
44541 -q, --quiet do not print progress messages
44542 -d, --debug don't remove temporary files
44543 --recheck update $as_me by reconfiguring in the same conditions
44544 --file=FILE[:TEMPLATE]
44545 instantiate the configuration file FILE
44546 --header=FILE[:TEMPLATE]
44547 instantiate the configuration header FILE
44549 Configuration files:
44552 Configuration headers:
44555 Configuration commands:
44558 Report bugs to <bug-autoconf@gnu.org>."
44561 cat >>$CONFIG_STATUS <<_ACEOF
44564 configured by $0, generated by GNU Autoconf 2.61,
44565 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44567 Copyright (C) 2006 Free Software Foundation, Inc.
44568 This config.status script is free software; the Free Software Foundation
44569 gives unlimited permission to copy, distribute and modify it."
44576 cat >>$CONFIG_STATUS <<\_ACEOF
44577 # If no file are specified by the user, then we need to provide default
44578 # value. By we need to know if files were specified by the user.
44584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44596 # Handling of the options.
44597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44600 echo "$ac_cs_version"; exit ;;
44601 --debug | --debu | --deb | --de | --d | -d )
44603 --file | --fil | --fi | --f )
44605 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44606 ac_need_defaults=false;;
44607 --header | --heade | --head | --hea )
44609 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44610 ac_need_defaults=false;;
44612 # Conflict between --help and --header
44613 { echo "$as_me: error: ambiguous option: $1
44614 Try \`$0 --help' for more information." >&2
44615 { (exit 1); exit 1; }; };;
44616 --help | --hel | -h )
44617 echo "$ac_cs_usage"; exit ;;
44618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44619 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44622 # This is an error.
44623 -*) { echo "$as_me: error: unrecognized option: $1
44624 Try \`$0 --help' for more information." >&2
44625 { (exit 1); exit 1; }; } ;;
44627 *) ac_config_targets="$ac_config_targets $1"
44628 ac_need_defaults=false ;;
44634 ac_configure_extra_args=
44636 if $ac_cs_silent; then
44638 ac_configure_extra_args="$ac_configure_extra_args --silent"
44642 cat >>$CONFIG_STATUS <<_ACEOF
44643 if \$ac_cs_recheck; then
44644 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44645 CONFIG_SHELL=$SHELL
44646 export CONFIG_SHELL
44647 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44651 cat >>$CONFIG_STATUS <<\_ACEOF
44655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44656 ## Running $as_me. ##
44662 cat >>$CONFIG_STATUS <<_ACEOF
44668 # The HP-UX ksh and POSIX shell print the target directory to stdout
44669 # if CDPATH is set.
44670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44672 sed_quote_subst='$sed_quote_subst'
44673 double_quote_subst='$double_quote_subst'
44674 delay_variable_subst='$delay_variable_subst'
44675 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44676 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44677 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44678 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44679 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44680 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44681 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44682 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44683 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44684 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44685 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44686 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44687 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44688 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44689 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44690 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44691 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44692 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44693 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44694 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44695 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44696 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44697 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44698 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44699 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44700 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44701 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44702 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44703 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44704 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44705 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44706 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44707 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44708 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44709 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44710 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44711 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44712 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44713 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44714 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44715 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44716 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44717 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44718 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44719 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"`'
44720 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"`'
44721 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44722 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44723 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44724 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44725 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44726 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44727 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44728 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44729 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44730 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44731 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44732 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44733 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44734 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44735 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44736 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44737 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44738 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44739 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44740 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44741 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44742 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44743 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44744 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44745 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44746 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44747 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44748 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44749 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44750 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44751 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44752 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44753 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44754 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44755 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44756 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44757 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44758 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44759 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44760 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44761 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44762 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44763 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44764 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44765 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44766 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44767 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44768 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44769 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44770 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44771 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44772 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44773 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44774 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44775 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44776 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44777 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44778 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44779 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44780 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44781 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44782 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44783 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44784 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44785 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44786 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44787 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44788 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44789 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44790 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44791 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44792 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44793 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44794 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44795 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44796 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44797 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44798 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44799 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44801 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44802 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44803 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44804 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44805 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44806 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44807 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44808 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44809 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44810 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44811 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44812 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44813 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44814 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44815 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44816 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44817 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44818 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44819 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44820 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44821 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44822 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44823 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44824 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44825 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44826 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44827 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44828 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44829 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44830 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44831 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44832 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44833 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44834 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44835 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44836 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44837 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44838 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44839 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44840 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44841 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44842 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44843 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44844 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44845 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44848 LTCFLAGS='$LTCFLAGS'
44849 compiler='$compiler_DEFAULT'
44851 # Quote evaled strings.
44863 deplibs_check_method \
44872 lt_cv_sys_global_symbol_pipe \
44873 lt_cv_sys_global_symbol_to_cdecl \
44874 lt_cv_sys_global_symbol_to_c_name_address \
44875 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44878 lt_prog_compiler_no_builtin_flag \
44879 lt_prog_compiler_wl \
44880 lt_prog_compiler_pic \
44881 lt_prog_compiler_static \
44882 lt_cv_prog_compiler_c_o \
44890 export_dynamic_flag_spec \
44891 whole_archive_flag_spec \
44892 compiler_needs_object \
44894 allow_undefined_flag \
44895 no_undefined_flag \
44896 hardcode_libdir_flag_spec \
44897 hardcode_libdir_flag_spec_ld \
44898 hardcode_libdir_separator \
44903 variables_saved_for_relink \
44905 library_names_spec \
44910 compiler_lib_search_dirs \
44915 compiler_lib_search_path \
44918 lt_prog_compiler_no_builtin_flag_CXX \
44919 lt_prog_compiler_wl_CXX \
44920 lt_prog_compiler_pic_CXX \
44921 lt_prog_compiler_static_CXX \
44922 lt_cv_prog_compiler_c_o_CXX \
44923 export_dynamic_flag_spec_CXX \
44924 whole_archive_flag_spec_CXX \
44925 compiler_needs_object_CXX \
44927 allow_undefined_flag_CXX \
44928 no_undefined_flag_CXX \
44929 hardcode_libdir_flag_spec_CXX \
44930 hardcode_libdir_flag_spec_ld_CXX \
44931 hardcode_libdir_separator_CXX \
44932 fix_srcfile_path_CXX \
44933 exclude_expsyms_CXX \
44934 include_expsyms_CXX \
44935 file_list_spec_CXX \
44936 compiler_lib_search_dirs_CXX \
44937 predep_objects_CXX \
44938 postdep_objects_CXX \
44941 compiler_lib_search_path_CXX; do
44942 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44943 *[\\\\\\\`\\"\\\$]*)
44944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44952 # Double-quote double-evaled strings.
44953 for var in reload_cmds \
44954 old_postinstall_cmds \
44955 old_postuninstall_cmds \
44957 extract_expsyms_cmds \
44958 old_archive_from_new_cmds \
44959 old_archive_from_expsyms_cmds \
44961 archive_expsym_cmds \
44963 module_expsym_cmds \
44964 export_symbols_cmds \
44967 postuninstall_cmds \
44969 sys_lib_search_path_spec \
44970 sys_lib_dlsearch_path_spec \
44971 old_archive_cmds_CXX \
44972 old_archive_from_new_cmds_CXX \
44973 old_archive_from_expsyms_cmds_CXX \
44975 archive_expsym_cmds_CXX \
44977 module_expsym_cmds_CXX \
44978 export_symbols_cmds_CXX \
44979 prelink_cmds_CXX; do
44980 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44981 *[\\\\\\\`\\"\\\$]*)
44982 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44985 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44990 # Fix-up fallback echo if it was mangled by the above quoting rules.
44992 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44996 ac_aux_dir='$ac_aux_dir'
44997 xsi_shell='$xsi_shell'
44998 lt_shell_append='$lt_shell_append'
45000 # See if we are running on zsh, and set the options which allow our
45001 # commands through without removal of \ escapes INIT.
45002 if test -n "\${ZSH_VERSION+set}" ; then
45003 setopt NO_GLOB_SUBST
45009 TIMESTAMP='$TIMESTAMP'
45017 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45018 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45020 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45021 # Capture the value of LINGUAS because we need it to compute CATALOGS.
45022 LINGUAS="${LINGUAS-%UNSET%}"
45027 cat >>$CONFIG_STATUS <<\_ACEOF
45029 # Handling of arguments.
45030 for ac_config_target in $ac_config_targets
45032 case $ac_config_target in
45033 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45034 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45035 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45036 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45037 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45038 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45039 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45040 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45041 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45042 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45043 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45044 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45045 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45046 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45047 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45048 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45049 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45050 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45051 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45052 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45053 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45054 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45055 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45056 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45057 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45058 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45059 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45060 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45061 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45062 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45063 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45064 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45065 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45066 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45067 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45068 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45069 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45070 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45071 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45072 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45073 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45074 "scripts/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES scripts/make_catalog_backup.pl" ;;
45075 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45076 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45077 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45078 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45079 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45080 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45081 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45082 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45083 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45084 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45085 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45086 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45087 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45088 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45089 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45090 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45091 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45092 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45093 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45094 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45095 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45096 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45097 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45098 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45099 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45100 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45101 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45102 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45103 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45104 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45105 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45106 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45107 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45108 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45109 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45110 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45111 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45112 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45113 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45114 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45115 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45116 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45117 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45118 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45119 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45120 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45121 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45122 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45123 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45124 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45125 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45126 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45127 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45128 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45129 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45130 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45131 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45132 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45133 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45134 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45135 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45136 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45137 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45138 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45139 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45140 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45141 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45142 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45143 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45144 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45145 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45146 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45147 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45148 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45149 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45150 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45152 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45153 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45154 { (exit 1); exit 1; }; };;
45159 # If the user did not use the arguments to specify the items to instantiate,
45160 # then the envvar interface is used. Set only those that are not.
45161 # We use the long form for the default assignment because of an extremely
45162 # bizarre bug on SunOS 4.1.3.
45163 if $ac_need_defaults; then
45164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45166 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45169 # Have a temporary directory for convenience. Make it in the build tree
45170 # simply because there is no reason against having it here, and in addition,
45171 # creating and moving files from /tmp can sometimes cause problems.
45172 # Hook for its removal unless debugging.
45173 # Note that there is a small window in which the directory will not be cleaned:
45174 # after its creation but before its name has been assigned to `$tmp'.
45178 trap 'exit_status=$?
45179 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45181 trap '{ (exit 1); exit 1; }' 1 2 13 15
45183 # Create a (secure) tmp directory for tmp files.
45186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45187 test -n "$tmp" && test -d "$tmp"
45190 tmp=./conf$$-$RANDOM
45191 (umask 077 && mkdir "$tmp")
45194 echo "$me: cannot create a temporary directory in ." >&2
45195 { (exit 1); exit 1; }
45199 # Set up the sed scripts for CONFIG_FILES section.
45202 # No need to generate the scripts if there are no CONFIG_FILES.
45203 # This happens for instance when ./config.status config.h
45204 if test -n "$CONFIG_FILES"; then
45208 # Create sed commands to just substitute file output variables.
45210 # Remaining file output variables are in a fragment that also has non-file
45216 for ac_last_try in false false false false false :; do
45217 cat >conf$$subs.sed <<_ACEOF
45218 SHELL!$SHELL$ac_delim
45219 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45220 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45221 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45222 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45223 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45224 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45225 exec_prefix!$exec_prefix$ac_delim
45226 prefix!$prefix$ac_delim
45227 program_transform_name!$program_transform_name$ac_delim
45228 bindir!$bindir$ac_delim
45229 sbindir!$sbindir$ac_delim
45230 libexecdir!$libexecdir$ac_delim
45231 datarootdir!$datarootdir$ac_delim
45232 datadir!$datadir$ac_delim
45233 sysconfdir!$sysconfdir$ac_delim
45234 sharedstatedir!$sharedstatedir$ac_delim
45235 localstatedir!$localstatedir$ac_delim
45236 includedir!$includedir$ac_delim
45237 oldincludedir!$oldincludedir$ac_delim
45238 docdir!$docdir$ac_delim
45239 infodir!$infodir$ac_delim
45240 htmldir!$htmldir$ac_delim
45241 dvidir!$dvidir$ac_delim
45242 pdfdir!$pdfdir$ac_delim
45243 psdir!$psdir$ac_delim
45244 libdir!$libdir$ac_delim
45245 localedir!$localedir$ac_delim
45246 mandir!$mandir$ac_delim
45247 DEFS!$DEFS$ac_delim
45248 ECHO_C!$ECHO_C$ac_delim
45249 ECHO_N!$ECHO_N$ac_delim
45250 ECHO_T!$ECHO_T$ac_delim
45251 LIBS!$LIBS$ac_delim
45252 build_alias!$build_alias$ac_delim
45253 host_alias!$host_alias$ac_delim
45254 target_alias!$target_alias$ac_delim
45255 BUILD_DIR!$BUILD_DIR$ac_delim
45256 TOP_DIR!$TOP_DIR$ac_delim
45257 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45258 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45259 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45260 TRUEPRG!$TRUEPRG$ac_delim
45261 FALSEPRG!$FALSEPRG$ac_delim
45262 VERSION!$VERSION$ac_delim
45263 DATE!$DATE$ac_delim
45264 LSMDATE!$LSMDATE$ac_delim
45265 BACULA!$BACULA$ac_delim
45266 post_host!$post_host$ac_delim
45268 CFLAGS!$CFLAGS$ac_delim
45269 LDFLAGS!$LDFLAGS$ac_delim
45270 CPPFLAGS!$CPPFLAGS$ac_delim
45271 ac_ct_CC!$ac_ct_CC$ac_delim
45272 EXEEXT!$EXEEXT$ac_delim
45273 OBJEXT!$OBJEXT$ac_delim
45275 CXXFLAGS!$CXXFLAGS$ac_delim
45276 ac_ct_CXX!$ac_ct_CXX$ac_delim
45278 GREP!$GREP$ac_delim
45279 EGREP!$EGREP$ac_delim
45280 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45281 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45282 INSTALL_DATA!$INSTALL_DATA$ac_delim
45284 REMOVE!$REMOVE$ac_delim
45287 ECHO!$ECHO$ac_delim
45291 OPENSSL!$OPENSSL$ac_delim
45294 MKISOFS!$MKISOFS$ac_delim
45295 PYTHON!$PYTHON$ac_delim
45296 GROWISOFS!$GROWISOFS$ac_delim
45297 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45298 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45299 PKGCONFIG!$PKGCONFIG$ac_delim
45300 QMAKE!$QMAKE$ac_delim
45301 QMAKEQT4!$QMAKEQT4$ac_delim
45302 GMAKE!$GMAKE$ac_delim
45303 WXCONFIG!$WXCONFIG$ac_delim
45304 WXFLAGS!$WXFLAGS$ac_delim
45305 CDRECORD!$CDRECORD$ac_delim
45306 PIDOF!$PIDOF$ac_delim
45308 ARFLAGS!$ARFLAGS$ac_delim
45309 MAKE_SHELL!$MAKE_SHELL$ac_delim
45310 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45311 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45316 elif $ac_last_try; then
45317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45319 { (exit 1); exit 1; }; }
45321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45325 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45326 if test -n "$ac_eof"; then
45327 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45328 ac_eof=`expr $ac_eof + 1`
45331 cat >>$CONFIG_STATUS <<_ACEOF
45332 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45334 /^[ ]*@MCOMMON@[ ]*$/{
45340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45341 s/^/s,@/; s/!/@,|#_!!_#|/
45344 s/'"$ac_delim"'$/,g/; t
45346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45347 ' >>$CONFIG_STATUS <conf$$subs.sed
45348 rm -f conf$$subs.sed
45349 cat >>$CONFIG_STATUS <<_ACEOF
45355 for ac_last_try in false false false false false :; do
45356 cat >conf$$subs.sed <<_ACEOF
45357 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45358 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45359 LIBTOOL!$LIBTOOL$ac_delim
45360 build!$build$ac_delim
45361 build_cpu!$build_cpu$ac_delim
45362 build_vendor!$build_vendor$ac_delim
45363 build_os!$build_os$ac_delim
45364 host!$host$ac_delim
45365 host_cpu!$host_cpu$ac_delim
45366 host_vendor!$host_vendor$ac_delim
45367 host_os!$host_os$ac_delim
45368 FGREP!$FGREP$ac_delim
45370 DUMPBIN!$DUMPBIN$ac_delim
45371 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45373 LN_S!$LN_S$ac_delim
45374 OBJDUMP!$OBJDUMP$ac_delim
45375 STRIP!$STRIP$ac_delim
45376 RANLIB!$RANLIB$ac_delim
45377 lt_ECHO!$lt_ECHO$ac_delim
45378 DSYMUTIL!$DSYMUTIL$ac_delim
45379 NMEDIT!$NMEDIT$ac_delim
45380 LIPO!$LIPO$ac_delim
45381 OTOOL!$OTOOL$ac_delim
45382 OTOOL64!$OTOOL64$ac_delim
45383 CXXCPP!$CXXCPP$ac_delim
45384 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45385 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45386 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45387 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45388 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45389 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45390 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45391 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45392 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45393 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45394 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45395 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45396 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45397 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45398 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45399 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45400 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45401 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45402 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45403 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45404 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45405 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45406 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45407 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45408 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45409 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45410 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45411 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45412 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45413 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45414 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45415 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45416 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45417 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45418 SET_MAKE!$SET_MAKE$ac_delim
45419 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45420 USE_NLS!$USE_NLS$ac_delim
45421 MSGFMT!$MSGFMT$ac_delim
45422 GMSGFMT!$GMSGFMT$ac_delim
45423 XGETTEXT!$XGETTEXT$ac_delim
45424 MSGMERGE!$MSGMERGE$ac_delim
45425 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45426 LIBICONV!$LIBICONV$ac_delim
45427 LTLIBICONV!$LTLIBICONV$ac_delim
45428 INTLLIBS!$INTLLIBS$ac_delim
45429 LIBINTL!$LIBINTL$ac_delim
45430 LTLIBINTL!$LTLIBINTL$ac_delim
45431 POSUB!$POSUB$ac_delim
45432 GLIBC2!$GLIBC2$ac_delim
45433 ALLOCA!$ALLOCA$ac_delim
45434 GLIBC21!$GLIBC21$ac_delim
45435 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45436 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45437 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45438 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45439 INTLBISON!$INTLBISON$ac_delim
45440 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45441 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45442 CATOBJEXT!$CATOBJEXT$ac_delim
45443 DATADIRNAME!$DATADIRNAME$ac_delim
45444 INSTOBJEXT!$INSTOBJEXT$ac_delim
45445 GENCAT!$GENCAT$ac_delim
45446 INTLOBJS!$INTLOBJS$ac_delim
45447 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45448 BAT_DIR!$BAT_DIR$ac_delim
45449 QWT_INC!$QWT_INC$ac_delim
45450 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45451 QWT_LIB!$QWT_LIB$ac_delim
45453 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45456 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45458 elif $ac_last_try; then
45459 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45460 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45461 { (exit 1); exit 1; }; }
45463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45467 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45468 if test -n "$ac_eof"; then
45469 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45470 ac_eof=`expr $ac_eof + 1`
45473 cat >>$CONFIG_STATUS <<_ACEOF
45474 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45478 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45479 s/^/s,@/; s/!/@,|#_!!_#|/
45482 s/'"$ac_delim"'$/,g/; t
45484 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45485 ' >>$CONFIG_STATUS <conf$$subs.sed
45486 rm -f conf$$subs.sed
45487 cat >>$CONFIG_STATUS <<_ACEOF
45493 for ac_last_try in false false false false false :; do
45494 cat >conf$$subs.sed <<_ACEOF
45495 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45496 WX_DIR!$WX_DIR$ac_delim
45497 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45498 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45499 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45500 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45501 STATIC_FD!$STATIC_FD$ac_delim
45502 STATIC_SD!$STATIC_SD$ac_delim
45503 STATIC_DIR!$STATIC_DIR$ac_delim
45504 STATIC_CONS!$STATIC_CONS$ac_delim
45505 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45506 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45507 ALL_DIRS!$ALL_DIRS$ac_delim
45508 DIRD_DIR!$DIRD_DIR$ac_delim
45509 DIR_TOOLS!$DIR_TOOLS$ac_delim
45510 STORED_DIR!$STORED_DIR$ac_delim
45511 CONS_INC!$CONS_INC$ac_delim
45512 CONS_OBJ!$CONS_OBJ$ac_delim
45513 CONS_SRC!$CONS_SRC$ac_delim
45514 CONS_LIBS!$CONS_LIBS$ac_delim
45515 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45516 READLINE_SRC!$READLINE_SRC$ac_delim
45517 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45518 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45519 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45520 OPENSSL_INC!$OPENSSL_INC$ac_delim
45521 working_dir!$working_dir$ac_delim
45522 archivedir!$archivedir$ac_delim
45523 basename!$basename$ac_delim
45524 hostname!$hostname$ac_delim
45525 scriptdir!$scriptdir$ac_delim
45526 bsrdir!$bsrdir$ac_delim
45527 logdir!$logdir$ac_delim
45528 plugindir!$plugindir$ac_delim
45529 dump_email!$dump_email$ac_delim
45530 job_email!$job_email$ac_delim
45531 smtp_host!$smtp_host$ac_delim
45532 piddir!$piddir$ac_delim
45533 subsysdir!$subsysdir$ac_delim
45534 baseport!$baseport$ac_delim
45535 dir_port!$dir_port$ac_delim
45536 fd_port!$fd_port$ac_delim
45537 sd_port!$sd_port$ac_delim
45538 dir_password!$dir_password$ac_delim
45539 fd_password!$fd_password$ac_delim
45540 sd_password!$sd_password$ac_delim
45541 mon_dir_password!$mon_dir_password$ac_delim
45542 mon_fd_password!$mon_fd_password$ac_delim
45543 mon_sd_password!$mon_sd_password$ac_delim
45544 db_name!$db_name$ac_delim
45545 db_user!$db_user$ac_delim
45546 db_password!$db_password$ac_delim
45547 db_port!$db_port$ac_delim
45548 dir_user!$dir_user$ac_delim
45549 dir_group!$dir_group$ac_delim
45550 sd_user!$sd_user$ac_delim
45551 sd_group!$sd_group$ac_delim
45552 fd_user!$fd_user$ac_delim
45553 fd_group!$fd_group$ac_delim
45554 SBINPERM!$SBINPERM$ac_delim
45555 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45556 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45557 SQL_BINDIR!$SQL_BINDIR$ac_delim
45558 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45559 uncomment_dbi!$uncomment_dbi$ac_delim
45560 DB_PROG!$DB_PROG$ac_delim
45561 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45562 cats!$cats$ac_delim
45563 DB_TYPE!$DB_TYPE$ac_delim
45564 GETCONF!$GETCONF$ac_delim
45565 XMKMF!$XMKMF$ac_delim
45566 X_CFLAGS!$X_CFLAGS$ac_delim
45567 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45568 X_LIBS!$X_LIBS$ac_delim
45569 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45570 LIBOBJS!$LIBOBJS$ac_delim
45571 CAP_LIBS!$CAP_LIBS$ac_delim
45572 FDLIBS!$FDLIBS$ac_delim
45573 DEBUG!$DEBUG$ac_delim
45574 DINCLUDE!$DINCLUDE$ac_delim
45575 DLIB!$DLIB$ac_delim
45576 DB_LIBS!$DB_LIBS$ac_delim
45577 WCFLAGS!$WCFLAGS$ac_delim
45578 WLDFLAGS!$WLDFLAGS$ac_delim
45579 WRAPLIBS!$WRAPLIBS$ac_delim
45580 OBJLIST!$OBJLIST$ac_delim
45581 TAPEDRIVE!$TAPEDRIVE$ac_delim
45582 PSCMD!$PSCMD$ac_delim
45583 WIN32!$WIN32$ac_delim
45584 MACOSX!$MACOSX$ac_delim
45585 DISTNAME!$DISTNAME$ac_delim
45586 DISTVER!$DISTVER$ac_delim
45587 LTLIBOBJS!$LTLIBOBJS$ac_delim
45590 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
45592 elif $ac_last_try; then
45593 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45594 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45595 { (exit 1); exit 1; }; }
45597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45601 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45602 if test -n "$ac_eof"; then
45603 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45604 ac_eof=`expr $ac_eof + 1`
45607 cat >>$CONFIG_STATUS <<_ACEOF
45608 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45612 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45613 s/^/s,@/; s/!/@,|#_!!_#|/
45616 s/'"$ac_delim"'$/,g/; t
45618 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45619 ' >>$CONFIG_STATUS <conf$$subs.sed
45620 rm -f conf$$subs.sed
45621 cat >>$CONFIG_STATUS <<_ACEOF
45628 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45629 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45630 # trailing colons and then remove the whole line if VPATH becomes empty
45631 # (actually we leave an empty line to preserve line numbers).
45632 if test "x$srcdir" = x.; then
45633 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45634 s/:*\$(srcdir):*/:/
45635 s/:*\${srcdir}:*/:/
45637 s/^\([^=]*=[ ]*\):*/\1/
45643 cat >>$CONFIG_STATUS <<\_ACEOF
45644 fi # test -n "$CONFIG_FILES"
45647 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45650 :[FHLC]) ac_mode=$ac_tag; continue;;
45652 case $ac_mode$ac_tag in
45654 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45655 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45656 { (exit 1); exit 1; }; };;
45657 :[FH]-) ac_tag=-:-;;
45658 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45675 -) ac_f="$tmp/stdin";;
45676 *) # Look for the file first in the build tree, then in the source tree
45677 # (if the path is not absolute). The absolute path cannot be DOS-style,
45678 # because $ac_f cannot contain `:'.
45682 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45684 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45685 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45686 { (exit 1); exit 1; }; };;
45688 ac_file_inputs="$ac_file_inputs $ac_f"
45691 # Let's still pretend it is `configure' which instantiates (i.e., don't
45692 # use $as_me), people would be surprised to read:
45693 # /* config.h. Generated by config.status. */
45694 configure_input="Generated from "`IFS=:
45695 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45696 if test x"$ac_file" != x-; then
45697 configure_input="$ac_file. $configure_input"
45698 { echo "$as_me:$LINENO: creating $ac_file" >&5
45699 echo "$as_me: creating $ac_file" >&6;}
45703 *:-:* | *:-) cat >"$tmp/stdin";;
45708 ac_dir=`$as_dirname -- "$ac_file" ||
45709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45710 X"$ac_file" : 'X\(//\)[^/]' \| \
45711 X"$ac_file" : 'X\(//\)$' \| \
45712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45718 /^X\(\/\/\)[^/].*/{
45733 -*) as_dir=./$as_dir;;
45735 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45739 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45740 *) as_qdir=$as_dir;;
45742 as_dirs="'$as_qdir' $as_dirs"
45743 as_dir=`$as_dirname -- "$as_dir" ||
45744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45745 X"$as_dir" : 'X\(//\)[^/]' \| \
45746 X"$as_dir" : 'X\(//\)$' \| \
45747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45753 /^X\(\/\/\)[^/].*/{
45766 test -d "$as_dir" && break
45768 test -z "$as_dirs" || eval "mkdir $as_dirs"
45769 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45770 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45771 { (exit 1); exit 1; }; }; }
45775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45777 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45778 # A ".." for each directory in $ac_dir_suffix.
45779 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45780 case $ac_top_builddir_sub in
45781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45785 ac_abs_top_builddir=$ac_pwd
45786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45787 # for backward compatibility:
45788 ac_top_builddir=$ac_top_build_prefix
45791 .) # We are building in place.
45793 ac_top_srcdir=$ac_top_builddir_sub
45794 ac_abs_top_srcdir=$ac_pwd ;;
45795 [\\/]* | ?:[\\/]* ) # Absolute name.
45796 ac_srcdir=$srcdir$ac_dir_suffix;
45797 ac_top_srcdir=$srcdir
45798 ac_abs_top_srcdir=$srcdir ;;
45799 *) # Relative name.
45800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45801 ac_top_srcdir=$ac_top_build_prefix$srcdir
45802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45815 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45819 cat >>$CONFIG_STATUS <<\_ACEOF
45820 # If the template does not know about datarootdir, expand it.
45821 # FIXME: This hack should be removed a few years after 2.60.
45822 ac_datarootdir_hack=; ac_datarootdir_seen=
45824 case `sed -n '/datarootdir/ {
45833 ' $ac_file_inputs` in
45834 *datarootdir*) ac_datarootdir_seen=yes;;
45835 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45836 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45837 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45839 cat >>$CONFIG_STATUS <<_ACEOF
45840 ac_datarootdir_hack='
45841 s&@datadir@&$datadir&g
45842 s&@docdir@&$docdir&g
45843 s&@infodir@&$infodir&g
45844 s&@localedir@&$localedir&g
45845 s&@mandir@&$mandir&g
45846 s&\\\${datarootdir}&$datarootdir&g' ;;
45850 # Neutralize VPATH when `$srcdir' = `.'.
45851 # Shell code in configure.ac might set extrasub.
45852 # FIXME: do we really want to maintain this feature?
45853 cat >>$CONFIG_STATUS <<_ACEOF
45857 cat >>$CONFIG_STATUS <<\_ACEOF
45859 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45860 s&@configure_input@&$configure_input&;t t
45861 s&@top_builddir@&$ac_top_builddir_sub&;t t
45862 s&@srcdir@&$ac_srcdir&;t t
45863 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45864 s&@top_srcdir@&$ac_top_srcdir&;t t
45865 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45866 s&@builddir@&$ac_builddir&;t t
45867 s&@abs_builddir@&$ac_abs_builddir&;t t
45868 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45869 s&@INSTALL@&$ac_INSTALL&;t t
45870 $ac_datarootdir_hack
45871 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45873 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45874 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45875 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45876 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45877 which seems to be undefined. Please make sure it is defined." >&5
45878 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45879 which seems to be undefined. Please make sure it is defined." >&2;}
45883 -) cat "$tmp/out"; rm -f "$tmp/out";;
45884 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45893 # Transform confdefs.h into a sed script `conftest.defines', that
45894 # substitutes the proper values into config.h.in to produce config.h.
45895 rm -f conftest.defines conftest.tail
45896 # First, append a space to every undef/define line, to ease matching.
45897 echo 's/$/ /' >conftest.defines
45898 # Then, protect against being on the right side of a sed subst, or in
45899 # an unquoted here document, in config.status. If some macros were
45900 # called several times there might be several #defines for the same
45901 # symbol, which is useless. But do not sort them, since the last
45902 # AC_DEFINE must be honored.
45903 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45904 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45905 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45906 # PARAMS is the parameter list in the macro definition--in most cases, it's
45907 # just an empty string.
45908 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
45909 ac_dB='\\)[ (].*,\\1define\\2'
45917 s/^[ ]*#[ ]*define[ ][ ]*//
45922 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45923 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45924 ' >>conftest.defines
45926 # Remove the space that was appended to ease matching.
45927 # Then replace #undef with comments. This is necessary, for
45928 # example, in the case of _POSIX_SOURCE, which is predefined and required
45929 # on some systems where configure will not decide to define it.
45930 # (The regexp can be short, since the line contains either #define or #undef.)
45932 s,^[ #]*u.*,/* & */,' >>conftest.defines
45934 # Break up conftest.defines:
45935 ac_max_sed_lines=50
45937 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45938 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45939 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45941 ac_in='$ac_file_inputs'
45942 ac_out='"$tmp/out1"'
45943 ac_nxt='"$tmp/out2"'
45947 # Write a here document:
45948 cat >>$CONFIG_STATUS <<_ACEOF
45949 # First, check the format of the line:
45950 cat >"\$tmp/defines.sed" <<\\CEOF
45951 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
45952 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
45956 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45958 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45959 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45960 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45961 grep . conftest.tail >/dev/null || break
45962 rm -f conftest.defines
45963 mv conftest.tail conftest.defines
45965 rm -f conftest.defines conftest.tail
45967 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45968 cat >>$CONFIG_STATUS <<\_ACEOF
45969 if test x"$ac_file" != x-; then
45970 echo "/* $configure_input */" >"$tmp/config.h"
45971 cat "$ac_result" >>"$tmp/config.h"
45972 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45973 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45974 echo "$as_me: $ac_file is unchanged" >&6;}
45977 mv "$tmp/config.h" $ac_file
45980 echo "/* $configure_input */"
45986 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45987 echo "$as_me: executing $ac_file commands" >&6;}
45992 case $ac_file$ac_mode in
45995 # See if we are running on zsh, and set the options which allow our
45996 # commands through without removal of \ escapes.
45997 if test -n "${ZSH_VERSION+set}" ; then
45998 setopt NO_GLOB_SUBST
46001 cfgfile="${ofile}T"
46002 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46005 cat <<_LT_EOF >> "$cfgfile"
46008 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46009 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46010 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46011 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46013 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46014 # 2006, 2007, 2008 Free Software Foundation, Inc.
46015 # Written by Gordon Matzigkeit, 1996
46017 # This file is part of GNU Libtool.
46019 # GNU Libtool is free software; you can redistribute it and/or
46020 # modify it under the terms of the GNU General Public License as
46021 # published by the Free Software Foundation; either version 2 of
46022 # the License, or (at your option) any later version.
46024 # As a special exception to the GNU General Public License,
46025 # if you distribute this file as part of a program or library that
46026 # is built using GNU Libtool, you may include this file under the
46027 # same distribution terms that you use for the rest of that program.
46029 # GNU Libtool is distributed in the hope that it will be useful,
46030 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46031 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46032 # GNU General Public License for more details.
46034 # You should have received a copy of the GNU General Public License
46035 # along with GNU Libtool; see the file COPYING. If not, a copy
46036 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46037 # obtained by writing to the Free Software Foundation, Inc.,
46038 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46041 # The names of the tagged configurations supported by this script.
46042 available_tags="CXX "
46044 # ### BEGIN LIBTOOL CONFIG
46046 # Which release of libtool.m4 was used?
46047 macro_version=$macro_version
46048 macro_revision=$macro_revision
46050 # Whether or not to build shared libraries.
46051 build_libtool_libs=$enable_shared
46053 # Whether or not to build static libraries.
46054 build_old_libs=$enable_static
46056 # What type of objects to build.
46059 # Whether or not to optimize for fast installation.
46060 fast_install=$enable_fast_install
46063 host_alias=$host_alias
46067 # The build system.
46068 build_alias=$build_alias
46072 # A sed program that does not truncate output.
46075 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46076 Xsed="\$SED -e 1s/^X//"
46078 # A grep program that handles long lines.
46084 # A literal string matcher.
46087 # A BSD- or MS-compatible name lister.
46090 # Whether we need soft or hard links.
46093 # What is the maximum length of a command?
46094 max_cmd_len=$max_cmd_len
46096 # Object file suffix (normally "o").
46099 # Executable file suffix (normally "").
46102 # whether the shell understands "unset".
46105 # turn spaces into newlines.
46108 # turn newlines into spaces.
46111 # How to create reloadable object files.
46112 reload_flag=$lt_reload_flag
46113 reload_cmds=$lt_reload_cmds
46115 # An object symbol dumper.
46116 OBJDUMP=$lt_OBJDUMP
46118 # Method to check whether dependent libraries are shared objects.
46119 deplibs_check_method=$lt_deplibs_check_method
46121 # Command to use when deplibs_check_method == "file_magic".
46122 file_magic_cmd=$lt_file_magic_cmd
46126 AR_FLAGS=$lt_AR_FLAGS
46128 # A symbol stripping program.
46131 # Commands used to install an old-style archive.
46133 old_postinstall_cmds=$lt_old_postinstall_cmds
46134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46139 # LTCC compiler flags.
46140 LTCFLAGS=$lt_CFLAGS
46142 # Take the output of nm and produce a listing of raw symbols and C names.
46143 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46145 # Transform the output of nm in a proper C declaration.
46146 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46148 # Transform the output of nm in a C name address pair.
46149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46151 # Transform the output of nm in a C name address pair when lib prefix is needed.
46152 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46154 # The name of the directory that contains temporary libtool files.
46157 # Shell to use when invoking shell scripts.
46160 # An echo program that does not interpret backslashes.
46163 # Used to examine libraries when file_magic_cmd begins with "file".
46164 MAGIC_CMD=$MAGIC_CMD
46166 # Must we lock files when doing compilation?
46167 need_locks=$lt_need_locks
46169 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46170 DSYMUTIL=$lt_DSYMUTIL
46172 # Tool to change global to local symbols on Mac OS X.
46175 # Tool to manipulate fat objects and archives on Mac OS X.
46178 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46181 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46182 OTOOL64=$lt_OTOOL64
46184 # Old archive suffix (normally "a").
46187 # Shared library suffix (normally ".so").
46188 shrext_cmds=$lt_shrext_cmds
46190 # The commands to extract the exported symbol list from a shared archive.
46191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46193 # Variables whose values should be saved in libtool wrapper scripts and
46194 # restored at link time.
46195 variables_saved_for_relink=$lt_variables_saved_for_relink
46197 # Do we need the "lib" prefix for modules?
46198 need_lib_prefix=$need_lib_prefix
46200 # Do we need a version for libraries?
46201 need_version=$need_version
46203 # Library versioning type.
46204 version_type=$version_type
46206 # Shared library runtime path variable.
46207 runpath_var=$runpath_var
46209 # Shared library path variable.
46210 shlibpath_var=$shlibpath_var
46212 # Is shlibpath searched before the hard-coded library search path?
46213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46215 # Format of library name prefix.
46216 libname_spec=$lt_libname_spec
46218 # List of archive names. First name is the real one, the rest are links.
46219 # The last name is the one that the linker finds with -lNAME
46220 library_names_spec=$lt_library_names_spec
46222 # The coded name of the library, if different from the real name.
46223 soname_spec=$lt_soname_spec
46225 # Command to use after installation of a shared archive.
46226 postinstall_cmds=$lt_postinstall_cmds
46228 # Command to use after uninstallation of a shared archive.
46229 postuninstall_cmds=$lt_postuninstall_cmds
46231 # Commands used to finish a libtool library installation in a directory.
46232 finish_cmds=$lt_finish_cmds
46234 # As "finish_cmds", except a single script fragment to be evaled but
46236 finish_eval=$lt_finish_eval
46238 # Whether we should hardcode library paths into libraries.
46239 hardcode_into_libs=$hardcode_into_libs
46241 # Compile-time system search path for libraries.
46242 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46244 # Run-time system search path for libraries.
46245 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46247 # Whether dlopen is supported.
46248 dlopen_support=$enable_dlopen
46250 # Whether dlopen of programs is supported.
46251 dlopen_self=$enable_dlopen_self
46253 # Whether dlopen of statically linked programs is supported.
46254 dlopen_self_static=$enable_dlopen_self_static
46256 # Commands to strip libraries.
46257 old_striplib=$lt_old_striplib
46258 striplib=$lt_striplib
46261 # The linker used to build libraries.
46264 # Commands used to build an old-style archive.
46265 old_archive_cmds=$lt_old_archive_cmds
46267 # A language specific compiler.
46270 # Is the compiler the GNU compiler?
46273 # Compiler flag to turn off builtin functions.
46274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46276 # How to pass a linker flag through the compiler.
46277 wl=$lt_lt_prog_compiler_wl
46279 # Additional compiler flags for building library objects.
46280 pic_flag=$lt_lt_prog_compiler_pic
46282 # Compiler flag to prevent dynamic linking.
46283 link_static_flag=$lt_lt_prog_compiler_static
46285 # Does compiler simultaneously support -c and -o options?
46286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46288 # Whether or not to add -lc for building shared libraries.
46289 build_libtool_need_lc=$archive_cmds_need_lc
46291 # Whether or not to disallow shared libs when runtime libs are static.
46292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46294 # Compiler flag to allow reflexive dlopens.
46295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46297 # Compiler flag to generate shared objects directly from archives.
46298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46300 # Whether the compiler copes with passing no objects directly.
46301 compiler_needs_object=$lt_compiler_needs_object
46303 # Create an old-style archive from a shared archive.
46304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46306 # Create a temporary old-style archive to link instead of a shared archive.
46307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46309 # Commands used to build a shared archive.
46310 archive_cmds=$lt_archive_cmds
46311 archive_expsym_cmds=$lt_archive_expsym_cmds
46313 # Commands used to build a loadable module if different from building
46314 # a shared archive.
46315 module_cmds=$lt_module_cmds
46316 module_expsym_cmds=$lt_module_expsym_cmds
46318 # Whether we are building with GNU ld or not.
46319 with_gnu_ld=$lt_with_gnu_ld
46321 # Flag that allows shared libraries with undefined symbols to be built.
46322 allow_undefined_flag=$lt_allow_undefined_flag
46324 # Flag that enforces no undefined symbols.
46325 no_undefined_flag=$lt_no_undefined_flag
46327 # Flag to hardcode \$libdir into a binary during linking.
46328 # This must work even if \$libdir does not exist
46329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46331 # If ld is used when linking, flag to hardcode \$libdir into a binary
46332 # during linking. This must work even if \$libdir does not exist.
46333 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46335 # Whether we need a single "-rpath" flag with a separated argument.
46336 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46338 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46339 # DIR into the resulting binary.
46340 hardcode_direct=$hardcode_direct
46342 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46343 # DIR into the resulting binary and the resulting library dependency is
46344 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46345 # library is relocated.
46346 hardcode_direct_absolute=$hardcode_direct_absolute
46348 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46349 # into the resulting binary.
46350 hardcode_minus_L=$hardcode_minus_L
46352 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46353 # into the resulting binary.
46354 hardcode_shlibpath_var=$hardcode_shlibpath_var
46356 # Set to "yes" if building a shared library automatically hardcodes DIR
46357 # into the library and all subsequent libraries and executables linked
46359 hardcode_automatic=$hardcode_automatic
46361 # Set to yes if linker adds runtime paths of dependent libraries
46362 # to runtime path list.
46363 inherit_rpath=$inherit_rpath
46365 # Whether libtool must link a program against all its dependency libraries.
46366 link_all_deplibs=$link_all_deplibs
46368 # Fix the shell variable \$srcfile for the compiler.
46369 fix_srcfile_path=$lt_fix_srcfile_path
46371 # Set to "yes" if exported symbols are required.
46372 always_export_symbols=$always_export_symbols
46374 # The commands to list exported symbols.
46375 export_symbols_cmds=$lt_export_symbols_cmds
46377 # Symbols that should not be listed in the preloaded symbols.
46378 exclude_expsyms=$lt_exclude_expsyms
46380 # Symbols that must always be exported.
46381 include_expsyms=$lt_include_expsyms
46383 # Commands necessary for linking programs (against libraries) with templates.
46384 prelink_cmds=$lt_prelink_cmds
46386 # Specify filename containing input files.
46387 file_list_spec=$lt_file_list_spec
46389 # How to hardcode a shared library path into an executable.
46390 hardcode_action=$hardcode_action
46392 # The directories searched by this compiler when creating a shared library.
46393 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46395 # Dependencies to place before and after the objects being linked to
46396 # create a shared library.
46397 predep_objects=$lt_predep_objects
46398 postdep_objects=$lt_postdep_objects
46399 predeps=$lt_predeps
46400 postdeps=$lt_postdeps
46402 # The library search path used internally by the compiler when linking
46403 # a shared library.
46404 compiler_lib_search_path=$lt_compiler_lib_search_path
46406 # ### END LIBTOOL CONFIG
46412 cat <<\_LT_EOF >> "$cfgfile"
46413 # AIX sometimes has problems with the GCC collect2 program. For some
46414 # reason, if we set the COLLECT_NAMES environment variable, the problems
46415 # vanish in a puff of smoke.
46416 if test "X${COLLECT_NAMES+set}" != Xset; then
46418 export COLLECT_NAMES
46425 ltmain="$ac_aux_dir/ltmain.sh"
46428 # We use sed instead of cat because bash on DJGPP gets confused if
46429 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46430 # text mode, it properly converts lines to CR/LF. This bash problem
46431 # is reportedly fixed, but why not run on old versions too?
46432 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46433 || (rm -f "$cfgfile"; exit 1)
46437 cat << \_LT_EOF >> "$cfgfile"
46439 # func_dirname file append nondir_replacement
46440 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46441 # otherwise set result to NONDIR_REPLACEMENT.
46445 */*) func_dirname_result="${1%/*}${2}" ;;
46446 * ) func_dirname_result="${3}" ;;
46450 # func_basename file
46453 func_basename_result="${1##*/}"
46456 # func_dirname_and_basename file append nondir_replacement
46457 # perform func_basename and func_dirname in a single function
46459 # dirname: Compute the dirname of FILE. If nonempty,
46460 # add APPEND to the result, otherwise set result
46461 # to NONDIR_REPLACEMENT.
46462 # value returned in "$func_dirname_result"
46463 # basename: Compute filename of FILE.
46464 # value retuned in "$func_basename_result"
46465 # Implementation must be kept synchronized with func_dirname
46466 # and func_basename. For efficiency, we do not delegate to
46467 # those functions but instead duplicate the functionality here.
46468 func_dirname_and_basename ()
46471 */*) func_dirname_result="${1%/*}${2}" ;;
46472 * ) func_dirname_result="${3}" ;;
46474 func_basename_result="${1##*/}"
46477 # func_stripname prefix suffix name
46478 # strip PREFIX and SUFFIX off of NAME.
46479 # PREFIX and SUFFIX must not contain globbing or regex special
46480 # characters, hashes, percent signs, but SUFFIX may contain a leading
46481 # dot (in which case that matches only a dot).
46484 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46485 # positional parameters, so assign one to ordinary parameter first.
46486 func_stripname_result=${3}
46487 func_stripname_result=${func_stripname_result#"${1}"}
46488 func_stripname_result=${func_stripname_result%"${2}"}
46494 func_opt_split_opt=${1%%=*}
46495 func_opt_split_arg=${1#*=}
46502 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46503 *) func_lo2o_result=${1} ;;
46507 # func_xform libobj-or-source
46510 func_xform_result=${1%.*}.lo
46513 # func_arith arithmetic-term...
46516 func_arith_result=$(( $* ))
46520 # STRING may not start with a hyphen.
46523 func_len_result=${#1}
46528 *) # Bourne compatible functions.
46529 cat << \_LT_EOF >> "$cfgfile"
46531 # func_dirname file append nondir_replacement
46532 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46533 # otherwise set result to NONDIR_REPLACEMENT.
46536 # Extract subdirectory from the argument.
46537 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46538 if test "X$func_dirname_result" = "X${1}"; then
46539 func_dirname_result="${3}"
46541 func_dirname_result="$func_dirname_result${2}"
46545 # func_basename file
46548 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46552 # func_stripname prefix suffix name
46553 # strip PREFIX and SUFFIX off of NAME.
46554 # PREFIX and SUFFIX must not contain globbing or regex special
46555 # characters, hashes, percent signs, but SUFFIX may contain a leading
46556 # dot (in which case that matches only a dot).
46557 # func_strip_suffix prefix name
46561 .*) func_stripname_result=`$ECHO "X${3}" \
46562 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46563 *) func_stripname_result=`$ECHO "X${3}" \
46564 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46569 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46570 my_sed_long_arg='1s/^-[^=]*=//'
46575 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46576 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46582 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46585 # func_xform libobj-or-source
46588 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46591 # func_arith arithmetic-term...
46594 func_arith_result=`expr "$@"`
46598 # STRING may not start with a hyphen.
46601 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46607 case $lt_shell_append in
46609 cat << \_LT_EOF >> "$cfgfile"
46611 # func_append var value
46612 # Append VALUE to the end of shell variable VAR.
46620 cat << \_LT_EOF >> "$cfgfile"
46622 # func_append var value
46623 # Append VALUE to the end of shell variable VAR.
46634 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46635 || (rm -f "$cfgfile"; exit 1)
46637 mv -f "$cfgfile" "$ofile" ||
46638 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46642 cat <<_LT_EOF >> "$ofile"
46644 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46646 # The linker used to build libraries.
46649 # Commands used to build an old-style archive.
46650 old_archive_cmds=$lt_old_archive_cmds_CXX
46652 # A language specific compiler.
46653 CC=$lt_compiler_CXX
46655 # Is the compiler the GNU compiler?
46658 # Compiler flag to turn off builtin functions.
46659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46661 # How to pass a linker flag through the compiler.
46662 wl=$lt_lt_prog_compiler_wl_CXX
46664 # Additional compiler flags for building library objects.
46665 pic_flag=$lt_lt_prog_compiler_pic_CXX
46667 # Compiler flag to prevent dynamic linking.
46668 link_static_flag=$lt_lt_prog_compiler_static_CXX
46670 # Does compiler simultaneously support -c and -o options?
46671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46673 # Whether or not to add -lc for building shared libraries.
46674 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46676 # Whether or not to disallow shared libs when runtime libs are static.
46677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46679 # Compiler flag to allow reflexive dlopens.
46680 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46682 # Compiler flag to generate shared objects directly from archives.
46683 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46685 # Whether the compiler copes with passing no objects directly.
46686 compiler_needs_object=$lt_compiler_needs_object_CXX
46688 # Create an old-style archive from a shared archive.
46689 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46691 # Create a temporary old-style archive to link instead of a shared archive.
46692 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46694 # Commands used to build a shared archive.
46695 archive_cmds=$lt_archive_cmds_CXX
46696 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46698 # Commands used to build a loadable module if different from building
46699 # a shared archive.
46700 module_cmds=$lt_module_cmds_CXX
46701 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46703 # Whether we are building with GNU ld or not.
46704 with_gnu_ld=$lt_with_gnu_ld_CXX
46706 # Flag that allows shared libraries with undefined symbols to be built.
46707 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46709 # Flag that enforces no undefined symbols.
46710 no_undefined_flag=$lt_no_undefined_flag_CXX
46712 # Flag to hardcode \$libdir into a binary during linking.
46713 # This must work even if \$libdir does not exist
46714 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46716 # If ld is used when linking, flag to hardcode \$libdir into a binary
46717 # during linking. This must work even if \$libdir does not exist.
46718 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46720 # Whether we need a single "-rpath" flag with a separated argument.
46721 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46723 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46724 # DIR into the resulting binary.
46725 hardcode_direct=$hardcode_direct_CXX
46727 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46728 # DIR into the resulting binary and the resulting library dependency is
46729 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46730 # library is relocated.
46731 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46733 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46734 # into the resulting binary.
46735 hardcode_minus_L=$hardcode_minus_L_CXX
46737 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46738 # into the resulting binary.
46739 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46741 # Set to "yes" if building a shared library automatically hardcodes DIR
46742 # into the library and all subsequent libraries and executables linked
46744 hardcode_automatic=$hardcode_automatic_CXX
46746 # Set to yes if linker adds runtime paths of dependent libraries
46747 # to runtime path list.
46748 inherit_rpath=$inherit_rpath_CXX
46750 # Whether libtool must link a program against all its dependency libraries.
46751 link_all_deplibs=$link_all_deplibs_CXX
46753 # Fix the shell variable \$srcfile for the compiler.
46754 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46756 # Set to "yes" if exported symbols are required.
46757 always_export_symbols=$always_export_symbols_CXX
46759 # The commands to list exported symbols.
46760 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46762 # Symbols that should not be listed in the preloaded symbols.
46763 exclude_expsyms=$lt_exclude_expsyms_CXX
46765 # Symbols that must always be exported.
46766 include_expsyms=$lt_include_expsyms_CXX
46768 # Commands necessary for linking programs (against libraries) with templates.
46769 prelink_cmds=$lt_prelink_cmds_CXX
46771 # Specify filename containing input files.
46772 file_list_spec=$lt_file_list_spec_CXX
46774 # How to hardcode a shared library path into an executable.
46775 hardcode_action=$hardcode_action_CXX
46777 # The directories searched by this compiler when creating a shared library.
46778 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46780 # Dependencies to place before and after the objects being linked to
46781 # create a shared library.
46782 predep_objects=$lt_predep_objects_CXX
46783 postdep_objects=$lt_postdep_objects_CXX
46784 predeps=$lt_predeps_CXX
46785 postdeps=$lt_postdeps_CXX
46787 # The library search path used internally by the compiler when linking
46788 # a shared library.
46789 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46791 # ### END LIBTOOL TAG CONFIG: CXX
46796 for ac_file in $CONFIG_FILES; do
46797 # Support "outfile[:infile[:infile...]]"
46799 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46801 # PO directories have a Makefile.in generated from Makefile.in.in.
46802 case "$ac_file" in */Makefile.in)
46803 # Adjust a relative srcdir.
46804 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46805 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46806 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46807 # In autoconf-2.13 it is called $ac_given_srcdir.
46808 # In autoconf-2.50 it is called $srcdir.
46809 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46810 case "$ac_given_srcdir" in
46811 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46812 /*) top_srcdir="$ac_given_srcdir" ;;
46813 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46815 # Treat a directory as a PO directory if and only if it has a
46816 # POTFILES.in file. This allows packages to have multiple PO
46817 # directories under different names or in different locations.
46818 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46819 rm -f "$ac_dir/POTFILES"
46820 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46821 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46822 POMAKEFILEDEPS="POTFILES.in"
46823 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46824 # on $ac_dir but don't depend on user-specified configuration
46826 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46827 # The LINGUAS file contains the set of available languages.
46828 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46829 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46831 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46832 # Hide the ALL_LINGUAS assigment from automake.
46833 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46834 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46836 # The set of available languages was given in configure.in.
46837 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46840 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46841 # Compute UPDATEPOFILES
46842 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46843 # Compute DUMMYPOFILES
46844 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46846 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46847 case "$ac_given_srcdir" in
46849 *) srcdirpre='$(srcdir)/' ;;
46855 for lang in $ALL_LINGUAS; do
46856 POFILES="$POFILES $srcdirpre$lang.po"
46857 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46858 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46859 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46861 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46862 # environment variable.
46864 if test -n "$ALL_LINGUAS"; then
46865 for presentlang in $ALL_LINGUAS; do
46867 if test "%UNSET%" != "$LINGUAS"; then
46868 desiredlanguages="$LINGUAS"
46870 desiredlanguages="$ALL_LINGUAS"
46872 for desiredlang in $desiredlanguages; do
46873 # Use the presentlang catalog if desiredlang is
46874 # a. equal to presentlang, or
46875 # b. a variant of presentlang (because in this case,
46876 # presentlang can be used as a fallback for messages
46877 # which are not translated in the desiredlang catalog).
46878 case "$desiredlang" in
46879 "$presentlang"*) useit=yes;;
46882 if test $useit = yes; then
46883 INST_LINGUAS="$INST_LINGUAS $presentlang"
46888 if test -n "$INST_LINGUAS"; then
46889 for lang in $INST_LINGUAS; do
46890 CATALOGS="$CATALOGS $lang.gmo"
46893 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46894 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"
46895 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46896 if test -f "$f"; then
46898 *.orig | *.bak | *~) ;;
46899 *) cat "$f" >> "$ac_dir/Makefile" ;;
46914 { (exit 0); exit 0; }
46916 chmod +x $CONFIG_STATUS
46917 ac_clean_files=$ac_clean_files_save
46920 # configure is writing to config.log, and then calls config.status.
46921 # config.status does its own redirection, appending to config.log.
46922 # Unfortunately, on DOS this fails, as config.log is still kept open
46923 # by configure, so config.status won't be able to write to it; its
46924 # output is simply discarded. So we exec the FD to /dev/null,
46925 # effectively closing config.log, so it can be properly (re)opened and
46926 # appended to by config.status. When coming back to configure, we
46927 # need to make the FD available again.
46928 if test "$no_create" != yes; then
46930 ac_config_status_args=
46931 test "$silent" = yes &&
46932 ac_config_status_args="$ac_config_status_args --quiet"
46934 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46936 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46937 # would make configure fail if this is the last instruction.
46938 $ac_cs_success || { (exit 1); exit 1; }
46942 if test "${support_bat}" = "yes" ; then
46943 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46944 { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46945 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46946 { (exit 1); exit 1; }; }
46951 if test "x$QMAKEQT4" != "xnone"; then
46956 echo "Creating bat Makefile"
46960 ${MAKE:-make} clean
46964 if test X"$GCC" = "Xyes" ; then
46965 echo "Doing make of dependencies"
46966 ${MAKE:-make} depend
46970 chmod 755 install_conf_file build-depkgs-qt-console
46974 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46975 chmod 755 dvd-handler dvd-simulator make_catalog_backup.pl
46976 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46980 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
46981 chmod 755 $c/update_postgresql_tables_10_to_11
46985 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
46986 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
46988 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
46989 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
46991 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
46992 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
46994 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
46995 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
46997 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
46998 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
47000 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
47001 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
47004 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
47005 chmod 755 $c/sqlite
47008 chmod 755 src/win32/build-depkgs-mingw32
47010 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47011 largefile_support="yes"
47014 if test X"$GCC" = "Xyes" ; then
47015 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47016 if test "x${CCVERSION}" = "x" ; then
47017 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47019 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47020 if test x"${CXXVERSION}" = x ; then
47021 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47025 # clean up any old junk
47029 ${MAKE:-make} clean
47031 if test "x${db_type}" = "xInternal" ; then
47034 echo "You have not specified either --enable-client-only or one of the"
47035 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47036 echo " This is not permitted. Please reconfigure."
47038 echo "Aborting the configuration ..."
47045 Configuration on `date`:
47047 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47048 Bacula version: ${BACULA} ${VERSION} (${DATE})
47049 Source code location: ${srcdir}
47050 Install binaries: ${sbindir}
47051 Install libraries: ${libdir}
47052 Install config files: ${sysconfdir}
47053 Scripts directory: ${scriptdir}
47054 Archive directory: ${archivedir}
47055 Working directory: ${working_dir}
47056 PID directory: ${piddir}
47057 Subsys directory: ${subsysdir}
47058 Man directory: ${mandir}
47059 Data directory: ${datarootdir}
47060 Plugin directory: ${plugindir}
47061 C Compiler: ${CC} ${CCVERSION}
47062 C++ Compiler: ${CXX} ${CXXVERSION}
47063 Compiler flags: ${WCFLAGS} ${CFLAGS}
47064 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47066 Statically Linked Tools: ${support_static_tools}
47067 Statically Linked FD: ${support_static_fd}
47068 Statically Linked SD: ${support_static_sd}
47069 Statically Linked DIR: ${support_static_dir}
47070 Statically Linked CONS: ${support_static_cons}
47071 Database type: ${db_type}
47072 Database port: ${db_port}
47073 Database lib: ${DB_LIBS}
47074 Database name: ${db_name}
47075 Database user: ${db_user}
47077 Job Output Email: ${job_email}
47078 Traceback Email: ${dump_email}
47079 SMTP Host Address: ${smtp_host}
47081 Director Port: ${dir_port}
47082 File daemon Port: ${fd_port}
47083 Storage daemon Port: ${sd_port}
47085 Director User: ${dir_user}
47086 Director Group: ${dir_group}
47087 Storage Daemon User: ${sd_user}
47088 Storage DaemonGroup: ${sd_group}
47089 File Daemon User: ${fd_user}
47090 File Daemon Group: ${fd_group}
47092 SQL binaries Directory ${SQL_BINDIR}
47094 Large file support: $largefile_support
47095 Bacula conio support: ${got_conio} ${CONS_LIBS}
47096 readline support: ${got_readline} ${PRTREADLINE_SRC}
47097 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47098 TLS support: ${support_tls}
47099 Encryption support: ${support_crypto}
47100 ZLIB support: ${have_zlib}
47101 enable-smartalloc: ${support_smartalloc}
47102 enable-lockmgr: ${support_lockmgr}
47103 bat support: ${support_bat}
47104 enable-gnome: ${support_gnome} ${gnome_version}
47105 enable-bwx-console: ${support_wx_console} ${wx_version}
47106 enable-tray-monitor: ${support_tray_monitor}
47107 client-only: ${build_client_only}
47108 build-dird: ${build_dird}
47109 build-stored: ${build_stored}
47110 Plugin support: ${have_plugins}
47111 ACL support: ${have_acl}
47112 XATTR support: ${have_xattr}
47113 Python support: ${support_python} ${PYTHON_LIBS}
47114 Batch insert enabled: ${support_batch_insert}
47118 # create a small shell script useful for support with
47119 # configure options and config.out info
47120 cat > scripts/bacula_config << EOF
47123 $ $0 $ac_configure_args
47125 cat config.out >> scripts/bacula_config
47126 echo __EOC__ >> scripts/bacula_config
47127 chmod 755 scripts/bacula_config
47131 # Display a warning message if postgresql client lib is <= 8.1
47132 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47133 -a x$support_batch_insert = xyes
47135 echo "WARNING: Your PostgreSQL client library is too old to detect "
47136 echo " if it was compiled with --enable-thread-safety, consider to"
47137 echo " upgrade it in order to avoid problems with Batch insert mode"