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
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
902 HAVE_FREEBSD_OS_FALSE
906 HAVE_OPENBSD_OS_FALSE
937 BUILD_INCLUDED_LIBINTL
944 INTL_LIBTOOL_SUFFIX_PREFIX
958 TRAY_MONITOR_CPPFLAGS
1045 ac_subst_files='MCOMMON'
1046 ac_precious_vars='build_alias
1064 # Initialize some variables set by options.
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1076 program_transform_name=s,x,x,
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1114 # If the previous option needs an argument, assign it.
1115 if test -n "$ac_prev"; then
1116 eval $ac_prev=\$ac_option
1122 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126 # Accept the important Cygnus configure options, so we can diagnose typos.
1128 case $ac_dashdash$ac_option in
1132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135 bindir=$ac_optarg ;;
1137 -build | --build | --buil | --bui | --bu)
1138 ac_prev=build_alias ;;
1139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140 build_alias=$ac_optarg ;;
1142 -cache-file | --cache-file | --cache-fil | --cache-fi \
1143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144 ac_prev=cache_file ;;
1145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147 cache_file=$ac_optarg ;;
1149 --config-cache | -C)
1150 cache_file=config.cache ;;
1152 -datadir | --datadir | --datadi | --datad)
1154 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155 datadir=$ac_optarg ;;
1157 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158 | --dataroo | --dataro | --datar)
1159 ac_prev=datarootdir ;;
1160 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162 datarootdir=$ac_optarg ;;
1164 -disable-* | --disable-*)
1165 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169 { (exit 1); exit 1; }; }
1170 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171 eval enable_$ac_feature=no ;;
1173 -docdir | --docdir | --docdi | --doc | --do)
1175 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176 docdir=$ac_optarg ;;
1178 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181 dvidir=$ac_optarg ;;
1183 -enable-* | --enable-*)
1184 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190 eval enable_$ac_feature=\$ac_optarg ;;
1192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194 | --exec | --exe | --ex)
1195 ac_prev=exec_prefix ;;
1196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198 | --exec=* | --exe=* | --ex=*)
1199 exec_prefix=$ac_optarg ;;
1201 -gas | --gas | --ga | --g)
1202 # Obsolete; use --with-gas.
1205 -help | --help | --hel | --he | -h)
1206 ac_init_help=long ;;
1207 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208 ac_init_help=recursive ;;
1209 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210 ac_init_help=short ;;
1212 -host | --host | --hos | --ho)
1213 ac_prev=host_alias ;;
1214 -host=* | --host=* | --hos=* | --ho=*)
1215 host_alias=$ac_optarg ;;
1217 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1219 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1221 htmldir=$ac_optarg ;;
1223 -includedir | --includedir | --includedi | --included | --include \
1224 | --includ | --inclu | --incl | --inc)
1225 ac_prev=includedir ;;
1226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227 | --includ=* | --inclu=* | --incl=* | --inc=*)
1228 includedir=$ac_optarg ;;
1230 -infodir | --infodir | --infodi | --infod | --info | --inf)
1232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233 infodir=$ac_optarg ;;
1235 -libdir | --libdir | --libdi | --libd)
1237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238 libdir=$ac_optarg ;;
1240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241 | --libexe | --libex | --libe)
1242 ac_prev=libexecdir ;;
1243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244 | --libexe=* | --libex=* | --libe=*)
1245 libexecdir=$ac_optarg ;;
1247 -localedir | --localedir | --localedi | --localed | --locale)
1248 ac_prev=localedir ;;
1249 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250 localedir=$ac_optarg ;;
1252 -localstatedir | --localstatedir | --localstatedi | --localstated \
1253 | --localstate | --localstat | --localsta | --localst | --locals)
1254 ac_prev=localstatedir ;;
1255 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257 localstatedir=$ac_optarg ;;
1259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262 mandir=$ac_optarg ;;
1264 -nfp | --nfp | --nf)
1265 # Obsolete; use --without-fp.
1268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269 | --no-cr | --no-c | -n)
1272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278 | --oldin | --oldi | --old | --ol | --o)
1279 ac_prev=oldincludedir ;;
1280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283 oldincludedir=$ac_optarg ;;
1285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288 prefix=$ac_optarg ;;
1290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291 | --program-pre | --program-pr | --program-p)
1292 ac_prev=program_prefix ;;
1293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295 program_prefix=$ac_optarg ;;
1297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298 | --program-suf | --program-su | --program-s)
1299 ac_prev=program_suffix ;;
1300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302 program_suffix=$ac_optarg ;;
1304 -program-transform-name | --program-transform-name \
1305 | --program-transform-nam | --program-transform-na \
1306 | --program-transform-n | --program-transform- \
1307 | --program-transform | --program-transfor \
1308 | --program-transfo | --program-transf \
1309 | --program-trans | --program-tran \
1310 | --progr-tra | --program-tr | --program-t)
1311 ac_prev=program_transform_name ;;
1312 -program-transform-name=* | --program-transform-name=* \
1313 | --program-transform-nam=* | --program-transform-na=* \
1314 | --program-transform-n=* | --program-transform-=* \
1315 | --program-transform=* | --program-transfor=* \
1316 | --program-transfo=* | --program-transf=* \
1317 | --program-trans=* | --program-tran=* \
1318 | --progr-tra=* | --program-tr=* | --program-t=*)
1319 program_transform_name=$ac_optarg ;;
1321 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1323 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324 pdfdir=$ac_optarg ;;
1326 -psdir | --psdir | --psdi | --psd | --ps)
1328 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332 | -silent | --silent | --silen | --sile | --sil)
1335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1339 sbindir=$ac_optarg ;;
1341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343 | --sharedst | --shareds | --shared | --share | --shar \
1345 ac_prev=sharedstatedir ;;
1346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1350 sharedstatedir=$ac_optarg ;;
1352 -site | --site | --sit)
1354 -site=* | --site=* | --sit=*)
1357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360 srcdir=$ac_optarg ;;
1362 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363 | --syscon | --sysco | --sysc | --sys | --sy)
1364 ac_prev=sysconfdir ;;
1365 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367 sysconfdir=$ac_optarg ;;
1369 -target | --target | --targe | --targ | --tar | --ta | --t)
1370 ac_prev=target_alias ;;
1371 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372 target_alias=$ac_optarg ;;
1374 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1377 -version | --version | --versio | --versi | --vers | -V)
1378 ac_init_version=: ;;
1381 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 { echo "$as_me: error: invalid package name: $ac_package" >&2
1385 { (exit 1); exit 1; }; }
1386 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387 eval with_$ac_package=\$ac_optarg ;;
1389 -without-* | --without-*)
1390 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393 { echo "$as_me: error: invalid package name: $ac_package" >&2
1394 { (exit 1); exit 1; }; }
1395 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396 eval with_$ac_package=no ;;
1399 # Obsolete; use --with-x.
1402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403 | --x-incl | --x-inc | --x-in | --x-i)
1404 ac_prev=x_includes ;;
1405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407 x_includes=$ac_optarg ;;
1409 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411 ac_prev=x_libraries ;;
1412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414 x_libraries=$ac_optarg ;;
1416 -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418 { (exit 1); exit 1; }; }
1422 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423 # Reject names that are not valid shell variable names.
1424 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426 { (exit 1); exit 1; }; }
1427 eval $ac_envvar=\$ac_optarg
1428 export $ac_envvar ;;
1431 # FIXME: should be removed in autoconf 3.0.
1432 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1441 if test -n "$ac_prev"; then
1442 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443 { echo "$as_me: error: missing argument to $ac_option" >&2
1444 { (exit 1); exit 1; }; }
1447 # Be sure to have absolute directory names.
1448 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449 datadir sysconfdir sharedstatedir localstatedir includedir \
1450 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451 libdir localedir mandir
1453 eval ac_val=\$$ac_var
1455 [\\/$]* | ?:[\\/]* ) continue;;
1456 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1458 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459 { (exit 1); exit 1; }; }
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1467 target=$target_alias
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471 if test "x$build_alias" = x; then
1472 cross_compiling=maybe
1473 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474 If a cross compiler is detected then cross compile mode will be used." >&2
1475 elif test "x$build_alias" != "x$host_alias"; then
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483 test "$silent" = yes && exec 6>/dev/null
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489 { echo "$as_me: error: Working directory cannot be determined" >&2
1490 { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492 { echo "$as_me: error: pwd does not report name of working directory" >&2
1493 { (exit 1); exit 1; }; }
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$0" : 'X\(//\)[^/]' \| \
1503 X"$0" : 'X\(//\)$' \| \
1504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533 { (exit 1); exit 1; }; }
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1537 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538 { (exit 1); exit 1; }; }
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 for ac_var in $ac_precious_vars; do
1551 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_env_${ac_var}_value=\$${ac_var}
1553 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 # Report the --help message.
1560 if test "$ac_init_help" = "long"; then
1561 # Omit some internal or obsolete options to make the list less imposing.
1562 # This message is too long to be a string in the A/UX 3.1 sh.
1564 \`configure' configures this package to adapt to many kinds of systems.
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE. See below for descriptions of some of the useful variables.
1571 Defaults for the options are specified in brackets.
1574 -h, --help display this help and exit
1575 --help=short display options specific to this package
1576 --help=recursive display the short help of all the included packages
1577 -V, --version display version information and exit
1578 -q, --quiet, --silent do not print \`checking...' messages
1579 --cache-file=FILE cache test results in FILE [disabled]
1580 -C, --config-cache alias for \`--cache-file=config.cache'
1581 -n, --no-create do not create output files
1582 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1584 Installation directories:
1585 --prefix=PREFIX install architecture-independent files in PREFIX
1586 [$ac_default_prefix]
1587 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1595 For better control, use the options below.
1597 Fine tuning of the installation directories:
1598 --bindir=DIR user executables [EPREFIX/bin]
1599 --sbindir=DIR system admin executables [EPREFIX/sbin]
1600 --libexecdir=DIR program executables [EPREFIX/libexec]
1601 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1602 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1603 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1604 --libdir=DIR object code libraries [EPREFIX/lib]
1605 --includedir=DIR C header files [PREFIX/include]
1606 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1607 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1608 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1609 --infodir=DIR info documentation [DATAROOTDIR/info]
1610 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1611 --mandir=DIR man documentation [DATAROOTDIR/man]
1612 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1613 --htmldir=DIR html documentation [DOCDIR]
1614 --dvidir=DIR dvi documentation [DOCDIR]
1615 --pdfdir=DIR pdf documentation [DOCDIR]
1616 --psdir=DIR ps documentation [DOCDIR]
1622 --x-includes=DIR X include files are in DIR
1623 --x-libraries=DIR X library files are in DIR
1626 --build=BUILD configure for building on BUILD [guessed]
1627 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631 if test -n "$ac_init_help"; then
1636 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1637 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1638 --enable-libtool enable building using GNU libtool [default=yes]
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=no]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --enable-includes enable installing of include files [default=no]
1645 --disable-nls do not use Native Language Support
1646 --disable-rpath do not hardcode runtime library paths
1647 --enable-gnome enable build of bgnome-console GUI [default=no]
1648 --enable-bat enable build of bat Qt4 GUI [default=no]
1649 --enable-bwx-console enable build of wxWidgets console [default=no]
1650 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1652 --enable-smartalloc enable smartalloc debugging support [default=no]
1653 --enable-lockmgr enable lock manager support [default=no]
1654 --enable-static-tools enable static tape tools [default=no]
1655 --enable-static-fd enable static File daemon [default=no]
1656 --enable-static-sd enable static Storage daemon [default=no]
1657 --enable-static-dir enable static Director [default=no]
1658 --enable-static-cons enable static Console [default=no]
1659 --enable-client-only build client (File daemon) only [default=no]
1660 --enable-build-dird enable building of dird (Director) [default=yes]
1661 --enable-build-stored enable building of stored (Storage daemon)
1663 --disable-conio disable conio support [default=no]
1664 --enable-ipv6 enable ipv6 support [default=yes]
1665 --disable-readline disable readline support [default=yes]
1666 --enable-batch-insert enable the DB batch insert code [default=no]
1667 --disable-largefile omit support for large files
1668 --disable-acl disable acl support [default=auto]
1669 --disable-xattr disable xattr support [default=auto]
1672 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1673 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1674 --with-pic try to use only PIC/non-PIC objects [default=use
1676 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1677 --with-gnu-ld assume the C compiler uses GNU ld default=no
1678 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1679 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1680 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1681 --without-libintl-prefix don't search for libintl in includedir and libdir
1682 --with-included-gettext use the GNU gettext library included here
1683 --with-qwt[=DIR] specify qwt library directory
1684 --with-readline[=DIR] specify readline library directory
1685 --with-python[=DIR] Include Python support. DIR is the Python base
1686 install directory, default is to search through a
1687 number of common places for the Python files.
1688 --with-tcp-wrappers[=DIR]
1689 enable tcpwrappers support
1690 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1691 --with-working-dir=PATH specify path of Bacula working directory
1692 --with-archivedir=PATH specify path of SD archive directory
1693 --with-scriptdir=PATH specify path of Bacula scripts directory
1694 --with-plugindir=PATH specify path of Bacula plugins directory
1695 --with-dump-email=EMAIL dump email address
1696 --with-job-email=EMAIL job output email address
1697 --with-smtp-host=HOST SMTP mail host address
1698 --with-pid-dir=PATH specify location of Bacula pid files
1699 --with-subsys-dir=PATH specify location of Bacula subsys file
1700 --with-baseport=PORT specify base port address for daemons
1701 --with-dir-password=PASSWORD
1702 specify Director's password
1703 --with-fd-password=PASSWORD
1704 specify Client's password
1705 --with-sd-password=PASSWORD
1706 specify Storage daemon's password
1707 --with-mon-dir-password=PASSWORD
1708 specify Director's password used by the monitor
1709 --with-mon-fd-password=PASSWORD
1710 specify Client's password used by the monitor
1711 --with-mon-sd-password=PASSWORD
1712 specify Storage daemon's password used by the
1714 --with-db-name=DBNAME specify database name [default=bacula]
1715 --with-db-user=UNAME specify database user [default=bacula]
1716 --with-db-password=PWD specify database password [default=*none*]
1717 --with-db-port=DBPORT specify a database port [default=null]
1718 --with-dir-user=USER specify user for Director daemon
1719 --with-dir-group=GROUP specify group for Director daemon
1720 --with-sd-user=USER specify user for Storage daemon
1721 --with-sd-group=GROUP specify group for Storage daemon
1722 --with-fd-user=USER specify user for File daemon
1723 --with-fd-group=GROUP specify group for File daemon
1724 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1725 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1726 base install directory, [default=/usr/local/pgsql]
1727 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1728 directory, default is to search through a number of
1729 common places for the MySQL files.
1730 --with-embedded-mysql[=DIR]
1731 Include MySQL support. DIR is the MySQL base install
1732 directory, default is to search through a number of
1733 common places for the MySQL files.
1734 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1735 install directory, default is to search through a
1736 number of common places for the SQLite3 files.
1737 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1738 install directory, default is to search through a
1739 number of common places for the SQLite files.
1740 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1741 directory, default is to search through a number of
1742 common places for the DBI files.
1743 --with-dbi-driver[=DRIVER]
1744 Suport for DBI driver. DRIVER is the one DBI driver
1745 like Mysql, Postgresql, others. Default is to not
1746 configure any driver.
1747 --with-x use the X Window System
1749 Some influential environment variables:
1750 CC C compiler command
1751 CFLAGS C compiler flags
1752 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1753 nonstandard directory <lib dir>
1754 LIBS libraries to pass to the linker, e.g. -l<library>
1755 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1756 you have headers in a nonstandard directory <include dir>
1757 CXX C++ compiler command
1758 CXXFLAGS C++ compiler flags
1760 WXCONFIG wx-config command. On some systems, you must set it to
1761 wx-config-2.6 to use wxWidgets 2.6.
1762 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1763 CXXCPP C++ preprocessor
1764 XMKMF Path to xmkmf, Makefile generator for X Window System
1766 Use these variables to override the choices made by `configure' or to help
1767 it to find libraries and programs with nonstandard names/locations.
1773 if test "$ac_init_help" = "recursive"; then
1774 # If there are subdirs, report their specific --help.
1775 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776 test -d "$ac_dir" || continue
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1783 # A ".." for each directory in $ac_dir_suffix.
1784 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1785 case $ac_top_builddir_sub in
1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1796 .) # We are building in place.
1798 ac_top_srcdir=$ac_top_builddir_sub
1799 ac_abs_top_srcdir=$ac_pwd ;;
1800 [\\/]* | ?:[\\/]* ) # Absolute name.
1801 ac_srcdir=$srcdir$ac_dir_suffix;
1802 ac_top_srcdir=$srcdir
1803 ac_abs_top_srcdir=$srcdir ;;
1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806 ac_top_srcdir=$ac_top_build_prefix$srcdir
1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1811 cd "$ac_dir" || { ac_status=$?; continue; }
1812 # Check for guested configure.
1813 if test -f "$ac_srcdir/configure.gnu"; then
1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816 elif test -f "$ac_srcdir/configure"; then
1818 $SHELL "$ac_srcdir/configure" --help=recursive
1820 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822 cd "$ac_pwd" || { ac_status=$?; break; }
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1830 generated by GNU Autoconf 2.61
1832 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1833 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1834 This configure script is free software; the Free Software Foundation
1835 gives unlimited permission to copy, distribute and modify it.
1839 cat >config.log <<_ACEOF
1840 This file contains any messages produced by compilers while
1841 running configure, to aid debugging if configure makes a mistake.
1843 It was created by $as_me, which was
1844 generated by GNU Autoconf 2.61. Invocation command line was
1856 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1865 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1866 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1867 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1869 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1870 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1871 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir=.
1880 echo "PATH: $as_dir"
1896 # Keep a trace of the command line.
1897 # Strip out --no-create and --no-recursion so they do not pile up.
1898 # Strip out --silent because we don't want to record it for future runs.
1899 # Also quote any args containing shell meta-characters.
1900 # Make two passes to allow for proper duplicate-argument suppression.
1904 ac_must_keep_next=false
1910 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1912 | -silent | --silent | --silen | --sile | --sil)
1915 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1920 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1921 if test $ac_must_keep_next = true; then
1922 ac_must_keep_next=false # Got value, back to normal.
1925 *=* | --config-cache | -C | -disable-* | --disable-* \
1926 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1927 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1928 | -with-* | --with-* | -without-* | --without-* | --x)
1929 case "$ac_configure_args0 " in
1930 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1933 -* ) ac_must_keep_next=true ;;
1936 ac_configure_args="$ac_configure_args '$ac_arg'"
1941 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1942 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1944 # When interrupted or exit'd, cleanup temporary files, and complete
1945 # config.log. We remove comments because anyway the quotes in there
1946 # would cause problems or look ugly.
1947 # WARNING: Use '\'' to represent an apostrophe within the trap.
1948 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949 trap 'exit_status=$?
1950 # Save into config.log some information that might help in debugging.
1955 ## ---------------- ##
1956 ## Cache variables. ##
1957 ## ---------------- ##
1960 # The following way of writing the cache mishandles newlines in values,
1962 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963 eval ac_val=\$$ac_var
1967 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1968 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1971 _ | IFS | as_nl) ;; #(
1972 *) $as_unset $ac_var ;;
1977 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1978 *${as_nl}ac_space=\ *)
1980 "s/'\''/'\''\\\\'\'''\''/g;
1981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992 ## ----------------- ##
1993 ## Output variables. ##
1994 ## ----------------- ##
1997 for ac_var in $ac_subst_vars
1999 eval ac_val=\$$ac_var
2001 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003 echo "$ac_var='\''$ac_val'\''"
2007 if test -n "$ac_subst_files"; then
2009 ## ------------------- ##
2010 ## File substitutions. ##
2011 ## ------------------- ##
2014 for ac_var in $ac_subst_files
2016 eval ac_val=\$$ac_var
2018 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 echo "$ac_var='\''$ac_val'\''"
2025 if test -s confdefs.h; then
2035 test "$ac_signal" != 0 &&
2036 echo "$as_me: caught signal $ac_signal"
2037 echo "$as_me: exit $exit_status"
2039 rm -f core *.core core.conftest.* &&
2040 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2043 for ac_signal in 1 2 13 15; do
2044 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2049 rm -f -r conftest* confdefs.h
2051 # Predefined preprocessor variables.
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_NAME "$PACKAGE_NAME"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_STRING "$PACKAGE_STRING"
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2078 # Let the site file select an alternate cache file if it wants to.
2079 # Prefer explicitly selected file to automatically selected ones.
2080 if test -n "$CONFIG_SITE"; then
2081 set x "$CONFIG_SITE"
2082 elif test "x$prefix" != xNONE; then
2083 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2085 set x "$ac_default_prefix/share/config.site" \
2086 "$ac_default_prefix/etc/config.site"
2091 if test -r "$ac_site_file"; then
2092 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2093 echo "$as_me: loading site script $ac_site_file" >&6;}
2094 sed 's/^/| /' "$ac_site_file" >&5
2099 if test -r "$cache_file"; then
2100 # Some versions of bash will fail to source /dev/null (special
2101 # files actually), so we avoid doing that.
2102 if test -f "$cache_file"; then
2103 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2104 echo "$as_me: loading cache $cache_file" >&6;}
2106 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2107 *) . "./$cache_file";;
2111 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2112 echo "$as_me: creating cache $cache_file" >&6;}
2116 # Check that the precious variables saved in the cache have kept the same
2118 ac_cache_corrupted=false
2119 for ac_var in $ac_precious_vars; do
2120 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2121 eval ac_new_set=\$ac_env_${ac_var}_set
2122 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2123 eval ac_new_val=\$ac_env_${ac_var}_value
2124 case $ac_old_set,$ac_new_set in
2126 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2127 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2128 ac_cache_corrupted=: ;;
2130 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2131 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2132 ac_cache_corrupted=: ;;
2135 if test "x$ac_old_val" != "x$ac_new_val"; then
2136 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2137 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2138 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2139 echo "$as_me: former value: $ac_old_val" >&2;}
2140 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2141 echo "$as_me: current value: $ac_new_val" >&2;}
2142 ac_cache_corrupted=:
2145 # Pass precious variables to config.status.
2146 if test "$ac_new_set" = set; then
2148 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2149 *) ac_arg=$ac_var=$ac_new_val ;;
2151 case " $ac_configure_args " in
2152 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2153 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2157 if $ac_cache_corrupted; then
2158 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2159 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2161 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2162 { (exit 1); exit 1; }; }
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2195 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2196 if test -f "$ac_dir/install-sh"; then
2198 ac_install_sh="$ac_aux_dir/install-sh -c"
2200 elif test -f "$ac_dir/install.sh"; then
2202 ac_install_sh="$ac_aux_dir/install.sh -c"
2204 elif test -f "$ac_dir/shtool"; then
2206 ac_install_sh="$ac_aux_dir/shtool install -c"
2210 if test -z "$ac_aux_dir"; then
2211 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2212 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2213 { (exit 1); exit 1; }; }
2216 # These three variables are undocumented and unsupported,
2217 # and are intended to be withdrawn in a future Autoconf release.
2218 # They can cause serious problems if a builder's source tree is in a directory
2219 # whose full name contains unusual characters.
2220 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2221 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2222 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2225 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2233 # Extract the first word of "$ac_prog", so it can be a program name with args.
2234 set dummy $ac_prog; ac_word=$2
2235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 TRUEPRG=$ac_cv_path_TRUEPRG
2264 if test -n "$TRUEPRG"; then
2265 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2266 echo "${ECHO_T}$TRUEPRG" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2273 test -n "$TRUEPRG" && break
2275 test -n "$TRUEPRG" || TRUEPRG=":"
2277 for ac_prog in false
2279 # Extract the first word of "$ac_prog", so it can be a program name with args.
2280 set dummy $ac_prog; ac_word=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 FALSEPRG=$ac_cv_path_FALSEPRG
2310 if test -n "$FALSEPRG"; then
2311 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2312 echo "${ECHO_T}$FALSEPRG" >&6; }
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2319 test -n "$FALSEPRG" && break
2321 test -n "$FALSEPRG" || FALSEPRG=":"
2326 if test "x$BACULA" != x; then
2327 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2329 BACULA=${BACULA-Bacula}
2330 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2331 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2332 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2333 echo "configuring for ${BACULA} $VERSION ($DATE)"
2337 ac_cpp='$CPP $CPPFLAGS'
2338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2343 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 if test -n "$CC"; then
2371 { echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6; }
2374 { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2380 if test -z "$ac_cv_prog_CC"; then
2382 # Extract the first word of "gcc", so it can be a program name with args.
2383 set dummy gcc; ac_word=$2
2384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 if test -n "$ac_ct_CC"; then
2390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399 ac_cv_prog_ac_ct_CC="gcc"
2400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410 if test -n "$ac_ct_CC"; then
2411 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2412 echo "${ECHO_T}$ac_ct_CC" >&6; }
2414 { echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6; }
2418 if test "x$ac_ct_CC" = x; then
2421 case $cross_compiling:$ac_tool_warned in
2423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&5
2426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2429 ac_tool_warned=yes ;;
2437 if test -z "$CC"; then
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}cc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_CC="${ac_tool_prefix}cc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 if test -n "$CC"; then
2468 { echo "$as_me:$LINENO: result: $CC" >&5
2469 echo "${ECHO_T}$CC" >&6; }
2471 { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2478 if test -z "$CC"; then
2479 # Extract the first word of "cc", so it can be a program name with args.
2480 set dummy cc; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_CC+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$CC"; then
2487 ac_cv_prog_CC="$CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2498 ac_prog_rejected=yes
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 if test $ac_prog_rejected = yes; then
2510 # We found a bogon in the path, so make sure we never use it.
2511 set dummy $ac_cv_prog_CC
2513 if test $# != 0; then
2514 # We chose a different compiler from the bogus one.
2515 # However, it has the same basename, so the bogon will be chosen
2516 # first if we set CC to just the basename; use the full file name.
2518 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2524 if test -n "$CC"; then
2525 { echo "$as_me:$LINENO: result: $CC" >&5
2526 echo "${ECHO_T}$CC" >&6; }
2528 { echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6; }
2534 if test -z "$CC"; then
2535 if test -n "$ac_tool_prefix"; then
2536 for ac_prog in cl.exe
2538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 if test -n "$CC"; then
2567 { echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6; }
2570 { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2575 test -n "$CC" && break
2578 if test -z "$CC"; then
2580 for ac_prog in cl.exe
2582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2583 set dummy $ac_prog; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_ac_ct_CC="$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 echo "${ECHO_T}$ac_ct_CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2619 test -n "$ac_ct_CC" && break
2622 if test "x$ac_ct_CC" = x; then
2625 case $cross_compiling:$ac_tool_warned in
2627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet. If you think this
2629 configuration is useful to you, please write to autoconf@gnu.org." >&5
2630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2631 whose name does not start with the host triplet. If you think this
2632 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2633 ac_tool_warned=yes ;;
2642 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2643 See \`config.log' for more details." >&5
2644 echo "$as_me: error: no acceptable C compiler found in \$PATH
2645 See \`config.log' for more details." >&2;}
2646 { (exit 1); exit 1; }; }
2648 # Provide some information about the compiler.
2649 echo "$as_me:$LINENO: checking for C compiler version" >&5
2650 ac_compiler=`set X $ac_compile; echo $2`
2651 { (ac_try="$ac_compiler --version >&5"
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compiler --version >&5") 2>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }
2661 { (ac_try="$ac_compiler -v >&5"
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_compiler -v >&5") 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (ac_try="$ac_compiler -V >&5"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compiler -V >&5") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 ac_clean_files_save=$ac_clean_files
2698 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2699 # Try to create an executable without -o first, disregard a.out.
2700 # It will help us diagnose broken compilers, and finding out an intuition
2702 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2703 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2704 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2706 # List of possible output files, starting from the most likely.
2707 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2708 # only as a last resort. b.out is created by i960 compilers.
2709 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2711 # The IRIX 6 linker writes into existing files which may not be
2712 # executable, retaining their permissions. Remove them first so a
2713 # subsequent execution test works.
2715 for ac_file in $ac_files
2718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2719 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2724 if { (ac_try="$ac_link_default"
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_link_default") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; then
2734 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2735 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2736 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2737 # so that the user can short-circuit this test for compilers unknown to
2739 for ac_file in $ac_files ''
2741 test -f "$ac_file" || continue
2743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2746 # We found the default executable, but exeext='' is most
2750 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2752 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2754 # We set ac_cv_exeext here because the later test for it is not
2755 # safe: cross compilers may not add the suffix if given an `-o'
2756 # argument, so we may need to know it at that point already.
2757 # Even if this section looks crufty: it has the advantage of
2764 test "$ac_cv_exeext" = no && ac_cv_exeext=
2770 { echo "$as_me:$LINENO: result: $ac_file" >&5
2771 echo "${ECHO_T}$ac_file" >&6; }
2772 if test -z "$ac_file"; then
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2776 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2777 See \`config.log' for more details." >&5
2778 echo "$as_me: error: C compiler cannot create executables
2779 See \`config.log' for more details." >&2;}
2780 { (exit 77); exit 77; }; }
2783 ac_exeext=$ac_cv_exeext
2785 # Check that the compiler produces executables we can run. If not, either
2786 # the compiler is broken, or we cross compile.
2787 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2788 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2789 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2790 # If not cross compiling, check that we can run a simple program.
2791 if test "$cross_compiling" != yes; then
2792 if { ac_try='./$ac_file'
2793 { (case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_try") 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2804 if test "$cross_compiling" = maybe; then
2807 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2808 If you meant to cross compile, use \`--host'.
2809 See \`config.log' for more details." >&5
2810 echo "$as_me: error: cannot run C compiled programs.
2811 If you meant to cross compile, use \`--host'.
2812 See \`config.log' for more details." >&2;}
2813 { (exit 1); exit 1; }; }
2817 { echo "$as_me:$LINENO: result: yes" >&5
2818 echo "${ECHO_T}yes" >&6; }
2820 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2821 ac_clean_files=$ac_clean_files_save
2822 # Check that the compiler produces executables we can run. If not, either
2823 # the compiler is broken, or we cross compile.
2824 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2825 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2826 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2827 echo "${ECHO_T}$cross_compiling" >&6; }
2829 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2830 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2831 if { (ac_try="$ac_link"
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_link") 2>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; then
2841 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2842 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2843 # work properly (i.e., refer to `conftest.exe'), while it won't with
2845 for ac_file in conftest.exe conftest conftest.*; do
2846 test -f "$ac_file" || continue
2848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2849 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2862 rm -f conftest$ac_cv_exeext
2863 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2864 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2866 rm -f conftest.$ac_ext
2867 EXEEXT=$ac_cv_exeext
2869 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2870 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2871 if test "${ac_cv_objext+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2889 rm -f conftest.o conftest.obj
2890 if { (ac_try="$ac_compile"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compile") 2>&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; then
2900 for ac_file in conftest.o conftest.obj conftest.*; do
2901 test -f "$ac_file" || continue;
2903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2904 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2915 See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2919 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2921 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2922 echo "${ECHO_T}$ac_cv_objext" >&6; }
2923 OBJEXT=$ac_cv_objext
2925 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2926 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2927 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 cat >conftest.$ac_ext <<_ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2948 rm -f conftest.$ac_objext
2949 if { (ac_try="$ac_compile"
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compile") 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } && {
2962 test -z "$ac_c_werror_flag" ||
2963 test ! -s conftest.err
2964 } && test -s conftest.$ac_objext; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2977 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2978 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2979 GCC=`test $ac_compiler_gnu = yes && echo yes`
2980 ac_test_CFLAGS=${CFLAGS+set}
2981 ac_save_CFLAGS=$CFLAGS
2982 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2983 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_cc_g+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 ac_save_c_werror_flag=$ac_c_werror_flag
2988 ac_c_werror_flag=yes
2991 cat >conftest.$ac_ext <<_ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.$ac_objext; then
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } && {
3058 test -z "$ac_c_werror_flag" ||
3059 test ! -s conftest.err
3060 } && test -s conftest.$ac_objext; then
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 ac_c_werror_flag=$ac_save_c_werror_flag
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 ac_c_werror_flag=$ac_save_c_werror_flag
3117 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3118 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3119 if test "$ac_test_CFLAGS" = set; then
3120 CFLAGS=$ac_save_CFLAGS
3121 elif test $ac_cv_prog_cc_g = yes; then
3122 if test "$GCC" = yes; then
3128 if test "$GCC" = yes; then
3134 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3135 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_cc_c89+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 ac_cv_prog_cc_c89=no
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3149 #include <sys/types.h>
3150 #include <sys/stat.h>
3151 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3152 struct buf { int x; };
3153 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3154 static char *e (p, i)
3160 static char *f (char * (*g) (char **, int), char **p, ...)
3165 s = g (p, va_arg (v,int));
3170 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3171 function prototypes and stuff, but not '\xHH' hex character constants.
3172 These don't provoke an error unfortunately, instead are silently treated
3173 as 'x'. The following induces an error, until -std is added to get
3174 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3175 array size at least. It's necessary to write '\x00'==0 to get something
3176 that's true only with -std. */
3177 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3179 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3180 inside strings and character constants. */
3182 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3184 int test (int i, double x);
3185 struct s1 {int (*f) (int a);};
3186 struct s2 {int (*f) (double a);};
3187 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3193 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3198 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3199 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3201 CC="$ac_save_CC $ac_arg"
3202 rm -f conftest.$ac_objext
3203 if { (ac_try="$ac_compile"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_compile") 2>conftest.er1
3211 grep -v '^ *+' conftest.er1 >conftest.err
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } && {
3216 test -z "$ac_c_werror_flag" ||
3217 test ! -s conftest.err
3218 } && test -s conftest.$ac_objext; then
3219 ac_cv_prog_cc_c89=$ac_arg
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3227 rm -f core conftest.err conftest.$ac_objext
3228 test "x$ac_cv_prog_cc_c89" != "xno" && break
3230 rm -f conftest.$ac_ext
3235 case "x$ac_cv_prog_cc_c89" in
3237 { echo "$as_me:$LINENO: result: none needed" >&5
3238 echo "${ECHO_T}none needed" >&6; } ;;
3240 { echo "$as_me:$LINENO: result: unsupported" >&5
3241 echo "${ECHO_T}unsupported" >&6; } ;;
3243 CC="$CC $ac_cv_prog_cc_c89"
3244 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3245 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3250 ac_cpp='$CPP $CPPFLAGS'
3251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 ac_cpp='$CXXCPP $CPPFLAGS'
3257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3260 if test -z "$CXX"; then
3261 if test -n "$CCC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3271 if test "${ac_cv_prog_CXX+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 if test -n "$CXX"; then
3275 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 if test -n "$CXX"; then
3296 { echo "$as_me:$LINENO: result: $CXX" >&5
3297 echo "${ECHO_T}$CXX" >&6; }
3299 { echo "$as_me:$LINENO: result: no" >&5
3300 echo "${ECHO_T}no" >&6; }
3304 test -n "$CXX" && break
3307 if test -z "$CXX"; then
3309 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3311 # Extract the first word of "$ac_prog", so it can be a program name with args.
3312 set dummy $ac_prog; ac_word=$2
3313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 if test -n "$ac_ct_CXX"; then
3319 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_ac_ct_CXX="$ac_prog"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3339 if test -n "$ac_ct_CXX"; then
3340 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3341 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3343 { echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6; }
3348 test -n "$ac_ct_CXX" && break
3351 if test "x$ac_ct_CXX" = x; then
3354 case $cross_compiling:$ac_tool_warned in
3356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3357 whose name does not start with the host triplet. If you think this
3358 configuration is useful to you, please write to autoconf@gnu.org." >&5
3359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3360 whose name does not start with the host triplet. If you think this
3361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3362 ac_tool_warned=yes ;;
3370 # Provide some information about the compiler.
3371 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3372 ac_compiler=`set X $ac_compile; echo $2`
3373 { (ac_try="$ac_compiler --version >&5"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_compiler --version >&5") 2>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3383 { (ac_try="$ac_compiler -v >&5"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_compiler -v >&5") 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }
3393 { (ac_try="$ac_compiler -V >&5"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compiler -V >&5") 2>&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }
3404 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3405 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3406 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3427 rm -f conftest.$ac_objext
3428 if { (ac_try="$ac_compile"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_compile") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } && {
3441 test -z "$ac_cxx_werror_flag" ||
3442 test ! -s conftest.err
3443 } && test -s conftest.$ac_objext; then
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3456 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3457 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3458 GXX=`test $ac_compiler_gnu = yes && echo yes`
3459 ac_test_CXXFLAGS=${CXXFLAGS+set}
3460 ac_save_CXXFLAGS=$CXXFLAGS
3461 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3462 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3463 if test "${ac_cv_prog_cxx_g+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3467 ac_cxx_werror_flag=yes
3470 cat >conftest.$ac_ext <<_ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3485 rm -f conftest.$ac_objext
3486 if { (ac_try="$ac_compile"
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_compile") 2>conftest.er1
3494 grep -v '^ *+' conftest.er1 >conftest.err
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } && {
3499 test -z "$ac_cxx_werror_flag" ||
3500 test ! -s conftest.err
3501 } && test -s conftest.$ac_objext; then
3502 ac_cv_prog_cxx_g=yes
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3523 rm -f conftest.$ac_objext
3524 if { (ac_try="$ac_compile"
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_compile") 2>conftest.er1
3532 grep -v '^ *+' conftest.er1 >conftest.err
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } && {
3537 test -z "$ac_cxx_werror_flag" ||
3538 test ! -s conftest.err
3539 } && test -s conftest.$ac_objext; then
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3562 rm -f conftest.$ac_objext
3563 if { (ac_try="$ac_compile"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compile") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } && {
3576 test -z "$ac_cxx_werror_flag" ||
3577 test ! -s conftest.err
3578 } && test -s conftest.$ac_objext; then
3579 ac_cv_prog_cxx_g=yes
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3596 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3597 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3598 if test "$ac_test_CXXFLAGS" = set; then
3599 CXXFLAGS=$ac_save_CXXFLAGS
3600 elif test $ac_cv_prog_cxx_g = yes; then
3601 if test "$GXX" = yes; then
3607 if test "$GXX" = yes; then
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619 if test "x$CC" != xcc; then
3620 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3621 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3623 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3624 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3626 set dummy $CC; ac_cc=`echo $2 |
3627 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3628 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3646 # Make sure it works both with $CC and with simple cc.
3647 # We do the test twice because some compilers refuse to overwrite an
3648 # existing .o file with -o, though they will create one.
3649 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3651 if { (case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_try") 2>&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665 (eval "$ac_try") 2>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); };
3670 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3671 if test "x$CC" != xcc; then
3672 # Test first that cc exists at all.
3673 if { ac_try='cc -c conftest.$ac_ext >&5'
3674 { (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); }; }; then
3683 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3685 if { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_try") 2>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); };
3707 # cc exists but doesn't like -o.
3708 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3713 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3715 rm -f core conftest*
3718 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3719 { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3722 { echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6; }
3725 cat >>confdefs.h <<\_ACEOF
3726 #define NO_MINUS_C_MINUS_O 1
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3737 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3738 # On Suns, sometimes $CPP names a directory.
3739 if test -n "$CPP" && test -d "$CPP"; then
3742 if test -z "$CPP"; then
3743 if test "${ac_cv_prog_CPP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 # Double quotes because CPP needs to be expanded
3747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3750 for ac_c_preproc_warn_flag in '' yes
3752 # Use a header file that comes with gcc, so configuring glibc
3753 # with a fresh cross-compiler works.
3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 # <limits.h> exists even on freestanding compilers.
3756 # On the NeXT, cc -E runs the code through the compiler's parser,
3757 # not just through cpp. "Syntax error" is here to catch this case.
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 # include <limits.h>
3767 # include <assert.h>
3771 if { (ac_try="$ac_cpp conftest.$ac_ext"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } >/dev/null && {
3784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 # Broken: fails on valid input.
3796 rm -f conftest.err conftest.$ac_ext
3798 # OK, works on sane cases. Now check whether nonexistent headers
3799 # can be detected and how.
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 #include <ac_nonexistent.h>
3808 if { (ac_try="$ac_cpp conftest.$ac_ext"
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null && {
3821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3824 # Broken: success on invalid input.
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 # Passes both tests.
3835 rm -f conftest.err conftest.$ac_ext
3838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839 rm -f conftest.err conftest.$ac_ext
3840 if $ac_preproc_ok; then
3852 { echo "$as_me:$LINENO: result: $CPP" >&5
3853 echo "${ECHO_T}$CPP" >&6; }
3855 for ac_c_preproc_warn_flag in '' yes
3857 # Use a header file that comes with gcc, so configuring glibc
3858 # with a fresh cross-compiler works.
3859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 # <limits.h> exists even on freestanding compilers.
3861 # On the NeXT, cc -E runs the code through the compiler's parser,
3862 # not just through cpp. "Syntax error" is here to catch this case.
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3870 # include <limits.h>
3872 # include <assert.h>
3876 if { (ac_try="$ac_cpp conftest.$ac_ext"
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3884 grep -v '^ *+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } >/dev/null && {
3889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 # Broken: fails on valid input.
3901 rm -f conftest.err conftest.$ac_ext
3903 # OK, works on sane cases. Now check whether nonexistent headers
3904 # can be detected and how.
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <ac_nonexistent.h>
3913 if { (ac_try="$ac_cpp conftest.$ac_ext"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3929 # Broken: success on invalid input.
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 # Passes both tests.
3940 rm -f conftest.err conftest.$ac_ext
3943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3944 rm -f conftest.err conftest.$ac_ext
3945 if $ac_preproc_ok; then
3948 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3949 See \`config.log' for more details." >&5
3950 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3951 See \`config.log' for more details." >&2;}
3952 { (exit 1); exit 1; }; }
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3963 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_GREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 # Extract the first word of "grep ggrep" to use in msg output
3968 if test -z "$GREP"; then
3969 set dummy grep ggrep; ac_prog_name=$2
3970 if test "${ac_cv_path_GREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 ac_path_GREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979 test -z "$as_dir" && as_dir=.
3980 for ac_prog in grep ggrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3984 # Check for GNU ac_path_GREP and select it if it is found.
3985 # Check for GNU $ac_path_GREP
3986 case `"$ac_path_GREP" --version 2>&1` in
3988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 echo 'GREP' >> "conftest.nl"
3998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000 ac_count=`expr $ac_count + 1`
4001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_GREP="$ac_path_GREP"
4004 ac_path_GREP_max=$ac_count
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 $ac_path_GREP_found && break 3
4023 GREP="$ac_cv_path_GREP"
4024 if test -z "$GREP"; then
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027 { (exit 1); exit 1; }; }
4031 ac_cv_path_GREP=$GREP
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4038 GREP="$ac_cv_path_GREP"
4041 { echo "$as_me:$LINENO: checking for egrep" >&5
4042 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4043 if test "${ac_cv_path_EGREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4047 then ac_cv_path_EGREP="$GREP -E"
4049 # Extract the first word of "egrep" to use in msg output
4050 if test -z "$EGREP"; then
4051 set dummy egrep; ac_prog_name=$2
4052 if test "${ac_cv_path_EGREP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 ac_path_EGREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4061 test -z "$as_dir" && as_dir=.
4062 for ac_prog in egrep; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4066 # Check for GNU ac_path_EGREP and select it if it is found.
4067 # Check for GNU $ac_path_EGREP
4068 case `"$ac_path_EGREP" --version 2>&1` in
4070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4073 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
4079 echo 'EGREP' >> "conftest.nl"
4080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082 ac_count=`expr $ac_count + 1`
4083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_EGREP="$ac_path_EGREP"
4086 ac_path_EGREP_max=$ac_count
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095 $ac_path_EGREP_found && break 3
4105 EGREP="$ac_cv_path_EGREP"
4106 if test -z "$EGREP"; then
4107 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4108 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4109 { (exit 1); exit 1; }; }
4113 ac_cv_path_EGREP=$EGREP
4119 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4121 EGREP="$ac_cv_path_EGREP"
4124 if test $ac_cv_c_compiler_gnu = yes; then
4125 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4126 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4127 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 ac_pattern="Autoconf.*'x'"
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4142 ac_cv_prog_gcc_traditional=yes
4144 ac_cv_prog_gcc_traditional=no
4149 if test $ac_cv_prog_gcc_traditional = no; then
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4161 ac_cv_prog_gcc_traditional=yes
4167 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4168 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4169 if test $ac_cv_prog_gcc_traditional = yes; then
4170 CC="$CC -traditional"
4174 BASECC=`basename $CC`
4176 if test "x$BASECC" = xgcc; then
4177 cat >>confdefs.h <<\_ACEOF
4183 # Extract the first word of "$CXX", so it can be a program name with args.
4184 set dummy $CXX; ac_word=$2
4185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4187 if test "${ac_cv_path_CXX+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4215 if test -n "$CXX"; then
4216 { echo "$as_me:$LINENO: result: $CXX" >&5
4217 echo "${ECHO_T}$CXX" >&6; }
4219 { echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6; }
4224 if test ! -e $CXX; then
4225 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4226 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4227 { (exit 1); exit 1; }; }
4230 # Find a good install program. We prefer a C program (faster),
4231 # so one script is as good as another. But avoid the broken or
4232 # incompatible versions:
4233 # SysV /etc/install, /usr/sbin/install
4234 # SunOS /usr/etc/install
4235 # IRIX /sbin/install
4237 # AmigaOS /C/install, which installs bootblocks on floppy discs
4238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4241 # OS/2's system install, which has a completely different semantic
4242 # ./install, which can be erroneously created by make from ./install.sh.
4243 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4244 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4245 if test -z "$INSTALL"; then
4246 if test "${ac_cv_path_install+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 test -z "$as_dir" && as_dir=.
4254 # Account for people who put trailing slashes in PATH elements.
4256 ./ | .// | /cC/* | \
4257 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4258 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4261 # OSF1 and SCO ODT 3.0 have their own names for install.
4262 # Don't use installbsd from OSF since it installs stuff as root
4264 for ac_prog in ginstall scoinst install; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4267 if test $ac_prog = install &&
4268 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4269 # AIX install. It has an incompatible calling convention.
4271 elif test $ac_prog = install &&
4272 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4273 # program-specific install script used by HP pwplus--don't use.
4276 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4289 if test "${ac_cv_path_install+set}" = set; then
4290 INSTALL=$ac_cv_path_install
4292 # As a last resort, use the slow shell script. Don't cache a
4293 # value for INSTALL within a source directory, because that will
4294 # break other packages using the cache if that directory is
4295 # removed, or if the value is a relative name.
4296 INSTALL=$ac_install_sh
4299 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4300 echo "${ECHO_T}$INSTALL" >&6; }
4302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4303 # It thinks the first close brace ends the variable substitution.
4304 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4306 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4308 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4310 # Extract the first word of "mv", so it can be a program name with args.
4311 set dummy mv; ac_word=$2
4312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4314 if test "${ac_cv_path_MV+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4342 if test -n "$MV"; then
4343 { echo "$as_me:$LINENO: result: $MV" >&5
4344 echo "${ECHO_T}$MV" >&6; }
4346 { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4351 # Extract the first word of "rm", so it can be a program name with args.
4352 set dummy rm; ac_word=$2
4353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4355 if test "${ac_cv_path_REMOVE+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4382 REMOVE=$ac_cv_path_REMOVE
4383 if test -n "$REMOVE"; then
4384 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4385 echo "${ECHO_T}$REMOVE" >&6; }
4387 { echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6; }
4392 # Extract the first word of "cp", so it can be a program name with args.
4393 set dummy cp; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_path_CP+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4424 if test -n "$CP"; then
4425 { echo "$as_me:$LINENO: result: $CP" >&5
4426 echo "${ECHO_T}$CP" >&6; }
4428 { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4433 # Extract the first word of "sed", so it can be a program name with args.
4434 set dummy sed; ac_word=$2
4435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437 if test "${ac_cv_path_SED+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4465 if test -n "$SED"; then
4466 { echo "$as_me:$LINENO: result: $SED" >&5
4467 echo "${ECHO_T}$SED" >&6; }
4469 { echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6; }
4474 # Extract the first word of "echo", so it can be a program name with args.
4475 set dummy echo; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_path_ECHO+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4505 ECHO=$ac_cv_path_ECHO
4506 if test -n "$ECHO"; then
4507 { echo "$as_me:$LINENO: result: $ECHO" >&5
4508 echo "${ECHO_T}$ECHO" >&6; }
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4515 # Extract the first word of "cmp", so it can be a program name with args.
4516 set dummy cmp; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_path_CMP+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4547 if test -n "$CMP"; then
4548 { echo "$as_me:$LINENO: result: $CMP" >&5
4549 echo "${ECHO_T}$CMP" >&6; }
4551 { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4556 # Extract the first word of "tbl", so it can be a program name with args.
4557 set dummy tbl; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_path_TBL+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4588 if test -n "$TBL"; then
4589 { echo "$as_me:$LINENO: result: $TBL" >&5
4590 echo "${ECHO_T}$TBL" >&6; }
4592 { echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6; }
4597 # Extract the first word of "ar", so it can be a program name with args.
4598 set dummy ar; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_path_AR+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4629 if test -n "$AR"; then
4630 { echo "$as_me:$LINENO: result: $AR" >&5
4631 echo "${ECHO_T}$AR" >&6; }
4633 { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4638 # Extract the first word of "openssl", so it can be a program name with args.
4639 set dummy openssl; ac_word=$2
4640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4642 if test "${ac_cv_path_OPENSSL+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4669 OPENSSL=$ac_cv_path_OPENSSL
4670 if test -n "$OPENSSL"; then
4671 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4672 echo "${ECHO_T}$OPENSSL" >&6; }
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4679 # Extract the first word of "mtx", so it can be a program name with args.
4680 set dummy mtx; ac_word=$2
4681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683 if test "${ac_cv_path_MTX+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4711 if test -n "$MTX"; then
4712 { echo "$as_me:$LINENO: result: $MTX" >&5
4713 echo "${ECHO_T}$MTX" >&6; }
4715 { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4720 # Extract the first word of "dd", so it can be a program name with args.
4721 set dummy dd; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_path_DD+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4752 if test -n "$DD"; then
4753 { echo "$as_me:$LINENO: result: $DD" >&5
4754 echo "${ECHO_T}$DD" >&6; }
4756 { echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6; }
4761 # Extract the first word of "mkisofs", so it can be a program name with args.
4762 set dummy mkisofs; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_path_MKISOFS+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4792 MKISOFS=$ac_cv_path_MKISOFS
4793 if test -n "$MKISOFS"; then
4794 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4795 echo "${ECHO_T}$MKISOFS" >&6; }
4797 { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4802 # Extract the first word of "python", so it can be a program name with args.
4803 set dummy python; ac_word=$2
4804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4806 if test "${ac_cv_path_PYTHON+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4833 PYTHON=$ac_cv_path_PYTHON
4834 if test -n "$PYTHON"; then
4835 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4836 echo "${ECHO_T}$PYTHON" >&6; }
4838 { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4843 # Extract the first word of "growisofs", so it can be a program name with args.
4844 set dummy growisofs; ac_word=$2
4845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4847 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4874 GROWISOFS=$ac_cv_path_GROWISOFS
4875 if test -n "$GROWISOFS"; then
4876 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4877 echo "${ECHO_T}$GROWISOFS" >&6; }
4879 { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4884 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4885 set dummy dvd+rw-mediainfo; ac_word=$2
4886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4888 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 case $DVDRWMEDIAINFO in
4893 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4915 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4916 if test -n "$DVDRWMEDIAINFO"; then
4917 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4918 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4920 { echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6; }
4925 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4926 set dummy dvd+rw-format; ac_word=$2
4927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4929 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 case $DVDRWFORMAT in
4934 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4956 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4957 if test -n "$DVDRWFORMAT"; then
4958 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4959 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4961 { echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6; }
4966 # Extract the first word of "pkg-config", so it can be a program name with args.
4967 set dummy pkg-config; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4997 PKGCONFIG=$ac_cv_path_PKGCONFIG
4998 if test -n "$PKGCONFIG"; then
4999 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5000 echo "${ECHO_T}$PKGCONFIG" >&6; }
5002 { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5007 # Extract the first word of "qmake", so it can be a program name with args.
5008 set dummy qmake; ac_word=$2
5009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5011 if test "${ac_cv_path_QMAKE+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5038 QMAKE=$ac_cv_path_QMAKE
5039 if test -n "$QMAKE"; then
5040 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5041 echo "${ECHO_T}$QMAKE" >&6; }
5043 { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5048 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5049 set dummy qmake-qt4; ac_word=$2
5050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5052 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5079 QMAKEQT4=$ac_cv_path_QMAKEQT4
5080 if test -n "$QMAKEQT4"; then
5081 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5082 echo "${ECHO_T}$QMAKEQT4" >&6; }
5084 { echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6; }
5090 if test "x$WXCONFIG" = x; then
5093 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5094 set dummy ${WXCONFIG}; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5124 WXCONFIG=$ac_cv_path_WXCONFIG
5125 if test -n "$WXCONFIG"; then
5126 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5127 echo "${ECHO_T}$WXCONFIG" >&6; }
5129 { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5135 # Extract the first word of "cdrecord", so it can be a program name with args.
5136 set dummy cdrecord; ac_word=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_path_CDRECORD+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5166 CDRECORD=$ac_cv_path_CDRECORD
5167 if test -n "$CDRECORD"; then
5168 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5169 echo "${ECHO_T}$CDRECORD" >&6; }
5171 { echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6; }
5176 # Extract the first word of "pidof", so it can be a program name with args.
5177 set dummy pidof; ac_word=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_path_PIDOF+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5207 PIDOF=$ac_cv_path_PIDOF
5208 if test -n "$PIDOF"; then
5209 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5210 echo "${ECHO_T}$PIDOF" >&6; }
5212 { echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6; }
5217 for ac_prog in gawk mawk nawk awk
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_prog_AWK+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 if test -n "$AWK"; then
5227 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_prog_AWK="$ac_prog"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 if test -n "$AWK"; then
5248 { echo "$as_me:$LINENO: result: $AWK" >&5
5249 echo "${ECHO_T}$AWK" >&6; }
5251 { echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6; }
5256 test -n "$AWK" && break
5259 # Some AWK programs fail, so test it and warn the user
5260 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5261 { if ((prog == $2) || (("(" prog ")") == $2) ||
5262 (("" prog "") == $2) ||
5263 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5265 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5266 The regex engine of $AWK is too broken to be used you
5267 might want to install GNU AWK.
5268 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5269 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5270 The regex engine of $AWK is too broken to be used you
5271 might want to install GNU AWK.
5272 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5273 { (exit 1); exit 1; }; }
5276 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5277 set dummy $THE_AWK; ac_word=$2
5278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5280 if test "${ac_cv_path_AWK+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5308 if test -n "$AWK"; then
5309 { echo "$as_me:$LINENO: result: $AWK" >&5
5310 echo "${ECHO_T}$AWK" >&6; }
5312 { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }
5319 test -n "$ARFLAG" || ARFLAGS="cr"
5330 # Check whether --enable-libtool was given.
5331 if test "${enable_libtool+set}" = set; then
5332 enableval=$enable_libtool;
5333 if test x$enableval = xno; then
5342 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5343 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5348 macro_version='2.2.6'
5349 macro_revision='1.3012'
5363 ltmain="$ac_aux_dir/ltmain.sh"
5365 # Make sure we can run config.sub.
5366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5367 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5368 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5369 { (exit 1); exit 1; }; }
5371 { echo "$as_me:$LINENO: checking build system type" >&5
5372 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5373 if test "${ac_cv_build+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 ac_build_alias=$build_alias
5377 test "x$ac_build_alias" = x &&
5378 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5379 test "x$ac_build_alias" = x &&
5380 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5381 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5382 { (exit 1); exit 1; }; }
5383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5384 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5385 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5386 { (exit 1); exit 1; }; }
5389 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5390 echo "${ECHO_T}$ac_cv_build" >&6; }
5391 case $ac_cv_build in
5393 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5394 echo "$as_me: error: invalid value of canonical build" >&2;}
5395 { (exit 1); exit 1; }; };;
5398 ac_save_IFS=$IFS; IFS='-'
5404 # Remember, the first character of IFS is used to create $*,
5405 # except with old shells:
5408 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5411 { echo "$as_me:$LINENO: checking host system type" >&5
5412 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5413 if test "${ac_cv_host+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 if test "x$host_alias" = x; then
5417 ac_cv_host=$ac_cv_build
5419 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5420 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5421 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5422 { (exit 1); exit 1; }; }
5426 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5427 echo "${ECHO_T}$ac_cv_host" >&6; }
5430 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5431 echo "$as_me: error: invalid value of canonical host" >&2;}
5432 { (exit 1); exit 1; }; };;
5435 ac_save_IFS=$IFS; IFS='-'
5441 # Remember, the first character of IFS is used to create $*,
5442 # except with old shells:
5445 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5448 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5449 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5450 if test "${ac_cv_path_SED+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5454 for ac_i in 1 2 3 4 5 6 7; do
5455 ac_script="$ac_script$as_nl$ac_script"
5457 echo "$ac_script" | sed 99q >conftest.sed
5458 $as_unset ac_script || ac_script=
5459 # Extract the first word of "sed gsed" to use in msg output
5460 if test -z "$SED"; then
5461 set dummy sed gsed; ac_prog_name=$2
5462 if test "${ac_cv_path_SED+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_path_SED_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in sed gsed; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5475 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5476 # Check for GNU ac_path_SED and select it if it is found.
5477 # Check for GNU $ac_path_SED
5478 case `"$ac_path_SED" --version 2>&1` in
5480 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5483 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 echo '' >> "conftest.nl"
5490 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 ac_count=`expr $ac_count + 1`
5493 if test $ac_count -gt ${ac_path_SED_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_SED="$ac_path_SED"
5496 ac_path_SED_max=$ac_count
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5505 $ac_path_SED_found && break 3
5515 SED="$ac_cv_path_SED"
5516 if test -z "$SED"; then
5517 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5518 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5519 { (exit 1); exit 1; }; }
5527 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5528 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5529 SED="$ac_cv_path_SED"
5532 test -z "$SED" && SED=sed
5533 Xsed="$SED -e 1s/^X//"
5545 { echo "$as_me:$LINENO: checking for fgrep" >&5
5546 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5547 if test "${ac_cv_path_FGREP+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5551 then ac_cv_path_FGREP="$GREP -F"
5553 # Extract the first word of "fgrep" to use in msg output
5554 if test -z "$FGREP"; then
5555 set dummy fgrep; ac_prog_name=$2
5556 if test "${ac_cv_path_FGREP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 ac_path_FGREP_found=false
5560 # Loop through the user's path and test for each of PROGNAME-LIST
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5565 test -z "$as_dir" && as_dir=.
5566 for ac_prog in fgrep; do
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5569 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5570 # Check for GNU ac_path_FGREP and select it if it is found.
5571 # Check for GNU $ac_path_FGREP
5572 case `"$ac_path_FGREP" --version 2>&1` in
5574 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5577 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5580 cat "conftest.in" "conftest.in" >"conftest.tmp"
5581 mv "conftest.tmp" "conftest.in"
5582 cp "conftest.in" "conftest.nl"
5583 echo 'FGREP' >> "conftest.nl"
5584 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586 ac_count=`expr $ac_count + 1`
5587 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5588 # Best one so far, save it but keep looking for a better one
5589 ac_cv_path_FGREP="$ac_path_FGREP"
5590 ac_path_FGREP_max=$ac_count
5592 # 10*(2^10) chars as input seems more than enough
5593 test $ac_count -gt 10 && break
5595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5599 $ac_path_FGREP_found && break 3
5609 FGREP="$ac_cv_path_FGREP"
5610 if test -z "$FGREP"; then
5611 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5612 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5613 { (exit 1); exit 1; }; }
5617 ac_cv_path_FGREP=$FGREP
5623 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5624 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5625 FGREP="$ac_cv_path_FGREP"
5628 test -z "$GREP" && GREP=grep
5648 # Check whether --with-gnu-ld was given.
5649 if test "${with_gnu_ld+set}" = set; then
5650 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5656 if test "$GCC" = yes; then
5657 # Check if gcc -print-prog-name=ld gives a path.
5658 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5659 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5662 # gcc leaves a trailing carriage return which upsets mingw
5663 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5665 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5668 # Accept absolute paths.
5670 re_direlt='/[^/][^/]*/\.\./'
5671 # Canonicalize the pathname of ld
5672 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5673 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5674 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5676 test -z "$LD" && LD="$ac_prog"
5679 # If it fails, then pretend we aren't using GCC.
5683 # If it is relative, then search for the first ld in PATH.
5687 elif test "$with_gnu_ld" = yes; then
5688 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5689 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5691 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5692 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5694 if test "${lt_cv_path_LD+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 if test -z "$LD"; then
5698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5699 for ac_dir in $PATH; do
5701 test -z "$ac_dir" && ac_dir=.
5702 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5703 lt_cv_path_LD="$ac_dir/$ac_prog"
5704 # Check to see if the program is GNU ld. I'd rather use --version,
5705 # but apparently some variants of GNU ld only accept -v.
5706 # Break only if it was the GNU/non-GNU ld that we prefer.
5707 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5708 *GNU* | *'with BFD'*)
5709 test "$with_gnu_ld" != no && break
5712 test "$with_gnu_ld" != yes && break
5719 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5724 if test -n "$LD"; then
5725 { echo "$as_me:$LINENO: result: $LD" >&5
5726 echo "${ECHO_T}$LD" >&6; }
5728 { echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6; }
5731 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5732 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5733 { (exit 1); exit 1; }; }
5734 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5735 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5736 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5740 case `$LD -v 2>&1 </dev/null` in
5741 *GNU* | *'with BFD'*)
5742 lt_cv_prog_gnu_ld=yes
5745 lt_cv_prog_gnu_ld=no
5749 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5750 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5751 with_gnu_ld=$lt_cv_prog_gnu_ld
5761 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5762 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5763 if test "${lt_cv_path_NM+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 if test -n "$NM"; then
5767 # Let the user override the test.
5770 lt_nm_to_check="${ac_tool_prefix}nm"
5771 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5772 lt_nm_to_check="$lt_nm_to_check nm"
5774 for lt_tmp_nm in $lt_nm_to_check; do
5775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5776 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5778 test -z "$ac_dir" && ac_dir=.
5779 tmp_nm="$ac_dir/$lt_tmp_nm"
5780 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5781 # Check to see if the nm accepts a BSD-compat flag.
5782 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5783 # nm: unknown option "B" ignored
5784 # Tru64's nm complains that /dev/null is an invalid object file
5785 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5786 */dev/null* | *'Invalid file or object type'*)
5787 lt_cv_path_NM="$tmp_nm -B"
5791 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5793 lt_cv_path_NM="$tmp_nm -p"
5797 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5798 continue # so that we can try to find one that supports BSD flags
5807 : ${lt_cv_path_NM=no}
5810 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5811 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5812 if test "$lt_cv_path_NM" != "no"; then
5815 # Didn't find any BSD compatible name lister, look for dumpbin.
5816 if test -n "$ac_tool_prefix"; then
5817 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 if test -n "$DUMPBIN"; then
5827 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 DUMPBIN=$ac_cv_prog_DUMPBIN
5847 if test -n "$DUMPBIN"; then
5848 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5849 echo "${ECHO_T}$DUMPBIN" >&6; }
5851 { echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6; }
5856 test -n "$DUMPBIN" && break
5859 if test -z "$DUMPBIN"; then
5860 ac_ct_DUMPBIN=$DUMPBIN
5861 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5863 # Extract the first word of "$ac_prog", so it can be a program name with args.
5864 set dummy $ac_prog; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if test -n "$ac_ct_DUMPBIN"; then
5871 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5891 if test -n "$ac_ct_DUMPBIN"; then
5892 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5893 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 test -n "$ac_ct_DUMPBIN" && break
5903 if test "x$ac_ct_DUMPBIN" = x; then
5906 case $cross_compiling:$ac_tool_warned in
5908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5909 whose name does not start with the host triplet. If you think this
5910 configuration is useful to you, please write to autoconf@gnu.org." >&5
5911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5912 whose name does not start with the host triplet. If you think this
5913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5914 ac_tool_warned=yes ;;
5916 DUMPBIN=$ac_ct_DUMPBIN
5921 if test "$DUMPBIN" != ":"; then
5925 test -z "$NM" && NM=nm
5932 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5933 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5934 if test "${lt_cv_nm_interface+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 lt_cv_nm_interface="BSD nm"
5938 echo "int some_variable = 0;" > conftest.$ac_ext
5939 (eval echo "\"\$as_me:5939: $ac_compile\"" >&5)
5940 (eval "$ac_compile" 2>conftest.err)
5941 cat conftest.err >&5
5942 (eval echo "\"\$as_me:5942: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5943 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5944 cat conftest.err >&5
5945 (eval echo "\"\$as_me:5945: output\"" >&5)
5946 cat conftest.out >&5
5947 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5948 lt_cv_nm_interface="MS dumpbin"
5952 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5953 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5955 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5958 if test "$LN_S" = "ln -s"; then
5959 { echo "$as_me:$LINENO: result: yes" >&5
5960 echo "${ECHO_T}yes" >&6; }
5962 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5963 echo "${ECHO_T}no, using $LN_S" >&6; }
5966 # find the maximum length of command line arguments
5967 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5968 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5969 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 # On DJGPP, this test can blow up pretty badly due to problems in libc
5978 # (any single argument exceeding 2000 bytes causes a buffer overrun
5979 # during glob expansion). Even if it were fixed, the result of this
5980 # check would be larger than it should be.
5981 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5985 # Under GNU Hurd, this test is not required because there is
5986 # no limit to the length of command line arguments.
5987 # Libtool will interpret -1 as no limit whatsoever
5988 lt_cv_sys_max_cmd_len=-1;
5991 cygwin* | mingw* | cegcc*)
5992 # On Win9x/ME, this test blows up -- it succeeds, but takes
5993 # about 5 minutes as the teststring grows exponentially.
5994 # Worse, since 9x/ME are not pre-emptively multitasking,
5995 # you end up with a "frozen" computer, even though with patience
5996 # the test eventually succeeds (with a max line length of 256k).
5997 # Instead, let's just punt: use the minimum linelength reported by
5998 # all of the supported platforms: 8192 (on NT/2K/XP).
5999 lt_cv_sys_max_cmd_len=8192;
6003 # On AmigaOS with pdksh, this test takes hours, literally.
6004 # So we just punt and use a minimum line length of 8192.
6005 lt_cv_sys_max_cmd_len=8192;
6008 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6009 # This has been around since 386BSD, at least. Likely further.
6010 if test -x /sbin/sysctl; then
6011 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6012 elif test -x /usr/sbin/sysctl; then
6013 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6015 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6017 # And add a safety zone
6018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6023 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6024 lt_cv_sys_max_cmd_len=196608
6028 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6029 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6030 # nice to cause kernel panics so lets avoid the loop below.
6031 # First set a reasonable default.
6032 lt_cv_sys_max_cmd_len=16384
6034 if test -x /sbin/sysconfig; then
6035 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6036 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6041 lt_cv_sys_max_cmd_len=102400
6043 sysv5* | sco5v6* | sysv4.2uw2*)
6044 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6045 if test -n "$kargmax"; then
6046 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6048 lt_cv_sys_max_cmd_len=32768
6052 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6053 if test -n "$lt_cv_sys_max_cmd_len"; then
6054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6057 # Make teststring a little bigger before we do anything with it.
6058 # a 1K string should be a reasonable start.
6059 for i in 1 2 3 4 5 6 7 8 ; do
6060 teststring=$teststring$teststring
6062 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6063 # If test is not a shell built-in, we'll probably end up computing a
6064 # maximum length that is only half of the actual maximum length, but
6066 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6067 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6068 test $i != 17 # 1/2 MB should be enough
6071 teststring=$teststring$teststring
6073 # Only check the string length outside the loop.
6074 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6076 # Add a significant safety factor because C++ compilers can tack on
6077 # massive amounts of additional arguments before passing them to the
6078 # linker. It appears as though 1/2 is a usable value.
6079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6086 if test -n $lt_cv_sys_max_cmd_len ; then
6087 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6088 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6090 { echo "$as_me:$LINENO: result: none" >&5
6091 echo "${ECHO_T}none" >&6; }
6093 max_cmd_len=$lt_cv_sys_max_cmd_len
6104 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6105 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6106 # Try some XSI features
6109 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6111 && eval 'test $(( 1 + 1 )) -eq 2 \
6112 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6114 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6115 echo "${ECHO_T}$xsi_shell" >&6; }
6118 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6119 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6121 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6123 && lt_shell_append=yes
6124 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6125 echo "${ECHO_T}$lt_shell_append" >&6; }
6128 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6138 # test EBCDIC or ASCII
6139 case `echo X|tr X '\101'` in
6140 A) # ASCII based system
6141 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6142 lt_SP2NL='tr \040 \012'
6143 lt_NL2SP='tr \015\012 \040\040'
6145 *) # EBCDIC based system
6146 lt_SP2NL='tr \100 \n'
6147 lt_NL2SP='tr \r\n \100\100'
6159 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6160 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6161 if test "${lt_cv_ld_reload_flag+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 lt_cv_ld_reload_flag='-r'
6166 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6167 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6168 reload_flag=$lt_cv_ld_reload_flag
6169 case $reload_flag in
6171 *) reload_flag=" $reload_flag" ;;
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6176 if test "$GCC" = yes; then
6177 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 if test -n "$OBJDUMP"; then
6201 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 OBJDUMP=$ac_cv_prog_OBJDUMP
6221 if test -n "$OBJDUMP"; then
6222 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6223 echo "${ECHO_T}$OBJDUMP" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6231 if test -z "$ac_cv_prog_OBJDUMP"; then
6232 ac_ct_OBJDUMP=$OBJDUMP
6233 # Extract the first word of "objdump", so it can be a program name with args.
6234 set dummy objdump; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 if test -n "$ac_ct_OBJDUMP"; then
6241 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6261 if test -n "$ac_ct_OBJDUMP"; then
6262 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6263 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6269 if test "x$ac_ct_OBJDUMP" = x; then
6272 case $cross_compiling:$ac_tool_warned in
6274 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet. If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&5
6277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6278 whose name does not start with the host triplet. If you think this
6279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6280 ac_tool_warned=yes ;;
6282 OBJDUMP=$ac_ct_OBJDUMP
6285 OBJDUMP="$ac_cv_prog_OBJDUMP"
6288 test -z "$OBJDUMP" && OBJDUMP=objdump
6298 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6299 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6300 if test "${lt_cv_deplibs_check_method+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 lt_cv_file_magic_cmd='$MAGIC_CMD'
6304 lt_cv_file_magic_test_file=
6305 lt_cv_deplibs_check_method='unknown'
6306 # Need to set the preceding variable on all platforms that support
6307 # interlibrary dependencies.
6308 # 'none' -- dependencies not supported.
6309 # `unknown' -- same as none, but documents that we really don't know.
6310 # 'pass_all' -- all dependencies passed with no checks.
6311 # 'test_compile' -- check by making test program.
6312 # 'file_magic [[regex]]' -- check by looking for files in library path
6313 # which responds to the $file_magic_cmd with a given extended regex.
6314 # If you have `file' or equivalent on your system and you're not sure
6315 # whether `pass_all' will *always* work, you probably want this one.
6319 lt_cv_deplibs_check_method=pass_all
6323 lt_cv_deplibs_check_method=pass_all
6327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6328 lt_cv_file_magic_cmd='/usr/bin/file -L'
6329 lt_cv_file_magic_test_file=/shlib/libc.so
6333 # func_win32_libid is a shell function defined in ltmain.sh
6334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6335 lt_cv_file_magic_cmd='func_win32_libid'
6339 # Base MSYS/MinGW do not provide the 'file' command needed by
6340 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6341 # unless we find 'file', for example because we are cross-compiling.
6342 if ( file / ) >/dev/null 2>&1; then
6343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6344 lt_cv_file_magic_cmd='func_win32_libid'
6346 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6347 lt_cv_file_magic_cmd='$OBJDUMP -f'
6352 # use the weaker test based on 'objdump'. See mingw*.
6353 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6354 lt_cv_file_magic_cmd='$OBJDUMP -f'
6357 darwin* | rhapsody*)
6358 lt_cv_deplibs_check_method=pass_all
6361 freebsd* | dragonfly*)
6362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6365 # Not sure whether the presence of OpenBSD here was a mistake.
6366 # Let's accept both of them until this is cleared up.
6367 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6368 lt_cv_file_magic_cmd=/usr/bin/file
6369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6373 lt_cv_deplibs_check_method=pass_all
6378 lt_cv_deplibs_check_method=pass_all
6381 hpux10.20* | hpux11*)
6382 lt_cv_file_magic_cmd=/usr/bin/file
6385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6389 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]'
6390 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6394 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6400 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6404 irix5* | irix6* | nonstopux*)
6406 *-32|*"-32 ") libmagic=32-bit;;
6407 *-n32|*"-n32 ") libmagic=N32;;
6408 *-64|*"-64 ") libmagic=64-bit;;
6409 *) libmagic=never-match;;
6411 lt_cv_deplibs_check_method=pass_all
6414 # This must be Linux ELF.
6415 linux* | k*bsd*-gnu)
6416 lt_cv_deplibs_check_method=pass_all
6420 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6429 lt_cv_file_magic_cmd=/usr/bin/file
6430 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6434 lt_cv_deplibs_check_method=pass_all
6438 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6445 osf3* | osf4* | osf5*)
6446 lt_cv_deplibs_check_method=pass_all
6450 lt_cv_deplibs_check_method=pass_all
6454 lt_cv_deplibs_check_method=pass_all
6457 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6458 lt_cv_deplibs_check_method=pass_all
6462 case $host_vendor in
6464 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]'
6465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6468 lt_cv_deplibs_check_method=pass_all
6471 lt_cv_file_magic_cmd='/bin/file'
6472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6475 lt_cv_file_magic_cmd='/bin/file'
6476 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6477 lt_cv_file_magic_test_file=/lib/libc.so
6480 lt_cv_deplibs_check_method=pass_all
6483 lt_cv_deplibs_check_method=pass_all
6489 lt_cv_deplibs_check_method=pass_all
6494 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6495 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6496 file_magic_cmd=$lt_cv_file_magic_cmd
6497 deplibs_check_method=$lt_cv_deplibs_check_method
6498 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6511 if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}ar; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_prog_AR+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 if test -n "$AR"; then
6520 ac_cv_prog_AR="$AR" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_AR="${ac_tool_prefix}ar"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 if test -n "$AR"; then
6541 { echo "$as_me:$LINENO: result: $AR" >&5
6542 echo "${ECHO_T}$AR" >&6; }
6544 { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6550 if test -z "$ac_cv_prog_AR"; then
6552 # Extract the first word of "ar", so it can be a program name with args.
6553 set dummy ar; ac_word=$2
6554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6556 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 if test -n "$ac_ct_AR"; then
6560 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_ac_ct_AR="ar"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6580 if test -n "$ac_ct_AR"; then
6581 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6582 echo "${ECHO_T}$ac_ct_AR" >&6; }
6584 { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6588 if test "x$ac_ct_AR" = x; then
6591 case $cross_compiling:$ac_tool_warned in
6593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet. If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&5
6596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet. If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6599 ac_tool_warned=yes ;;
6607 test -z "$AR" && AR=ar
6608 test -z "$AR_FLAGS" && AR_FLAGS=cru
6620 if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}strip; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_prog_STRIP+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 if test -n "$STRIP"; then
6629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 STRIP=$ac_cv_prog_STRIP
6649 if test -n "$STRIP"; then
6650 { echo "$as_me:$LINENO: result: $STRIP" >&5
6651 echo "${ECHO_T}$STRIP" >&6; }
6653 { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6659 if test -z "$ac_cv_prog_STRIP"; then
6661 # Extract the first word of "strip", so it can be a program name with args.
6662 set dummy strip; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 if test -n "$ac_ct_STRIP"; then
6669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_ac_ct_STRIP="strip"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6689 if test -n "$ac_ct_STRIP"; then
6690 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6691 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6697 if test "x$ac_ct_STRIP" = x; then
6700 case $cross_compiling:$ac_tool_warned in
6702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet. If you think this
6704 configuration is useful to you, please write to autoconf@gnu.org." >&5
6705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet. If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6708 ac_tool_warned=yes ;;
6713 STRIP="$ac_cv_prog_STRIP"
6716 test -z "$STRIP" && STRIP=:
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_prog_RANLIB+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 if test -n "$RANLIB"; then
6732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 RANLIB=$ac_cv_prog_RANLIB
6752 if test -n "$RANLIB"; then
6753 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6754 echo "${ECHO_T}$RANLIB" >&6; }
6756 { echo "$as_me:$LINENO: result: no" >&5
6757 echo "${ECHO_T}no" >&6; }
6762 if test -z "$ac_cv_prog_RANLIB"; then
6763 ac_ct_RANLIB=$RANLIB
6764 # Extract the first word of "ranlib", so it can be a program name with args.
6765 set dummy ranlib; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 if test -n "$ac_ct_RANLIB"; then
6772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_RANLIB="ranlib"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6792 if test -n "$ac_ct_RANLIB"; then
6793 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6794 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6800 if test "x$ac_ct_RANLIB" = x; then
6803 case $cross_compiling:$ac_tool_warned in
6805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6806 whose name does not start with the host triplet. If you think this
6807 configuration is useful to you, please write to autoconf@gnu.org." >&5
6808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6809 whose name does not start with the host triplet. If you think this
6810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6811 ac_tool_warned=yes ;;
6813 RANLIB=$ac_ct_RANLIB
6816 RANLIB="$ac_cv_prog_RANLIB"
6819 test -z "$RANLIB" && RANLIB=:
6826 # Determine commands to create old-style static archives.
6827 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6828 old_postinstall_cmds='chmod 644 $oldlib'
6829 old_postuninstall_cmds=
6831 if test -n "$RANLIB"; then
6834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6837 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6840 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6876 # If no C compiler was specified, use CC.
6879 # If no C compiler flags were specified, use CFLAGS.
6880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6882 # Allow CC to be a program name with arguments.
6886 # Check for command to grab the raw symbol name followed by C symbol from nm.
6887 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6888 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6889 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 # These are sane defaults that work on at least a few old systems.
6894 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6896 # Character class describing NM global symbol codes.
6897 symcode='[BCDEGRST]'
6899 # Regexp to match symbols that can be accessed directly from C.
6900 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6902 # Define system-specific variables.
6907 cygwin* | mingw* | pw32* | cegcc*)
6908 symcode='[ABCDGISTW]'
6911 if test "$host_cpu" = ia64; then
6912 symcode='[ABCDEGRST]'
6916 symcode='[BCDEGRST]'
6919 symcode='[BCDEGQRST]'
6930 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6938 # If we're using GNU nm, then use its standard symbol codes.
6939 case `$NM -V 2>&1` in
6940 *GNU* | *'with BFD'*)
6941 symcode='[ABCDGIRSTW]' ;;
6944 # Transform an extracted symbol line into a proper C declaration.
6945 # Some systems (esp. on ia64) link data and code symbols differently,
6946 # so use this general approach.
6947 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6949 # Transform an extracted symbol line into symbol name and symbol address
6950 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6951 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'"
6953 # Handle CRLF in mingw tool chain
6957 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6961 # Try without a prefix underscore, then with it.
6962 for ac_symprfx in "" "_"; do
6964 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6965 symxfrm="\\1 $ac_symprfx\\2 \\2"
6967 # Write the raw and C identifiers.
6968 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6969 # Fake it for dumpbin and say T for any non-static function
6970 # and D for any global variable.
6971 # Also find C++ and __fastcall symbols from MSVC++,
6972 # which start with @ or ?.
6973 lt_cv_sys_global_symbol_pipe="$AWK '"\
6974 " {last_section=section; section=\$ 3};"\
6975 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6976 " \$ 0!~/External *\|/{next};"\
6977 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6978 " {if(hide[section]) next};"\
6979 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6980 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6981 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6982 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6983 " ' prfx=^$ac_symprfx"
6985 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6988 # Check to see that the pipe works correctly.
6992 cat > conftest.$ac_ext <<_LT_EOF
6997 void nm_test_func(void);
6998 void nm_test_func(void){}
7002 int main(){nm_test_var='a';nm_test_func();return(0);}
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; then
7010 # Now try to grab the symbols.
7012 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7013 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && test -s "$nlist"; then
7017 # Try sorting and uniquifying the output.
7018 if sort "$nlist" | uniq > "$nlist"T; then
7019 mv -f "$nlist"T "$nlist"
7024 # Make sure that we snagged all the symbols we need.
7025 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7026 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7027 cat <<_LT_EOF > conftest.$ac_ext
7033 # Now generate the symbol file.
7034 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7036 cat <<_LT_EOF >> conftest.$ac_ext
7038 /* The mapping between symbol names and symbols. */
7043 lt__PROGRAM__LTX_preloaded_symbols[] =
7045 { "@PROGRAM@", (void *) 0 },
7047 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7048 cat <<\_LT_EOF >> conftest.$ac_ext
7052 /* This works around a problem in FreeBSD linker */
7053 #ifdef FREEBSD_WORKAROUND
7054 static const void *lt_preloaded_setup() {
7055 return lt__PROGRAM__LTX_preloaded_symbols;
7063 # Now try linking the two files.
7064 mv conftest.$ac_objext conftstm.$ac_objext
7065 lt_save_LIBS="$LIBS"
7066 lt_save_CFLAGS="$CFLAGS"
7067 LIBS="conftstm.$ac_objext"
7068 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070 (eval $ac_link) 2>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7076 LIBS="$lt_save_LIBS"
7077 CFLAGS="$lt_save_CFLAGS"
7079 echo "cannot find nm_test_func in $nlist" >&5
7082 echo "cannot find nm_test_var in $nlist" >&5
7085 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7088 echo "$progname: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7091 rm -rf conftest* conftst*
7093 # Do not use the global_symbol_pipe unless it works.
7094 if test "$pipe_works" = yes; then
7097 lt_cv_sys_global_symbol_pipe=
7103 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7104 lt_cv_sys_global_symbol_to_cdecl=
7106 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7107 { echo "$as_me:$LINENO: result: failed" >&5
7108 echo "${ECHO_T}failed" >&6; }
7110 { echo "$as_me:$LINENO: result: ok" >&5
7111 echo "${ECHO_T}ok" >&6; }
7135 # Check whether --enable-libtool-lock was given.
7136 if test "${enable_libtool_lock+set}" = set; then
7137 enableval=$enable_libtool_lock;
7140 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7142 # Some flags need to be propagated to the compiler or linker for good
7146 # Find out which ABI we are using.
7147 echo 'int i;' > conftest.$ac_ext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 (eval $ac_compile) 2>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; then
7153 case `/usr/bin/file conftest.$ac_objext` in
7165 # Find out which ABI we are using.
7166 echo '#line 7166 "configure"' > conftest.$ac_ext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168 (eval $ac_compile) 2>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; then
7172 if test "$lt_cv_prog_gnu_ld" = yes; then
7173 case `/usr/bin/file conftest.$ac_objext` in
7175 LD="${LD-ld} -melf32bsmip"
7178 LD="${LD-ld} -melf32bmipn32"
7181 LD="${LD-ld} -melf64bmip"
7185 case `/usr/bin/file conftest.$ac_objext` in
7201 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7202 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7203 # Find out which ABI we are using.
7204 echo 'int i;' > conftest.$ac_ext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; then
7210 case `/usr/bin/file conftest.o` in
7213 x86_64-*kfreebsd*-gnu)
7214 LD="${LD-ld} -m elf_i386_fbsd"
7217 LD="${LD-ld} -m elf_i386"
7219 ppc64-*linux*|powerpc64-*linux*)
7220 LD="${LD-ld} -m elf32ppclinux"
7223 LD="${LD-ld} -m elf_s390"
7226 LD="${LD-ld} -m elf32_sparc"
7232 x86_64-*kfreebsd*-gnu)
7233 LD="${LD-ld} -m elf_x86_64_fbsd"
7236 LD="${LD-ld} -m elf_x86_64"
7238 ppc*-*linux*|powerpc*-*linux*)
7239 LD="${LD-ld} -m elf64ppc"
7241 s390*-*linux*|s390*-*tpf*)
7242 LD="${LD-ld} -m elf64_s390"
7245 LD="${LD-ld} -m elf64_sparc"
7255 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7256 SAVE_CFLAGS="$CFLAGS"
7257 CFLAGS="$CFLAGS -belf"
7258 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7259 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7260 if test "${lt_cv_cc_needs_belf+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_cpp='$CPP $CPPFLAGS'
7265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269 cat >conftest.$ac_ext <<_ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7284 rm -f conftest.$ac_objext conftest$ac_exeext
7285 if { (ac_try="$ac_link"
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291 (eval "$ac_link") 2>conftest.er1
7293 grep -v '^ *+' conftest.er1 >conftest.err
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest$ac_exeext &&
7301 $as_test_x conftest$ac_exeext; then
7302 lt_cv_cc_needs_belf=yes
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 lt_cv_cc_needs_belf=no
7310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7311 conftest$ac_exeext conftest.$ac_ext
7313 ac_cpp='$CPP $CPPFLAGS'
7314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7320 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7321 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7323 CFLAGS="$SAVE_CFLAGS"
7327 # Find out which ABI we are using.
7328 echo 'int i;' > conftest.$ac_ext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; then
7334 case `/usr/bin/file conftest.o` in
7336 case $lt_cv_prog_gnu_ld in
7337 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7339 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7351 need_locks="$enable_libtool_lock"
7355 rhapsody* | darwin*)
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 if test -n "$DSYMUTIL"; then
7365 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7385 if test -n "$DSYMUTIL"; then
7386 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7387 echo "${ECHO_T}$DSYMUTIL" >&6; }
7389 { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7395 if test -z "$ac_cv_prog_DSYMUTIL"; then
7396 ac_ct_DSYMUTIL=$DSYMUTIL
7397 # Extract the first word of "dsymutil", so it can be a program name with args.
7398 set dummy dsymutil; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 if test -n "$ac_ct_DSYMUTIL"; then
7405 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7425 if test -n "$ac_ct_DSYMUTIL"; then
7426 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7427 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7429 { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7433 if test "x$ac_ct_DSYMUTIL" = x; then
7436 case $cross_compiling:$ac_tool_warned in
7438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7439 whose name does not start with the host triplet. If you think this
7440 configuration is useful to you, please write to autoconf@gnu.org." >&5
7441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7442 whose name does not start with the host triplet. If you think this
7443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7444 ac_tool_warned=yes ;;
7446 DSYMUTIL=$ac_ct_DSYMUTIL
7449 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7452 if test -n "$ac_tool_prefix"; then
7453 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7454 set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 if test -n "$NMEDIT"; then
7461 ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 NMEDIT=$ac_cv_prog_NMEDIT
7481 if test -n "$NMEDIT"; then
7482 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7483 echo "${ECHO_T}$NMEDIT" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7491 if test -z "$ac_cv_prog_NMEDIT"; then
7492 ac_ct_NMEDIT=$NMEDIT
7493 # Extract the first word of "nmedit", so it can be a program name with args.
7494 set dummy nmedit; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 if test -n "$ac_ct_NMEDIT"; then
7501 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7521 if test -n "$ac_ct_NMEDIT"; then
7522 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7523 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7525 { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7529 if test "x$ac_ct_NMEDIT" = x; then
7532 case $cross_compiling:$ac_tool_warned in
7534 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7535 whose name does not start with the host triplet. If you think this
7536 configuration is useful to you, please write to autoconf@gnu.org." >&5
7537 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7538 whose name does not start with the host triplet. If you think this
7539 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7540 ac_tool_warned=yes ;;
7542 NMEDIT=$ac_ct_NMEDIT
7545 NMEDIT="$ac_cv_prog_NMEDIT"
7548 if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7550 set dummy ${ac_tool_prefix}lipo; 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_LIPO+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 if test -n "$LIPO"; then
7557 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 LIPO=$ac_cv_prog_LIPO
7577 if test -n "$LIPO"; then
7578 { echo "$as_me:$LINENO: result: $LIPO" >&5
7579 echo "${ECHO_T}$LIPO" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7587 if test -z "$ac_cv_prog_LIPO"; then
7589 # Extract the first word of "lipo", so it can be a program name with args.
7590 set dummy lipo; ac_word=$2
7591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7593 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 if test -n "$ac_ct_LIPO"; then
7597 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_prog_ac_ct_LIPO="lipo"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7617 if test -n "$ac_ct_LIPO"; then
7618 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7619 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7625 if test "x$ac_ct_LIPO" = x; then
7628 case $cross_compiling:$ac_tool_warned in
7630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7631 whose name does not start with the host triplet. If you think this
7632 configuration is useful to you, please write to autoconf@gnu.org." >&5
7633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7634 whose name does not start with the host triplet. If you think this
7635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7636 ac_tool_warned=yes ;;
7641 LIPO="$ac_cv_prog_LIPO"
7644 if test -n "$ac_tool_prefix"; then
7645 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7646 set dummy ${ac_tool_prefix}otool; 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_OTOOL+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 if test -n "$OTOOL"; then
7653 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 OTOOL=$ac_cv_prog_OTOOL
7673 if test -n "$OTOOL"; then
7674 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7675 echo "${ECHO_T}$OTOOL" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7683 if test -z "$ac_cv_prog_OTOOL"; then
7685 # Extract the first word of "otool", so it can be a program name with args.
7686 set dummy otool; ac_word=$2
7687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7689 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 if test -n "$ac_ct_OTOOL"; then
7693 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_prog_ac_ct_OTOOL="otool"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7713 if test -n "$ac_ct_OTOOL"; then
7714 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7715 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7717 { echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6; }
7721 if test "x$ac_ct_OTOOL" = x; then
7724 case $cross_compiling:$ac_tool_warned in
7726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7727 whose name does not start with the host triplet. If you think this
7728 configuration is useful to you, please write to autoconf@gnu.org." >&5
7729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7730 whose name does not start with the host triplet. If you think this
7731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7732 ac_tool_warned=yes ;;
7737 OTOOL="$ac_cv_prog_OTOOL"
7740 if test -n "$ac_tool_prefix"; then
7741 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7742 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 if test -n "$OTOOL64"; then
7749 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 OTOOL64=$ac_cv_prog_OTOOL64
7769 if test -n "$OTOOL64"; then
7770 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7771 echo "${ECHO_T}$OTOOL64" >&6; }
7773 { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7779 if test -z "$ac_cv_prog_OTOOL64"; then
7780 ac_ct_OTOOL64=$OTOOL64
7781 # Extract the first word of "otool64", so it can be a program name with args.
7782 set dummy otool64; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 if test -n "$ac_ct_OTOOL64"; then
7789 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798 ac_cv_prog_ac_ct_OTOOL64="otool64"
7799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7809 if test -n "$ac_ct_OTOOL64"; then
7810 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7811 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7813 { echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6; }
7817 if test "x$ac_ct_OTOOL64" = x; then
7820 case $cross_compiling:$ac_tool_warned in
7822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7823 whose name does not start with the host triplet. If you think this
7824 configuration is useful to you, please write to autoconf@gnu.org." >&5
7825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7826 whose name does not start with the host triplet. If you think this
7827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7828 ac_tool_warned=yes ;;
7830 OTOOL64=$ac_ct_OTOOL64
7833 OTOOL64="$ac_cv_prog_OTOOL64"
7862 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7863 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7864 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 lt_cv_apple_cc_single_mod=no
7868 if test -z "${LT_MULTI_MODULE}"; then
7869 # By default we will add the -single_module flag. You can override
7870 # by either setting the environment variable LT_MULTI_MODULE
7871 # non-empty at configure time, or by adding -multi_module to the
7873 rm -rf libconftest.dylib*
7874 echo "int foo(void){return 1;}" > conftest.c
7875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7876 -dynamiclib -Wl,-single_module conftest.c" >&5
7877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7880 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7881 lt_cv_apple_cc_single_mod=yes
7883 cat conftest.err >&5
7885 rm -rf libconftest.dylib*
7889 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7890 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7891 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7892 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7893 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 lt_cv_ld_exported_symbols_list=no
7897 save_LDFLAGS=$LDFLAGS
7898 echo "_main" > conftest.sym
7899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7915 rm -f conftest.$ac_objext conftest$ac_exeext
7916 if { (ac_try="$ac_link"
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_link") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest$ac_exeext &&
7932 $as_test_x conftest$ac_exeext; then
7933 lt_cv_ld_exported_symbols_list=yes
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 lt_cv_ld_exported_symbols_list=no
7941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7942 conftest$ac_exeext conftest.$ac_ext
7943 LDFLAGS="$save_LDFLAGS"
7946 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7947 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7949 rhapsody* | darwin1.[012])
7950 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7952 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7953 darwin*) # darwin 5.x on
7954 # if running on 10.5 or later, the deployment target defaults
7955 # to the OS version, if on x86, and 10.4, the deployment
7956 # target defaults to 10.4. Don't you love it?
7957 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7958 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7959 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7963 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7967 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7968 _lt_dar_single_mod='$single_module'
7970 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7971 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7973 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7975 if test "$DSYMUTIL" != ":"; then
7976 _lt_dsymutil='~$DSYMUTIL $lib || :'
7983 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7984 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7985 if test "${ac_cv_header_stdc+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 cat >conftest.$ac_ext <<_ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
8007 rm -f conftest.$ac_objext
8008 if { (ac_try="$ac_compile"
8010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011 *) ac_try_echo=$ac_try;;
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_compile") 2>conftest.er1
8016 grep -v '^ *+' conftest.er1 >conftest.err
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } && {
8021 test -z "$ac_c_werror_flag" ||
8022 test ! -s conftest.err
8023 } && test -s conftest.$ac_objext; then
8024 ac_cv_header_stdc=yes
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 ac_cv_header_stdc=no
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 if test $ac_cv_header_stdc = yes; then
8035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8046 $EGREP "memchr" >/dev/null 2>&1; then
8049 ac_cv_header_stdc=no
8055 if test $ac_cv_header_stdc = yes; then
8056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8067 $EGREP "free" >/dev/null 2>&1; then
8070 ac_cv_header_stdc=no
8076 if test $ac_cv_header_stdc = yes; then
8077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8078 if test "$cross_compiling" = yes; then
8081 cat >conftest.$ac_ext <<_ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8089 #if ((' ' & 0x0FF) == 0x020)
8090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8093 # define ISLOWER(c) \
8094 (('a' <= (c) && (c) <= 'i') \
8095 || ('j' <= (c) && (c) <= 'r') \
8096 || ('s' <= (c) && (c) <= 'z'))
8097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8105 for (i = 0; i < 256; i++)
8106 if (XOR (islower (i), ISLOWER (i))
8107 || toupper (i) != TOUPPER (i))
8112 rm -f conftest$ac_exeext
8113 if { (ac_try="$ac_link"
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_link") 2>&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8123 { (case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_try") 2>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8134 echo "$as_me: program exited with status $ac_status" >&5
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_header_stdc=no
8141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8147 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8148 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8149 if test $ac_cv_header_stdc = yes; then
8151 cat >>confdefs.h <<\_ACEOF
8152 #define STDC_HEADERS 1
8157 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8167 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8168 inttypes.h stdint.h unistd.h
8170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8184 #include <$ac_header>
8186 rm -f conftest.$ac_objext
8187 if { (ac_try="$ac_compile"
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_compile") 2>conftest.er1
8195 grep -v '^ *+' conftest.er1 >conftest.err
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest.$ac_objext; then
8203 eval "$as_ac_Header=yes"
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 eval "$as_ac_Header=no"
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 ac_res=`eval echo '${'$as_ac_Header'}'`
8214 { echo "$as_me:$LINENO: result: $ac_res" >&5
8215 echo "${ECHO_T}$ac_res" >&6; }
8216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8217 cat >>confdefs.h <<_ACEOF
8218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227 for ac_header in dlfcn.h
8229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 $ac_includes_default
8243 #include <$ac_header>
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8254 grep -v '^ *+' conftest.er1 >conftest.err
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 eval "$as_ac_Header=yes"
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8267 eval "$as_ac_Header=no"
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272 ac_res=`eval echo '${'$as_ac_Header'}'`
8273 { echo "$as_me:$LINENO: result: $ac_res" >&5
8274 echo "${ECHO_T}$ac_res" >&6; }
8275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8276 cat >>confdefs.h <<_ACEOF
8277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8287 ac_cpp='$CXXCPP $CPPFLAGS'
8288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8291 if test -z "$CXX"; then
8292 if test -n "$CCC"; then
8295 if test -n "$ac_tool_prefix"; then
8296 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8302 if test "${ac_cv_prog_CXX+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 if test -n "$CXX"; then
8306 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 if test -n "$CXX"; then
8327 { echo "$as_me:$LINENO: result: $CXX" >&5
8328 echo "${ECHO_T}$CXX" >&6; }
8330 { echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6; }
8335 test -n "$CXX" && break
8338 if test -z "$CXX"; then
8340 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8342 # Extract the first word of "$ac_prog", so it can be a program name with args.
8343 set dummy $ac_prog; ac_word=$2
8344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 if test -n "$ac_ct_CXX"; then
8350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_ac_ct_CXX="$ac_prog"
8360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8370 if test -n "$ac_ct_CXX"; then
8371 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8372 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8374 { echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6; }
8379 test -n "$ac_ct_CXX" && break
8382 if test "x$ac_ct_CXX" = x; then
8385 case $cross_compiling:$ac_tool_warned in
8387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8388 whose name does not start with the host triplet. If you think this
8389 configuration is useful to you, please write to autoconf@gnu.org." >&5
8390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8391 whose name does not start with the host triplet. If you think this
8392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8393 ac_tool_warned=yes ;;
8401 # Provide some information about the compiler.
8402 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8403 ac_compiler=`set X $ac_compile; echo $2`
8404 { (ac_try="$ac_compiler --version >&5"
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compiler --version >&5") 2>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }
8414 { (ac_try="$ac_compiler -v >&5"
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_compiler -v >&5") 2>&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }
8424 { (ac_try="$ac_compiler -V >&5"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compiler -V >&5") 2>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }
8435 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8436 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8437 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_cxx_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8487 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8488 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8489 GXX=`test $ac_compiler_gnu = yes && echo yes`
8490 ac_test_CXXFLAGS=${CXXFLAGS+set}
8491 ac_save_CXXFLAGS=$CXXFLAGS
8492 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8493 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8494 if test "${ac_cv_prog_cxx_g+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8498 ac_cxx_werror_flag=yes
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_cxx_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8533 ac_cv_prog_cxx_g=yes
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8563 grep -v '^ *+' conftest.er1 >conftest.err
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_cxx_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8578 cat >conftest.$ac_ext <<_ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8593 rm -f conftest.$ac_objext
8594 if { (ac_try="$ac_compile"
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_compile") 2>conftest.er1
8602 grep -v '^ *+' conftest.er1 >conftest.err
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && {
8607 test -z "$ac_cxx_werror_flag" ||
8608 test ! -s conftest.err
8609 } && test -s conftest.$ac_objext; then
8610 ac_cv_prog_cxx_g=yes
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8627 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8628 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8629 if test "$ac_test_CXXFLAGS" = set; then
8630 CXXFLAGS=$ac_save_CXXFLAGS
8631 elif test $ac_cv_prog_cxx_g = yes; then
8632 if test "$GXX" = yes; then
8638 if test "$GXX" = yes; then
8645 ac_cpp='$CPP $CPPFLAGS'
8646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8650 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8651 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8652 (test "X$CXX" != "Xg++"))) ; then
8654 ac_cpp='$CXXCPP $CPPFLAGS'
8655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8658 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8659 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8660 if test -z "$CXXCPP"; then
8661 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 # Double quotes because CXXCPP needs to be expanded
8665 for CXXCPP in "$CXX -E" "/lib/cpp"
8668 for ac_cxx_preproc_warn_flag in '' yes
8670 # Use a header file that comes with gcc, so configuring glibc
8671 # with a fresh cross-compiler works.
8672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673 # <limits.h> exists even on freestanding compilers.
8674 # On the NeXT, cc -E runs the code through the compiler's parser,
8675 # not just through cpp. "Syntax error" is here to catch this case.
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8683 # include <limits.h>
8685 # include <assert.h>
8689 if { (ac_try="$ac_cpp conftest.$ac_ext"
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8697 grep -v '^ *+' conftest.er1 >conftest.err
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } >/dev/null && {
8702 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8703 test ! -s conftest.err
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8710 # Broken: fails on valid input.
8714 rm -f conftest.err conftest.$ac_ext
8716 # OK, works on sane cases. Now check whether nonexistent headers
8717 # can be detected and how.
8718 cat >conftest.$ac_ext <<_ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8724 #include <ac_nonexistent.h>
8726 if { (ac_try="$ac_cpp conftest.$ac_ext"
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8734 grep -v '^ *+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } >/dev/null && {
8739 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8740 test ! -s conftest.err
8742 # Broken: success on invalid input.
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8748 # Passes both tests.
8753 rm -f conftest.err conftest.$ac_ext
8756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8757 rm -f conftest.err conftest.$ac_ext
8758 if $ac_preproc_ok; then
8763 ac_cv_prog_CXXCPP=$CXXCPP
8766 CXXCPP=$ac_cv_prog_CXXCPP
8768 ac_cv_prog_CXXCPP=$CXXCPP
8770 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8771 echo "${ECHO_T}$CXXCPP" >&6; }
8773 for ac_cxx_preproc_warn_flag in '' yes
8775 # Use a header file that comes with gcc, so configuring glibc
8776 # with a fresh cross-compiler works.
8777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8778 # <limits.h> exists even on freestanding compilers.
8779 # On the NeXT, cc -E runs the code through the compiler's parser,
8780 # not just through cpp. "Syntax error" is here to catch this case.
8781 cat >conftest.$ac_ext <<_ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8788 # include <limits.h>
8790 # include <assert.h>
8794 if { (ac_try="$ac_cpp conftest.$ac_ext"
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } >/dev/null && {
8807 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8808 test ! -s conftest.err
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 # Broken: fails on valid input.
8819 rm -f conftest.err conftest.$ac_ext
8821 # OK, works on sane cases. Now check whether nonexistent headers
8822 # can be detected and how.
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 #include <ac_nonexistent.h>
8831 if { (ac_try="$ac_cpp conftest.$ac_ext"
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8839 grep -v '^ *+' conftest.er1 >conftest.err
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } >/dev/null && {
8844 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8845 test ! -s conftest.err
8847 # Broken: success on invalid input.
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 # Passes both tests.
8858 rm -f conftest.err conftest.$ac_ext
8861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8862 rm -f conftest.err conftest.$ac_ext
8863 if $ac_preproc_ok; then
8866 _lt_caught_CXX_error=yes
8870 ac_cpp='$CPP $CPPFLAGS'
8871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8876 _lt_caught_CXX_error=yes
8884 # Check whether --enable-shared was given.
8885 if test "${enable_shared+set}" = set; then
8886 enableval=$enable_shared; p=${PACKAGE-default}
8888 yes) enable_shared=yes ;;
8889 no) enable_shared=no ;;
8892 # Look at the argument we got. We use all the common list separators.
8893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8894 for pkg in $enableval; do
8896 if test "X$pkg" = "X$p"; then
8913 # Check whether --enable-static was given.
8914 if test "${enable_static+set}" = set; then
8915 enableval=$enable_static; p=${PACKAGE-default}
8917 yes) enable_static=yes ;;
8918 no) enable_static=no ;;
8921 # Look at the argument we got. We use all the common list separators.
8922 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8923 for pkg in $enableval; do
8925 if test "X$pkg" = "X$p"; then
8954 # Check whether --with-pic was given.
8955 if test "${with_pic+set}" = set; then
8956 withval=$with_pic; pic_mode="$withval"
8962 test -z "$pic_mode" && pic_mode=default
8970 # Check whether --enable-fast-install was given.
8971 if test "${enable_fast_install+set}" = set; then
8972 enableval=$enable_fast_install; p=${PACKAGE-default}
8974 yes) enable_fast_install=yes ;;
8975 no) enable_fast_install=no ;;
8977 enable_fast_install=no
8978 # Look at the argument we got. We use all the common list separators.
8979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8980 for pkg in $enableval; do
8982 if test "X$pkg" = "X$p"; then
8983 enable_fast_install=yes
8990 enable_fast_install=yes
9003 # This can be used to rebuild libtool when needed
9004 LIBTOOL_DEPS="$ltmain"
9006 # Always use our own libtool.
9007 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9033 test -z "$LN_S" && LN_S="ln -s"
9048 if test -n "${ZSH_VERSION+set}" ; then
9049 setopt NO_GLOB_SUBST
9052 { echo "$as_me:$LINENO: checking for objdir" >&5
9053 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9054 if test "${lt_cv_objdir+set}" = set; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 rm -f .libs 2>/dev/null
9058 mkdir .libs 2>/dev/null
9059 if test -d .libs; then
9062 # MS-DOS does not allow filenames that begin with a dot.
9065 rmdir .libs 2>/dev/null
9067 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9068 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9069 objdir=$lt_cv_objdir
9075 cat >>confdefs.h <<_ACEOF
9076 #define LT_OBJDIR "$lt_cv_objdir/"
9097 # AIX sometimes has problems with the GCC collect2 program. For some
9098 # reason, if we set the COLLECT_NAMES environment variable, the problems
9099 # vanish in a puff of smoke.
9100 if test "X${COLLECT_NAMES+set}" != Xset; then
9102 export COLLECT_NAMES
9107 # Sed substitution that helps us do robust quoting. It backslashifies
9108 # metacharacters that are still active within double-quoted strings.
9109 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9111 # Same as above, but do not quote variable references.
9112 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9114 # Sed substitution to delay expansion of an escaped shell variable in a
9115 # double_quote_subst'ed string.
9116 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9118 # Sed substitution to delay expansion of an escaped single quote.
9119 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9121 # Sed substitution to avoid accidental globbing in evaled expressions
9122 no_glob_subst='s/\*/\\\*/g'
9126 can_build_shared=yes
9128 # All known linkers require a `.a' archive for static linking (except MSVC,
9129 # which needs '.lib').
9132 with_gnu_ld="$lt_cv_prog_gnu_ld"
9135 old_CFLAGS="$CFLAGS"
9137 # Set sane defaults for various variables
9138 test -z "$CC" && CC=cc
9139 test -z "$LTCC" && LTCC=$CC
9140 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9141 test -z "$LD" && LD=ld
9142 test -z "$ac_objext" && ac_objext=o
9144 for cc_temp in $compiler""; do
9146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9152 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9155 # Only perform the check for file, if the check method requires it
9156 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9157 case $deplibs_check_method in
9159 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9160 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9161 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9170 lt_save_MAGIC_CMD="$MAGIC_CMD"
9171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9173 for ac_dir in $ac_dummy; do
9175 test -z "$ac_dir" && ac_dir=.
9176 if test -f $ac_dir/${ac_tool_prefix}file; then
9177 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9178 if test -n "$file_magic_test_file"; then
9179 case $deplibs_check_method in
9181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9184 $EGREP "$file_magic_regex" > /dev/null; then
9189 *** Warning: the command libtool uses to detect shared libraries,
9190 *** $file_magic_cmd, produces output that libtool cannot recognize.
9191 *** The result is that libtool may fail to recognize shared libraries
9192 *** as such. This will affect the creation of libtool libraries that
9193 *** depend on shared libraries, but programs linked with such libtool
9194 *** libraries will work regardless of this problem. Nevertheless, you
9195 *** may want to report the problem to your system manager and/or to
9196 *** bug-libtool@gnu.org
9206 MAGIC_CMD="$lt_save_MAGIC_CMD"
9211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9212 if test -n "$MAGIC_CMD"; then
9213 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9214 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9216 { echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6; }
9224 if test -z "$lt_cv_path_MAGIC_CMD"; then
9225 if test -n "$ac_tool_prefix"; then
9226 { echo "$as_me:$LINENO: checking for file" >&5
9227 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9228 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9236 lt_save_MAGIC_CMD="$MAGIC_CMD"
9237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9238 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9239 for ac_dir in $ac_dummy; do
9241 test -z "$ac_dir" && ac_dir=.
9242 if test -f $ac_dir/file; then
9243 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9244 if test -n "$file_magic_test_file"; then
9245 case $deplibs_check_method in
9247 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9249 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9250 $EGREP "$file_magic_regex" > /dev/null; then
9255 *** Warning: the command libtool uses to detect shared libraries,
9256 *** $file_magic_cmd, produces output that libtool cannot recognize.
9257 *** The result is that libtool may fail to recognize shared libraries
9258 *** as such. This will affect the creation of libtool libraries that
9259 *** depend on shared libraries, but programs linked with such libtool
9260 *** libraries will work regardless of this problem. Nevertheless, you
9261 *** may want to report the problem to your system manager and/or to
9262 *** bug-libtool@gnu.org
9272 MAGIC_CMD="$lt_save_MAGIC_CMD"
9277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9278 if test -n "$MAGIC_CMD"; then
9279 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9280 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9282 { echo "$as_me:$LINENO: result: no" >&5
9283 echo "${ECHO_T}no" >&6; }
9296 # Use C for the default configuration in the libtool script
9300 ac_cpp='$CPP $CPPFLAGS'
9301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9306 # Source file extension for C test sources.
9309 # Object file extension for compiled C test sources.
9313 # Code to be used in simple compile tests
9314 lt_simple_compile_test_code="int some_variable = 0;"
9316 # Code to be used in simple link tests
9317 lt_simple_link_test_code='int main(){return(0);}'
9325 # If no C compiler was specified, use CC.
9328 # If no C compiler flags were specified, use CFLAGS.
9329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9331 # Allow CC to be a program name with arguments.
9334 # Save the default compiler, since it gets overwritten when the other
9335 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9336 compiler_DEFAULT=$CC
9338 # save warnings/boilerplate of simple test code
9339 ac_outfile=conftest.$ac_objext
9340 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9341 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9342 _lt_compiler_boilerplate=`cat conftest.err`
9345 ac_outfile=conftest.$ac_objext
9346 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9347 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9348 _lt_linker_boilerplate=`cat conftest.err`
9353 ## There is no encapsulation within the following macros, do not change
9354 ## the running order or otherwise move them around unless you know exactly
9355 ## what you are doing...
9356 if test -n "$compiler"; then
9358 lt_prog_compiler_no_builtin_flag=
9360 if test "$GCC" = yes; then
9361 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9363 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9364 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9365 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 lt_cv_prog_compiler_rtti_exceptions=no
9369 ac_outfile=conftest.$ac_objext
9370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9371 lt_compiler_flag="-fno-rtti -fno-exceptions"
9372 # Insert the option either (1) after the last *FLAGS variable, or
9373 # (2) before a word containing "conftest.", or (3) at the end.
9374 # Note that $ac_compile itself does not contain backslashes and begins
9375 # with a dollar sign (not a hyphen), so the echo should work correctly.
9376 # The option is referenced via a variable to avoid confusing sed.
9377 lt_compile=`echo "$ac_compile" | $SED \
9378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9380 -e 's:$: $lt_compiler_flag:'`
9381 (eval echo "\"\$as_me:9381: $lt_compile\"" >&5)
9382 (eval "$lt_compile" 2>conftest.err)
9384 cat conftest.err >&5
9385 echo "$as_me:9385: \$? = $ac_status" >&5
9386 if (exit $ac_status) && test -s "$ac_outfile"; then
9387 # The compiler can only warn and ignore the option if not recognized
9388 # So say no if there are warnings other than the usual output.
9389 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9391 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9392 lt_cv_prog_compiler_rtti_exceptions=yes
9398 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9399 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9401 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9402 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9414 lt_prog_compiler_wl=
9415 lt_prog_compiler_pic=
9416 lt_prog_compiler_static=
9418 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9419 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9421 if test "$GCC" = yes; then
9422 lt_prog_compiler_wl='-Wl,'
9423 lt_prog_compiler_static='-static'
9427 # All AIX code is PIC.
9428 if test "$host_cpu" = ia64; then
9429 # AIX 5 now supports IA64 processor
9430 lt_prog_compiler_static='-Bstatic'
9437 # see comment about AmigaOS4 .so support
9438 lt_prog_compiler_pic='-fPIC'
9441 # FIXME: we need at least 68020 code to build shared libraries, but
9442 # adding the `-m68020' flag to GCC prevents building anything better,
9444 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9449 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9450 # PIC is the default for these OSes.
9453 mingw* | cygwin* | pw32* | os2* | cegcc*)
9454 # This hack is so that the source file can tell whether it is being
9455 # built for inclusion in a dll (and should export symbols for example).
9456 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9457 # (--disable-auto-import) libraries
9458 lt_prog_compiler_pic='-DDLL_EXPORT'
9461 darwin* | rhapsody*)
9462 # PIC is the default on this platform
9463 # Common symbols not allowed in MH_DYLIB files
9464 lt_prog_compiler_pic='-fno-common'
9468 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9469 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9470 # sets the default TLS model and affects inlining.
9476 lt_prog_compiler_pic='-fPIC'
9482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9483 # Instead, we relocate shared libraries at runtime.
9487 # Just because we use GCC doesn't mean we suddenly get shared libraries
9488 # on systems that don't support them.
9489 lt_prog_compiler_can_build_shared=no
9494 # QNX uses GNU C++, but need to define -shared option too, otherwise
9496 lt_prog_compiler_pic='-fPIC -shared'
9500 if test -d /usr/nec; then
9501 lt_prog_compiler_pic=-Kconform_pic
9506 lt_prog_compiler_pic='-fPIC'
9510 # PORTME Check for flag to pass linker flags through the system compiler.
9513 lt_prog_compiler_wl='-Wl,'
9514 if test "$host_cpu" = ia64; then
9515 # AIX 5 now supports IA64 processor
9516 lt_prog_compiler_static='-Bstatic'
9518 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9522 mingw* | cygwin* | pw32* | os2* | cegcc*)
9523 # This hack is so that the source file can tell whether it is being
9524 # built for inclusion in a dll (and should export symbols for example).
9525 lt_prog_compiler_pic='-DDLL_EXPORT'
9528 hpux9* | hpux10* | hpux11*)
9529 lt_prog_compiler_wl='-Wl,'
9530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9537 lt_prog_compiler_pic='+Z'
9540 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9541 lt_prog_compiler_static='${wl}-a ${wl}archive'
9544 irix5* | irix6* | nonstopux*)
9545 lt_prog_compiler_wl='-Wl,'
9546 # PIC (with -KPIC) is the default.
9547 lt_prog_compiler_static='-non_shared'
9550 linux* | k*bsd*-gnu)
9551 case $cc_basename in
9552 # old Intel for x86_64 which still supported -KPIC.
9554 lt_prog_compiler_wl='-Wl,'
9555 lt_prog_compiler_pic='-KPIC'
9556 lt_prog_compiler_static='-static'
9558 # icc used to be incompatible with GCC.
9559 # ICC 10 doesn't accept -KPIC any more.
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_pic='-fPIC'
9563 lt_prog_compiler_static='-static'
9565 # Lahey Fortran 8.1.
9567 lt_prog_compiler_wl='-Wl,'
9568 lt_prog_compiler_pic='--shared'
9569 lt_prog_compiler_static='--static'
9571 pgcc* | pgf77* | pgf90* | pgf95*)
9572 # Portland Group compilers (*not* the Pentium gcc compiler,
9573 # which looks to be a dead project)
9574 lt_prog_compiler_wl='-Wl,'
9575 lt_prog_compiler_pic='-fpic'
9576 lt_prog_compiler_static='-Bstatic'
9579 lt_prog_compiler_wl='-Wl,'
9580 # All Alpha code is PIC.
9581 lt_prog_compiler_static='-non_shared'
9584 # IBM XL C 8.0/Fortran 10.1 on PPC
9585 lt_prog_compiler_wl='-Wl,'
9586 lt_prog_compiler_pic='-qpic'
9587 lt_prog_compiler_static='-qstaticlink'
9590 case `$CC -V 2>&1 | sed 5q` in
9593 lt_prog_compiler_pic='-KPIC'
9594 lt_prog_compiler_static='-Bstatic'
9595 lt_prog_compiler_wl='-Wl,'
9598 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9599 lt_prog_compiler_pic='-KPIC'
9600 lt_prog_compiler_static='-Bstatic'
9601 lt_prog_compiler_wl=''
9609 lt_prog_compiler_pic='-KPIC'
9610 lt_prog_compiler_static='-Bstatic'
9614 # QNX uses GNU C++, but need to define -shared option too, otherwise
9616 lt_prog_compiler_pic='-fPIC -shared'
9619 osf3* | osf4* | osf5*)
9620 lt_prog_compiler_wl='-Wl,'
9621 # All OSF/1 code is PIC.
9622 lt_prog_compiler_static='-non_shared'
9626 lt_prog_compiler_static='-non_shared'
9630 lt_prog_compiler_pic='-KPIC'
9631 lt_prog_compiler_static='-Bstatic'
9632 case $cc_basename in
9634 lt_prog_compiler_wl='-Qoption ld ';;
9636 lt_prog_compiler_wl='-Wl,';;
9641 lt_prog_compiler_wl='-Qoption ld '
9642 lt_prog_compiler_pic='-PIC'
9643 lt_prog_compiler_static='-Bstatic'
9646 sysv4 | sysv4.2uw2* | sysv4.3*)
9647 lt_prog_compiler_wl='-Wl,'
9648 lt_prog_compiler_pic='-KPIC'
9649 lt_prog_compiler_static='-Bstatic'
9653 if test -d /usr/nec ;then
9654 lt_prog_compiler_pic='-Kconform_pic'
9655 lt_prog_compiler_static='-Bstatic'
9659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9660 lt_prog_compiler_wl='-Wl,'
9661 lt_prog_compiler_pic='-KPIC'
9662 lt_prog_compiler_static='-Bstatic'
9666 lt_prog_compiler_wl='-Wl,'
9667 lt_prog_compiler_can_build_shared=no
9671 lt_prog_compiler_pic='-pic'
9672 lt_prog_compiler_static='-Bstatic'
9676 lt_prog_compiler_can_build_shared=no
9682 # For platforms which do not support PIC, -DPIC is meaningless:
9684 lt_prog_compiler_pic=
9687 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9690 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9691 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9699 # Check to make sure the PIC flag actually works.
9701 if test -n "$lt_prog_compiler_pic"; then
9702 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9703 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9704 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 lt_cv_prog_compiler_pic_works=no
9708 ac_outfile=conftest.$ac_objext
9709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9710 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9711 # Insert the option either (1) after the last *FLAGS variable, or
9712 # (2) before a word containing "conftest.", or (3) at the end.
9713 # Note that $ac_compile itself does not contain backslashes and begins
9714 # with a dollar sign (not a hyphen), so the echo should work correctly.
9715 # The option is referenced via a variable to avoid confusing sed.
9716 lt_compile=`echo "$ac_compile" | $SED \
9717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9719 -e 's:$: $lt_compiler_flag:'`
9720 (eval echo "\"\$as_me:9720: $lt_compile\"" >&5)
9721 (eval "$lt_compile" 2>conftest.err)
9723 cat conftest.err >&5
9724 echo "$as_me:9724: \$? = $ac_status" >&5
9725 if (exit $ac_status) && test -s "$ac_outfile"; then
9726 # The compiler can only warn and ignore the option if not recognized
9727 # So say no if there are warnings other than the usual output.
9728 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9731 lt_cv_prog_compiler_pic_works=yes
9737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9738 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9740 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9741 case $lt_prog_compiler_pic in
9743 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9746 lt_prog_compiler_pic=
9747 lt_prog_compiler_can_build_shared=no
9758 # Check to make sure the static flag actually works.
9760 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9761 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9762 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9763 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 lt_cv_prog_compiler_static_works=no
9767 save_LDFLAGS="$LDFLAGS"
9768 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9769 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9770 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9771 # The linker can only warn and ignore the option if not recognized
9772 # So say no if there are warnings
9773 if test -s conftest.err; then
9774 # Append any errors to the config.log.
9775 cat conftest.err 1>&5
9776 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9778 if diff conftest.exp conftest.er2 >/dev/null; then
9779 lt_cv_prog_compiler_static_works=yes
9782 lt_cv_prog_compiler_static_works=yes
9786 LDFLAGS="$save_LDFLAGS"
9789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9790 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9792 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9795 lt_prog_compiler_static=
9804 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9805 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9806 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 lt_cv_prog_compiler_c_o=no
9810 $RM -r conftest 2>/dev/null
9814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9816 lt_compiler_flag="-o out/conftest2.$ac_objext"
9817 # Insert the option either (1) after the last *FLAGS variable, or
9818 # (2) before a word containing "conftest.", or (3) at the end.
9819 # Note that $ac_compile itself does not contain backslashes and begins
9820 # with a dollar sign (not a hyphen), so the echo should work correctly.
9821 lt_compile=`echo "$ac_compile" | $SED \
9822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9824 -e 's:$: $lt_compiler_flag:'`
9825 (eval echo "\"\$as_me:9825: $lt_compile\"" >&5)
9826 (eval "$lt_compile" 2>out/conftest.err)
9828 cat out/conftest.err >&5
9829 echo "$as_me:9829: \$? = $ac_status" >&5
9830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9832 # The compiler can only warn and ignore the option if not recognized
9833 # So say no if there are warnings
9834 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9837 lt_cv_prog_compiler_c_o=yes
9842 # SGI C++ compiler will create directory out/ii_files/ for
9843 # template instantiation
9844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9845 $RM out/* && rmdir out
9851 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9852 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9859 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9860 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9861 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 lt_cv_prog_compiler_c_o=no
9865 $RM -r conftest 2>/dev/null
9869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871 lt_compiler_flag="-o out/conftest2.$ac_objext"
9872 # Insert the option either (1) after the last *FLAGS variable, or
9873 # (2) before a word containing "conftest.", or (3) at the end.
9874 # Note that $ac_compile itself does not contain backslashes and begins
9875 # with a dollar sign (not a hyphen), so the echo should work correctly.
9876 lt_compile=`echo "$ac_compile" | $SED \
9877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879 -e 's:$: $lt_compiler_flag:'`
9880 (eval echo "\"\$as_me:9880: $lt_compile\"" >&5)
9881 (eval "$lt_compile" 2>out/conftest.err)
9883 cat out/conftest.err >&5
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9887 # The compiler can only warn and ignore the option if not recognized
9888 # So say no if there are warnings
9889 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9892 lt_cv_prog_compiler_c_o=yes
9897 # SGI C++ compiler will create directory out/ii_files/ for
9898 # template instantiation
9899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9900 $RM out/* && rmdir out
9906 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9907 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9912 hard_links="nottested"
9913 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9914 # do not overwrite the value of need_locks provided by the user
9915 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9916 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9921 ln conftest.a conftest.b 2>&5 || hard_links=no
9922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9923 { echo "$as_me:$LINENO: result: $hard_links" >&5
9924 echo "${ECHO_T}$hard_links" >&6; }
9925 if test "$hard_links" = no; then
9926 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9927 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9939 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9940 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9943 allow_undefined_flag=
9944 always_export_symbols=no
9946 archive_expsym_cmds=
9947 compiler_needs_object=no
9948 enable_shared_with_static_runtimes=no
9949 export_dynamic_flag_spec=
9950 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9951 hardcode_automatic=no
9953 hardcode_direct_absolute=no
9954 hardcode_libdir_flag_spec=
9955 hardcode_libdir_flag_spec_ld=
9956 hardcode_libdir_separator=
9958 hardcode_shlibpath_var=unsupported
9960 link_all_deplibs=unknown
9963 old_archive_from_new_cmds=
9964 old_archive_from_expsyms_cmds=
9965 thread_safe_flag_spec=
9966 whole_archive_flag_spec=
9967 # include_expsyms should be a list of space-separated symbols to be *always*
9968 # included in the symbol list
9970 # exclude_expsyms can be an extended regexp of symbols to exclude
9971 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9972 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9973 # as well as any symbol that contains `d'.
9974 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9975 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9976 # platforms (ab)use it in PIC code, but their linkers get confused if
9977 # the symbol is explicitly referenced. Since portable code cannot
9978 # rely on this symbol name, it's probably fine to never include it in
9979 # preloaded symbol tables.
9980 # Exclude shared library initialization/finalization symbols.
9981 extract_expsyms_cmds=
9984 cygwin* | mingw* | pw32* | cegcc*)
9985 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9986 # When not using gcc, we currently assume that we are using
9987 # Microsoft Visual C++.
9988 if test "$GCC" != yes; then
9993 # we just hope/assume this is gcc and not c89 (= MSVC++)
10002 if test "$with_gnu_ld" = yes; then
10003 # If archive_cmds runs LD, not CC, wlarc should be empty
10006 # Set some defaults for GNU ld with shared library support. These
10007 # are reset later if shared libraries are not supported. Putting them
10008 # here allows them to be overridden if necessary.
10009 runpath_var=LD_RUN_PATH
10010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10011 export_dynamic_flag_spec='${wl}--export-dynamic'
10012 # ancient GNU ld didn't support --whole-archive et. al.
10013 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10014 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10016 whole_archive_flag_spec=
10018 supports_anon_versioning=no
10019 case `$LD -v 2>&1` in
10020 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10021 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10022 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10023 *\ 2.11.*) ;; # other 2.11 versions
10024 *) supports_anon_versioning=yes ;;
10027 # See if GNU ld supports shared libraries.
10030 # On AIX/PPC, the GNU linker is very broken
10031 if test "$host_cpu" != ia64; then
10035 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10036 *** to be unable to reliably create shared libraries on AIX.
10037 *** Therefore, libtool is disabling shared libraries support. If you
10038 *** really care for shared libraries, you may want to modify your PATH
10039 *** so that a non-GNU linker is found, and then restart.
10048 # see comment about AmigaOS4 .so support
10049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050 archive_expsym_cmds=''
10053 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)'
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 hardcode_minus_L=yes
10061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10062 allow_undefined_flag=unsupported
10063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10064 # support --undefined. This deserves some investigation. FIXME
10065 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10071 cygwin* | mingw* | pw32* | cegcc*)
10072 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10073 # as there is no search path for DLLs.
10074 hardcode_libdir_flag_spec='-L$libdir'
10075 allow_undefined_flag=unsupported
10076 always_export_symbols=no
10077 enable_shared_with_static_runtimes=yes
10078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10080 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10082 # If the export-symbols file already is a .def file (1st line
10083 # is EXPORTS), use it as is; otherwise, prepend...
10084 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10085 cp $export_symbols $output_objdir/$soname.def;
10087 echo EXPORTS > $output_objdir/$soname.def;
10088 cat $export_symbols >> $output_objdir/$soname.def;
10090 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10098 hardcode_shlibpath_var=no
10099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10100 export_dynamic_flag_spec='${wl}-E'
10101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10102 # Instead, shared libraries are loaded at an image base (0x10000000 by
10103 # default) and relocated if they conflict, which is a slow very memory
10104 # consuming and fragmenting process. To avoid this, we pick a random,
10105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10108 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'
10111 gnu* | linux* | tpf* | k*bsd*-gnu)
10113 if test "$host_os" = linux-dietlibc; then
10114 case $cc_basename in
10115 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10118 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10119 && test "$tmp_diet" = no
10122 tmp_sharedflag='-shared'
10123 case $cc_basename,$host_cpu in
10124 pgcc*) # Portland Group C compiler
10125 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'
10126 tmp_addflag=' $pic_flag'
10128 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10129 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'
10130 tmp_addflag=' $pic_flag -Mnomain' ;;
10131 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10132 tmp_addflag=' -i_dynamic' ;;
10133 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10134 tmp_addflag=' -i_dynamic -nofor_main' ;;
10135 ifc* | ifort*) # Intel Fortran compiler
10136 tmp_addflag=' -nofor_main' ;;
10137 lf95*) # Lahey Fortran 8.1
10138 whole_archive_flag_spec=
10139 tmp_sharedflag='--shared' ;;
10140 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10141 tmp_sharedflag='-qmkshrobj'
10144 case `$CC -V 2>&1 | sed 5q` in
10145 *Sun\ C*) # Sun C 5.9
10146 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'
10147 compiler_needs_object=yes
10148 tmp_sharedflag='-G' ;;
10149 *Sun\ F*) # Sun Fortran 8.3
10150 tmp_sharedflag='-G' ;;
10152 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10154 if test "x$supports_anon_versioning" = xyes; then
10155 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10157 echo "local: *; };" >> $output_objdir/$libname.ver~
10158 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10161 case $cc_basename in
10163 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10164 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10165 hardcode_libdir_flag_spec=
10166 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10167 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10168 if test "x$supports_anon_versioning" = xyes; then
10169 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10171 echo "local: *; };" >> $output_objdir/$libname.ver~
10172 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10183 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10192 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10196 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10197 *** create shared libraries on Solaris systems. Therefore, libtool
10198 *** is disabling shared libraries support. We urge you to upgrade GNU
10199 *** binutils to release 2.9.1 or newer. Another option is to modify
10200 *** your PATH or compiler configuration so that the native linker is
10201 *** used, and then restart.
10204 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10213 case `$LD -v 2>&1` in
10214 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10218 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10219 *** reliably create shared libraries on SCO systems. Therefore, libtool
10220 *** is disabling shared libraries support. We urge you to upgrade GNU
10221 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10222 *** your PATH or compiler configuration so that the native linker is
10223 *** used, and then restart.
10228 # For security reasons, it is highly recommended that you always
10229 # use absolute paths for naming shared libraries, and exclude the
10230 # DT_RUNPATH tag from executables and libraries. But doing so
10231 # requires that you compile everything twice, which is a pain.
10232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10244 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10246 hardcode_direct=yes
10247 hardcode_shlibpath_var=no
10251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10260 if test "$ld_shlibs" = no; then
10262 hardcode_libdir_flag_spec=
10263 export_dynamic_flag_spec=
10264 whole_archive_flag_spec=
10267 # PORTME fill in a description of your system's linker (not GNU ld)
10270 allow_undefined_flag=unsupported
10271 always_export_symbols=yes
10272 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'
10273 # Note: this linker hardcodes the directories in LIBPATH if there
10274 # are no directories specified by -L.
10275 hardcode_minus_L=yes
10276 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10277 # Neither direct hardcoding nor static linking is supported with a
10279 hardcode_direct=unsupported
10284 if test "$host_cpu" = ia64; then
10285 # On IA64, the linker does run time linking by default, so we don't
10286 # have to do anything special.
10287 aix_use_runtimelinking=no
10288 exp_sym_flag='-Bexport'
10291 # If we're using GNU nm, then we don't want the "-C" option.
10292 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10293 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10294 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'
10296 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'
10298 aix_use_runtimelinking=no
10300 # Test if we are trying to use run time linking or normal
10301 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10302 # need to do runtime linking.
10303 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10304 for ld_flag in $LDFLAGS; do
10305 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10306 aix_use_runtimelinking=yes
10313 exp_sym_flag='-bexport'
10314 no_entry_flag='-bnoentry'
10317 # When large executables or shared objects are built, AIX ld can
10318 # have problems creating the table of contents. If linking a library
10319 # or program results in "error TOC overflow" add -mminimal-toc to
10320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10324 hardcode_direct=yes
10325 hardcode_direct_absolute=yes
10326 hardcode_libdir_separator=':'
10327 link_all_deplibs=yes
10328 file_list_spec='${wl}-f,'
10330 if test "$GCC" = yes; then
10331 case $host_os in aix4.[012]|aix4.[012].*)
10332 # We only want to do this on AIX 4.2 and lower, the check
10333 # below for broken collect2 doesn't work under 4.3+
10334 collect2name=`${CC} -print-prog-name=collect2`
10335 if test -f "$collect2name" &&
10336 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10338 # We have reworked collect2
10341 # We have old collect2
10342 hardcode_direct=unsupported
10343 # It fails to find uninstalled libraries when the uninstalled
10344 # path is not listed in the libpath. Setting hardcode_minus_L
10345 # to unsupported forces relinking
10346 hardcode_minus_L=yes
10347 hardcode_libdir_flag_spec='-L$libdir'
10348 hardcode_libdir_separator=
10352 shared_flag='-shared'
10353 if test "$aix_use_runtimelinking" = yes; then
10354 shared_flag="$shared_flag "'${wl}-G'
10358 if test "$host_cpu" = ia64; then
10359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10360 # chokes on -Wl,-G. The following line is correct:
10363 if test "$aix_use_runtimelinking" = yes; then
10364 shared_flag='${wl}-G'
10366 shared_flag='${wl}-bM:SRE'
10371 export_dynamic_flag_spec='${wl}-bexpall'
10372 # It seems that -bexpall does not export symbols beginning with
10373 # underscore (_), so it is better to generate a list of symbols to export.
10374 always_export_symbols=yes
10375 if test "$aix_use_runtimelinking" = yes; then
10376 # Warning - without using the other runtime loading flags (-brtl),
10377 # -berok will link without error, but may produce a broken library.
10378 allow_undefined_flag='-berok'
10379 # Determine the default libpath from the value encoded in an
10380 # empty executable.
10381 cat >conftest.$ac_ext <<_ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_link") 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext &&
10413 $as_test_x conftest$ac_exeext; then
10415 lt_aix_libpath_sed='
10416 /Import File Strings/,/^$/ {
10422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423 # Check for a 64-bit object if we didn't find anything.
10424 if test -z "$aix_libpath"; then
10425 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10428 echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10435 conftest$ac_exeext conftest.$ac_ext
10436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10438 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10439 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"
10441 if test "$host_cpu" = ia64; then
10442 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10443 allow_undefined_flag="-z nodefs"
10444 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"
10446 # Determine the default libpath from the value encoded in an
10447 # empty executable.
10448 cat >conftest.$ac_ext <<_ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_link") 2>conftest.er1
10472 grep -v '^ *+' conftest.er1 >conftest.err
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest$ac_exeext &&
10480 $as_test_x conftest$ac_exeext; then
10482 lt_aix_libpath_sed='
10483 /Import File Strings/,/^$/ {
10489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 # Check for a 64-bit object if we didn't find anything.
10491 if test -z "$aix_libpath"; then
10492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10506 # Warning - without using the other run time loading flags,
10507 # -berok will link without error, but may produce a broken library.
10508 no_undefined_flag=' ${wl}-bernotok'
10509 allow_undefined_flag=' ${wl}-berok'
10510 # Exported symbols can be pulled into shared objects from archives
10511 whole_archive_flag_spec='$convenience'
10512 archive_cmds_need_lc=yes
10513 # This is similar to how AIX traditionally builds its shared libraries.
10514 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'
10522 # see comment about AmigaOS4 .so support
10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10524 archive_expsym_cmds=''
10527 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)'
10528 hardcode_libdir_flag_spec='-L$libdir'
10529 hardcode_minus_L=yes
10535 export_dynamic_flag_spec=-rdynamic
10538 cygwin* | mingw* | pw32* | cegcc*)
10539 # When not using gcc, we currently assume that we are using
10540 # Microsoft Visual C++.
10541 # hardcode_libdir_flag_spec is actually meaningless, as there is
10542 # no search path for DLLs.
10543 hardcode_libdir_flag_spec=' '
10544 allow_undefined_flag=unsupported
10545 # Tell ltmain to make .lib files, not .a files.
10547 # Tell ltmain to make .dll files, not .so files.
10549 # FIXME: Setting linknames here is a bad hack.
10550 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10551 # The linker will automatically build a .lib file if we build a DLL.
10552 old_archive_from_new_cmds='true'
10553 # FIXME: Should let the user specify the lib program.
10554 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10555 fix_srcfile_path='`cygpath -w "$srcfile"`'
10556 enable_shared_with_static_runtimes=yes
10559 darwin* | rhapsody*)
10562 archive_cmds_need_lc=no
10564 hardcode_automatic=yes
10565 hardcode_shlibpath_var=unsupported
10566 whole_archive_flag_spec=''
10567 link_all_deplibs=yes
10568 allow_undefined_flag="$_lt_dar_allow_undefined"
10569 case $cc_basename in
10570 ifort*) _lt_dar_can_shared=yes ;;
10571 *) _lt_dar_can_shared=$GCC ;;
10573 if test "$_lt_dar_can_shared" = "yes"; then
10574 output_verbose_link_cmd=echo
10575 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10576 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10577 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}"
10578 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}"
10587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10588 hardcode_libdir_flag_spec='-L$libdir'
10589 hardcode_shlibpath_var=no
10596 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10597 # support. Future versions do this automatically, but an explicit c++rt0.o
10598 # does not break anything, and helps significantly (at the cost of a little
10601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10602 hardcode_libdir_flag_spec='-R$libdir'
10603 hardcode_direct=yes
10604 hardcode_shlibpath_var=no
10607 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10610 hardcode_direct=yes
10611 hardcode_minus_L=yes
10612 hardcode_shlibpath_var=no
10615 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10616 freebsd* | dragonfly*)
10617 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10618 hardcode_libdir_flag_spec='-R$libdir'
10619 hardcode_direct=yes
10620 hardcode_shlibpath_var=no
10624 if test "$GCC" = yes; then
10625 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'
10627 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'
10629 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10630 hardcode_libdir_separator=:
10631 hardcode_direct=yes
10633 # hardcode_minus_L: Not really in the search PATH,
10634 # but as the default location of the library.
10635 hardcode_minus_L=yes
10636 export_dynamic_flag_spec='${wl}-E'
10640 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10641 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10645 if test "$with_gnu_ld" = no; then
10646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10647 hardcode_libdir_flag_spec_ld='+b $libdir'
10648 hardcode_libdir_separator=:
10649 hardcode_direct=yes
10650 hardcode_direct_absolute=yes
10651 export_dynamic_flag_spec='${wl}-E'
10652 # hardcode_minus_L: Not really in the search PATH,
10653 # but as the default location of the library.
10654 hardcode_minus_L=yes
10659 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10662 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10668 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10674 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10677 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10680 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10684 if test "$with_gnu_ld" = no; then
10685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686 hardcode_libdir_separator=:
10691 hardcode_shlibpath_var=no
10694 hardcode_direct=yes
10695 hardcode_direct_absolute=yes
10696 export_dynamic_flag_spec='${wl}-E'
10698 # hardcode_minus_L: Not really in the search PATH,
10699 # but as the default location of the library.
10700 hardcode_minus_L=yes
10706 irix5* | irix6* | nonstopux*)
10707 if test "$GCC" = yes; then
10708 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'
10709 # Try to use the -exported_symbol ld option, if it does not
10710 # work, assume that -exports_file does not work either and
10711 # implicitly export all symbols.
10712 save_LDFLAGS="$LDFLAGS"
10713 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10714 cat >conftest.$ac_ext <<_ACEOF
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_link") 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && {
10731 test -z "$ac_c_werror_flag" ||
10732 test ! -s conftest.err
10733 } && test -s conftest$ac_exeext &&
10734 $as_test_x conftest$ac_exeext; then
10735 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'
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LDFLAGS="$save_LDFLAGS"
10748 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'
10749 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'
10751 archive_cmds_need_lc='no'
10752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10753 hardcode_libdir_separator=:
10755 link_all_deplibs=yes
10759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10762 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10764 hardcode_libdir_flag_spec='-R$libdir'
10765 hardcode_direct=yes
10766 hardcode_shlibpath_var=no
10770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10771 hardcode_direct=yes
10772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10773 hardcode_libdir_separator=:
10774 hardcode_shlibpath_var=no
10781 if test -f /usr/libexec/ld.so; then
10782 hardcode_direct=yes
10783 hardcode_shlibpath_var=no
10784 hardcode_direct_absolute=yes
10785 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10787 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10789 export_dynamic_flag_spec='${wl}-E'
10792 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10794 hardcode_libdir_flag_spec='-R$libdir'
10797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10798 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10808 hardcode_libdir_flag_spec='-L$libdir'
10809 hardcode_minus_L=yes
10810 allow_undefined_flag=unsupported
10811 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'
10812 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10816 if test "$GCC" = yes; then
10817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10818 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'
10820 allow_undefined_flag=' -expect_unresolved \*'
10821 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'
10823 archive_cmds_need_lc='no'
10824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825 hardcode_libdir_separator=:
10828 osf4* | osf5*) # as osf3* with the addition of -msym flag
10829 if test "$GCC" = yes; then
10830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10831 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'
10832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10834 allow_undefined_flag=' -expect_unresolved \*'
10835 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'
10836 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~
10837 $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'
10839 # Both c and cxx compiler support -rpath directly
10840 hardcode_libdir_flag_spec='-rpath $libdir'
10842 archive_cmds_need_lc='no'
10843 hardcode_libdir_separator=:
10847 no_undefined_flag=' -z defs'
10848 if test "$GCC" = yes; then
10850 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10852 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10854 case `$CC -V 2>&1` in
10857 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10859 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10863 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10864 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10865 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10869 hardcode_libdir_flag_spec='-R$libdir'
10870 hardcode_shlibpath_var=no
10872 solaris2.[0-5] | solaris2.[0-5].*) ;;
10874 # The compiler driver will combine and reorder linker options,
10875 # but understands `-z linker_flag'. GCC discards it without `$wl',
10876 # but is careful enough not to reorder.
10877 # Supported since Solaris 2.6 (maybe 2.5.1?)
10878 if test "$GCC" = yes; then
10879 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10881 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10885 link_all_deplibs=yes
10889 if test "x$host_vendor" = xsequent; then
10890 # Use $CC to link under sequent, because it throws in some extra .o
10891 # files that make .init and .fini sections work.
10892 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10894 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_libdir_flag_spec='-L$libdir'
10897 hardcode_direct=yes
10898 hardcode_minus_L=yes
10899 hardcode_shlibpath_var=no
10903 case $host_vendor in
10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_direct=yes # is this really true???
10909 ## LD is ld it makes a PLAMLIB
10910 ## CC just makes a GrossModule.
10911 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10912 reload_cmds='$CC -r -o $output$reload_objs'
10916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10920 runpath_var='LD_RUN_PATH'
10921 hardcode_shlibpath_var=no
10925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10926 hardcode_shlibpath_var=no
10927 export_dynamic_flag_spec='-Bexport'
10931 if test -d /usr/nec; then
10932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933 hardcode_shlibpath_var=no
10934 runpath_var=LD_RUN_PATH
10935 hardcode_runpath_var=yes
10940 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10941 no_undefined_flag='${wl}-z,text'
10942 archive_cmds_need_lc=no
10943 hardcode_shlibpath_var=no
10944 runpath_var='LD_RUN_PATH'
10946 if test "$GCC" = yes; then
10947 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955 sysv5* | sco3.2v5* | sco5v6*)
10956 # Note: We can NOT use -z defs as we might desire, because we do not
10957 # link with -lc, and that would cause any symbols used from libc to
10958 # always be unresolved, which means just about no library would
10959 # ever link correctly. If we're not using GNU ld we use -z text
10960 # though, which does catch some bad symbols but isn't as heavy-handed
10962 no_undefined_flag='${wl}-z,text'
10963 allow_undefined_flag='${wl}-z,nodefs'
10964 archive_cmds_need_lc=no
10965 hardcode_shlibpath_var=no
10966 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10967 hardcode_libdir_separator=':'
10968 link_all_deplibs=yes
10969 export_dynamic_flag_spec='${wl}-Bexport'
10970 runpath_var='LD_RUN_PATH'
10972 if test "$GCC" = yes; then
10973 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983 hardcode_libdir_flag_spec='-L$libdir'
10984 hardcode_shlibpath_var=no
10992 if test x$host_vendor = xsni; then
10994 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10995 export_dynamic_flag_spec='${wl}-Blargedynsym'
11001 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11002 echo "${ECHO_T}$ld_shlibs" >&6; }
11003 test "$ld_shlibs" = no && can_build_shared=no
11005 with_gnu_ld=$with_gnu_ld
11022 # Do we need to explicitly link libc?
11024 case "x$archive_cmds_need_lc" in
11026 # Assume -lc should be added
11027 archive_cmds_need_lc=yes
11029 if test "$enable_shared" = yes && test "$GCC" = yes; then
11030 case $archive_cmds in
11032 # FIXME: we may have to deal with multi-command sequences.
11035 # Test whether the compiler implicitly links with -lc since on some
11036 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11037 # to ld, don't add -lc before -lgcc.
11038 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11039 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } 2>conftest.err; then
11050 libobjs=conftest.$ac_objext
11052 wl=$lt_prog_compiler_wl
11053 pic_flag=$lt_prog_compiler_pic
11059 lt_save_allow_undefined_flag=$allow_undefined_flag
11060 allow_undefined_flag=
11061 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11062 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }
11067 archive_cmds_need_lc=no
11069 archive_cmds_need_lc=yes
11071 allow_undefined_flag=$lt_save_allow_undefined_flag
11073 cat conftest.err 1>&5
11076 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11077 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11240 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11241 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11243 if test "$GCC" = yes; then
11245 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11246 *) lt_awk_arg="/^libraries:/" ;;
11248 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11249 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11250 # if the path contains ";" then we assume it to be the separator
11251 # otherwise default to the standard path separator (i.e. ":") - it is
11252 # assumed that no part of a normal pathname contains ";" but that should
11253 # okay in the real world where ";" in dirpaths is itself problematic.
11254 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11256 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11258 # Ok, now we have the path, separated by spaces, we can step through it
11259 # and add multilib dir if necessary.
11260 lt_tmp_lt_search_path_spec=
11261 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11262 for lt_sys_path in $lt_search_path_spec; do
11263 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11266 test -d "$lt_sys_path" && \
11267 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11270 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11271 BEGIN {RS=" "; FS="/|\n";} {
11274 for (lt_i = NF; lt_i > 0; lt_i--) {
11275 if ($lt_i != "" && $lt_i != ".") {
11276 if ($lt_i == "..") {
11279 if (lt_count == 0) {
11280 lt_foo="/" $lt_i lt_foo;
11287 if (lt_foo != "") { lt_freq[lt_foo]++; }
11288 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11290 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11294 library_names_spec=
11295 libname_spec='lib$name'
11299 postuninstall_cmds=
11303 shlibpath_overrides_runpath=unknown
11305 dynamic_linker="$host_os ld.so"
11306 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11307 need_lib_prefix=unknown
11308 hardcode_into_libs=no
11310 # when you set need_version to no, make sure it does not cause -set_version
11311 # flags to be left without arguments
11312 need_version=unknown
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11318 shlibpath_var=LIBPATH
11320 # AIX 3 has no versioning support, so we append a major version to the name.
11321 soname_spec='${libname}${release}${shared_ext}$major'
11328 hardcode_into_libs=yes
11329 if test "$host_cpu" = ia64; then
11330 # AIX 5 supports IA64
11331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11332 shlibpath_var=LD_LIBRARY_PATH
11334 # With GCC up to 2.95.x, collect2 would create an import file
11335 # for dependence libraries. The import file would start with
11336 # the line `#! .'. This would cause the generated library to
11337 # depend on `.', always an invalid library. This was fixed in
11338 # development snapshots of GCC prior to 3.0.
11340 aix4 | aix4.[01] | aix4.[01].*)
11341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11343 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11346 can_build_shared=no
11350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11351 # soname into executable. Probably we can add versioning support to
11352 # collect2, so additional links can be useful in future.
11353 if test "$aix_use_runtimelinking" = yes; then
11354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11355 # instead of lib<name>.a to let people know that these are not
11356 # typical AIX shared libraries.
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 # We preserve .a as extension for shared libraries through AIX4.2
11360 # and later when we are not doing run time linking.
11361 library_names_spec='${libname}${release}.a $libname.a'
11362 soname_spec='${libname}${release}${shared_ext}$major'
11364 shlibpath_var=LIBPATH
11371 # Since July 2007 AmigaOS4 officially supports .so libraries.
11372 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376 library_names_spec='$libname.ixlibrary $libname.a'
11377 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11378 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'
11384 library_names_spec='${libname}${shared_ext}'
11385 dynamic_linker="$host_os ld.so"
11386 shlibpath_var=LIBRARY_PATH
11392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393 soname_spec='${libname}${release}${shared_ext}$major'
11394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11398 # the default ld.so.conf also contains /usr/contrib/lib and
11399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11400 # libtool to hard-code these into programs
11403 cygwin* | mingw* | pw32* | cegcc*)
11404 version_type=windows
11409 case $GCC,$host_os in
11410 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11411 library_names_spec='$libname.dll.a'
11412 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11413 postinstall_cmds='base_file=`basename \${file}`~
11414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11415 dldir=$destdir/`dirname \$dlpath`~
11416 test -d \$dldir || mkdir -p \$dldir~
11417 $install_prog $dir/$dlname \$dldir/$dlname~
11418 chmod a+x \$dldir/$dlname~
11419 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11420 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11423 dlpath=$dir/\$dldll~
11425 shlibpath_overrides_runpath=yes
11429 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11430 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11434 # MinGW DLLs use traditional 'lib' prefix
11435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11436 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11437 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11438 # It is most probably a Windows format PATH printed by
11439 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11440 # path with ; separators, and with drive letters. We can handle the
11441 # drive letters (cygwin fileutils understands them), so leave them,
11442 # especially as we might pass files found there to a mingw objdump,
11443 # which wouldn't understand a cygwinified path. Ahh.
11444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11450 # pw32 DLLs use 'pw' prefix rather than 'lib'
11451 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11457 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11460 dynamic_linker='Win32 ld.exe'
11461 # FIXME: first we should search . and the directory the executable is in
11465 darwin* | rhapsody*)
11466 dynamic_linker="$host_os dyld"
11467 version_type=darwin
11470 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11471 soname_spec='${libname}${release}${major}$shared_ext'
11472 shlibpath_overrides_runpath=yes
11473 shlibpath_var=DYLD_LIBRARY_PATH
11474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11493 freebsd* | dragonfly*)
11494 # DragonFly does not have aout. When/if they implement a new
11495 # versioning mechanism, adjust this.
11496 if test -x /usr/bin/objformat; then
11497 objformat=`/usr/bin/objformat`
11500 freebsd[123]*) objformat=aout ;;
11501 *) objformat=elf ;;
11504 version_type=freebsd-$objformat
11505 case $version_type in
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11516 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11521 freebsd3.[01]* | freebsdelf3.[01]*)
11522 shlibpath_overrides_runpath=yes
11523 hardcode_into_libs=yes
11525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11527 shlibpath_overrides_runpath=no
11528 hardcode_into_libs=yes
11530 *) # from 4.6 on, and DragonFly
11531 shlibpath_overrides_runpath=yes
11532 hardcode_into_libs=yes
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11542 soname_spec='${libname}${release}${shared_ext}$major'
11543 shlibpath_var=LD_LIBRARY_PATH
11544 hardcode_into_libs=yes
11547 hpux9* | hpux10* | hpux11*)
11548 # Give a soname corresponding to the major version so that dld.sl refuses to
11549 # link against other versions.
11556 hardcode_into_libs=yes
11557 dynamic_linker="$host_os dld.so"
11558 shlibpath_var=LD_LIBRARY_PATH
11559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 soname_spec='${libname}${release}${shared_ext}$major'
11562 if test "X$HPUX_IA64_MODE" = X32; then
11563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11571 hardcode_into_libs=yes
11572 dynamic_linker="$host_os dld.sl"
11573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11582 dynamic_linker="$host_os dld.sl"
11583 shlibpath_var=SHLIB_PATH
11584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11589 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11590 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=no
11602 hardcode_into_libs=yes
11605 irix5* | irix6* | nonstopux*)
11607 nonstopux*) version_type=nonstopux ;;
11609 if test "$lt_cv_prog_gnu_ld" = yes; then
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11620 irix5* | nonstopux*)
11621 libsuff= shlibsuff=
11624 case $LD in # libtool.m4 will add one of these switches to LD
11625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11626 libsuff= shlibsuff= libmagic=32-bit;;
11627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11628 libsuff=32 shlibsuff=N32 libmagic=N32;;
11629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11631 *) libsuff= shlibsuff= libmagic=never-match;;
11635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11636 shlibpath_overrides_runpath=no
11637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11639 hardcode_into_libs=yes
11642 # No shared lib support for Linux oldld, aout, or coff.
11643 linux*oldld* | linux*aout* | linux*coff*)
11647 # This must be Linux ELF.
11648 linux* | k*bsd*-gnu)
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=no
11657 # Some binutils ld are patched to set DT_RUNPATH
11658 save_LDFLAGS=$LDFLAGS
11659 save_libdir=$libdir
11660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11662 cat >conftest.$ac_ext <<_ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_link") 2>conftest.er1
11686 grep -v '^ *+' conftest.er1 >conftest.err
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } && {
11691 test -z "$ac_c_werror_flag" ||
11692 test ! -s conftest.err
11693 } && test -s conftest$ac_exeext &&
11694 $as_test_x conftest$ac_exeext; then
11695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11696 shlibpath_overrides_runpath=yes
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LDFLAGS=$save_LDFLAGS
11709 libdir=$save_libdir
11711 # This implies no fast_install, which is unacceptable.
11712 # Some rework will be needed to allow for fast_install
11713 # before this can be enabled.
11714 hardcode_into_libs=yes
11716 # Append ld.so.conf contents to the search path
11717 if test -f /etc/ld.so.conf; then
11718 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' ' '`
11719 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11722 # We used to test for /lib/ld.so.1 and disable shared libraries on
11723 # powerpc, because MkLinux only supported shared libraries with the
11724 # GNU dynamic linker. Since this was broken with cross compilers,
11725 # most powerpc-linux boxes support dynamic linking these days and
11726 # people can always --disable-shared, the test was removed, and we
11727 # assume the GNU/Linux dynamic linker is in use.
11728 dynamic_linker='GNU/Linux ld.so'
11735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11738 dynamic_linker='NetBSD (a.out) ld.so'
11740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11741 soname_spec='${libname}${release}${shared_ext}$major'
11742 dynamic_linker='NetBSD ld.elf_so'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath=yes
11746 hardcode_into_libs=yes
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=no
11764 hardcode_into_libs=yes
11765 dynamic_linker='ldqnx.so'
11770 sys_lib_dlsearch_path_spec="/usr/lib"
11772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11775 *) need_version=no ;;
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11782 openbsd2.[89] | openbsd2.[89].*)
11783 shlibpath_overrides_runpath=no
11786 shlibpath_overrides_runpath=yes
11790 shlibpath_overrides_runpath=yes
11795 libname_spec='$name'
11798 library_names_spec='$libname${shared_ext} $libname.a'
11799 dynamic_linker='OS/2 ld.exe'
11800 shlibpath_var=LIBPATH
11803 osf3* | osf4* | osf5*)
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823 soname_spec='${libname}${release}${shared_ext}$major'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 shlibpath_overrides_runpath=yes
11826 hardcode_into_libs=yes
11827 # ldd complains unless libraries are executable
11828 postinstall_cmds='chmod +x $lib'
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11834 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 shlibpath_overrides_runpath=yes
11837 if test "$with_gnu_ld" = yes; then
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11846 soname_spec='${libname}${release}${shared_ext}$major'
11847 shlibpath_var=LD_LIBRARY_PATH
11848 case $host_vendor in
11850 shlibpath_overrides_runpath=no
11852 runpath_var=LD_RUN_PATH
11860 shlibpath_overrides_runpath=no
11861 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11867 if test -d /usr/nec ;then
11869 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11870 soname_spec='$libname${shared_ext}.$major'
11871 shlibpath_var=LD_LIBRARY_PATH
11875 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11876 version_type=freebsd-elf
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11880 soname_spec='${libname}${release}${shared_ext}$major'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 shlibpath_overrides_runpath=yes
11883 hardcode_into_libs=yes
11884 if test "$with_gnu_ld" = yes; then
11885 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11887 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11890 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11894 sys_lib_dlsearch_path_spec='/usr/lib'
11898 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 shlibpath_overrides_runpath=no
11905 hardcode_into_libs=yes
11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911 soname_spec='${libname}${release}${shared_ext}$major'
11912 shlibpath_var=LD_LIBRARY_PATH
11919 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11920 echo "${ECHO_T}$dynamic_linker" >&6; }
11921 test "$dynamic_linker" = no && can_build_shared=no
11923 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11924 if test "$GCC" = yes; then
11925 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11928 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11929 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11931 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11932 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12021 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12022 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12024 if test -n "$hardcode_libdir_flag_spec" ||
12025 test -n "$runpath_var" ||
12026 test "X$hardcode_automatic" = "Xyes" ; then
12028 # We can hardcode non-existent directories.
12029 if test "$hardcode_direct" != no &&
12030 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12031 # have to relink, otherwise we might link with an installed library
12032 # when we should be linking with a yet-to-be-installed one
12033 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12034 test "$hardcode_minus_L" != no; then
12035 # Linking always hardcodes the temporary library directory.
12036 hardcode_action=relink
12038 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12039 hardcode_action=immediate
12042 # We cannot hardcode anything, or else we can only hardcode existing
12044 hardcode_action=unsupported
12046 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12047 echo "${ECHO_T}$hardcode_action" >&6; }
12049 if test "$hardcode_action" = relink ||
12050 test "$inherit_rpath" = yes; then
12051 # Fast installation is not supported
12052 enable_fast_install=no
12053 elif test "$shlibpath_overrides_runpath" = yes ||
12054 test "$enable_shared" = no; then
12055 # Fast installation is not necessary
12056 enable_fast_install=needless
12064 if test "x$enable_dlopen" != xyes; then
12065 enable_dlopen=unknown
12066 enable_dlopen_self=unknown
12067 enable_dlopen_self_static=unknown
12074 lt_cv_dlopen="load_add_on"
12076 lt_cv_dlopen_self=yes
12079 mingw* | pw32* | cegcc*)
12080 lt_cv_dlopen="LoadLibrary"
12085 lt_cv_dlopen="dlopen"
12090 # if libdl is installed we need to link against it
12091 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12092 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 ac_check_lib_save_LIBS=$LIBS
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_link") 2>conftest.er1
12129 grep -v '^ *+' conftest.er1 >conftest.err
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest$ac_exeext &&
12137 $as_test_x conftest$ac_exeext; then
12138 ac_cv_lib_dl_dlopen=yes
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 ac_cv_lib_dl_dlopen=no
12146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12150 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12151 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12152 if test $ac_cv_lib_dl_dlopen = yes; then
12153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12156 lt_cv_dlopen="dyld"
12158 lt_cv_dlopen_self=yes
12165 { echo "$as_me:$LINENO: checking for shl_load" >&5
12166 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12167 if test "${ac_cv_func_shl_load+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12178 #define shl_load innocuous_shl_load
12180 /* System header to define __stub macros and hopefully few prototypes,
12181 which can conflict with char shl_load (); below.
12182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12183 <limits.h> exists even on freestanding compilers. */
12186 # include <limits.h>
12188 # include <assert.h>
12193 /* Override any GCC internal prototype to avoid an error.
12194 Use char because int might match the return type of a GCC
12195 builtin and then its argument prototype would still apply. */
12200 /* The GNU C library defines this for functions which it implements
12201 to always fail with ENOSYS. Some functions are actually named
12202 something starting with __ and the normal name is an alias. */
12203 #if defined __stub_shl_load || defined __stub___shl_load
12210 return shl_load ();
12215 rm -f conftest.$ac_objext conftest$ac_exeext
12216 if { (ac_try="$ac_link"
12217 case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_link") 2>conftest.er1
12224 grep -v '^ *+' conftest.er1 >conftest.err
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } && {
12229 test -z "$ac_c_werror_flag" ||
12230 test ! -s conftest.err
12231 } && test -s conftest$ac_exeext &&
12232 $as_test_x conftest$ac_exeext; then
12233 ac_cv_func_shl_load=yes
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 ac_cv_func_shl_load=no
12241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12242 conftest$ac_exeext conftest.$ac_ext
12244 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12245 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12246 if test $ac_cv_func_shl_load = yes; then
12247 lt_cv_dlopen="shl_load"
12249 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12250 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12251 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 ac_check_lib_save_LIBS=$LIBS
12256 cat >conftest.$ac_ext <<_ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12263 /* Override any GCC internal prototype to avoid an error.
12264 Use char because int might match the return type of a GCC
12265 builtin and then its argument prototype would still apply. */
12273 return shl_load ();
12278 rm -f conftest.$ac_objext conftest$ac_exeext
12279 if { (ac_try="$ac_link"
12280 case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_link") 2>conftest.er1
12287 grep -v '^ *+' conftest.er1 >conftest.err
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest$ac_exeext &&
12295 $as_test_x conftest$ac_exeext; then
12296 ac_cv_lib_dld_shl_load=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_cv_lib_dld_shl_load=no
12304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12309 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12310 if test $ac_cv_lib_dld_shl_load = yes; then
12311 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12313 { echo "$as_me:$LINENO: checking for dlopen" >&5
12314 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12315 if test "${ac_cv_func_dlopen+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 cat >conftest.$ac_ext <<_ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12326 #define dlopen innocuous_dlopen
12328 /* System header to define __stub macros and hopefully few prototypes,
12329 which can conflict with char dlopen (); below.
12330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12331 <limits.h> exists even on freestanding compilers. */
12334 # include <limits.h>
12336 # include <assert.h>
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12348 /* The GNU C library defines this for functions which it implements
12349 to always fail with ENOSYS. Some functions are actually named
12350 something starting with __ and the normal name is an alias. */
12351 #if defined __stub_dlopen || defined __stub___dlopen
12363 rm -f conftest.$ac_objext conftest$ac_exeext
12364 if { (ac_try="$ac_link"
12365 case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_link") 2>conftest.er1
12372 grep -v '^ *+' conftest.er1 >conftest.err
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && {
12377 test -z "$ac_c_werror_flag" ||
12378 test ! -s conftest.err
12379 } && test -s conftest$ac_exeext &&
12380 $as_test_x conftest$ac_exeext; then
12381 ac_cv_func_dlopen=yes
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_cv_func_dlopen=no
12389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12390 conftest$ac_exeext conftest.$ac_ext
12392 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12393 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12394 if test $ac_cv_func_dlopen = yes; then
12395 lt_cv_dlopen="dlopen"
12397 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12398 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12399 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 ac_check_lib_save_LIBS=$LIBS
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (ac_try="$ac_link"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_link") 2>conftest.er1
12435 grep -v '^ *+' conftest.er1 >conftest.err
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest$ac_exeext &&
12443 $as_test_x conftest$ac_exeext; then
12444 ac_cv_lib_dl_dlopen=yes
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_cv_lib_dl_dlopen=no
12452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12453 conftest$ac_exeext conftest.$ac_ext
12454 LIBS=$ac_check_lib_save_LIBS
12456 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12457 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12458 if test $ac_cv_lib_dl_dlopen = yes; then
12459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12461 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12462 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12463 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lsvld $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12490 rm -f conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_link") 2>conftest.er1
12499 grep -v '^ *+' conftest.er1 >conftest.err
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } && {
12504 test -z "$ac_c_werror_flag" ||
12505 test ! -s conftest.err
12506 } && test -s conftest$ac_exeext &&
12507 $as_test_x conftest$ac_exeext; then
12508 ac_cv_lib_svld_dlopen=yes
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 ac_cv_lib_svld_dlopen=no
12516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12517 conftest$ac_exeext conftest.$ac_ext
12518 LIBS=$ac_check_lib_save_LIBS
12520 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12521 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12522 if test $ac_cv_lib_svld_dlopen = yes; then
12523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12525 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12526 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12527 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 ac_check_lib_save_LIBS=$LIBS
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12539 /* Override any GCC internal prototype to avoid an error.
12540 Use char because int might match the return type of a GCC
12541 builtin and then its argument prototype would still apply. */
12549 return dld_link ();
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_link") 2>conftest.er1
12563 grep -v '^ *+' conftest.er1 >conftest.err
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && {
12568 test -z "$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 } && test -s conftest$ac_exeext &&
12571 $as_test_x conftest$ac_exeext; then
12572 ac_cv_lib_dld_dld_link=yes
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 ac_cv_lib_dld_dld_link=no
12580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12581 conftest$ac_exeext conftest.$ac_ext
12582 LIBS=$ac_check_lib_save_LIBS
12584 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12585 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12586 if test $ac_cv_lib_dld_dld_link = yes; then
12587 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12608 if test "x$lt_cv_dlopen" != xno; then
12614 case $lt_cv_dlopen in
12616 save_CPPFLAGS="$CPPFLAGS"
12617 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12619 save_LDFLAGS="$LDFLAGS"
12620 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12623 LIBS="$lt_cv_dlopen_libs $LIBS"
12625 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12626 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12627 if test "${lt_cv_dlopen_self+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12630 if test "$cross_compiling" = yes; then :
12631 lt_cv_dlopen_self=cross
12633 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12634 lt_status=$lt_dlunknown
12635 cat > conftest.$ac_ext <<_LT_EOF
12636 #line 12636 "configure"
12637 #include "confdefs.h"
12646 # define LT_DLGLOBAL RTLD_GLOBAL
12649 # define LT_DLGLOBAL DL_GLOBAL
12651 # define LT_DLGLOBAL 0
12655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12656 find out it does not work in some platform. */
12657 #ifndef LT_DLLAZY_OR_NOW
12659 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12662 # define LT_DLLAZY_OR_NOW DL_LAZY
12665 # define LT_DLLAZY_OR_NOW RTLD_NOW
12668 # define LT_DLLAZY_OR_NOW DL_NOW
12670 # define LT_DLLAZY_OR_NOW 0
12677 void fnord() { int i=42;}
12680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12681 int status = $lt_dlunknown;
12685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12686 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12687 /* dlclose (self); */
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12700 (./conftest; exit; ) >&5 2>/dev/null
12702 case x$lt_status in
12703 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12704 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12705 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12708 # compilation failed
12709 lt_cv_dlopen_self=no
12716 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12717 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12719 if test "x$lt_cv_dlopen_self" = xyes; then
12720 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12721 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12722 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12723 if test "${lt_cv_dlopen_self_static+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 if test "$cross_compiling" = yes; then :
12727 lt_cv_dlopen_self_static=cross
12729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12730 lt_status=$lt_dlunknown
12731 cat > conftest.$ac_ext <<_LT_EOF
12732 #line 12732 "configure"
12733 #include "confdefs.h"
12742 # define LT_DLGLOBAL RTLD_GLOBAL
12745 # define LT_DLGLOBAL DL_GLOBAL
12747 # define LT_DLGLOBAL 0
12751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12752 find out it does not work in some platform. */
12753 #ifndef LT_DLLAZY_OR_NOW
12755 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12758 # define LT_DLLAZY_OR_NOW DL_LAZY
12761 # define LT_DLLAZY_OR_NOW RTLD_NOW
12764 # define LT_DLLAZY_OR_NOW DL_NOW
12766 # define LT_DLLAZY_OR_NOW 0
12773 void fnord() { int i=42;}
12776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12777 int status = $lt_dlunknown;
12781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12782 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12783 /* dlclose (self); */
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792 (eval $ac_link) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12796 (./conftest; exit; ) >&5 2>/dev/null
12798 case x$lt_status in
12799 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12800 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12801 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12804 # compilation failed
12805 lt_cv_dlopen_self_static=no
12812 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12813 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12816 CPPFLAGS="$save_CPPFLAGS"
12817 LDFLAGS="$save_LDFLAGS"
12822 case $lt_cv_dlopen_self in
12823 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12824 *) enable_dlopen_self=unknown ;;
12827 case $lt_cv_dlopen_self_static in
12828 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12829 *) enable_dlopen_self_static=unknown ;;
12851 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12852 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12853 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12854 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12855 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12856 { echo "$as_me:$LINENO: result: yes" >&5
12857 echo "${ECHO_T}yes" >&6; }
12859 # FIXME - insert some real tests, host_os isn't really good enough
12862 if test -n "$STRIP" ; then
12863 striplib="$STRIP -x"
12864 old_striplib="$STRIP -S"
12865 { echo "$as_me:$LINENO: result: yes" >&5
12866 echo "${ECHO_T}yes" >&6; }
12868 { echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6; }
12873 { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12890 # Report which library types will actually be built
12891 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12892 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12893 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12894 echo "${ECHO_T}$can_build_shared" >&6; }
12896 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12897 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12898 test "$can_build_shared" = "no" && enable_shared=no
12900 # On AIX, shared libraries and static libraries use the same namespace, and
12901 # are all built from PIC.
12904 test "$enable_shared" = yes && enable_static=no
12905 if test -n "$RANLIB"; then
12906 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12907 postinstall_cmds='$RANLIB $lib'
12912 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12913 test "$enable_shared" = yes && enable_static=no
12917 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12918 echo "${ECHO_T}$enable_shared" >&6; }
12920 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12921 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12922 # Make sure either enable_shared or enable_static is yes.
12923 test "$enable_shared" = yes || enable_static=yes
12924 { echo "$as_me:$LINENO: result: $enable_static" >&5
12925 echo "${ECHO_T}$enable_static" >&6; }
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12941 ac_cpp='$CXXCPP $CPPFLAGS'
12942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12946 archive_cmds_need_lc_CXX=no
12947 allow_undefined_flag_CXX=
12948 always_export_symbols_CXX=no
12949 archive_expsym_cmds_CXX=
12950 compiler_needs_object_CXX=no
12951 export_dynamic_flag_spec_CXX=
12952 hardcode_direct_CXX=no
12953 hardcode_direct_absolute_CXX=no
12954 hardcode_libdir_flag_spec_CXX=
12955 hardcode_libdir_flag_spec_ld_CXX=
12956 hardcode_libdir_separator_CXX=
12957 hardcode_minus_L_CXX=no
12958 hardcode_shlibpath_var_CXX=unsupported
12959 hardcode_automatic_CXX=no
12960 inherit_rpath_CXX=no
12962 module_expsym_cmds_CXX=
12963 link_all_deplibs_CXX=unknown
12964 old_archive_cmds_CXX=$old_archive_cmds
12965 no_undefined_flag_CXX=
12966 whole_archive_flag_spec_CXX=
12967 enable_shared_with_static_runtimes_CXX=no
12969 # Source file extension for C++ test sources.
12972 # Object file extension for compiled C++ test sources.
12976 # No sense in running all these tests if we already determined that
12977 # the CXX compiler isn't working. Some variables (like enable_shared)
12978 # are currently assumed to apply to all compilers on this platform,
12979 # and will be corrupted by setting them based on a non-working compiler.
12980 if test "$_lt_caught_CXX_error" != yes; then
12981 # Code to be used in simple compile tests
12982 lt_simple_compile_test_code="int some_variable = 0;"
12984 # Code to be used in simple link tests
12985 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12994 # If no C compiler was specified, use CC.
12997 # If no C compiler flags were specified, use CFLAGS.
12998 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13000 # Allow CC to be a program name with arguments.
13004 # save warnings/boilerplate of simple test code
13005 ac_outfile=conftest.$ac_objext
13006 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13007 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13008 _lt_compiler_boilerplate=`cat conftest.err`
13011 ac_outfile=conftest.$ac_objext
13012 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13013 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13014 _lt_linker_boilerplate=`cat conftest.err`
13018 # Allow CC to be a program name with arguments.
13023 lt_save_with_gnu_ld=$with_gnu_ld
13024 lt_save_path_LD=$lt_cv_path_LD
13025 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13026 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13028 $as_unset lt_cv_prog_gnu_ld
13030 if test -n "${lt_cv_path_LDCXX+set}"; then
13031 lt_cv_path_LD=$lt_cv_path_LDCXX
13033 $as_unset lt_cv_path_LD
13035 test -z "${LDCXX+set}" || LD=$LDCXX
13039 for cc_temp in $compiler""; do
13041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13047 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13050 if test -n "$compiler"; then
13051 # We don't want -fno-exception when compiling C++ code, so set the
13052 # no_builtin_flag separately
13053 if test "$GXX" = yes; then
13054 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13056 lt_prog_compiler_no_builtin_flag_CXX=
13059 if test "$GXX" = yes; then
13060 # Set up default GNU C++ configuration
13064 # Check whether --with-gnu-ld was given.
13065 if test "${with_gnu_ld+set}" = set; then
13066 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13072 if test "$GCC" = yes; then
13073 # Check if gcc -print-prog-name=ld gives a path.
13074 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13075 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13078 # gcc leaves a trailing carriage return which upsets mingw
13079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13084 # Accept absolute paths.
13086 re_direlt='/[^/][^/]*/\.\./'
13087 # Canonicalize the pathname of ld
13088 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13089 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13090 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13092 test -z "$LD" && LD="$ac_prog"
13095 # If it fails, then pretend we aren't using GCC.
13099 # If it is relative, then search for the first ld in PATH.
13100 with_gnu_ld=unknown
13103 elif test "$with_gnu_ld" = yes; then
13104 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13105 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13107 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13108 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13110 if test "${lt_cv_path_LD+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 if test -z "$LD"; then
13114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13115 for ac_dir in $PATH; do
13117 test -z "$ac_dir" && ac_dir=.
13118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13119 lt_cv_path_LD="$ac_dir/$ac_prog"
13120 # Check to see if the program is GNU ld. I'd rather use --version,
13121 # but apparently some variants of GNU ld only accept -v.
13122 # Break only if it was the GNU/non-GNU ld that we prefer.
13123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13124 *GNU* | *'with BFD'*)
13125 test "$with_gnu_ld" != no && break
13128 test "$with_gnu_ld" != yes && break
13135 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13139 LD="$lt_cv_path_LD"
13140 if test -n "$LD"; then
13141 { echo "$as_me:$LINENO: result: $LD" >&5
13142 echo "${ECHO_T}$LD" >&6; }
13144 { echo "$as_me:$LINENO: result: no" >&5
13145 echo "${ECHO_T}no" >&6; }
13147 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13148 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13149 { (exit 1); exit 1; }; }
13150 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13151 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13152 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13156 case `$LD -v 2>&1 </dev/null` in
13157 *GNU* | *'with BFD'*)
13158 lt_cv_prog_gnu_ld=yes
13161 lt_cv_prog_gnu_ld=no
13165 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13166 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13167 with_gnu_ld=$lt_cv_prog_gnu_ld
13175 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13176 # archiving commands below assume that GNU ld is being used.
13177 if test "$with_gnu_ld" = yes; then
13178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179 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'
13181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13184 # If archive_cmds runs LD, not CC, wlarc should be empty
13185 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13186 # investigate it a little bit more. (MM)
13189 # ancient GNU ld didn't support --whole-archive et. al.
13190 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13191 $GREP 'no-whole-archive' > /dev/null; then
13192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13194 whole_archive_flag_spec_CXX=
13200 # A generic and very simple default shared library creation
13201 # command for GNU C++ for the case where it uses the native
13202 # linker, instead of GNU ld. If possible, this setting should
13203 # overridden to take advantage of the native linker features on
13204 # the platform it is being used on.
13205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13208 # Commands to make compiler produce verbose output that lists
13209 # what "hidden" libraries, object files and flags are used when
13210 # linking a shared library.
13211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13219 # PORTME: fill in a description of your system's C++ link characteristics
13220 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13225 # FIXME: insert proper C++ library support
13229 if test "$host_cpu" = ia64; then
13230 # On IA64, the linker does run time linking by default, so we don't
13231 # have to do anything special.
13232 aix_use_runtimelinking=no
13233 exp_sym_flag='-Bexport'
13236 aix_use_runtimelinking=no
13238 # Test if we are trying to use run time linking or normal
13239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13240 # need to do runtime linking.
13241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13242 for ld_flag in $LDFLAGS; do
13245 aix_use_runtimelinking=yes
13253 exp_sym_flag='-bexport'
13254 no_entry_flag='-bnoentry'
13257 # When large executables or shared objects are built, AIX ld can
13258 # have problems creating the table of contents. If linking a library
13259 # or program results in "error TOC overflow" add -mminimal-toc to
13260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13263 archive_cmds_CXX=''
13264 hardcode_direct_CXX=yes
13265 hardcode_direct_absolute_CXX=yes
13266 hardcode_libdir_separator_CXX=':'
13267 link_all_deplibs_CXX=yes
13268 file_list_spec_CXX='${wl}-f,'
13270 if test "$GXX" = yes; then
13271 case $host_os in aix4.[012]|aix4.[012].*)
13272 # We only want to do this on AIX 4.2 and lower, the check
13273 # below for broken collect2 doesn't work under 4.3+
13274 collect2name=`${CC} -print-prog-name=collect2`
13275 if test -f "$collect2name" &&
13276 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13278 # We have reworked collect2
13281 # We have old collect2
13282 hardcode_direct_CXX=unsupported
13283 # It fails to find uninstalled libraries when the uninstalled
13284 # path is not listed in the libpath. Setting hardcode_minus_L
13285 # to unsupported forces relinking
13286 hardcode_minus_L_CXX=yes
13287 hardcode_libdir_flag_spec_CXX='-L$libdir'
13288 hardcode_libdir_separator_CXX=
13291 shared_flag='-shared'
13292 if test "$aix_use_runtimelinking" = yes; then
13293 shared_flag="$shared_flag "'${wl}-G'
13297 if test "$host_cpu" = ia64; then
13298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299 # chokes on -Wl,-G. The following line is correct:
13302 if test "$aix_use_runtimelinking" = yes; then
13303 shared_flag='${wl}-G'
13305 shared_flag='${wl}-bM:SRE'
13310 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13311 # It seems that -bexpall does not export symbols beginning with
13312 # underscore (_), so it is better to generate a list of symbols to
13314 always_export_symbols_CXX=yes
13315 if test "$aix_use_runtimelinking" = yes; then
13316 # Warning - without using the other runtime loading flags (-brtl),
13317 # -berok will link without error, but may produce a broken library.
13318 allow_undefined_flag_CXX='-berok'
13319 # Determine the default libpath from the value encoded in an empty
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13336 rm -f conftest.$ac_objext conftest$ac_exeext
13337 if { (ac_try="$ac_link"
13338 case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_link") 2>conftest.er1
13345 grep -v '^ *+' conftest.er1 >conftest.err
13347 cat conftest.err >&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } && {
13350 test -z "$ac_cxx_werror_flag" ||
13351 test ! -s conftest.err
13352 } && test -s conftest$ac_exeext &&
13353 $as_test_x conftest$ac_exeext; then
13355 lt_aix_libpath_sed='
13356 /Import File Strings/,/^$/ {
13362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363 # Check for a 64-bit object if we didn't find anything.
13364 if test -z "$aix_libpath"; then
13365 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13368 echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13375 conftest$ac_exeext conftest.$ac_ext
13376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13378 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13380 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"
13382 if test "$host_cpu" = ia64; then
13383 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13384 allow_undefined_flag_CXX="-z nodefs"
13385 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"
13387 # Determine the default libpath from the value encoded in an
13388 # empty executable.
13389 cat >conftest.$ac_ext <<_ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13404 rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (ac_try="$ac_link"
13406 case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_link") 2>conftest.er1
13413 grep -v '^ *+' conftest.er1 >conftest.err
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } && {
13418 test -z "$ac_cxx_werror_flag" ||
13419 test ! -s conftest.err
13420 } && test -s conftest$ac_exeext &&
13421 $as_test_x conftest$ac_exeext; then
13423 lt_aix_libpath_sed='
13424 /Import File Strings/,/^$/ {
13430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13431 # Check for a 64-bit object if we didn't find anything.
13432 if test -z "$aix_libpath"; then
13433 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13443 conftest$ac_exeext conftest.$ac_ext
13444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13446 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13447 # Warning - without using the other run time loading flags,
13448 # -berok will link without error, but may produce a broken library.
13449 no_undefined_flag_CXX=' ${wl}-bernotok'
13450 allow_undefined_flag_CXX=' ${wl}-berok'
13451 # Exported symbols can be pulled into shared objects from archives
13452 whole_archive_flag_spec_CXX='$convenience'
13453 archive_cmds_need_lc_CXX=yes
13454 # This is similar to how AIX traditionally builds its shared
13456 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'
13462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13463 allow_undefined_flag_CXX=unsupported
13464 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13465 # support --undefined. This deserves some investigation. FIXME
13466 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13473 case $cc_basename in
13475 # FIXME: insert proper C++ library support
13481 cygwin* | mingw* | pw32* | cegcc*)
13482 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13483 # as there is no search path for DLLs.
13484 hardcode_libdir_flag_spec_CXX='-L$libdir'
13485 allow_undefined_flag_CXX=unsupported
13486 always_export_symbols_CXX=no
13487 enable_shared_with_static_runtimes_CXX=yes
13489 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13490 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'
13491 # If the export-symbols file already is a .def file (1st line
13492 # is EXPORTS), use it as is; otherwise, prepend...
13493 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13494 cp $export_symbols $output_objdir/$soname.def;
13496 echo EXPORTS > $output_objdir/$soname.def;
13497 cat $export_symbols >> $output_objdir/$soname.def;
13499 $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'
13504 darwin* | rhapsody*)
13507 archive_cmds_need_lc_CXX=no
13508 hardcode_direct_CXX=no
13509 hardcode_automatic_CXX=yes
13510 hardcode_shlibpath_var_CXX=unsupported
13511 whole_archive_flag_spec_CXX=''
13512 link_all_deplibs_CXX=yes
13513 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13514 case $cc_basename in
13515 ifort*) _lt_dar_can_shared=yes ;;
13516 *) _lt_dar_can_shared=$GCC ;;
13518 if test "$_lt_dar_can_shared" = "yes"; then
13519 output_verbose_link_cmd=echo
13520 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}"
13521 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13522 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}"
13523 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}"
13524 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13525 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}"
13526 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}"
13536 case $cc_basename in
13538 # FIXME: insert proper C++ library support
13542 # Green Hills C++ Compiler
13543 # FIXME: insert proper C++ library support
13547 # FIXME: insert proper C++ library support
13554 # C++ shared libraries reported to be fairly broken before
13560 archive_cmds_need_lc_CXX=no
13563 freebsd* | dragonfly*)
13564 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13573 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13574 hardcode_libdir_separator_CXX=:
13575 export_dynamic_flag_spec_CXX='${wl}-E'
13576 hardcode_direct_CXX=yes
13577 hardcode_minus_L_CXX=yes # Not in the search PATH,
13578 # but as the default
13579 # location of the library.
13581 case $cc_basename in
13583 # FIXME: insert proper C++ library support
13587 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'
13588 # Commands to make compiler produce verbose output that lists
13589 # what "hidden" libraries, object files and flags are used when
13590 # linking a shared library.
13592 # There doesn't appear to be a way to prevent this compiler from
13593 # explicitly linking system object files so we need to strip them
13594 # from the output so that they don't get included in the library
13596 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'
13599 if test "$GXX" = yes; then
13600 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'
13602 # FIXME: insert proper C++ library support
13610 if test $with_gnu_ld = no; then
13611 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13612 hardcode_libdir_separator_CXX=:
13618 export_dynamic_flag_spec_CXX='${wl}-E'
13624 hardcode_direct_CXX=no
13625 hardcode_shlibpath_var_CXX=no
13628 hardcode_direct_CXX=yes
13629 hardcode_direct_absolute_CXX=yes
13630 hardcode_minus_L_CXX=yes # Not in the search PATH,
13631 # but as the default
13632 # location of the library.
13636 case $cc_basename in
13638 # FIXME: insert proper C++ library support
13644 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13653 # Commands to make compiler produce verbose output that lists
13654 # what "hidden" libraries, object files and flags are used when
13655 # linking a shared library.
13657 # There doesn't appear to be a way to prevent this compiler from
13658 # explicitly linking system object files so we need to strip them
13659 # from the output so that they don't get included in the library
13661 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'
13664 if test "$GXX" = yes; then
13665 if test $with_gnu_ld = no; then
13668 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13674 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'
13679 # FIXME: insert proper C++ library support
13687 hardcode_direct_CXX=no
13688 hardcode_shlibpath_var_CXX=no
13689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13690 export_dynamic_flag_spec_CXX='${wl}-E'
13691 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13692 # Instead, shared libraries are loaded at an image base (0x10000000 by
13693 # default) and relocated if they conflict, which is a slow very memory
13694 # consuming and fragmenting process. To avoid this, we pick a random,
13695 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13696 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13697 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'
13698 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'
13701 case $cc_basename in
13704 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'
13706 # Archives containing C++ object files must be created using
13707 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13708 # necessary to make sure instantiated templates are included
13710 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13713 if test "$GXX" = yes; then
13714 if test "$with_gnu_ld" = no; then
13715 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'
13717 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'
13720 link_all_deplibs_CXX=yes
13723 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13724 hardcode_libdir_separator_CXX=:
13725 inherit_rpath_CXX=yes
13728 linux* | k*bsd*-gnu)
13729 case $cc_basename in
13731 # Kuck and Associates, Inc. (KAI) C++ Compiler
13733 # KCC will only create a shared library if the output file
13734 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13735 # to its proper name (with version) after linking.
13736 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'
13737 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'
13738 # Commands to make compiler produce verbose output that lists
13739 # what "hidden" libraries, object files and flags are used when
13740 # linking a shared library.
13742 # There doesn't appear to be a way to prevent this compiler from
13743 # explicitly linking system object files so we need to strip them
13744 # from the output so that they don't get included in the library
13746 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'
13748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13749 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13751 # Archives containing C++ object files must be created using
13752 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13753 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13758 # version 8.0 and above of icpc choke on multiply defined symbols
13759 # if we add $predep_objects and $postdep_objects, however 7.1 and
13760 # earlier do not add the objects themselves.
13761 case `$CC -V 2>&1` in
13763 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13764 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'
13766 *) # Version 8.0 or newer
13769 ia64*) tmp_idyn=' -i_dynamic';;
13771 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13772 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'
13775 archive_cmds_need_lc_CXX=no
13776 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13778 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13781 # Portland Group C++ compiler
13783 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13784 prelink_cmds_CXX='tpldir=Template.dir~
13786 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13787 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13788 old_archive_cmds_CXX='tpldir=Template.dir~
13790 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13791 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13793 archive_cmds_CXX='tpldir=Template.dir~
13795 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13796 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13797 archive_expsym_cmds_CXX='tpldir=Template.dir~
13799 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13800 $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'
13802 *) # Version 6 will use weak symbols
13803 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13804 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'
13808 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13809 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13810 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'
13814 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13815 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'
13817 runpath_var=LD_RUN_PATH
13818 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13819 hardcode_libdir_separator_CXX=:
13821 # Commands to make compiler produce verbose output that lists
13822 # what "hidden" libraries, object files and flags are used when
13823 # linking a shared library.
13825 # There doesn't appear to be a way to prevent this compiler from
13826 # explicitly linking system object files so we need to strip them
13827 # from the output so that they don't get included in the library
13829 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'
13832 # IBM XL 8.0 on PPC, with GNU ld
13833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13834 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13835 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13836 if test "x$supports_anon_versioning" = xyes; then
13837 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13838 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13839 echo "local: *; };" >> $output_objdir/$libname.ver~
13840 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13844 case `$CC -V 2>&1 | sed 5q` in
13847 no_undefined_flag_CXX=' -zdefs'
13848 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849 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'
13850 hardcode_libdir_flag_spec_CXX='-R$libdir'
13851 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'
13852 compiler_needs_object_CXX=yes
13854 # Not sure whether something based on
13855 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13857 output_verbose_link_cmd='echo'
13859 # Archives containing C++ object files must be created using
13860 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13861 # necessary to make sure instantiated templates are included
13863 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13871 # FIXME: insert proper C++ library support
13876 # FIXME: insert proper C++ library support
13881 case $cc_basename in
13883 # FIXME: insert proper C++ library support
13887 # FIXME: insert proper C++ library support
13894 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13895 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13897 hardcode_libdir_flag_spec_CXX='-R$libdir'
13898 hardcode_direct_CXX=yes
13899 hardcode_shlibpath_var_CXX=no
13901 # Workaround some broken pre-1.5 toolchains
13902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13910 # C++ shared libraries are fairly broken
13915 if test -f /usr/libexec/ld.so; then
13916 hardcode_direct_CXX=yes
13917 hardcode_shlibpath_var_CXX=no
13918 hardcode_direct_absolute_CXX=yes
13919 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13921 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13922 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13923 export_dynamic_flag_spec_CXX='${wl}-E'
13924 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13926 output_verbose_link_cmd=echo
13932 osf3* | osf4* | osf5*)
13933 case $cc_basename in
13935 # Kuck and Associates, Inc. (KAI) C++ Compiler
13937 # KCC will only create a shared library if the output file
13938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13939 # to its proper name (with version) after linking.
13940 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'
13942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13943 hardcode_libdir_separator_CXX=:
13945 # Archives containing C++ object files must be created using
13946 # the KAI C++ compiler.
13948 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13949 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13953 # Rational C++ 2.4.1
13954 # FIXME: insert proper C++ library support
13960 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13961 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'
13962 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13965 allow_undefined_flag_CXX=' -expect_unresolved \*'
13966 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'
13967 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13968 echo "-hidden">> $lib.exp~
13969 $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~
13971 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13975 hardcode_libdir_separator_CXX=:
13977 # Commands to make compiler produce verbose output that lists
13978 # what "hidden" libraries, object files and flags are used when
13979 # linking a shared library.
13981 # There doesn't appear to be a way to prevent this compiler from
13982 # explicitly linking system object files so we need to strip them
13983 # from the output so that they don't get included in the library
13985 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'
13988 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13989 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13992 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'
13995 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'
13999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14000 hardcode_libdir_separator_CXX=:
14002 # Commands to make compiler produce verbose output that lists
14003 # what "hidden" libraries, object files and flags are used when
14004 # linking a shared library.
14005 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14008 # FIXME: insert proper C++ library support
14016 # FIXME: insert proper C++ library support
14021 case $cc_basename in
14024 # FIXME: insert proper C++ library support
14029 # FIXME: insert proper C++ library support
14033 # FIXME: insert proper C++ library support
14040 case $cc_basename in
14042 # Sun C++ 4.2, 5.x and Centerline C++
14043 archive_cmds_need_lc_CXX=yes
14044 no_undefined_flag_CXX=' -zdefs'
14045 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14046 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14047 $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'
14049 hardcode_libdir_flag_spec_CXX='-R$libdir'
14050 hardcode_shlibpath_var_CXX=no
14052 solaris2.[0-5] | solaris2.[0-5].*) ;;
14054 # The compiler driver will combine and reorder linker options,
14055 # but understands `-z linker_flag'.
14056 # Supported since Solaris 2.6 (maybe 2.5.1?)
14057 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14060 link_all_deplibs_CXX=yes
14062 output_verbose_link_cmd='echo'
14064 # Archives containing C++ object files must be created using
14065 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14066 # necessary to make sure instantiated templates are included
14068 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14071 # Green Hills C++ Compiler
14072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14074 # The C++ compiler must be used to create the archive.
14075 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14078 # GNU C++ compiler with Solaris linker
14079 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14080 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14081 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14082 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14083 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14084 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14086 # Commands to make compiler produce verbose output that lists
14087 # what "hidden" libraries, object files and flags are used when
14088 # linking a shared library.
14089 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14091 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14093 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14094 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14095 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14097 # Commands to make compiler produce verbose output that lists
14098 # what "hidden" libraries, object files and flags are used when
14099 # linking a shared library.
14100 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14103 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14105 solaris2.[0-5] | solaris2.[0-5].*) ;;
14107 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14115 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14116 no_undefined_flag_CXX='${wl}-z,text'
14117 archive_cmds_need_lc_CXX=no
14118 hardcode_shlibpath_var_CXX=no
14119 runpath_var='LD_RUN_PATH'
14121 case $cc_basename in
14123 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14127 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14133 sysv5* | sco3.2v5* | sco5v6*)
14134 # Note: We can NOT use -z defs as we might desire, because we do not
14135 # link with -lc, and that would cause any symbols used from libc to
14136 # always be unresolved, which means just about no library would
14137 # ever link correctly. If we're not using GNU ld we use -z text
14138 # though, which does catch some bad symbols but isn't as heavy-handed
14140 no_undefined_flag_CXX='${wl}-z,text'
14141 allow_undefined_flag_CXX='${wl}-z,nodefs'
14142 archive_cmds_need_lc_CXX=no
14143 hardcode_shlibpath_var_CXX=no
14144 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14145 hardcode_libdir_separator_CXX=':'
14146 link_all_deplibs_CXX=yes
14147 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14148 runpath_var='LD_RUN_PATH'
14150 case $cc_basename in
14152 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14157 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14163 case $cc_basename in
14165 # NonStop-UX NCC 3.20
14166 # FIXME: insert proper C++ library support
14170 # FIXME: insert proper C++ library support
14177 # FIXME: insert proper C++ library support
14182 # FIXME: insert proper C++ library support
14187 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14188 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14189 test "$ld_shlibs_CXX" = no && can_build_shared=no
14195 ## There is no encapsulation within the following macros, do not change
14196 ## the running order or otherwise move them around unless you know exactly
14197 ## what you are doing...
14198 # Dependencies to place before and after the object being linked:
14199 predep_objects_CXX=
14200 postdep_objects_CXX=
14203 compiler_lib_search_path_CXX=
14205 cat > conftest.$ac_ext <<_LT_EOF
14209 Foo (void) { a = 0; }
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216 (eval $ac_compile) 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; then
14220 # Parse the compiler output and extract the necessary
14221 # objects, libraries and library flags.
14223 # Sentinel used to keep track of whether or not we are before
14224 # the conftest object file.
14225 pre_test_object_deps_done=no
14227 for p in `eval "$output_verbose_link_cmd"`; do
14231 # Some compilers place space between "-{L,R}" and the path.
14232 # Remove the space.
14233 if test $p = "-L" ||
14234 test $p = "-R"; then
14241 if test "$pre_test_object_deps_done" = no; then
14244 # Internal compiler library paths should come after those
14245 # provided the user. The postdeps already come after the
14246 # user supplied libs so there is no need to process them.
14247 if test -z "$compiler_lib_search_path_CXX"; then
14248 compiler_lib_search_path_CXX="${prev}${p}"
14250 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14253 # The "-l" case would never come before the object being
14254 # linked, so don't bother handling this case.
14257 if test -z "$postdeps_CXX"; then
14258 postdeps_CXX="${prev}${p}"
14260 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14266 # This assumes that the test object file only shows up
14267 # once in the compiler output.
14268 if test "$p" = "conftest.$objext"; then
14269 pre_test_object_deps_done=yes
14273 if test "$pre_test_object_deps_done" = no; then
14274 if test -z "$predep_objects_CXX"; then
14275 predep_objects_CXX="$p"
14277 predep_objects_CXX="$predep_objects_CXX $p"
14280 if test -z "$postdep_objects_CXX"; then
14281 postdep_objects_CXX="$p"
14283 postdep_objects_CXX="$postdep_objects_CXX $p"
14288 *) ;; # Ignore the rest.
14296 echo "libtool.m4: error: problem compiling CXX test program"
14299 $RM -f confest.$objext
14301 # PORTME: override above test on systems where it is broken
14304 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14305 # hack all around it, let's just trust "g++" to DTRT.
14306 predep_objects_CXX=
14307 postdep_objects_CXX=
14312 case `$CC -V 2>&1 | sed 5q` in
14316 # The more standards-conforming stlport4 library is
14317 # incompatible with the Cstd library. Avoid specifying
14318 # it if it's in CXXFLAGS. Ignore libCrun as
14319 # -library=stlport4 depends on it.
14320 case " $CXX $CXXFLAGS " in
14321 *" -library=stlport4 "*)
14322 solaris_use_stlport4=yes
14326 if test "$solaris_use_stlport4" != yes; then
14327 postdeps_CXX='-library=Cstd -library=Crun'
14334 case $cc_basename in
14336 # The more standards-conforming stlport4 library is
14337 # incompatible with the Cstd library. Avoid specifying
14338 # it if it's in CXXFLAGS. Ignore libCrun as
14339 # -library=stlport4 depends on it.
14340 case " $CXX $CXXFLAGS " in
14341 *" -library=stlport4 "*)
14342 solaris_use_stlport4=yes
14346 # Adding this requires a known-good setup of shared libraries for
14347 # Sun compiler versions before 5.6, else PIC objects from an old
14348 # archive will be linked into the output, leading to subtle bugs.
14349 if test "$solaris_use_stlport4" != yes; then
14350 postdeps_CXX='-library=Cstd -library=Crun'
14358 case " $postdeps_CXX " in
14359 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14361 compiler_lib_search_dirs_CXX=
14362 if test -n "${compiler_lib_search_path_CXX}"; then
14363 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14396 lt_prog_compiler_wl_CXX=
14397 lt_prog_compiler_pic_CXX=
14398 lt_prog_compiler_static_CXX=
14400 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14401 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14403 # C++ specific cases for pic, static, wl, etc.
14404 if test "$GXX" = yes; then
14405 lt_prog_compiler_wl_CXX='-Wl,'
14406 lt_prog_compiler_static_CXX='-static'
14410 # All AIX code is PIC.
14411 if test "$host_cpu" = ia64; then
14412 # AIX 5 now supports IA64 processor
14413 lt_prog_compiler_static_CXX='-Bstatic'
14420 # see comment about AmigaOS4 .so support
14421 lt_prog_compiler_pic_CXX='-fPIC'
14424 # FIXME: we need at least 68020 code to build shared libraries, but
14425 # adding the `-m68020' flag to GCC prevents building anything better,
14427 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14432 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14433 # PIC is the default for these OSes.
14435 mingw* | cygwin* | os2* | pw32* | cegcc*)
14436 # This hack is so that the source file can tell whether it is being
14437 # built for inclusion in a dll (and should export symbols for example).
14438 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14439 # (--disable-auto-import) libraries
14440 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14442 darwin* | rhapsody*)
14443 # PIC is the default on this platform
14444 # Common symbols not allowed in MH_DYLIB files
14445 lt_prog_compiler_pic_CXX='-fno-common'
14448 # DJGPP does not support shared libraries at all
14449 lt_prog_compiler_pic_CXX=
14452 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14453 # Instead, we relocate shared libraries at runtime.
14456 if test -d /usr/nec; then
14457 lt_prog_compiler_pic_CXX=-Kconform_pic
14461 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14462 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14463 # sets the default TLS model and affects inlining.
14468 lt_prog_compiler_pic_CXX='-fPIC'
14473 # QNX uses GNU C++, but need to define -shared option too, otherwise
14474 # it will coredump.
14475 lt_prog_compiler_pic_CXX='-fPIC -shared'
14478 lt_prog_compiler_pic_CXX='-fPIC'
14484 # All AIX code is PIC.
14485 if test "$host_cpu" = ia64; then
14486 # AIX 5 now supports IA64 processor
14487 lt_prog_compiler_static_CXX='-Bstatic'
14489 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14493 case $cc_basename in
14495 # Green Hills C++ Compiler
14496 # _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"
14501 case $cc_basename in
14503 lt_prog_compiler_pic_CXX='-KPIC'
14506 # Green Hills C++ Compiler
14507 lt_prog_compiler_pic_CXX='-pic'
14513 freebsd* | dragonfly*)
14514 # FreeBSD uses GNU C++
14516 hpux9* | hpux10* | hpux11*)
14517 case $cc_basename in
14519 lt_prog_compiler_wl_CXX='-Wl,'
14520 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14521 if test "$host_cpu" != ia64; then
14522 lt_prog_compiler_pic_CXX='+Z'
14526 lt_prog_compiler_wl_CXX='-Wl,'
14527 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14533 lt_prog_compiler_pic_CXX='+Z'
14542 # This is c89, which is MS Visual C++ (no shared libs)
14543 # Anyone wants to do a port?
14545 irix5* | irix6* | nonstopux*)
14546 case $cc_basename in
14548 lt_prog_compiler_wl_CXX='-Wl,'
14549 lt_prog_compiler_static_CXX='-non_shared'
14550 # CC pic flag -KPIC is the default.
14556 linux* | k*bsd*-gnu)
14557 case $cc_basename in
14560 lt_prog_compiler_wl_CXX='--backend -Wl,'
14561 lt_prog_compiler_pic_CXX='-fPIC'
14564 # old Intel C++ for x86_64 which still supported -KPIC.
14565 lt_prog_compiler_wl_CXX='-Wl,'
14566 lt_prog_compiler_pic_CXX='-KPIC'
14567 lt_prog_compiler_static_CXX='-static'
14570 # Intel C++, used to be incompatible with GCC.
14571 # ICC 10 doesn't accept -KPIC any more.
14572 lt_prog_compiler_wl_CXX='-Wl,'
14573 lt_prog_compiler_pic_CXX='-fPIC'
14574 lt_prog_compiler_static_CXX='-static'
14577 # Portland Group C++ compiler
14578 lt_prog_compiler_wl_CXX='-Wl,'
14579 lt_prog_compiler_pic_CXX='-fpic'
14580 lt_prog_compiler_static_CXX='-Bstatic'
14584 # Make sure the PIC flag is empty. It appears that all Alpha
14585 # Linux and Compaq Tru64 Unix objects are PIC.
14586 lt_prog_compiler_pic_CXX=
14587 lt_prog_compiler_static_CXX='-non_shared'
14590 # IBM XL 8.0 on PPC
14591 lt_prog_compiler_wl_CXX='-Wl,'
14592 lt_prog_compiler_pic_CXX='-qpic'
14593 lt_prog_compiler_static_CXX='-qstaticlink'
14596 case `$CC -V 2>&1 | sed 5q` in
14599 lt_prog_compiler_pic_CXX='-KPIC'
14600 lt_prog_compiler_static_CXX='-Bstatic'
14601 lt_prog_compiler_wl_CXX='-Qoption ld '
14612 case $cc_basename in
14614 lt_prog_compiler_pic_CXX='-W c,exportall'
14623 # QNX uses GNU C++, but need to define -shared option too, otherwise
14624 # it will coredump.
14625 lt_prog_compiler_pic_CXX='-fPIC -shared'
14627 osf3* | osf4* | osf5*)
14628 case $cc_basename in
14630 lt_prog_compiler_wl_CXX='--backend -Wl,'
14633 # Rational C++ 2.4.1
14634 lt_prog_compiler_pic_CXX='-pic'
14637 # Digital/Compaq C++
14638 lt_prog_compiler_wl_CXX='-Wl,'
14639 # Make sure the PIC flag is empty. It appears that all Alpha
14640 # Linux and Compaq Tru64 Unix objects are PIC.
14641 lt_prog_compiler_pic_CXX=
14642 lt_prog_compiler_static_CXX='-non_shared'
14651 case $cc_basename in
14653 # Sun C++ 4.2, 5.x and Centerline C++
14654 lt_prog_compiler_pic_CXX='-KPIC'
14655 lt_prog_compiler_static_CXX='-Bstatic'
14656 lt_prog_compiler_wl_CXX='-Qoption ld '
14659 # Green Hills C++ Compiler
14660 lt_prog_compiler_pic_CXX='-PIC'
14667 case $cc_basename in
14670 lt_prog_compiler_pic_CXX='-pic'
14671 lt_prog_compiler_static_CXX='-Bstatic'
14675 lt_prog_compiler_pic_CXX='-pic'
14681 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14682 case $cc_basename in
14684 lt_prog_compiler_wl_CXX='-Wl,'
14685 lt_prog_compiler_pic_CXX='-KPIC'
14686 lt_prog_compiler_static_CXX='-Bstatic'
14691 case $cc_basename in
14693 # NonStop-UX NCC 3.20
14694 lt_prog_compiler_pic_CXX='-KPIC'
14703 lt_prog_compiler_can_build_shared_CXX=no
14709 # For platforms which do not support PIC, -DPIC is meaningless:
14711 lt_prog_compiler_pic_CXX=
14714 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14717 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14718 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14723 # Check to make sure the PIC flag actually works.
14725 if test -n "$lt_prog_compiler_pic_CXX"; then
14726 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14727 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14728 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 lt_cv_prog_compiler_pic_works_CXX=no
14732 ac_outfile=conftest.$ac_objext
14733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14734 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14735 # Insert the option either (1) after the last *FLAGS variable, or
14736 # (2) before a word containing "conftest.", or (3) at the end.
14737 # Note that $ac_compile itself does not contain backslashes and begins
14738 # with a dollar sign (not a hyphen), so the echo should work correctly.
14739 # The option is referenced via a variable to avoid confusing sed.
14740 lt_compile=`echo "$ac_compile" | $SED \
14741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14743 -e 's:$: $lt_compiler_flag:'`
14744 (eval echo "\"\$as_me:14744: $lt_compile\"" >&5)
14745 (eval "$lt_compile" 2>conftest.err)
14747 cat conftest.err >&5
14748 echo "$as_me:14748: \$? = $ac_status" >&5
14749 if (exit $ac_status) && test -s "$ac_outfile"; then
14750 # The compiler can only warn and ignore the option if not recognized
14751 # So say no if there are warnings other than the usual output.
14752 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14755 lt_cv_prog_compiler_pic_works_CXX=yes
14761 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14762 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14764 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14765 case $lt_prog_compiler_pic_CXX in
14767 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14770 lt_prog_compiler_pic_CXX=
14771 lt_prog_compiler_can_build_shared_CXX=no
14779 # Check to make sure the static flag actually works.
14781 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 lt_cv_prog_compiler_static_works_CXX=no
14788 save_LDFLAGS="$LDFLAGS"
14789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14792 # The linker can only warn and ignore the option if not recognized
14793 # So say no if there are warnings
14794 if test -s conftest.err; then
14795 # Append any errors to the config.log.
14796 cat conftest.err 1>&5
14797 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14799 if diff conftest.exp conftest.er2 >/dev/null; then
14800 lt_cv_prog_compiler_static_works_CXX=yes
14803 lt_cv_prog_compiler_static_works_CXX=yes
14807 LDFLAGS="$save_LDFLAGS"
14810 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14811 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14813 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14816 lt_prog_compiler_static_CXX=
14822 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14823 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14824 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 lt_cv_prog_compiler_c_o_CXX=no
14828 $RM -r conftest 2>/dev/null
14832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14834 lt_compiler_flag="-o out/conftest2.$ac_objext"
14835 # Insert the option either (1) after the last *FLAGS variable, or
14836 # (2) before a word containing "conftest.", or (3) at the end.
14837 # Note that $ac_compile itself does not contain backslashes and begins
14838 # with a dollar sign (not a hyphen), so the echo should work correctly.
14839 lt_compile=`echo "$ac_compile" | $SED \
14840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14842 -e 's:$: $lt_compiler_flag:'`
14843 (eval echo "\"\$as_me:14843: $lt_compile\"" >&5)
14844 (eval "$lt_compile" 2>out/conftest.err)
14846 cat out/conftest.err >&5
14847 echo "$as_me:14847: \$? = $ac_status" >&5
14848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14850 # The compiler can only warn and ignore the option if not recognized
14851 # So say no if there are warnings
14852 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14855 lt_cv_prog_compiler_c_o_CXX=yes
14860 # SGI C++ compiler will create directory out/ii_files/ for
14861 # template instantiation
14862 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14863 $RM out/* && rmdir out
14869 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14870 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14874 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14875 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14876 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 lt_cv_prog_compiler_c_o_CXX=no
14880 $RM -r conftest 2>/dev/null
14884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14886 lt_compiler_flag="-o out/conftest2.$ac_objext"
14887 # Insert the option either (1) after the last *FLAGS variable, or
14888 # (2) before a word containing "conftest.", or (3) at the end.
14889 # Note that $ac_compile itself does not contain backslashes and begins
14890 # with a dollar sign (not a hyphen), so the echo should work correctly.
14891 lt_compile=`echo "$ac_compile" | $SED \
14892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894 -e 's:$: $lt_compiler_flag:'`
14895 (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896 (eval "$lt_compile" 2>out/conftest.err)
14898 cat out/conftest.err >&5
14899 echo "$as_me:14899: \$? = $ac_status" >&5
14900 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14902 # The compiler can only warn and ignore the option if not recognized
14903 # So say no if there are warnings
14904 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14905 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14906 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14907 lt_cv_prog_compiler_c_o_CXX=yes
14912 # SGI C++ compiler will create directory out/ii_files/ for
14913 # template instantiation
14914 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14915 $RM out/* && rmdir out
14921 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14927 hard_links="nottested"
14928 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14929 # do not overwrite the value of need_locks provided by the user
14930 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14931 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14936 ln conftest.a conftest.b 2>&5 || hard_links=no
14937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14938 { echo "$as_me:$LINENO: result: $hard_links" >&5
14939 echo "${ECHO_T}$hard_links" >&6; }
14940 if test "$hard_links" = no; then
14941 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14942 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14951 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14952 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14954 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14957 # If we're using GNU nm, then we don't want the "-C" option.
14958 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14959 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14960 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'
14962 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'
14966 export_symbols_cmds_CXX="$ltdll_cmds"
14968 cygwin* | mingw* | cegcc*)
14969 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'
14972 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14975 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14977 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14978 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14979 test "$ld_shlibs_CXX" = no && can_build_shared=no
14981 with_gnu_ld_CXX=$with_gnu_ld
14989 # Do we need to explicitly link libc?
14991 case "x$archive_cmds_need_lc_CXX" in
14993 # Assume -lc should be added
14994 archive_cmds_need_lc_CXX=yes
14996 if test "$enable_shared" = yes && test "$GCC" = yes; then
14997 case $archive_cmds_CXX in
14999 # FIXME: we may have to deal with multi-command sequences.
15002 # Test whether the compiler implicitly links with -lc since on some
15003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15004 # to ld, don't add -lc before -lgcc.
15005 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15006 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15011 (eval $ac_compile) 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } 2>conftest.err; then
15017 libobjs=conftest.$ac_objext
15019 wl=$lt_prog_compiler_wl_CXX
15020 pic_flag=$lt_prog_compiler_pic_CXX
15026 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15027 allow_undefined_flag_CXX=
15028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15029 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }
15034 archive_cmds_need_lc_CXX=no
15036 archive_cmds_need_lc_CXX=yes
15038 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15040 cat conftest.err 1>&5
15043 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15044 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15114 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15115 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15117 library_names_spec=
15118 libname_spec='lib$name'
15122 postuninstall_cmds=
15126 shlibpath_overrides_runpath=unknown
15128 dynamic_linker="$host_os ld.so"
15129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15130 need_lib_prefix=unknown
15131 hardcode_into_libs=no
15133 # when you set need_version to no, make sure it does not cause -set_version
15134 # flags to be left without arguments
15135 need_version=unknown
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15141 shlibpath_var=LIBPATH
15143 # AIX 3 has no versioning support, so we append a major version to the name.
15144 soname_spec='${libname}${release}${shared_ext}$major'
15151 hardcode_into_libs=yes
15152 if test "$host_cpu" = ia64; then
15153 # AIX 5 supports IA64
15154 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15155 shlibpath_var=LD_LIBRARY_PATH
15157 # With GCC up to 2.95.x, collect2 would create an import file
15158 # for dependence libraries. The import file would start with
15159 # the line `#! .'. This would cause the generated library to
15160 # depend on `.', always an invalid library. This was fixed in
15161 # development snapshots of GCC prior to 3.0.
15163 aix4 | aix4.[01] | aix4.[01].*)
15164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15166 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15169 can_build_shared=no
15173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15174 # soname into executable. Probably we can add versioning support to
15175 # collect2, so additional links can be useful in future.
15176 if test "$aix_use_runtimelinking" = yes; then
15177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15178 # instead of lib<name>.a to let people know that these are not
15179 # typical AIX shared libraries.
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182 # We preserve .a as extension for shared libraries through AIX4.2
15183 # and later when we are not doing run time linking.
15184 library_names_spec='${libname}${release}.a $libname.a'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15187 shlibpath_var=LIBPATH
15194 # Since July 2007 AmigaOS4 officially supports .so libraries.
15195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 library_names_spec='$libname.ixlibrary $libname.a'
15200 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15201 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'
15207 library_names_spec='${libname}${shared_ext}'
15208 dynamic_linker="$host_os ld.so"
15209 shlibpath_var=LIBRARY_PATH
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15217 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15220 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15221 # the default ld.so.conf also contains /usr/contrib/lib and
15222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15223 # libtool to hard-code these into programs
15226 cygwin* | mingw* | pw32* | cegcc*)
15227 version_type=windows
15232 case $GCC,$host_os in
15233 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15234 library_names_spec='$libname.dll.a'
15235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15236 postinstall_cmds='base_file=`basename \${file}`~
15237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15238 dldir=$destdir/`dirname \$dlpath`~
15239 test -d \$dldir || mkdir -p \$dldir~
15240 $install_prog $dir/$dlname \$dldir/$dlname~
15241 chmod a+x \$dldir/$dlname~
15242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15246 dlpath=$dir/\$dldll~
15248 shlibpath_overrides_runpath=yes
15252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15257 # MinGW DLLs use traditional 'lib' prefix
15258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15259 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15260 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15261 # It is most probably a Windows format PATH printed by
15262 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15263 # path with ; separators, and with drive letters. We can handle the
15264 # drive letters (cygwin fileutils understands them), so leave them,
15265 # especially as we might pass files found there to a mingw objdump,
15266 # which wouldn't understand a cygwinified path. Ahh.
15267 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15269 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15273 # pw32 DLLs use 'pw' prefix rather than 'lib'
15274 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15280 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15283 dynamic_linker='Win32 ld.exe'
15284 # FIXME: first we should search . and the directory the executable is in
15288 darwin* | rhapsody*)
15289 dynamic_linker="$host_os dyld"
15290 version_type=darwin
15293 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15294 soname_spec='${libname}${release}${major}$shared_ext'
15295 shlibpath_overrides_runpath=yes
15296 shlibpath_var=DYLD_LIBRARY_PATH
15297 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15299 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 shlibpath_var=LD_LIBRARY_PATH
15315 freebsd* | dragonfly*)
15316 # DragonFly does not have aout. When/if they implement a new
15317 # versioning mechanism, adjust this.
15318 if test -x /usr/bin/objformat; then
15319 objformat=`/usr/bin/objformat`
15322 freebsd[123]*) objformat=aout ;;
15323 *) objformat=elf ;;
15326 version_type=freebsd-$objformat
15327 case $version_type in
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15338 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=yes
15343 freebsd3.[01]* | freebsdelf3.[01]*)
15344 shlibpath_overrides_runpath=yes
15345 hardcode_into_libs=yes
15347 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15348 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15349 shlibpath_overrides_runpath=no
15350 hardcode_into_libs=yes
15352 *) # from 4.6 on, and DragonFly
15353 shlibpath_overrides_runpath=yes
15354 hardcode_into_libs=yes
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15364 soname_spec='${libname}${release}${shared_ext}$major'
15365 shlibpath_var=LD_LIBRARY_PATH
15366 hardcode_into_libs=yes
15369 hpux9* | hpux10* | hpux11*)
15370 # Give a soname corresponding to the major version so that dld.sl refuses to
15371 # link against other versions.
15378 hardcode_into_libs=yes
15379 dynamic_linker="$host_os dld.so"
15380 shlibpath_var=LD_LIBRARY_PATH
15381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 if test "X$HPUX_IA64_MODE" = X32; then
15385 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15387 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15393 hardcode_into_libs=yes
15394 dynamic_linker="$host_os dld.sl"
15395 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398 soname_spec='${libname}${release}${shared_ext}$major'
15399 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15404 dynamic_linker="$host_os dld.sl"
15405 shlibpath_var=SHLIB_PATH
15406 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15411 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15412 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 shlibpath_overrides_runpath=no
15424 hardcode_into_libs=yes
15427 irix5* | irix6* | nonstopux*)
15429 nonstopux*) version_type=nonstopux ;;
15431 if test "$lt_cv_prog_gnu_ld" = yes; then
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15442 irix5* | nonstopux*)
15443 libsuff= shlibsuff=
15446 case $LD in # libtool.m4 will add one of these switches to LD
15447 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15448 libsuff= shlibsuff= libmagic=32-bit;;
15449 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15450 libsuff=32 shlibsuff=N32 libmagic=N32;;
15451 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15452 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15453 *) libsuff= shlibsuff= libmagic=never-match;;
15457 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15458 shlibpath_overrides_runpath=no
15459 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15460 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15461 hardcode_into_libs=yes
15464 # No shared lib support for Linux oldld, aout, or coff.
15465 linux*oldld* | linux*aout* | linux*coff*)
15469 # This must be Linux ELF.
15470 linux* | k*bsd*-gnu)
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=no
15479 # Some binutils ld are patched to set DT_RUNPATH
15480 save_LDFLAGS=$LDFLAGS
15481 save_libdir=$libdir
15482 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15483 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15484 cat >conftest.$ac_ext <<_ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15499 rm -f conftest.$ac_objext conftest$ac_exeext
15500 if { (ac_try="$ac_link"
15501 case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_link") 2>conftest.er1
15508 grep -v '^ *+' conftest.er1 >conftest.err
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } && {
15513 test -z "$ac_cxx_werror_flag" ||
15514 test ! -s conftest.err
15515 } && test -s conftest$ac_exeext &&
15516 $as_test_x conftest$ac_exeext; then
15517 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15518 shlibpath_overrides_runpath=yes
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15529 conftest$ac_exeext conftest.$ac_ext
15530 LDFLAGS=$save_LDFLAGS
15531 libdir=$save_libdir
15533 # This implies no fast_install, which is unacceptable.
15534 # Some rework will be needed to allow for fast_install
15535 # before this can be enabled.
15536 hardcode_into_libs=yes
15538 # Append ld.so.conf contents to the search path
15539 if test -f /etc/ld.so.conf; then
15540 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' ' '`
15541 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15544 # We used to test for /lib/ld.so.1 and disable shared libraries on
15545 # powerpc, because MkLinux only supported shared libraries with the
15546 # GNU dynamic linker. Since this was broken with cross compilers,
15547 # most powerpc-linux boxes support dynamic linking these days and
15548 # people can always --disable-shared, the test was removed, and we
15549 # assume the GNU/Linux dynamic linker is in use.
15550 dynamic_linker='GNU/Linux ld.so'
15557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15560 dynamic_linker='NetBSD (a.out) ld.so'
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 dynamic_linker='NetBSD ld.elf_so'
15566 shlibpath_var=LD_LIBRARY_PATH
15567 shlibpath_overrides_runpath=yes
15568 hardcode_into_libs=yes
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 shlibpath_overrides_runpath=yes
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 shlibpath_var=LD_LIBRARY_PATH
15585 shlibpath_overrides_runpath=no
15586 hardcode_into_libs=yes
15587 dynamic_linker='ldqnx.so'
15592 sys_lib_dlsearch_path_spec="/usr/lib"
15594 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15596 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15597 *) need_version=no ;;
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15604 openbsd2.[89] | openbsd2.[89].*)
15605 shlibpath_overrides_runpath=no
15608 shlibpath_overrides_runpath=yes
15612 shlibpath_overrides_runpath=yes
15617 libname_spec='$name'
15620 library_names_spec='$libname${shared_ext} $libname.a'
15621 dynamic_linker='OS/2 ld.exe'
15622 shlibpath_var=LIBPATH
15625 osf3* | osf4* | osf5*)
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631 shlibpath_var=LD_LIBRARY_PATH
15632 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15633 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=yes
15648 hardcode_into_libs=yes
15649 # ldd complains unless libraries are executable
15650 postinstall_cmds='chmod +x $lib'
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15656 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 shlibpath_overrides_runpath=yes
15659 if test "$with_gnu_ld" = yes; then
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 case $host_vendor in
15672 shlibpath_overrides_runpath=no
15674 runpath_var=LD_RUN_PATH
15682 shlibpath_overrides_runpath=no
15683 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15689 if test -d /usr/nec ;then
15691 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15692 soname_spec='$libname${shared_ext}.$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15698 version_type=freebsd-elf
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15705 hardcode_into_libs=yes
15706 if test "$with_gnu_ld" = yes; then
15707 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15709 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15712 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15716 sys_lib_dlsearch_path_spec='/usr/lib'
15720 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 shlibpath_overrides_runpath=no
15727 hardcode_into_libs=yes
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733 soname_spec='${libname}${release}${shared_ext}$major'
15734 shlibpath_var=LD_LIBRARY_PATH
15741 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15742 echo "${ECHO_T}$dynamic_linker" >&6; }
15743 test "$dynamic_linker" = no && can_build_shared=no
15745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15746 if test "$GCC" = yes; then
15747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15750 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15751 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15753 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15754 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15792 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15793 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15794 hardcode_action_CXX=
15795 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15796 test -n "$runpath_var_CXX" ||
15797 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15799 # We can hardcode non-existent directories.
15800 if test "$hardcode_direct_CXX" != no &&
15801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15802 # have to relink, otherwise we might link with an installed library
15803 # when we should be linking with a yet-to-be-installed one
15804 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15805 test "$hardcode_minus_L_CXX" != no; then
15806 # Linking always hardcodes the temporary library directory.
15807 hardcode_action_CXX=relink
15809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15810 hardcode_action_CXX=immediate
15813 # We cannot hardcode anything, or else we can only hardcode existing
15815 hardcode_action_CXX=unsupported
15817 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15818 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15820 if test "$hardcode_action_CXX" = relink ||
15821 test "$inherit_rpath_CXX" = yes; then
15822 # Fast installation is not supported
15823 enable_fast_install=no
15824 elif test "$shlibpath_overrides_runpath" = yes ||
15825 test "$enable_shared" = no; then
15826 # Fast installation is not necessary
15827 enable_fast_install=needless
15836 fi # test -n "$compiler"
15842 with_gnu_ld=$lt_save_with_gnu_ld
15843 lt_cv_path_LDCXX=$lt_cv_path_LD
15844 lt_cv_path_LD=$lt_save_path_LD
15845 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15846 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15847 fi # test "$_lt_caught_CXX_error" != yes
15850 ac_cpp='$CPP $CPPFLAGS'
15851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15867 ac_config_commands="$ac_config_commands libtool"
15872 # Only expand once:
15877 if test x$use_libtool != xno; then
15878 DEFAULT_OBJECT_TYPE=".lo"
15879 DEFAULT_ARCHIVE_TYPE=".la"
15880 DEFAULT_SHARED_OBJECT_TYPE=".la"
15881 LIBTOOL="\$(LIBTOOL)"
15882 LIBTOOL_INSTALL_TARGET="libtool-install"
15883 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15884 LIBTOOL_CLEAN_TARGET="libtool-clean"
15885 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15887 DEFAULT_OBJECT_TYPE=".o"
15888 DEFAULT_ARCHIVE_TYPE=".a"
15889 DEFAULT_SHARED_OBJECT_TYPE=".so"
15890 LIBTOOL="# \$(LIBTOOL)"
15891 LIBTOOL_INSTALL_TARGET=""
15892 LIBTOOL_UNINSTALL_TARGET=""
15893 LIBTOOL_CLEAN_TARGET=""
15894 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15906 # Check whether --enable-includes was given.
15907 if test "${enable_includes+set}" = set; then
15908 enableval=$enable_includes;
15909 if test x$enableval = xyes; then
15910 install_includes=yes
15918 if test x$use_libtool != xno -a x$install_includes = xyes; then
15919 INCLUDE_INSTALL_TARGET="install-includes"
15920 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15922 INCLUDE_INSTALL_TARGET=""
15923 INCLUDE_UNINSTALL_TARGET=""
15929 { echo "$as_me:$LINENO: checking host system type" >&5
15930 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15931 if test "${ac_cv_host+set}" = set; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15934 if test "x$host_alias" = x; then
15935 ac_cv_host=$ac_cv_build
15937 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15938 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15939 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15940 { (exit 1); exit 1; }; }
15944 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15945 echo "${ECHO_T}$ac_cv_host" >&6; }
15946 case $ac_cv_host in
15948 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15949 echo "$as_me: error: invalid value of canonical host" >&2;}
15950 { (exit 1); exit 1; }; };;
15953 ac_save_IFS=$IFS; IFS='-'
15959 # Remember, the first character of IFS is used to create $*,
15960 # except with old shells:
15963 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15967 *cygwin* ) CYGWIN=yes;;
15971 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15977 HAVE_SUN_OS_FALSE='#'
15979 HAVE_SUN_OS_TRUE='#'
15982 cat >>confdefs.h <<\_ACEOF
15983 #define HAVE_SUN_OS 1
15991 HAVE_SUN_OS_FALSE='#'
15993 HAVE_SUN_OS_TRUE='#'
15998 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16004 HAVE_OSF1_OS_FALSE='#'
16006 HAVE_OSF1_OS_TRUE='#'
16007 HAVE_OSF1_OS_FALSE=
16009 cat >>confdefs.h <<\_ACEOF
16010 #define HAVE_OSF1_OS 1
16018 HAVE_OSF1_OS_FALSE='#'
16020 HAVE_OSF1_OS_TRUE='#'
16021 HAVE_OSF1_OS_FALSE=
16025 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16031 HAVE_AIX_OS_FALSE='#'
16033 HAVE_AIX_OS_TRUE='#'
16036 cat >>confdefs.h <<\_ACEOF
16037 #define HAVE_AIX_OS 1
16045 HAVE_AIX_OS_FALSE='#'
16047 HAVE_AIX_OS_TRUE='#'
16052 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16058 HAVE_HPUX_OS_FALSE='#'
16060 HAVE_HPUX_OS_TRUE='#'
16061 HAVE_HPUX_OS_FALSE=
16063 cat >>confdefs.h <<\_ACEOF
16064 #define HAVE_HPUX_OS 1
16072 HAVE_HPUX_OS_FALSE='#'
16074 HAVE_HPUX_OS_TRUE='#'
16075 HAVE_HPUX_OS_FALSE=
16079 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16084 HAVE_LINUX_OS_TRUE=
16085 HAVE_LINUX_OS_FALSE='#'
16087 HAVE_LINUX_OS_TRUE='#'
16088 HAVE_LINUX_OS_FALSE=
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_LINUX_OS 1
16098 HAVE_LINUX_OS_TRUE=
16099 HAVE_LINUX_OS_FALSE='#'
16101 HAVE_LINUX_OS_TRUE='#'
16102 HAVE_LINUX_OS_FALSE=
16106 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16111 HAVE_FREEBSD_OS_TRUE=
16112 HAVE_FREEBSD_OS_FALSE='#'
16114 HAVE_FREEBSD_OS_TRUE='#'
16115 HAVE_FREEBSD_OS_FALSE=
16117 cat >>confdefs.h <<\_ACEOF
16118 #define HAVE_FREEBSD_OS 1
16125 HAVE_FREEBSD_OS_TRUE=
16126 HAVE_FREEBSD_OS_FALSE='#'
16128 HAVE_FREEBSD_OS_TRUE='#'
16129 HAVE_FREEBSD_OS_FALSE=
16133 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16138 HAVE_NETBSD_OS_TRUE=
16139 HAVE_NETBSD_OS_FALSE='#'
16141 HAVE_NETBSD_OS_TRUE='#'
16142 HAVE_NETBSD_OS_FALSE=
16144 cat >>confdefs.h <<\_ACEOF
16145 #define HAVE_NETBSD_OS 1
16152 HAVE_NETBSD_OS_TRUE=
16153 HAVE_NETBSD_OS_FALSE='#'
16155 HAVE_NETBSD_OS_TRUE='#'
16156 HAVE_NETBSD_OS_FALSE=
16160 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16165 HAVE_OPENBSD_OS_TRUE=
16166 HAVE_OPENBSD_OS_FALSE='#'
16168 HAVE_OPENBSD_OS_TRUE='#'
16169 HAVE_OPENBSD_OS_FALSE=
16171 cat >>confdefs.h <<\_ACEOF
16172 #define HAVE_OPENBSD_OS 1
16179 HAVE_OPENBSD_OS_TRUE=
16180 HAVE_OPENBSD_OS_FALSE='#'
16182 HAVE_OPENBSD_OS_TRUE='#'
16183 HAVE_OPENBSD_OS_FALSE=
16187 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16193 HAVE_BSDI_OS_FALSE='#'
16195 HAVE_BSDI_OS_TRUE='#'
16196 HAVE_BSDI_OS_FALSE=
16198 cat >>confdefs.h <<\_ACEOF
16199 #define HAVE_BSDI_OS 1
16207 HAVE_BSDI_OS_FALSE='#'
16209 HAVE_BSDI_OS_TRUE='#'
16210 HAVE_BSDI_OS_FALSE=
16214 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16220 HAVE_SGI_OS_FALSE='#'
16222 HAVE_SGI_OS_TRUE='#'
16225 cat >>confdefs.h <<\_ACEOF
16226 #define HAVE_SGI_OS 1
16234 HAVE_SGI_OS_FALSE='#'
16236 HAVE_SGI_OS_TRUE='#'
16241 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16247 HAVE_IRIX_OS_FALSE='#'
16249 HAVE_IRIX_OS_TRUE='#'
16250 HAVE_IRIX_OS_FALSE=
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_IRIX_OS 1
16261 HAVE_IRIX_OS_FALSE='#'
16263 HAVE_IRIX_OS_TRUE='#'
16264 HAVE_IRIX_OS_FALSE=
16268 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16273 HAVE_DARWIN_OS_TRUE=
16274 HAVE_DARWIN_OS_FALSE='#'
16276 HAVE_DARWIN_OS_TRUE='#'
16277 HAVE_DARWIN_OS_FALSE=
16279 cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_DARWIN_OS 1
16287 HAVE_DARWIN_OS_TRUE=
16288 HAVE_DARWIN_OS_FALSE='#'
16290 HAVE_DARWIN_OS_TRUE='#'
16291 HAVE_DARWIN_OS_FALSE=
16296 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16297 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16298 if test "x$DISTNAME" != "x"
16300 echo "distname set to $DISTNAME"
16301 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16304 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16307 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16310 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16313 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16316 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16319 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16322 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16325 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16328 elif test -f /etc/SuSE-release
16331 elif test -d /etc/SuSEconfig
16334 elif test -f /etc/mandrake-release
16337 elif test -f /etc/whitebox-release
16340 elif test -f /etc/redhat-release
16343 elif test -f /etc/gentoo-release
16346 elif test -f /etc/debian_version
16349 elif test -f /etc/slackware-version
16352 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16355 elif test -f /etc/engarde-version
16358 elif test "$CYGWIN" = yes
16361 cat >>confdefs.h <<\_ACEOF
16362 #define HAVE_CYGWIN 1
16368 { echo "$as_me:$LINENO: result: done" >&5
16369 echo "${ECHO_T}done" >&6; }
16372 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16373 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16374 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16375 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 cat >conftest.make <<\_ACEOF
16381 @echo '@@@%%%=$(MAKE)=@@@%%%'
16383 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16384 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16385 *@@@%%%=?*=@@@%%%*)
16386 eval ac_cv_prog_make_${ac_make}_set=yes;;
16388 eval ac_cv_prog_make_${ac_make}_set=no;;
16390 rm -f conftest.make
16392 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16393 { echo "$as_me:$LINENO: result: yes" >&5
16394 echo "${ECHO_T}yes" >&6; }
16397 { echo "$as_me:$LINENO: result: no" >&5
16398 echo "${ECHO_T}no" >&6; }
16399 SET_MAKE="MAKE=${MAKE-make}"
16405 if test -n "$ac_aux_dir"; then
16406 case "$ac_aux_dir" in
16407 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16408 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16411 if test -z "$MKINSTALLDIRS"; then
16412 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16417 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16418 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16419 # Check whether --enable-nls was given.
16420 if test "${enable_nls+set}" = set; then
16421 enableval=$enable_nls; USE_NLS=$enableval
16426 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16427 echo "${ECHO_T}$USE_NLS" >&6; }
16434 # Prepare PATH_SEPARATOR.
16435 # The user is always right.
16436 if test "${PATH_SEPARATOR+set}" != set; then
16437 echo "#! /bin/sh" >conf$$.sh
16438 echo "exit 0" >>conf$$.sh
16440 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16448 # Find out how to test for executable files. Don't use a zero-byte file,
16449 # as systems may use methods other than mode bits to determine executability.
16450 cat >conf$$.file <<_ASEOF
16454 chmod +x conf$$.file
16455 if test -x conf$$.file >/dev/null 2>&1; then
16456 ac_executable_p="test -x"
16458 ac_executable_p="test -f"
16462 # Extract the first word of "msgfmt", so it can be a program name with args.
16463 set dummy msgfmt; ac_word=$2
16464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16466 if test "${ac_cv_path_MSGFMT+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16474 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16475 for ac_dir in $PATH; do
16477 test -z "$ac_dir" && ac_dir=.
16478 for ac_exec_ext in '' $ac_executable_extensions; do
16479 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16480 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16481 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16482 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16483 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16490 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16494 MSGFMT="$ac_cv_path_MSGFMT"
16495 if test "$MSGFMT" != ":"; then
16496 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16497 echo "${ECHO_T}$MSGFMT" >&6; }
16499 { echo "$as_me:$LINENO: result: no" >&5
16500 echo "${ECHO_T}no" >&6; }
16503 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16504 set dummy gmsgfmt; ac_word=$2
16505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16507 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16516 for as_dir in $PATH
16519 test -z "$as_dir" && as_dir=.
16520 for ac_exec_ext in '' $ac_executable_extensions; do
16521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16522 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16530 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16534 GMSGFMT=$ac_cv_path_GMSGFMT
16535 if test -n "$GMSGFMT"; then
16536 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16537 echo "${ECHO_T}$GMSGFMT" >&6; }
16539 { echo "$as_me:$LINENO: result: no" >&5
16540 echo "${ECHO_T}no" >&6; }
16546 # Prepare PATH_SEPARATOR.
16547 # The user is always right.
16548 if test "${PATH_SEPARATOR+set}" != set; then
16549 echo "#! /bin/sh" >conf$$.sh
16550 echo "exit 0" >>conf$$.sh
16552 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16560 # Find out how to test for executable files. Don't use a zero-byte file,
16561 # as systems may use methods other than mode bits to determine executability.
16562 cat >conf$$.file <<_ASEOF
16566 chmod +x conf$$.file
16567 if test -x conf$$.file >/dev/null 2>&1; then
16568 ac_executable_p="test -x"
16570 ac_executable_p="test -f"
16574 # Extract the first word of "xgettext", so it can be a program name with args.
16575 set dummy xgettext; ac_word=$2
16576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16578 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 case "$XGETTEXT" in
16583 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16586 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16587 for ac_dir in $PATH; do
16589 test -z "$ac_dir" && ac_dir=.
16590 for ac_exec_ext in '' $ac_executable_extensions; do
16591 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16592 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16593 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16594 (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
16595 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16602 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16606 XGETTEXT="$ac_cv_path_XGETTEXT"
16607 if test "$XGETTEXT" != ":"; then
16608 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16609 echo "${ECHO_T}$XGETTEXT" >&6; }
16611 { echo "$as_me:$LINENO: result: no" >&5
16612 echo "${ECHO_T}no" >&6; }
16618 # Prepare PATH_SEPARATOR.
16619 # The user is always right.
16620 if test "${PATH_SEPARATOR+set}" != set; then
16621 echo "#! /bin/sh" >conf$$.sh
16622 echo "exit 0" >>conf$$.sh
16624 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16632 # Find out how to test for executable files. Don't use a zero-byte file,
16633 # as systems may use methods other than mode bits to determine executability.
16634 cat >conf$$.file <<_ASEOF
16638 chmod +x conf$$.file
16639 if test -x conf$$.file >/dev/null 2>&1; then
16640 ac_executable_p="test -x"
16642 ac_executable_p="test -f"
16646 # Extract the first word of "msgmerge", so it can be a program name with args.
16647 set dummy msgmerge; ac_word=$2
16648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16650 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 case "$MSGMERGE" in
16655 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16658 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16659 for ac_dir in $PATH; do
16661 test -z "$ac_dir" && ac_dir=.
16662 for ac_exec_ext in '' $ac_executable_extensions; do
16663 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16664 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16665 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16666 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16673 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16677 MSGMERGE="$ac_cv_path_MSGMERGE"
16678 if test "$MSGMERGE" != ":"; then
16679 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16680 echo "${ECHO_T}$MSGMERGE" >&6; }
16682 { echo "$as_me:$LINENO: result: no" >&5
16683 echo "${ECHO_T}no" >&6; }
16687 if test "$GMSGFMT" != ":"; then
16688 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16689 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16692 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16693 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16694 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16699 if test "$XGETTEXT" != ":"; then
16700 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16701 (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
16704 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16705 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16711 ac_config_commands="$ac_config_commands default-1"
16715 if test "X$prefix" = "XNONE"; then
16716 acl_final_prefix="$ac_default_prefix"
16718 acl_final_prefix="$prefix"
16720 if test "X$exec_prefix" = "XNONE"; then
16721 acl_final_exec_prefix='${prefix}'
16723 acl_final_exec_prefix="$exec_prefix"
16725 acl_save_prefix="$prefix"
16726 prefix="$acl_final_prefix"
16727 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16728 prefix="$acl_save_prefix"
16731 # Check whether --with-gnu-ld was given.
16732 if test "${with_gnu_ld+set}" = set; then
16733 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16738 # Prepare PATH_SEPARATOR.
16739 # The user is always right.
16740 if test "${PATH_SEPARATOR+set}" != set; then
16741 echo "#! /bin/sh" >conf$$.sh
16742 echo "exit 0" >>conf$$.sh
16744 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16752 if test "$GCC" = yes; then
16753 # Check if gcc -print-prog-name=ld gives a path.
16754 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16755 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16758 # gcc leaves a trailing carriage return which upsets mingw
16759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16761 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16764 # Accept absolute paths.
16765 [\\/]* | [A-Za-z]:[\\/]*)
16766 re_direlt='/[^/][^/]*/\.\./'
16767 # Canonicalize the path of ld
16768 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16769 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16770 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16772 test -z "$LD" && LD="$ac_prog"
16775 # If it fails, then pretend we aren't using GCC.
16779 # If it is relative, then search for the first ld in PATH.
16780 with_gnu_ld=unknown
16783 elif test "$with_gnu_ld" = yes; then
16784 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16785 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16787 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16788 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16790 if test "${acl_cv_path_LD+set}" = set; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 if test -z "$LD"; then
16794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16795 for ac_dir in $PATH; do
16796 test -z "$ac_dir" && ac_dir=.
16797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16798 acl_cv_path_LD="$ac_dir/$ac_prog"
16799 # Check to see if the program is GNU ld. I'd rather use --version,
16800 # but apparently some GNU ld's only accept -v.
16801 # Break only if it was the GNU/non-GNU ld that we prefer.
16802 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16803 *GNU* | *'with BFD'*)
16804 test "$with_gnu_ld" != no && break ;;
16806 test "$with_gnu_ld" != yes && break ;;
16812 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16816 LD="$acl_cv_path_LD"
16817 if test -n "$LD"; then
16818 { echo "$as_me:$LINENO: result: $LD" >&5
16819 echo "${ECHO_T}$LD" >&6; }
16821 { echo "$as_me:$LINENO: result: no" >&5
16822 echo "${ECHO_T}no" >&6; }
16824 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16825 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16826 { (exit 1); exit 1; }; }
16827 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16828 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16829 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16833 case `$LD -v 2>&1 </dev/null` in
16834 *GNU* | *'with BFD'*)
16835 acl_cv_prog_gnu_ld=yes ;;
16837 acl_cv_prog_gnu_ld=no ;;
16840 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16841 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16842 with_gnu_ld=$acl_cv_prog_gnu_ld
16847 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16848 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16849 if test "${acl_cv_rpath+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16853 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16854 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16856 rm -f ./conftest.sh
16860 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16861 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16863 libext="$acl_cv_libext"
16864 shlibext="$acl_cv_shlibext"
16865 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16866 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16867 hardcode_direct="$acl_cv_hardcode_direct"
16868 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16869 # Check whether --enable-rpath was given.
16870 if test "${enable_rpath+set}" = set; then
16871 enableval=$enable_rpath; :
16885 acl_save_prefix="$prefix"
16886 prefix="$acl_final_prefix"
16887 acl_save_exec_prefix="$exec_prefix"
16888 exec_prefix="$acl_final_exec_prefix"
16890 eval additional_includedir=\"$includedir\"
16891 eval additional_libdir=\"$libdir\"
16893 exec_prefix="$acl_save_exec_prefix"
16894 prefix="$acl_save_prefix"
16897 # Check whether --with-libiconv-prefix was given.
16898 if test "${with_libiconv_prefix+set}" = set; then
16899 withval=$with_libiconv_prefix;
16900 if test "X$withval" = "Xno"; then
16903 if test "X$withval" = "X"; then
16905 acl_save_prefix="$prefix"
16906 prefix="$acl_final_prefix"
16907 acl_save_exec_prefix="$exec_prefix"
16908 exec_prefix="$acl_final_exec_prefix"
16910 eval additional_includedir=\"$includedir\"
16911 eval additional_libdir=\"$libdir\"
16913 exec_prefix="$acl_save_exec_prefix"
16914 prefix="$acl_save_prefix"
16917 additional_includedir="$withval/include"
16918 additional_libdir="$withval/lib"
16929 names_already_handled=
16930 names_next_round='iconv '
16931 while test -n "$names_next_round"; do
16932 names_this_round="$names_next_round"
16934 for name in $names_this_round; do
16936 for n in $names_already_handled; do
16937 if test "$n" = "$name"; then
16938 already_handled=yes
16942 if test -z "$already_handled"; then
16943 names_already_handled="$names_already_handled $name"
16944 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16945 eval value=\"\$HAVE_LIB$uppername\"
16946 if test -n "$value"; then
16947 if test "$value" = yes; then
16948 eval value=\"\$LIB$uppername\"
16949 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16950 eval value=\"\$LTLIB$uppername\"
16951 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16960 if test $use_additional = yes; then
16961 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16962 found_dir="$additional_libdir"
16963 found_so="$additional_libdir/lib$name.$shlibext"
16964 if test -f "$additional_libdir/lib$name.la"; then
16965 found_la="$additional_libdir/lib$name.la"
16968 if test -f "$additional_libdir/lib$name.$libext"; then
16969 found_dir="$additional_libdir"
16970 found_a="$additional_libdir/lib$name.$libext"
16971 if test -f "$additional_libdir/lib$name.la"; then
16972 found_la="$additional_libdir/lib$name.la"
16977 if test "X$found_dir" = "X"; then
16978 for x in $LDFLAGS $LTLIBICONV; do
16980 acl_save_prefix="$prefix"
16981 prefix="$acl_final_prefix"
16982 acl_save_exec_prefix="$exec_prefix"
16983 exec_prefix="$acl_final_exec_prefix"
16985 exec_prefix="$acl_save_exec_prefix"
16986 prefix="$acl_save_prefix"
16990 dir=`echo "X$x" | sed -e 's/^X-L//'`
16991 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16993 found_so="$dir/lib$name.$shlibext"
16994 if test -f "$dir/lib$name.la"; then
16995 found_la="$dir/lib$name.la"
16998 if test -f "$dir/lib$name.$libext"; then
17000 found_a="$dir/lib$name.$libext"
17001 if test -f "$dir/lib$name.la"; then
17002 found_la="$dir/lib$name.la"
17008 if test "X$found_dir" != "X"; then
17013 if test "X$found_dir" != "X"; then
17014 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17015 if test "X$found_so" != "X"; then
17016 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17020 for x in $ltrpathdirs; do
17021 if test "X$x" = "X$found_dir"; then
17026 if test -z "$haveit"; then
17027 ltrpathdirs="$ltrpathdirs $found_dir"
17029 if test "$hardcode_direct" = yes; then
17030 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17032 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17033 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17035 for x in $rpathdirs; do
17036 if test "X$x" = "X$found_dir"; then
17041 if test -z "$haveit"; then
17042 rpathdirs="$rpathdirs $found_dir"
17046 for x in $LDFLAGS $LIBICONV; do
17048 acl_save_prefix="$prefix"
17049 prefix="$acl_final_prefix"
17050 acl_save_exec_prefix="$exec_prefix"
17051 exec_prefix="$acl_final_exec_prefix"
17053 exec_prefix="$acl_save_exec_prefix"
17054 prefix="$acl_save_prefix"
17056 if test "X$x" = "X-L$found_dir"; then
17061 if test -z "$haveit"; then
17062 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17064 if test "$hardcode_minus_L" != no; then
17065 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17067 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17073 if test "X$found_a" != "X"; then
17074 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17076 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17079 additional_includedir=
17080 case "$found_dir" in
17082 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17083 additional_includedir="$basedir/include"
17086 if test "X$additional_includedir" != "X"; then
17087 if test "X$additional_includedir" != "X/usr/include"; then
17089 if test "X$additional_includedir" = "X/usr/local/include"; then
17090 if test -n "$GCC"; then
17092 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17096 if test -z "$haveit"; then
17097 for x in $CPPFLAGS $INCICONV; do
17099 acl_save_prefix="$prefix"
17100 prefix="$acl_final_prefix"
17101 acl_save_exec_prefix="$exec_prefix"
17102 exec_prefix="$acl_final_exec_prefix"
17104 exec_prefix="$acl_save_exec_prefix"
17105 prefix="$acl_save_prefix"
17107 if test "X$x" = "X-I$additional_includedir"; then
17112 if test -z "$haveit"; then
17113 if test -d "$additional_includedir"; then
17114 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17120 if test -n "$found_la"; then
17121 save_libdir="$libdir"
17122 case "$found_la" in
17123 */* | *\\*) . "$found_la" ;;
17124 *) . "./$found_la" ;;
17126 libdir="$save_libdir"
17127 for dep in $dependency_libs; do
17130 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17131 if test "X$additional_libdir" != "X/usr/lib"; then
17133 if test "X$additional_libdir" = "X/usr/local/lib"; then
17134 if test -n "$GCC"; then
17136 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17140 if test -z "$haveit"; then
17142 for x in $LDFLAGS $LIBICONV; do
17144 acl_save_prefix="$prefix"
17145 prefix="$acl_final_prefix"
17146 acl_save_exec_prefix="$exec_prefix"
17147 exec_prefix="$acl_final_exec_prefix"
17149 exec_prefix="$acl_save_exec_prefix"
17150 prefix="$acl_save_prefix"
17152 if test "X$x" = "X-L$additional_libdir"; then
17157 if test -z "$haveit"; then
17158 if test -d "$additional_libdir"; then
17159 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17163 for x in $LDFLAGS $LTLIBICONV; do
17165 acl_save_prefix="$prefix"
17166 prefix="$acl_final_prefix"
17167 acl_save_exec_prefix="$exec_prefix"
17168 exec_prefix="$acl_final_exec_prefix"
17170 exec_prefix="$acl_save_exec_prefix"
17171 prefix="$acl_save_prefix"
17173 if test "X$x" = "X-L$additional_libdir"; then
17178 if test -z "$haveit"; then
17179 if test -d "$additional_libdir"; then
17180 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17187 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17188 if test "$enable_rpath" != no; then
17190 for x in $rpathdirs; do
17191 if test "X$x" = "X$dir"; then
17196 if test -z "$haveit"; then
17197 rpathdirs="$rpathdirs $dir"
17200 for x in $ltrpathdirs; do
17201 if test "X$x" = "X$dir"; then
17206 if test -z "$haveit"; then
17207 ltrpathdirs="$ltrpathdirs $dir"
17212 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17215 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17218 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17219 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17225 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17232 if test "X$rpathdirs" != "X"; then
17233 if test -n "$hardcode_libdir_separator"; then
17235 for found_dir in $rpathdirs; do
17236 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17238 acl_save_libdir="$libdir"
17240 eval flag=\"$hardcode_libdir_flag_spec\"
17241 libdir="$acl_save_libdir"
17242 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17244 for found_dir in $rpathdirs; do
17245 acl_save_libdir="$libdir"
17246 libdir="$found_dir"
17247 eval flag=\"$hardcode_libdir_flag_spec\"
17248 libdir="$acl_save_libdir"
17249 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17253 if test "X$ltrpathdirs" != "X"; then
17254 for found_dir in $ltrpathdirs; do
17255 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17276 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17277 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17278 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 gt_save_CPPFLAGS="$CPPFLAGS"
17282 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17283 gt_save_LIBS="$LIBS"
17284 LIBS="$LIBS -framework CoreFoundation"
17285 cat >conftest.$ac_ext <<_ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h. */
17291 #include <CFPreferences.h>
17295 CFPreferencesCopyAppValue(NULL, NULL)
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (ac_try="$ac_link"
17302 case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_link") 2>conftest.er1
17309 grep -v '^ *+' conftest.er1 >conftest.err
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest$ac_exeext &&
17317 $as_test_x conftest$ac_exeext; then
17318 gt_cv_func_CFPreferencesCopyAppValue=yes
17320 echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17323 gt_cv_func_CFPreferencesCopyAppValue=no
17326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17327 conftest$ac_exeext conftest.$ac_ext
17328 CPPFLAGS="$gt_save_CPPFLAGS"
17329 LIBS="$gt_save_LIBS"
17331 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17332 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17333 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17335 cat >>confdefs.h <<\_ACEOF
17336 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17340 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17341 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17342 if test "${gt_cv_func_CFLocaleCopyCurrent+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 <CFLocale.h>
17359 CFLocaleCopyCurrent();
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_CFLocaleCopyCurrent=yes
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 gt_cv_func_CFLocaleCopyCurrent=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_CFLocaleCopyCurrent" >&5
17396 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17397 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_CFLOCALECOPYCURRENT 1
17405 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17406 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17412 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17413 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17414 # Check whether --enable-nls was given.
17415 if test "${enable_nls+set}" = set; then
17416 enableval=$enable_nls; USE_NLS=$enableval
17421 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17422 echo "${ECHO_T}$USE_NLS" >&6; }
17431 if test "$USE_NLS" = "yes"; then
17432 gt_use_preinstalled_gnugettext=no
17439 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17440 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17441 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 cat >conftest.$ac_ext <<_ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17450 #include <libintl.h>
17451 extern int _nl_msg_cat_cntr;
17452 extern int *_nl_domain_bindings;
17456 bindtextdomain ("", "");
17457 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (ac_try="$ac_link"
17464 case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_link") 2>conftest.er1
17471 grep -v '^ *+' conftest.er1 >conftest.err
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } && {
17476 test -z "$ac_c_werror_flag" ||
17477 test ! -s conftest.err
17478 } && test -s conftest$ac_exeext &&
17479 $as_test_x conftest$ac_exeext; then
17480 gt_cv_func_gnugettext1_libc=yes
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 gt_cv_func_gnugettext1_libc=no
17488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17489 conftest$ac_exeext conftest.$ac_ext
17491 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17492 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17494 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17500 am_save_CPPFLAGS="$CPPFLAGS"
17502 for element in $INCICONV; do
17504 for x in $CPPFLAGS; do
17506 acl_save_prefix="$prefix"
17507 prefix="$acl_final_prefix"
17508 acl_save_exec_prefix="$exec_prefix"
17509 exec_prefix="$acl_final_exec_prefix"
17511 exec_prefix="$acl_save_exec_prefix"
17512 prefix="$acl_save_prefix"
17514 if test "X$x" = "X$element"; then
17519 if test -z "$haveit"; then
17520 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17525 { echo "$as_me:$LINENO: checking for iconv" >&5
17526 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17527 if test "${am_cv_func_iconv+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 am_cv_func_iconv="no, consider installing GNU libiconv"
17533 cat >conftest.$ac_ext <<_ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 #include <stdlib.h>
17544 iconv_t cd = iconv_open("","");
17545 iconv(cd,NULL,NULL,NULL,NULL);
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
17560 grep -v '^ *+' conftest.er1 >conftest.err
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } && {
17565 test -z "$ac_c_werror_flag" ||
17566 test ! -s conftest.err
17567 } && test -s conftest$ac_exeext &&
17568 $as_test_x conftest$ac_exeext; then
17569 am_cv_func_iconv=yes
17571 echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578 conftest$ac_exeext conftest.$ac_ext
17579 if test "$am_cv_func_iconv" != yes; then
17580 am_save_LIBS="$LIBS"
17581 LIBS="$LIBS $LIBICONV"
17582 cat >conftest.$ac_ext <<_ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588 #include <stdlib.h>
17593 iconv_t cd = iconv_open("","");
17594 iconv(cd,NULL,NULL,NULL,NULL);
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } && {
17614 test -z "$ac_c_werror_flag" ||
17615 test ! -s conftest.err
17616 } && test -s conftest$ac_exeext &&
17617 $as_test_x conftest$ac_exeext; then
17618 am_cv_lib_iconv=yes
17619 am_cv_func_iconv=yes
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17628 conftest$ac_exeext conftest.$ac_ext
17629 LIBS="$am_save_LIBS"
17633 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17634 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17635 if test "$am_cv_func_iconv" = yes; then
17637 cat >>confdefs.h <<\_ACEOF
17638 #define HAVE_ICONV 1
17642 if test "$am_cv_lib_iconv" = yes; then
17643 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17644 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17645 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17646 echo "${ECHO_T}$LIBICONV" >&6; }
17648 CPPFLAGS="$am_save_CPPFLAGS"
17660 acl_save_prefix="$prefix"
17661 prefix="$acl_final_prefix"
17662 acl_save_exec_prefix="$exec_prefix"
17663 exec_prefix="$acl_final_exec_prefix"
17665 eval additional_includedir=\"$includedir\"
17666 eval additional_libdir=\"$libdir\"
17668 exec_prefix="$acl_save_exec_prefix"
17669 prefix="$acl_save_prefix"
17672 # Check whether --with-libintl-prefix was given.
17673 if test "${with_libintl_prefix+set}" = set; then
17674 withval=$with_libintl_prefix;
17675 if test "X$withval" = "Xno"; then
17678 if test "X$withval" = "X"; then
17680 acl_save_prefix="$prefix"
17681 prefix="$acl_final_prefix"
17682 acl_save_exec_prefix="$exec_prefix"
17683 exec_prefix="$acl_final_exec_prefix"
17685 eval additional_includedir=\"$includedir\"
17686 eval additional_libdir=\"$libdir\"
17688 exec_prefix="$acl_save_exec_prefix"
17689 prefix="$acl_save_prefix"
17692 additional_includedir="$withval/include"
17693 additional_libdir="$withval/lib"
17704 names_already_handled=
17705 names_next_round='intl '
17706 while test -n "$names_next_round"; do
17707 names_this_round="$names_next_round"
17709 for name in $names_this_round; do
17711 for n in $names_already_handled; do
17712 if test "$n" = "$name"; then
17713 already_handled=yes
17717 if test -z "$already_handled"; then
17718 names_already_handled="$names_already_handled $name"
17719 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17720 eval value=\"\$HAVE_LIB$uppername\"
17721 if test -n "$value"; then
17722 if test "$value" = yes; then
17723 eval value=\"\$LIB$uppername\"
17724 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17725 eval value=\"\$LTLIB$uppername\"
17726 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17735 if test $use_additional = yes; then
17736 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17737 found_dir="$additional_libdir"
17738 found_so="$additional_libdir/lib$name.$shlibext"
17739 if test -f "$additional_libdir/lib$name.la"; then
17740 found_la="$additional_libdir/lib$name.la"
17743 if test -f "$additional_libdir/lib$name.$libext"; then
17744 found_dir="$additional_libdir"
17745 found_a="$additional_libdir/lib$name.$libext"
17746 if test -f "$additional_libdir/lib$name.la"; then
17747 found_la="$additional_libdir/lib$name.la"
17752 if test "X$found_dir" = "X"; then
17753 for x in $LDFLAGS $LTLIBINTL; do
17755 acl_save_prefix="$prefix"
17756 prefix="$acl_final_prefix"
17757 acl_save_exec_prefix="$exec_prefix"
17758 exec_prefix="$acl_final_exec_prefix"
17760 exec_prefix="$acl_save_exec_prefix"
17761 prefix="$acl_save_prefix"
17765 dir=`echo "X$x" | sed -e 's/^X-L//'`
17766 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17768 found_so="$dir/lib$name.$shlibext"
17769 if test -f "$dir/lib$name.la"; then
17770 found_la="$dir/lib$name.la"
17773 if test -f "$dir/lib$name.$libext"; then
17775 found_a="$dir/lib$name.$libext"
17776 if test -f "$dir/lib$name.la"; then
17777 found_la="$dir/lib$name.la"
17783 if test "X$found_dir" != "X"; then
17788 if test "X$found_dir" != "X"; then
17789 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17790 if test "X$found_so" != "X"; then
17791 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17792 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17795 for x in $ltrpathdirs; do
17796 if test "X$x" = "X$found_dir"; then
17801 if test -z "$haveit"; then
17802 ltrpathdirs="$ltrpathdirs $found_dir"
17804 if test "$hardcode_direct" = yes; then
17805 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17807 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17808 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17810 for x in $rpathdirs; do
17811 if test "X$x" = "X$found_dir"; then
17816 if test -z "$haveit"; then
17817 rpathdirs="$rpathdirs $found_dir"
17821 for x in $LDFLAGS $LIBINTL; do
17823 acl_save_prefix="$prefix"
17824 prefix="$acl_final_prefix"
17825 acl_save_exec_prefix="$exec_prefix"
17826 exec_prefix="$acl_final_exec_prefix"
17828 exec_prefix="$acl_save_exec_prefix"
17829 prefix="$acl_save_prefix"
17831 if test "X$x" = "X-L$found_dir"; then
17836 if test -z "$haveit"; then
17837 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17839 if test "$hardcode_minus_L" != no; then
17840 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17842 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17848 if test "X$found_a" != "X"; then
17849 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17851 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17854 additional_includedir=
17855 case "$found_dir" in
17857 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17858 additional_includedir="$basedir/include"
17861 if test "X$additional_includedir" != "X"; then
17862 if test "X$additional_includedir" != "X/usr/include"; then
17864 if test "X$additional_includedir" = "X/usr/local/include"; then
17865 if test -n "$GCC"; then
17867 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17871 if test -z "$haveit"; then
17872 for x in $CPPFLAGS $INCINTL; do
17874 acl_save_prefix="$prefix"
17875 prefix="$acl_final_prefix"
17876 acl_save_exec_prefix="$exec_prefix"
17877 exec_prefix="$acl_final_exec_prefix"
17879 exec_prefix="$acl_save_exec_prefix"
17880 prefix="$acl_save_prefix"
17882 if test "X$x" = "X-I$additional_includedir"; then
17887 if test -z "$haveit"; then
17888 if test -d "$additional_includedir"; then
17889 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17895 if test -n "$found_la"; then
17896 save_libdir="$libdir"
17897 case "$found_la" in
17898 */* | *\\*) . "$found_la" ;;
17899 *) . "./$found_la" ;;
17901 libdir="$save_libdir"
17902 for dep in $dependency_libs; do
17905 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17906 if test "X$additional_libdir" != "X/usr/lib"; then
17908 if test "X$additional_libdir" = "X/usr/local/lib"; then
17909 if test -n "$GCC"; then
17911 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17915 if test -z "$haveit"; then
17917 for x in $LDFLAGS $LIBINTL; do
17919 acl_save_prefix="$prefix"
17920 prefix="$acl_final_prefix"
17921 acl_save_exec_prefix="$exec_prefix"
17922 exec_prefix="$acl_final_exec_prefix"
17924 exec_prefix="$acl_save_exec_prefix"
17925 prefix="$acl_save_prefix"
17927 if test "X$x" = "X-L$additional_libdir"; then
17932 if test -z "$haveit"; then
17933 if test -d "$additional_libdir"; then
17934 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17938 for x in $LDFLAGS $LTLIBINTL; do
17940 acl_save_prefix="$prefix"
17941 prefix="$acl_final_prefix"
17942 acl_save_exec_prefix="$exec_prefix"
17943 exec_prefix="$acl_final_exec_prefix"
17945 exec_prefix="$acl_save_exec_prefix"
17946 prefix="$acl_save_prefix"
17948 if test "X$x" = "X-L$additional_libdir"; then
17953 if test -z "$haveit"; then
17954 if test -d "$additional_libdir"; then
17955 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17962 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17963 if test "$enable_rpath" != no; then
17965 for x in $rpathdirs; do
17966 if test "X$x" = "X$dir"; then
17971 if test -z "$haveit"; then
17972 rpathdirs="$rpathdirs $dir"
17975 for x in $ltrpathdirs; do
17976 if test "X$x" = "X$dir"; then
17981 if test -z "$haveit"; then
17982 ltrpathdirs="$ltrpathdirs $dir"
17987 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17990 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17993 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17994 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18000 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18001 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18007 if test "X$rpathdirs" != "X"; then
18008 if test -n "$hardcode_libdir_separator"; then
18010 for found_dir in $rpathdirs; do
18011 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18013 acl_save_libdir="$libdir"
18015 eval flag=\"$hardcode_libdir_flag_spec\"
18016 libdir="$acl_save_libdir"
18017 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18019 for found_dir in $rpathdirs; do
18020 acl_save_libdir="$libdir"
18021 libdir="$found_dir"
18022 eval flag=\"$hardcode_libdir_flag_spec\"
18023 libdir="$acl_save_libdir"
18024 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18028 if test "X$ltrpathdirs" != "X"; then
18029 for found_dir in $ltrpathdirs; do
18030 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18034 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18035 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18036 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 gt_save_CPPFLAGS="$CPPFLAGS"
18040 CPPFLAGS="$CPPFLAGS $INCINTL"
18041 gt_save_LIBS="$LIBS"
18042 LIBS="$LIBS $LIBINTL"
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 #include <libintl.h>
18050 extern int _nl_msg_cat_cntr;
18055 const char *_nl_expand_alias (const char *);
18059 bindtextdomain ("", "");
18060 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_link") 2>conftest.er1
18074 grep -v '^ *+' conftest.er1 >conftest.err
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } && {
18079 test -z "$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18081 } && test -s conftest$ac_exeext &&
18082 $as_test_x conftest$ac_exeext; then
18083 gt_cv_func_gnugettext1_libintl=yes
18085 echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18088 gt_cv_func_gnugettext1_libintl=no
18091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18092 conftest$ac_exeext conftest.$ac_ext
18093 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18094 LIBS="$LIBS $LIBICONV"
18095 cat >conftest.$ac_ext <<_ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 #include <libintl.h>
18102 extern int _nl_msg_cat_cntr;
18107 const char *_nl_expand_alias (const char *);
18111 bindtextdomain ("", "");
18112 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18117 rm -f conftest.$ac_objext conftest$ac_exeext
18118 if { (ac_try="$ac_link"
18119 case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_link") 2>conftest.er1
18126 grep -v '^ *+' conftest.er1 >conftest.err
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } && {
18131 test -z "$ac_c_werror_flag" ||
18132 test ! -s conftest.err
18133 } && test -s conftest$ac_exeext &&
18134 $as_test_x conftest$ac_exeext; then
18135 LIBINTL="$LIBINTL $LIBICONV"
18136 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18137 gt_cv_func_gnugettext1_libintl=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18147 conftest$ac_exeext conftest.$ac_ext
18149 CPPFLAGS="$gt_save_CPPFLAGS"
18150 LIBS="$gt_save_LIBS"
18152 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18153 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18156 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18157 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18158 && test "$PACKAGE" != gettext-runtime \
18159 && test "$PACKAGE" != gettext-tools; }; then
18160 gt_use_preinstalled_gnugettext=yes
18169 if test -n "$INTL_MACOSX_LIBS"; then
18170 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18171 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18172 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18173 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18177 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18178 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18180 cat >>confdefs.h <<\_ACEOF
18181 #define ENABLE_NLS 1
18189 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18190 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18191 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18192 echo "${ECHO_T}$USE_NLS" >&6; }
18193 if test "$USE_NLS" = "yes"; then
18194 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18195 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18196 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18197 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18198 gt_source="external libintl"
18203 gt_source="included intl directory"
18205 { echo "$as_me:$LINENO: result: $gt_source" >&5
18206 echo "${ECHO_T}$gt_source" >&6; }
18209 if test "$USE_NLS" = "yes"; then
18211 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18212 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18213 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18214 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18215 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18216 echo "${ECHO_T}$LIBINTL" >&6; }
18218 for element in $INCINTL; do
18220 for x in $CPPFLAGS; do
18222 acl_save_prefix="$prefix"
18223 prefix="$acl_final_prefix"
18224 acl_save_exec_prefix="$exec_prefix"
18225 exec_prefix="$acl_final_exec_prefix"
18227 exec_prefix="$acl_save_exec_prefix"
18228 prefix="$acl_save_prefix"
18230 if test "X$x" = "X$element"; then
18235 if test -z "$haveit"; then
18236 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18243 cat >>confdefs.h <<\_ACEOF
18244 #define HAVE_GETTEXT 1
18248 cat >>confdefs.h <<\_ACEOF
18249 #define HAVE_DCGETTEXT 1
18259 INTLLIBS="$LIBINTL"
18266 if test x${prefix} = xNONE ; then
18267 if test `eval echo ${datarootdir}` = NONE/share ; then
18268 datarootdir=/usr/share
18272 if test x${prefix} = xNONE ; then
18273 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18274 sysconfdir=/etc/bacula
18277 if test `eval echo ${libdir}` = NONE/lib ; then
18281 if test `eval echo ${includedir}` = NONE/include ; then
18282 includedir=/usr/include
18288 if test x${exec_prefix} = xNONE ; then
18289 exec_prefix=${prefix}
18292 sysconfdir=`eval echo ${sysconfdir}`
18293 datarootdir=`eval echo ${datarootdir}`
18294 libdir=`eval echo ${libdir}`
18295 includedir=`eval echo ${includedir}`
18296 localedir=`eval echo ${datarootdir}/locale`
18297 cat >>confdefs.h <<_ACEOF
18298 #define SYSCONFDIR "$sysconfdir"
18301 cat >>confdefs.h <<_ACEOF
18302 #define LOCALEDIR "$localedir"
18306 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18307 sbindir=${exec_prefix}/sbin
18309 sbindir=`eval echo ${sbindir}`
18311 if test x$mandir = x'${prefix}/man' ; then
18312 mandir=/usr/share/man
18315 for ac_prog in msgfmt
18317 # Extract the first word of "$ac_prog", so it can be a program name with args.
18318 set dummy $ac_prog; ac_word=$2
18319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18321 if test "${ac_cv_path_MSGFMT+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18330 for as_dir in $PATH
18333 test -z "$as_dir" && as_dir=.
18334 for ac_exec_ext in '' $ac_executable_extensions; do
18335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18336 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18347 MSGFMT=$ac_cv_path_MSGFMT
18348 if test -n "$MSGFMT"; then
18349 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18350 echo "${ECHO_T}$MSGFMT" >&6; }
18352 { echo "$as_me:$LINENO: result: no" >&5
18353 echo "${ECHO_T}no" >&6; }
18357 test -n "$MSGFMT" && break
18359 test -n "$MSGFMT" || MSGFMT="no"
18361 if test "$MSGFMT" = "no"
18363 echo 'msgfmt program not found, disabling NLS !'
18365 USE_INCLUDED_LIBINTL=no
18368 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18369 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18370 if test "${ac_cv_gnu_library_2+set}" = set; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 cat >conftest.$ac_ext <<_ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18380 #include <features.h>
18381 #ifdef __GNU_LIBRARY__
18382 #if (__GLIBC__ >= 2)
18388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18389 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18390 ac_cv_gnu_library_2=yes
18392 ac_cv_gnu_library_2=no
18399 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18400 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18402 GLIBC2="$ac_cv_gnu_library_2"
18405 if test -n "$ac_tool_prefix"; then
18406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18407 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 if test -n "$RANLIB"; then
18414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18417 for as_dir in $PATH
18420 test -z "$as_dir" && as_dir=.
18421 for ac_exec_ext in '' $ac_executable_extensions; do
18422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18433 RANLIB=$ac_cv_prog_RANLIB
18434 if test -n "$RANLIB"; then
18435 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18436 echo "${ECHO_T}$RANLIB" >&6; }
18438 { echo "$as_me:$LINENO: result: no" >&5
18439 echo "${ECHO_T}no" >&6; }
18444 if test -z "$ac_cv_prog_RANLIB"; then
18445 ac_ct_RANLIB=$RANLIB
18446 # Extract the first word of "ranlib", so it can be a program name with args.
18447 set dummy ranlib; ac_word=$2
18448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18450 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 if test -n "$ac_ct_RANLIB"; then
18454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18457 for as_dir in $PATH
18460 test -z "$as_dir" && as_dir=.
18461 for ac_exec_ext in '' $ac_executable_extensions; do
18462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18463 ac_cv_prog_ac_ct_RANLIB="ranlib"
18464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18474 if test -n "$ac_ct_RANLIB"; then
18475 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18476 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18478 { echo "$as_me:$LINENO: result: no" >&5
18479 echo "${ECHO_T}no" >&6; }
18482 if test "x$ac_ct_RANLIB" = x; then
18485 case $cross_compiling:$ac_tool_warned in
18487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18488 whose name does not start with the host triplet. If you think this
18489 configuration is useful to you, please write to autoconf@gnu.org." >&5
18490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18491 whose name does not start with the host triplet. If you think this
18492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18493 ac_tool_warned=yes ;;
18495 RANLIB=$ac_ct_RANLIB
18498 RANLIB="$ac_cv_prog_RANLIB"
18502 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18503 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18504 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 ac_check_lib_save_LIBS=$LIBS
18508 LIBS="-lcposix $LIBS"
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18516 /* Override any GCC internal prototype to avoid an error.
18517 Use char because int might match the return type of a GCC
18518 builtin and then its argument prototype would still apply. */
18526 return strerror ();
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } && {
18545 test -z "$ac_c_werror_flag" ||
18546 test ! -s conftest.err
18547 } && test -s conftest$ac_exeext &&
18548 $as_test_x conftest$ac_exeext; then
18549 ac_cv_lib_cposix_strerror=yes
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 ac_cv_lib_cposix_strerror=no
18557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18558 conftest$ac_exeext conftest.$ac_ext
18559 LIBS=$ac_check_lib_save_LIBS
18561 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18562 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18563 if test $ac_cv_lib_cposix_strerror = yes; then
18564 LIBS="$LIBS -lcposix"
18569 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18570 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18571 if test "${ac_cv_c_const+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18584 /* FIXME: Include the comments suggested by Paul. */
18585 #ifndef __cplusplus
18586 /* Ultrix mips cc rejects this. */
18587 typedef int charset[2];
18589 /* SunOS 4.1.1 cc rejects this. */
18590 char const *const *pcpcc;
18592 /* NEC SVR4.0.2 mips cc rejects this. */
18593 struct point {int x, y;};
18594 static struct point const zero = {0,0};
18595 /* AIX XL C 1.02.0.0 rejects this.
18596 It does not let you subtract one const X* pointer from another in
18597 an arm of an if-expression whose if-part is not a constant
18599 const char *g = "string";
18600 pcpcc = &g + (g ? g-g : 0);
18601 /* HPUX 7.0 cc rejects these. */
18603 ppc = (char**) pcpcc;
18604 pcpcc = (char const *const *) ppc;
18605 { /* SCO 3.2v4 cc rejects this. */
18607 char const *s = 0 ? (char *) 0 : (char const *) 0;
18612 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18613 int x[] = {25, 17};
18614 const int *foo = &x[0];
18617 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18618 typedef const int *iptr;
18622 { /* AIX XL C 1.02.0.0 rejects this saying
18623 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18624 struct s { int j; const int *ap[3]; };
18625 struct s *b; b->j = 5;
18627 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18628 const int foo = 10;
18629 if (!foo) return 0;
18631 return !cs[0] && !zero.x;
18638 rm -f conftest.$ac_objext
18639 if { (ac_try="$ac_compile"
18640 case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_compile") 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18649 cat conftest.err >&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } && {
18652 test -z "$ac_c_werror_flag" ||
18653 test ! -s conftest.err
18654 } && test -s conftest.$ac_objext; then
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18665 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18666 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18667 if test $ac_cv_c_const = no; then
18669 cat >>confdefs.h <<\_ACEOF
18676 { echo "$as_me:$LINENO: checking for signed" >&5
18677 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18678 if test "${bh_cv_c_signed+set}" = set; then
18679 echo $ECHO_N "(cached) $ECHO_C" >&6
18681 cat >conftest.$ac_ext <<_ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18696 rm -f conftest.$ac_objext
18697 if { (ac_try="$ac_compile"
18698 case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_compile") 2>conftest.er1
18705 grep -v '^ *+' conftest.er1 >conftest.err
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } && {
18710 test -z "$ac_c_werror_flag" ||
18711 test ! -s conftest.err
18712 } && test -s conftest.$ac_objext; then
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18723 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18724 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18725 if test $bh_cv_c_signed = no; then
18727 cat >>confdefs.h <<\_ACEOF
18733 { echo "$as_me:$LINENO: checking for inline" >&5
18734 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18735 if test "${ac_cv_c_inline+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 for ac_kw in inline __inline__ __inline; do
18740 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746 #ifndef __cplusplus
18748 static $ac_kw foo_t static_foo () {return 0; }
18749 $ac_kw foo_t foo () {return 0; }
18753 rm -f conftest.$ac_objext
18754 if { (ac_try="$ac_compile"
18755 case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_compile") 2>conftest.er1
18762 grep -v '^ *+' conftest.er1 >conftest.err
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } && {
18767 test -z "$ac_c_werror_flag" ||
18768 test ! -s conftest.err
18769 } && test -s conftest.$ac_objext; then
18770 ac_cv_c_inline=$ac_kw
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779 test "$ac_cv_c_inline" != no && break
18783 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18784 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18787 case $ac_cv_c_inline in
18790 case $ac_cv_c_inline in
18792 *) ac_val=$ac_cv_c_inline;;
18794 cat >>confdefs.h <<_ACEOF
18795 #ifndef __cplusplus
18796 #define inline $ac_val
18802 { echo "$as_me:$LINENO: checking for off_t" >&5
18803 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18804 if test "${ac_cv_type_off_t+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 cat >conftest.$ac_ext <<_ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813 $ac_includes_default
18814 typedef off_t ac__type_new_;
18818 if ((ac__type_new_ *) 0)
18820 if (sizeof (ac__type_new_))
18826 rm -f conftest.$ac_objext
18827 if { (ac_try="$ac_compile"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_compile") 2>conftest.er1
18835 grep -v '^ *+' conftest.er1 >conftest.err
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } && {
18840 test -z "$ac_c_werror_flag" ||
18841 test ! -s conftest.err
18842 } && test -s conftest.$ac_objext; then
18843 ac_cv_type_off_t=yes
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ac_cv_type_off_t=no
18851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18853 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18854 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18855 if test $ac_cv_type_off_t = yes; then
18859 cat >>confdefs.h <<_ACEOF
18860 #define off_t long int
18865 { echo "$as_me:$LINENO: checking for size_t" >&5
18866 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18867 if test "${ac_cv_type_size_t+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 cat >conftest.$ac_ext <<_ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 $ac_includes_default
18877 typedef size_t ac__type_new_;
18881 if ((ac__type_new_ *) 0)
18883 if (sizeof (ac__type_new_))
18889 rm -f conftest.$ac_objext
18890 if { (ac_try="$ac_compile"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_compile") 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest.$ac_objext; then
18906 ac_cv_type_size_t=yes
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 ac_cv_type_size_t=no
18914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18917 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18918 if test $ac_cv_type_size_t = yes; then
18922 cat >>confdefs.h <<_ACEOF
18923 #define size_t unsigned int
18929 { echo "$as_me:$LINENO: checking for long long" >&5
18930 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18931 if test "${ac_cv_type_long_long+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 long long ll = 1LL; int i = 63;
18944 long long llmax = (long long) -1;
18945 return ll << i | ll >> i | llmax / ll | llmax % ll;
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest$ac_exeext &&
18967 $as_test_x conftest$ac_exeext; then
18968 ac_cv_type_long_long=yes
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_cv_type_long_long=no
18976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18977 conftest$ac_exeext conftest.$ac_ext
18979 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18980 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18981 if test $ac_cv_type_long_long = yes; then
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE_LONG_LONG 1
18990 { echo "$as_me:$LINENO: checking for long double" >&5
18991 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18992 if test "${gt_cv_c_long_double+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 if test "$GCC" = yes; then
18996 gt_cv_c_long_double=yes
18998 cat >conftest.$ac_ext <<_ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19005 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19006 long double foo = 0.0;
19007 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19008 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19018 rm -f conftest.$ac_objext
19019 if { (ac_try="$ac_compile"
19020 case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_compile") 2>conftest.er1
19027 grep -v '^ *+' conftest.er1 >conftest.err
19029 cat conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } && {
19032 test -z "$ac_c_werror_flag" ||
19033 test ! -s conftest.err
19034 } && test -s conftest.$ac_objext; then
19035 gt_cv_c_long_double=yes
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 gt_cv_c_long_double=no
19043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19046 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19047 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19048 if test $gt_cv_c_long_double = yes; then
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_LONG_DOUBLE 1
19057 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19058 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19059 if test "${gt_cv_c_wchar_t+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 cat >conftest.$ac_ext <<_ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068 #include <stddef.h>
19069 wchar_t foo = (wchar_t)'\0';
19078 rm -f conftest.$ac_objext
19079 if { (ac_try="$ac_compile"
19080 case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_compile") 2>conftest.er1
19087 grep -v '^ *+' conftest.er1 >conftest.err
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } && {
19092 test -z "$ac_c_werror_flag" ||
19093 test ! -s conftest.err
19094 } && test -s conftest.$ac_objext; then
19095 gt_cv_c_wchar_t=yes
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19106 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19107 if test $gt_cv_c_wchar_t = yes; then
19109 cat >>confdefs.h <<\_ACEOF
19110 #define HAVE_WCHAR_T 1
19116 { echo "$as_me:$LINENO: checking for wint_t" >&5
19117 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19118 if test "${gt_cv_c_wint_t+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 cat >conftest.$ac_ext <<_ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19128 wint_t foo = (wchar_t)'\0';
19137 rm -f conftest.$ac_objext
19138 if { (ac_try="$ac_compile"
19139 case "(($ac_try" in
19140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141 *) ac_try_echo=$ac_try;;
19143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144 (eval "$ac_compile") 2>conftest.er1
19146 grep -v '^ *+' conftest.er1 >conftest.err
19148 cat conftest.err >&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } && {
19151 test -z "$ac_c_werror_flag" ||
19152 test ! -s conftest.err
19153 } && test -s conftest.$ac_objext; then
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19164 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19165 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19166 if test $gt_cv_c_wint_t = yes; then
19168 cat >>confdefs.h <<\_ACEOF
19169 #define HAVE_WINT_T 1
19175 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19176 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19177 if test "${gl_cv_header_inttypes_h+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 #include <sys/types.h>
19187 #include <inttypes.h>
19191 uintmax_t i = (uintmax_t) -1;
19196 rm -f conftest.$ac_objext
19197 if { (ac_try="$ac_compile"
19198 case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_compile") 2>conftest.er1
19205 grep -v '^ *+' conftest.er1 >conftest.err
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } && {
19210 test -z "$ac_c_werror_flag" ||
19211 test ! -s conftest.err
19212 } && test -s conftest.$ac_objext; then
19213 gl_cv_header_inttypes_h=yes
19215 echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19218 gl_cv_header_inttypes_h=no
19221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19224 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19225 if test $gl_cv_header_inttypes_h = yes; then
19227 cat >>confdefs.h <<_ACEOF
19228 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19234 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19235 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19236 if test "${gl_cv_header_stdint_h+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19239 cat >conftest.$ac_ext <<_ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 #include <sys/types.h>
19246 #include <stdint.h>
19250 uintmax_t i = (uintmax_t) -1;
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_compile") 2>conftest.er1
19264 grep -v '^ *+' conftest.er1 >conftest.err
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } && {
19269 test -z "$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 } && test -s conftest.$ac_objext; then
19272 gl_cv_header_stdint_h=yes
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19277 gl_cv_header_stdint_h=no
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19283 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19284 if test $gl_cv_header_stdint_h = yes; then
19286 cat >>confdefs.h <<_ACEOF
19287 #define HAVE_STDINT_H_WITH_UINTMAX 1
19295 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19296 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19297 if test "${gt_cv_c_intmax_t+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19307 #include <stddef.h>
19308 #include <stdlib.h>
19309 #if HAVE_STDINT_H_WITH_UINTMAX
19310 #include <stdint.h>
19312 #if HAVE_INTTYPES_H_WITH_UINTMAX
19313 #include <inttypes.h>
19324 rm -f conftest.$ac_objext
19325 if { (ac_try="$ac_compile"
19326 case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_compile") 2>conftest.er1
19333 grep -v '^ *+' conftest.er1 >conftest.err
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } && {
19338 test -z "$ac_c_werror_flag" ||
19339 test ! -s conftest.err
19340 } && test -s conftest.$ac_objext; then
19341 gt_cv_c_intmax_t=yes
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 gt_cv_c_intmax_t=no
19349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19351 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19352 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19353 if test $gt_cv_c_intmax_t = yes; then
19355 cat >>confdefs.h <<\_ACEOF
19356 #define HAVE_INTMAX_T 1
19363 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19364 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19365 if test "${gt_cv_func_printf_posix+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 if test "$cross_compiling" = yes; then
19371 cat >conftest.$ac_ext <<_ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19378 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19384 $EGREP "notposix" >/dev/null 2>&1; then
19385 gt_cv_func_printf_posix="guessing no"
19387 gt_cv_func_printf_posix="guessing yes"
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19401 #include <string.h>
19402 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19403 dollar expansion (possibly an autoconf bug). */
19404 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19405 static char buf[100];
19408 sprintf (buf, format, 33, 55);
19409 return (strcmp (buf, "55 33") != 0);
19412 rm -f conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_link") 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_try") 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 gt_cv_func_printf_posix=yes
19434 echo "$as_me: program exited with status $ac_status" >&5
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ( exit $ac_status )
19439 gt_cv_func_printf_posix=no
19441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19447 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19448 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19449 case $gt_cv_func_printf_posix in
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_POSIX_PRINTF 1
19459 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19460 # for constant arguments. Useless!
19461 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19462 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19463 if test "${ac_cv_working_alloca_h+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 cat >conftest.$ac_ext <<_ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19472 #include <alloca.h>
19476 char *p = (char *) alloca (2 * sizeof (int));
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_link") 2>conftest.er1
19491 grep -v '^ *+' conftest.er1 >conftest.err
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } && {
19496 test -z "$ac_c_werror_flag" ||
19497 test ! -s conftest.err
19498 } && test -s conftest$ac_exeext &&
19499 $as_test_x conftest$ac_exeext; then
19500 ac_cv_working_alloca_h=yes
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ac_cv_working_alloca_h=no
19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509 conftest$ac_exeext conftest.$ac_ext
19511 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19512 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19513 if test $ac_cv_working_alloca_h = yes; then
19515 cat >>confdefs.h <<\_ACEOF
19516 #define HAVE_ALLOCA_H 1
19521 { echo "$as_me:$LINENO: checking for alloca" >&5
19522 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19523 if test "${ac_cv_func_alloca_works+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 # define alloca __builtin_alloca
19536 # include <malloc.h>
19537 # define alloca _alloca
19539 # ifdef HAVE_ALLOCA_H
19540 # include <alloca.h>
19545 # ifndef alloca /* predefined by HP cc +Olibcalls */
19556 char *p = (char *) alloca (1);
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (ac_try="$ac_link"
19564 case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_link") 2>conftest.er1
19571 grep -v '^ *+' conftest.er1 >conftest.err
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } && {
19576 test -z "$ac_c_werror_flag" ||
19577 test ! -s conftest.err
19578 } && test -s conftest$ac_exeext &&
19579 $as_test_x conftest$ac_exeext; then
19580 ac_cv_func_alloca_works=yes
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ac_cv_func_alloca_works=no
19588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19589 conftest$ac_exeext conftest.$ac_ext
19591 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19592 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19594 if test $ac_cv_func_alloca_works = yes; then
19596 cat >>confdefs.h <<\_ACEOF
19597 #define HAVE_ALLOCA 1
19601 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19602 # that cause trouble. Some versions do not even contain alloca or
19603 # contain a buggy version. If you still want to use their alloca,
19604 # use ar to extract alloca.o from them instead of compiling alloca.c.
19606 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19608 cat >>confdefs.h <<\_ACEOF
19613 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19614 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19615 if test "${ac_cv_os_cray+set}" = set; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 cat >conftest.$ac_ext <<_ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19624 #if defined CRAY && ! defined CRAY2
19631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19632 $EGREP "webecray" >/dev/null 2>&1; then
19640 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19641 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19642 if test $ac_cv_os_cray = yes; then
19643 for ac_func in _getb67 GETB67 getb67; do
19644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 cat >conftest.$ac_ext <<_ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19658 #define $ac_func innocuous_$ac_func
19660 /* System header to define __stub macros and hopefully few prototypes,
19661 which can conflict with char $ac_func (); below.
19662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19663 <limits.h> exists even on freestanding compilers. */
19666 # include <limits.h>
19668 # include <assert.h>
19673 /* Override any GCC internal prototype to avoid an error.
19674 Use char because int might match the return type of a GCC
19675 builtin and then its argument prototype would still apply. */
19680 /* The GNU C library defines this for functions which it implements
19681 to always fail with ENOSYS. Some functions are actually named
19682 something starting with __ and the normal name is an alias. */
19683 #if defined __stub_$ac_func || defined __stub___$ac_func
19690 return $ac_func ();
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (ac_try="$ac_link"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_link") 2>conftest.er1
19704 grep -v '^ *+' conftest.er1 >conftest.err
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } && {
19709 test -z "$ac_c_werror_flag" ||
19710 test ! -s conftest.err
19711 } && test -s conftest$ac_exeext &&
19712 $as_test_x conftest$ac_exeext; then
19713 eval "$as_ac_var=yes"
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 eval "$as_ac_var=no"
19721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19722 conftest$ac_exeext conftest.$ac_ext
19724 ac_res=`eval echo '${'$as_ac_var'}'`
19725 { echo "$as_me:$LINENO: result: $ac_res" >&5
19726 echo "${ECHO_T}$ac_res" >&6; }
19727 if test `eval echo '${'$as_ac_var'}'` = yes; then
19729 cat >>confdefs.h <<_ACEOF
19730 #define CRAY_STACKSEG_END $ac_func
19739 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19740 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19741 if test "${ac_cv_c_stack_direction+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 if test "$cross_compiling" = yes; then
19745 ac_cv_c_stack_direction=0
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19753 $ac_includes_default
19755 find_stack_direction ()
19757 static char *addr = 0;
19762 return find_stack_direction ();
19765 return (&dummy > addr) ? 1 : -1;
19771 return find_stack_direction () < 0;
19774 rm -f conftest$ac_exeext
19775 if { (ac_try="$ac_link"
19776 case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_link") 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19785 { (case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_try") 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; }; then
19794 ac_cv_c_stack_direction=1
19796 echo "$as_me: program exited with status $ac_status" >&5
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 ( exit $ac_status )
19801 ac_cv_c_stack_direction=-1
19803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19808 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19809 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19811 cat >>confdefs.h <<_ACEOF
19812 #define STACK_DIRECTION $ac_cv_c_stack_direction
19820 for ac_header in stdlib.h unistd.h
19822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 ac_res=`eval echo '${'$as_ac_Header'}'`
19830 { echo "$as_me:$LINENO: result: $ac_res" >&5
19831 echo "${ECHO_T}$ac_res" >&6; }
19833 # Is the header compilable?
19834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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
19843 #include <$ac_header>
19845 rm -f conftest.$ac_objext
19846 if { (ac_try="$ac_compile"
19847 case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_compile") 2>conftest.er1
19854 grep -v '^ *+' conftest.er1 >conftest.err
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } && {
19859 test -z "$ac_c_werror_flag" ||
19860 test ! -s conftest.err
19861 } && test -s conftest.$ac_objext; then
19862 ac_header_compiler=yes
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 ac_header_compiler=no
19870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19872 echo "${ECHO_T}$ac_header_compiler" >&6; }
19874 # Is the header present?
19875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19877 cat >conftest.$ac_ext <<_ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19883 #include <$ac_header>
19885 if { (ac_try="$ac_cpp conftest.$ac_ext"
19886 case "(($ac_try" in
19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19893 grep -v '^ *+' conftest.er1 >conftest.err
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } >/dev/null && {
19898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19899 test ! -s conftest.err
19901 ac_header_preproc=yes
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19906 ac_header_preproc=no
19909 rm -f conftest.err conftest.$ac_ext
19910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19911 echo "${ECHO_T}$ac_header_preproc" >&6; }
19913 # So? What about this header?
19914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19920 ac_header_preproc=yes
19923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 eval "$as_ac_Header=\$ac_header_preproc"
19945 ac_res=`eval echo '${'$as_ac_Header'}'`
19946 { echo "$as_me:$LINENO: result: $ac_res" >&5
19947 echo "${ECHO_T}$ac_res" >&6; }
19950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19951 cat >>confdefs.h <<_ACEOF
19952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19960 for ac_func in getpagesize
19962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19976 #define $ac_func innocuous_$ac_func
19978 /* System header to define __stub macros and hopefully few prototypes,
19979 which can conflict with char $ac_func (); below.
19980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19981 <limits.h> exists even on freestanding compilers. */
19984 # include <limits.h>
19986 # include <assert.h>
19991 /* Override any GCC internal prototype to avoid an error.
19992 Use char because int might match the return type of a GCC
19993 builtin and then its argument prototype would still apply. */
19998 /* The GNU C library defines this for functions which it implements
19999 to always fail with ENOSYS. Some functions are actually named
20000 something starting with __ and the normal name is an alias. */
20001 #if defined __stub_$ac_func || defined __stub___$ac_func
20008 return $ac_func ();
20013 rm -f conftest.$ac_objext conftest$ac_exeext
20014 if { (ac_try="$ac_link"
20015 case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_link") 2>conftest.er1
20022 grep -v '^ *+' conftest.er1 >conftest.err
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } && {
20027 test -z "$ac_c_werror_flag" ||
20028 test ! -s conftest.err
20029 } && test -s conftest$ac_exeext &&
20030 $as_test_x conftest$ac_exeext; then
20031 eval "$as_ac_var=yes"
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 eval "$as_ac_var=no"
20039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20040 conftest$ac_exeext conftest.$ac_ext
20042 ac_res=`eval echo '${'$as_ac_var'}'`
20043 { echo "$as_me:$LINENO: result: $ac_res" >&5
20044 echo "${ECHO_T}$ac_res" >&6; }
20045 if test `eval echo '${'$as_ac_var'}'` = yes; then
20046 cat >>confdefs.h <<_ACEOF
20047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20053 { echo "$as_me:$LINENO: checking for working mmap" >&5
20054 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20055 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20058 if test "$cross_compiling" = yes; then
20059 ac_cv_func_mmap_fixed_mapped=no
20061 cat >conftest.$ac_ext <<_ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067 $ac_includes_default
20068 /* malloc might have been renamed as rpl_malloc. */
20071 /* Thanks to Mike Haertel and Jim Avera for this test.
20072 Here is a matrix of mmap possibilities:
20073 mmap private not fixed
20074 mmap private fixed at somewhere currently unmapped
20075 mmap private fixed at somewhere already mapped
20076 mmap shared not fixed
20077 mmap shared fixed at somewhere currently unmapped
20078 mmap shared fixed at somewhere already mapped
20079 For private mappings, we should verify that changes cannot be read()
20080 back from the file, nor mmap's back from the file at a different
20081 address. (There have been systems where private was not correctly
20082 implemented like the infamous i386 svr4.0, and systems where the
20083 VM page cache was not coherent with the file system buffer cache
20084 like early versions of FreeBSD and possibly contemporary NetBSD.)
20085 For shared mappings, we should conversely verify that changes get
20086 propagated back to all the places they're supposed to be.
20088 Grep wants private fixed already mapped.
20089 The main things grep needs to know about mmap are:
20090 * does it exist and is it safe to write into the mmap'd area
20091 * how to use it (BSD variants) */
20094 #include <sys/mman.h>
20096 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20100 /* This mess was copied from the GNU getpagesize.h. */
20101 #ifndef HAVE_GETPAGESIZE
20102 /* Assume that all systems that can run configure have sys/param.h. */
20103 # ifndef HAVE_SYS_PARAM_H
20104 # define HAVE_SYS_PARAM_H 1
20107 # ifdef _SC_PAGESIZE
20108 # define getpagesize() sysconf(_SC_PAGESIZE)
20109 # else /* no _SC_PAGESIZE */
20110 # ifdef HAVE_SYS_PARAM_H
20111 # include <sys/param.h>
20112 # ifdef EXEC_PAGESIZE
20113 # define getpagesize() EXEC_PAGESIZE
20114 # else /* no EXEC_PAGESIZE */
20116 # define getpagesize() NBPG * CLSIZE
20119 # endif /* no CLSIZE */
20120 # else /* no NBPG */
20122 # define getpagesize() NBPC
20123 # else /* no NBPC */
20125 # define getpagesize() PAGESIZE
20126 # endif /* PAGESIZE */
20127 # endif /* no NBPC */
20128 # endif /* no NBPG */
20129 # endif /* no EXEC_PAGESIZE */
20130 # else /* no HAVE_SYS_PARAM_H */
20131 # define getpagesize() 8192 /* punt totally */
20132 # endif /* no HAVE_SYS_PARAM_H */
20133 # endif /* no _SC_PAGESIZE */
20135 #endif /* no HAVE_GETPAGESIZE */
20140 char *data, *data2, *data3;
20144 pagesize = getpagesize ();
20146 /* First, make a file with some known garbage in it. */
20147 data = (char *) malloc (pagesize);
20150 for (i = 0; i < pagesize; ++i)
20151 *(data + i) = rand ();
20153 fd = creat ("conftest.mmap", 0600);
20156 if (write (fd, data, pagesize) != pagesize)
20160 /* Next, try to mmap the file at a fixed address which already has
20161 something else allocated at it. If we can, also make sure that
20162 we see the same garbage. */
20163 fd = open ("conftest.mmap", O_RDWR);
20166 data2 = (char *) malloc (2 * pagesize);
20169 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20170 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20171 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20173 for (i = 0; i < pagesize; ++i)
20174 if (*(data + i) != *(data2 + i))
20177 /* Finally, make sure that changes to the mapped area do not
20178 percolate back to the file as seen by read(). (This is a bug on
20179 some variants of i386 svr4.0.) */
20180 for (i = 0; i < pagesize; ++i)
20181 *(data2 + i) = *(data2 + i) + 1;
20182 data3 = (char *) malloc (pagesize);
20185 if (read (fd, data3, pagesize) != pagesize)
20187 for (i = 0; i < pagesize; ++i)
20188 if (*(data + i) != *(data3 + i))
20194 rm -f conftest$ac_exeext
20195 if { (ac_try="$ac_link"
20196 case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_link") 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20205 { (case "(($ac_try" in
20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210 (eval "$ac_try") 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 ac_cv_func_mmap_fixed_mapped=yes
20216 echo "$as_me: program exited with status $ac_status" >&5
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ( exit $ac_status )
20221 ac_cv_func_mmap_fixed_mapped=no
20223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20229 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20230 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20232 cat >>confdefs.h <<\_ACEOF
20233 #define HAVE_MMAP 1
20237 rm -f conftest.mmap
20240 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20241 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20242 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 cat >conftest.$ac_ext <<_ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h. */
20252 #include <features.h>
20253 #ifdef __GNU_LIBRARY__
20254 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20261 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20262 ac_cv_gnu_library_2_1=yes
20264 ac_cv_gnu_library_2_1=no
20271 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20272 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20274 GLIBC21="$ac_cv_gnu_library_2_1"
20279 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20280 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20281 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 if test "$cross_compiling" = yes; then
20287 # Guess based on the CPU.
20288 case "$host_cpu" in
20289 alpha* | i3456786 | m68k | s390*)
20290 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20292 gt_cv_int_divbyzero_sigfpe="guessing no";;
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20303 #include <stdlib.h>
20304 #include <signal.h>
20308 sigfpe_handler (int sig)
20310 sigfpe_handler (sig) int sig;
20313 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20314 exit (sig != SIGFPE);
20324 signal (SIGFPE, sigfpe_handler);
20325 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20326 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20327 signal (SIGTRAP, sigfpe_handler);
20329 /* Linux/SPARC yields signal SIGILL. */
20330 #if defined (__sparc__) && defined (__linux__)
20331 signal (SIGILL, sigfpe_handler);
20340 rm -f conftest$ac_exeext
20341 if { (ac_try="$ac_link"
20342 case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347 (eval "$ac_link") 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20351 { (case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_try") 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; }; then
20360 gt_cv_int_divbyzero_sigfpe=yes
20362 echo "$as_me: program exited with status $ac_status" >&5
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ( exit $ac_status )
20367 gt_cv_int_divbyzero_sigfpe=no
20369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20375 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20376 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20377 case "$gt_cv_int_divbyzero_sigfpe" in
20382 cat >>confdefs.h <<_ACEOF
20383 #define INTDIV0_RAISES_SIGFPE $value
20388 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20389 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20390 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 cat >conftest.$ac_ext <<_ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 unsigned long long ull = 1ULL; int i = 63;
20403 unsigned long long ullmax = (unsigned long long) -1;
20404 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_link") 2>conftest.er1
20418 grep -v '^ *+' conftest.er1 >conftest.err
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && {
20423 test -z "$ac_c_werror_flag" ||
20424 test ! -s conftest.err
20425 } && test -s conftest$ac_exeext &&
20426 $as_test_x conftest$ac_exeext; then
20427 ac_cv_type_unsigned_long_long=yes
20429 echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20432 ac_cv_type_unsigned_long_long=no
20435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20436 conftest$ac_exeext conftest.$ac_ext
20438 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20439 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20440 if test $ac_cv_type_unsigned_long_long = yes; then
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE_UNSIGNED_LONG_LONG 1
20451 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20453 test $ac_cv_type_unsigned_long_long = yes \
20454 && ac_type='unsigned long long' \
20455 || ac_type='unsigned long'
20457 cat >>confdefs.h <<_ACEOF
20458 #define uintmax_t $ac_type
20463 cat >>confdefs.h <<\_ACEOF
20464 #define HAVE_UINTMAX_T 1
20470 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20471 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20472 if test "${gt_cv_header_inttypes_h+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 #include <sys/types.h>
20483 #include <inttypes.h>
20492 rm -f conftest.$ac_objext
20493 if { (ac_try="$ac_compile"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_compile") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest.$ac_objext; then
20509 gt_cv_header_inttypes_h=yes
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 gt_cv_header_inttypes_h=no
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20520 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20521 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20522 if test $gt_cv_header_inttypes_h = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define HAVE_INTTYPES_H 1
20532 if test $gt_cv_header_inttypes_h = yes; then
20533 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20534 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20535 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20536 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20545 #include <inttypes.h>
20558 rm -f conftest.$ac_objext
20559 if { (ac_try="$ac_compile"
20560 case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_compile") 2>conftest.er1
20567 grep -v '^ *+' conftest.er1 >conftest.err
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } && {
20572 test -z "$ac_c_werror_flag" ||
20573 test ! -s conftest.err
20574 } && test -s conftest.$ac_objext; then
20575 gt_cv_inttypes_pri_broken=no
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 gt_cv_inttypes_pri_broken=yes
20583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20587 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20589 if test "$gt_cv_inttypes_pri_broken" = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define PRI_MACROS_BROKEN 1
20599 for ac_header in stdint.h
20601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 ac_res=`eval echo '${'$as_ac_Header'}'`
20609 { echo "$as_me:$LINENO: result: $ac_res" >&5
20610 echo "${ECHO_T}$ac_res" >&6; }
20612 # Is the header compilable?
20613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 $ac_includes_default
20622 #include <$ac_header>
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_compile") 2>conftest.er1
20633 grep -v '^ *+' conftest.er1 >conftest.err
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && {
20638 test -z "$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20640 } && test -s conftest.$ac_objext; then
20641 ac_header_compiler=yes
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 ac_header_compiler=no
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20651 echo "${ECHO_T}$ac_header_compiler" >&6; }
20653 # Is the header present?
20654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 #include <$ac_header>
20664 if { (ac_try="$ac_cpp conftest.$ac_ext"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } >/dev/null && {
20677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20680 ac_header_preproc=yes
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 ac_header_preproc=no
20688 rm -f conftest.err conftest.$ac_ext
20689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20690 echo "${ECHO_T}$ac_header_preproc" >&6; }
20692 # So? What about this header?
20693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20699 ac_header_preproc=yes
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 eval "$as_ac_Header=\$ac_header_preproc"
20724 ac_res=`eval echo '${'$as_ac_Header'}'`
20725 { echo "$as_me:$LINENO: result: $ac_res" >&5
20726 echo "${ECHO_T}$ac_res" >&6; }
20729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20730 cat >>confdefs.h <<_ACEOF
20731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20738 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20739 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20748 #include <limits.h>
20750 #include <stdint.h>
20757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20758 $EGREP "Found it" >/dev/null 2>&1; then
20763 if test -z "$result"; then
20764 if test "$cross_compiling" = yes; then
20765 # Depending upon the size, compute the lo and hi bounds.
20766 cat >conftest.$ac_ext <<_ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 #include <stddef.h>
20776 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20783 rm -f conftest.$ac_objext
20784 if { (ac_try="$ac_compile"
20785 case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_compile") 2>conftest.er1
20792 grep -v '^ *+' conftest.er1 >conftest.err
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } && {
20797 test -z "$ac_c_werror_flag" ||
20798 test ! -s conftest.err
20799 } && test -s conftest.$ac_objext; then
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 #include <stddef.h>
20812 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_compile") 2>conftest.er1
20828 grep -v '^ *+' conftest.er1 >conftest.err
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } && {
20833 test -z "$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20835 } && test -s conftest.$ac_objext; then
20836 ac_hi=$ac_mid; break
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_lo=`expr $ac_mid + 1`
20842 if test $ac_lo -le $ac_mid; then
20846 ac_mid=`expr 2 '*' $ac_mid + 1`
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
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_lo=$ac_mid; break
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 ac_hi=`expr '(' $ac_mid ')' - 1`
20931 if test $ac_mid -le $ac_hi; then
20935 ac_mid=`expr 2 '*' $ac_mid`
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
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 # Binary search between lo and hi bounds.
20952 while test "x$ac_lo" != "x$ac_hi"; do
20953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20954 cat >conftest.$ac_ext <<_ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <stddef.h>
20964 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20971 rm -f conftest.$ac_objext
20972 if { (ac_try="$ac_compile"
20973 case "(($ac_try" in
20974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975 *) ac_try_echo=$ac_try;;
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978 (eval "$ac_compile") 2>conftest.er1
20980 grep -v '^ *+' conftest.er1 >conftest.err
20982 cat conftest.err >&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } && {
20985 test -z "$ac_c_werror_flag" ||
20986 test ! -s conftest.err
20987 } && test -s conftest.$ac_objext; then
20990 echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20993 ac_lo=`expr '(' $ac_mid ')' + 1`
20996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20999 ?*) res_hi=$ac_lo;;
21003 cat >conftest.$ac_ext <<_ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 #include <stddef.h>
21010 static long int longval () { return ~(size_t)0 / 10; }
21011 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21013 #include <stdlib.h>
21018 FILE *f = fopen ("conftest.val", "w");
21021 if ((~(size_t)0 / 10) < 0)
21023 long int i = longval ();
21024 if (i != (~(size_t)0 / 10))
21026 fprintf (f, "%ld\n", i);
21030 unsigned long int i = ulongval ();
21031 if (i != (~(size_t)0 / 10))
21033 fprintf (f, "%lu\n", i);
21035 return ferror (f) || fclose (f) != 0;
21041 rm -f conftest$ac_exeext
21042 if { (ac_try="$ac_link"
21043 case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_link") 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21052 { (case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_try") 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 res_hi=`cat conftest.val`
21063 echo "$as_me: program exited with status $ac_status" >&5
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ( exit $ac_status )
21070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21074 if test "$cross_compiling" = yes; then
21075 # Depending upon the size, compute the lo and hi bounds.
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082 #include <stddef.h>
21086 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21093 rm -f conftest.$ac_objext
21094 if { (ac_try="$ac_compile"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_compile") 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } && {
21107 test -z "$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21109 } && test -s conftest.$ac_objext; then
21112 cat >conftest.$ac_ext <<_ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 #include <stddef.h>
21122 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21129 rm -f conftest.$ac_objext
21130 if { (ac_try="$ac_compile"
21131 case "(($ac_try" in
21132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21133 *) ac_try_echo=$ac_try;;
21135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_compile") 2>conftest.er1
21138 grep -v '^ *+' conftest.er1 >conftest.err
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } && {
21143 test -z "$ac_c_werror_flag" ||
21144 test ! -s conftest.err
21145 } && test -s conftest.$ac_objext; then
21146 ac_hi=$ac_mid; break
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 ac_lo=`expr $ac_mid + 1`
21152 if test $ac_lo -le $ac_mid; then
21156 ac_mid=`expr 2 '*' $ac_mid + 1`
21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
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_lo=$ac_mid; break
21237 echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21240 ac_hi=`expr '(' $ac_mid ')' - 1`
21241 if test $ac_mid -le $ac_hi; then
21245 ac_mid=`expr 2 '*' $ac_mid`
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
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 # Binary search between lo and hi bounds.
21262 while test "x$ac_lo" != "x$ac_hi"; do
21263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21264 cat >conftest.$ac_ext <<_ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 #include <stddef.h>
21274 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21281 rm -f conftest.$ac_objext
21282 if { (ac_try="$ac_compile"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_compile") 2>conftest.er1
21290 grep -v '^ *+' conftest.er1 >conftest.err
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } && {
21295 test -z "$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21297 } && test -s conftest.$ac_objext; then
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 ac_lo=`expr '(' $ac_mid ')' + 1`
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21309 ?*) res_lo=$ac_lo;;
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 #include <stddef.h>
21320 static long int longval () { return ~(size_t)0 % 10; }
21321 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21323 #include <stdlib.h>
21328 FILE *f = fopen ("conftest.val", "w");
21331 if ((~(size_t)0 % 10) < 0)
21333 long int i = longval ();
21334 if (i != (~(size_t)0 % 10))
21336 fprintf (f, "%ld\n", i);
21340 unsigned long int i = ulongval ();
21341 if (i != (~(size_t)0 % 10))
21343 fprintf (f, "%lu\n", i);
21345 return ferror (f) || fclose (f) != 0;
21351 rm -f conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_link") 2>&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21362 { (case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_try") 2>&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; }; then
21371 res_lo=`cat conftest.val`
21373 echo "$as_me: program exited with status $ac_status" >&5
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21377 ( exit $ac_status )
21380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21384 if test "$cross_compiling" = yes; then
21385 # Depending upon the size, compute the lo and hi bounds.
21386 cat >conftest.$ac_ext <<_ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21392 #include <stddef.h>
21396 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21403 rm -f conftest.$ac_objext
21404 if { (ac_try="$ac_compile"
21405 case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_compile") 2>conftest.er1
21412 grep -v '^ *+' conftest.er1 >conftest.err
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && {
21417 test -z "$ac_c_werror_flag" ||
21418 test ! -s conftest.err
21419 } && test -s conftest.$ac_objext; then
21422 cat >conftest.$ac_ext <<_ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 #include <stddef.h>
21432 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21439 rm -f conftest.$ac_objext
21440 if { (ac_try="$ac_compile"
21441 case "(($ac_try" in
21442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443 *) ac_try_echo=$ac_try;;
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446 (eval "$ac_compile") 2>conftest.er1
21448 grep -v '^ *+' conftest.er1 >conftest.err
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } && {
21453 test -z "$ac_c_werror_flag" ||
21454 test ! -s conftest.err
21455 } && test -s conftest.$ac_objext; then
21456 ac_hi=$ac_mid; break
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 ac_lo=`expr $ac_mid + 1`
21462 if test $ac_lo -le $ac_mid; then
21466 ac_mid=`expr 2 '*' $ac_mid + 1`
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
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_lo=$ac_mid; break
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21550 ac_hi=`expr '(' $ac_mid ')' - 1`
21551 if test $ac_mid -le $ac_hi; then
21555 ac_mid=`expr 2 '*' $ac_mid`
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
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571 # Binary search between lo and hi bounds.
21572 while test "x$ac_lo" != "x$ac_hi"; do
21573 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #include <stddef.h>
21584 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21591 rm -f conftest.$ac_objext
21592 if { (ac_try="$ac_compile"
21593 case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598 (eval "$ac_compile") 2>conftest.er1
21600 grep -v '^ *+' conftest.er1 >conftest.err
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } && {
21605 test -z "$ac_c_werror_flag" ||
21606 test ! -s conftest.err
21607 } && test -s conftest.$ac_objext; then
21610 echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21613 ac_lo=`expr '(' $ac_mid ')' + 1`
21616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21619 ?*) fits_in_uint=$ac_lo;;
21623 cat >conftest.$ac_ext <<_ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21629 #include <stddef.h>
21630 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21631 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21633 #include <stdlib.h>
21638 FILE *f = fopen ("conftest.val", "w");
21641 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21643 long int i = longval ();
21644 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21646 fprintf (f, "%ld\n", i);
21650 unsigned long int i = ulongval ();
21651 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21653 fprintf (f, "%lu\n", i);
21655 return ferror (f) || fclose (f) != 0;
21661 rm -f conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_link") 2>&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21672 { (case "(($ac_try" in
21673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674 *) ac_try_echo=$ac_try;;
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677 (eval "$ac_try") 2>&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }; then
21681 fits_in_uint=`cat conftest.val`
21683 echo "$as_me: program exited with status $ac_status" >&5
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ( exit $ac_status )
21690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21694 if test "$fits_in_uint" = 1; then
21695 cat >conftest.$ac_ext <<_ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21701 #include <stddef.h>
21703 extern unsigned long foo;
21713 rm -f conftest.$ac_objext
21714 if { (ac_try="$ac_compile"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_compile") 2>conftest.er1
21722 grep -v '^ *+' conftest.er1 >conftest.err
21724 cat conftest.err >&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); } && {
21727 test -z "$ac_c_werror_flag" ||
21728 test ! -s conftest.err
21729 } && test -s conftest.$ac_objext; then
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21740 if test -z "$result"; then
21741 if test "$fits_in_uint" = 1; then
21742 result="$res_hi$res_lo"U
21744 result="$res_hi$res_lo"UL
21747 result='~(size_t)0'
21750 { echo "$as_me:$LINENO: result: $result" >&5
21751 echo "${ECHO_T}$result" >&6; }
21752 if test "$result" != yes; then
21754 cat >>confdefs.h <<_ACEOF
21755 #define SIZE_MAX $result
21764 for ac_header in stdint.h
21766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 ac_res=`eval echo '${'$as_ac_Header'}'`
21774 { echo "$as_me:$LINENO: result: $ac_res" >&5
21775 echo "${ECHO_T}$ac_res" >&6; }
21777 # Is the header compilable?
21778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21780 cat >conftest.$ac_ext <<_ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21786 $ac_includes_default
21787 #include <$ac_header>
21789 rm -f conftest.$ac_objext
21790 if { (ac_try="$ac_compile"
21791 case "(($ac_try" in
21792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793 *) ac_try_echo=$ac_try;;
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796 (eval "$ac_compile") 2>conftest.er1
21798 grep -v '^ *+' conftest.er1 >conftest.err
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && {
21803 test -z "$ac_c_werror_flag" ||
21804 test ! -s conftest.err
21805 } && test -s conftest.$ac_objext; then
21806 ac_header_compiler=yes
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 ac_header_compiler=no
21814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21816 echo "${ECHO_T}$ac_header_compiler" >&6; }
21818 # Is the header present?
21819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21821 cat >conftest.$ac_ext <<_ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h. */
21827 #include <$ac_header>
21829 if { (ac_try="$ac_cpp conftest.$ac_ext"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } >/dev/null && {
21842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21845 ac_header_preproc=yes
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_header_preproc=no
21853 rm -f conftest.err conftest.$ac_ext
21854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21855 echo "${ECHO_T}$ac_header_preproc" >&6; }
21857 # So? What about this header?
21858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21864 ac_header_preproc=yes
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 eval "$as_ac_Header=\$ac_header_preproc"
21889 ac_res=`eval echo '${'$as_ac_Header'}'`
21890 { echo "$as_me:$LINENO: result: $ac_res" >&5
21891 echo "${ECHO_T}$ac_res" >&6; }
21894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21895 cat >>confdefs.h <<_ACEOF
21896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21910 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21911 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21912 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21913 echo $ECHO_N "(cached) $ECHO_C" >&6
21915 cat >conftest.$ac_ext <<_ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 $ac_includes_default
21922 typedef ptrdiff_t ac__type_new_;
21926 if ((ac__type_new_ *) 0)
21928 if (sizeof (ac__type_new_))
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_compile") 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest.$ac_objext; then
21951 ac_cv_type_ptrdiff_t=yes
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21956 ac_cv_type_ptrdiff_t=no
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21961 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21962 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21963 if test $ac_cv_type_ptrdiff_t = yes; then
21967 cat >>confdefs.h <<\_ACEOF
21968 #define ptrdiff_t long
21984 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21985 stdlib.h string.h unistd.h sys/param.h
21987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21994 ac_res=`eval echo '${'$as_ac_Header'}'`
21995 { echo "$as_me:$LINENO: result: $ac_res" >&5
21996 echo "${ECHO_T}$ac_res" >&6; }
21998 # Is the header compilable?
21999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22001 cat >conftest.$ac_ext <<_ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22007 $ac_includes_default
22008 #include <$ac_header>
22010 rm -f conftest.$ac_objext
22011 if { (ac_try="$ac_compile"
22012 case "(($ac_try" in
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014 *) ac_try_echo=$ac_try;;
22016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017 (eval "$ac_compile") 2>conftest.er1
22019 grep -v '^ *+' conftest.er1 >conftest.err
22021 cat conftest.err >&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } && {
22024 test -z "$ac_c_werror_flag" ||
22025 test ! -s conftest.err
22026 } && test -s conftest.$ac_objext; then
22027 ac_header_compiler=yes
22029 echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22032 ac_header_compiler=no
22035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22037 echo "${ECHO_T}$ac_header_compiler" >&6; }
22039 # Is the header present?
22040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22042 cat >conftest.$ac_ext <<_ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22048 #include <$ac_header>
22050 if { (ac_try="$ac_cpp conftest.$ac_ext"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22058 grep -v '^ *+' conftest.er1 >conftest.err
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } >/dev/null && {
22063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22066 ac_header_preproc=yes
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 ac_header_preproc=no
22074 rm -f conftest.err conftest.$ac_ext
22075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22076 echo "${ECHO_T}$ac_header_preproc" >&6; }
22078 # So? What about this header?
22079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22085 ac_header_preproc=yes
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22108 eval "$as_ac_Header=\$ac_header_preproc"
22110 ac_res=`eval echo '${'$as_ac_Header'}'`
22111 { echo "$as_me:$LINENO: result: $ac_res" >&5
22112 echo "${ECHO_T}$ac_res" >&6; }
22115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22116 cat >>confdefs.h <<_ACEOF
22117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22147 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22148 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22149 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22156 echo $ECHO_N "(cached) $ECHO_C" >&6
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22166 #define $ac_func innocuous_$ac_func
22168 /* System header to define __stub macros and hopefully few prototypes,
22169 which can conflict with char $ac_func (); below.
22170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22171 <limits.h> exists even on freestanding compilers. */
22174 # include <limits.h>
22176 # include <assert.h>
22181 /* Override any GCC internal prototype to avoid an error.
22182 Use char because int might match the return type of a GCC
22183 builtin and then its argument prototype would still apply. */
22188 /* The GNU C library defines this for functions which it implements
22189 to always fail with ENOSYS. Some functions are actually named
22190 something starting with __ and the normal name is an alias. */
22191 #if defined __stub_$ac_func || defined __stub___$ac_func
22198 return $ac_func ();
22203 rm -f conftest.$ac_objext conftest$ac_exeext
22204 if { (ac_try="$ac_link"
22205 case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_link") 2>conftest.er1
22212 grep -v '^ *+' conftest.er1 >conftest.err
22214 cat conftest.err >&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } && {
22217 test -z "$ac_c_werror_flag" ||
22218 test ! -s conftest.err
22219 } && test -s conftest$ac_exeext &&
22220 $as_test_x conftest$ac_exeext; then
22221 eval "$as_ac_var=yes"
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 eval "$as_ac_var=no"
22229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22230 conftest$ac_exeext conftest.$ac_ext
22232 ac_res=`eval echo '${'$as_ac_var'}'`
22233 { echo "$as_me:$LINENO: result: $ac_res" >&5
22234 echo "${ECHO_T}$ac_res" >&6; }
22235 if test `eval echo '${'$as_ac_var'}'` = yes; then
22236 cat >>confdefs.h <<_ACEOF
22237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22245 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22246 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22247 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22262 char *p = (char *) _snprintf;
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_compile") 2>conftest.er1
22278 grep -v '^ *+' conftest.er1 >conftest.err
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && {
22283 test -z "$ac_c_werror_flag" ||
22284 test ! -s conftest.err
22285 } && test -s conftest.$ac_objext; then
22286 ac_cv_have_decl__snprintf=yes
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 ac_cv_have_decl__snprintf=no
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22297 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22298 if test $ac_cv_have_decl__snprintf = yes; then
22304 cat >>confdefs.h <<_ACEOF
22305 #define HAVE_DECL__SNPRINTF $gt_value
22310 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22311 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22312 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22313 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 cat >conftest.$ac_ext <<_ACEOF
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h. */
22327 char *p = (char *) _snwprintf;
22334 rm -f conftest.$ac_objext
22335 if { (ac_try="$ac_compile"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_compile") 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } && {
22348 test -z "$ac_c_werror_flag" ||
22349 test ! -s conftest.err
22350 } && test -s conftest.$ac_objext; then
22351 ac_cv_have_decl__snwprintf=yes
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 ac_cv_have_decl__snwprintf=no
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22362 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22363 if test $ac_cv_have_decl__snwprintf = yes; then
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_DECL__SNWPRINTF $gt_value
22376 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22377 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22378 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 cat >conftest.$ac_ext <<_ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22392 #ifndef feof_unlocked
22393 char *p = (char *) feof_unlocked;
22400 rm -f conftest.$ac_objext
22401 if { (ac_try="$ac_compile"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_compile") 2>conftest.er1
22409 grep -v '^ *+' conftest.er1 >conftest.err
22411 cat conftest.err >&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } && {
22414 test -z "$ac_c_werror_flag" ||
22415 test ! -s conftest.err
22416 } && test -s conftest.$ac_objext; then
22417 ac_cv_have_decl_feof_unlocked=yes
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22422 ac_cv_have_decl_feof_unlocked=no
22425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22428 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22429 if test $ac_cv_have_decl_feof_unlocked = yes; then
22435 cat >>confdefs.h <<_ACEOF
22436 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22441 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22442 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22443 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 cat >conftest.$ac_ext <<_ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22457 #ifndef fgets_unlocked
22458 char *p = (char *) fgets_unlocked;
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_compile") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest.$ac_objext; then
22482 ac_cv_have_decl_fgets_unlocked=yes
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 ac_cv_have_decl_fgets_unlocked=no
22490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22493 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22494 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22500 cat >>confdefs.h <<_ACEOF
22501 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22506 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22507 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22508 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22511 cat >conftest.$ac_ext <<_ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h. */
22522 #ifndef getc_unlocked
22523 char *p = (char *) getc_unlocked;
22530 rm -f conftest.$ac_objext
22531 if { (ac_try="$ac_compile"
22532 case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537 (eval "$ac_compile") 2>conftest.er1
22539 grep -v '^ *+' conftest.er1 >conftest.err
22541 cat conftest.err >&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } && {
22544 test -z "$ac_c_werror_flag" ||
22545 test ! -s conftest.err
22546 } && test -s conftest.$ac_objext; then
22547 ac_cv_have_decl_getc_unlocked=yes
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22552 ac_cv_have_decl_getc_unlocked=no
22555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22557 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22558 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22559 if test $ac_cv_have_decl_getc_unlocked = yes; then
22565 cat >>confdefs.h <<_ACEOF
22566 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22571 case $gt_cv_func_printf_posix in
22572 *yes) HAVE_POSIX_PRINTF=1 ;;
22573 *) HAVE_POSIX_PRINTF=0 ;;
22576 if test "$ac_cv_func_asprintf" = yes; then
22582 if test "$ac_cv_func_snprintf" = yes; then
22588 if test "$ac_cv_func_wprintf" = yes; then
22600 am_save_CPPFLAGS="$CPPFLAGS"
22602 for element in $INCICONV; do
22604 for x in $CPPFLAGS; do
22606 acl_save_prefix="$prefix"
22607 prefix="$acl_final_prefix"
22608 acl_save_exec_prefix="$exec_prefix"
22609 exec_prefix="$acl_final_exec_prefix"
22611 exec_prefix="$acl_save_exec_prefix"
22612 prefix="$acl_save_prefix"
22614 if test "X$x" = "X$element"; then
22619 if test -z "$haveit"; then
22620 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22625 { echo "$as_me:$LINENO: checking for iconv" >&5
22626 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22627 if test "${am_cv_func_iconv+set}" = set; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 am_cv_func_iconv="no, consider installing GNU libiconv"
22633 cat >conftest.$ac_ext <<_ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22639 #include <stdlib.h>
22644 iconv_t cd = iconv_open("","");
22645 iconv(cd,NULL,NULL,NULL,NULL);
22651 rm -f conftest.$ac_objext conftest$ac_exeext
22652 if { (ac_try="$ac_link"
22653 case "(($ac_try" in
22654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655 *) ac_try_echo=$ac_try;;
22657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22658 (eval "$ac_link") 2>conftest.er1
22660 grep -v '^ *+' conftest.er1 >conftest.err
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); } && {
22665 test -z "$ac_c_werror_flag" ||
22666 test ! -s conftest.err
22667 } && test -s conftest$ac_exeext &&
22668 $as_test_x conftest$ac_exeext; then
22669 am_cv_func_iconv=yes
22671 echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22678 conftest$ac_exeext conftest.$ac_ext
22679 if test "$am_cv_func_iconv" != yes; then
22680 am_save_LIBS="$LIBS"
22681 LIBS="$LIBS $LIBICONV"
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22688 #include <stdlib.h>
22693 iconv_t cd = iconv_open("","");
22694 iconv(cd,NULL,NULL,NULL,NULL);
22700 rm -f conftest.$ac_objext conftest$ac_exeext
22701 if { (ac_try="$ac_link"
22702 case "(($ac_try" in
22703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704 *) ac_try_echo=$ac_try;;
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707 (eval "$ac_link") 2>conftest.er1
22709 grep -v '^ *+' conftest.er1 >conftest.err
22711 cat conftest.err >&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest$ac_exeext &&
22717 $as_test_x conftest$ac_exeext; then
22718 am_cv_lib_iconv=yes
22719 am_cv_func_iconv=yes
22721 echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22728 conftest$ac_exeext conftest.$ac_ext
22729 LIBS="$am_save_LIBS"
22733 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22734 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22735 if test "$am_cv_func_iconv" = yes; then
22737 cat >>confdefs.h <<\_ACEOF
22738 #define HAVE_ICONV 1
22742 if test "$am_cv_lib_iconv" = yes; then
22743 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22744 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22745 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22746 echo "${ECHO_T}$LIBICONV" >&6; }
22748 CPPFLAGS="$am_save_CPPFLAGS"
22755 if test "$am_cv_func_iconv" = yes; then
22756 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22757 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22758 if test "${am_cv_proto_iconv+set}" = set; then
22759 echo $ECHO_N "(cached) $ECHO_C" >&6
22762 cat >conftest.$ac_ext <<_ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22769 #include <stdlib.h>
22775 #if defined(__STDC__) || defined(__cplusplus)
22776 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22789 rm -f conftest.$ac_objext
22790 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
22806 am_cv_proto_iconv_arg1=""
22808 echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22811 am_cv_proto_iconv_arg1="const"
22814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22815 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);"
22818 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22819 { echo "$as_me:$LINENO: result: ${ac_t:-
22820 }$am_cv_proto_iconv" >&5
22821 echo "${ECHO_T}${ac_t:-
22822 }$am_cv_proto_iconv" >&6; }
22824 cat >>confdefs.h <<_ACEOF
22825 #define ICONV_CONST $am_cv_proto_iconv_arg1
22831 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22832 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22833 if test "${am_cv_langinfo_codeset+set}" = set; then
22834 echo $ECHO_N "(cached) $ECHO_C" >&6
22836 cat >conftest.$ac_ext <<_ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 #include <langinfo.h>
22846 char* cs = nl_langinfo(CODESET);
22851 rm -f conftest.$ac_objext conftest$ac_exeext
22852 if { (ac_try="$ac_link"
22853 case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_link") 2>conftest.er1
22860 grep -v '^ *+' conftest.er1 >conftest.err
22862 cat conftest.err >&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } && {
22865 test -z "$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 } && test -s conftest$ac_exeext &&
22868 $as_test_x conftest$ac_exeext; then
22869 am_cv_langinfo_codeset=yes
22871 echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22874 am_cv_langinfo_codeset=no
22877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22878 conftest$ac_exeext conftest.$ac_ext
22881 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22882 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22883 if test $am_cv_langinfo_codeset = yes; then
22885 cat >>confdefs.h <<\_ACEOF
22886 #define HAVE_LANGINFO_CODESET 1
22891 if test $ac_cv_header_locale_h = yes; then
22893 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22894 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22895 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 cat >conftest.$ac_ext <<_ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h. */
22904 #include <locale.h>
22913 rm -f conftest.$ac_objext conftest$ac_exeext
22914 if { (ac_try="$ac_link"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_link") 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest$ac_exeext &&
22930 $as_test_x conftest$ac_exeext; then
22931 gt_cv_val_LC_MESSAGES=yes
22933 echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22936 gt_cv_val_LC_MESSAGES=no
22939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22940 conftest$ac_exeext conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22943 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22944 if test $gt_cv_val_LC_MESSAGES = yes; then
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_LC_MESSAGES 1
22954 if test -n "$INTL_MACOSX_LIBS"; then
22955 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22958 for ac_prog in bison
22960 # Extract the first word of "$ac_prog", so it can be a program name with args.
22961 set dummy $ac_prog; ac_word=$2
22962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22964 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 if test -n "$INTLBISON"; then
22968 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22971 for as_dir in $PATH
22974 test -z "$as_dir" && as_dir=.
22975 for ac_exec_ext in '' $ac_executable_extensions; do
22976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22977 ac_cv_prog_INTLBISON="$ac_prog"
22978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22987 INTLBISON=$ac_cv_prog_INTLBISON
22988 if test -n "$INTLBISON"; then
22989 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22990 echo "${ECHO_T}$INTLBISON" >&6; }
22992 { echo "$as_me:$LINENO: result: no" >&5
22993 echo "${ECHO_T}no" >&6; }
22997 test -n "$INTLBISON" && break
23000 if test -z "$INTLBISON"; then
23003 { echo "$as_me:$LINENO: checking version of bison" >&5
23004 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23005 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23006 case $ac_prog_version in
23007 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23008 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23009 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23010 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23012 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23013 echo "${ECHO_T}$ac_prog_version" >&6; }
23015 if test $ac_verc_fail = yes; then
23034 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23035 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23036 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 gt_save_CPPFLAGS="$CPPFLAGS"
23040 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23041 gt_save_LIBS="$LIBS"
23042 LIBS="$LIBS -framework CoreFoundation"
23043 cat >conftest.$ac_ext <<_ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23049 #include <CFPreferences.h>
23053 CFPreferencesCopyAppValue(NULL, NULL)
23058 rm -f conftest.$ac_objext conftest$ac_exeext
23059 if { (ac_try="$ac_link"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_link") 2>conftest.er1
23067 grep -v '^ *+' conftest.er1 >conftest.err
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_c_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest$ac_exeext &&
23075 $as_test_x conftest$ac_exeext; then
23076 gt_cv_func_CFPreferencesCopyAppValue=yes
23078 echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23081 gt_cv_func_CFPreferencesCopyAppValue=no
23084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23085 conftest$ac_exeext conftest.$ac_ext
23086 CPPFLAGS="$gt_save_CPPFLAGS"
23087 LIBS="$gt_save_LIBS"
23089 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23090 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23091 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23093 cat >>confdefs.h <<\_ACEOF
23094 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23098 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23099 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23100 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23101 echo $ECHO_N "(cached) $ECHO_C" >&6
23103 gt_save_CPPFLAGS="$CPPFLAGS"
23104 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23105 gt_save_LIBS="$LIBS"
23106 LIBS="$LIBS -framework CoreFoundation"
23107 cat >conftest.$ac_ext <<_ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 #include <CFLocale.h>
23117 CFLocaleCopyCurrent();
23122 rm -f conftest.$ac_objext conftest$ac_exeext
23123 if { (ac_try="$ac_link"
23124 case "(($ac_try" in
23125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126 *) ac_try_echo=$ac_try;;
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_link") 2>conftest.er1
23131 grep -v '^ *+' conftest.er1 >conftest.err
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest$ac_exeext &&
23139 $as_test_x conftest$ac_exeext; then
23140 gt_cv_func_CFLocaleCopyCurrent=yes
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23145 gt_cv_func_CFLocaleCopyCurrent=no
23148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23149 conftest$ac_exeext conftest.$ac_ext
23150 CPPFLAGS="$gt_save_CPPFLAGS"
23151 LIBS="$gt_save_LIBS"
23153 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23154 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23155 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23157 cat >>confdefs.h <<\_ACEOF
23158 #define HAVE_CFLOCALECOPYCURRENT 1
23163 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23164 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23170 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23171 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23172 # Check whether --enable-nls was given.
23173 if test "${enable_nls+set}" = set; then
23174 enableval=$enable_nls; USE_NLS=$enableval
23179 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23180 echo "${ECHO_T}$USE_NLS" >&6; }
23185 BUILD_INCLUDED_LIBINTL=no
23186 USE_INCLUDED_LIBINTL=no
23192 if test "$USE_NLS" = "yes"; then
23193 gt_use_preinstalled_gnugettext=no
23195 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23196 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23198 # Check whether --with-included-gettext was given.
23199 if test "${with_included_gettext+set}" = set; then
23200 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23202 nls_cv_force_use_gnu_gettext=no
23205 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23206 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23208 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23209 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23216 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23217 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23218 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23219 echo $ECHO_N "(cached) $ECHO_C" >&6
23221 cat >conftest.$ac_ext <<_ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h. */
23227 #include <libintl.h>
23228 extern int _nl_msg_cat_cntr;
23229 extern int *_nl_domain_bindings;
23233 bindtextdomain ("", "");
23234 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23239 rm -f conftest.$ac_objext conftest$ac_exeext
23240 if { (ac_try="$ac_link"
23241 case "(($ac_try" in
23242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23243 *) ac_try_echo=$ac_try;;
23245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23246 (eval "$ac_link") 2>conftest.er1
23248 grep -v '^ *+' conftest.er1 >conftest.err
23250 cat conftest.err >&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); } && {
23253 test -z "$ac_c_werror_flag" ||
23254 test ! -s conftest.err
23255 } && test -s conftest$ac_exeext &&
23256 $as_test_x conftest$ac_exeext; then
23257 gt_cv_func_gnugettext1_libc=yes
23259 echo "$as_me: failed program was:" >&5
23260 sed 's/^/| /' conftest.$ac_ext >&5
23262 gt_cv_func_gnugettext1_libc=no
23265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23266 conftest$ac_exeext conftest.$ac_ext
23268 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23269 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23271 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23277 acl_save_prefix="$prefix"
23278 prefix="$acl_final_prefix"
23279 acl_save_exec_prefix="$exec_prefix"
23280 exec_prefix="$acl_final_exec_prefix"
23282 eval additional_includedir=\"$includedir\"
23283 eval additional_libdir=\"$libdir\"
23285 exec_prefix="$acl_save_exec_prefix"
23286 prefix="$acl_save_prefix"
23289 # Check whether --with-libintl-prefix was given.
23290 if test "${with_libintl_prefix+set}" = set; then
23291 withval=$with_libintl_prefix;
23292 if test "X$withval" = "Xno"; then
23295 if test "X$withval" = "X"; then
23297 acl_save_prefix="$prefix"
23298 prefix="$acl_final_prefix"
23299 acl_save_exec_prefix="$exec_prefix"
23300 exec_prefix="$acl_final_exec_prefix"
23302 eval additional_includedir=\"$includedir\"
23303 eval additional_libdir=\"$libdir\"
23305 exec_prefix="$acl_save_exec_prefix"
23306 prefix="$acl_save_prefix"
23309 additional_includedir="$withval/include"
23310 additional_libdir="$withval/lib"
23321 names_already_handled=
23322 names_next_round='intl '
23323 while test -n "$names_next_round"; do
23324 names_this_round="$names_next_round"
23326 for name in $names_this_round; do
23328 for n in $names_already_handled; do
23329 if test "$n" = "$name"; then
23330 already_handled=yes
23334 if test -z "$already_handled"; then
23335 names_already_handled="$names_already_handled $name"
23336 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23337 eval value=\"\$HAVE_LIB$uppername\"
23338 if test -n "$value"; then
23339 if test "$value" = yes; then
23340 eval value=\"\$LIB$uppername\"
23341 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23342 eval value=\"\$LTLIB$uppername\"
23343 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23352 if test $use_additional = yes; then
23353 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23354 found_dir="$additional_libdir"
23355 found_so="$additional_libdir/lib$name.$shlibext"
23356 if test -f "$additional_libdir/lib$name.la"; then
23357 found_la="$additional_libdir/lib$name.la"
23360 if test -f "$additional_libdir/lib$name.$libext"; then
23361 found_dir="$additional_libdir"
23362 found_a="$additional_libdir/lib$name.$libext"
23363 if test -f "$additional_libdir/lib$name.la"; then
23364 found_la="$additional_libdir/lib$name.la"
23369 if test "X$found_dir" = "X"; then
23370 for x in $LDFLAGS $LTLIBINTL; do
23372 acl_save_prefix="$prefix"
23373 prefix="$acl_final_prefix"
23374 acl_save_exec_prefix="$exec_prefix"
23375 exec_prefix="$acl_final_exec_prefix"
23377 exec_prefix="$acl_save_exec_prefix"
23378 prefix="$acl_save_prefix"
23382 dir=`echo "X$x" | sed -e 's/^X-L//'`
23383 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23385 found_so="$dir/lib$name.$shlibext"
23386 if test -f "$dir/lib$name.la"; then
23387 found_la="$dir/lib$name.la"
23390 if test -f "$dir/lib$name.$libext"; then
23392 found_a="$dir/lib$name.$libext"
23393 if test -f "$dir/lib$name.la"; then
23394 found_la="$dir/lib$name.la"
23400 if test "X$found_dir" != "X"; then
23405 if test "X$found_dir" != "X"; then
23406 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23407 if test "X$found_so" != "X"; then
23408 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23412 for x in $ltrpathdirs; do
23413 if test "X$x" = "X$found_dir"; then
23418 if test -z "$haveit"; then
23419 ltrpathdirs="$ltrpathdirs $found_dir"
23421 if test "$hardcode_direct" = yes; then
23422 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23424 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23425 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23427 for x in $rpathdirs; do
23428 if test "X$x" = "X$found_dir"; then
23433 if test -z "$haveit"; then
23434 rpathdirs="$rpathdirs $found_dir"
23438 for x in $LDFLAGS $LIBINTL; do
23440 acl_save_prefix="$prefix"
23441 prefix="$acl_final_prefix"
23442 acl_save_exec_prefix="$exec_prefix"
23443 exec_prefix="$acl_final_exec_prefix"
23445 exec_prefix="$acl_save_exec_prefix"
23446 prefix="$acl_save_prefix"
23448 if test "X$x" = "X-L$found_dir"; then
23453 if test -z "$haveit"; then
23454 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23456 if test "$hardcode_minus_L" != no; then
23457 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23459 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23465 if test "X$found_a" != "X"; then
23466 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23468 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23471 additional_includedir=
23472 case "$found_dir" in
23474 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23475 additional_includedir="$basedir/include"
23478 if test "X$additional_includedir" != "X"; then
23479 if test "X$additional_includedir" != "X/usr/include"; then
23481 if test "X$additional_includedir" = "X/usr/local/include"; then
23482 if test -n "$GCC"; then
23484 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23488 if test -z "$haveit"; then
23489 for x in $CPPFLAGS $INCINTL; do
23491 acl_save_prefix="$prefix"
23492 prefix="$acl_final_prefix"
23493 acl_save_exec_prefix="$exec_prefix"
23494 exec_prefix="$acl_final_exec_prefix"
23496 exec_prefix="$acl_save_exec_prefix"
23497 prefix="$acl_save_prefix"
23499 if test "X$x" = "X-I$additional_includedir"; then
23504 if test -z "$haveit"; then
23505 if test -d "$additional_includedir"; then
23506 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23512 if test -n "$found_la"; then
23513 save_libdir="$libdir"
23514 case "$found_la" in
23515 */* | *\\*) . "$found_la" ;;
23516 *) . "./$found_la" ;;
23518 libdir="$save_libdir"
23519 for dep in $dependency_libs; do
23522 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23523 if test "X$additional_libdir" != "X/usr/lib"; then
23525 if test "X$additional_libdir" = "X/usr/local/lib"; then
23526 if test -n "$GCC"; then
23528 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23532 if test -z "$haveit"; then
23534 for x in $LDFLAGS $LIBINTL; do
23536 acl_save_prefix="$prefix"
23537 prefix="$acl_final_prefix"
23538 acl_save_exec_prefix="$exec_prefix"
23539 exec_prefix="$acl_final_exec_prefix"
23541 exec_prefix="$acl_save_exec_prefix"
23542 prefix="$acl_save_prefix"
23544 if test "X$x" = "X-L$additional_libdir"; then
23549 if test -z "$haveit"; then
23550 if test -d "$additional_libdir"; then
23551 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23555 for x in $LDFLAGS $LTLIBINTL; do
23557 acl_save_prefix="$prefix"
23558 prefix="$acl_final_prefix"
23559 acl_save_exec_prefix="$exec_prefix"
23560 exec_prefix="$acl_final_exec_prefix"
23562 exec_prefix="$acl_save_exec_prefix"
23563 prefix="$acl_save_prefix"
23565 if test "X$x" = "X-L$additional_libdir"; then
23570 if test -z "$haveit"; then
23571 if test -d "$additional_libdir"; then
23572 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23579 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23580 if test "$enable_rpath" != no; then
23582 for x in $rpathdirs; do
23583 if test "X$x" = "X$dir"; then
23588 if test -z "$haveit"; then
23589 rpathdirs="$rpathdirs $dir"
23592 for x in $ltrpathdirs; do
23593 if test "X$x" = "X$dir"; then
23598 if test -z "$haveit"; then
23599 ltrpathdirs="$ltrpathdirs $dir"
23604 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23607 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23610 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23611 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23617 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23618 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23624 if test "X$rpathdirs" != "X"; then
23625 if test -n "$hardcode_libdir_separator"; then
23627 for found_dir in $rpathdirs; do
23628 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23630 acl_save_libdir="$libdir"
23632 eval flag=\"$hardcode_libdir_flag_spec\"
23633 libdir="$acl_save_libdir"
23634 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23636 for found_dir in $rpathdirs; do
23637 acl_save_libdir="$libdir"
23638 libdir="$found_dir"
23639 eval flag=\"$hardcode_libdir_flag_spec\"
23640 libdir="$acl_save_libdir"
23641 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23645 if test "X$ltrpathdirs" != "X"; then
23646 for found_dir in $ltrpathdirs; do
23647 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23651 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23652 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23653 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23654 echo $ECHO_N "(cached) $ECHO_C" >&6
23656 gt_save_CPPFLAGS="$CPPFLAGS"
23657 CPPFLAGS="$CPPFLAGS $INCINTL"
23658 gt_save_LIBS="$LIBS"
23659 LIBS="$LIBS $LIBINTL"
23660 cat >conftest.$ac_ext <<_ACEOF
23663 cat confdefs.h >>conftest.$ac_ext
23664 cat >>conftest.$ac_ext <<_ACEOF
23665 /* end confdefs.h. */
23666 #include <libintl.h>
23667 extern int _nl_msg_cat_cntr;
23672 const char *_nl_expand_alias (const char *);
23676 bindtextdomain ("", "");
23677 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23682 rm -f conftest.$ac_objext conftest$ac_exeext
23683 if { (ac_try="$ac_link"
23684 case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689 (eval "$ac_link") 2>conftest.er1
23691 grep -v '^ *+' conftest.er1 >conftest.err
23693 cat conftest.err >&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); } && {
23696 test -z "$ac_c_werror_flag" ||
23697 test ! -s conftest.err
23698 } && test -s conftest$ac_exeext &&
23699 $as_test_x conftest$ac_exeext; then
23700 gt_cv_func_gnugettext1_libintl=yes
23702 echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23705 gt_cv_func_gnugettext1_libintl=no
23708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23709 conftest$ac_exeext conftest.$ac_ext
23710 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23711 LIBS="$LIBS $LIBICONV"
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 #include <libintl.h>
23719 extern int _nl_msg_cat_cntr;
23724 const char *_nl_expand_alias (const char *);
23728 bindtextdomain ("", "");
23729 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (ac_try="$ac_link"
23736 case "(($ac_try" in
23737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23738 *) ac_try_echo=$ac_try;;
23740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23741 (eval "$ac_link") 2>conftest.er1
23743 grep -v '^ *+' conftest.er1 >conftest.err
23745 cat conftest.err >&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } && {
23748 test -z "$ac_c_werror_flag" ||
23749 test ! -s conftest.err
23750 } && test -s conftest$ac_exeext &&
23751 $as_test_x conftest$ac_exeext; then
23752 LIBINTL="$LIBINTL $LIBICONV"
23753 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23754 gt_cv_func_gnugettext1_libintl=yes
23757 echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23764 conftest$ac_exeext conftest.$ac_ext
23766 CPPFLAGS="$gt_save_CPPFLAGS"
23767 LIBS="$gt_save_LIBS"
23769 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23770 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23773 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23774 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23775 && test "$PACKAGE" != gettext-runtime \
23776 && test "$PACKAGE" != gettext-tools; }; then
23777 gt_use_preinstalled_gnugettext=yes
23785 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23786 nls_cv_use_gnu_gettext=yes
23790 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23791 BUILD_INCLUDED_LIBINTL=yes
23792 USE_INCLUDED_LIBINTL=yes
23793 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23794 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23795 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23799 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23800 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23805 if test -n "$INTL_MACOSX_LIBS"; then
23806 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23807 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23808 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23809 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23813 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23814 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23816 cat >>confdefs.h <<\_ACEOF
23817 #define ENABLE_NLS 1
23825 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23826 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23827 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23828 echo "${ECHO_T}$USE_NLS" >&6; }
23829 if test "$USE_NLS" = "yes"; then
23830 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23831 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23832 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23833 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23834 gt_source="external libintl"
23839 gt_source="included intl directory"
23841 { echo "$as_me:$LINENO: result: $gt_source" >&5
23842 echo "${ECHO_T}$gt_source" >&6; }
23845 if test "$USE_NLS" = "yes"; then
23847 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23848 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23849 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23850 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23851 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23852 echo "${ECHO_T}$LIBINTL" >&6; }
23854 for element in $INCINTL; do
23856 for x in $CPPFLAGS; do
23858 acl_save_prefix="$prefix"
23859 prefix="$acl_final_prefix"
23860 acl_save_exec_prefix="$exec_prefix"
23861 exec_prefix="$acl_final_exec_prefix"
23863 exec_prefix="$acl_save_exec_prefix"
23864 prefix="$acl_save_prefix"
23866 if test "X$x" = "X$element"; then
23871 if test -z "$haveit"; then
23872 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23879 cat >>confdefs.h <<\_ACEOF
23880 #define HAVE_GETTEXT 1
23884 cat >>confdefs.h <<\_ACEOF
23885 #define HAVE_DCGETTEXT 1
23894 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23895 BUILD_INCLUDED_LIBINTL=yes
23902 nls_cv_header_intl=
23903 nls_cv_header_libgt=
23915 if test "$USE_INCLUDED_LIBINTL" = yes; then
23916 INTLOBJS="\$(GETTOBJS)"
23920 INTL_LIBTOOL_SUFFIX_PREFIX=
23924 INTLLIBS="$LIBINTL"
23936 support_postgresql=no
23938 support_smartalloc=yes
23939 support_readline=yes
23943 support_wx_console=no
23944 support_tray_monitor=no
23949 support_static_tools=no
23950 support_static_fd=no
23951 support_static_sd=no
23952 support_static_dir=no
23953 support_static_cons=no
23955 build_client_only=no
23964 # Check whether --enable-gnome was given.
23965 if test "${enable_gnome+set}" = set; then
23966 enableval=$enable_gnome;
23967 if test x$enableval = xyes; then
23976 if test x$support_gnome = xyes; then
23977 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23979 if test $pkg = 0; then
23980 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23981 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23982 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23983 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23988 GNOME_DIR=src/gnome2-console
23989 gnome_version="Version 2.x"
23991 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23992 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23993 { (exit 1); exit 1; }; }
23998 # Check whether --enable-bat was given.
23999 if test "${enable_bat+set}" = set; then
24000 enableval=$enable_bat;
24001 if test x$enableval = xyes; then
24003 cat >>confdefs.h <<\_ACEOF
24015 if test x$support_bat = xyes; then
24016 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24018 if test $pkg = 0; then
24019 BAT_DIR=src/qt-console
24021 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24022 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24023 { (exit 1); exit 1; }; }
24033 if test x$support_bat = xyes; then
24034 { echo "$as_me:$LINENO: checking for qwt support" >&5
24035 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24037 # Check whether --with-qwt was given.
24038 if test "${with_qwt+set}" = set; then
24040 case "$with_qwt" in
24045 if test -f ${with_qwt}/include/qwt.h; then
24046 QWT_INC="${with_qwt}/include"
24047 QWT_LDFLAGS="-L${with_qwt}/lib"
24058 if test $no_qwt = no; then
24059 if test x$QWT_INC = x; then
24060 for root in /usr /usr/local; do
24061 for ver in qwt qwt5 qwt-qt4; do
24062 if test -f ${root}/include/${ver}/qwt.h; then
24063 QWT_INC="${root}/include/${ver}"
24064 if test -d ${root}/lib64/; then
24065 QWT_LDFLAGS="-L${root}/lib64"
24066 elif test -d ${root}/lib/64/; then
24067 QWT_LDFLAGS="-L${root}/64"
24069 QWT_LDFLAGS="-L${root}/lib"
24080 if test x$QWT_INC = x; then
24081 { echo "$as_me:$LINENO: result: no" >&5
24082 echo "${ECHO_T}no" >&6; }
24085 cat >>confdefs.h <<\_ACEOF
24089 { echo "$as_me:$LINENO: result: yes" >&5
24090 echo "${ECHO_T}yes" >&6; }
24100 # Check whether --enable-bwx-console was given.
24101 if test "${enable_bwx_console+set}" = set; then
24102 enableval=$enable_bwx_console;
24103 if test x$enableval = xyes; then
24104 support_wx_console=yes
24112 if test x$support_wx_console = xyes; then
24113 abc=`$WXCONFIG $WXFLAGS --cppflags`
24115 if test $pkg = 0; then
24116 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24117 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24118 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24122 WX_DIR=src/wx-console
24125 echo "wx-config program not found. bwx-console disabled."
24127 support_wx_console=no
24132 # Check whether --enable-tray-monitor was given.
24133 if test "${enable_tray_monitor+set}" = set; then
24134 enableval=$enable_tray_monitor;
24135 if test x$enableval = xyes; then
24136 support_tray_monitor=yes
24144 if test x$support_tray_monitor = xyes; then
24145 abc=`$PKGCONFIG --exists gtk+-2.0`
24147 if test $pkg = 0; then
24148 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24149 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24152 TRAY_MONITOR_DIR=src/tray-monitor
24153 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24155 if test $pkg = 0; then
24157 cat >>confdefs.h <<\_ACEOF
24158 #define HAVE_GTK_2_4 1
24166 # Check whether --enable-smartalloc was given.
24167 if test "${enable_smartalloc+set}" = set; then
24168 enableval=$enable_smartalloc;
24169 if test x$enableval = xno; then
24170 support_smartalloc=no
24177 if test x$support_smartalloc = xyes; then
24179 cat >>confdefs.h <<\_ACEOF
24180 #define SMARTALLOC 1
24185 # Check whether --enable-lockmgr was given.
24186 if test "${enable_lockmgr+set}" = set; then
24187 enableval=$enable_lockmgr;
24188 if test x$enableval = xyes; then
24189 support_lockmgr=yes
24196 if test x$support_lockmgr = xyes; then
24198 cat >>confdefs.h <<\_ACEOF
24199 #define _USE_LOCKMGR 1
24205 # Check whether --enable-static-tools was given.
24206 if test "${enable_static_tools+set}" = set; then
24207 enableval=$enable_static_tools;
24208 if test x$enableval = xyes; then
24209 support_static_tools=yes
24217 if test x$support_static_tools = xyes; then
24218 TTOOL_LDFLAGS="-static"
24222 # Check whether --enable-static-fd was given.
24223 if test "${enable_static_fd+set}" = set; then
24224 enableval=$enable_static_fd;
24225 if test x$enableval = xyes; then
24226 support_static_fd=yes
24234 if test x$support_static_fd = xyes; then
24235 STATIC_FD="static-bacula-fd"
24239 # Check whether --enable-static-sd was given.
24240 if test "${enable_static_sd+set}" = set; then
24241 enableval=$enable_static_sd;
24242 if test x$enableval = xyes; then
24243 support_static_sd=yes
24251 if test x$support_static_sd = xyes; then
24252 STATIC_SD="static-bacula-sd"
24256 # Check whether --enable-static-dir was given.
24257 if test "${enable_static_dir+set}" = set; then
24258 enableval=$enable_static_dir;
24259 if test x$enableval = xyes; then
24260 support_static_dir=yes
24268 if test x$support_static_dir = xyes; then
24269 STATIC_DIR="static-bacula-dir"
24273 # Check whether --enable-static-cons was given.
24274 if test "${enable_static_cons+set}" = set; then
24275 enableval=$enable_static_cons;
24276 if test x$enableval = xyes; then
24277 support_static_cons=yes
24287 if test x$support_static_cons = xyes; then
24288 STATIC_CONS="static-bconsole"
24289 STATIC_GNOME_CONS="static-bgnome-console"
24290 STATIC_WX_CONS="static-bwx-console"
24296 # Check whether --enable-client-only was given.
24297 if test "${enable_client_only+set}" = set; then
24298 enableval=$enable_client_only;
24299 if test x$enableval = xyes; then
24300 build_client_only=yes
24308 if test x$build_client_only = xno; then
24315 # Check whether --enable-build-dird was given.
24316 if test "${enable_build_dird+set}" = set; then
24317 enableval=$enable_build_dird;
24318 if test x$enableval = xno; then
24325 if test x$build_dird = xyes; then
24326 DIRD_DIR="src/dird"
24327 DIR_TOOLS="DIRTOOLS"
24330 DIR_TOOLS="NODIRTOOLS"
24335 # Check whether --enable-build-stored was given.
24336 if test "${enable_build_stored+set}" = set; then
24337 enableval=$enable_build_stored;
24338 if test x$enableval = xno; then
24345 if test x$build_stored = xyes; then
24346 STORED_DIR="src/stored"
24352 # Check whether --enable-conio was given.
24353 if test "${enable_conio+set}" = set; then
24354 enableval=$enable_conio;
24355 if test x$enableval = xno; then
24365 # Check whether --enable-ipv6 was given.
24366 if test "${enable_ipv6+set}" = set; then
24367 enableval=$enable_ipv6;
24368 if test x$enableval = xno; then
24376 if test x$support_ipv6 = xyes; then
24377 cat >conftest.$ac_ext <<_ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h. */
24383 #include <sys/types.h>
24384 #include <sys/socket.h>
24385 #include <netinet/in.h>
24389 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24394 rm -f conftest.$ac_objext conftest$ac_exeext
24395 if { (ac_try="$ac_link"
24396 case "(($ac_try" in
24397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24398 *) ac_try_echo=$ac_try;;
24400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24401 (eval "$ac_link") 2>conftest.er1
24403 grep -v '^ *+' conftest.er1 >conftest.err
24405 cat conftest.err >&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } && {
24408 test -z "$ac_c_werror_flag" ||
24409 test ! -s conftest.err
24410 } && test -s conftest$ac_exeext &&
24411 $as_test_x conftest$ac_exeext; then
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24421 conftest$ac_exeext conftest.$ac_ext
24424 if test x$support_ipv6 = xyes; then
24426 cat >>confdefs.h <<\_ACEOF
24427 #define HAVE_IPV6 1
24433 if test x$support_conio = xyes; then
24434 if test "${ac_cv_header_termcap_h+set}" = set; then
24435 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24436 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24437 if test "${ac_cv_header_termcap_h+set}" = set; then
24438 echo $ECHO_N "(cached) $ECHO_C" >&6
24440 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24441 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24443 # Is the header compilable?
24444 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24445 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24446 cat >conftest.$ac_ext <<_ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h. */
24452 $ac_includes_default
24453 #include <termcap.h>
24455 rm -f conftest.$ac_objext
24456 if { (ac_try="$ac_compile"
24457 case "(($ac_try" in
24458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459 *) ac_try_echo=$ac_try;;
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462 (eval "$ac_compile") 2>conftest.er1
24464 grep -v '^ *+' conftest.er1 >conftest.err
24466 cat conftest.err >&5
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } && {
24469 test -z "$ac_c_werror_flag" ||
24470 test ! -s conftest.err
24471 } && test -s conftest.$ac_objext; then
24472 ac_header_compiler=yes
24474 echo "$as_me: failed program was:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24477 ac_header_compiler=no
24480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24482 echo "${ECHO_T}$ac_header_compiler" >&6; }
24484 # Is the header present?
24485 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24486 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24487 cat >conftest.$ac_ext <<_ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h. */
24493 #include <termcap.h>
24495 if { (ac_try="$ac_cpp conftest.$ac_ext"
24496 case "(($ac_try" in
24497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24498 *) ac_try_echo=$ac_try;;
24500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24503 grep -v '^ *+' conftest.er1 >conftest.err
24505 cat conftest.err >&5
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); } >/dev/null && {
24508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24509 test ! -s conftest.err
24511 ac_header_preproc=yes
24513 echo "$as_me: failed program was:" >&5
24514 sed 's/^/| /' conftest.$ac_ext >&5
24516 ac_header_preproc=no
24519 rm -f conftest.err conftest.$ac_ext
24520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24521 echo "${ECHO_T}$ac_header_preproc" >&6; }
24523 # So? What about this header?
24524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24526 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24527 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24528 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24529 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24530 ac_header_preproc=yes
24533 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24534 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24535 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24536 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24537 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24538 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24539 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24540 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24541 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24542 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24543 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24544 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24548 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24549 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24550 if test "${ac_cv_header_termcap_h+set}" = set; then
24551 echo $ECHO_N "(cached) $ECHO_C" >&6
24553 ac_cv_header_termcap_h=$ac_header_preproc
24555 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24556 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24559 if test $ac_cv_header_termcap_h = yes; then
24560 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24561 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24562 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24563 echo $ECHO_N "(cached) $ECHO_C" >&6
24565 ac_check_lib_save_LIBS=$LIBS
24566 LIBS="-ltermcap $LIBS"
24567 cat >conftest.$ac_ext <<_ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h. */
24574 /* Override any GCC internal prototype to avoid an error.
24575 Use char because int might match the return type of a GCC
24576 builtin and then its argument prototype would still apply. */
24589 rm -f conftest.$ac_objext conftest$ac_exeext
24590 if { (ac_try="$ac_link"
24591 case "(($ac_try" in
24592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593 *) ac_try_echo=$ac_try;;
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596 (eval "$ac_link") 2>conftest.er1
24598 grep -v '^ *+' conftest.er1 >conftest.err
24600 cat conftest.err >&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); } && {
24603 test -z "$ac_c_werror_flag" ||
24604 test ! -s conftest.err
24605 } && test -s conftest$ac_exeext &&
24606 $as_test_x conftest$ac_exeext; then
24607 ac_cv_lib_termcap_tgetent=yes
24609 echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24612 ac_cv_lib_termcap_tgetent=no
24615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24616 conftest$ac_exeext conftest.$ac_ext
24617 LIBS=$ac_check_lib_save_LIBS
24619 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24620 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24621 if test $ac_cv_lib_termcap_tgetent = yes; then
24622 CONS_LIBS="-ltermcap"
24626 support_readline=no
24628 cat >>confdefs.h <<\_ACEOF
24629 #define HAVE_CONIO 1
24634 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24635 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24636 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24639 ac_check_lib_save_LIBS=$LIBS
24640 LIBS="-lncurses $LIBS"
24641 cat >conftest.$ac_ext <<_ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h. */
24648 /* Override any GCC internal prototype to avoid an error.
24649 Use char because int might match the return type of a GCC
24650 builtin and then its argument prototype would still apply. */
24663 rm -f conftest.$ac_objext conftest$ac_exeext
24664 if { (ac_try="$ac_link"
24665 case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_link") 2>conftest.er1
24672 grep -v '^ *+' conftest.er1 >conftest.err
24674 cat conftest.err >&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest$ac_exeext &&
24680 $as_test_x conftest$ac_exeext; then
24681 ac_cv_lib_ncurses_tgetent=yes
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24686 ac_cv_lib_ncurses_tgetent=no
24689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24690 conftest$ac_exeext conftest.$ac_ext
24691 LIBS=$ac_check_lib_save_LIBS
24693 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24694 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24695 if test $ac_cv_lib_ncurses_tgetent = yes; then
24696 CONS_LIBS="-lncurses"
24700 support_readline=no
24702 cat >>confdefs.h <<\_ACEOF
24703 #define HAVE_CONIO 1
24716 for ac_header in curses.h
24718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24725 ac_res=`eval echo '${'$as_ac_Header'}'`
24726 { echo "$as_me:$LINENO: result: $ac_res" >&5
24727 echo "${ECHO_T}$ac_res" >&6; }
24729 # Is the header compilable?
24730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24732 cat >conftest.$ac_ext <<_ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24738 $ac_includes_default
24739 #include <$ac_header>
24741 rm -f conftest.$ac_objext
24742 if { (ac_try="$ac_compile"
24743 case "(($ac_try" in
24744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745 *) ac_try_echo=$ac_try;;
24747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24748 (eval "$ac_compile") 2>conftest.er1
24750 grep -v '^ *+' conftest.er1 >conftest.err
24752 cat conftest.err >&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } && {
24755 test -z "$ac_c_werror_flag" ||
24756 test ! -s conftest.err
24757 } && test -s conftest.$ac_objext; then
24758 ac_header_compiler=yes
24760 echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24763 ac_header_compiler=no
24766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24768 echo "${ECHO_T}$ac_header_compiler" >&6; }
24770 # Is the header present?
24771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24773 cat >conftest.$ac_ext <<_ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24779 #include <$ac_header>
24781 if { (ac_try="$ac_cpp conftest.$ac_ext"
24782 case "(($ac_try" in
24783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784 *) ac_try_echo=$ac_try;;
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24789 grep -v '^ *+' conftest.er1 >conftest.err
24791 cat conftest.err >&5
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); } >/dev/null && {
24794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24795 test ! -s conftest.err
24797 ac_header_preproc=yes
24799 echo "$as_me: failed program was:" >&5
24800 sed 's/^/| /' conftest.$ac_ext >&5
24802 ac_header_preproc=no
24805 rm -f conftest.err conftest.$ac_ext
24806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24807 echo "${ECHO_T}$ac_header_preproc" >&6; }
24809 # So? What about this header?
24810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24816 ac_header_preproc=yes
24819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 eval "$as_ac_Header=\$ac_header_preproc"
24841 ac_res=`eval echo '${'$as_ac_Header'}'`
24842 { echo "$as_me:$LINENO: result: $ac_res" >&5
24843 echo "${ECHO_T}$ac_res" >&6; }
24846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24847 cat >>confdefs.h <<_ACEOF
24848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24855 { echo "$as_me:$LINENO: checking for term.h" >&5
24856 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24857 if test "${ac_cv_header_term_h+set}" = set; then
24858 echo $ECHO_N "(cached) $ECHO_C" >&6
24860 cat >conftest.$ac_ext <<_ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h. */
24867 #include <curses.h>
24873 rm -f conftest.$ac_objext
24874 if { (ac_try="$ac_compile"
24875 case "(($ac_try" in
24876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877 *) ac_try_echo=$ac_try;;
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880 (eval "$ac_compile") 2>conftest.er1
24882 grep -v '^ *+' conftest.er1 >conftest.err
24884 cat conftest.err >&5
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } && {
24887 test -z "$ac_c_werror_flag" ||
24888 test ! -s conftest.err
24889 } && test -s conftest.$ac_objext; then
24890 ac_cv_header_term_h=yes
24892 echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24895 ac_cv_header_term_h=no
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24900 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24901 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24902 if test $ac_cv_header_term_h = yes; then
24903 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24904 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24905 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24908 ac_check_lib_save_LIBS=$LIBS
24909 LIBS="-lcurses $LIBS"
24910 cat >conftest.$ac_ext <<_ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h. */
24917 /* Override any GCC internal prototype to avoid an error.
24918 Use char because int might match the return type of a GCC
24919 builtin and then its argument prototype would still apply. */
24932 rm -f conftest.$ac_objext conftest$ac_exeext
24933 if { (ac_try="$ac_link"
24934 case "(($ac_try" in
24935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24936 *) ac_try_echo=$ac_try;;
24938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24939 (eval "$ac_link") 2>conftest.er1
24941 grep -v '^ *+' conftest.er1 >conftest.err
24943 cat conftest.err >&5
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); } && {
24946 test -z "$ac_c_werror_flag" ||
24947 test ! -s conftest.err
24948 } && test -s conftest$ac_exeext &&
24949 $as_test_x conftest$ac_exeext; then
24950 ac_cv_lib_curses_tgetent=yes
24952 echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24955 ac_cv_lib_curses_tgetent=no
24958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24959 conftest$ac_exeext conftest.$ac_ext
24960 LIBS=$ac_check_lib_save_LIBS
24962 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24963 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24964 if test $ac_cv_lib_curses_tgetent = yes; then
24965 CONS_LIBS="-lcurses"
24969 support_readline=no
24971 cat >>confdefs.h <<\_ACEOF
24972 #define HAVE_CONIO 1
24980 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24991 # Check whether --enable-readline was given.
24992 if test "${enable_readline+set}" = set; then
24993 enableval=$enable_readline;
24994 if test x$enableval = xno; then
24995 support_readline=no
25004 if test x$support_readline = xyes; then
25006 # Check whether --with-readline was given.
25007 if test "${with_readline+set}" = set; then
25008 withval=$with_readline;
25009 case "$with_readline" in
25014 if test -f ${with_readline}/readline.h; then
25015 CONS_INC="-I${with_readline}"
25016 CONS_LDFLAGS="-L$with_readline"
25017 elif test -f ${with_readline}/include/readline/readline.h; then
25018 CONS_INC="-I${with_readline}/include/readline"
25019 CONS_LDFLAGS="-L${with_readline}/lib"
25020 with_readline="${with_readline}/include/readline"
25022 with_readline="/usr/include/readline"
25025 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25027 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25028 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25030 echo $ECHO_N "(cached) $ECHO_C" >&6
25032 ac_res=`eval echo '${'$as_ac_Header'}'`
25033 { echo "$as_me:$LINENO: result: $ac_res" >&5
25034 echo "${ECHO_T}$ac_res" >&6; }
25036 # Is the header compilable?
25037 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25038 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25039 cat >conftest.$ac_ext <<_ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h. */
25045 $ac_includes_default
25046 #include <${with_readline}/readline.h>
25048 rm -f conftest.$ac_objext
25049 if { (ac_try="$ac_compile"
25050 case "(($ac_try" in
25051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25052 *) ac_try_echo=$ac_try;;
25054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25055 (eval "$ac_compile") 2>conftest.er1
25057 grep -v '^ *+' conftest.er1 >conftest.err
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } && {
25062 test -z "$ac_c_werror_flag" ||
25063 test ! -s conftest.err
25064 } && test -s conftest.$ac_objext; then
25065 ac_header_compiler=yes
25067 echo "$as_me: failed program was:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25070 ac_header_compiler=no
25073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25075 echo "${ECHO_T}$ac_header_compiler" >&6; }
25077 # Is the header present?
25078 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25079 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25080 cat >conftest.$ac_ext <<_ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25086 #include <${with_readline}/readline.h>
25088 if { (ac_try="$ac_cpp conftest.$ac_ext"
25089 case "(($ac_try" in
25090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091 *) ac_try_echo=$ac_try;;
25093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25096 grep -v '^ *+' conftest.er1 >conftest.err
25098 cat conftest.err >&5
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } >/dev/null && {
25101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25102 test ! -s conftest.err
25104 ac_header_preproc=yes
25106 echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25109 ac_header_preproc=no
25112 rm -f conftest.err conftest.$ac_ext
25113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25114 echo "${ECHO_T}$ac_header_preproc" >&6; }
25116 # So? What about this header?
25117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25119 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25120 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25121 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25122 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25123 ac_header_preproc=yes
25126 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25127 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25128 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25129 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25130 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25131 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25132 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25133 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25134 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25135 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25136 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25137 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25141 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25142 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25144 echo $ECHO_N "(cached) $ECHO_C" >&6
25146 eval "$as_ac_Header=\$ac_header_preproc"
25148 ac_res=`eval echo '${'$as_ac_Header'}'`
25149 { echo "$as_me:$LINENO: result: $ac_res" >&5
25150 echo "${ECHO_T}$ac_res" >&6; }
25153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25156 cat >>confdefs.h <<\_ACEOF
25157 #define HAVE_READLINE 1
25160 CONS_LIBS="-lreadline -lhistory -ltermcap"
25166 echo "readline.h not found. readline turned off ..."
25178 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25179 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25180 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25181 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25182 echo $ECHO_N "(cached) $ECHO_C" >&6
25184 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25185 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25187 # Is the header compilable?
25188 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25189 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25190 cat >conftest.$ac_ext <<_ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25196 $ac_includes_default
25197 #include </usr/include/readline/readline.h>
25199 rm -f conftest.$ac_objext
25200 if { (ac_try="$ac_compile"
25201 case "(($ac_try" in
25202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203 *) ac_try_echo=$ac_try;;
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206 (eval "$ac_compile") 2>conftest.er1
25208 grep -v '^ *+' conftest.er1 >conftest.err
25210 cat conftest.err >&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } && {
25213 test -z "$ac_c_werror_flag" ||
25214 test ! -s conftest.err
25215 } && test -s conftest.$ac_objext; then
25216 ac_header_compiler=yes
25218 echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25221 ac_header_compiler=no
25224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25226 echo "${ECHO_T}$ac_header_compiler" >&6; }
25228 # Is the header present?
25229 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25230 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25231 cat >conftest.$ac_ext <<_ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h. */
25237 #include </usr/include/readline/readline.h>
25239 if { (ac_try="$ac_cpp conftest.$ac_ext"
25240 case "(($ac_try" in
25241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25242 *) ac_try_echo=$ac_try;;
25244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25247 grep -v '^ *+' conftest.er1 >conftest.err
25249 cat conftest.err >&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } >/dev/null && {
25252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25253 test ! -s conftest.err
25255 ac_header_preproc=yes
25257 echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25260 ac_header_preproc=no
25263 rm -f conftest.err conftest.$ac_ext
25264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25265 echo "${ECHO_T}$ac_header_preproc" >&6; }
25267 # So? What about this header?
25268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25270 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25271 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25272 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25273 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25274 ac_header_preproc=yes
25277 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25278 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25279 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25280 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25281 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25282 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25283 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25284 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25285 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25286 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25287 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25288 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25292 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25293 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25294 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25295 echo $ECHO_N "(cached) $ECHO_C" >&6
25297 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25299 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25300 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25303 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25306 cat >>confdefs.h <<\_ACEOF
25307 #define HAVE_READLINE 1
25311 CONS_INC="-I/usr/include/readline"
25312 CONS_LIBS="-lreadline -ltermcap"
25316 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25318 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25319 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25323 ac_res=`eval echo '${'$as_ac_Header'}'`
25324 { echo "$as_me:$LINENO: result: $ac_res" >&5
25325 echo "${ECHO_T}$ac_res" >&6; }
25327 # Is the header compilable?
25328 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25329 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25330 cat >conftest.$ac_ext <<_ACEOF
25333 cat confdefs.h >>conftest.$ac_ext
25334 cat >>conftest.$ac_ext <<_ACEOF
25335 /* end confdefs.h. */
25336 $ac_includes_default
25337 #include <${TOP_DIR}/depkgs/readline/readline.h>
25339 rm -f conftest.$ac_objext
25340 if { (ac_try="$ac_compile"
25341 case "(($ac_try" in
25342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25343 *) ac_try_echo=$ac_try;;
25345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25346 (eval "$ac_compile") 2>conftest.er1
25348 grep -v '^ *+' conftest.er1 >conftest.err
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } && {
25353 test -z "$ac_c_werror_flag" ||
25354 test ! -s conftest.err
25355 } && test -s conftest.$ac_objext; then
25356 ac_header_compiler=yes
25358 echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25361 ac_header_compiler=no
25364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25366 echo "${ECHO_T}$ac_header_compiler" >&6; }
25368 # Is the header present?
25369 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25370 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25371 cat >conftest.$ac_ext <<_ACEOF
25374 cat confdefs.h >>conftest.$ac_ext
25375 cat >>conftest.$ac_ext <<_ACEOF
25376 /* end confdefs.h. */
25377 #include <${TOP_DIR}/depkgs/readline/readline.h>
25379 if { (ac_try="$ac_cpp conftest.$ac_ext"
25380 case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25387 grep -v '^ *+' conftest.er1 >conftest.err
25389 cat conftest.err >&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } >/dev/null && {
25392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25393 test ! -s conftest.err
25395 ac_header_preproc=yes
25397 echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25400 ac_header_preproc=no
25403 rm -f conftest.err conftest.$ac_ext
25404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25405 echo "${ECHO_T}$ac_header_preproc" >&6; }
25407 # So? What about this header?
25408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25410 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25411 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25412 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25413 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25414 ac_header_preproc=yes
25417 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25418 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25419 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25420 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25421 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25422 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25423 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25424 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25425 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25426 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25427 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25428 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25432 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25433 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25437 eval "$as_ac_Header=\$ac_header_preproc"
25439 ac_res=`eval echo '${'$as_ac_Header'}'`
25440 { echo "$as_me:$LINENO: result: $ac_res" >&5
25441 echo "${ECHO_T}$ac_res" >&6; }
25444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25447 cat >>confdefs.h <<\_ACEOF
25448 #define HAVE_READLINE 1
25452 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25453 CONS_LIBS="-lreadline -lhistory -ltermcap"
25454 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25455 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25460 echo "readline.h not found. readline turned off ..."
25487 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25488 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25489 if test "${ac_cv_header_stat_broken+set}" = set; then
25490 echo $ECHO_N "(cached) $ECHO_C" >&6
25492 cat >conftest.$ac_ext <<_ACEOF
25495 cat confdefs.h >>conftest.$ac_ext
25496 cat >>conftest.$ac_ext <<_ACEOF
25497 /* end confdefs.h. */
25498 #include <sys/types.h>
25499 #include <sys/stat.h>
25501 #if defined S_ISBLK && defined S_IFDIR
25502 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25505 #if defined S_ISBLK && defined S_IFCHR
25506 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25509 #if defined S_ISLNK && defined S_IFREG
25510 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25513 #if defined S_ISSOCK && defined S_IFREG
25514 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25518 rm -f conftest.$ac_objext
25519 if { (ac_try="$ac_compile"
25520 case "(($ac_try" in
25521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25522 *) ac_try_echo=$ac_try;;
25524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25525 (eval "$ac_compile") 2>conftest.er1
25527 grep -v '^ *+' conftest.er1 >conftest.err
25529 cat conftest.err >&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } && {
25532 test -z "$ac_c_werror_flag" ||
25533 test ! -s conftest.err
25534 } && test -s conftest.$ac_objext; then
25535 ac_cv_header_stat_broken=no
25537 echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 ac_cv_header_stat_broken=yes
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25545 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25546 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25547 if test $ac_cv_header_stat_broken = yes; then
25549 cat >>confdefs.h <<\_ACEOF
25550 #define STAT_MACROS_BROKEN 1
25560 ac_header_dirent=no
25561 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25562 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25563 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25564 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25566 echo $ECHO_N "(cached) $ECHO_C" >&6
25568 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 #include <sys/types.h>
25586 rm -f conftest.$ac_objext
25587 if { (ac_try="$ac_compile"
25588 case "(($ac_try" in
25589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590 *) ac_try_echo=$ac_try;;
25592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25593 (eval "$ac_compile") 2>conftest.er1
25595 grep -v '^ *+' conftest.er1 >conftest.err
25597 cat conftest.err >&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } && {
25600 test -z "$ac_c_werror_flag" ||
25601 test ! -s conftest.err
25602 } && test -s conftest.$ac_objext; then
25603 eval "$as_ac_Header=yes"
25605 echo "$as_me: failed program was:" >&5
25606 sed 's/^/| /' conftest.$ac_ext >&5
25608 eval "$as_ac_Header=no"
25611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25613 ac_res=`eval echo '${'$as_ac_Header'}'`
25614 { echo "$as_me:$LINENO: result: $ac_res" >&5
25615 echo "${ECHO_T}$ac_res" >&6; }
25616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25617 cat >>confdefs.h <<_ACEOF
25618 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25621 ac_header_dirent=$ac_hdr; break
25625 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25626 if test $ac_header_dirent = dirent.h; then
25627 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25628 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25629 if test "${ac_cv_search_opendir+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25632 ac_func_search_save_LIBS=$LIBS
25633 cat >conftest.$ac_ext <<_ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h. */
25640 /* Override any GCC internal prototype to avoid an error.
25641 Use char because int might match the return type of a GCC
25642 builtin and then its argument prototype would still apply. */
25655 for ac_lib in '' dir; do
25656 if test -z "$ac_lib"; then
25657 ac_res="none required"
25660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25662 rm -f conftest.$ac_objext conftest$ac_exeext
25663 if { (ac_try="$ac_link"
25664 case "(($ac_try" in
25665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666 *) ac_try_echo=$ac_try;;
25668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25669 (eval "$ac_link") 2>conftest.er1
25671 grep -v '^ *+' conftest.er1 >conftest.err
25673 cat conftest.err >&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } && {
25676 test -z "$ac_c_werror_flag" ||
25677 test ! -s conftest.err
25678 } && test -s conftest$ac_exeext &&
25679 $as_test_x conftest$ac_exeext; then
25680 ac_cv_search_opendir=$ac_res
25682 echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25690 if test "${ac_cv_search_opendir+set}" = set; then
25694 if test "${ac_cv_search_opendir+set}" = set; then
25697 ac_cv_search_opendir=no
25699 rm conftest.$ac_ext
25700 LIBS=$ac_func_search_save_LIBS
25702 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25703 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25704 ac_res=$ac_cv_search_opendir
25705 if test "$ac_res" != no; then
25706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25711 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25713 if test "${ac_cv_search_opendir+set}" = set; then
25714 echo $ECHO_N "(cached) $ECHO_C" >&6
25716 ac_func_search_save_LIBS=$LIBS
25717 cat >conftest.$ac_ext <<_ACEOF
25720 cat confdefs.h >>conftest.$ac_ext
25721 cat >>conftest.$ac_ext <<_ACEOF
25722 /* end confdefs.h. */
25724 /* Override any GCC internal prototype to avoid an error.
25725 Use char because int might match the return type of a GCC
25726 builtin and then its argument prototype would still apply. */
25739 for ac_lib in '' x; do
25740 if test -z "$ac_lib"; then
25741 ac_res="none required"
25744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25746 rm -f conftest.$ac_objext conftest$ac_exeext
25747 if { (ac_try="$ac_link"
25748 case "(($ac_try" in
25749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750 *) ac_try_echo=$ac_try;;
25752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25753 (eval "$ac_link") 2>conftest.er1
25755 grep -v '^ *+' conftest.er1 >conftest.err
25757 cat conftest.err >&5
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } && {
25760 test -z "$ac_c_werror_flag" ||
25761 test ! -s conftest.err
25762 } && test -s conftest$ac_exeext &&
25763 $as_test_x conftest$ac_exeext; then
25764 ac_cv_search_opendir=$ac_res
25766 echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25774 if test "${ac_cv_search_opendir+set}" = set; then
25778 if test "${ac_cv_search_opendir+set}" = set; then
25781 ac_cv_search_opendir=no
25783 rm conftest.$ac_ext
25784 LIBS=$ac_func_search_save_LIBS
25786 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25787 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25788 ac_res=$ac_cv_search_opendir
25789 if test "$ac_res" != no; then
25790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25803 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25811 cat >conftest.$ac_ext <<_ACEOF
25814 cat confdefs.h >>conftest.$ac_ext
25815 cat >>conftest.$ac_ext <<_ACEOF
25816 /* end confdefs.h. */
25817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25819 #define $ac_func innocuous_$ac_func
25821 /* System header to define __stub macros and hopefully few prototypes,
25822 which can conflict with char $ac_func (); below.
25823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25824 <limits.h> exists even on freestanding compilers. */
25827 # include <limits.h>
25829 # include <assert.h>
25834 /* Override any GCC internal prototype to avoid an error.
25835 Use char because int might match the return type of a GCC
25836 builtin and then its argument prototype would still apply. */
25841 /* The GNU C library defines this for functions which it implements
25842 to always fail with ENOSYS. Some functions are actually named
25843 something starting with __ and the normal name is an alias. */
25844 #if defined __stub_$ac_func || defined __stub___$ac_func
25851 return $ac_func ();
25856 rm -f conftest.$ac_objext conftest$ac_exeext
25857 if { (ac_try="$ac_link"
25858 case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_link") 2>conftest.er1
25865 grep -v '^ *+' conftest.er1 >conftest.err
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } && {
25870 test -z "$ac_c_werror_flag" ||
25871 test ! -s conftest.err
25872 } && test -s conftest$ac_exeext &&
25873 $as_test_x conftest$ac_exeext; then
25874 eval "$as_ac_var=yes"
25876 echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25879 eval "$as_ac_var=no"
25882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25883 conftest$ac_exeext conftest.$ac_ext
25885 ac_res=`eval echo '${'$as_ac_var'}'`
25886 { echo "$as_me:$LINENO: result: $ac_res" >&5
25887 echo "${ECHO_T}$ac_res" >&6; }
25888 if test `eval echo '${'$as_ac_var'}'` = yes; then
25889 cat >>confdefs.h <<_ACEOF
25890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25898 for ac_func in nanosleep nl_langinfo
25900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25904 echo $ECHO_N "(cached) $ECHO_C" >&6
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25914 #define $ac_func innocuous_$ac_func
25916 /* System header to define __stub macros and hopefully few prototypes,
25917 which can conflict with char $ac_func (); below.
25918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919 <limits.h> exists even on freestanding compilers. */
25922 # include <limits.h>
25924 # include <assert.h>
25929 /* Override any GCC internal prototype to avoid an error.
25930 Use char because int might match the return type of a GCC
25931 builtin and then its argument prototype would still apply. */
25936 /* The GNU C library defines this for functions which it implements
25937 to always fail with ENOSYS. Some functions are actually named
25938 something starting with __ and the normal name is an alias. */
25939 #if defined __stub_$ac_func || defined __stub___$ac_func
25946 return $ac_func ();
25951 rm -f conftest.$ac_objext conftest$ac_exeext
25952 if { (ac_try="$ac_link"
25953 case "(($ac_try" in
25954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955 *) ac_try_echo=$ac_try;;
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958 (eval "$ac_link") 2>conftest.er1
25960 grep -v '^ *+' conftest.er1 >conftest.err
25962 cat conftest.err >&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); } && {
25965 test -z "$ac_c_werror_flag" ||
25966 test ! -s conftest.err
25967 } && test -s conftest$ac_exeext &&
25968 $as_test_x conftest$ac_exeext; then
25969 eval "$as_ac_var=yes"
25971 echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25974 eval "$as_ac_var=no"
25977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25978 conftest$ac_exeext conftest.$ac_ext
25980 ac_res=`eval echo '${'$as_ac_var'}'`
25981 { echo "$as_me:$LINENO: result: $ac_res" >&5
25982 echo "${ECHO_T}$ac_res" >&6; }
25983 if test `eval echo '${'$as_ac_var'}'` = yes; then
25984 cat >>confdefs.h <<_ACEOF
25985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25992 for ac_header in varargs.h
25994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 ac_res=`eval echo '${'$as_ac_Header'}'`
26002 { echo "$as_me:$LINENO: result: $ac_res" >&5
26003 echo "${ECHO_T}$ac_res" >&6; }
26005 # Is the header compilable?
26006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 $ac_includes_default
26015 #include <$ac_header>
26017 rm -f conftest.$ac_objext
26018 if { (ac_try="$ac_compile"
26019 case "(($ac_try" in
26020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021 *) ac_try_echo=$ac_try;;
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024 (eval "$ac_compile") 2>conftest.er1
26026 grep -v '^ *+' conftest.er1 >conftest.err
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } && {
26031 test -z "$ac_c_werror_flag" ||
26032 test ! -s conftest.err
26033 } && test -s conftest.$ac_objext; then
26034 ac_header_compiler=yes
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26039 ac_header_compiler=no
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26044 echo "${ECHO_T}$ac_header_compiler" >&6; }
26046 # Is the header present?
26047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26049 cat >conftest.$ac_ext <<_ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26055 #include <$ac_header>
26057 if { (ac_try="$ac_cpp conftest.$ac_ext"
26058 case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26065 grep -v '^ *+' conftest.er1 >conftest.err
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } >/dev/null && {
26070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26071 test ! -s conftest.err
26073 ac_header_preproc=yes
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 ac_header_preproc=no
26081 rm -f conftest.err conftest.$ac_ext
26082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26083 echo "${ECHO_T}$ac_header_preproc" >&6; }
26085 # So? What about this header?
26086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26092 ac_header_preproc=yes
26095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26113 echo $ECHO_N "(cached) $ECHO_C" >&6
26115 eval "$as_ac_Header=\$ac_header_preproc"
26117 ac_res=`eval echo '${'$as_ac_Header'}'`
26118 { echo "$as_me:$LINENO: result: $ac_res" >&5
26119 echo "${ECHO_T}$ac_res" >&6; }
26122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26123 cat >>confdefs.h <<_ACEOF
26124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26133 { echo "$as_me:$LINENO: checking for Python support" >&5
26134 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26136 # Check whether --with-python was given.
26137 if test "${with_python+set}" = set; then
26138 withval=$with_python;
26141 if test "$withval" != "no"; then
26142 if test "$withval" = "yes"; then
26143 for python_root in /usr /usr/local /usr/sfw; do
26144 for ver in python2.2 python2.3 python2.4 python2.5; do
26145 if test -f $python_root/include/${ver}/Python.h; then
26146 PYTHON_INCDIR=-I$python_root/include/${ver}
26147 if test -d $python_root/lib64/${ver}/config; then
26148 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26150 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26157 if test x$PYTHON_INCDIR = x; then
26158 if test -f $prefix/include/Python.h; then
26159 PYTHON_INCDIR=-I$prefix/include
26160 if test -d $prefix/lib64/config; then
26161 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26163 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26166 { echo "$as_me:$LINENO: result: no" >&5
26167 echo "${ECHO_T}no" >&6; }
26168 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26169 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26170 { (exit 1); exit 1; }; }
26174 if test -f $withval/Python.h; then
26175 PYTHON_INCDIR=-I$withval
26176 PYTHON_LIBS="-L$withval/config -lpython"
26177 elif test -f $withval/include/Python.h; then
26178 PYTHON_INCDIR=-I$withval/include
26179 if test -d $withval/lib64/config; then
26180 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26182 PYTHON_LIBS="-L$withval/lib/config -lpython"
26184 elif test -f $withval/include/python/Python.h; then
26185 PYTHON_INCDIR=-I$withval/include/python
26186 if test -d $withval/lib64/python/config; then
26187 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26189 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26192 { echo "$as_me:$LINENO: result: no" >&5
26193 echo "${ECHO_T}no" >&6; }
26194 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26195 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26196 { (exit 1); exit 1; }; }
26200 cat >>confdefs.h <<\_ACEOF
26201 #define HAVE_PYTHON 1
26204 { echo "$as_me:$LINENO: result: yes" >&5
26205 echo "${ECHO_T}yes" >&6; }
26207 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26208 echo "$as_me: checking for more Python libs" >&6;}
26209 saved_LIBS="$LIBS"; LIBS=
26210 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26211 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26212 if test "${ac_cv_search_shm_open+set}" = set; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26215 ac_func_search_save_LIBS=$LIBS
26216 cat >conftest.$ac_ext <<_ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26223 /* Override any GCC internal prototype to avoid an error.
26224 Use char because int might match the return type of a GCC
26225 builtin and then its argument prototype would still apply. */
26233 return shm_open ();
26238 for ac_lib in '' rt; do
26239 if test -z "$ac_lib"; then
26240 ac_res="none required"
26243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26245 rm -f conftest.$ac_objext conftest$ac_exeext
26246 if { (ac_try="$ac_link"
26247 case "(($ac_try" in
26248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249 *) ac_try_echo=$ac_try;;
26251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26252 (eval "$ac_link") 2>conftest.er1
26254 grep -v '^ *+' conftest.er1 >conftest.err
26256 cat conftest.err >&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); } && {
26259 test -z "$ac_c_werror_flag" ||
26260 test ! -s conftest.err
26261 } && test -s conftest$ac_exeext &&
26262 $as_test_x conftest$ac_exeext; then
26263 ac_cv_search_shm_open=$ac_res
26265 echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26273 if test "${ac_cv_search_shm_open+set}" = set; then
26277 if test "${ac_cv_search_shm_open+set}" = set; then
26280 ac_cv_search_shm_open=no
26282 rm conftest.$ac_ext
26283 LIBS=$ac_func_search_save_LIBS
26285 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26286 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26287 ac_res=$ac_cv_search_shm_open
26288 if test "$ac_res" != no; then
26289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26294 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26295 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26296 if test "${ac_cv_lib_util_openpty+set}" = set; then
26297 echo $ECHO_N "(cached) $ECHO_C" >&6
26299 ac_check_lib_save_LIBS=$LIBS
26300 LIBS="-lutil $LIBS"
26301 cat >conftest.$ac_ext <<_ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h. */
26308 /* Override any GCC internal prototype to avoid an error.
26309 Use char because int might match the return type of a GCC
26310 builtin and then its argument prototype would still apply. */
26323 rm -f conftest.$ac_objext conftest$ac_exeext
26324 if { (ac_try="$ac_link"
26325 case "(($ac_try" in
26326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26327 *) ac_try_echo=$ac_try;;
26329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26330 (eval "$ac_link") 2>conftest.er1
26332 grep -v '^ *+' conftest.er1 >conftest.err
26334 cat conftest.err >&5
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); } && {
26337 test -z "$ac_c_werror_flag" ||
26338 test ! -s conftest.err
26339 } && test -s conftest$ac_exeext &&
26340 $as_test_x conftest$ac_exeext; then
26341 ac_cv_lib_util_openpty=yes
26343 echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26346 ac_cv_lib_util_openpty=no
26349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26350 conftest$ac_exeext conftest.$ac_ext
26351 LIBS=$ac_check_lib_save_LIBS
26353 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26354 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26355 if test $ac_cv_lib_util_openpty = yes; then
26356 cat >>confdefs.h <<_ACEOF
26357 #define HAVE_LIBUTIL 1
26360 LIBS="-lutil $LIBS"
26364 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26367 { echo "$as_me:$LINENO: result: no" >&5
26368 echo "${ECHO_T}no" >&6; }
26373 { echo "$as_me:$LINENO: result: no" >&5
26374 echo "${ECHO_T}no" >&6; }
26382 { echo "$as_me:$LINENO: checking for socket" >&5
26383 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26384 if test "${ac_cv_func_socket+set}" = set; then
26385 echo $ECHO_N "(cached) $ECHO_C" >&6
26387 cat >conftest.$ac_ext <<_ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h. */
26393 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26395 #define socket innocuous_socket
26397 /* System header to define __stub macros and hopefully few prototypes,
26398 which can conflict with char socket (); below.
26399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26400 <limits.h> exists even on freestanding compilers. */
26403 # include <limits.h>
26405 # include <assert.h>
26410 /* Override any GCC internal prototype to avoid an error.
26411 Use char because int might match the return type of a GCC
26412 builtin and then its argument prototype would still apply. */
26417 /* The GNU C library defines this for functions which it implements
26418 to always fail with ENOSYS. Some functions are actually named
26419 something starting with __ and the normal name is an alias. */
26420 #if defined __stub_socket || defined __stub___socket
26432 rm -f conftest.$ac_objext conftest$ac_exeext
26433 if { (ac_try="$ac_link"
26434 case "(($ac_try" in
26435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26436 *) ac_try_echo=$ac_try;;
26438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26439 (eval "$ac_link") 2>conftest.er1
26441 grep -v '^ *+' conftest.er1 >conftest.err
26443 cat conftest.err >&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); } && {
26446 test -z "$ac_c_werror_flag" ||
26447 test ! -s conftest.err
26448 } && test -s conftest$ac_exeext &&
26449 $as_test_x conftest$ac_exeext; then
26450 ac_cv_func_socket=yes
26452 echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26455 ac_cv_func_socket=no
26458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26459 conftest$ac_exeext conftest.$ac_ext
26461 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26462 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26463 if test $ac_cv_func_socket = yes; then
26464 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26465 echo "${ECHO_T}using libc's socket" >&6; }
26468 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26469 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26470 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26471 echo $ECHO_N "(cached) $ECHO_C" >&6
26473 ac_check_lib_save_LIBS=$LIBS
26474 LIBS="-lxnet $LIBS"
26475 cat >conftest.$ac_ext <<_ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h. */
26482 /* Override any GCC internal prototype to avoid an error.
26483 Use char because int might match the return type of a GCC
26484 builtin and then its argument prototype would still apply. */
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (ac_try="$ac_link"
26499 case "(($ac_try" in
26500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501 *) ac_try_echo=$ac_try;;
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504 (eval "$ac_link") 2>conftest.er1
26506 grep -v '^ *+' conftest.er1 >conftest.err
26508 cat conftest.err >&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } && {
26511 test -z "$ac_c_werror_flag" ||
26512 test ! -s conftest.err
26513 } && test -s conftest$ac_exeext &&
26514 $as_test_x conftest$ac_exeext; then
26515 ac_cv_lib_xnet_socket=yes
26517 echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26520 ac_cv_lib_xnet_socket=no
26523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26524 conftest$ac_exeext conftest.$ac_ext
26525 LIBS=$ac_check_lib_save_LIBS
26527 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26528 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26529 if test $ac_cv_lib_xnet_socket = yes; then
26530 cat >>confdefs.h <<_ACEOF
26531 #define HAVE_LIBXNET 1
26534 LIBS="-lxnet $LIBS"
26539 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26540 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26541 if test "${ac_cv_lib_socket_socket+set}" = set; then
26542 echo $ECHO_N "(cached) $ECHO_C" >&6
26544 ac_check_lib_save_LIBS=$LIBS
26545 LIBS="-lsocket $LIBS"
26546 cat >conftest.$ac_ext <<_ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h. */
26553 /* Override any GCC internal prototype to avoid an error.
26554 Use char because int might match the return type of a GCC
26555 builtin and then its argument prototype would still apply. */
26568 rm -f conftest.$ac_objext conftest$ac_exeext
26569 if { (ac_try="$ac_link"
26570 case "(($ac_try" in
26571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26572 *) ac_try_echo=$ac_try;;
26574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26575 (eval "$ac_link") 2>conftest.er1
26577 grep -v '^ *+' conftest.er1 >conftest.err
26579 cat conftest.err >&5
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); } && {
26582 test -z "$ac_c_werror_flag" ||
26583 test ! -s conftest.err
26584 } && test -s conftest$ac_exeext &&
26585 $as_test_x conftest$ac_exeext; then
26586 ac_cv_lib_socket_socket=yes
26588 echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26591 ac_cv_lib_socket_socket=no
26594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26595 conftest$ac_exeext conftest.$ac_ext
26596 LIBS=$ac_check_lib_save_LIBS
26598 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26599 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26600 if test $ac_cv_lib_socket_socket = yes; then
26601 cat >>confdefs.h <<_ACEOF
26602 #define HAVE_LIBSOCKET 1
26605 LIBS="-lsocket $LIBS"
26610 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26611 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26612 if test "${ac_cv_lib_inet_socket+set}" = set; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
26615 ac_check_lib_save_LIBS=$LIBS
26616 LIBS="-linet $LIBS"
26617 cat >conftest.$ac_ext <<_ACEOF
26620 cat confdefs.h >>conftest.$ac_ext
26621 cat >>conftest.$ac_ext <<_ACEOF
26622 /* end confdefs.h. */
26624 /* Override any GCC internal prototype to avoid an error.
26625 Use char because int might match the return type of a GCC
26626 builtin and then its argument prototype would still apply. */
26639 rm -f conftest.$ac_objext conftest$ac_exeext
26640 if { (ac_try="$ac_link"
26641 case "(($ac_try" in
26642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643 *) ac_try_echo=$ac_try;;
26645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26646 (eval "$ac_link") 2>conftest.er1
26648 grep -v '^ *+' conftest.er1 >conftest.err
26650 cat conftest.err >&5
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } && {
26653 test -z "$ac_c_werror_flag" ||
26654 test ! -s conftest.err
26655 } && test -s conftest$ac_exeext &&
26656 $as_test_x conftest$ac_exeext; then
26657 ac_cv_lib_inet_socket=yes
26659 echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26662 ac_cv_lib_inet_socket=no
26665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26666 conftest$ac_exeext conftest.$ac_ext
26667 LIBS=$ac_check_lib_save_LIBS
26669 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26670 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26671 if test $ac_cv_lib_inet_socket = yes; then
26672 cat >>confdefs.h <<_ACEOF
26673 #define HAVE_LIBINET 1
26676 LIBS="-linet $LIBS"
26686 # Check whether --with-tcp-wrappers was given.
26687 if test "${with_tcp_wrappers+set}" = set; then
26688 withval=$with_tcp_wrappers;
26689 if test "x$withval" != "xno" ; then
26691 LIBS="$saved_LIBS -lwrap"
26692 { echo "$as_me:$LINENO: checking for libwrap" >&5
26693 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26694 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26695 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26696 if test "${ac_cv_search_nanosleep+set}" = set; then
26697 echo $ECHO_N "(cached) $ECHO_C" >&6
26699 ac_func_search_save_LIBS=$LIBS
26700 cat >conftest.$ac_ext <<_ACEOF
26703 cat confdefs.h >>conftest.$ac_ext
26704 cat >>conftest.$ac_ext <<_ACEOF
26705 /* end confdefs.h. */
26707 /* Override any GCC internal prototype to avoid an error.
26708 Use char because int might match the return type of a GCC
26709 builtin and then its argument prototype would still apply. */
26717 return nanosleep ();
26722 for ac_lib in '' rt; do
26723 if test -z "$ac_lib"; then
26724 ac_res="none required"
26727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26729 rm -f conftest.$ac_objext conftest$ac_exeext
26730 if { (ac_try="$ac_link"
26731 case "(($ac_try" in
26732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733 *) ac_try_echo=$ac_try;;
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736 (eval "$ac_link") 2>conftest.er1
26738 grep -v '^ *+' conftest.er1 >conftest.err
26740 cat conftest.err >&5
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); } && {
26743 test -z "$ac_c_werror_flag" ||
26744 test ! -s conftest.err
26745 } && test -s conftest$ac_exeext &&
26746 $as_test_x conftest$ac_exeext; then
26747 ac_cv_search_nanosleep=$ac_res
26749 echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.$ac_ext >&5
26755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26757 if test "${ac_cv_search_nanosleep+set}" = set; then
26761 if test "${ac_cv_search_nanosleep+set}" = set; then
26764 ac_cv_search_nanosleep=no
26766 rm conftest.$ac_ext
26767 LIBS=$ac_func_search_save_LIBS
26769 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26770 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26771 ac_res=$ac_cv_search_nanosleep
26772 if test "$ac_res" != no; then
26773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26777 cat >conftest.$ac_ext <<_ACEOF
26780 cat confdefs.h >>conftest.$ac_ext
26781 cat >>conftest.$ac_ext <<_ACEOF
26782 /* end confdefs.h. */
26784 #include <sys/types.h>
26786 int deny_severity = 0;
26787 int allow_severity = 0;
26788 struct request_info *req;
26800 rm -f conftest.$ac_objext conftest$ac_exeext
26801 if { (ac_try="$ac_link"
26802 case "(($ac_try" in
26803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804 *) ac_try_echo=$ac_try;;
26806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26807 (eval "$ac_link") 2>conftest.er1
26809 grep -v '^ *+' conftest.er1 >conftest.err
26811 cat conftest.err >&5
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); } && {
26814 test -z "$ac_c_werror_flag" ||
26815 test ! -s conftest.err
26816 } && test -s conftest$ac_exeext &&
26817 $as_test_x conftest$ac_exeext; then
26819 { echo "$as_me:$LINENO: result: yes" >&5
26820 echo "${ECHO_T}yes" >&6; }
26822 cat >>confdefs.h <<\_ACEOF
26823 #define HAVE_LIBWRAP 1
26831 echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26835 LIBS="$saved_LIBS -lwrap -lnsl"
26836 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26837 cat >conftest.$ac_ext <<_ACEOF
26840 cat confdefs.h >>conftest.$ac_ext
26841 cat >>conftest.$ac_ext <<_ACEOF
26842 /* end confdefs.h. */
26844 #include <sys/types.h>
26846 int deny_severity = 0;
26847 int allow_severity = 0;
26848 struct request_info *req;
26860 rm -f conftest.$ac_objext conftest$ac_exeext
26861 if { (ac_try="$ac_link"
26862 case "(($ac_try" in
26863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26864 *) ac_try_echo=$ac_try;;
26866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26867 (eval "$ac_link") 2>conftest.er1
26869 grep -v '^ *+' conftest.er1 >conftest.err
26871 cat conftest.err >&5
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); } && {
26874 test -z "$ac_c_werror_flag" ||
26875 test ! -s conftest.err
26876 } && test -s conftest$ac_exeext &&
26877 $as_test_x conftest$ac_exeext; then
26879 { echo "$as_me:$LINENO: result: yes" >&5
26880 echo "${ECHO_T}yes" >&6; }
26882 cat >>confdefs.h <<\_ACEOF
26883 #define HAVE_LIBWRAP 1
26891 echo "$as_me: failed program was:" >&5
26892 sed 's/^/| /' conftest.$ac_ext >&5
26895 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26896 echo "$as_me: error: *** libwrap missing" >&2;}
26897 { (exit 1); exit 1; }; }
26902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26903 conftest$ac_exeext conftest.$ac_ext
26908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26909 conftest$ac_exeext conftest.$ac_ext
26916 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26917 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26919 # Check whether --with-openssl was given.
26920 if test "${with_openssl+set}" = set; then
26921 withval=$with_openssl;
26922 with_openssl_directory=${withval}
26928 if test "x$with_openssl_directory" != "xno"; then
26929 OPENSSL_LIBS="-lssl -lcrypto"
26932 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26934 # Make sure the $with_openssl_directory also makes sense
26936 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26937 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26938 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26942 saved_LIBS="${LIBS}"
26943 saved_CFLAGS="${CFLAGS}"
26944 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26945 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26947 cat >conftest.$ac_ext <<_ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26954 #include <openssl/ssl.h>
26960 CRYPTO_set_id_callback(NULL);
26966 rm -f conftest.$ac_objext conftest$ac_exeext
26967 if { (ac_try="$ac_link"
26968 case "(($ac_try" in
26969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_link") 2>conftest.er1
26975 grep -v '^ *+' conftest.er1 >conftest.err
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } && {
26980 test -z "$ac_c_werror_flag" ||
26981 test ! -s conftest.err
26982 } && test -s conftest$ac_exeext &&
26983 $as_test_x conftest$ac_exeext; then
26986 support_crypto="yes"
26989 echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26999 conftest$ac_exeext conftest.$ac_ext
27001 cat >conftest.$ac_ext <<_ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h. */
27008 #include <openssl/evp.h>
27020 rm -f conftest.$ac_objext conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_link") 2>conftest.er1
27029 grep -v '^ *+' conftest.er1 >conftest.err
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } && {
27034 test -z "$ac_c_werror_flag" ||
27035 test ! -s conftest.err
27036 } && test -s conftest$ac_exeext &&
27037 $as_test_x conftest$ac_exeext; then
27039 ac_cv_openssl_sha2="yes"
27042 echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27046 ac_cv_openssl_sha2="no"
27051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27052 conftest$ac_exeext conftest.$ac_ext
27054 cat >conftest.$ac_ext <<_ACEOF
27057 cat confdefs.h >>conftest.$ac_ext
27058 cat >>conftest.$ac_ext <<_ACEOF
27059 /* end confdefs.h. */
27061 #include <openssl/evp.h>
27073 rm -f conftest.$ac_objext conftest$ac_exeext
27074 if { (ac_try="$ac_link"
27075 case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080 (eval "$ac_link") 2>conftest.er1
27082 grep -v '^ *+' conftest.er1 >conftest.err
27084 cat conftest.err >&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); } && {
27087 test -z "$ac_c_werror_flag" ||
27088 test ! -s conftest.err
27089 } && test -s conftest$ac_exeext &&
27090 $as_test_x conftest$ac_exeext; then
27092 ac_cv_openssl_export="no"
27095 echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27099 ac_cv_openssl_export="yes"
27104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27105 conftest$ac_exeext conftest.$ac_ext
27107 LIBS="${saved_LIBS}"
27108 CFLAGS="${saved_CFLAGS}"
27110 if test "$support_tls" = "yes"; then
27112 cat >>confdefs.h <<\_ACEOF
27113 #define HAVE_OPENSSL 1
27117 cat >>confdefs.h <<\_ACEOF
27122 cat >>confdefs.h <<\_ACEOF
27123 #define HAVE_CRYPTO 1
27128 if test "$ac_cv_openssl_sha2" = "yes"; then
27130 cat >>confdefs.h <<\_ACEOF
27131 #define HAVE_SHA2 1
27136 if test "$ac_cv_openssl_export" = "yes"; then
27138 cat >>confdefs.h <<\_ACEOF
27139 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27145 support_crypto="no"
27150 { echo "$as_me:$LINENO: result: $support_tls" >&5
27151 echo "${ECHO_T}$support_tls" >&6; }
27155 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27156 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27157 if test "${ac_cv_search_dlopen+set}" = set; then
27158 echo $ECHO_N "(cached) $ECHO_C" >&6
27160 ac_func_search_save_LIBS=$LIBS
27161 cat >conftest.$ac_ext <<_ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27168 /* Override any GCC internal prototype to avoid an error.
27169 Use char because int might match the return type of a GCC
27170 builtin and then its argument prototype would still apply. */
27183 for ac_lib in '' dl; do
27184 if test -z "$ac_lib"; then
27185 ac_res="none required"
27188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27190 rm -f conftest.$ac_objext conftest$ac_exeext
27191 if { (ac_try="$ac_link"
27192 case "(($ac_try" in
27193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197 (eval "$ac_link") 2>conftest.er1
27199 grep -v '^ *+' conftest.er1 >conftest.err
27201 cat conftest.err >&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); } && {
27204 test -z "$ac_c_werror_flag" ||
27205 test ! -s conftest.err
27206 } && test -s conftest$ac_exeext &&
27207 $as_test_x conftest$ac_exeext; then
27208 ac_cv_search_dlopen=$ac_res
27210 echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27218 if test "${ac_cv_search_dlopen+set}" = set; then
27222 if test "${ac_cv_search_dlopen+set}" = set; then
27225 ac_cv_search_dlopen=no
27227 rm conftest.$ac_ext
27228 LIBS=$ac_func_search_save_LIBS
27230 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27231 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27232 ac_res=$ac_cv_search_dlopen
27233 if test "$ac_res" != no; then
27234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27239 working_dir=`eval echo ${prefix}/var/bacula/working`
27241 # Check whether --with-working-dir was given.
27242 if test "${with_working_dir+set}" = set; then
27243 withval=$with_working_dir;
27244 if test "x$withval" != "xno" ; then
27245 working_dir=$withval
27256 # Check whether --with-archivedir was given.
27257 if test "${with_archivedir+set}" = set; then
27258 withval=$with_archivedir;
27259 if test "x$withval" != "xno" ; then
27260 archivedir=$withval
27269 scriptdir=`eval echo ${sysconfdir}`
27271 # Check whether --with-scriptdir was given.
27272 if test "${with_scriptdir+set}" = set; then
27273 withval=$with_scriptdir;
27274 if test "x$withval" != "xno" ; then
27284 # ------------------------------------------
27285 # Where to place plugindir (plugin files)
27286 # ------------------------------------------
27287 plugindir=`eval echo ${sysconfdir}`
27289 # Check whether --with-plugindir was given.
27290 if test "${with_plugindir+set}" = set; then
27291 withval=$with_plugindir;
27292 if test "x$withval" != "xno" ; then
27302 dump_email=root@localhost
27304 # Check whether --with-dump-email was given.
27305 if test "${with_dump_email+set}" = set; then
27306 withval=$with_dump_email;
27307 if test "x$withval" != "xno" ; then
27308 dump_email=$withval
27317 job_email=root@localhost
27319 # Check whether --with-job-email was given.
27320 if test "${with_job_email+set}" = set; then
27321 withval=$with_job_email;
27322 if test "x$withval" != "xno" ; then
27332 smtp_host=localhost
27334 # Check whether --with-smtp_host was given.
27335 if test "${with_smtp_host+set}" = set; then
27336 withval=$with_smtp_host;
27337 if test "x$withval" != "xno" ; then
27349 # Check whether --with-pid-dir was given.
27350 if test "${with_pid_dir+set}" = set; then
27351 withval=$with_pid_dir;
27352 if test "x$withval" != "xno" ; then
27360 cat >>confdefs.h <<_ACEOF
27361 #define _PATH_BACULA_PIDDIR "$piddir"
27366 subsysdir=/var/run/subsys
27367 if test -d /var/run/subsys; then
27368 subsysdir=/var/run/subsys
27369 elif test -d /var/lock/subsys; then
27370 subsysdir=/var/lock/subsys
27372 subsysdir=/var/run/subsys
27375 # Check whether --with-subsys-dir was given.
27376 if test "${with_subsys_dir+set}" = set; then
27377 withval=$with_subsys_dir;
27378 if test "x$withval" != "xno" ; then
27390 # Check whether --with-baseport was given.
27391 if test "${with_baseport+set}" = set; then
27392 withval=$with_baseport;
27393 if test "x$withval" != "xno" ; then
27402 dir_port=`expr $baseport`
27403 fd_port=`expr $baseport + 1`
27404 sd_port=`expr $fd_port + 1`
27412 # Check whether --with-dir-password was given.
27413 if test "${with_dir_password+set}" = set; then
27414 withval=$with_dir_password;
27415 if test "x$withval" != "xno" ; then
27416 dir_password=$withval
27423 if test "x$dir_password" = "x" ; then
27424 if test "x$OPENSSL" = "xnone" ; then
27425 key=`autoconf/randpass 33`
27427 key=`openssl rand -base64 33`
27434 # Check whether --with-fd-password was given.
27435 if test "${with_fd_password+set}" = set; then
27436 withval=$with_fd_password;
27437 if test "x$withval" != "xno" ; then
27438 fd_password=$withval
27445 if test "x$fd_password" = "x" ; then
27446 if test "x$OPENSSL" = "xnone" ; then
27447 key=`autoconf/randpass 37`
27449 key=`openssl rand -base64 33`
27456 # Check whether --with-sd-password was given.
27457 if test "${with_sd_password+set}" = set; then
27458 withval=$with_sd_password;
27459 if test "x$withval" != "xno" ; then
27460 sd_password=$withval
27467 if test "x$sd_password" = "x" ; then
27468 if test "x$OPENSSL" = "xnone" ; then
27469 key=`autoconf/randpass 41`
27471 key=`openssl rand -base64 33`
27478 # Check whether --with-mon-dir-password was given.
27479 if test "${with_mon_dir_password+set}" = set; then
27480 withval=$with_mon_dir_password;
27481 if test "x$withval" != "xno" ; then
27482 mon_dir_password=$withval
27489 if test "x$mon_dir_password" = "x" ; then
27490 if test "x$OPENSSL" = "xnone" ; then
27491 key=`autoconf/randpass 33`
27493 key=`openssl rand -base64 33`
27495 mon_dir_password=$key
27500 # Check whether --with-mon-fd-password was given.
27501 if test "${with_mon_fd_password+set}" = set; then
27502 withval=$with_mon_fd_password;
27503 if test "x$withval" != "xno" ; then
27504 mon_fd_password=$withval
27511 if test "x$mon_fd_password" = "x" ; then
27512 if test "x$OPENSSL" = "xnone" ; then
27513 key=`autoconf/randpass 37`
27515 key=`openssl rand -base64 33`
27517 mon_fd_password=$key
27522 # Check whether --with-mon-sd-password was given.
27523 if test "${with_mon_sd_password+set}" = set; then
27524 withval=$with_mon_sd_password;
27525 if test "x$withval" != "xno" ; then
27526 mon_sd_password=$withval
27533 if test "x$mon_sd_password" = "x" ; then
27534 if test "x$OPENSSL" = "xnone" ; then
27535 key=`autoconf/randpass 41`
27537 key=`openssl rand -base64 33`
27539 mon_sd_password=$key
27551 # Check whether --with-db_name was given.
27552 if test "${with_db_name+set}" = set; then
27553 withval=$with_db_name;
27554 if test "x$withval" != "x" ; then
27565 # Check whether --with-db_user was given.
27566 if test "${with_db_user+set}" = set; then
27567 withval=$with_db_user;
27568 if test "x$withval" != "x" ; then
27579 # Check whether --with-db_password was given.
27580 if test "${with_db_password+set}" = set; then
27581 withval=$with_db_password;
27582 if test "x$withval" != "x" ; then
27583 db_password=$withval
27593 # Check whether --with-db_port was given.
27594 if test "${with_db_port+set}" = set; then
27595 withval=$with_db_port;
27596 if test "x$withval" != "x" ; then
27606 # Handle users and groups for each daemon
27610 # Check whether --with-dir_user was given.
27611 if test "${with_dir_user+set}" = set; then
27612 withval=$with_dir_user;
27613 if test "x$withval" != "x" ; then
27623 # Check whether --with-dir_group was given.
27624 if test "${with_dir_group+set}" = set; then
27625 withval=$with_dir_group;
27626 if test "x$withval" != "x" ; then
27636 # Check whether --with-sd_user was given.
27637 if test "${with_sd_user+set}" = set; then
27638 withval=$with_sd_user;
27639 if test "x$withval" != "x" ; then
27649 # Check whether --with-sd_group was given.
27650 if test "${with_sd_group+set}" = set; then
27651 withval=$with_sd_group;
27652 if test "x$withval" != "x" ; then
27662 # Check whether --with-fd_user was given.
27663 if test "${with_fd_user+set}" = set; then
27664 withval=$with_fd_user;
27665 if test "x$withval" != "x" ; then
27675 # Check whether --with-fd_group was given.
27676 if test "${with_fd_group+set}" = set; then
27677 withval=$with_fd_group;
27678 if test "x$withval" != "x" ; then
27695 # Check whether --with-sbin-perm was given.
27696 if test "${with_sbin_perm+set}" = set; then
27697 withval=$with_sbin_perm;
27698 if test "x$withval" != "x" ; then
27711 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27712 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27714 # Check whether --with-postgresql was given.
27715 if test "${with_postgresql+set}" = set; then
27716 withval=$with_postgresql;
27717 if test "$withval" != "no"; then
27718 if test "$db_found" = "yes"; then
27719 { echo "$as_me:$LINENO: result: error" >&5
27720 echo "${ECHO_T}error" >&6; }
27721 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27722 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27723 { (exit 1); exit 1; }; };
27725 if test "$withval" = "yes"; then
27726 PG_CONFIG=`which pg_config`
27727 if test -n "$PG_CONFIG";then
27728 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27729 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27730 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27731 elif test -f /usr/local/include/libpq-fe.h; then
27732 POSTGRESQL_INCDIR=/usr/local/include
27733 if test -d /usr/local/lib64; then
27734 POSTGRESQL_LIBDIR=/usr/local/lib64
27736 POSTGRESQL_LIBDIR=/usr/local/lib
27738 POSTGRESQL_BINDIR=/usr/local/bin
27739 elif test -f /usr/include/libpq-fe.h; then
27740 POSTGRESQL_INCDIR=/usr/include
27741 if test -d /usr/lib64; then
27742 POSTGRESQL_LIBDIR=/usr/lib64
27744 POSTGRESQL_LIBDIR=/usr/lib
27746 POSTGRESQL_BINDIR=/usr/bin
27747 elif test -f /usr/include/pgsql/libpq-fe.h; then
27748 POSTGRESQL_INCDIR=/usr/include/pgsql
27749 if test -d /usr/lib64/pgsql; then
27750 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27752 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27754 POSTGRESQL_BINDIR=/usr/bin
27755 elif test -f /usr/include/postgresql/libpq-fe.h; then
27756 POSTGRESQL_INCDIR=/usr/include/postgresql
27757 if test -d /usr/lib64/postgresql; then
27758 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27760 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27762 POSTGRESQL_BINDIR=/usr/bin
27764 { echo "$as_me:$LINENO: result: no" >&5
27765 echo "${ECHO_T}no" >&6; }
27766 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27767 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27768 { (exit 1); exit 1; }; }
27770 elif test -f $withval/include/libpq-fe.h; then
27771 POSTGRESQL_INCDIR=$withval/include
27772 POSTGRESQL_LIBDIR=$withval/lib
27773 POSTGRESQL_BINDIR=$withval/bin
27774 elif test -f $withval/include/postgresql/libpq-fe.h; then
27775 POSTGRESQL_INCDIR=$withval/include/postgresql
27776 if test -d $withval/lib64; then
27777 POSTGRESQL_LIBDIR=$withval/lib64
27779 POSTGRESQL_LIBDIR=$withval/lib
27781 POSTGRESQL_BINDIR=$withval/bin
27783 { echo "$as_me:$LINENO: result: no" >&5
27784 echo "${ECHO_T}no" >&6; }
27785 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27786 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27787 { (exit 1); exit 1; }; }
27789 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27790 { echo "$as_me:$LINENO: checking for crypt" >&5
27791 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27792 if test "${ac_cv_func_crypt+set}" = set; then
27793 echo $ECHO_N "(cached) $ECHO_C" >&6
27795 cat >conftest.$ac_ext <<_ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h. */
27801 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27803 #define crypt innocuous_crypt
27805 /* System header to define __stub macros and hopefully few prototypes,
27806 which can conflict with char crypt (); below.
27807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27808 <limits.h> exists even on freestanding compilers. */
27811 # include <limits.h>
27813 # include <assert.h>
27818 /* Override any GCC internal prototype to avoid an error.
27819 Use char because int might match the return type of a GCC
27820 builtin and then its argument prototype would still apply. */
27825 /* The GNU C library defines this for functions which it implements
27826 to always fail with ENOSYS. Some functions are actually named
27827 something starting with __ and the normal name is an alias. */
27828 #if defined __stub_crypt || defined __stub___crypt
27840 rm -f conftest.$ac_objext conftest$ac_exeext
27841 if { (ac_try="$ac_link"
27842 case "(($ac_try" in
27843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844 *) ac_try_echo=$ac_try;;
27846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27847 (eval "$ac_link") 2>conftest.er1
27849 grep -v '^ *+' conftest.er1 >conftest.err
27851 cat conftest.err >&5
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } && {
27854 test -z "$ac_c_werror_flag" ||
27855 test ! -s conftest.err
27856 } && test -s conftest$ac_exeext &&
27857 $as_test_x conftest$ac_exeext; then
27858 ac_cv_func_crypt=yes
27860 echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27863 ac_cv_func_crypt=no
27866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27867 conftest$ac_exeext conftest.$ac_ext
27869 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27870 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27871 if test $ac_cv_func_crypt = yes; then
27874 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27875 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27876 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27877 echo $ECHO_N "(cached) $ECHO_C" >&6
27879 ac_check_lib_save_LIBS=$LIBS
27880 LIBS="-lcrypt $LIBS"
27881 cat >conftest.$ac_ext <<_ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h. */
27888 /* Override any GCC internal prototype to avoid an error.
27889 Use char because int might match the return type of a GCC
27890 builtin and then its argument prototype would still apply. */
27903 rm -f conftest.$ac_objext conftest$ac_exeext
27904 if { (ac_try="$ac_link"
27905 case "(($ac_try" in
27906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907 *) ac_try_echo=$ac_try;;
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910 (eval "$ac_link") 2>conftest.er1
27912 grep -v '^ *+' conftest.er1 >conftest.err
27914 cat conftest.err >&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } && {
27917 test -z "$ac_c_werror_flag" ||
27918 test ! -s conftest.err
27919 } && test -s conftest$ac_exeext &&
27920 $as_test_x conftest$ac_exeext; then
27921 ac_cv_lib_crypt_crypt=yes
27923 echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27926 ac_cv_lib_crypt_crypt=no
27929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27930 conftest$ac_exeext conftest.$ac_ext
27931 LIBS=$ac_check_lib_save_LIBS
27933 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27934 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27935 if test $ac_cv_lib_crypt_crypt = yes; then
27936 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27941 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27942 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27943 SQL_BINDIR=$POSTGRESQL_BINDIR
27944 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27946 cat >>confdefs.h <<\_ACEOF
27947 #define HAVE_POSTGRESQL 1
27950 { echo "$as_me:$LINENO: result: yes" >&5
27951 echo "${ECHO_T}yes" >&6; }
27953 support_postgresql=yes
27957 { echo "$as_me:$LINENO: result: no" >&5
27958 echo "${ECHO_T}no" >&6; }
27963 { echo "$as_me:$LINENO: result: no" >&5
27964 echo "${ECHO_T}no" >&6; }
27976 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27977 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27979 # Check whether --with-mysql was given.
27980 if test "${with_mysql+set}" = set; then
27981 withval=$with_mysql;
27982 if test "$withval" != "no"; then
27983 if test "$withval" = "yes"; then
27984 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27985 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27986 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27987 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27988 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27990 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27992 MYSQL_BINDIR=/usr/local/mysql/bin
27993 elif test -f /usr/include/mysql/mysql.h; then
27994 MYSQL_INCDIR=/usr/include/mysql
27995 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27996 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27997 MYSQL_LIBDIR=/usr/lib64/mysql
27998 elif test -f /usr/lib64/libmysqlclient_r.a \
27999 -o -f /usr/lib64/libmysqlclient_r.so; then
28000 MYSQL_LIBDIR=/usr/lib64
28001 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28002 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28003 MYSQL_LIBDIR=/usr/lib/mysql
28005 MYSQL_LIBDIR=/usr/lib
28007 MYSQL_BINDIR=/usr/bin
28008 elif test -f /usr/include/mysql.h; then
28009 MYSQL_INCDIR=/usr/include
28010 if test -f /usr/lib64/libmysqlclient_r.a \
28011 -o -f /usr/lib64/libmysqlclient_r.so; then
28012 MYSQL_LIBDIR=/usr/lib64
28014 MYSQL_LIBDIR=/usr/lib
28016 MYSQL_BINDIR=/usr/bin
28017 elif test -f /usr/local/include/mysql/mysql.h; then
28018 MYSQL_INCDIR=/usr/local/include/mysql
28019 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28020 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28021 MYSQL_LIBDIR=/usr/local/lib64/mysql
28023 MYSQL_LIBDIR=/usr/local/lib/mysql
28025 MYSQL_BINDIR=/usr/local/bin
28026 elif test -f /usr/local/include/mysql.h; then
28027 MYSQL_INCDIR=/usr/local/include
28028 if test -f /usr/local/lib64/libmysqlclient_r.a \
28029 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28030 MYSQL_LIBDIR=/usr/local/lib64
28032 MYSQL_LIBDIR=/usr/local/lib
28034 MYSQL_BINDIR=/usr/local/bin
28036 { echo "$as_me:$LINENO: result: no" >&5
28037 echo "${ECHO_T}no" >&6; }
28038 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28039 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28040 { (exit 1); exit 1; }; }
28043 if test -f $withval/include/mysql/mysql.h; then
28044 MYSQL_INCDIR=$withval/include/mysql
28045 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28046 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28047 MYSQL_LIBDIR=$withval/lib64/mysql
28048 elif test -f $withval/lib64/libmysqlclient_r.a \
28049 -o -f $withval/lib64/libmysqlclient_r.so; then
28050 MYSQL_LIBDIR=$withval/lib64
28051 elif test -f $withval/lib/libmysqlclient_r.a \
28052 -o -f $withval/lib/libmysqlclient_r.so; then
28053 MYSQL_LIBDIR=$withval/lib
28055 MYSQL_LIBDIR=$withval/lib/mysql
28057 MYSQL_BINDIR=$withval/bin
28058 elif test -f $withval/include/mysql.h; then
28059 MYSQL_INCDIR=$withval/include
28060 if test -f $withval/lib64/libmysqlclient_r.a \
28061 -o -f $withval/lib64/libmysqlclient_r.so; then
28062 MYSQL_LIBDIR=$withval/lib64
28064 MYSQL_LIBDIR=$withval/lib
28066 MYSQL_BINDIR=$withval/bin
28068 { echo "$as_me:$LINENO: result: no" >&5
28069 echo "${ECHO_T}no" >&6; }
28070 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28071 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28072 { (exit 1); exit 1; }; }
28075 SQL_INCLUDE=-I$MYSQL_INCDIR
28076 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28077 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28078 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28079 cat >>confdefs.h <<\_ACEOF
28080 #define HAVE_THREAD_SAFE_MYSQL 1
28084 SQL_BINDIR=$MYSQL_BINDIR
28085 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28087 cat >>confdefs.h <<\_ACEOF
28088 #define HAVE_MYSQL 1
28091 { echo "$as_me:$LINENO: result: yes" >&5
28092 echo "${ECHO_T}yes" >&6; }
28099 { echo "$as_me:$LINENO: result: no" >&5
28100 echo "${ECHO_T}no" >&6; }
28108 # Check whether --with-embedded-mysql was given.
28109 if test "${with_embedded_mysql+set}" = set; then
28110 withval=$with_embedded_mysql;
28111 if test "$withval" != "no"; then
28112 if test "$withval" = "yes"; then
28113 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28114 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28115 if test -d /usr/local/mysql/lib64/mysql; then
28116 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28118 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28120 MYSQL_BINDIR=/usr/local/mysql/bin
28121 elif test -f /usr/include/mysql/mysql.h; then
28122 MYSQL_INCDIR=/usr/include/mysql
28123 if test -d /usr/lib64/mysql; then
28124 MYSQL_LIBDIR=/usr/lib64/mysql
28126 MYSQL_LIBDIR=/usr/lib/mysql
28128 MYSQL_BINDIR=/usr/bin
28129 elif test -f /usr/include/mysql.h; then
28130 MYSQL_INCDIR=/usr/include
28131 if test -d /usr/lib64; then
28132 MYSQL_LIBDIR=/usr/lib64
28134 MYSQL_LIBDIR=/usr/lib
28136 MYSQL_BINDIR=/usr/bin
28137 elif test -f /usr/local/include/mysql/mysql.h; then
28138 MYSQL_INCDIR=/usr/local/include/mysql
28139 if test -d /usr/local/lib64/mysql; then
28140 MYSQL_LIBDIR=/usr/local/lib64/mysql
28142 MYSQL_LIBDIR=/usr/local/lib/mysql
28144 MYSQL_BINDIR=/usr/local/bin
28145 elif test -f /usr/local/include/mysql.h; then
28146 MYSQL_INCDIR=/usr/local/include
28147 if test -d /usr/local/lib64; then
28148 MYSQL_LIBDIR=/usr/local/lib64
28150 MYSQL_LIBDIR=/usr/local/lib
28152 MYSQL_BINDIR=/usr/local/bin
28154 { echo "$as_me:$LINENO: result: no" >&5
28155 echo "${ECHO_T}no" >&6; }
28156 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28157 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28158 { (exit 1); exit 1; }; }
28161 if test -f $withval/include/mysql/mysql.h; then
28162 MYSQL_INCDIR=$withval/include/mysql
28163 if test -d $withval/lib64/mysql; then
28164 MYSQL_LIBDIR=$withval/lib64/mysql
28166 MYSQL_LIBDIR=$withval/lib/mysql
28168 MYSQL_BINDIR=$withval/bin
28169 elif test -f $withval/include/mysql.h; then
28170 MYSQL_INCDIR=$withval/include
28171 if test -d $withval/lib64; then
28172 MYSQL_LIBDIR=$withval/lib64
28174 MYSQL_LIBDIR=$withval/lib
28176 MYSQL_BINDIR=$withval/bin
28178 { echo "$as_me:$LINENO: result: no" >&5
28179 echo "${ECHO_T}no" >&6; }
28180 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28181 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28182 { (exit 1); exit 1; }; }
28185 SQL_INCLUDE=-I$MYSQL_INCDIR
28186 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28187 SQL_BINDIR=$MYSQL_BINDIR
28188 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28190 cat >>confdefs.h <<\_ACEOF
28191 #define HAVE_MYSQL 1
28194 cat >>confdefs.h <<\_ACEOF
28195 #define HAVE_EMBEDDED_MYSQL 1
28198 { echo "$as_me:$LINENO: result: yes" >&5
28199 echo "${ECHO_T}yes" >&6; }
28206 { echo "$as_me:$LINENO: result: no" >&5
28207 echo "${ECHO_T}no" >&6; }
28223 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28224 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28226 # Check whether --with-sqlite3 was given.
28227 if test "${with_sqlite3+set}" = set; then
28228 withval=$with_sqlite3;
28229 if test "$withval" != "no"; then
28230 if test "$withval" = "yes"; then
28231 if test -f /usr/local/include/sqlite3.h; then
28232 SQLITE_INCDIR=/usr/local/include
28233 if test -d /usr/local/lib64; then
28234 SQLITE_LIBDIR=/usr/local/lib64
28236 SQLITE_LIBDIR=/usr/local/lib
28238 SQLITE_BINDIR=/usr/local/bin
28239 elif test -f /usr/include/sqlite3.h; then
28240 SQLITE_INCDIR=/usr/include
28241 if test -d /usr/lib64; then
28242 SQLITE_LIBDIR=/usr/lib64
28244 SQLITE_LIBDIR=/usr/lib
28246 SQLITE_BINDIR=/usr/bin
28247 elif test -f $prefix/include/sqlite3.h; then
28248 SQLITE_INCDIR=$prefix/include
28249 if test -d $prefix/lib64; then
28250 SQLITE_LIBDIR=$prefix/lib64
28252 SQLITE_LIBDIR=$prefix/lib
28254 SQLITE_BINDIR=$prefix/bin
28256 { echo "$as_me:$LINENO: result: no" >&5
28257 echo "${ECHO_T}no" >&6; }
28258 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28259 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28260 { (exit 1); exit 1; }; }
28263 if test -f $withval/sqlite3.h; then
28264 SQLITE_INCDIR=$withval
28265 SQLITE_LIBDIR=$withval
28266 SQLITE_BINDIR=$withval
28267 elif test -f $withval/include/sqlite3.h; then
28268 SQLITE_INCDIR=$withval/include
28269 if test -d $withval/lib64; then
28270 SQLITE_LIBDIR=$withval/lib64
28272 SQLITE_LIBDIR=$withval/lib
28274 SQLITE_BINDIR=$withval/bin
28276 { echo "$as_me:$LINENO: result: no" >&5
28277 echo "${ECHO_T}no" >&6; }
28278 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28279 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28280 { (exit 1); exit 1; }; }
28283 SQL_INCLUDE=-I$SQLITE_INCDIR
28284 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28285 SQL_BINDIR=$SQLITE_BINDIR
28286 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28288 cat >>confdefs.h <<\_ACEOF
28289 #define HAVE_SQLITE3 1
28292 { echo "$as_me:$LINENO: result: yes" >&5
28293 echo "${ECHO_T}yes" >&6; }
28295 support_sqlite3=yes
28300 { echo "$as_me:$LINENO: result: no" >&5
28301 echo "${ECHO_T}no" >&6; }
28306 { echo "$as_me:$LINENO: result: no" >&5
28307 echo "${ECHO_T}no" >&6; }
28319 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28320 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28322 # Check whether --with-sqlite was given.
28323 if test "${with_sqlite+set}" = set; then
28324 withval=$with_sqlite;
28325 if test "$withval" != "no"; then
28326 if test "$withval" = "yes"; then
28327 if test -f /usr/local/include/sqlite.h; then
28328 SQLITE_INCDIR=/usr/local/include
28329 if test -d /usr/local/lib64; then
28330 SQLITE_LIBDIR=/usr/local/lib64
28332 SQLITE_LIBDIR=/usr/local/lib
28334 SQLITE_BINDIR=/usr/local/bin
28335 elif test -f /usr/include/sqlite.h; then
28336 SQLITE_INCDIR=/usr/include
28337 if test -d /usr/lib64; then
28338 SQLITE_LIBDIR=/usr/lib64
28340 SQLITE_LIBDIR=/usr/lib
28342 SQLITE_BINDIR=/usr/bin
28343 elif test -f $prefix/include/sqlite.h; then
28344 SQLITE_INCDIR=$prefix/include
28345 if test -d $prefix/lib64; then
28346 SQLITE_LIBDIR=$prefix/lib64
28348 SQLITE_LIBDIR=$prefix/lib
28350 SQLITE_BINDIR=$prefix/bin
28352 { echo "$as_me:$LINENO: result: no" >&5
28353 echo "${ECHO_T}no" >&6; }
28354 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28355 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28356 { (exit 1); exit 1; }; }
28359 if test -f $withval/sqlite.h; then
28360 SQLITE_INCDIR=$withval
28361 SQLITE_LIBDIR=$withval
28362 SQLITE_BINDIR=$withval
28363 elif test -f $withval/include/sqlite.h; then
28364 SQLITE_INCDIR=$withval/include
28365 if test -d $withval/lib64; then
28366 SQLITE_LIBDIR=$withval/lib64
28368 SQLITE_LIBDIR=$withval/lib
28370 SQLITE_BINDIR=$withval/bin
28372 { echo "$as_me:$LINENO: result: no" >&5
28373 echo "${ECHO_T}no" >&6; }
28374 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28375 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28376 { (exit 1); exit 1; }; }
28379 SQL_INCLUDE=-I$SQLITE_INCDIR
28380 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28381 SQL_BINDIR=$SQLITE_BINDIR
28382 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28384 cat >>confdefs.h <<\_ACEOF
28385 #define HAVE_SQLITE 1
28388 { echo "$as_me:$LINENO: result: yes" >&5
28389 echo "${ECHO_T}yes" >&6; }
28396 { echo "$as_me:$LINENO: result: no" >&5
28397 echo "${ECHO_T}no" >&6; }
28402 { echo "$as_me:$LINENO: result: no" >&5
28403 echo "${ECHO_T}no" >&6; }
28415 { echo "$as_me:$LINENO: checking for DBI support" >&5
28416 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28418 # Check whether --with-dbi was given.
28419 if test "${with_dbi+set}" = set; then
28421 if test "$withval" != "no"; then
28422 if test "$withval" = "yes"; then
28423 if test -f /usr/local/include/dbi/dbi.h; then
28424 DBI_INCDIR=/usr/local/dbi/include
28425 if test -d /usr/local/lib64; then
28426 DBI_LIBDIR=/usr/local/lib64
28428 DBI_LIBDIR=/usr/local/lib
28430 DBI_BINDIR=/usr/local/bin
28431 elif test -f /usr/include/dbi/dbi.h; then
28432 DBI_INCDIR=/usr/include
28433 if test -d /usr/lib64; then
28434 DBI_LIBDIR=/usr/lib64
28436 DBI_LIBDIR=/usr/lib
28438 DBI_BINDIR=/usr/bin
28439 elif test -f $prefix/include/dbi/dbi.h; then
28440 DBI_INCDIR=$prefix/include
28441 if test -d $prefix/lib64; then
28442 DBI_LIBDIR=$prefix/lib64
28444 DBI_LIBDIR=$prefix/lib
28446 DBI_BINDIR=$prefix/bin
28448 { echo "$as_me:$LINENO: result: no" >&5
28449 echo "${ECHO_T}no" >&6; }
28450 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28451 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28452 { (exit 1); exit 1; }; }
28454 if test -d /usr/local/lib/dbd; then
28455 DRIVERDIR=/usr/local/lib/dbd
28456 if test -d /usr/local/lib64/dbd; then
28457 DRIVERDIR=/usr/local/lib64/dbd
28459 DRIVERDIR=/usr/local/lib/dbd
28461 elif test -d /usr/lib/dbd; then
28462 DRIVERDIR=/usr/lib/dbd
28463 if test -d /usr/lib64/dbd; then
28464 DRIVERDIR=/usr/lib64/dbd
28466 DRIVERDIR=/usr/lib/dbd
28468 elif test -d $prefix/lib/dbd; then
28469 if test -d $prefix/lib64/dbd; then
28470 DRIVERDIR=$prefix/lib64/dbd
28472 DRIVERDIR=$prefix/lib/dbd
28475 { echo "$as_me:$LINENO: result: no" >&5
28476 echo "${ECHO_T}no" >&6; }
28477 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28478 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28479 { (exit 1); exit 1; }; }
28482 if test -f $withval/dbi.h; then
28483 DBI_INCDIR=$withval
28484 DBI_LIBDIR=$withval
28485 DBI_BINDIR=$withval
28486 elif test -f $withval/include/dbi/dbi.h; then
28487 DBI_INCDIR=$withval/include
28488 if test -d $withval/lib64; then
28489 DBI_LIBDIR=$withval/lib64
28491 DBI_LIBDIR=$withval/lib
28493 DBI_BINDIR=$withval/bin
28495 { echo "$as_me:$LINENO: result: no" >&5
28496 echo "${ECHO_T}no" >&6; }
28497 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28498 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28499 { (exit 1); exit 1; }; }
28501 if test -d $withval/dbd; then
28502 DRIVERDIR=$withval/dbd
28503 elif test -d $withval/lib/; then
28504 if test -d $withval/lib64/dbd; then
28505 DRIVERDIR=$withval/lib64/dbd
28507 DRIVERDIR=$withval/lib/dbd
28510 { echo "$as_me:$LINENO: result: no" >&5
28511 echo "${ECHO_T}no" >&6; }
28512 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28513 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28514 { (exit 1); exit 1; }; }
28517 SQL_INCLUDE=-I$DBI_INCDIR
28518 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28519 SQL_BINDIR=$DBI_BINDIR
28520 SQL_LIB=$DBI_LIBDIR/libdbi.a
28521 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28524 cat >>confdefs.h <<\_ACEOF
28528 { echo "$as_me:$LINENO: result: yes" >&5
28529 echo "${ECHO_T}yes" >&6; }
28537 { echo "$as_me:$LINENO: result: no" >&5
28538 echo "${ECHO_T}no" >&6; }
28543 { echo "$as_me:$LINENO: result: no" >&5
28544 echo "${ECHO_T}no" >&6; }
28559 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28560 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28562 # Check whether --with-dbi-driver was given.
28563 if test "${with_dbi_driver+set}" = set; then
28564 withval=$with_dbi_driver;
28565 if test "$withval" != "no"; then
28569 if test -f /usr/local/mysql/bin/mysql; then
28570 SQL_BINDIR=/usr/local/mysql/bin
28571 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28572 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28573 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28575 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28577 elif test -f /usr/bin/mysql; then
28578 SQL_BINDIR=/usr/bin
28579 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28580 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28581 SQL_LIBDIR=/usr/lib64/mysql
28582 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28583 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28584 SQL_LIBDIR=/usr/lib/mysql
28586 SQL_LIBDIR=/usr/lib
28588 elif test -f /usr/local/bin/mysql; then
28589 SQL_BINDIR=/usr/local/bin
28590 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28591 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28592 SQL_LIBDIR=/usr/local/lib64/mysql
28593 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28594 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28595 SQL_LIBDIR=/usr/local/lib/mysql
28597 SQL_LIBDIR=/usr/local/lib
28599 elif test -f $withval/bin/mysql; then
28600 SQL_BINDIR=$withval/bin
28601 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28602 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28603 SQL_LIBDIR=$withval/lib64/mysql
28604 elif test -f $withval/lib64/libmysqlclient_r.a \
28605 -o -f $withval/lib64/libmysqlclient_r.so; then
28606 SQL_LIBDIR=$withval/lib64
28607 elif test -f $withval/lib/libmysqlclient_r.a \
28608 -o -f $withval/lib/libmysqlclient_r.so; then
28609 SQL_LIBDIR=$withval/lib/
28611 SQL_LIBDIR=$withval/lib/mysql
28614 { echo "$as_me:$LINENO: result: no" >&5
28615 echo "${ECHO_T}no" >&6; }
28616 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28617 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28618 { (exit 1); exit 1; }; }
28620 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28623 db_prog="postgresql"
28624 PG_CONFIG=`which pg_config`
28625 if test -n "$PG_CONFIG"; then
28626 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28627 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28628 elif test -f /usr/local/bin/psql; then
28629 SQL_BINDIR=/usr/local/bin
28630 if test -d /usr/local/lib64; then
28631 SQL_LIBDIR=/usr/local/lib64
28633 SQL_LIBDIR=/usr/local/lib
28635 elif test -f /usr/bin/psql; then
28636 SQL_BINDIR=/usr/local/bin
28637 if test -d /usr/lib64/postgresql; then
28638 SQL_LIBDIR=/usr/lib64/postgresql
28639 elif test -d /usr/lib/postgresql; then
28640 SQL_LIBDIR=/usr/lib/postgresql
28641 elif test -d /usr/lib64; then
28642 SQL_LIBDIR=/usr/lib64
28644 SQL_LIBDIR=/usr/lib
28646 elif test -f $withval/bin/psql; then
28647 SQL_BINDIR=$withval/bin
28648 if test -d $withval/lib64; then
28649 SQL_LIBDIR=$withval/lib64
28651 SQL_LIBDIR=$withval/lib
28654 { echo "$as_me:$LINENO: result: no" >&5
28655 echo "${ECHO_T}no" >&6; }
28656 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28657 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28658 { (exit 1); exit 1; }; }
28660 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28664 if test -f /usr/local/bin/sqlite; then
28665 SQL_BINDIR=/usr/local/bin
28666 if test -d /usr/local/lib64; then
28667 SQL_LIBDIR=/usr/local/lib64
28669 SQL_LIBDIR=/usr/local/lib
28671 elif test -f /usr/bin/sqlite; then
28672 SQL_BINDIR=/usr/bin
28673 if test -d /usr/lib64; then
28674 SQL_LIBDIR=/usr/lib64
28676 SQL_LIBDIR=/usr/lib
28678 elif test -f $withval/bin/sqlite; then
28679 SQL_BINDIR=$withval/bin
28680 if test -d $withval/lib64; then
28681 SQL_LIBDIR=$withval/lib64
28683 SQL_LIBDIR=$withval/lib
28686 { echo "$as_me:$LINENO: result: no" >&5
28687 echo "${ECHO_T}no" >&6; }
28688 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28689 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28690 { (exit 1); exit 1; }; }
28692 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28696 if test -f /usr/local/bin/sqlite3; then
28697 SQL_BINDIR=/usr/local/bin
28698 if test -d /usr/local/lib64; then
28699 SQL_LIBDIR=/usr/local/lib64
28701 SQL_LIBDIR=/usr/local/lib
28703 elif test -f /usr/bin/sqlite3; then
28704 SQL_BINDIR=/usr/bin
28705 if test -d /usr/lib64; then
28706 SQL_LIBDIR=/usr/lib64
28708 SQL_LIBDIR=/usr/lib
28710 elif test -f $withval/bin/sqlite3; then
28711 SQL_BINDIR=$withval/bin
28712 if test -d $withval/lib64; then
28713 SQL_LIBDIR=$withval/lib64
28715 SQL_LIBDIR=$withval/lib
28718 { echo "$as_me:$LINENO: result: no" >&5
28719 echo "${ECHO_T}no" >&6; }
28720 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28721 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28722 { (exit 1); exit 1; }; }
28724 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28727 { echo "$as_me:$LINENO: result: no" >&5
28728 echo "${ECHO_T}no" >&6; }
28729 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28730 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28731 { (exit 1); exit 1; }; }
28735 { echo "$as_me:$LINENO: result: yes" >&5
28736 echo "${ECHO_T}yes" >&6; }
28739 { echo "$as_me:$LINENO: result: no" >&5
28740 echo "${ECHO_T}no" >&6; }
28745 { echo "$as_me:$LINENO: result: no" >&5
28746 echo "${ECHO_T}no" >&6; }
28759 support_batch_insert=no
28760 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28762 if test $pkg = 0; then
28763 support_batch_insert=yes
28764 # Check whether --enable-batch-insert was given.
28765 if test "${enable_batch_insert+set}" = set; then
28766 enableval=$enable_batch_insert;
28767 if test x$enableval = xno; then
28768 support_batch_insert=no
28770 support_batch_insert=yes
28778 if test x$DB_TYPE = xpostgresql; then
28779 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28781 if test $pkg != 0; then
28782 support_batch_insert=no
28786 if test x$DB_TYPE = xdbi; then
28790 if test $DB_PROG = postgresql; then
28791 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28795 if test $DB_PROG = mysql; then
28796 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28800 if test $DB_PROG = sqlite3; then
28801 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28805 if test $pkg = 0; then
28806 # Check whether --enable-batch-insert was given.
28807 if test "${enable_batch_insert+set}" = set; then
28808 enableval=$enable_batch_insert;
28809 if test x$enableval = xno; then
28810 support_batch_insert=no
28812 support_batch_insert=yes
28825 if test $support_batch_insert = yes ; then
28827 cat >>confdefs.h <<\_ACEOF
28828 #define HAVE_BATCH_FILE_INSERT 1
28833 cat >>confdefs.h <<\_ACEOF
28834 #define PROTOTYPES 1
28838 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28839 if test -z "$CCOPTS"; then
28840 CCOPTS='-g -O2 -Wall'
28847 largefile_support="no"
28849 # Check whether --enable-largefile was given.
28850 if test "${enable_largefile+set}" = set; then
28851 enableval=$enable_largefile;
28854 if test "$enable_largefile" != no; then
28855 if test -n "$ac_tool_prefix"; then
28856 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28857 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28860 if test "${ac_cv_prog_GETCONF+set}" = set; then
28861 echo $ECHO_N "(cached) $ECHO_C" >&6
28863 if test -n "$GETCONF"; then
28864 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28867 for as_dir in $PATH
28870 test -z "$as_dir" && as_dir=.
28871 for ac_exec_ext in '' $ac_executable_extensions; do
28872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28873 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28883 GETCONF=$ac_cv_prog_GETCONF
28884 if test -n "$GETCONF"; then
28885 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28886 echo "${ECHO_T}$GETCONF" >&6; }
28888 { echo "$as_me:$LINENO: result: no" >&5
28889 echo "${ECHO_T}no" >&6; }
28894 if test -z "$ac_cv_prog_GETCONF"; then
28895 ac_ct_GETCONF=$GETCONF
28896 # Extract the first word of "getconf", so it can be a program name with args.
28897 set dummy getconf; ac_word=$2
28898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28900 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28901 echo $ECHO_N "(cached) $ECHO_C" >&6
28903 if test -n "$ac_ct_GETCONF"; then
28904 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28907 for as_dir in $PATH
28910 test -z "$as_dir" && as_dir=.
28911 for ac_exec_ext in '' $ac_executable_extensions; do
28912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28913 ac_cv_prog_ac_ct_GETCONF="getconf"
28914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28923 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28924 if test -n "$ac_ct_GETCONF"; then
28925 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28926 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28928 { echo "$as_me:$LINENO: result: no" >&5
28929 echo "${ECHO_T}no" >&6; }
28932 if test "x$ac_ct_GETCONF" = x; then
28935 case $cross_compiling:$ac_tool_warned in
28937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28938 whose name does not start with the host triplet. If you think this
28939 configuration is useful to you, please write to autoconf@gnu.org." >&5
28940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28941 whose name does not start with the host triplet. If you think this
28942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28943 ac_tool_warned=yes ;;
28945 GETCONF=$ac_ct_GETCONF
28948 GETCONF="$ac_cv_prog_GETCONF"
28951 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28952 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28953 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28954 echo $ECHO_N "(cached) $ECHO_C" >&6
28956 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28957 ac_cv_sys_largefile_CFLAGS=no
28959 # IRIX 6.2 and later require cc -n32.
28960 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28961 if test "$GCC" != yes; then
28962 ac_cv_sys_largefile_CFLAGS=-n32
28965 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28966 cat >conftest.$ac_ext <<_ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h. */
28981 rm -f conftest.$ac_objext conftest$ac_exeext
28982 if { (ac_try="$ac_link"
28983 case "(($ac_try" in
28984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985 *) ac_try_echo=$ac_try;;
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988 (eval "$ac_link") 2>conftest.er1
28990 grep -v '^ *+' conftest.er1 >conftest.err
28992 cat conftest.err >&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); } && {
28995 test -z "$ac_c_werror_flag" ||
28996 test ! -s conftest.err
28997 } && test -s conftest$ac_exeext &&
28998 $as_test_x conftest$ac_exeext; then
29001 echo "$as_me: failed program was:" >&5
29002 sed 's/^/| /' conftest.$ac_ext >&5
29004 ac_cv_sys_largefile_CFLAGS=no
29007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29008 conftest$ac_exeext conftest.$ac_ext
29013 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29014 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29015 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29016 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29017 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29018 echo $ECHO_N "(cached) $ECHO_C" >&6
29020 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29021 ac_cv_sys_largefile_LDFLAGS=no
29025 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29026 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29027 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29028 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29029 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29030 echo $ECHO_N "(cached) $ECHO_C" >&6
29032 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29033 ac_cv_sys_largefile_LIBS=no
29037 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29038 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29040 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29043 -D_FILE_OFFSET_BITS=*) ;;
29044 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29045 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29050 case "$CPPFLAGS" in
29051 '') CPPFLAGS="$ac_flag" ;;
29052 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29060 '') CFLAGS="$ac_flag" ;;
29061 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29066 case "$ac_cv_sys_largefile_LDFLAGS" in
29070 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29071 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29074 case "$ac_cv_sys_largefile_LIBS" in
29078 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29079 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29082 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29083 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29084 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29085 echo $ECHO_N "(cached) $ECHO_C" >&6
29087 ac_cv_sys_file_offset_bits=no
29088 ac_cv_sys_file_offset_bits=64
29089 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29091 -D_FILE_OFFSET_BITS)
29092 ac_cv_sys_file_offset_bits=1 ;;
29093 -D_FILE_OFFSET_BITS=*)
29094 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29099 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29100 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29101 if test "$ac_cv_sys_file_offset_bits" != no; then
29103 cat >>confdefs.h <<_ACEOF
29104 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29108 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29109 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29110 if test "${ac_cv_sys_largefile_source+set}" = set; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29113 ac_cv_sys_largefile_source=no
29114 ac_cv_sys_largefile_source=1
29115 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29117 -D_LARGEFILE_SOURCE)
29118 ac_cv_sys_largefile_source=1 ;;
29119 -D_LARGEFILE_SOURCE=*)
29120 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29125 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29126 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29127 if test "$ac_cv_sys_largefile_source" != no; then
29129 cat >>confdefs.h <<_ACEOF
29130 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29134 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29135 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29136 if test "${ac_cv_sys_large_files+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29139 ac_cv_sys_large_files=no
29140 ac_cv_sys_large_files=1
29141 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29144 ac_cv_sys_large_files=1 ;;
29146 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29151 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29152 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29153 if test "$ac_cv_sys_large_files" != no; then
29155 cat >>confdefs.h <<_ACEOF
29156 #define _LARGE_FILES $ac_cv_sys_large_files
29163 { echo "$as_me:$LINENO: checking for X" >&5
29164 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29167 # Check whether --with-x was given.
29168 if test "${with_x+set}" = set; then
29172 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29173 if test "x$with_x" = xno; then
29174 # The user explicitly disabled X.
29177 case $x_includes,$x_libraries in #(
29178 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29179 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29180 { (exit 1); exit 1; }; };; #(
29181 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29182 echo $ECHO_N "(cached) $ECHO_C" >&6
29184 # One or both of the vars are not set, and there is no cached value.
29185 ac_x_includes=no ac_x_libraries=no
29186 rm -f -r conftest.dir
29187 if mkdir conftest.dir; then
29189 cat >Imakefile <<'_ACEOF'
29191 @echo incroot='${INCROOT}'
29193 @echo usrlibdir='${USRLIBDIR}'
29195 @echo libdir='${LIBDIR}'
29197 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29199 for ac_var in incroot usrlibdir libdir; do
29200 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29202 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29203 for ac_extension in a so sl; do
29204 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29205 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29206 ac_im_usrlibdir=$ac_im_libdir; break
29209 # Screen out bogus values from the imake configuration. They are
29210 # bogus both because they are the default anyway, and because
29211 # using them would break gcc on systems where it needs fixed includes.
29212 case $ac_im_incroot in
29213 /usr/include) ac_x_includes= ;;
29214 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29216 case $ac_im_usrlibdir in
29217 /usr/lib | /lib) ;;
29218 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29222 rm -f -r conftest.dir
29225 # Standard set of common directories for X headers.
29226 # Check X11 before X11Rn because it is often a symlink to the current release.
29238 /usr/local/X11/include
29239 /usr/local/X11R6/include
29240 /usr/local/X11R5/include
29241 /usr/local/X11R4/include
29243 /usr/local/include/X11
29244 /usr/local/include/X11R6
29245 /usr/local/include/X11R5
29246 /usr/local/include/X11R4
29250 /usr/XFree86/include/X11
29254 /usr/unsupported/include
29255 /usr/athena/include
29256 /usr/local/x11r5/include
29257 /usr/lpp/Xamples/include
29259 /usr/openwin/include
29260 /usr/openwin/share/include'
29262 if test "$ac_x_includes" = no; then
29263 # Guess where to find include files, by looking for Xlib.h.
29264 # First, try using that file with no special directory specified.
29265 cat >conftest.$ac_ext <<_ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h. */
29271 #include <X11/Xlib.h>
29273 if { (ac_try="$ac_cpp conftest.$ac_ext"
29274 case "(($ac_try" in
29275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29276 *) ac_try_echo=$ac_try;;
29278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29281 grep -v '^ *+' conftest.er1 >conftest.err
29283 cat conftest.err >&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } >/dev/null && {
29286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29287 test ! -s conftest.err
29289 # We can compile using X headers with no special include directory.
29292 echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29295 for ac_dir in $ac_x_header_dirs; do
29296 if test -r "$ac_dir/X11/Xlib.h"; then
29297 ac_x_includes=$ac_dir
29303 rm -f conftest.err conftest.$ac_ext
29304 fi # $ac_x_includes = no
29306 if test "$ac_x_libraries" = no; then
29307 # Check for the libraries.
29308 # See if we find them without any special options.
29309 # Don't add to $LIBS permanently.
29312 cat >conftest.$ac_ext <<_ACEOF
29315 cat confdefs.h >>conftest.$ac_ext
29316 cat >>conftest.$ac_ext <<_ACEOF
29317 /* end confdefs.h. */
29318 #include <X11/Xlib.h>
29327 rm -f conftest.$ac_objext conftest$ac_exeext
29328 if { (ac_try="$ac_link"
29329 case "(($ac_try" in
29330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331 *) ac_try_echo=$ac_try;;
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334 (eval "$ac_link") 2>conftest.er1
29336 grep -v '^ *+' conftest.er1 >conftest.err
29338 cat conftest.err >&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } && {
29341 test -z "$ac_c_werror_flag" ||
29342 test ! -s conftest.err
29343 } && test -s conftest$ac_exeext &&
29344 $as_test_x conftest$ac_exeext; then
29346 # We can link X programs with no special library path.
29349 echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.$ac_ext >&5
29353 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29355 # Don't even attempt the hair of trying to link an X program!
29356 for ac_extension in a so sl; do
29357 if test -r "$ac_dir/libX11.$ac_extension"; then
29358 ac_x_libraries=$ac_dir
29365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29366 conftest$ac_exeext conftest.$ac_ext
29367 fi # $ac_x_libraries = no
29369 case $ac_x_includes,$ac_x_libraries in #(
29370 no,* | *,no | *\'*)
29371 # Didn't find X, or a directory has "'" in its name.
29372 ac_cv_have_x="have_x=no";; #(
29374 # Record where we found X for the cache.
29375 ac_cv_have_x="have_x=yes\
29376 ac_x_includes='$ac_x_includes'\
29377 ac_x_libraries='$ac_x_libraries'"
29383 eval "$ac_cv_have_x"
29386 if test "$have_x" != yes; then
29387 { echo "$as_me:$LINENO: result: $have_x" >&5
29388 echo "${ECHO_T}$have_x" >&6; }
29391 # If each of the values was on the command line, it overrides each guess.
29392 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29393 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29394 # Update the cache value to reflect the command line values.
29395 ac_cv_have_x="have_x=yes\
29396 ac_x_includes='$x_includes'\
29397 ac_x_libraries='$x_libraries'"
29398 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29399 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29402 if test "$no_x" = yes; then
29403 # Not all programs may use this symbol, but it does not hurt to define it.
29405 cat >>confdefs.h <<\_ACEOF
29406 #define X_DISPLAY_MISSING 1
29409 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29411 if test -n "$x_includes"; then
29412 X_CFLAGS="$X_CFLAGS -I$x_includes"
29415 # It would also be nice to do this for all -L options, not just this one.
29416 if test -n "$x_libraries"; then
29417 X_LIBS="$X_LIBS -L$x_libraries"
29418 # For Solaris; some versions of Sun CC require a space after -R and
29419 # others require no space. Words are not sufficient . . . .
29420 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29421 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29422 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29423 ac_xsave_c_werror_flag=$ac_c_werror_flag
29424 ac_c_werror_flag=yes
29425 cat >conftest.$ac_ext <<_ACEOF
29428 cat confdefs.h >>conftest.$ac_ext
29429 cat >>conftest.$ac_ext <<_ACEOF
29430 /* end confdefs.h. */
29440 rm -f conftest.$ac_objext conftest$ac_exeext
29441 if { (ac_try="$ac_link"
29442 case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447 (eval "$ac_link") 2>conftest.er1
29449 grep -v '^ *+' conftest.er1 >conftest.err
29451 cat conftest.err >&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); } && {
29454 test -z "$ac_c_werror_flag" ||
29455 test ! -s conftest.err
29456 } && test -s conftest$ac_exeext &&
29457 $as_test_x conftest$ac_exeext; then
29458 { echo "$as_me:$LINENO: result: no" >&5
29459 echo "${ECHO_T}no" >&6; }
29460 X_LIBS="$X_LIBS -R$x_libraries"
29462 echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29465 LIBS="$ac_xsave_LIBS -R $x_libraries"
29466 cat >conftest.$ac_ext <<_ACEOF
29469 cat confdefs.h >>conftest.$ac_ext
29470 cat >>conftest.$ac_ext <<_ACEOF
29471 /* end confdefs.h. */
29481 rm -f conftest.$ac_objext conftest$ac_exeext
29482 if { (ac_try="$ac_link"
29483 case "(($ac_try" in
29484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485 *) ac_try_echo=$ac_try;;
29487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488 (eval "$ac_link") 2>conftest.er1
29490 grep -v '^ *+' conftest.er1 >conftest.err
29492 cat conftest.err >&5
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } && {
29495 test -z "$ac_c_werror_flag" ||
29496 test ! -s conftest.err
29497 } && test -s conftest$ac_exeext &&
29498 $as_test_x conftest$ac_exeext; then
29499 { echo "$as_me:$LINENO: result: yes" >&5
29500 echo "${ECHO_T}yes" >&6; }
29501 X_LIBS="$X_LIBS -R $x_libraries"
29503 echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.$ac_ext >&5
29506 { echo "$as_me:$LINENO: result: neither works" >&5
29507 echo "${ECHO_T}neither works" >&6; }
29510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29511 conftest$ac_exeext conftest.$ac_ext
29514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29515 conftest$ac_exeext conftest.$ac_ext
29516 ac_c_werror_flag=$ac_xsave_c_werror_flag
29517 LIBS=$ac_xsave_LIBS
29520 # Check for system-dependent libraries X programs must link with.
29521 # Do this before checking for the system-independent R6 libraries
29522 # (-lICE), since we may need -lsocket or whatever for X linking.
29524 if test "$ISC" = yes; then
29525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29527 # Martyn Johnson says this is needed for Ultrix, if the X
29528 # libraries were built with DECnet support. And Karl Berry says
29529 # the Alpha needs dnet_stub (dnet does not exist).
29530 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29531 cat >conftest.$ac_ext <<_ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h. */
29538 /* Override any GCC internal prototype to avoid an error.
29539 Use char because int might match the return type of a GCC
29540 builtin and then its argument prototype would still apply. */
29544 char XOpenDisplay ();
29548 return XOpenDisplay ();
29553 rm -f conftest.$ac_objext conftest$ac_exeext
29554 if { (ac_try="$ac_link"
29555 case "(($ac_try" in
29556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_link") 2>conftest.er1
29562 grep -v '^ *+' conftest.er1 >conftest.err
29564 cat conftest.err >&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); } && {
29567 test -z "$ac_c_werror_flag" ||
29568 test ! -s conftest.err
29569 } && test -s conftest$ac_exeext &&
29570 $as_test_x conftest$ac_exeext; then
29573 echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29576 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29577 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29578 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29579 echo $ECHO_N "(cached) $ECHO_C" >&6
29581 ac_check_lib_save_LIBS=$LIBS
29582 LIBS="-ldnet $LIBS"
29583 cat >conftest.$ac_ext <<_ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h. */
29590 /* Override any GCC internal prototype to avoid an error.
29591 Use char because int might match the return type of a GCC
29592 builtin and then its argument prototype would still apply. */
29600 return dnet_ntoa ();
29605 rm -f conftest.$ac_objext conftest$ac_exeext
29606 if { (ac_try="$ac_link"
29607 case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_link") 2>conftest.er1
29614 grep -v '^ *+' conftest.er1 >conftest.err
29616 cat conftest.err >&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); } && {
29619 test -z "$ac_c_werror_flag" ||
29620 test ! -s conftest.err
29621 } && test -s conftest$ac_exeext &&
29622 $as_test_x conftest$ac_exeext; then
29623 ac_cv_lib_dnet_dnet_ntoa=yes
29625 echo "$as_me: failed program was:" >&5
29626 sed 's/^/| /' conftest.$ac_ext >&5
29628 ac_cv_lib_dnet_dnet_ntoa=no
29631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29632 conftest$ac_exeext conftest.$ac_ext
29633 LIBS=$ac_check_lib_save_LIBS
29635 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29636 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29637 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29638 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29641 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29642 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29643 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29644 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29645 echo $ECHO_N "(cached) $ECHO_C" >&6
29647 ac_check_lib_save_LIBS=$LIBS
29648 LIBS="-ldnet_stub $LIBS"
29649 cat >conftest.$ac_ext <<_ACEOF
29652 cat confdefs.h >>conftest.$ac_ext
29653 cat >>conftest.$ac_ext <<_ACEOF
29654 /* end confdefs.h. */
29656 /* Override any GCC internal prototype to avoid an error.
29657 Use char because int might match the return type of a GCC
29658 builtin and then its argument prototype would still apply. */
29666 return dnet_ntoa ();
29671 rm -f conftest.$ac_objext conftest$ac_exeext
29672 if { (ac_try="$ac_link"
29673 case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_link") 2>conftest.er1
29680 grep -v '^ *+' conftest.er1 >conftest.err
29682 cat conftest.err >&5
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); } && {
29685 test -z "$ac_c_werror_flag" ||
29686 test ! -s conftest.err
29687 } && test -s conftest$ac_exeext &&
29688 $as_test_x conftest$ac_exeext; then
29689 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29691 echo "$as_me: failed program was:" >&5
29692 sed 's/^/| /' conftest.$ac_ext >&5
29694 ac_cv_lib_dnet_stub_dnet_ntoa=no
29697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29698 conftest$ac_exeext conftest.$ac_ext
29699 LIBS=$ac_check_lib_save_LIBS
29701 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29702 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29703 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29704 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29711 conftest$ac_exeext conftest.$ac_ext
29712 LIBS="$ac_xsave_LIBS"
29714 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29715 # to get the SysV transport functions.
29716 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29718 # The nsl library prevents programs from opening the X display
29719 # on Irix 5.2, according to T.E. Dickey.
29720 # The functions gethostbyname, getservbyname, and inet_addr are
29721 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29722 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29723 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29724 if test "${ac_cv_func_gethostbyname+set}" = set; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 cat >conftest.$ac_ext <<_ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h. */
29733 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29735 #define gethostbyname innocuous_gethostbyname
29737 /* System header to define __stub macros and hopefully few prototypes,
29738 which can conflict with char gethostbyname (); below.
29739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29740 <limits.h> exists even on freestanding compilers. */
29743 # include <limits.h>
29745 # include <assert.h>
29748 #undef gethostbyname
29750 /* Override any GCC internal prototype to avoid an error.
29751 Use char because int might match the return type of a GCC
29752 builtin and then its argument prototype would still apply. */
29756 char gethostbyname ();
29757 /* The GNU C library defines this for functions which it implements
29758 to always fail with ENOSYS. Some functions are actually named
29759 something starting with __ and the normal name is an alias. */
29760 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29767 return gethostbyname ();
29772 rm -f conftest.$ac_objext conftest$ac_exeext
29773 if { (ac_try="$ac_link"
29774 case "(($ac_try" in
29775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776 *) ac_try_echo=$ac_try;;
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779 (eval "$ac_link") 2>conftest.er1
29781 grep -v '^ *+' conftest.er1 >conftest.err
29783 cat conftest.err >&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } && {
29786 test -z "$ac_c_werror_flag" ||
29787 test ! -s conftest.err
29788 } && test -s conftest$ac_exeext &&
29789 $as_test_x conftest$ac_exeext; then
29790 ac_cv_func_gethostbyname=yes
29792 echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29795 ac_cv_func_gethostbyname=no
29798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29799 conftest$ac_exeext conftest.$ac_ext
29801 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29802 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29804 if test $ac_cv_func_gethostbyname = no; then
29805 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29806 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29807 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29808 echo $ECHO_N "(cached) $ECHO_C" >&6
29810 ac_check_lib_save_LIBS=$LIBS
29812 cat >conftest.$ac_ext <<_ACEOF
29815 cat confdefs.h >>conftest.$ac_ext
29816 cat >>conftest.$ac_ext <<_ACEOF
29817 /* end confdefs.h. */
29819 /* Override any GCC internal prototype to avoid an error.
29820 Use char because int might match the return type of a GCC
29821 builtin and then its argument prototype would still apply. */
29825 char gethostbyname ();
29829 return gethostbyname ();
29834 rm -f conftest.$ac_objext conftest$ac_exeext
29835 if { (ac_try="$ac_link"
29836 case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_link") 2>conftest.er1
29843 grep -v '^ *+' conftest.er1 >conftest.err
29845 cat conftest.err >&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); } && {
29848 test -z "$ac_c_werror_flag" ||
29849 test ! -s conftest.err
29850 } && test -s conftest$ac_exeext &&
29851 $as_test_x conftest$ac_exeext; then
29852 ac_cv_lib_nsl_gethostbyname=yes
29854 echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29857 ac_cv_lib_nsl_gethostbyname=no
29860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29861 conftest$ac_exeext conftest.$ac_ext
29862 LIBS=$ac_check_lib_save_LIBS
29864 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29866 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29870 if test $ac_cv_lib_nsl_gethostbyname = no; then
29871 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29872 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29873 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29874 echo $ECHO_N "(cached) $ECHO_C" >&6
29876 ac_check_lib_save_LIBS=$LIBS
29878 cat >conftest.$ac_ext <<_ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h. */
29885 /* Override any GCC internal prototype to avoid an error.
29886 Use char because int might match the return type of a GCC
29887 builtin and then its argument prototype would still apply. */
29891 char gethostbyname ();
29895 return gethostbyname ();
29900 rm -f conftest.$ac_objext conftest$ac_exeext
29901 if { (ac_try="$ac_link"
29902 case "(($ac_try" in
29903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29904 *) ac_try_echo=$ac_try;;
29906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29907 (eval "$ac_link") 2>conftest.er1
29909 grep -v '^ *+' conftest.er1 >conftest.err
29911 cat conftest.err >&5
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); } && {
29914 test -z "$ac_c_werror_flag" ||
29915 test ! -s conftest.err
29916 } && test -s conftest$ac_exeext &&
29917 $as_test_x conftest$ac_exeext; then
29918 ac_cv_lib_bsd_gethostbyname=yes
29920 echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29923 ac_cv_lib_bsd_gethostbyname=no
29926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29927 conftest$ac_exeext conftest.$ac_ext
29928 LIBS=$ac_check_lib_save_LIBS
29930 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29931 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29932 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29939 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29940 # socket/setsockopt and other routines are undefined under SCO ODT
29941 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29942 # on later versions), says Simon Leinen: it contains gethostby*
29943 # variants that don't use the name server (or something). -lsocket
29944 # must be given before -lnsl if both are needed. We assume that
29945 # if connect needs -lnsl, so does gethostbyname.
29946 { echo "$as_me:$LINENO: checking for connect" >&5
29947 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29948 if test "${ac_cv_func_connect+set}" = set; then
29949 echo $ECHO_N "(cached) $ECHO_C" >&6
29951 cat >conftest.$ac_ext <<_ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h. */
29957 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29959 #define connect innocuous_connect
29961 /* System header to define __stub macros and hopefully few prototypes,
29962 which can conflict with char connect (); below.
29963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29964 <limits.h> exists even on freestanding compilers. */
29967 # include <limits.h>
29969 # include <assert.h>
29974 /* Override any GCC internal prototype to avoid an error.
29975 Use char because int might match the return type of a GCC
29976 builtin and then its argument prototype would still apply. */
29981 /* The GNU C library defines this for functions which it implements
29982 to always fail with ENOSYS. Some functions are actually named
29983 something starting with __ and the normal name is an alias. */
29984 #if defined __stub_connect || defined __stub___connect
29996 rm -f conftest.$ac_objext conftest$ac_exeext
29997 if { (ac_try="$ac_link"
29998 case "(($ac_try" in
29999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000 *) ac_try_echo=$ac_try;;
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003 (eval "$ac_link") 2>conftest.er1
30005 grep -v '^ *+' conftest.er1 >conftest.err
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } && {
30010 test -z "$ac_c_werror_flag" ||
30011 test ! -s conftest.err
30012 } && test -s conftest$ac_exeext &&
30013 $as_test_x conftest$ac_exeext; then
30014 ac_cv_func_connect=yes
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30019 ac_cv_func_connect=no
30022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30023 conftest$ac_exeext conftest.$ac_ext
30025 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30026 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30028 if test $ac_cv_func_connect = no; then
30029 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30030 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30031 if test "${ac_cv_lib_socket_connect+set}" = set; then
30032 echo $ECHO_N "(cached) $ECHO_C" >&6
30034 ac_check_lib_save_LIBS=$LIBS
30035 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30036 cat >conftest.$ac_ext <<_ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h. */
30043 /* Override any GCC internal prototype to avoid an error.
30044 Use char because int might match the return type of a GCC
30045 builtin and then its argument prototype would still apply. */
30058 rm -f conftest.$ac_objext conftest$ac_exeext
30059 if { (ac_try="$ac_link"
30060 case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_link") 2>conftest.er1
30067 grep -v '^ *+' conftest.er1 >conftest.err
30069 cat conftest.err >&5
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); } && {
30072 test -z "$ac_c_werror_flag" ||
30073 test ! -s conftest.err
30074 } && test -s conftest$ac_exeext &&
30075 $as_test_x conftest$ac_exeext; then
30076 ac_cv_lib_socket_connect=yes
30078 echo "$as_me: failed program was:" >&5
30079 sed 's/^/| /' conftest.$ac_ext >&5
30081 ac_cv_lib_socket_connect=no
30084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30085 conftest$ac_exeext conftest.$ac_ext
30086 LIBS=$ac_check_lib_save_LIBS
30088 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30089 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30090 if test $ac_cv_lib_socket_connect = yes; then
30091 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30096 # Guillermo Gomez says -lposix is necessary on A/UX.
30097 { echo "$as_me:$LINENO: checking for remove" >&5
30098 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30099 if test "${ac_cv_func_remove+set}" = set; then
30100 echo $ECHO_N "(cached) $ECHO_C" >&6
30102 cat >conftest.$ac_ext <<_ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h. */
30108 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30110 #define remove innocuous_remove
30112 /* System header to define __stub macros and hopefully few prototypes,
30113 which can conflict with char remove (); below.
30114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30115 <limits.h> exists even on freestanding compilers. */
30118 # include <limits.h>
30120 # include <assert.h>
30125 /* Override any GCC internal prototype to avoid an error.
30126 Use char because int might match the return type of a GCC
30127 builtin and then its argument prototype would still apply. */
30132 /* The GNU C library defines this for functions which it implements
30133 to always fail with ENOSYS. Some functions are actually named
30134 something starting with __ and the normal name is an alias. */
30135 #if defined __stub_remove || defined __stub___remove
30147 rm -f conftest.$ac_objext conftest$ac_exeext
30148 if { (ac_try="$ac_link"
30149 case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_link") 2>conftest.er1
30156 grep -v '^ *+' conftest.er1 >conftest.err
30158 cat conftest.err >&5
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); } && {
30161 test -z "$ac_c_werror_flag" ||
30162 test ! -s conftest.err
30163 } && test -s conftest$ac_exeext &&
30164 $as_test_x conftest$ac_exeext; then
30165 ac_cv_func_remove=yes
30167 echo "$as_me: failed program was:" >&5
30168 sed 's/^/| /' conftest.$ac_ext >&5
30170 ac_cv_func_remove=no
30173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30174 conftest$ac_exeext conftest.$ac_ext
30176 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30177 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30179 if test $ac_cv_func_remove = no; then
30180 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30181 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30182 if test "${ac_cv_lib_posix_remove+set}" = set; then
30183 echo $ECHO_N "(cached) $ECHO_C" >&6
30185 ac_check_lib_save_LIBS=$LIBS
30186 LIBS="-lposix $LIBS"
30187 cat >conftest.$ac_ext <<_ACEOF
30190 cat confdefs.h >>conftest.$ac_ext
30191 cat >>conftest.$ac_ext <<_ACEOF
30192 /* end confdefs.h. */
30194 /* Override any GCC internal prototype to avoid an error.
30195 Use char because int might match the return type of a GCC
30196 builtin and then its argument prototype would still apply. */
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (ac_try="$ac_link"
30211 case "(($ac_try" in
30212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30213 *) ac_try_echo=$ac_try;;
30215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30216 (eval "$ac_link") 2>conftest.er1
30218 grep -v '^ *+' conftest.er1 >conftest.err
30220 cat conftest.err >&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); } && {
30223 test -z "$ac_c_werror_flag" ||
30224 test ! -s conftest.err
30225 } && test -s conftest$ac_exeext &&
30226 $as_test_x conftest$ac_exeext; then
30227 ac_cv_lib_posix_remove=yes
30229 echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30232 ac_cv_lib_posix_remove=no
30235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30236 conftest$ac_exeext conftest.$ac_ext
30237 LIBS=$ac_check_lib_save_LIBS
30239 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30240 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30241 if test $ac_cv_lib_posix_remove = yes; then
30242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30247 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30248 { echo "$as_me:$LINENO: checking for shmat" >&5
30249 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30250 if test "${ac_cv_func_shmat+set}" = set; then
30251 echo $ECHO_N "(cached) $ECHO_C" >&6
30253 cat >conftest.$ac_ext <<_ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h. */
30259 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30261 #define shmat innocuous_shmat
30263 /* System header to define __stub macros and hopefully few prototypes,
30264 which can conflict with char shmat (); below.
30265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30266 <limits.h> exists even on freestanding compilers. */
30269 # include <limits.h>
30271 # include <assert.h>
30276 /* Override any GCC internal prototype to avoid an error.
30277 Use char because int might match the return type of a GCC
30278 builtin and then its argument prototype would still apply. */
30283 /* The GNU C library defines this for functions which it implements
30284 to always fail with ENOSYS. Some functions are actually named
30285 something starting with __ and the normal name is an alias. */
30286 #if defined __stub_shmat || defined __stub___shmat
30298 rm -f conftest.$ac_objext conftest$ac_exeext
30299 if { (ac_try="$ac_link"
30300 case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_link") 2>conftest.er1
30307 grep -v '^ *+' conftest.er1 >conftest.err
30309 cat conftest.err >&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); } && {
30312 test -z "$ac_c_werror_flag" ||
30313 test ! -s conftest.err
30314 } && test -s conftest$ac_exeext &&
30315 $as_test_x conftest$ac_exeext; then
30316 ac_cv_func_shmat=yes
30318 echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30321 ac_cv_func_shmat=no
30324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30325 conftest$ac_exeext conftest.$ac_ext
30327 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30328 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30330 if test $ac_cv_func_shmat = no; then
30331 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30332 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30333 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30334 echo $ECHO_N "(cached) $ECHO_C" >&6
30336 ac_check_lib_save_LIBS=$LIBS
30338 cat >conftest.$ac_ext <<_ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h. */
30345 /* Override any GCC internal prototype to avoid an error.
30346 Use char because int might match the return type of a GCC
30347 builtin and then its argument prototype would still apply. */
30360 rm -f conftest.$ac_objext conftest$ac_exeext
30361 if { (ac_try="$ac_link"
30362 case "(($ac_try" in
30363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364 *) ac_try_echo=$ac_try;;
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367 (eval "$ac_link") 2>conftest.er1
30369 grep -v '^ *+' conftest.er1 >conftest.err
30371 cat conftest.err >&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); } && {
30374 test -z "$ac_c_werror_flag" ||
30375 test ! -s conftest.err
30376 } && test -s conftest$ac_exeext &&
30377 $as_test_x conftest$ac_exeext; then
30378 ac_cv_lib_ipc_shmat=yes
30380 echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30383 ac_cv_lib_ipc_shmat=no
30386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30387 conftest$ac_exeext conftest.$ac_ext
30388 LIBS=$ac_check_lib_save_LIBS
30390 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30391 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30392 if test $ac_cv_lib_ipc_shmat = yes; then
30393 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30399 # Check for libraries that X11R6 Xt/Xaw programs need.
30400 ac_save_LDFLAGS=$LDFLAGS
30401 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30402 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30403 # check for ICE first), but we must link in the order -lSM -lICE or
30404 # we get undefined symbols. So assume we have SM if we have ICE.
30405 # These have to be linked with before -lX11, unlike the other
30406 # libraries we check for below, so use a different variable.
30407 # John Interrante, Karl Berry
30408 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30409 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30410 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30411 echo $ECHO_N "(cached) $ECHO_C" >&6
30413 ac_check_lib_save_LIBS=$LIBS
30414 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30415 cat >conftest.$ac_ext <<_ACEOF
30418 cat confdefs.h >>conftest.$ac_ext
30419 cat >>conftest.$ac_ext <<_ACEOF
30420 /* end confdefs.h. */
30422 /* Override any GCC internal prototype to avoid an error.
30423 Use char because int might match the return type of a GCC
30424 builtin and then its argument prototype would still apply. */
30428 char IceConnectionNumber ();
30432 return IceConnectionNumber ();
30437 rm -f conftest.$ac_objext conftest$ac_exeext
30438 if { (ac_try="$ac_link"
30439 case "(($ac_try" in
30440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441 *) ac_try_echo=$ac_try;;
30443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444 (eval "$ac_link") 2>conftest.er1
30446 grep -v '^ *+' conftest.er1 >conftest.err
30448 cat conftest.err >&5
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); } && {
30451 test -z "$ac_c_werror_flag" ||
30452 test ! -s conftest.err
30453 } && test -s conftest$ac_exeext &&
30454 $as_test_x conftest$ac_exeext; then
30455 ac_cv_lib_ICE_IceConnectionNumber=yes
30457 echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.$ac_ext >&5
30460 ac_cv_lib_ICE_IceConnectionNumber=no
30463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30464 conftest$ac_exeext conftest.$ac_ext
30465 LIBS=$ac_check_lib_save_LIBS
30467 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30468 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30469 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30470 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30473 LDFLAGS=$ac_save_LDFLAGS
30541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30548 ac_res=`eval echo '${'$as_ac_Header'}'`
30549 { echo "$as_me:$LINENO: result: $ac_res" >&5
30550 echo "${ECHO_T}$ac_res" >&6; }
30552 # Is the header compilable?
30553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30555 cat >conftest.$ac_ext <<_ACEOF
30558 cat confdefs.h >>conftest.$ac_ext
30559 cat >>conftest.$ac_ext <<_ACEOF
30560 /* end confdefs.h. */
30561 $ac_includes_default
30562 #include <$ac_header>
30564 rm -f conftest.$ac_objext
30565 if { (ac_try="$ac_compile"
30566 case "(($ac_try" in
30567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30568 *) ac_try_echo=$ac_try;;
30570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30571 (eval "$ac_compile") 2>conftest.er1
30573 grep -v '^ *+' conftest.er1 >conftest.err
30575 cat conftest.err >&5
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); } && {
30578 test -z "$ac_c_werror_flag" ||
30579 test ! -s conftest.err
30580 } && test -s conftest.$ac_objext; then
30581 ac_header_compiler=yes
30583 echo "$as_me: failed program was:" >&5
30584 sed 's/^/| /' conftest.$ac_ext >&5
30586 ac_header_compiler=no
30589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30591 echo "${ECHO_T}$ac_header_compiler" >&6; }
30593 # Is the header present?
30594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30596 cat >conftest.$ac_ext <<_ACEOF
30599 cat confdefs.h >>conftest.$ac_ext
30600 cat >>conftest.$ac_ext <<_ACEOF
30601 /* end confdefs.h. */
30602 #include <$ac_header>
30604 if { (ac_try="$ac_cpp conftest.$ac_ext"
30605 case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30612 grep -v '^ *+' conftest.er1 >conftest.err
30614 cat conftest.err >&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } >/dev/null && {
30617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30618 test ! -s conftest.err
30620 ac_header_preproc=yes
30622 echo "$as_me: failed program was:" >&5
30623 sed 's/^/| /' conftest.$ac_ext >&5
30625 ac_header_preproc=no
30628 rm -f conftest.err conftest.$ac_ext
30629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30630 echo "${ECHO_T}$ac_header_preproc" >&6; }
30632 # So? What about this header?
30633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30639 ac_header_preproc=yes
30642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30660 echo $ECHO_N "(cached) $ECHO_C" >&6
30662 eval "$as_ac_Header=\$ac_header_preproc"
30664 ac_res=`eval echo '${'$as_ac_Header'}'`
30665 { echo "$as_me:$LINENO: result: $ac_res" >&5
30666 echo "${ECHO_T}$ac_res" >&6; }
30669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30670 cat >>confdefs.h <<_ACEOF
30671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30678 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30679 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30680 if test "${ac_cv_header_stdc+set}" = set; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
30683 cat >conftest.$ac_ext <<_ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h. */
30689 #include <stdlib.h>
30690 #include <stdarg.h>
30691 #include <string.h>
30702 rm -f conftest.$ac_objext
30703 if { (ac_try="$ac_compile"
30704 case "(($ac_try" in
30705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30706 *) ac_try_echo=$ac_try;;
30708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30709 (eval "$ac_compile") 2>conftest.er1
30711 grep -v '^ *+' conftest.er1 >conftest.err
30713 cat conftest.err >&5
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); } && {
30716 test -z "$ac_c_werror_flag" ||
30717 test ! -s conftest.err
30718 } && test -s conftest.$ac_objext; then
30719 ac_cv_header_stdc=yes
30721 echo "$as_me: failed program was:" >&5
30722 sed 's/^/| /' conftest.$ac_ext >&5
30724 ac_cv_header_stdc=no
30727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30729 if test $ac_cv_header_stdc = yes; then
30730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30731 cat >conftest.$ac_ext <<_ACEOF
30734 cat confdefs.h >>conftest.$ac_ext
30735 cat >>conftest.$ac_ext <<_ACEOF
30736 /* end confdefs.h. */
30737 #include <string.h>
30740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30741 $EGREP "memchr" >/dev/null 2>&1; then
30744 ac_cv_header_stdc=no
30750 if test $ac_cv_header_stdc = yes; then
30751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30752 cat >conftest.$ac_ext <<_ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h. */
30758 #include <stdlib.h>
30761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30762 $EGREP "free" >/dev/null 2>&1; then
30765 ac_cv_header_stdc=no
30771 if test $ac_cv_header_stdc = yes; then
30772 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30773 if test "$cross_compiling" = yes; then
30776 cat >conftest.$ac_ext <<_ACEOF
30779 cat confdefs.h >>conftest.$ac_ext
30780 cat >>conftest.$ac_ext <<_ACEOF
30781 /* end confdefs.h. */
30783 #include <stdlib.h>
30784 #if ((' ' & 0x0FF) == 0x020)
30785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30788 # define ISLOWER(c) \
30789 (('a' <= (c) && (c) <= 'i') \
30790 || ('j' <= (c) && (c) <= 'r') \
30791 || ('s' <= (c) && (c) <= 'z'))
30792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30800 for (i = 0; i < 256; i++)
30801 if (XOR (islower (i), ISLOWER (i))
30802 || toupper (i) != TOUPPER (i))
30807 rm -f conftest$ac_exeext
30808 if { (ac_try="$ac_link"
30809 case "(($ac_try" in
30810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811 *) ac_try_echo=$ac_try;;
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814 (eval "$ac_link") 2>&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30818 { (case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_try") 2>&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; }; then
30829 echo "$as_me: program exited with status $ac_status" >&5
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30833 ( exit $ac_status )
30834 ac_cv_header_stdc=no
30836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30842 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30843 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30844 if test $ac_cv_header_stdc = yes; then
30846 cat >>confdefs.h <<\_ACEOF
30847 #define STDC_HEADERS 1
30852 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30853 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30854 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30855 echo $ECHO_N "(cached) $ECHO_C" >&6
30857 cat >conftest.$ac_ext <<_ACEOF
30860 cat confdefs.h >>conftest.$ac_ext
30861 cat >>conftest.$ac_ext <<_ACEOF
30862 /* end confdefs.h. */
30863 #include <sys/types.h>
30867 return makedev(0, 0);
30872 rm -f conftest.$ac_objext conftest$ac_exeext
30873 if { (ac_try="$ac_link"
30874 case "(($ac_try" in
30875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876 *) ac_try_echo=$ac_try;;
30878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879 (eval "$ac_link") 2>conftest.er1
30881 grep -v '^ *+' conftest.er1 >conftest.err
30883 cat conftest.err >&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); } && {
30886 test -z "$ac_c_werror_flag" ||
30887 test ! -s conftest.err
30888 } && test -s conftest$ac_exeext &&
30889 $as_test_x conftest$ac_exeext; then
30890 ac_cv_header_sys_types_h_makedev=yes
30892 echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30895 ac_cv_header_sys_types_h_makedev=no
30898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30899 conftest$ac_exeext conftest.$ac_ext
30902 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30903 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30905 if test $ac_cv_header_sys_types_h_makedev = no; then
30906 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30907 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30908 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30909 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30910 echo $ECHO_N "(cached) $ECHO_C" >&6
30912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30913 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30915 # Is the header compilable?
30916 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30917 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30918 cat >conftest.$ac_ext <<_ACEOF
30921 cat confdefs.h >>conftest.$ac_ext
30922 cat >>conftest.$ac_ext <<_ACEOF
30923 /* end confdefs.h. */
30924 $ac_includes_default
30925 #include <sys/mkdev.h>
30927 rm -f conftest.$ac_objext
30928 if { (ac_try="$ac_compile"
30929 case "(($ac_try" in
30930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30931 *) ac_try_echo=$ac_try;;
30933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30934 (eval "$ac_compile") 2>conftest.er1
30936 grep -v '^ *+' conftest.er1 >conftest.err
30938 cat conftest.err >&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); } && {
30941 test -z "$ac_c_werror_flag" ||
30942 test ! -s conftest.err
30943 } && test -s conftest.$ac_objext; then
30944 ac_header_compiler=yes
30946 echo "$as_me: failed program was:" >&5
30947 sed 's/^/| /' conftest.$ac_ext >&5
30949 ac_header_compiler=no
30952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30954 echo "${ECHO_T}$ac_header_compiler" >&6; }
30956 # Is the header present?
30957 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30958 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30959 cat >conftest.$ac_ext <<_ACEOF
30962 cat confdefs.h >>conftest.$ac_ext
30963 cat >>conftest.$ac_ext <<_ACEOF
30964 /* end confdefs.h. */
30965 #include <sys/mkdev.h>
30967 if { (ac_try="$ac_cpp conftest.$ac_ext"
30968 case "(($ac_try" in
30969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970 *) ac_try_echo=$ac_try;;
30972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30975 grep -v '^ *+' conftest.er1 >conftest.err
30977 cat conftest.err >&5
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); } >/dev/null && {
30980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30981 test ! -s conftest.err
30983 ac_header_preproc=yes
30985 echo "$as_me: failed program was:" >&5
30986 sed 's/^/| /' conftest.$ac_ext >&5
30988 ac_header_preproc=no
30991 rm -f conftest.err conftest.$ac_ext
30992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30993 echo "${ECHO_T}$ac_header_preproc" >&6; }
30995 # So? What about this header?
30996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30998 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30999 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31000 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31001 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31002 ac_header_preproc=yes
31005 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31006 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31007 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31008 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31009 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31010 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31011 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31012 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31013 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31014 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31015 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31016 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31020 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31021 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31022 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31023 echo $ECHO_N "(cached) $ECHO_C" >&6
31025 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31027 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31028 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31031 if test $ac_cv_header_sys_mkdev_h = yes; then
31033 cat >>confdefs.h <<\_ACEOF
31034 #define MAJOR_IN_MKDEV 1
31041 if test $ac_cv_header_sys_mkdev_h = no; then
31042 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31043 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31044 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31045 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31046 echo $ECHO_N "(cached) $ECHO_C" >&6
31048 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31049 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31051 # Is the header compilable?
31052 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31053 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31054 cat >conftest.$ac_ext <<_ACEOF
31057 cat confdefs.h >>conftest.$ac_ext
31058 cat >>conftest.$ac_ext <<_ACEOF
31059 /* end confdefs.h. */
31060 $ac_includes_default
31061 #include <sys/sysmacros.h>
31063 rm -f conftest.$ac_objext
31064 if { (ac_try="$ac_compile"
31065 case "(($ac_try" in
31066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31067 *) ac_try_echo=$ac_try;;
31069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070 (eval "$ac_compile") 2>conftest.er1
31072 grep -v '^ *+' conftest.er1 >conftest.err
31074 cat conftest.err >&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); } && {
31077 test -z "$ac_c_werror_flag" ||
31078 test ! -s conftest.err
31079 } && test -s conftest.$ac_objext; then
31080 ac_header_compiler=yes
31082 echo "$as_me: failed program was:" >&5
31083 sed 's/^/| /' conftest.$ac_ext >&5
31085 ac_header_compiler=no
31088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31090 echo "${ECHO_T}$ac_header_compiler" >&6; }
31092 # Is the header present?
31093 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31094 echo $ECHO_N "checking sys/sysmacros.h presence... $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 <sys/sysmacros.h>
31103 if { (ac_try="$ac_cpp conftest.$ac_ext"
31104 case "(($ac_try" in
31105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106 *) ac_try_echo=$ac_try;;
31108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31111 grep -v '^ *+' conftest.er1 >conftest.err
31113 cat conftest.err >&5
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } >/dev/null && {
31116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31117 test ! -s conftest.err
31119 ac_header_preproc=yes
31121 echo "$as_me: failed program was:" >&5
31122 sed 's/^/| /' conftest.$ac_ext >&5
31124 ac_header_preproc=no
31127 rm -f conftest.err conftest.$ac_ext
31128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31129 echo "${ECHO_T}$ac_header_preproc" >&6; }
31131 # So? What about this header?
31132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31134 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31135 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31136 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31137 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31138 ac_header_preproc=yes
31141 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31142 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31143 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31144 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31145 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31146 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31147 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31148 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31149 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31150 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31151 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31152 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31156 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31157 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31158 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31159 echo $ECHO_N "(cached) $ECHO_C" >&6
31161 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31163 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31164 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31167 if test $ac_cv_header_sys_sysmacros_h = yes; then
31169 cat >>confdefs.h <<\_ACEOF
31170 #define MAJOR_IN_SYSMACROS 1
31184 ac_header_dirent=no
31185 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31186 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31187 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31188 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31190 echo $ECHO_N "(cached) $ECHO_C" >&6
31192 cat >conftest.$ac_ext <<_ACEOF
31195 cat confdefs.h >>conftest.$ac_ext
31196 cat >>conftest.$ac_ext <<_ACEOF
31197 /* end confdefs.h. */
31198 #include <sys/types.h>
31210 rm -f conftest.$ac_objext
31211 if { (ac_try="$ac_compile"
31212 case "(($ac_try" in
31213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31214 *) ac_try_echo=$ac_try;;
31216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31217 (eval "$ac_compile") 2>conftest.er1
31219 grep -v '^ *+' conftest.er1 >conftest.err
31221 cat conftest.err >&5
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); } && {
31224 test -z "$ac_c_werror_flag" ||
31225 test ! -s conftest.err
31226 } && test -s conftest.$ac_objext; then
31227 eval "$as_ac_Header=yes"
31229 echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31232 eval "$as_ac_Header=no"
31235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31237 ac_res=`eval echo '${'$as_ac_Header'}'`
31238 { echo "$as_me:$LINENO: result: $ac_res" >&5
31239 echo "${ECHO_T}$ac_res" >&6; }
31240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31241 cat >>confdefs.h <<_ACEOF
31242 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31245 ac_header_dirent=$ac_hdr; break
31249 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31250 if test $ac_header_dirent = dirent.h; then
31251 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31252 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31253 if test "${ac_cv_search_opendir+set}" = set; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
31256 ac_func_search_save_LIBS=$LIBS
31257 cat >conftest.$ac_ext <<_ACEOF
31260 cat confdefs.h >>conftest.$ac_ext
31261 cat >>conftest.$ac_ext <<_ACEOF
31262 /* end confdefs.h. */
31264 /* Override any GCC internal prototype to avoid an error.
31265 Use char because int might match the return type of a GCC
31266 builtin and then its argument prototype would still apply. */
31279 for ac_lib in '' dir; do
31280 if test -z "$ac_lib"; then
31281 ac_res="none required"
31284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31286 rm -f conftest.$ac_objext conftest$ac_exeext
31287 if { (ac_try="$ac_link"
31288 case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_link") 2>conftest.er1
31295 grep -v '^ *+' conftest.er1 >conftest.err
31297 cat conftest.err >&5
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); } && {
31300 test -z "$ac_c_werror_flag" ||
31301 test ! -s conftest.err
31302 } && test -s conftest$ac_exeext &&
31303 $as_test_x conftest$ac_exeext; then
31304 ac_cv_search_opendir=$ac_res
31306 echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31314 if test "${ac_cv_search_opendir+set}" = set; then
31318 if test "${ac_cv_search_opendir+set}" = set; then
31321 ac_cv_search_opendir=no
31323 rm conftest.$ac_ext
31324 LIBS=$ac_func_search_save_LIBS
31326 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31327 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31328 ac_res=$ac_cv_search_opendir
31329 if test "$ac_res" != no; then
31330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31335 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31336 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31337 if test "${ac_cv_search_opendir+set}" = set; then
31338 echo $ECHO_N "(cached) $ECHO_C" >&6
31340 ac_func_search_save_LIBS=$LIBS
31341 cat >conftest.$ac_ext <<_ACEOF
31344 cat confdefs.h >>conftest.$ac_ext
31345 cat >>conftest.$ac_ext <<_ACEOF
31346 /* end confdefs.h. */
31348 /* Override any GCC internal prototype to avoid an error.
31349 Use char because int might match the return type of a GCC
31350 builtin and then its argument prototype would still apply. */
31363 for ac_lib in '' x; do
31364 if test -z "$ac_lib"; then
31365 ac_res="none required"
31368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31370 rm -f conftest.$ac_objext conftest$ac_exeext
31371 if { (ac_try="$ac_link"
31372 case "(($ac_try" in
31373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31374 *) ac_try_echo=$ac_try;;
31376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31377 (eval "$ac_link") 2>conftest.er1
31379 grep -v '^ *+' conftest.er1 >conftest.err
31381 cat conftest.err >&5
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); } && {
31384 test -z "$ac_c_werror_flag" ||
31385 test ! -s conftest.err
31386 } && test -s conftest$ac_exeext &&
31387 $as_test_x conftest$ac_exeext; then
31388 ac_cv_search_opendir=$ac_res
31390 echo "$as_me: failed program was:" >&5
31391 sed 's/^/| /' conftest.$ac_ext >&5
31396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31398 if test "${ac_cv_search_opendir+set}" = set; then
31402 if test "${ac_cv_search_opendir+set}" = set; then
31405 ac_cv_search_opendir=no
31407 rm conftest.$ac_ext
31408 LIBS=$ac_func_search_save_LIBS
31410 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31411 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31412 ac_res=$ac_cv_search_opendir
31413 if test "$ac_res" != no; then
31414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31420 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31421 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31422 if test "${ac_cv_header_stat_broken+set}" = set; then
31423 echo $ECHO_N "(cached) $ECHO_C" >&6
31425 cat >conftest.$ac_ext <<_ACEOF
31428 cat confdefs.h >>conftest.$ac_ext
31429 cat >>conftest.$ac_ext <<_ACEOF
31430 /* end confdefs.h. */
31431 #include <sys/types.h>
31432 #include <sys/stat.h>
31434 #if defined S_ISBLK && defined S_IFDIR
31435 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31438 #if defined S_ISBLK && defined S_IFCHR
31439 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31442 #if defined S_ISLNK && defined S_IFREG
31443 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31446 #if defined S_ISSOCK && defined S_IFREG
31447 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31451 rm -f conftest.$ac_objext
31452 if { (ac_try="$ac_compile"
31453 case "(($ac_try" in
31454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455 *) ac_try_echo=$ac_try;;
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458 (eval "$ac_compile") 2>conftest.er1
31460 grep -v '^ *+' conftest.er1 >conftest.err
31462 cat conftest.err >&5
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); } && {
31465 test -z "$ac_c_werror_flag" ||
31466 test ! -s conftest.err
31467 } && test -s conftest.$ac_objext; then
31468 ac_cv_header_stat_broken=no
31470 echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31473 ac_cv_header_stat_broken=yes
31476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31478 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31479 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31480 if test $ac_cv_header_stat_broken = yes; then
31482 cat >>confdefs.h <<\_ACEOF
31483 #define STAT_MACROS_BROKEN 1
31488 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31489 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31490 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 cat >conftest.$ac_ext <<_ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 #include <sys/types.h>
31500 #include <sys/wait.h>
31501 #ifndef WEXITSTATUS
31502 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31505 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31513 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31518 rm -f conftest.$ac_objext
31519 if { (ac_try="$ac_compile"
31520 case "(($ac_try" in
31521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31522 *) ac_try_echo=$ac_try;;
31524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31525 (eval "$ac_compile") 2>conftest.er1
31527 grep -v '^ *+' conftest.er1 >conftest.err
31529 cat conftest.err >&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); } && {
31532 test -z "$ac_c_werror_flag" ||
31533 test ! -s conftest.err
31534 } && test -s conftest.$ac_objext; then
31535 ac_cv_header_sys_wait_h=yes
31537 echo "$as_me: failed program was:" >&5
31538 sed 's/^/| /' conftest.$ac_ext >&5
31540 ac_cv_header_sys_wait_h=no
31543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31545 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31546 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31547 if test $ac_cv_header_sys_wait_h = yes; then
31549 cat >>confdefs.h <<\_ACEOF
31550 #define HAVE_SYS_WAIT_H 1
31555 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31556 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31557 if test "${ac_cv_header_time+set}" = set; then
31558 echo $ECHO_N "(cached) $ECHO_C" >&6
31560 cat >conftest.$ac_ext <<_ACEOF
31563 cat confdefs.h >>conftest.$ac_ext
31564 cat >>conftest.$ac_ext <<_ACEOF
31565 /* end confdefs.h. */
31566 #include <sys/types.h>
31567 #include <sys/time.h>
31573 if ((struct tm *) 0)
31579 rm -f conftest.$ac_objext
31580 if { (ac_try="$ac_compile"
31581 case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_compile") 2>conftest.er1
31588 grep -v '^ *+' conftest.er1 >conftest.err
31590 cat conftest.err >&5
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); } && {
31593 test -z "$ac_c_werror_flag" ||
31594 test ! -s conftest.err
31595 } && test -s conftest.$ac_objext; then
31596 ac_cv_header_time=yes
31598 echo "$as_me: failed program was:" >&5
31599 sed 's/^/| /' conftest.$ac_ext >&5
31601 ac_cv_header_time=no
31604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31606 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31607 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31608 if test $ac_cv_header_time = yes; then
31610 cat >>confdefs.h <<\_ACEOF
31611 #define TIME_WITH_SYS_TIME 1
31616 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31617 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31618 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31619 echo $ECHO_N "(cached) $ECHO_C" >&6
31621 cat >conftest.$ac_ext <<_ACEOF
31624 cat confdefs.h >>conftest.$ac_ext
31625 cat >>conftest.$ac_ext <<_ACEOF
31626 /* end confdefs.h. */
31627 $ac_includes_default
31631 static struct stat ac_aggr;
31632 if (ac_aggr.st_blksize)
31638 rm -f conftest.$ac_objext
31639 if { (ac_try="$ac_compile"
31640 case "(($ac_try" in
31641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31642 *) ac_try_echo=$ac_try;;
31644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31645 (eval "$ac_compile") 2>conftest.er1
31647 grep -v '^ *+' conftest.er1 >conftest.err
31649 cat conftest.err >&5
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); } && {
31652 test -z "$ac_c_werror_flag" ||
31653 test ! -s conftest.err
31654 } && test -s conftest.$ac_objext; then
31655 ac_cv_member_struct_stat_st_blksize=yes
31657 echo "$as_me: failed program was:" >&5
31658 sed 's/^/| /' conftest.$ac_ext >&5
31660 cat >conftest.$ac_ext <<_ACEOF
31663 cat confdefs.h >>conftest.$ac_ext
31664 cat >>conftest.$ac_ext <<_ACEOF
31665 /* end confdefs.h. */
31666 $ac_includes_default
31670 static struct stat ac_aggr;
31671 if (sizeof ac_aggr.st_blksize)
31677 rm -f conftest.$ac_objext
31678 if { (ac_try="$ac_compile"
31679 case "(($ac_try" in
31680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681 *) ac_try_echo=$ac_try;;
31683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684 (eval "$ac_compile") 2>conftest.er1
31686 grep -v '^ *+' conftest.er1 >conftest.err
31688 cat conftest.err >&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } && {
31691 test -z "$ac_c_werror_flag" ||
31692 test ! -s conftest.err
31693 } && test -s conftest.$ac_objext; then
31694 ac_cv_member_struct_stat_st_blksize=yes
31696 echo "$as_me: failed program was:" >&5
31697 sed 's/^/| /' conftest.$ac_ext >&5
31699 ac_cv_member_struct_stat_st_blksize=no
31702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31708 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31709 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31711 cat >>confdefs.h <<_ACEOF
31712 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31716 cat >>confdefs.h <<\_ACEOF
31717 #define HAVE_ST_BLKSIZE 1
31723 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31724 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31725 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31726 echo $ECHO_N "(cached) $ECHO_C" >&6
31728 cat >conftest.$ac_ext <<_ACEOF
31731 cat confdefs.h >>conftest.$ac_ext
31732 cat >>conftest.$ac_ext <<_ACEOF
31733 /* end confdefs.h. */
31734 $ac_includes_default
31738 static struct stat ac_aggr;
31739 if (ac_aggr.st_blocks)
31745 rm -f conftest.$ac_objext
31746 if { (ac_try="$ac_compile"
31747 case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752 (eval "$ac_compile") 2>conftest.er1
31754 grep -v '^ *+' conftest.er1 >conftest.err
31756 cat conftest.err >&5
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); } && {
31759 test -z "$ac_c_werror_flag" ||
31760 test ! -s conftest.err
31761 } && test -s conftest.$ac_objext; then
31762 ac_cv_member_struct_stat_st_blocks=yes
31764 echo "$as_me: failed program was:" >&5
31765 sed 's/^/| /' conftest.$ac_ext >&5
31767 cat >conftest.$ac_ext <<_ACEOF
31770 cat confdefs.h >>conftest.$ac_ext
31771 cat >>conftest.$ac_ext <<_ACEOF
31772 /* end confdefs.h. */
31773 $ac_includes_default
31777 static struct stat ac_aggr;
31778 if (sizeof ac_aggr.st_blocks)
31784 rm -f conftest.$ac_objext
31785 if { (ac_try="$ac_compile"
31786 case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_compile") 2>conftest.er1
31793 grep -v '^ *+' conftest.er1 >conftest.err
31795 cat conftest.err >&5
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); } && {
31798 test -z "$ac_c_werror_flag" ||
31799 test ! -s conftest.err
31800 } && test -s conftest.$ac_objext; then
31801 ac_cv_member_struct_stat_st_blocks=yes
31803 echo "$as_me: failed program was:" >&5
31804 sed 's/^/| /' conftest.$ac_ext >&5
31806 ac_cv_member_struct_stat_st_blocks=no
31809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31814 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31815 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31816 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31818 cat >>confdefs.h <<_ACEOF
31819 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31823 cat >>confdefs.h <<\_ACEOF
31824 #define HAVE_ST_BLOCKS 1
31828 case " $LIBOBJS " in
31829 *" fileblocks.$ac_objext "* ) ;;
31830 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31837 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31838 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31839 if test "${ac_cv_struct_tm+set}" = set; then
31840 echo $ECHO_N "(cached) $ECHO_C" >&6
31842 cat >conftest.$ac_ext <<_ACEOF
31845 cat confdefs.h >>conftest.$ac_ext
31846 cat >>conftest.$ac_ext <<_ACEOF
31847 /* end confdefs.h. */
31848 #include <sys/types.h>
31855 int *p = &tm.tm_sec;
31861 rm -f conftest.$ac_objext
31862 if { (ac_try="$ac_compile"
31863 case "(($ac_try" in
31864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31865 *) ac_try_echo=$ac_try;;
31867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868 (eval "$ac_compile") 2>conftest.er1
31870 grep -v '^ *+' conftest.er1 >conftest.err
31872 cat conftest.err >&5
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); } && {
31875 test -z "$ac_c_werror_flag" ||
31876 test ! -s conftest.err
31877 } && test -s conftest.$ac_objext; then
31878 ac_cv_struct_tm=time.h
31880 echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31883 ac_cv_struct_tm=sys/time.h
31886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31888 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31889 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31890 if test $ac_cv_struct_tm = sys/time.h; then
31892 cat >>confdefs.h <<\_ACEOF
31893 #define TM_IN_SYS_TIME 1
31898 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31899 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31900 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31901 echo $ECHO_N "(cached) $ECHO_C" >&6
31903 cat >conftest.$ac_ext <<_ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h. */
31909 #include <sys/types.h>
31910 #include <$ac_cv_struct_tm>
31916 static struct tm ac_aggr;
31917 if (ac_aggr.tm_zone)
31923 rm -f conftest.$ac_objext
31924 if { (ac_try="$ac_compile"
31925 case "(($ac_try" in
31926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927 *) ac_try_echo=$ac_try;;
31929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930 (eval "$ac_compile") 2>conftest.er1
31932 grep -v '^ *+' conftest.er1 >conftest.err
31934 cat conftest.err >&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); } && {
31937 test -z "$ac_c_werror_flag" ||
31938 test ! -s conftest.err
31939 } && test -s conftest.$ac_objext; then
31940 ac_cv_member_struct_tm_tm_zone=yes
31942 echo "$as_me: failed program was:" >&5
31943 sed 's/^/| /' conftest.$ac_ext >&5
31945 cat >conftest.$ac_ext <<_ACEOF
31948 cat confdefs.h >>conftest.$ac_ext
31949 cat >>conftest.$ac_ext <<_ACEOF
31950 /* end confdefs.h. */
31951 #include <sys/types.h>
31952 #include <$ac_cv_struct_tm>
31958 static struct tm ac_aggr;
31959 if (sizeof ac_aggr.tm_zone)
31965 rm -f conftest.$ac_objext
31966 if { (ac_try="$ac_compile"
31967 case "(($ac_try" in
31968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31969 *) ac_try_echo=$ac_try;;
31971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31972 (eval "$ac_compile") 2>conftest.er1
31974 grep -v '^ *+' conftest.er1 >conftest.err
31976 cat conftest.err >&5
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); } && {
31979 test -z "$ac_c_werror_flag" ||
31980 test ! -s conftest.err
31981 } && test -s conftest.$ac_objext; then
31982 ac_cv_member_struct_tm_tm_zone=yes
31984 echo "$as_me: failed program was:" >&5
31985 sed 's/^/| /' conftest.$ac_ext >&5
31987 ac_cv_member_struct_tm_tm_zone=no
31990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31995 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31996 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31997 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31999 cat >>confdefs.h <<_ACEOF
32000 #define HAVE_STRUCT_TM_TM_ZONE 1
32006 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32008 cat >>confdefs.h <<\_ACEOF
32009 #define HAVE_TM_ZONE 1
32013 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32014 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32015 if test "${ac_cv_have_decl_tzname+set}" = set; then
32016 echo $ECHO_N "(cached) $ECHO_C" >&6
32018 cat >conftest.$ac_ext <<_ACEOF
32021 cat confdefs.h >>conftest.$ac_ext
32022 cat >>conftest.$ac_ext <<_ACEOF
32023 /* end confdefs.h. */
32037 rm -f conftest.$ac_objext
32038 if { (ac_try="$ac_compile"
32039 case "(($ac_try" in
32040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32041 *) ac_try_echo=$ac_try;;
32043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32044 (eval "$ac_compile") 2>conftest.er1
32046 grep -v '^ *+' conftest.er1 >conftest.err
32048 cat conftest.err >&5
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); } && {
32051 test -z "$ac_c_werror_flag" ||
32052 test ! -s conftest.err
32053 } && test -s conftest.$ac_objext; then
32054 ac_cv_have_decl_tzname=yes
32056 echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32059 ac_cv_have_decl_tzname=no
32062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32064 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32065 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32066 if test $ac_cv_have_decl_tzname = yes; then
32068 cat >>confdefs.h <<_ACEOF
32069 #define HAVE_DECL_TZNAME 1
32074 cat >>confdefs.h <<_ACEOF
32075 #define HAVE_DECL_TZNAME 0
32082 { echo "$as_me:$LINENO: checking for tzname" >&5
32083 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32084 if test "${ac_cv_var_tzname+set}" = set; then
32085 echo $ECHO_N "(cached) $ECHO_C" >&6
32087 cat >conftest.$ac_ext <<_ACEOF
32090 cat confdefs.h >>conftest.$ac_ext
32091 cat >>conftest.$ac_ext <<_ACEOF
32092 /* end confdefs.h. */
32094 #if !HAVE_DECL_TZNAME
32095 extern char *tzname[];
32101 return tzname[0][0];
32106 rm -f conftest.$ac_objext conftest$ac_exeext
32107 if { (ac_try="$ac_link"
32108 case "(($ac_try" in
32109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110 *) ac_try_echo=$ac_try;;
32112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113 (eval "$ac_link") 2>conftest.er1
32115 grep -v '^ *+' conftest.er1 >conftest.err
32117 cat conftest.err >&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } && {
32120 test -z "$ac_c_werror_flag" ||
32121 test ! -s conftest.err
32122 } && test -s conftest$ac_exeext &&
32123 $as_test_x conftest$ac_exeext; then
32124 ac_cv_var_tzname=yes
32126 echo "$as_me: failed program was:" >&5
32127 sed 's/^/| /' conftest.$ac_ext >&5
32129 ac_cv_var_tzname=no
32132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32133 conftest$ac_exeext conftest.$ac_ext
32135 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32136 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32137 if test $ac_cv_var_tzname = yes; then
32139 cat >>confdefs.h <<\_ACEOF
32140 #define HAVE_TZNAME 1
32147 { echo "$as_me:$LINENO: checking for utime.h" >&5
32148 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32149 if test "${ba_cv_header_utime_h+set}" = set; then
32150 echo $ECHO_N "(cached) $ECHO_C" >&6
32153 cat >conftest.$ac_ext <<_ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h. */
32160 #include <sys/types.h>
32173 rm -f conftest.$ac_objext
32174 if { (ac_try="$ac_compile"
32175 case "(($ac_try" in
32176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32177 *) ac_try_echo=$ac_try;;
32179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32180 (eval "$ac_compile") 2>conftest.er1
32182 grep -v '^ *+' conftest.er1 >conftest.err
32184 cat conftest.err >&5
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); } && {
32187 test -z "$ac_c_werror_flag" ||
32188 test ! -s conftest.err
32189 } && test -s conftest.$ac_objext; then
32191 ba_cv_header_utime_h=yes
32194 echo "$as_me: failed program was:" >&5
32195 sed 's/^/| /' conftest.$ac_ext >&5
32198 ba_cv_header_utime_h=no
32203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32207 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32208 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32209 test $ba_cv_header_utime_h = yes &&
32210 cat >>confdefs.h <<\_ACEOF
32211 #define HAVE_UTIME_H 1
32215 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32216 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32217 if test "${ba_cv_header_socklen_t+set}" = set; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32221 cat >conftest.$ac_ext <<_ACEOF
32224 cat confdefs.h >>conftest.$ac_ext
32225 cat >>conftest.$ac_ext <<_ACEOF
32226 /* end confdefs.h. */
32228 #include <sys/types.h>
32229 #include <sys/socket.h>
32241 rm -f conftest.$ac_objext
32242 if { (ac_try="$ac_compile"
32243 case "(($ac_try" in
32244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245 *) ac_try_echo=$ac_try;;
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248 (eval "$ac_compile") 2>conftest.er1
32250 grep -v '^ *+' conftest.er1 >conftest.err
32252 cat conftest.err >&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } && {
32255 test -z "$ac_c_werror_flag" ||
32256 test ! -s conftest.err
32257 } && test -s conftest.$ac_objext; then
32259 ba_cv_header_socklen_t=yes
32262 echo "$as_me: failed program was:" >&5
32263 sed 's/^/| /' conftest.$ac_ext >&5
32266 ba_cv_header_socklen_t=no
32271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32275 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32276 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32277 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32278 #define HAVE_SOCKLEN_T 1
32282 { echo "$as_me:$LINENO: checking for bigendian" >&5
32283 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32284 if test "${ba_cv_bigendian+set}" = set; then
32285 echo $ECHO_N "(cached) $ECHO_C" >&6
32288 if test "$cross_compiling" = yes; then
32294 cat >conftest.$ac_ext <<_ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h. */
32301 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32304 rm -f conftest$ac_exeext
32305 if { (ac_try="$ac_link"
32306 case "(($ac_try" in
32307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308 *) ac_try_echo=$ac_try;;
32310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311 (eval "$ac_link") 2>&5
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32315 { (case "(($ac_try" in
32316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317 *) ac_try_echo=$ac_try;;
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320 (eval "$ac_try") 2>&5
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); }; }; then
32325 ba_cv_bigendian=yes
32328 echo "$as_me: program exited with status $ac_status" >&5
32329 echo "$as_me: failed program was:" >&5
32330 sed 's/^/| /' conftest.$ac_ext >&5
32332 ( exit $ac_status )
32337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32344 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32345 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32346 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32347 #define HAVE_BIGENDIAN 1
32352 ac_cpp='$CXXCPP $CPPFLAGS'
32353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32357 { echo "$as_me:$LINENO: checking for typeof" >&5
32358 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32359 if test "${ba_cv_have_typeof+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
32363 if test "$cross_compiling" = yes; then
32365 ba_cv_have_typeof=no
32369 cat >conftest.$ac_ext <<_ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h. */
32376 main(){char *a = 0; a = (typeof a)a;}
32379 rm -f conftest$ac_exeext
32380 if { (ac_try="$ac_link"
32381 case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_link") 2>&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32390 { (case "(($ac_try" in
32391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32392 *) ac_try_echo=$ac_try;;
32394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32395 (eval "$ac_try") 2>&5
32397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398 (exit $ac_status); }; }; then
32400 ba_cv_have_typeof=yes
32403 echo "$as_me: program exited with status $ac_status" >&5
32404 echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32407 ( exit $ac_status )
32409 ba_cv_have_typeof=no
32412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32419 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32420 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32421 test $ba_cv_have_typeof = yes &&
32422 cat >>confdefs.h <<\_ACEOF
32423 #define HAVE_TYPEOF 1
32427 ac_cpp='$CPP $CPPFLAGS'
32428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32433 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32434 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32435 if test "${ac_cv_c_const+set}" = set; then
32436 echo $ECHO_N "(cached) $ECHO_C" >&6
32438 cat >conftest.$ac_ext <<_ACEOF
32441 cat confdefs.h >>conftest.$ac_ext
32442 cat >>conftest.$ac_ext <<_ACEOF
32443 /* end confdefs.h. */
32448 /* FIXME: Include the comments suggested by Paul. */
32449 #ifndef __cplusplus
32450 /* Ultrix mips cc rejects this. */
32451 typedef int charset[2];
32453 /* SunOS 4.1.1 cc rejects this. */
32454 char const *const *pcpcc;
32456 /* NEC SVR4.0.2 mips cc rejects this. */
32457 struct point {int x, y;};
32458 static struct point const zero = {0,0};
32459 /* AIX XL C 1.02.0.0 rejects this.
32460 It does not let you subtract one const X* pointer from another in
32461 an arm of an if-expression whose if-part is not a constant
32463 const char *g = "string";
32464 pcpcc = &g + (g ? g-g : 0);
32465 /* HPUX 7.0 cc rejects these. */
32467 ppc = (char**) pcpcc;
32468 pcpcc = (char const *const *) ppc;
32469 { /* SCO 3.2v4 cc rejects this. */
32471 char const *s = 0 ? (char *) 0 : (char const *) 0;
32476 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32477 int x[] = {25, 17};
32478 const int *foo = &x[0];
32481 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32482 typedef const int *iptr;
32486 { /* AIX XL C 1.02.0.0 rejects this saying
32487 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32488 struct s { int j; const int *ap[3]; };
32489 struct s *b; b->j = 5;
32491 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32492 const int foo = 10;
32493 if (!foo) return 0;
32495 return !cs[0] && !zero.x;
32502 rm -f conftest.$ac_objext
32503 if { (ac_try="$ac_compile"
32504 case "(($ac_try" in
32505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506 *) ac_try_echo=$ac_try;;
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509 (eval "$ac_compile") 2>conftest.er1
32511 grep -v '^ *+' conftest.er1 >conftest.err
32513 cat conftest.err >&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); } && {
32516 test -z "$ac_c_werror_flag" ||
32517 test ! -s conftest.err
32518 } && test -s conftest.$ac_objext; then
32521 echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32529 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32530 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32531 if test $ac_cv_c_const = no; then
32533 cat >>confdefs.h <<\_ACEOF
32540 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32541 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32543 # The order of these tests is important.
32544 cat >conftest.$ac_ext <<_ACEOF
32547 cat confdefs.h >>conftest.$ac_ext
32548 cat >>conftest.$ac_ext <<_ACEOF
32549 /* end confdefs.h. */
32551 #include <sys/statvfs.h>
32552 #include <sys/fstyp.h>
32555 if { (ac_try="$ac_cpp conftest.$ac_ext"
32556 case "(($ac_try" in
32557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558 *) ac_try_echo=$ac_try;;
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32563 grep -v '^ *+' conftest.er1 >conftest.err
32565 cat conftest.err >&5
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); } >/dev/null && {
32568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32569 test ! -s conftest.err
32571 cat >>confdefs.h <<\_ACEOF
32572 #define FSTYPE_STATVFS 1
32577 echo "$as_me: failed program was:" >&5
32578 sed 's/^/| /' conftest.$ac_ext >&5
32583 rm -f conftest.err conftest.$ac_ext
32584 if test $fstype = no; then
32585 cat >conftest.$ac_ext <<_ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h. */
32592 #include <sys/statfs.h>
32593 #include <sys/fstyp.h>
32596 if { (ac_try="$ac_cpp conftest.$ac_ext"
32597 case "(($ac_try" in
32598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599 *) ac_try_echo=$ac_try;;
32601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32604 grep -v '^ *+' conftest.er1 >conftest.err
32606 cat conftest.err >&5
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); } >/dev/null && {
32609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32610 test ! -s conftest.err
32612 cat >>confdefs.h <<\_ACEOF
32613 #define FSTYPE_USG_STATFS 1
32618 echo "$as_me: failed program was:" >&5
32619 sed 's/^/| /' conftest.$ac_ext >&5
32624 rm -f conftest.err conftest.$ac_ext
32626 if test $fstype = no; then
32627 cat >conftest.$ac_ext <<_ACEOF
32630 cat confdefs.h >>conftest.$ac_ext
32631 cat >>conftest.$ac_ext <<_ACEOF
32632 /* end confdefs.h. */
32634 #include <sys/statfs.h>
32635 #include <sys/vmount.h>
32638 if { (ac_try="$ac_cpp conftest.$ac_ext"
32639 case "(($ac_try" in
32640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32641 *) ac_try_echo=$ac_try;;
32643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32646 grep -v '^ *+' conftest.er1 >conftest.err
32648 cat conftest.err >&5
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); } >/dev/null && {
32651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32652 test ! -s conftest.err
32654 cat >>confdefs.h <<\_ACEOF
32655 #define FSTYPE_AIX_STATFS 1
32660 echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32666 rm -f conftest.err conftest.$ac_ext
32668 if test $fstype = no; then
32669 cat >conftest.$ac_ext <<_ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h. */
32676 #include <mntent.h>
32679 if { (ac_try="$ac_cpp conftest.$ac_ext"
32680 case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32687 grep -v '^ *+' conftest.er1 >conftest.err
32689 cat conftest.err >&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } >/dev/null && {
32692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32693 test ! -s conftest.err
32695 cat >>confdefs.h <<\_ACEOF
32696 #define FSTYPE_MNTENT 1
32701 echo "$as_me: failed program was:" >&5
32702 sed 's/^/| /' conftest.$ac_ext >&5
32707 rm -f conftest.err conftest.$ac_ext
32709 if test $fstype = no; then
32710 cat >conftest.$ac_ext <<_ACEOF
32713 cat confdefs.h >>conftest.$ac_ext
32714 cat >>conftest.$ac_ext <<_ACEOF
32715 /* end confdefs.h. */
32716 #include <sys/mount.h>
32719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32720 $EGREP "f_type;" >/dev/null 2>&1; then
32721 cat >>confdefs.h <<\_ACEOF
32722 #define FSTYPE_STATFS 1
32729 if test $fstype = no; then
32730 cat >conftest.$ac_ext <<_ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h. */
32737 #include <sys/mount.h>
32738 #include <sys/fs_types.h>
32741 if { (ac_try="$ac_cpp conftest.$ac_ext"
32742 case "(($ac_try" in
32743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32744 *) ac_try_echo=$ac_try;;
32746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32749 grep -v '^ *+' conftest.er1 >conftest.err
32751 cat conftest.err >&5
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); } >/dev/null && {
32754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32755 test ! -s conftest.err
32757 cat >>confdefs.h <<\_ACEOF
32758 #define FSTYPE_GETMNT 1
32763 echo "$as_me: failed program was:" >&5
32764 sed 's/^/| /' conftest.$ac_ext >&5
32769 rm -f conftest.err conftest.$ac_ext
32771 { echo "$as_me:$LINENO: result: $fstype" >&5
32772 echo "${ECHO_T}$fstype" >&6; }
32774 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32775 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32776 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32777 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32778 echo $ECHO_N "(cached) $ECHO_C" >&6
32780 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32781 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32783 # Is the header compilable?
32784 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32785 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32786 cat >conftest.$ac_ext <<_ACEOF
32789 cat confdefs.h >>conftest.$ac_ext
32790 cat >>conftest.$ac_ext <<_ACEOF
32791 /* end confdefs.h. */
32792 $ac_includes_default
32793 #include <sys/statvfs.h>
32795 rm -f conftest.$ac_objext
32796 if { (ac_try="$ac_compile"
32797 case "(($ac_try" in
32798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799 *) ac_try_echo=$ac_try;;
32801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802 (eval "$ac_compile") 2>conftest.er1
32804 grep -v '^ *+' conftest.er1 >conftest.err
32806 cat conftest.err >&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); } && {
32809 test -z "$ac_c_werror_flag" ||
32810 test ! -s conftest.err
32811 } && test -s conftest.$ac_objext; then
32812 ac_header_compiler=yes
32814 echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32817 ac_header_compiler=no
32820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32822 echo "${ECHO_T}$ac_header_compiler" >&6; }
32824 # Is the header present?
32825 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32826 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32827 cat >conftest.$ac_ext <<_ACEOF
32830 cat confdefs.h >>conftest.$ac_ext
32831 cat >>conftest.$ac_ext <<_ACEOF
32832 /* end confdefs.h. */
32833 #include <sys/statvfs.h>
32835 if { (ac_try="$ac_cpp conftest.$ac_ext"
32836 case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32843 grep -v '^ *+' conftest.er1 >conftest.err
32845 cat conftest.err >&5
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); } >/dev/null && {
32848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32849 test ! -s conftest.err
32851 ac_header_preproc=yes
32853 echo "$as_me: failed program was:" >&5
32854 sed 's/^/| /' conftest.$ac_ext >&5
32856 ac_header_preproc=no
32859 rm -f conftest.err conftest.$ac_ext
32860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32861 echo "${ECHO_T}$ac_header_preproc" >&6; }
32863 # So? What about this header?
32864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32866 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32867 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32868 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32869 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32870 ac_header_preproc=yes
32873 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32874 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32875 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32876 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32877 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32878 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32879 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32880 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32881 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32882 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32883 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32884 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32888 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32889 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32890 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32891 echo $ECHO_N "(cached) $ECHO_C" >&6
32893 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32895 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32896 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32899 if test $ac_cv_header_sys_statvfs_h = yes; then
32901 cat >>confdefs.h <<\_ACEOF
32902 #define HAVE_SYS_STATVFS_H 1
32909 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32910 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32911 if test "${ac_cv_type_signal+set}" = set; then
32912 echo $ECHO_N "(cached) $ECHO_C" >&6
32914 cat >conftest.$ac_ext <<_ACEOF
32917 cat confdefs.h >>conftest.$ac_ext
32918 cat >>conftest.$ac_ext <<_ACEOF
32919 /* end confdefs.h. */
32920 #include <sys/types.h>
32921 #include <signal.h>
32926 return *(signal (0, 0)) (0) == 1;
32931 rm -f conftest.$ac_objext
32932 if { (ac_try="$ac_compile"
32933 case "(($ac_try" in
32934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32935 *) ac_try_echo=$ac_try;;
32937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32938 (eval "$ac_compile") 2>conftest.er1
32940 grep -v '^ *+' conftest.er1 >conftest.err
32942 cat conftest.err >&5
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); } && {
32945 test -z "$ac_c_werror_flag" ||
32946 test ! -s conftest.err
32947 } && test -s conftest.$ac_objext; then
32948 ac_cv_type_signal=int
32950 echo "$as_me: failed program was:" >&5
32951 sed 's/^/| /' conftest.$ac_ext >&5
32953 ac_cv_type_signal=void
32956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32958 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32959 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32961 cat >>confdefs.h <<_ACEOF
32962 #define RETSIGTYPE $ac_cv_type_signal
32967 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32968 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32969 if test "${bash_cv_signal_vintage+set}" = set; then
32970 echo $ECHO_N "(cached) $ECHO_C" >&6
32973 cat >conftest.$ac_ext <<_ACEOF
32976 cat confdefs.h >>conftest.$ac_ext
32977 cat >>conftest.$ac_ext <<_ACEOF
32978 /* end confdefs.h. */
32979 #include <signal.h>
32985 struct sigaction sa;
32986 sigemptyset(&ss); sigsuspend(&ss);
32987 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32988 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32994 rm -f conftest.$ac_objext conftest$ac_exeext
32995 if { (ac_try="$ac_link"
32996 case "(($ac_try" in
32997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32998 *) ac_try_echo=$ac_try;;
33000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33001 (eval "$ac_link") 2>conftest.er1
33003 grep -v '^ *+' conftest.er1 >conftest.err
33005 cat conftest.err >&5
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); } && {
33008 test -z "$ac_c_werror_flag" ||
33009 test ! -s conftest.err
33010 } && test -s conftest$ac_exeext &&
33011 $as_test_x conftest$ac_exeext; then
33012 bash_cv_signal_vintage="posix"
33014 echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33018 cat >conftest.$ac_ext <<_ACEOF
33021 cat confdefs.h >>conftest.$ac_ext
33022 cat >>conftest.$ac_ext <<_ACEOF
33023 /* end confdefs.h. */
33024 #include <signal.h>
33029 int mask = sigmask(SIGINT);
33030 sigsetmask(mask); sigblock(mask); sigpause(mask);
33036 rm -f conftest.$ac_objext conftest$ac_exeext
33037 if { (ac_try="$ac_link"
33038 case "(($ac_try" in
33039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040 *) ac_try_echo=$ac_try;;
33042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043 (eval "$ac_link") 2>conftest.er1
33045 grep -v '^ *+' conftest.er1 >conftest.err
33047 cat conftest.err >&5
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); } && {
33050 test -z "$ac_c_werror_flag" ||
33051 test ! -s conftest.err
33052 } && test -s conftest$ac_exeext &&
33053 $as_test_x conftest$ac_exeext; then
33054 bash_cv_signal_vintage="4.2bsd"
33056 echo "$as_me: failed program was:" >&5
33057 sed 's/^/| /' conftest.$ac_ext >&5
33060 cat >conftest.$ac_ext <<_ACEOF
33063 cat confdefs.h >>conftest.$ac_ext
33064 cat >>conftest.$ac_ext <<_ACEOF
33065 /* end confdefs.h. */
33067 #include <signal.h>
33068 RETSIGTYPE foo() { }
33073 int mask = sigmask(SIGINT);
33074 sigset(SIGINT, foo); sigrelse(SIGINT);
33075 sighold(SIGINT); sigpause(SIGINT);
33081 rm -f conftest.$ac_objext conftest$ac_exeext
33082 if { (ac_try="$ac_link"
33083 case "(($ac_try" in
33084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085 *) ac_try_echo=$ac_try;;
33087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088 (eval "$ac_link") 2>conftest.er1
33090 grep -v '^ *+' conftest.er1 >conftest.err
33092 cat conftest.err >&5
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); } && {
33095 test -z "$ac_c_werror_flag" ||
33096 test ! -s conftest.err
33097 } && test -s conftest$ac_exeext &&
33098 $as_test_x conftest$ac_exeext; then
33099 bash_cv_signal_vintage="svr3"
33101 echo "$as_me: failed program was:" >&5
33102 sed 's/^/| /' conftest.$ac_ext >&5
33104 bash_cv_signal_vintage="v7"
33108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33109 conftest$ac_exeext conftest.$ac_ext
33113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33114 conftest$ac_exeext conftest.$ac_ext
33118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33119 conftest$ac_exeext conftest.$ac_ext
33123 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33124 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33125 if test "$bash_cv_signal_vintage" = "posix"; then
33126 cat >>confdefs.h <<\_ACEOF
33127 #define HAVE_POSIX_SIGNALS 1
33130 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33131 cat >>confdefs.h <<\_ACEOF
33132 #define HAVE_BSD_SIGNALS 1
33135 elif test "$bash_cv_signal_vintage" = "svr3"; then
33136 cat >>confdefs.h <<\_ACEOF
33137 #define HAVE_USG_SIGHOLD 1
33142 { echo "$as_me:$LINENO: checking for mode_t" >&5
33143 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33144 if test "${ac_cv_type_mode_t+set}" = set; then
33145 echo $ECHO_N "(cached) $ECHO_C" >&6
33147 cat >conftest.$ac_ext <<_ACEOF
33150 cat confdefs.h >>conftest.$ac_ext
33151 cat >>conftest.$ac_ext <<_ACEOF
33152 /* end confdefs.h. */
33153 $ac_includes_default
33154 typedef mode_t ac__type_new_;
33158 if ((ac__type_new_ *) 0)
33160 if (sizeof (ac__type_new_))
33166 rm -f conftest.$ac_objext
33167 if { (ac_try="$ac_compile"
33168 case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_compile") 2>conftest.er1
33175 grep -v '^ *+' conftest.er1 >conftest.err
33177 cat conftest.err >&5
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); } && {
33180 test -z "$ac_c_werror_flag" ||
33181 test ! -s conftest.err
33182 } && test -s conftest.$ac_objext; then
33183 ac_cv_type_mode_t=yes
33185 echo "$as_me: failed program was:" >&5
33186 sed 's/^/| /' conftest.$ac_ext >&5
33188 ac_cv_type_mode_t=no
33191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33193 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33194 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33195 if test $ac_cv_type_mode_t = yes; then
33199 cat >>confdefs.h <<_ACEOF
33205 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33206 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33207 if test "${ac_cv_type_uid_t+set}" = set; then
33208 echo $ECHO_N "(cached) $ECHO_C" >&6
33210 cat >conftest.$ac_ext <<_ACEOF
33213 cat confdefs.h >>conftest.$ac_ext
33214 cat >>conftest.$ac_ext <<_ACEOF
33215 /* end confdefs.h. */
33216 #include <sys/types.h>
33219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33220 $EGREP "uid_t" >/dev/null 2>&1; then
33221 ac_cv_type_uid_t=yes
33223 ac_cv_type_uid_t=no
33228 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33229 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33230 if test $ac_cv_type_uid_t = no; then
33232 cat >>confdefs.h <<\_ACEOF
33237 cat >>confdefs.h <<\_ACEOF
33243 { echo "$as_me:$LINENO: checking for size_t" >&5
33244 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33245 if test "${ac_cv_type_size_t+set}" = set; then
33246 echo $ECHO_N "(cached) $ECHO_C" >&6
33248 cat >conftest.$ac_ext <<_ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h. */
33254 $ac_includes_default
33255 typedef size_t ac__type_new_;
33259 if ((ac__type_new_ *) 0)
33261 if (sizeof (ac__type_new_))
33267 rm -f conftest.$ac_objext
33268 if { (ac_try="$ac_compile"
33269 case "(($ac_try" in
33270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271 *) ac_try_echo=$ac_try;;
33273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274 (eval "$ac_compile") 2>conftest.er1
33276 grep -v '^ *+' conftest.er1 >conftest.err
33278 cat conftest.err >&5
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); } && {
33281 test -z "$ac_c_werror_flag" ||
33282 test ! -s conftest.err
33283 } && test -s conftest.$ac_objext; then
33284 ac_cv_type_size_t=yes
33286 echo "$as_me: failed program was:" >&5
33287 sed 's/^/| /' conftest.$ac_ext >&5
33289 ac_cv_type_size_t=no
33292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33294 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33295 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33296 if test $ac_cv_type_size_t = yes; then
33300 cat >>confdefs.h <<_ACEOF
33301 #define size_t unsigned int
33306 { echo "$as_me:$LINENO: checking for pid_t" >&5
33307 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33308 if test "${ac_cv_type_pid_t+set}" = set; then
33309 echo $ECHO_N "(cached) $ECHO_C" >&6
33311 cat >conftest.$ac_ext <<_ACEOF
33314 cat confdefs.h >>conftest.$ac_ext
33315 cat >>conftest.$ac_ext <<_ACEOF
33316 /* end confdefs.h. */
33317 $ac_includes_default
33318 typedef pid_t ac__type_new_;
33322 if ((ac__type_new_ *) 0)
33324 if (sizeof (ac__type_new_))
33330 rm -f conftest.$ac_objext
33331 if { (ac_try="$ac_compile"
33332 case "(($ac_try" in
33333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334 *) ac_try_echo=$ac_try;;
33336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33337 (eval "$ac_compile") 2>conftest.er1
33339 grep -v '^ *+' conftest.er1 >conftest.err
33341 cat conftest.err >&5
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); } && {
33344 test -z "$ac_c_werror_flag" ||
33345 test ! -s conftest.err
33346 } && test -s conftest.$ac_objext; then
33347 ac_cv_type_pid_t=yes
33349 echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33352 ac_cv_type_pid_t=no
33355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33357 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33358 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33359 if test $ac_cv_type_pid_t = yes; then
33363 cat >>confdefs.h <<_ACEOF
33369 { echo "$as_me:$LINENO: checking for off_t" >&5
33370 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33371 if test "${ac_cv_type_off_t+set}" = set; then
33372 echo $ECHO_N "(cached) $ECHO_C" >&6
33374 cat >conftest.$ac_ext <<_ACEOF
33377 cat confdefs.h >>conftest.$ac_ext
33378 cat >>conftest.$ac_ext <<_ACEOF
33379 /* end confdefs.h. */
33380 $ac_includes_default
33381 typedef off_t ac__type_new_;
33385 if ((ac__type_new_ *) 0)
33387 if (sizeof (ac__type_new_))
33393 rm -f conftest.$ac_objext
33394 if { (ac_try="$ac_compile"
33395 case "(($ac_try" in
33396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397 *) ac_try_echo=$ac_try;;
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400 (eval "$ac_compile") 2>conftest.er1
33402 grep -v '^ *+' conftest.er1 >conftest.err
33404 cat conftest.err >&5
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); } && {
33407 test -z "$ac_c_werror_flag" ||
33408 test ! -s conftest.err
33409 } && test -s conftest.$ac_objext; then
33410 ac_cv_type_off_t=yes
33412 echo "$as_me: failed program was:" >&5
33413 sed 's/^/| /' conftest.$ac_ext >&5
33415 ac_cv_type_off_t=no
33418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33420 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33421 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33422 if test $ac_cv_type_off_t = yes; then
33426 cat >>confdefs.h <<_ACEOF
33427 #define off_t long int
33432 { echo "$as_me:$LINENO: checking for ino_t" >&5
33433 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33434 if test "${ac_cv_type_ino_t+set}" = set; then
33435 echo $ECHO_N "(cached) $ECHO_C" >&6
33437 cat >conftest.$ac_ext <<_ACEOF
33440 cat confdefs.h >>conftest.$ac_ext
33441 cat >>conftest.$ac_ext <<_ACEOF
33442 /* end confdefs.h. */
33443 $ac_includes_default
33444 typedef ino_t ac__type_new_;
33448 if ((ac__type_new_ *) 0)
33450 if (sizeof (ac__type_new_))
33456 rm -f conftest.$ac_objext
33457 if { (ac_try="$ac_compile"
33458 case "(($ac_try" in
33459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460 *) ac_try_echo=$ac_try;;
33462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463 (eval "$ac_compile") 2>conftest.er1
33465 grep -v '^ *+' conftest.er1 >conftest.err
33467 cat conftest.err >&5
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); } && {
33470 test -z "$ac_c_werror_flag" ||
33471 test ! -s conftest.err
33472 } && test -s conftest.$ac_objext; then
33473 ac_cv_type_ino_t=yes
33475 echo "$as_me: failed program was:" >&5
33476 sed 's/^/| /' conftest.$ac_ext >&5
33478 ac_cv_type_ino_t=no
33481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33483 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33484 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33485 if test $ac_cv_type_ino_t = yes; then
33489 cat >>confdefs.h <<_ACEOF
33490 #define ino_t unsigned long
33495 { echo "$as_me:$LINENO: checking for dev_t" >&5
33496 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33497 if test "${ac_cv_type_dev_t+set}" = set; then
33498 echo $ECHO_N "(cached) $ECHO_C" >&6
33500 cat >conftest.$ac_ext <<_ACEOF
33503 cat confdefs.h >>conftest.$ac_ext
33504 cat >>conftest.$ac_ext <<_ACEOF
33505 /* end confdefs.h. */
33506 $ac_includes_default
33507 typedef dev_t ac__type_new_;
33511 if ((ac__type_new_ *) 0)
33513 if (sizeof (ac__type_new_))
33519 rm -f conftest.$ac_objext
33520 if { (ac_try="$ac_compile"
33521 case "(($ac_try" in
33522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33523 *) ac_try_echo=$ac_try;;
33525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33526 (eval "$ac_compile") 2>conftest.er1
33528 grep -v '^ *+' conftest.er1 >conftest.err
33530 cat conftest.err >&5
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); } && {
33533 test -z "$ac_c_werror_flag" ||
33534 test ! -s conftest.err
33535 } && test -s conftest.$ac_objext; then
33536 ac_cv_type_dev_t=yes
33538 echo "$as_me: failed program was:" >&5
33539 sed 's/^/| /' conftest.$ac_ext >&5
33541 ac_cv_type_dev_t=no
33544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33546 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33547 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33548 if test $ac_cv_type_dev_t = yes; then
33552 cat >>confdefs.h <<_ACEOF
33553 #define dev_t unsigned long
33558 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33559 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33560 if test "${ac_cv_type_daddr_t+set}" = set; then
33561 echo $ECHO_N "(cached) $ECHO_C" >&6
33563 cat >conftest.$ac_ext <<_ACEOF
33566 cat confdefs.h >>conftest.$ac_ext
33567 cat >>conftest.$ac_ext <<_ACEOF
33568 /* end confdefs.h. */
33569 $ac_includes_default
33570 typedef daddr_t ac__type_new_;
33574 if ((ac__type_new_ *) 0)
33576 if (sizeof (ac__type_new_))
33582 rm -f conftest.$ac_objext
33583 if { (ac_try="$ac_compile"
33584 case "(($ac_try" in
33585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33586 *) ac_try_echo=$ac_try;;
33588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33589 (eval "$ac_compile") 2>conftest.er1
33591 grep -v '^ *+' conftest.er1 >conftest.err
33593 cat conftest.err >&5
33594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595 (exit $ac_status); } && {
33596 test -z "$ac_c_werror_flag" ||
33597 test ! -s conftest.err
33598 } && test -s conftest.$ac_objext; then
33599 ac_cv_type_daddr_t=yes
33601 echo "$as_me: failed program was:" >&5
33602 sed 's/^/| /' conftest.$ac_ext >&5
33604 ac_cv_type_daddr_t=no
33607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33609 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33610 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33611 if test $ac_cv_type_daddr_t = yes; then
33615 cat >>confdefs.h <<_ACEOF
33616 #define daddr_t long
33621 { echo "$as_me:$LINENO: checking for major_t" >&5
33622 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33623 if test "${ac_cv_type_major_t+set}" = set; then
33624 echo $ECHO_N "(cached) $ECHO_C" >&6
33626 cat >conftest.$ac_ext <<_ACEOF
33629 cat confdefs.h >>conftest.$ac_ext
33630 cat >>conftest.$ac_ext <<_ACEOF
33631 /* end confdefs.h. */
33632 $ac_includes_default
33633 typedef major_t ac__type_new_;
33637 if ((ac__type_new_ *) 0)
33639 if (sizeof (ac__type_new_))
33645 rm -f conftest.$ac_objext
33646 if { (ac_try="$ac_compile"
33647 case "(($ac_try" in
33648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33649 *) ac_try_echo=$ac_try;;
33651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33652 (eval "$ac_compile") 2>conftest.er1
33654 grep -v '^ *+' conftest.er1 >conftest.err
33656 cat conftest.err >&5
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); } && {
33659 test -z "$ac_c_werror_flag" ||
33660 test ! -s conftest.err
33661 } && test -s conftest.$ac_objext; then
33662 ac_cv_type_major_t=yes
33664 echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33667 ac_cv_type_major_t=no
33670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33672 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33673 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33674 if test $ac_cv_type_major_t = yes; then
33678 cat >>confdefs.h <<_ACEOF
33679 #define major_t int
33684 { echo "$as_me:$LINENO: checking for minor_t" >&5
33685 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33686 if test "${ac_cv_type_minor_t+set}" = set; then
33687 echo $ECHO_N "(cached) $ECHO_C" >&6
33689 cat >conftest.$ac_ext <<_ACEOF
33692 cat confdefs.h >>conftest.$ac_ext
33693 cat >>conftest.$ac_ext <<_ACEOF
33694 /* end confdefs.h. */
33695 $ac_includes_default
33696 typedef minor_t ac__type_new_;
33700 if ((ac__type_new_ *) 0)
33702 if (sizeof (ac__type_new_))
33708 rm -f conftest.$ac_objext
33709 if { (ac_try="$ac_compile"
33710 case "(($ac_try" in
33711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33712 *) ac_try_echo=$ac_try;;
33714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33715 (eval "$ac_compile") 2>conftest.er1
33717 grep -v '^ *+' conftest.er1 >conftest.err
33719 cat conftest.err >&5
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); } && {
33722 test -z "$ac_c_werror_flag" ||
33723 test ! -s conftest.err
33724 } && test -s conftest.$ac_objext; then
33725 ac_cv_type_minor_t=yes
33727 echo "$as_me: failed program was:" >&5
33728 sed 's/^/| /' conftest.$ac_ext >&5
33730 ac_cv_type_minor_t=no
33733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33735 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33736 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33737 if test $ac_cv_type_minor_t = yes; then
33741 cat >>confdefs.h <<_ACEOF
33742 #define minor_t int
33747 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33748 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33749 if test "${ac_cv_type_ssize_t+set}" = set; then
33750 echo $ECHO_N "(cached) $ECHO_C" >&6
33752 cat >conftest.$ac_ext <<_ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h. */
33758 $ac_includes_default
33759 typedef ssize_t ac__type_new_;
33763 if ((ac__type_new_ *) 0)
33765 if (sizeof (ac__type_new_))
33771 rm -f conftest.$ac_objext
33772 if { (ac_try="$ac_compile"
33773 case "(($ac_try" in
33774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33775 *) ac_try_echo=$ac_try;;
33777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33778 (eval "$ac_compile") 2>conftest.er1
33780 grep -v '^ *+' conftest.er1 >conftest.err
33782 cat conftest.err >&5
33783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784 (exit $ac_status); } && {
33785 test -z "$ac_c_werror_flag" ||
33786 test ! -s conftest.err
33787 } && test -s conftest.$ac_objext; then
33788 ac_cv_type_ssize_t=yes
33790 echo "$as_me: failed program was:" >&5
33791 sed 's/^/| /' conftest.$ac_ext >&5
33793 ac_cv_type_ssize_t=no
33796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33798 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33799 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33800 if test $ac_cv_type_ssize_t = yes; then
33804 cat >>confdefs.h <<_ACEOF
33805 #define ssize_t int
33810 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33811 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33812 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33813 echo $ECHO_N "(cached) $ECHO_C" >&6
33815 cat >conftest.$ac_ext <<_ACEOF
33818 cat confdefs.h >>conftest.$ac_ext
33819 cat >>conftest.$ac_ext <<_ACEOF
33820 /* end confdefs.h. */
33821 $ac_includes_default
33825 static struct stat ac_aggr;
33826 if (ac_aggr.st_blocks)
33832 rm -f conftest.$ac_objext
33833 if { (ac_try="$ac_compile"
33834 case "(($ac_try" in
33835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33836 *) ac_try_echo=$ac_try;;
33838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33839 (eval "$ac_compile") 2>conftest.er1
33841 grep -v '^ *+' conftest.er1 >conftest.err
33843 cat conftest.err >&5
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); } && {
33846 test -z "$ac_c_werror_flag" ||
33847 test ! -s conftest.err
33848 } && test -s conftest.$ac_objext; then
33849 ac_cv_member_struct_stat_st_blocks=yes
33851 echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33854 cat >conftest.$ac_ext <<_ACEOF
33857 cat confdefs.h >>conftest.$ac_ext
33858 cat >>conftest.$ac_ext <<_ACEOF
33859 /* end confdefs.h. */
33860 $ac_includes_default
33864 static struct stat ac_aggr;
33865 if (sizeof ac_aggr.st_blocks)
33871 rm -f conftest.$ac_objext
33872 if { (ac_try="$ac_compile"
33873 case "(($ac_try" in
33874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33875 *) ac_try_echo=$ac_try;;
33877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33878 (eval "$ac_compile") 2>conftest.er1
33880 grep -v '^ *+' conftest.er1 >conftest.err
33882 cat conftest.err >&5
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); } && {
33885 test -z "$ac_c_werror_flag" ||
33886 test ! -s conftest.err
33887 } && test -s conftest.$ac_objext; then
33888 ac_cv_member_struct_stat_st_blocks=yes
33890 echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33893 ac_cv_member_struct_stat_st_blocks=no
33896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33902 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33903 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33905 cat >>confdefs.h <<_ACEOF
33906 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33910 cat >>confdefs.h <<\_ACEOF
33911 #define HAVE_ST_BLOCKS 1
33915 case " $LIBOBJS " in
33916 *" fileblocks.$ac_objext "* ) ;;
33917 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33924 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33925 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33926 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
33929 cat >conftest.$ac_ext <<_ACEOF
33932 cat confdefs.h >>conftest.$ac_ext
33933 cat >>conftest.$ac_ext <<_ACEOF
33934 /* end confdefs.h. */
33935 $ac_includes_default
33939 static struct stat ac_aggr;
33940 if (ac_aggr.st_rdev)
33946 rm -f conftest.$ac_objext
33947 if { (ac_try="$ac_compile"
33948 case "(($ac_try" in
33949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33950 *) ac_try_echo=$ac_try;;
33952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33953 (eval "$ac_compile") 2>conftest.er1
33955 grep -v '^ *+' conftest.er1 >conftest.err
33957 cat conftest.err >&5
33958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959 (exit $ac_status); } && {
33960 test -z "$ac_c_werror_flag" ||
33961 test ! -s conftest.err
33962 } && test -s conftest.$ac_objext; then
33963 ac_cv_member_struct_stat_st_rdev=yes
33965 echo "$as_me: failed program was:" >&5
33966 sed 's/^/| /' conftest.$ac_ext >&5
33968 cat >conftest.$ac_ext <<_ACEOF
33971 cat confdefs.h >>conftest.$ac_ext
33972 cat >>conftest.$ac_ext <<_ACEOF
33973 /* end confdefs.h. */
33974 $ac_includes_default
33978 static struct stat ac_aggr;
33979 if (sizeof ac_aggr.st_rdev)
33985 rm -f conftest.$ac_objext
33986 if { (ac_try="$ac_compile"
33987 case "(($ac_try" in
33988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33989 *) ac_try_echo=$ac_try;;
33991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33992 (eval "$ac_compile") 2>conftest.er1
33994 grep -v '^ *+' conftest.er1 >conftest.err
33996 cat conftest.err >&5
33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 (exit $ac_status); } && {
33999 test -z "$ac_c_werror_flag" ||
34000 test ! -s conftest.err
34001 } && test -s conftest.$ac_objext; then
34002 ac_cv_member_struct_stat_st_rdev=yes
34004 echo "$as_me: failed program was:" >&5
34005 sed 's/^/| /' conftest.$ac_ext >&5
34007 ac_cv_member_struct_stat_st_rdev=no
34010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34015 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34016 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34017 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34019 cat >>confdefs.h <<_ACEOF
34020 #define HAVE_STRUCT_STAT_ST_RDEV 1
34024 cat >>confdefs.h <<\_ACEOF
34025 #define HAVE_ST_RDEV 1
34031 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34032 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34033 if test "${ac_cv_struct_tm+set}" = set; then
34034 echo $ECHO_N "(cached) $ECHO_C" >&6
34036 cat >conftest.$ac_ext <<_ACEOF
34039 cat confdefs.h >>conftest.$ac_ext
34040 cat >>conftest.$ac_ext <<_ACEOF
34041 /* end confdefs.h. */
34042 #include <sys/types.h>
34049 int *p = &tm.tm_sec;
34055 rm -f conftest.$ac_objext
34056 if { (ac_try="$ac_compile"
34057 case "(($ac_try" in
34058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34059 *) ac_try_echo=$ac_try;;
34061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34062 (eval "$ac_compile") 2>conftest.er1
34064 grep -v '^ *+' conftest.er1 >conftest.err
34066 cat conftest.err >&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); } && {
34069 test -z "$ac_c_werror_flag" ||
34070 test ! -s conftest.err
34071 } && test -s conftest.$ac_objext; then
34072 ac_cv_struct_tm=time.h
34074 echo "$as_me: failed program was:" >&5
34075 sed 's/^/| /' conftest.$ac_ext >&5
34077 ac_cv_struct_tm=sys/time.h
34080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34082 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34083 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34084 if test $ac_cv_struct_tm = sys/time.h; then
34086 cat >>confdefs.h <<\_ACEOF
34087 #define TM_IN_SYS_TIME 1
34092 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34093 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34094 if test "${ac_cv_c_const+set}" = set; then
34095 echo $ECHO_N "(cached) $ECHO_C" >&6
34097 cat >conftest.$ac_ext <<_ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h. */
34107 /* FIXME: Include the comments suggested by Paul. */
34108 #ifndef __cplusplus
34109 /* Ultrix mips cc rejects this. */
34110 typedef int charset[2];
34112 /* SunOS 4.1.1 cc rejects this. */
34113 char const *const *pcpcc;
34115 /* NEC SVR4.0.2 mips cc rejects this. */
34116 struct point {int x, y;};
34117 static struct point const zero = {0,0};
34118 /* AIX XL C 1.02.0.0 rejects this.
34119 It does not let you subtract one const X* pointer from another in
34120 an arm of an if-expression whose if-part is not a constant
34122 const char *g = "string";
34123 pcpcc = &g + (g ? g-g : 0);
34124 /* HPUX 7.0 cc rejects these. */
34126 ppc = (char**) pcpcc;
34127 pcpcc = (char const *const *) ppc;
34128 { /* SCO 3.2v4 cc rejects this. */
34130 char const *s = 0 ? (char *) 0 : (char const *) 0;
34135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34136 int x[] = {25, 17};
34137 const int *foo = &x[0];
34140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34141 typedef const int *iptr;
34145 { /* AIX XL C 1.02.0.0 rejects this saying
34146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34147 struct s { int j; const int *ap[3]; };
34148 struct s *b; b->j = 5;
34150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34151 const int foo = 10;
34152 if (!foo) return 0;
34154 return !cs[0] && !zero.x;
34161 rm -f conftest.$ac_objext
34162 if { (ac_try="$ac_compile"
34163 case "(($ac_try" in
34164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165 *) ac_try_echo=$ac_try;;
34167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34168 (eval "$ac_compile") 2>conftest.er1
34170 grep -v '^ *+' conftest.er1 >conftest.err
34172 cat conftest.err >&5
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174 (exit $ac_status); } && {
34175 test -z "$ac_c_werror_flag" ||
34176 test ! -s conftest.err
34177 } && test -s conftest.$ac_objext; then
34180 echo "$as_me: failed program was:" >&5
34181 sed 's/^/| /' conftest.$ac_ext >&5
34186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34188 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34189 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34190 if test $ac_cv_c_const = no; then
34192 cat >>confdefs.h <<\_ACEOF
34199 { echo "$as_me:$LINENO: checking for char" >&5
34200 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34201 if test "${ac_cv_type_char+set}" = set; then
34202 echo $ECHO_N "(cached) $ECHO_C" >&6
34204 cat >conftest.$ac_ext <<_ACEOF
34207 cat confdefs.h >>conftest.$ac_ext
34208 cat >>conftest.$ac_ext <<_ACEOF
34209 /* end confdefs.h. */
34210 $ac_includes_default
34211 typedef char ac__type_new_;
34215 if ((ac__type_new_ *) 0)
34217 if (sizeof (ac__type_new_))
34223 rm -f conftest.$ac_objext
34224 if { (ac_try="$ac_compile"
34225 case "(($ac_try" in
34226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34227 *) ac_try_echo=$ac_try;;
34229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34230 (eval "$ac_compile") 2>conftest.er1
34232 grep -v '^ *+' conftest.er1 >conftest.err
34234 cat conftest.err >&5
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); } && {
34237 test -z "$ac_c_werror_flag" ||
34238 test ! -s conftest.err
34239 } && test -s conftest.$ac_objext; then
34240 ac_cv_type_char=yes
34242 echo "$as_me: failed program was:" >&5
34243 sed 's/^/| /' conftest.$ac_ext >&5
34248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34250 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34251 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34253 # The cast to long int works around a bug in the HP C Compiler
34254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34256 # This bug is HP SR number 8606223364.
34257 { echo "$as_me:$LINENO: checking size of char" >&5
34258 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34259 if test "${ac_cv_sizeof_char+set}" = set; then
34260 echo $ECHO_N "(cached) $ECHO_C" >&6
34262 if test "$cross_compiling" = yes; then
34263 # Depending upon the size, compute the lo and hi bounds.
34264 cat >conftest.$ac_ext <<_ACEOF
34267 cat confdefs.h >>conftest.$ac_ext
34268 cat >>conftest.$ac_ext <<_ACEOF
34269 /* end confdefs.h. */
34270 $ac_includes_default
34271 typedef char ac__type_sizeof_;
34275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34282 rm -f conftest.$ac_objext
34283 if { (ac_try="$ac_compile"
34284 case "(($ac_try" in
34285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34286 *) ac_try_echo=$ac_try;;
34288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34289 (eval "$ac_compile") 2>conftest.er1
34291 grep -v '^ *+' conftest.er1 >conftest.err
34293 cat conftest.err >&5
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); } && {
34296 test -z "$ac_c_werror_flag" ||
34297 test ! -s conftest.err
34298 } && test -s conftest.$ac_objext; then
34301 cat >conftest.$ac_ext <<_ACEOF
34304 cat confdefs.h >>conftest.$ac_ext
34305 cat >>conftest.$ac_ext <<_ACEOF
34306 /* end confdefs.h. */
34307 $ac_includes_default
34308 typedef char ac__type_sizeof_;
34312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34319 rm -f conftest.$ac_objext
34320 if { (ac_try="$ac_compile"
34321 case "(($ac_try" in
34322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34323 *) ac_try_echo=$ac_try;;
34325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34326 (eval "$ac_compile") 2>conftest.er1
34328 grep -v '^ *+' conftest.er1 >conftest.err
34330 cat conftest.err >&5
34331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332 (exit $ac_status); } && {
34333 test -z "$ac_c_werror_flag" ||
34334 test ! -s conftest.err
34335 } && test -s conftest.$ac_objext; then
34336 ac_hi=$ac_mid; break
34338 echo "$as_me: failed program was:" >&5
34339 sed 's/^/| /' conftest.$ac_ext >&5
34341 ac_lo=`expr $ac_mid + 1`
34342 if test $ac_lo -le $ac_mid; then
34346 ac_mid=`expr 2 '*' $ac_mid + 1`
34349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34352 echo "$as_me: failed program was:" >&5
34353 sed 's/^/| /' conftest.$ac_ext >&5
34355 cat >conftest.$ac_ext <<_ACEOF
34358 cat confdefs.h >>conftest.$ac_ext
34359 cat >>conftest.$ac_ext <<_ACEOF
34360 /* end confdefs.h. */
34361 $ac_includes_default
34362 typedef char ac__type_sizeof_;
34366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34373 rm -f conftest.$ac_objext
34374 if { (ac_try="$ac_compile"
34375 case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_compile") 2>conftest.er1
34382 grep -v '^ *+' conftest.er1 >conftest.err
34384 cat conftest.err >&5
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); } && {
34387 test -z "$ac_c_werror_flag" ||
34388 test ! -s conftest.err
34389 } && test -s conftest.$ac_objext; then
34392 cat >conftest.$ac_ext <<_ACEOF
34395 cat confdefs.h >>conftest.$ac_ext
34396 cat >>conftest.$ac_ext <<_ACEOF
34397 /* end confdefs.h. */
34398 $ac_includes_default
34399 typedef char ac__type_sizeof_;
34403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34410 rm -f conftest.$ac_objext
34411 if { (ac_try="$ac_compile"
34412 case "(($ac_try" in
34413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34414 *) ac_try_echo=$ac_try;;
34416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34417 (eval "$ac_compile") 2>conftest.er1
34419 grep -v '^ *+' conftest.er1 >conftest.err
34421 cat conftest.err >&5
34422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423 (exit $ac_status); } && {
34424 test -z "$ac_c_werror_flag" ||
34425 test ! -s conftest.err
34426 } && test -s conftest.$ac_objext; then
34427 ac_lo=$ac_mid; break
34429 echo "$as_me: failed program was:" >&5
34430 sed 's/^/| /' conftest.$ac_ext >&5
34432 ac_hi=`expr '(' $ac_mid ')' - 1`
34433 if test $ac_mid -le $ac_hi; then
34437 ac_mid=`expr 2 '*' $ac_mid`
34440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34443 echo "$as_me: failed program was:" >&5
34444 sed 's/^/| /' conftest.$ac_ext >&5
34449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34453 # Binary search between lo and hi bounds.
34454 while test "x$ac_lo" != "x$ac_hi"; do
34455 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34456 cat >conftest.$ac_ext <<_ACEOF
34459 cat confdefs.h >>conftest.$ac_ext
34460 cat >>conftest.$ac_ext <<_ACEOF
34461 /* end confdefs.h. */
34462 $ac_includes_default
34463 typedef char ac__type_sizeof_;
34467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34474 rm -f conftest.$ac_objext
34475 if { (ac_try="$ac_compile"
34476 case "(($ac_try" in
34477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34478 *) ac_try_echo=$ac_try;;
34480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34481 (eval "$ac_compile") 2>conftest.er1
34483 grep -v '^ *+' conftest.er1 >conftest.err
34485 cat conftest.err >&5
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } && {
34488 test -z "$ac_c_werror_flag" ||
34489 test ! -s conftest.err
34490 } && test -s conftest.$ac_objext; then
34493 echo "$as_me: failed program was:" >&5
34494 sed 's/^/| /' conftest.$ac_ext >&5
34496 ac_lo=`expr '(' $ac_mid ')' + 1`
34499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34502 ?*) ac_cv_sizeof_char=$ac_lo;;
34503 '') if test "$ac_cv_type_char" = yes; then
34504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34505 See \`config.log' for more details." >&5
34506 echo "$as_me: error: cannot compute sizeof (char)
34507 See \`config.log' for more details." >&2;}
34508 { (exit 77); exit 77; }; }
34510 ac_cv_sizeof_char=0
34514 cat >conftest.$ac_ext <<_ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h. */
34520 $ac_includes_default
34521 typedef char ac__type_sizeof_;
34522 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34523 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34525 #include <stdlib.h>
34530 FILE *f = fopen ("conftest.val", "w");
34533 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34535 long int i = longval ();
34536 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34538 fprintf (f, "%ld\n", i);
34542 unsigned long int i = ulongval ();
34543 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34545 fprintf (f, "%lu\n", i);
34547 return ferror (f) || fclose (f) != 0;
34553 rm -f conftest$ac_exeext
34554 if { (ac_try="$ac_link"
34555 case "(($ac_try" in
34556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34557 *) ac_try_echo=$ac_try;;
34559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34560 (eval "$ac_link") 2>&5
34562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34564 { (case "(($ac_try" in
34565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34566 *) ac_try_echo=$ac_try;;
34568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34569 (eval "$ac_try") 2>&5
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); }; }; then
34573 ac_cv_sizeof_char=`cat conftest.val`
34575 echo "$as_me: program exited with status $ac_status" >&5
34576 echo "$as_me: failed program was:" >&5
34577 sed 's/^/| /' conftest.$ac_ext >&5
34579 ( exit $ac_status )
34580 if test "$ac_cv_type_char" = yes; then
34581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34582 See \`config.log' for more details." >&5
34583 echo "$as_me: error: cannot compute sizeof (char)
34584 See \`config.log' for more details." >&2;}
34585 { (exit 77); exit 77; }; }
34587 ac_cv_sizeof_char=0
34590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34594 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34595 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34599 cat >>confdefs.h <<_ACEOF
34600 #define SIZEOF_CHAR $ac_cv_sizeof_char
34604 { echo "$as_me:$LINENO: checking for short int" >&5
34605 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34606 if test "${ac_cv_type_short_int+set}" = set; then
34607 echo $ECHO_N "(cached) $ECHO_C" >&6
34609 cat >conftest.$ac_ext <<_ACEOF
34612 cat confdefs.h >>conftest.$ac_ext
34613 cat >>conftest.$ac_ext <<_ACEOF
34614 /* end confdefs.h. */
34615 $ac_includes_default
34616 typedef short int ac__type_new_;
34620 if ((ac__type_new_ *) 0)
34622 if (sizeof (ac__type_new_))
34628 rm -f conftest.$ac_objext
34629 if { (ac_try="$ac_compile"
34630 case "(($ac_try" in
34631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34632 *) ac_try_echo=$ac_try;;
34634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34635 (eval "$ac_compile") 2>conftest.er1
34637 grep -v '^ *+' conftest.er1 >conftest.err
34639 cat conftest.err >&5
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); } && {
34642 test -z "$ac_c_werror_flag" ||
34643 test ! -s conftest.err
34644 } && test -s conftest.$ac_objext; then
34645 ac_cv_type_short_int=yes
34647 echo "$as_me: failed program was:" >&5
34648 sed 's/^/| /' conftest.$ac_ext >&5
34650 ac_cv_type_short_int=no
34653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34655 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34656 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34658 # The cast to long int works around a bug in the HP C Compiler
34659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34661 # This bug is HP SR number 8606223364.
34662 { echo "$as_me:$LINENO: checking size of short int" >&5
34663 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34664 if test "${ac_cv_sizeof_short_int+set}" = set; then
34665 echo $ECHO_N "(cached) $ECHO_C" >&6
34667 if test "$cross_compiling" = yes; then
34668 # Depending upon the size, compute the lo and hi bounds.
34669 cat >conftest.$ac_ext <<_ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h. */
34675 $ac_includes_default
34676 typedef short int ac__type_sizeof_;
34680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34687 rm -f conftest.$ac_objext
34688 if { (ac_try="$ac_compile"
34689 case "(($ac_try" in
34690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34691 *) ac_try_echo=$ac_try;;
34693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34694 (eval "$ac_compile") 2>conftest.er1
34696 grep -v '^ *+' conftest.er1 >conftest.err
34698 cat conftest.err >&5
34699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700 (exit $ac_status); } && {
34701 test -z "$ac_c_werror_flag" ||
34702 test ! -s conftest.err
34703 } && test -s conftest.$ac_objext; then
34706 cat >conftest.$ac_ext <<_ACEOF
34709 cat confdefs.h >>conftest.$ac_ext
34710 cat >>conftest.$ac_ext <<_ACEOF
34711 /* end confdefs.h. */
34712 $ac_includes_default
34713 typedef short int ac__type_sizeof_;
34717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34724 rm -f conftest.$ac_objext
34725 if { (ac_try="$ac_compile"
34726 case "(($ac_try" in
34727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34728 *) ac_try_echo=$ac_try;;
34730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34731 (eval "$ac_compile") 2>conftest.er1
34733 grep -v '^ *+' conftest.er1 >conftest.err
34735 cat conftest.err >&5
34736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737 (exit $ac_status); } && {
34738 test -z "$ac_c_werror_flag" ||
34739 test ! -s conftest.err
34740 } && test -s conftest.$ac_objext; then
34741 ac_hi=$ac_mid; break
34743 echo "$as_me: failed program was:" >&5
34744 sed 's/^/| /' conftest.$ac_ext >&5
34746 ac_lo=`expr $ac_mid + 1`
34747 if test $ac_lo -le $ac_mid; then
34751 ac_mid=`expr 2 '*' $ac_mid + 1`
34754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34757 echo "$as_me: failed program was:" >&5
34758 sed 's/^/| /' conftest.$ac_ext >&5
34760 cat >conftest.$ac_ext <<_ACEOF
34763 cat confdefs.h >>conftest.$ac_ext
34764 cat >>conftest.$ac_ext <<_ACEOF
34765 /* end confdefs.h. */
34766 $ac_includes_default
34767 typedef short int ac__type_sizeof_;
34771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34778 rm -f conftest.$ac_objext
34779 if { (ac_try="$ac_compile"
34780 case "(($ac_try" in
34781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34782 *) ac_try_echo=$ac_try;;
34784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34785 (eval "$ac_compile") 2>conftest.er1
34787 grep -v '^ *+' conftest.er1 >conftest.err
34789 cat conftest.err >&5
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); } && {
34792 test -z "$ac_c_werror_flag" ||
34793 test ! -s conftest.err
34794 } && test -s conftest.$ac_objext; then
34797 cat >conftest.$ac_ext <<_ACEOF
34800 cat confdefs.h >>conftest.$ac_ext
34801 cat >>conftest.$ac_ext <<_ACEOF
34802 /* end confdefs.h. */
34803 $ac_includes_default
34804 typedef short int ac__type_sizeof_;
34808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34815 rm -f conftest.$ac_objext
34816 if { (ac_try="$ac_compile"
34817 case "(($ac_try" in
34818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34819 *) ac_try_echo=$ac_try;;
34821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34822 (eval "$ac_compile") 2>conftest.er1
34824 grep -v '^ *+' conftest.er1 >conftest.err
34826 cat conftest.err >&5
34827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34828 (exit $ac_status); } && {
34829 test -z "$ac_c_werror_flag" ||
34830 test ! -s conftest.err
34831 } && test -s conftest.$ac_objext; then
34832 ac_lo=$ac_mid; break
34834 echo "$as_me: failed program was:" >&5
34835 sed 's/^/| /' conftest.$ac_ext >&5
34837 ac_hi=`expr '(' $ac_mid ')' - 1`
34838 if test $ac_mid -le $ac_hi; then
34842 ac_mid=`expr 2 '*' $ac_mid`
34845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34848 echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34858 # Binary search between lo and hi bounds.
34859 while test "x$ac_lo" != "x$ac_hi"; do
34860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34861 cat >conftest.$ac_ext <<_ACEOF
34864 cat confdefs.h >>conftest.$ac_ext
34865 cat >>conftest.$ac_ext <<_ACEOF
34866 /* end confdefs.h. */
34867 $ac_includes_default
34868 typedef short int ac__type_sizeof_;
34872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34879 rm -f conftest.$ac_objext
34880 if { (ac_try="$ac_compile"
34881 case "(($ac_try" in
34882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34883 *) ac_try_echo=$ac_try;;
34885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34886 (eval "$ac_compile") 2>conftest.er1
34888 grep -v '^ *+' conftest.er1 >conftest.err
34890 cat conftest.err >&5
34891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892 (exit $ac_status); } && {
34893 test -z "$ac_c_werror_flag" ||
34894 test ! -s conftest.err
34895 } && test -s conftest.$ac_objext; then
34898 echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34901 ac_lo=`expr '(' $ac_mid ')' + 1`
34904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34907 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34908 '') if test "$ac_cv_type_short_int" = yes; then
34909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34910 See \`config.log' for more details." >&5
34911 echo "$as_me: error: cannot compute sizeof (short int)
34912 See \`config.log' for more details." >&2;}
34913 { (exit 77); exit 77; }; }
34915 ac_cv_sizeof_short_int=0
34919 cat >conftest.$ac_ext <<_ACEOF
34922 cat confdefs.h >>conftest.$ac_ext
34923 cat >>conftest.$ac_ext <<_ACEOF
34924 /* end confdefs.h. */
34925 $ac_includes_default
34926 typedef short int ac__type_sizeof_;
34927 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34928 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34930 #include <stdlib.h>
34935 FILE *f = fopen ("conftest.val", "w");
34938 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34940 long int i = longval ();
34941 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34943 fprintf (f, "%ld\n", i);
34947 unsigned long int i = ulongval ();
34948 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34950 fprintf (f, "%lu\n", i);
34952 return ferror (f) || fclose (f) != 0;
34958 rm -f conftest$ac_exeext
34959 if { (ac_try="$ac_link"
34960 case "(($ac_try" in
34961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34962 *) ac_try_echo=$ac_try;;
34964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965 (eval "$ac_link") 2>&5
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34969 { (case "(($ac_try" in
34970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34971 *) ac_try_echo=$ac_try;;
34973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34974 (eval "$ac_try") 2>&5
34976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); }; }; then
34978 ac_cv_sizeof_short_int=`cat conftest.val`
34980 echo "$as_me: program exited with status $ac_status" >&5
34981 echo "$as_me: failed program was:" >&5
34982 sed 's/^/| /' conftest.$ac_ext >&5
34984 ( exit $ac_status )
34985 if test "$ac_cv_type_short_int" = yes; then
34986 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34987 See \`config.log' for more details." >&5
34988 echo "$as_me: error: cannot compute sizeof (short int)
34989 See \`config.log' for more details." >&2;}
34990 { (exit 77); exit 77; }; }
34992 ac_cv_sizeof_short_int=0
34995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34999 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35000 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35004 cat >>confdefs.h <<_ACEOF
35005 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35009 { echo "$as_me:$LINENO: checking for int" >&5
35010 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35011 if test "${ac_cv_type_int+set}" = set; then
35012 echo $ECHO_N "(cached) $ECHO_C" >&6
35014 cat >conftest.$ac_ext <<_ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h. */
35020 $ac_includes_default
35021 typedef int ac__type_new_;
35025 if ((ac__type_new_ *) 0)
35027 if (sizeof (ac__type_new_))
35033 rm -f conftest.$ac_objext
35034 if { (ac_try="$ac_compile"
35035 case "(($ac_try" in
35036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35037 *) ac_try_echo=$ac_try;;
35039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35040 (eval "$ac_compile") 2>conftest.er1
35042 grep -v '^ *+' conftest.er1 >conftest.err
35044 cat conftest.err >&5
35045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); } && {
35047 test -z "$ac_c_werror_flag" ||
35048 test ! -s conftest.err
35049 } && test -s conftest.$ac_objext; then
35052 echo "$as_me: failed program was:" >&5
35053 sed 's/^/| /' conftest.$ac_ext >&5
35058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35060 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35061 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35063 # The cast to long int works around a bug in the HP C Compiler
35064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35066 # This bug is HP SR number 8606223364.
35067 { echo "$as_me:$LINENO: checking size of int" >&5
35068 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35069 if test "${ac_cv_sizeof_int+set}" = set; then
35070 echo $ECHO_N "(cached) $ECHO_C" >&6
35072 if test "$cross_compiling" = yes; then
35073 # Depending upon the size, compute the lo and hi bounds.
35074 cat >conftest.$ac_ext <<_ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h. */
35080 $ac_includes_default
35081 typedef int ac__type_sizeof_;
35085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35092 rm -f conftest.$ac_objext
35093 if { (ac_try="$ac_compile"
35094 case "(($ac_try" in
35095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35096 *) ac_try_echo=$ac_try;;
35098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35099 (eval "$ac_compile") 2>conftest.er1
35101 grep -v '^ *+' conftest.er1 >conftest.err
35103 cat conftest.err >&5
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); } && {
35106 test -z "$ac_c_werror_flag" ||
35107 test ! -s conftest.err
35108 } && test -s conftest.$ac_objext; then
35111 cat >conftest.$ac_ext <<_ACEOF
35114 cat confdefs.h >>conftest.$ac_ext
35115 cat >>conftest.$ac_ext <<_ACEOF
35116 /* end confdefs.h. */
35117 $ac_includes_default
35118 typedef int ac__type_sizeof_;
35122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35129 rm -f conftest.$ac_objext
35130 if { (ac_try="$ac_compile"
35131 case "(($ac_try" in
35132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35133 *) ac_try_echo=$ac_try;;
35135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35136 (eval "$ac_compile") 2>conftest.er1
35138 grep -v '^ *+' conftest.er1 >conftest.err
35140 cat conftest.err >&5
35141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142 (exit $ac_status); } && {
35143 test -z "$ac_c_werror_flag" ||
35144 test ! -s conftest.err
35145 } && test -s conftest.$ac_objext; then
35146 ac_hi=$ac_mid; break
35148 echo "$as_me: failed program was:" >&5
35149 sed 's/^/| /' conftest.$ac_ext >&5
35151 ac_lo=`expr $ac_mid + 1`
35152 if test $ac_lo -le $ac_mid; then
35156 ac_mid=`expr 2 '*' $ac_mid + 1`
35159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35162 echo "$as_me: failed program was:" >&5
35163 sed 's/^/| /' conftest.$ac_ext >&5
35165 cat >conftest.$ac_ext <<_ACEOF
35168 cat confdefs.h >>conftest.$ac_ext
35169 cat >>conftest.$ac_ext <<_ACEOF
35170 /* end confdefs.h. */
35171 $ac_includes_default
35172 typedef int ac__type_sizeof_;
35176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35183 rm -f conftest.$ac_objext
35184 if { (ac_try="$ac_compile"
35185 case "(($ac_try" in
35186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35187 *) ac_try_echo=$ac_try;;
35189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35190 (eval "$ac_compile") 2>conftest.er1
35192 grep -v '^ *+' conftest.er1 >conftest.err
35194 cat conftest.err >&5
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); } && {
35197 test -z "$ac_c_werror_flag" ||
35198 test ! -s conftest.err
35199 } && test -s conftest.$ac_objext; then
35202 cat >conftest.$ac_ext <<_ACEOF
35205 cat confdefs.h >>conftest.$ac_ext
35206 cat >>conftest.$ac_ext <<_ACEOF
35207 /* end confdefs.h. */
35208 $ac_includes_default
35209 typedef int ac__type_sizeof_;
35213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35220 rm -f conftest.$ac_objext
35221 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
35229 grep -v '^ *+' conftest.er1 >conftest.err
35231 cat conftest.err >&5
35232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35233 (exit $ac_status); } && {
35234 test -z "$ac_c_werror_flag" ||
35235 test ! -s conftest.err
35236 } && test -s conftest.$ac_objext; then
35237 ac_lo=$ac_mid; break
35239 echo "$as_me: failed program was:" >&5
35240 sed 's/^/| /' conftest.$ac_ext >&5
35242 ac_hi=`expr '(' $ac_mid ')' - 1`
35243 if test $ac_mid -le $ac_hi; then
35247 ac_mid=`expr 2 '*' $ac_mid`
35250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35253 echo "$as_me: failed program was:" >&5
35254 sed 's/^/| /' conftest.$ac_ext >&5
35259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35263 # Binary search between lo and hi bounds.
35264 while test "x$ac_lo" != "x$ac_hi"; do
35265 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35266 cat >conftest.$ac_ext <<_ACEOF
35269 cat confdefs.h >>conftest.$ac_ext
35270 cat >>conftest.$ac_ext <<_ACEOF
35271 /* end confdefs.h. */
35272 $ac_includes_default
35273 typedef int ac__type_sizeof_;
35277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35284 rm -f conftest.$ac_objext
35285 if { (ac_try="$ac_compile"
35286 case "(($ac_try" in
35287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35288 *) ac_try_echo=$ac_try;;
35290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35291 (eval "$ac_compile") 2>conftest.er1
35293 grep -v '^ *+' conftest.er1 >conftest.err
35295 cat conftest.err >&5
35296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297 (exit $ac_status); } && {
35298 test -z "$ac_c_werror_flag" ||
35299 test ! -s conftest.err
35300 } && test -s conftest.$ac_objext; then
35303 echo "$as_me: failed program was:" >&5
35304 sed 's/^/| /' conftest.$ac_ext >&5
35306 ac_lo=`expr '(' $ac_mid ')' + 1`
35309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35312 ?*) ac_cv_sizeof_int=$ac_lo;;
35313 '') if test "$ac_cv_type_int" = yes; then
35314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35315 See \`config.log' for more details." >&5
35316 echo "$as_me: error: cannot compute sizeof (int)
35317 See \`config.log' for more details." >&2;}
35318 { (exit 77); exit 77; }; }
35324 cat >conftest.$ac_ext <<_ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h. */
35330 $ac_includes_default
35331 typedef int ac__type_sizeof_;
35332 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35333 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35335 #include <stdlib.h>
35340 FILE *f = fopen ("conftest.val", "w");
35343 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35345 long int i = longval ();
35346 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35348 fprintf (f, "%ld\n", i);
35352 unsigned long int i = ulongval ();
35353 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35355 fprintf (f, "%lu\n", i);
35357 return ferror (f) || fclose (f) != 0;
35363 rm -f conftest$ac_exeext
35364 if { (ac_try="$ac_link"
35365 case "(($ac_try" in
35366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35367 *) ac_try_echo=$ac_try;;
35369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35370 (eval "$ac_link") 2>&5
35372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35374 { (case "(($ac_try" in
35375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35376 *) ac_try_echo=$ac_try;;
35378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35379 (eval "$ac_try") 2>&5
35381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382 (exit $ac_status); }; }; then
35383 ac_cv_sizeof_int=`cat conftest.val`
35385 echo "$as_me: program exited with status $ac_status" >&5
35386 echo "$as_me: failed program was:" >&5
35387 sed 's/^/| /' conftest.$ac_ext >&5
35389 ( exit $ac_status )
35390 if test "$ac_cv_type_int" = yes; then
35391 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35392 See \`config.log' for more details." >&5
35393 echo "$as_me: error: cannot compute sizeof (int)
35394 See \`config.log' for more details." >&2;}
35395 { (exit 77); exit 77; }; }
35400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35404 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35405 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35409 cat >>confdefs.h <<_ACEOF
35410 #define SIZEOF_INT $ac_cv_sizeof_int
35414 { echo "$as_me:$LINENO: checking for long int" >&5
35415 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35416 if test "${ac_cv_type_long_int+set}" = set; then
35417 echo $ECHO_N "(cached) $ECHO_C" >&6
35419 cat >conftest.$ac_ext <<_ACEOF
35422 cat confdefs.h >>conftest.$ac_ext
35423 cat >>conftest.$ac_ext <<_ACEOF
35424 /* end confdefs.h. */
35425 $ac_includes_default
35426 typedef long int ac__type_new_;
35430 if ((ac__type_new_ *) 0)
35432 if (sizeof (ac__type_new_))
35438 rm -f conftest.$ac_objext
35439 if { (ac_try="$ac_compile"
35440 case "(($ac_try" in
35441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35442 *) ac_try_echo=$ac_try;;
35444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35445 (eval "$ac_compile") 2>conftest.er1
35447 grep -v '^ *+' conftest.er1 >conftest.err
35449 cat conftest.err >&5
35450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451 (exit $ac_status); } && {
35452 test -z "$ac_c_werror_flag" ||
35453 test ! -s conftest.err
35454 } && test -s conftest.$ac_objext; then
35455 ac_cv_type_long_int=yes
35457 echo "$as_me: failed program was:" >&5
35458 sed 's/^/| /' conftest.$ac_ext >&5
35460 ac_cv_type_long_int=no
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35465 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35466 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35468 # The cast to long int works around a bug in the HP C Compiler
35469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35471 # This bug is HP SR number 8606223364.
35472 { echo "$as_me:$LINENO: checking size of long int" >&5
35473 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35474 if test "${ac_cv_sizeof_long_int+set}" = set; then
35475 echo $ECHO_N "(cached) $ECHO_C" >&6
35477 if test "$cross_compiling" = yes; then
35478 # Depending upon the size, compute the lo and hi bounds.
35479 cat >conftest.$ac_ext <<_ACEOF
35482 cat confdefs.h >>conftest.$ac_ext
35483 cat >>conftest.$ac_ext <<_ACEOF
35484 /* end confdefs.h. */
35485 $ac_includes_default
35486 typedef long int ac__type_sizeof_;
35490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35497 rm -f conftest.$ac_objext
35498 if { (ac_try="$ac_compile"
35499 case "(($ac_try" in
35500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35501 *) ac_try_echo=$ac_try;;
35503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35504 (eval "$ac_compile") 2>conftest.er1
35506 grep -v '^ *+' conftest.er1 >conftest.err
35508 cat conftest.err >&5
35509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510 (exit $ac_status); } && {
35511 test -z "$ac_c_werror_flag" ||
35512 test ! -s conftest.err
35513 } && test -s conftest.$ac_objext; then
35516 cat >conftest.$ac_ext <<_ACEOF
35519 cat confdefs.h >>conftest.$ac_ext
35520 cat >>conftest.$ac_ext <<_ACEOF
35521 /* end confdefs.h. */
35522 $ac_includes_default
35523 typedef long int ac__type_sizeof_;
35527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35534 rm -f conftest.$ac_objext
35535 if { (ac_try="$ac_compile"
35536 case "(($ac_try" in
35537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35538 *) ac_try_echo=$ac_try;;
35540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35541 (eval "$ac_compile") 2>conftest.er1
35543 grep -v '^ *+' conftest.er1 >conftest.err
35545 cat conftest.err >&5
35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 (exit $ac_status); } && {
35548 test -z "$ac_c_werror_flag" ||
35549 test ! -s conftest.err
35550 } && test -s conftest.$ac_objext; then
35551 ac_hi=$ac_mid; break
35553 echo "$as_me: failed program was:" >&5
35554 sed 's/^/| /' conftest.$ac_ext >&5
35556 ac_lo=`expr $ac_mid + 1`
35557 if test $ac_lo -le $ac_mid; then
35561 ac_mid=`expr 2 '*' $ac_mid + 1`
35564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35567 echo "$as_me: failed program was:" >&5
35568 sed 's/^/| /' conftest.$ac_ext >&5
35570 cat >conftest.$ac_ext <<_ACEOF
35573 cat confdefs.h >>conftest.$ac_ext
35574 cat >>conftest.$ac_ext <<_ACEOF
35575 /* end confdefs.h. */
35576 $ac_includes_default
35577 typedef long int ac__type_sizeof_;
35581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35588 rm -f conftest.$ac_objext
35589 if { (ac_try="$ac_compile"
35590 case "(($ac_try" in
35591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35592 *) ac_try_echo=$ac_try;;
35594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35595 (eval "$ac_compile") 2>conftest.er1
35597 grep -v '^ *+' conftest.er1 >conftest.err
35599 cat conftest.err >&5
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); } && {
35602 test -z "$ac_c_werror_flag" ||
35603 test ! -s conftest.err
35604 } && test -s conftest.$ac_objext; then
35607 cat >conftest.$ac_ext <<_ACEOF
35610 cat confdefs.h >>conftest.$ac_ext
35611 cat >>conftest.$ac_ext <<_ACEOF
35612 /* end confdefs.h. */
35613 $ac_includes_default
35614 typedef long int ac__type_sizeof_;
35618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35625 rm -f conftest.$ac_objext
35626 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
35634 grep -v '^ *+' conftest.er1 >conftest.err
35636 cat conftest.err >&5
35637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638 (exit $ac_status); } && {
35639 test -z "$ac_c_werror_flag" ||
35640 test ! -s conftest.err
35641 } && test -s conftest.$ac_objext; then
35642 ac_lo=$ac_mid; break
35644 echo "$as_me: failed program was:" >&5
35645 sed 's/^/| /' conftest.$ac_ext >&5
35647 ac_hi=`expr '(' $ac_mid ')' - 1`
35648 if test $ac_mid -le $ac_hi; then
35652 ac_mid=`expr 2 '*' $ac_mid`
35655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658 echo "$as_me: failed program was:" >&5
35659 sed 's/^/| /' conftest.$ac_ext >&5
35664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35668 # Binary search between lo and hi bounds.
35669 while test "x$ac_lo" != "x$ac_hi"; do
35670 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35671 cat >conftest.$ac_ext <<_ACEOF
35674 cat confdefs.h >>conftest.$ac_ext
35675 cat >>conftest.$ac_ext <<_ACEOF
35676 /* end confdefs.h. */
35677 $ac_includes_default
35678 typedef long int ac__type_sizeof_;
35682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35689 rm -f conftest.$ac_objext
35690 if { (ac_try="$ac_compile"
35691 case "(($ac_try" in
35692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35693 *) ac_try_echo=$ac_try;;
35695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35696 (eval "$ac_compile") 2>conftest.er1
35698 grep -v '^ *+' conftest.er1 >conftest.err
35700 cat conftest.err >&5
35701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35702 (exit $ac_status); } && {
35703 test -z "$ac_c_werror_flag" ||
35704 test ! -s conftest.err
35705 } && test -s conftest.$ac_objext; then
35708 echo "$as_me: failed program was:" >&5
35709 sed 's/^/| /' conftest.$ac_ext >&5
35711 ac_lo=`expr '(' $ac_mid ')' + 1`
35714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35717 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35718 '') if test "$ac_cv_type_long_int" = yes; then
35719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35720 See \`config.log' for more details." >&5
35721 echo "$as_me: error: cannot compute sizeof (long int)
35722 See \`config.log' for more details." >&2;}
35723 { (exit 77); exit 77; }; }
35725 ac_cv_sizeof_long_int=0
35729 cat >conftest.$ac_ext <<_ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h. */
35735 $ac_includes_default
35736 typedef long int ac__type_sizeof_;
35737 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35738 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35740 #include <stdlib.h>
35745 FILE *f = fopen ("conftest.val", "w");
35748 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35750 long int i = longval ();
35751 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35753 fprintf (f, "%ld\n", i);
35757 unsigned long int i = ulongval ();
35758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35760 fprintf (f, "%lu\n", i);
35762 return ferror (f) || fclose (f) != 0;
35768 rm -f conftest$ac_exeext
35769 if { (ac_try="$ac_link"
35770 case "(($ac_try" in
35771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35772 *) ac_try_echo=$ac_try;;
35774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35775 (eval "$ac_link") 2>&5
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35779 { (case "(($ac_try" in
35780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35781 *) ac_try_echo=$ac_try;;
35783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35784 (eval "$ac_try") 2>&5
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; }; then
35788 ac_cv_sizeof_long_int=`cat conftest.val`
35790 echo "$as_me: program exited with status $ac_status" >&5
35791 echo "$as_me: failed program was:" >&5
35792 sed 's/^/| /' conftest.$ac_ext >&5
35794 ( exit $ac_status )
35795 if test "$ac_cv_type_long_int" = yes; then
35796 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35797 See \`config.log' for more details." >&5
35798 echo "$as_me: error: cannot compute sizeof (long int)
35799 See \`config.log' for more details." >&2;}
35800 { (exit 77); exit 77; }; }
35802 ac_cv_sizeof_long_int=0
35805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35809 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35810 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35814 cat >>confdefs.h <<_ACEOF
35815 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35819 { echo "$as_me:$LINENO: checking for long long int" >&5
35820 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35821 if test "${ac_cv_type_long_long_int+set}" = set; then
35822 echo $ECHO_N "(cached) $ECHO_C" >&6
35824 cat >conftest.$ac_ext <<_ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h. */
35830 $ac_includes_default
35831 typedef long long int ac__type_new_;
35835 if ((ac__type_new_ *) 0)
35837 if (sizeof (ac__type_new_))
35843 rm -f conftest.$ac_objext
35844 if { (ac_try="$ac_compile"
35845 case "(($ac_try" in
35846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35847 *) ac_try_echo=$ac_try;;
35849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35850 (eval "$ac_compile") 2>conftest.er1
35852 grep -v '^ *+' conftest.er1 >conftest.err
35854 cat conftest.err >&5
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); } && {
35857 test -z "$ac_c_werror_flag" ||
35858 test ! -s conftest.err
35859 } && test -s conftest.$ac_objext; then
35860 ac_cv_type_long_long_int=yes
35862 echo "$as_me: failed program was:" >&5
35863 sed 's/^/| /' conftest.$ac_ext >&5
35865 ac_cv_type_long_long_int=no
35868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35870 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35871 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35873 # The cast to long int works around a bug in the HP C Compiler
35874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35876 # This bug is HP SR number 8606223364.
35877 { echo "$as_me:$LINENO: checking size of long long int" >&5
35878 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35879 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35880 echo $ECHO_N "(cached) $ECHO_C" >&6
35882 if test "$cross_compiling" = yes; then
35883 # Depending upon the size, compute the lo and hi bounds.
35884 cat >conftest.$ac_ext <<_ACEOF
35887 cat confdefs.h >>conftest.$ac_ext
35888 cat >>conftest.$ac_ext <<_ACEOF
35889 /* end confdefs.h. */
35890 $ac_includes_default
35891 typedef long long int ac__type_sizeof_;
35895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35902 rm -f conftest.$ac_objext
35903 if { (ac_try="$ac_compile"
35904 case "(($ac_try" in
35905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35906 *) ac_try_echo=$ac_try;;
35908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35909 (eval "$ac_compile") 2>conftest.er1
35911 grep -v '^ *+' conftest.er1 >conftest.err
35913 cat conftest.err >&5
35914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915 (exit $ac_status); } && {
35916 test -z "$ac_c_werror_flag" ||
35917 test ! -s conftest.err
35918 } && test -s conftest.$ac_objext; then
35921 cat >conftest.$ac_ext <<_ACEOF
35924 cat confdefs.h >>conftest.$ac_ext
35925 cat >>conftest.$ac_ext <<_ACEOF
35926 /* end confdefs.h. */
35927 $ac_includes_default
35928 typedef long long int ac__type_sizeof_;
35932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35939 rm -f conftest.$ac_objext
35940 if { (ac_try="$ac_compile"
35941 case "(($ac_try" in
35942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35943 *) ac_try_echo=$ac_try;;
35945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35946 (eval "$ac_compile") 2>conftest.er1
35948 grep -v '^ *+' conftest.er1 >conftest.err
35950 cat conftest.err >&5
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); } && {
35953 test -z "$ac_c_werror_flag" ||
35954 test ! -s conftest.err
35955 } && test -s conftest.$ac_objext; then
35956 ac_hi=$ac_mid; break
35958 echo "$as_me: failed program was:" >&5
35959 sed 's/^/| /' conftest.$ac_ext >&5
35961 ac_lo=`expr $ac_mid + 1`
35962 if test $ac_lo -le $ac_mid; then
35966 ac_mid=`expr 2 '*' $ac_mid + 1`
35969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35972 echo "$as_me: failed program was:" >&5
35973 sed 's/^/| /' conftest.$ac_ext >&5
35975 cat >conftest.$ac_ext <<_ACEOF
35978 cat confdefs.h >>conftest.$ac_ext
35979 cat >>conftest.$ac_ext <<_ACEOF
35980 /* end confdefs.h. */
35981 $ac_includes_default
35982 typedef long long int ac__type_sizeof_;
35986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35993 rm -f conftest.$ac_objext
35994 if { (ac_try="$ac_compile"
35995 case "(($ac_try" in
35996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35997 *) ac_try_echo=$ac_try;;
35999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36000 (eval "$ac_compile") 2>conftest.er1
36002 grep -v '^ *+' conftest.er1 >conftest.err
36004 cat conftest.err >&5
36005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006 (exit $ac_status); } && {
36007 test -z "$ac_c_werror_flag" ||
36008 test ! -s conftest.err
36009 } && test -s conftest.$ac_objext; then
36012 cat >conftest.$ac_ext <<_ACEOF
36015 cat confdefs.h >>conftest.$ac_ext
36016 cat >>conftest.$ac_ext <<_ACEOF
36017 /* end confdefs.h. */
36018 $ac_includes_default
36019 typedef long long int ac__type_sizeof_;
36023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36030 rm -f conftest.$ac_objext
36031 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
36039 grep -v '^ *+' conftest.er1 >conftest.err
36041 cat conftest.err >&5
36042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043 (exit $ac_status); } && {
36044 test -z "$ac_c_werror_flag" ||
36045 test ! -s conftest.err
36046 } && test -s conftest.$ac_objext; then
36047 ac_lo=$ac_mid; break
36049 echo "$as_me: failed program was:" >&5
36050 sed 's/^/| /' conftest.$ac_ext >&5
36052 ac_hi=`expr '(' $ac_mid ')' - 1`
36053 if test $ac_mid -le $ac_hi; then
36057 ac_mid=`expr 2 '*' $ac_mid`
36060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36063 echo "$as_me: failed program was:" >&5
36064 sed 's/^/| /' conftest.$ac_ext >&5
36069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36073 # Binary search between lo and hi bounds.
36074 while test "x$ac_lo" != "x$ac_hi"; do
36075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36076 cat >conftest.$ac_ext <<_ACEOF
36079 cat confdefs.h >>conftest.$ac_ext
36080 cat >>conftest.$ac_ext <<_ACEOF
36081 /* end confdefs.h. */
36082 $ac_includes_default
36083 typedef long long int ac__type_sizeof_;
36087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36094 rm -f conftest.$ac_objext
36095 if { (ac_try="$ac_compile"
36096 case "(($ac_try" in
36097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36098 *) ac_try_echo=$ac_try;;
36100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36101 (eval "$ac_compile") 2>conftest.er1
36103 grep -v '^ *+' conftest.er1 >conftest.err
36105 cat conftest.err >&5
36106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107 (exit $ac_status); } && {
36108 test -z "$ac_c_werror_flag" ||
36109 test ! -s conftest.err
36110 } && test -s conftest.$ac_objext; then
36113 echo "$as_me: failed program was:" >&5
36114 sed 's/^/| /' conftest.$ac_ext >&5
36116 ac_lo=`expr '(' $ac_mid ')' + 1`
36119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36122 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36123 '') if test "$ac_cv_type_long_long_int" = yes; then
36124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36125 See \`config.log' for more details." >&5
36126 echo "$as_me: error: cannot compute sizeof (long long int)
36127 See \`config.log' for more details." >&2;}
36128 { (exit 77); exit 77; }; }
36130 ac_cv_sizeof_long_long_int=0
36134 cat >conftest.$ac_ext <<_ACEOF
36137 cat confdefs.h >>conftest.$ac_ext
36138 cat >>conftest.$ac_ext <<_ACEOF
36139 /* end confdefs.h. */
36140 $ac_includes_default
36141 typedef long long int ac__type_sizeof_;
36142 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36143 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36145 #include <stdlib.h>
36150 FILE *f = fopen ("conftest.val", "w");
36153 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36155 long int i = longval ();
36156 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36158 fprintf (f, "%ld\n", i);
36162 unsigned long int i = ulongval ();
36163 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36165 fprintf (f, "%lu\n", i);
36167 return ferror (f) || fclose (f) != 0;
36173 rm -f conftest$ac_exeext
36174 if { (ac_try="$ac_link"
36175 case "(($ac_try" in
36176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36177 *) ac_try_echo=$ac_try;;
36179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36180 (eval "$ac_link") 2>&5
36182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36184 { (case "(($ac_try" in
36185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36186 *) ac_try_echo=$ac_try;;
36188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36189 (eval "$ac_try") 2>&5
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; }; then
36193 ac_cv_sizeof_long_long_int=`cat conftest.val`
36195 echo "$as_me: program exited with status $ac_status" >&5
36196 echo "$as_me: failed program was:" >&5
36197 sed 's/^/| /' conftest.$ac_ext >&5
36199 ( exit $ac_status )
36200 if test "$ac_cv_type_long_long_int" = yes; then
36201 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36202 See \`config.log' for more details." >&5
36203 echo "$as_me: error: cannot compute sizeof (long long int)
36204 See \`config.log' for more details." >&2;}
36205 { (exit 77); exit 77; }; }
36207 ac_cv_sizeof_long_long_int=0
36210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36214 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36215 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36219 cat >>confdefs.h <<_ACEOF
36220 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36224 { echo "$as_me:$LINENO: checking for int *" >&5
36225 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36226 if test "${ac_cv_type_int_p+set}" = set; then
36227 echo $ECHO_N "(cached) $ECHO_C" >&6
36229 cat >conftest.$ac_ext <<_ACEOF
36232 cat confdefs.h >>conftest.$ac_ext
36233 cat >>conftest.$ac_ext <<_ACEOF
36234 /* end confdefs.h. */
36235 $ac_includes_default
36236 typedef int * ac__type_new_;
36240 if ((ac__type_new_ *) 0)
36242 if (sizeof (ac__type_new_))
36248 rm -f conftest.$ac_objext
36249 if { (ac_try="$ac_compile"
36250 case "(($ac_try" in
36251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36252 *) ac_try_echo=$ac_try;;
36254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36255 (eval "$ac_compile") 2>conftest.er1
36257 grep -v '^ *+' conftest.er1 >conftest.err
36259 cat conftest.err >&5
36260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261 (exit $ac_status); } && {
36262 test -z "$ac_c_werror_flag" ||
36263 test ! -s conftest.err
36264 } && test -s conftest.$ac_objext; then
36265 ac_cv_type_int_p=yes
36267 echo "$as_me: failed program was:" >&5
36268 sed 's/^/| /' conftest.$ac_ext >&5
36270 ac_cv_type_int_p=no
36273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36275 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36276 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36278 # The cast to long int works around a bug in the HP C Compiler
36279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36281 # This bug is HP SR number 8606223364.
36282 { echo "$as_me:$LINENO: checking size of int *" >&5
36283 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36284 if test "${ac_cv_sizeof_int_p+set}" = set; then
36285 echo $ECHO_N "(cached) $ECHO_C" >&6
36287 if test "$cross_compiling" = yes; then
36288 # Depending upon the size, compute the lo and hi bounds.
36289 cat >conftest.$ac_ext <<_ACEOF
36292 cat confdefs.h >>conftest.$ac_ext
36293 cat >>conftest.$ac_ext <<_ACEOF
36294 /* end confdefs.h. */
36295 $ac_includes_default
36296 typedef int * ac__type_sizeof_;
36300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36307 rm -f conftest.$ac_objext
36308 if { (ac_try="$ac_compile"
36309 case "(($ac_try" in
36310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36311 *) ac_try_echo=$ac_try;;
36313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36314 (eval "$ac_compile") 2>conftest.er1
36316 grep -v '^ *+' conftest.er1 >conftest.err
36318 cat conftest.err >&5
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); } && {
36321 test -z "$ac_c_werror_flag" ||
36322 test ! -s conftest.err
36323 } && test -s conftest.$ac_objext; then
36326 cat >conftest.$ac_ext <<_ACEOF
36329 cat confdefs.h >>conftest.$ac_ext
36330 cat >>conftest.$ac_ext <<_ACEOF
36331 /* end confdefs.h. */
36332 $ac_includes_default
36333 typedef int * ac__type_sizeof_;
36337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36344 rm -f conftest.$ac_objext
36345 if { (ac_try="$ac_compile"
36346 case "(($ac_try" in
36347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36348 *) ac_try_echo=$ac_try;;
36350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36351 (eval "$ac_compile") 2>conftest.er1
36353 grep -v '^ *+' conftest.er1 >conftest.err
36355 cat conftest.err >&5
36356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36357 (exit $ac_status); } && {
36358 test -z "$ac_c_werror_flag" ||
36359 test ! -s conftest.err
36360 } && test -s conftest.$ac_objext; then
36361 ac_hi=$ac_mid; break
36363 echo "$as_me: failed program was:" >&5
36364 sed 's/^/| /' conftest.$ac_ext >&5
36366 ac_lo=`expr $ac_mid + 1`
36367 if test $ac_lo -le $ac_mid; then
36371 ac_mid=`expr 2 '*' $ac_mid + 1`
36374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36377 echo "$as_me: failed program was:" >&5
36378 sed 's/^/| /' conftest.$ac_ext >&5
36380 cat >conftest.$ac_ext <<_ACEOF
36383 cat confdefs.h >>conftest.$ac_ext
36384 cat >>conftest.$ac_ext <<_ACEOF
36385 /* end confdefs.h. */
36386 $ac_includes_default
36387 typedef int * ac__type_sizeof_;
36391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36398 rm -f conftest.$ac_objext
36399 if { (ac_try="$ac_compile"
36400 case "(($ac_try" in
36401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36402 *) ac_try_echo=$ac_try;;
36404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36405 (eval "$ac_compile") 2>conftest.er1
36407 grep -v '^ *+' conftest.er1 >conftest.err
36409 cat conftest.err >&5
36410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 (exit $ac_status); } && {
36412 test -z "$ac_c_werror_flag" ||
36413 test ! -s conftest.err
36414 } && test -s conftest.$ac_objext; then
36417 cat >conftest.$ac_ext <<_ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h. */
36423 $ac_includes_default
36424 typedef int * ac__type_sizeof_;
36428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36435 rm -f conftest.$ac_objext
36436 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
36444 grep -v '^ *+' conftest.er1 >conftest.err
36446 cat conftest.err >&5
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); } && {
36449 test -z "$ac_c_werror_flag" ||
36450 test ! -s conftest.err
36451 } && test -s conftest.$ac_objext; then
36452 ac_lo=$ac_mid; break
36454 echo "$as_me: failed program was:" >&5
36455 sed 's/^/| /' conftest.$ac_ext >&5
36457 ac_hi=`expr '(' $ac_mid ')' - 1`
36458 if test $ac_mid -le $ac_hi; then
36462 ac_mid=`expr 2 '*' $ac_mid`
36465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36468 echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36478 # Binary search between lo and hi bounds.
36479 while test "x$ac_lo" != "x$ac_hi"; do
36480 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36481 cat >conftest.$ac_ext <<_ACEOF
36484 cat confdefs.h >>conftest.$ac_ext
36485 cat >>conftest.$ac_ext <<_ACEOF
36486 /* end confdefs.h. */
36487 $ac_includes_default
36488 typedef int * ac__type_sizeof_;
36492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36499 rm -f conftest.$ac_objext
36500 if { (ac_try="$ac_compile"
36501 case "(($ac_try" in
36502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36503 *) ac_try_echo=$ac_try;;
36505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36506 (eval "$ac_compile") 2>conftest.er1
36508 grep -v '^ *+' conftest.er1 >conftest.err
36510 cat conftest.err >&5
36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512 (exit $ac_status); } && {
36513 test -z "$ac_c_werror_flag" ||
36514 test ! -s conftest.err
36515 } && test -s conftest.$ac_objext; then
36518 echo "$as_me: failed program was:" >&5
36519 sed 's/^/| /' conftest.$ac_ext >&5
36521 ac_lo=`expr '(' $ac_mid ')' + 1`
36524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36527 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36528 '') if test "$ac_cv_type_int_p" = yes; then
36529 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36530 See \`config.log' for more details." >&5
36531 echo "$as_me: error: cannot compute sizeof (int *)
36532 See \`config.log' for more details." >&2;}
36533 { (exit 77); exit 77; }; }
36535 ac_cv_sizeof_int_p=0
36539 cat >conftest.$ac_ext <<_ACEOF
36542 cat confdefs.h >>conftest.$ac_ext
36543 cat >>conftest.$ac_ext <<_ACEOF
36544 /* end confdefs.h. */
36545 $ac_includes_default
36546 typedef int * ac__type_sizeof_;
36547 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36548 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36550 #include <stdlib.h>
36555 FILE *f = fopen ("conftest.val", "w");
36558 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36560 long int i = longval ();
36561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36563 fprintf (f, "%ld\n", i);
36567 unsigned long int i = ulongval ();
36568 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36570 fprintf (f, "%lu\n", i);
36572 return ferror (f) || fclose (f) != 0;
36578 rm -f conftest$ac_exeext
36579 if { (ac_try="$ac_link"
36580 case "(($ac_try" in
36581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36582 *) ac_try_echo=$ac_try;;
36584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36585 (eval "$ac_link") 2>&5
36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36589 { (case "(($ac_try" in
36590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36591 *) ac_try_echo=$ac_try;;
36593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36594 (eval "$ac_try") 2>&5
36596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597 (exit $ac_status); }; }; then
36598 ac_cv_sizeof_int_p=`cat conftest.val`
36600 echo "$as_me: program exited with status $ac_status" >&5
36601 echo "$as_me: failed program was:" >&5
36602 sed 's/^/| /' conftest.$ac_ext >&5
36604 ( exit $ac_status )
36605 if test "$ac_cv_type_int_p" = yes; then
36606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36607 See \`config.log' for more details." >&5
36608 echo "$as_me: error: cannot compute sizeof (int *)
36609 See \`config.log' for more details." >&2;}
36610 { (exit 77); exit 77; }; }
36612 ac_cv_sizeof_int_p=0
36615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36619 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36620 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36624 cat >>confdefs.h <<_ACEOF
36625 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36630 { echo "$as_me:$LINENO: checking for u_int type" >&5
36631 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36632 if test "${ac_cv_have_u_int+set}" = set; then
36633 echo $ECHO_N "(cached) $ECHO_C" >&6
36636 cat >conftest.$ac_ext <<_ACEOF
36639 cat confdefs.h >>conftest.$ac_ext
36640 cat >>conftest.$ac_ext <<_ACEOF
36641 /* end confdefs.h. */
36643 #include <sys/types.h>
36655 rm -f conftest.$ac_objext
36656 if { (ac_try="$ac_compile"
36657 case "(($ac_try" in
36658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36659 *) ac_try_echo=$ac_try;;
36661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36662 (eval "$ac_compile") 2>conftest.er1
36664 grep -v '^ *+' conftest.er1 >conftest.err
36666 cat conftest.err >&5
36667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668 (exit $ac_status); } && {
36669 test -z "$ac_c_werror_flag" ||
36670 test ! -s conftest.err
36671 } && test -s conftest.$ac_objext; then
36673 ac_cv_have_u_int="yes"
36676 echo "$as_me: failed program was:" >&5
36677 sed 's/^/| /' conftest.$ac_ext >&5
36680 ac_cv_have_u_int="no"
36685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36689 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36690 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36691 if test "x$ac_cv_have_u_int" = "xyes" ; then
36692 cat >>confdefs.h <<\_ACEOF
36693 #define HAVE_U_INT 1
36699 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36700 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36701 if test "${ac_cv_have_intmax_t+set}" = set; then
36702 echo $ECHO_N "(cached) $ECHO_C" >&6
36705 cat >conftest.$ac_ext <<_ACEOF
36708 cat confdefs.h >>conftest.$ac_ext
36709 cat >>conftest.$ac_ext <<_ACEOF
36710 /* end confdefs.h. */
36712 #include <sys/types.h>
36724 rm -f conftest.$ac_objext
36725 if { (ac_try="$ac_compile"
36726 case "(($ac_try" in
36727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728 *) ac_try_echo=$ac_try;;
36730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36731 (eval "$ac_compile") 2>conftest.er1
36733 grep -v '^ *+' conftest.er1 >conftest.err
36735 cat conftest.err >&5
36736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737 (exit $ac_status); } && {
36738 test -z "$ac_c_werror_flag" ||
36739 test ! -s conftest.err
36740 } && test -s conftest.$ac_objext; then
36742 ac_cv_have_intmax_t="yes"
36745 echo "$as_me: failed program was:" >&5
36746 sed 's/^/| /' conftest.$ac_ext >&5
36749 cat >conftest.$ac_ext <<_ACEOF
36752 cat confdefs.h >>conftest.$ac_ext
36753 cat >>conftest.$ac_ext <<_ACEOF
36754 /* end confdefs.h. */
36756 #include <stdint.h>
36768 rm -f conftest.$ac_objext
36769 if { (ac_try="$ac_compile"
36770 case "(($ac_try" in
36771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36772 *) ac_try_echo=$ac_try;;
36774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36775 (eval "$ac_compile") 2>conftest.er1
36777 grep -v '^ *+' conftest.er1 >conftest.err
36779 cat conftest.err >&5
36780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781 (exit $ac_status); } && {
36782 test -z "$ac_c_werror_flag" ||
36783 test ! -s conftest.err
36784 } && test -s conftest.$ac_objext; then
36786 ac_cv_have_intmax_t="yes"
36789 echo "$as_me: failed program was:" >&5
36790 sed 's/^/| /' conftest.$ac_ext >&5
36793 ac_cv_have_intmax_t="no"
36798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36807 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36808 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36809 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36810 cat >>confdefs.h <<\_ACEOF
36811 #define HAVE_INTMAX_T 1
36817 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36818 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36819 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36820 echo $ECHO_N "(cached) $ECHO_C" >&6
36823 cat >conftest.$ac_ext <<_ACEOF
36826 cat confdefs.h >>conftest.$ac_ext
36827 cat >>conftest.$ac_ext <<_ACEOF
36828 /* end confdefs.h. */
36830 #include <sys/types.h>
36836 u_intmax_t a; a = 1;
36842 rm -f conftest.$ac_objext
36843 if { (ac_try="$ac_compile"
36844 case "(($ac_try" in
36845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36846 *) ac_try_echo=$ac_try;;
36848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36849 (eval "$ac_compile") 2>conftest.er1
36851 grep -v '^ *+' conftest.er1 >conftest.err
36853 cat conftest.err >&5
36854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855 (exit $ac_status); } && {
36856 test -z "$ac_c_werror_flag" ||
36857 test ! -s conftest.err
36858 } && test -s conftest.$ac_objext; then
36860 ac_cv_have_u_intmax_t="yes"
36863 echo "$as_me: failed program was:" >&5
36864 sed 's/^/| /' conftest.$ac_ext >&5
36867 cat >conftest.$ac_ext <<_ACEOF
36870 cat confdefs.h >>conftest.$ac_ext
36871 cat >>conftest.$ac_ext <<_ACEOF
36872 /* end confdefs.h. */
36874 #include <stdint.h>
36880 u_intmax_t a; a = 1;
36886 rm -f conftest.$ac_objext
36887 if { (ac_try="$ac_compile"
36888 case "(($ac_try" in
36889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36890 *) ac_try_echo=$ac_try;;
36892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36893 (eval "$ac_compile") 2>conftest.er1
36895 grep -v '^ *+' conftest.er1 >conftest.err
36897 cat conftest.err >&5
36898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36899 (exit $ac_status); } && {
36900 test -z "$ac_c_werror_flag" ||
36901 test ! -s conftest.err
36902 } && test -s conftest.$ac_objext; then
36904 ac_cv_have_u_intmax_t="yes"
36907 echo "$as_me: failed program was:" >&5
36908 sed 's/^/| /' conftest.$ac_ext >&5
36911 ac_cv_have_u_intmax_t="no"
36916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36925 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36926 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36927 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36928 cat >>confdefs.h <<\_ACEOF
36929 #define HAVE_U_INTMAX_T 1
36935 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36936 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36937 if test "${ac_cv_have_intxx_t+set}" = set; then
36938 echo $ECHO_N "(cached) $ECHO_C" >&6
36941 cat >conftest.$ac_ext <<_ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h. */
36948 #include <sys/types.h>
36954 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36960 rm -f conftest.$ac_objext
36961 if { (ac_try="$ac_compile"
36962 case "(($ac_try" in
36963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36964 *) ac_try_echo=$ac_try;;
36966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36967 (eval "$ac_compile") 2>conftest.er1
36969 grep -v '^ *+' conftest.er1 >conftest.err
36971 cat conftest.err >&5
36972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36973 (exit $ac_status); } && {
36974 test -z "$ac_c_werror_flag" ||
36975 test ! -s conftest.err
36976 } && test -s conftest.$ac_objext; then
36978 ac_cv_have_intxx_t="yes"
36981 echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36985 ac_cv_have_intxx_t="no"
36990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36994 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36995 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36996 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36997 cat >>confdefs.h <<\_ACEOF
36998 #define HAVE_INTXX_T 1
37004 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37005 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37006 if test "${ac_cv_have_int64_t+set}" = set; then
37007 echo $ECHO_N "(cached) $ECHO_C" >&6
37010 cat >conftest.$ac_ext <<_ACEOF
37013 cat confdefs.h >>conftest.$ac_ext
37014 cat >>conftest.$ac_ext <<_ACEOF
37015 /* end confdefs.h. */
37017 #include <sys/types.h>
37029 rm -f conftest.$ac_objext
37030 if { (ac_try="$ac_compile"
37031 case "(($ac_try" in
37032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37033 *) ac_try_echo=$ac_try;;
37035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37036 (eval "$ac_compile") 2>conftest.er1
37038 grep -v '^ *+' conftest.er1 >conftest.err
37040 cat conftest.err >&5
37041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042 (exit $ac_status); } && {
37043 test -z "$ac_c_werror_flag" ||
37044 test ! -s conftest.err
37045 } && test -s conftest.$ac_objext; then
37047 ac_cv_have_int64_t="yes"
37050 echo "$as_me: failed program was:" >&5
37051 sed 's/^/| /' conftest.$ac_ext >&5
37054 ac_cv_have_int64_t="no"
37059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37063 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37064 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37065 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37066 cat >>confdefs.h <<\_ACEOF
37067 #define HAVE_INT64_T 1
37073 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37074 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37075 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37076 echo $ECHO_N "(cached) $ECHO_C" >&6
37079 cat >conftest.$ac_ext <<_ACEOF
37082 cat confdefs.h >>conftest.$ac_ext
37083 cat >>conftest.$ac_ext <<_ACEOF
37084 /* end confdefs.h. */
37086 #include <sys/types.h>
37092 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37098 rm -f conftest.$ac_objext
37099 if { (ac_try="$ac_compile"
37100 case "(($ac_try" in
37101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37102 *) ac_try_echo=$ac_try;;
37104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37105 (eval "$ac_compile") 2>conftest.er1
37107 grep -v '^ *+' conftest.er1 >conftest.err
37109 cat conftest.err >&5
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); } && {
37112 test -z "$ac_c_werror_flag" ||
37113 test ! -s conftest.err
37114 } && test -s conftest.$ac_objext; then
37116 ac_cv_have_u_intxx_t="yes"
37119 echo "$as_me: failed program was:" >&5
37120 sed 's/^/| /' conftest.$ac_ext >&5
37123 ac_cv_have_u_intxx_t="no"
37128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37132 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37133 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37134 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37135 cat >>confdefs.h <<\_ACEOF
37136 #define HAVE_U_INTXX_T 1
37142 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37143 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37144 if test "${ac_cv_have_u_int64_t+set}" = set; then
37145 echo $ECHO_N "(cached) $ECHO_C" >&6
37148 cat >conftest.$ac_ext <<_ACEOF
37151 cat confdefs.h >>conftest.$ac_ext
37152 cat >>conftest.$ac_ext <<_ACEOF
37153 /* end confdefs.h. */
37155 #include <sys/types.h>
37161 u_int64_t a; a = 1;
37167 rm -f conftest.$ac_objext
37168 if { (ac_try="$ac_compile"
37169 case "(($ac_try" in
37170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37171 *) ac_try_echo=$ac_try;;
37173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37174 (eval "$ac_compile") 2>conftest.er1
37176 grep -v '^ *+' conftest.er1 >conftest.err
37178 cat conftest.err >&5
37179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); } && {
37181 test -z "$ac_c_werror_flag" ||
37182 test ! -s conftest.err
37183 } && test -s conftest.$ac_objext; then
37185 ac_cv_have_u_int64_t="yes"
37188 echo "$as_me: failed program was:" >&5
37189 sed 's/^/| /' conftest.$ac_ext >&5
37192 ac_cv_have_u_int64_t="no"
37197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37201 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37202 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37203 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37204 cat >>confdefs.h <<\_ACEOF
37205 #define HAVE_U_INT64_T 1
37211 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37212 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37214 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37215 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37216 cat >conftest.$ac_ext <<_ACEOF
37219 cat confdefs.h >>conftest.$ac_ext
37220 cat >>conftest.$ac_ext <<_ACEOF
37221 /* end confdefs.h. */
37223 #include <sys/bitypes.h>
37229 int8_t a; int16_t b; int32_t c;
37230 u_int8_t e; u_int16_t f; u_int32_t g;
37231 a = b = c = e = f = g = 1;
37237 rm -f conftest.$ac_objext
37238 if { (ac_try="$ac_compile"
37239 case "(($ac_try" in
37240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37241 *) ac_try_echo=$ac_try;;
37243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37244 (eval "$ac_compile") 2>conftest.er1
37246 grep -v '^ *+' conftest.er1 >conftest.err
37248 cat conftest.err >&5
37249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250 (exit $ac_status); } && {
37251 test -z "$ac_c_werror_flag" ||
37252 test ! -s conftest.err
37253 } && test -s conftest.$ac_objext; then
37255 cat >>confdefs.h <<\_ACEOF
37256 #define HAVE_U_INTXX_T 1
37259 cat >>confdefs.h <<\_ACEOF
37260 #define HAVE_INTXX_T 1
37263 cat >>confdefs.h <<\_ACEOF
37264 #define HAVE_SYS_BITYPES_H 1
37267 { echo "$as_me:$LINENO: result: yes" >&5
37268 echo "${ECHO_T}yes" >&6; }
37271 echo "$as_me: failed program was:" >&5
37272 sed 's/^/| /' conftest.$ac_ext >&5
37275 { echo "$as_me:$LINENO: result: no" >&5
37276 echo "${ECHO_T}no" >&6; }
37281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37284 if test -z "$have_u_intxx_t" ; then
37285 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37286 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37287 if test "${ac_cv_have_uintxx_t+set}" = set; then
37288 echo $ECHO_N "(cached) $ECHO_C" >&6
37291 cat >conftest.$ac_ext <<_ACEOF
37294 cat confdefs.h >>conftest.$ac_ext
37295 cat >>conftest.$ac_ext <<_ACEOF
37296 /* end confdefs.h. */
37298 #include <sys/types.h>
37304 uint8_t a; uint16_t b;
37305 uint32_t c; a = b = c = 1;
37311 rm -f conftest.$ac_objext
37312 if { (ac_try="$ac_compile"
37313 case "(($ac_try" in
37314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37315 *) ac_try_echo=$ac_try;;
37317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37318 (eval "$ac_compile") 2>conftest.er1
37320 grep -v '^ *+' conftest.er1 >conftest.err
37322 cat conftest.err >&5
37323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37324 (exit $ac_status); } && {
37325 test -z "$ac_c_werror_flag" ||
37326 test ! -s conftest.err
37327 } && test -s conftest.$ac_objext; then
37329 ac_cv_have_uintxx_t="yes"
37332 echo "$as_me: failed program was:" >&5
37333 sed 's/^/| /' conftest.$ac_ext >&5
37336 ac_cv_have_uintxx_t="no"
37341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37345 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37346 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37347 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37348 cat >>confdefs.h <<\_ACEOF
37349 #define HAVE_UINTXX_T 1
37355 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37356 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37358 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37359 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37360 cat >conftest.$ac_ext <<_ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h. */
37367 #include <sys/bitypes.h>
37373 int64_t a; u_int64_t b;
37380 rm -f conftest.$ac_objext
37381 if { (ac_try="$ac_compile"
37382 case "(($ac_try" in
37383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37384 *) ac_try_echo=$ac_try;;
37386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37387 (eval "$ac_compile") 2>conftest.er1
37389 grep -v '^ *+' conftest.er1 >conftest.err
37391 cat conftest.err >&5
37392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393 (exit $ac_status); } && {
37394 test -z "$ac_c_werror_flag" ||
37395 test ! -s conftest.err
37396 } && test -s conftest.$ac_objext; then
37398 cat >>confdefs.h <<\_ACEOF
37399 #define HAVE_U_INT64_T 1
37402 cat >>confdefs.h <<\_ACEOF
37403 #define HAVE_INT64_T 1
37406 { echo "$as_me:$LINENO: result: yes" >&5
37407 echo "${ECHO_T}yes" >&6; }
37410 echo "$as_me: failed program was:" >&5
37411 sed 's/^/| /' conftest.$ac_ext >&5
37414 { echo "$as_me:$LINENO: result: no" >&5
37415 echo "${ECHO_T}no" >&6; }
37420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37423 if (test -z "$have_uintxx_t" && \
37424 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37426 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37427 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37428 cat >conftest.$ac_ext <<_ACEOF
37431 cat confdefs.h >>conftest.$ac_ext
37432 cat >>conftest.$ac_ext <<_ACEOF
37433 /* end confdefs.h. */
37435 #include <sys/bitypes.h>
37441 uint8_t a; uint16_t b;
37442 uint32_t c; a = b = c = 1;
37448 rm -f conftest.$ac_objext
37449 if { (ac_try="$ac_compile"
37450 case "(($ac_try" in
37451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37452 *) ac_try_echo=$ac_try;;
37454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37455 (eval "$ac_compile") 2>conftest.er1
37457 grep -v '^ *+' conftest.er1 >conftest.err
37459 cat conftest.err >&5
37460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461 (exit $ac_status); } && {
37462 test -z "$ac_c_werror_flag" ||
37463 test ! -s conftest.err
37464 } && test -s conftest.$ac_objext; then
37466 cat >>confdefs.h <<\_ACEOF
37467 #define HAVE_UINTXX_T 1
37470 { echo "$as_me:$LINENO: result: yes" >&5
37471 echo "${ECHO_T}yes" >&6; }
37474 echo "$as_me: failed program was:" >&5
37475 sed 's/^/| /' conftest.$ac_ext >&5
37478 { echo "$as_me:$LINENO: result: no" >&5
37479 echo "${ECHO_T}no" >&6; }
37484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37520 echo $ECHO_N "(cached) $ECHO_C" >&6
37522 cat >conftest.$ac_ext <<_ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h. */
37528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37530 #define $ac_func innocuous_$ac_func
37532 /* System header to define __stub macros and hopefully few prototypes,
37533 which can conflict with char $ac_func (); below.
37534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37535 <limits.h> exists even on freestanding compilers. */
37538 # include <limits.h>
37540 # include <assert.h>
37545 /* Override any GCC internal prototype to avoid an error.
37546 Use char because int might match the return type of a GCC
37547 builtin and then its argument prototype would still apply. */
37552 /* The GNU C library defines this for functions which it implements
37553 to always fail with ENOSYS. Some functions are actually named
37554 something starting with __ and the normal name is an alias. */
37555 #if defined __stub_$ac_func || defined __stub___$ac_func
37562 return $ac_func ();
37567 rm -f conftest.$ac_objext conftest$ac_exeext
37568 if { (ac_try="$ac_link"
37569 case "(($ac_try" in
37570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37571 *) ac_try_echo=$ac_try;;
37573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37574 (eval "$ac_link") 2>conftest.er1
37576 grep -v '^ *+' conftest.er1 >conftest.err
37578 cat conftest.err >&5
37579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580 (exit $ac_status); } && {
37581 test -z "$ac_c_werror_flag" ||
37582 test ! -s conftest.err
37583 } && test -s conftest$ac_exeext &&
37584 $as_test_x conftest$ac_exeext; then
37585 eval "$as_ac_var=yes"
37587 echo "$as_me: failed program was:" >&5
37588 sed 's/^/| /' conftest.$ac_ext >&5
37590 eval "$as_ac_var=no"
37593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37594 conftest$ac_exeext conftest.$ac_ext
37596 ac_res=`eval echo '${'$as_ac_var'}'`
37597 { echo "$as_me:$LINENO: result: $ac_res" >&5
37598 echo "${ECHO_T}$ac_res" >&6; }
37599 if test `eval echo '${'$as_ac_var'}'` = yes; then
37600 cat >>confdefs.h <<_ACEOF
37601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37605 echo 'configure: cannot find needed function.'; exit 1
37612 for ac_func in fchdir
37614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37618 echo $ECHO_N "(cached) $ECHO_C" >&6
37620 cat >conftest.$ac_ext <<_ACEOF
37623 cat confdefs.h >>conftest.$ac_ext
37624 cat >>conftest.$ac_ext <<_ACEOF
37625 /* end confdefs.h. */
37626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37628 #define $ac_func innocuous_$ac_func
37630 /* System header to define __stub macros and hopefully few prototypes,
37631 which can conflict with char $ac_func (); below.
37632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37633 <limits.h> exists even on freestanding compilers. */
37636 # include <limits.h>
37638 # include <assert.h>
37643 /* Override any GCC internal prototype to avoid an error.
37644 Use char because int might match the return type of a GCC
37645 builtin and then its argument prototype would still apply. */
37650 /* The GNU C library defines this for functions which it implements
37651 to always fail with ENOSYS. Some functions are actually named
37652 something starting with __ and the normal name is an alias. */
37653 #if defined __stub_$ac_func || defined __stub___$ac_func
37660 return $ac_func ();
37665 rm -f conftest.$ac_objext conftest$ac_exeext
37666 if { (ac_try="$ac_link"
37667 case "(($ac_try" in
37668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37669 *) ac_try_echo=$ac_try;;
37671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37672 (eval "$ac_link") 2>conftest.er1
37674 grep -v '^ *+' conftest.er1 >conftest.err
37676 cat conftest.err >&5
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); } && {
37679 test -z "$ac_c_werror_flag" ||
37680 test ! -s conftest.err
37681 } && test -s conftest$ac_exeext &&
37682 $as_test_x conftest$ac_exeext; then
37683 eval "$as_ac_var=yes"
37685 echo "$as_me: failed program was:" >&5
37686 sed 's/^/| /' conftest.$ac_ext >&5
37688 eval "$as_ac_var=no"
37691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37692 conftest$ac_exeext conftest.$ac_ext
37694 ac_res=`eval echo '${'$as_ac_var'}'`
37695 { echo "$as_me:$LINENO: result: $ac_res" >&5
37696 echo "${ECHO_T}$ac_res" >&6; }
37697 if test `eval echo '${'$as_ac_var'}'` = yes; then
37698 cat >>confdefs.h <<_ACEOF
37699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37701 cat >>confdefs.h <<\_ACEOF
37702 #define HAVE_FCHDIR 1
37709 for ac_func in strtoll
37711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37715 echo $ECHO_N "(cached) $ECHO_C" >&6
37717 cat >conftest.$ac_ext <<_ACEOF
37720 cat confdefs.h >>conftest.$ac_ext
37721 cat >>conftest.$ac_ext <<_ACEOF
37722 /* end confdefs.h. */
37723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37725 #define $ac_func innocuous_$ac_func
37727 /* System header to define __stub macros and hopefully few prototypes,
37728 which can conflict with char $ac_func (); below.
37729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37730 <limits.h> exists even on freestanding compilers. */
37733 # include <limits.h>
37735 # include <assert.h>
37740 /* Override any GCC internal prototype to avoid an error.
37741 Use char because int might match the return type of a GCC
37742 builtin and then its argument prototype would still apply. */
37747 /* The GNU C library defines this for functions which it implements
37748 to always fail with ENOSYS. Some functions are actually named
37749 something starting with __ and the normal name is an alias. */
37750 #if defined __stub_$ac_func || defined __stub___$ac_func
37757 return $ac_func ();
37762 rm -f conftest.$ac_objext conftest$ac_exeext
37763 if { (ac_try="$ac_link"
37764 case "(($ac_try" in
37765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37766 *) ac_try_echo=$ac_try;;
37768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37769 (eval "$ac_link") 2>conftest.er1
37771 grep -v '^ *+' conftest.er1 >conftest.err
37773 cat conftest.err >&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); } && {
37776 test -z "$ac_c_werror_flag" ||
37777 test ! -s conftest.err
37778 } && test -s conftest$ac_exeext &&
37779 $as_test_x conftest$ac_exeext; then
37780 eval "$as_ac_var=yes"
37782 echo "$as_me: failed program was:" >&5
37783 sed 's/^/| /' conftest.$ac_ext >&5
37785 eval "$as_ac_var=no"
37788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37789 conftest$ac_exeext conftest.$ac_ext
37791 ac_res=`eval echo '${'$as_ac_var'}'`
37792 { echo "$as_me:$LINENO: result: $ac_res" >&5
37793 echo "${ECHO_T}$ac_res" >&6; }
37794 if test `eval echo '${'$as_ac_var'}'` = yes; then
37795 cat >>confdefs.h <<_ACEOF
37796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37798 cat >>confdefs.h <<\_ACEOF
37799 #define HAVE_STRTOLL 1
37806 for ac_func in posix_fadvise
37808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37812 echo $ECHO_N "(cached) $ECHO_C" >&6
37814 cat >conftest.$ac_ext <<_ACEOF
37817 cat confdefs.h >>conftest.$ac_ext
37818 cat >>conftest.$ac_ext <<_ACEOF
37819 /* end confdefs.h. */
37820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37822 #define $ac_func innocuous_$ac_func
37824 /* System header to define __stub macros and hopefully few prototypes,
37825 which can conflict with char $ac_func (); below.
37826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37827 <limits.h> exists even on freestanding compilers. */
37830 # include <limits.h>
37832 # include <assert.h>
37837 /* Override any GCC internal prototype to avoid an error.
37838 Use char because int might match the return type of a GCC
37839 builtin and then its argument prototype would still apply. */
37844 /* The GNU C library defines this for functions which it implements
37845 to always fail with ENOSYS. Some functions are actually named
37846 something starting with __ and the normal name is an alias. */
37847 #if defined __stub_$ac_func || defined __stub___$ac_func
37854 return $ac_func ();
37859 rm -f conftest.$ac_objext conftest$ac_exeext
37860 if { (ac_try="$ac_link"
37861 case "(($ac_try" in
37862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37863 *) ac_try_echo=$ac_try;;
37865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37866 (eval "$ac_link") 2>conftest.er1
37868 grep -v '^ *+' conftest.er1 >conftest.err
37870 cat conftest.err >&5
37871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872 (exit $ac_status); } && {
37873 test -z "$ac_c_werror_flag" ||
37874 test ! -s conftest.err
37875 } && test -s conftest$ac_exeext &&
37876 $as_test_x conftest$ac_exeext; then
37877 eval "$as_ac_var=yes"
37879 echo "$as_me: failed program was:" >&5
37880 sed 's/^/| /' conftest.$ac_ext >&5
37882 eval "$as_ac_var=no"
37885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37886 conftest$ac_exeext conftest.$ac_ext
37888 ac_res=`eval echo '${'$as_ac_var'}'`
37889 { echo "$as_me:$LINENO: result: $ac_res" >&5
37890 echo "${ECHO_T}$ac_res" >&6; }
37891 if test `eval echo '${'$as_ac_var'}'` = yes; then
37892 cat >>confdefs.h <<_ACEOF
37893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37900 for ac_func in fdatasync
37902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37906 echo $ECHO_N "(cached) $ECHO_C" >&6
37908 cat >conftest.$ac_ext <<_ACEOF
37911 cat confdefs.h >>conftest.$ac_ext
37912 cat >>conftest.$ac_ext <<_ACEOF
37913 /* end confdefs.h. */
37914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37916 #define $ac_func innocuous_$ac_func
37918 /* System header to define __stub macros and hopefully few prototypes,
37919 which can conflict with char $ac_func (); below.
37920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37921 <limits.h> exists even on freestanding compilers. */
37924 # include <limits.h>
37926 # include <assert.h>
37931 /* Override any GCC internal prototype to avoid an error.
37932 Use char because int might match the return type of a GCC
37933 builtin and then its argument prototype would still apply. */
37938 /* The GNU C library defines this for functions which it implements
37939 to always fail with ENOSYS. Some functions are actually named
37940 something starting with __ and the normal name is an alias. */
37941 #if defined __stub_$ac_func || defined __stub___$ac_func
37948 return $ac_func ();
37953 rm -f conftest.$ac_objext conftest$ac_exeext
37954 if { (ac_try="$ac_link"
37955 case "(($ac_try" in
37956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37957 *) ac_try_echo=$ac_try;;
37959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37960 (eval "$ac_link") 2>conftest.er1
37962 grep -v '^ *+' conftest.er1 >conftest.err
37964 cat conftest.err >&5
37965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37966 (exit $ac_status); } && {
37967 test -z "$ac_c_werror_flag" ||
37968 test ! -s conftest.err
37969 } && test -s conftest$ac_exeext &&
37970 $as_test_x conftest$ac_exeext; then
37971 eval "$as_ac_var=yes"
37973 echo "$as_me: failed program was:" >&5
37974 sed 's/^/| /' conftest.$ac_ext >&5
37976 eval "$as_ac_var=no"
37979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37980 conftest$ac_exeext conftest.$ac_ext
37982 ac_res=`eval echo '${'$as_ac_var'}'`
37983 { echo "$as_me:$LINENO: result: $ac_res" >&5
37984 echo "${ECHO_T}$ac_res" >&6; }
37985 if test `eval echo '${'$as_ac_var'}'` = yes; then
37986 cat >>confdefs.h <<_ACEOF
37987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37995 for ac_func in chflags
37997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38001 echo $ECHO_N "(cached) $ECHO_C" >&6
38003 cat >conftest.$ac_ext <<_ACEOF
38006 cat confdefs.h >>conftest.$ac_ext
38007 cat >>conftest.$ac_ext <<_ACEOF
38008 /* end confdefs.h. */
38009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38011 #define $ac_func innocuous_$ac_func
38013 /* System header to define __stub macros and hopefully few prototypes,
38014 which can conflict with char $ac_func (); below.
38015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38016 <limits.h> exists even on freestanding compilers. */
38019 # include <limits.h>
38021 # include <assert.h>
38026 /* Override any GCC internal prototype to avoid an error.
38027 Use char because int might match the return type of a GCC
38028 builtin and then its argument prototype would still apply. */
38033 /* The GNU C library defines this for functions which it implements
38034 to always fail with ENOSYS. Some functions are actually named
38035 something starting with __ and the normal name is an alias. */
38036 #if defined __stub_$ac_func || defined __stub___$ac_func
38043 return $ac_func ();
38048 rm -f conftest.$ac_objext conftest$ac_exeext
38049 if { (ac_try="$ac_link"
38050 case "(($ac_try" in
38051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38052 *) ac_try_echo=$ac_try;;
38054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38055 (eval "$ac_link") 2>conftest.er1
38057 grep -v '^ *+' conftest.er1 >conftest.err
38059 cat conftest.err >&5
38060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061 (exit $ac_status); } && {
38062 test -z "$ac_c_werror_flag" ||
38063 test ! -s conftest.err
38064 } && test -s conftest$ac_exeext &&
38065 $as_test_x conftest$ac_exeext; then
38066 eval "$as_ac_var=yes"
38068 echo "$as_me: failed program was:" >&5
38069 sed 's/^/| /' conftest.$ac_ext >&5
38071 eval "$as_ac_var=no"
38074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38075 conftest$ac_exeext conftest.$ac_ext
38077 ac_res=`eval echo '${'$as_ac_var'}'`
38078 { echo "$as_me:$LINENO: result: $ac_res" >&5
38079 echo "${ECHO_T}$ac_res" >&6; }
38080 if test `eval echo '${'$as_ac_var'}'` = yes; then
38081 cat >>confdefs.h <<_ACEOF
38082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38093 for ac_func in snprintf vsnprintf gethostid fseeko
38095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38099 echo $ECHO_N "(cached) $ECHO_C" >&6
38101 cat >conftest.$ac_ext <<_ACEOF
38104 cat confdefs.h >>conftest.$ac_ext
38105 cat >>conftest.$ac_ext <<_ACEOF
38106 /* end confdefs.h. */
38107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38109 #define $ac_func innocuous_$ac_func
38111 /* System header to define __stub macros and hopefully few prototypes,
38112 which can conflict with char $ac_func (); below.
38113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38114 <limits.h> exists even on freestanding compilers. */
38117 # include <limits.h>
38119 # include <assert.h>
38124 /* Override any GCC internal prototype to avoid an error.
38125 Use char because int might match the return type of a GCC
38126 builtin and then its argument prototype would still apply. */
38131 /* The GNU C library defines this for functions which it implements
38132 to always fail with ENOSYS. Some functions are actually named
38133 something starting with __ and the normal name is an alias. */
38134 #if defined __stub_$ac_func || defined __stub___$ac_func
38141 return $ac_func ();
38146 rm -f conftest.$ac_objext conftest$ac_exeext
38147 if { (ac_try="$ac_link"
38148 case "(($ac_try" in
38149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38150 *) ac_try_echo=$ac_try;;
38152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38153 (eval "$ac_link") 2>conftest.er1
38155 grep -v '^ *+' conftest.er1 >conftest.err
38157 cat conftest.err >&5
38158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38159 (exit $ac_status); } && {
38160 test -z "$ac_c_werror_flag" ||
38161 test ! -s conftest.err
38162 } && test -s conftest$ac_exeext &&
38163 $as_test_x conftest$ac_exeext; then
38164 eval "$as_ac_var=yes"
38166 echo "$as_me: failed program was:" >&5
38167 sed 's/^/| /' conftest.$ac_ext >&5
38169 eval "$as_ac_var=no"
38172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38173 conftest$ac_exeext conftest.$ac_ext
38175 ac_res=`eval echo '${'$as_ac_var'}'`
38176 { echo "$as_me:$LINENO: result: $ac_res" >&5
38177 echo "${ECHO_T}$ac_res" >&6; }
38178 if test `eval echo '${'$as_ac_var'}'` = yes; then
38179 cat >>confdefs.h <<_ACEOF
38180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38187 { echo "$as_me:$LINENO: checking for va_copy" >&5
38188 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38189 if test "${ba_cv_va_copy+set}" = set; then
38190 echo $ECHO_N "(cached) $ECHO_C" >&6
38193 cat >conftest.$ac_ext <<_ACEOF
38196 cat confdefs.h >>conftest.$ac_ext
38197 cat >>conftest.$ac_ext <<_ACEOF
38198 /* end confdefs.h. */
38200 #include <stdarg.h>
38201 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38202 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38208 call_use_va_copy(1,2,3)
38214 rm -f conftest.$ac_objext conftest$ac_exeext
38215 if { (ac_try="$ac_link"
38216 case "(($ac_try" in
38217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38218 *) ac_try_echo=$ac_try;;
38220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38221 (eval "$ac_link") 2>conftest.er1
38223 grep -v '^ *+' conftest.er1 >conftest.err
38225 cat conftest.err >&5
38226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227 (exit $ac_status); } && {
38228 test -z "$ac_c_werror_flag" ||
38229 test ! -s conftest.err
38230 } && test -s conftest$ac_exeext &&
38231 $as_test_x conftest$ac_exeext; then
38236 echo "$as_me: failed program was:" >&5
38237 sed 's/^/| /' conftest.$ac_ext >&5
38245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38246 conftest$ac_exeext conftest.$ac_ext
38250 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38251 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38252 test $ba_cv_va_copy = yes &&
38253 cat >>confdefs.h <<\_ACEOF
38254 #define HAVE_VA_COPY 1
38262 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38268 echo $ECHO_N "(cached) $ECHO_C" >&6
38270 cat >conftest.$ac_ext <<_ACEOF
38273 cat confdefs.h >>conftest.$ac_ext
38274 cat >>conftest.$ac_ext <<_ACEOF
38275 /* end confdefs.h. */
38276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38278 #define $ac_func innocuous_$ac_func
38280 /* System header to define __stub macros and hopefully few prototypes,
38281 which can conflict with char $ac_func (); below.
38282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38283 <limits.h> exists even on freestanding compilers. */
38286 # include <limits.h>
38288 # include <assert.h>
38293 /* Override any GCC internal prototype to avoid an error.
38294 Use char because int might match the return type of a GCC
38295 builtin and then its argument prototype would still apply. */
38300 /* The GNU C library defines this for functions which it implements
38301 to always fail with ENOSYS. Some functions are actually named
38302 something starting with __ and the normal name is an alias. */
38303 #if defined __stub_$ac_func || defined __stub___$ac_func
38310 return $ac_func ();
38315 rm -f conftest.$ac_objext conftest$ac_exeext
38316 if { (ac_try="$ac_link"
38317 case "(($ac_try" in
38318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38319 *) ac_try_echo=$ac_try;;
38321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38322 (eval "$ac_link") 2>conftest.er1
38324 grep -v '^ *+' conftest.er1 >conftest.err
38326 cat conftest.err >&5
38327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328 (exit $ac_status); } && {
38329 test -z "$ac_c_werror_flag" ||
38330 test ! -s conftest.err
38331 } && test -s conftest$ac_exeext &&
38332 $as_test_x conftest$ac_exeext; then
38333 eval "$as_ac_var=yes"
38335 echo "$as_me: failed program was:" >&5
38336 sed 's/^/| /' conftest.$ac_ext >&5
38338 eval "$as_ac_var=no"
38341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38342 conftest$ac_exeext conftest.$ac_ext
38344 ac_res=`eval echo '${'$as_ac_var'}'`
38345 { echo "$as_me:$LINENO: result: $ac_res" >&5
38346 echo "${ECHO_T}$ac_res" >&6; }
38347 if test `eval echo '${'$as_ac_var'}'` = yes; then
38348 cat >>confdefs.h <<_ACEOF
38349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38356 # If resolver functions are not in libc check for -lnsl or -lresolv.
38357 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38358 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38359 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38360 echo $ECHO_N "(cached) $ECHO_C" >&6
38362 cat >conftest.$ac_ext <<_ACEOF
38365 cat confdefs.h >>conftest.$ac_ext
38366 cat >>conftest.$ac_ext <<_ACEOF
38367 /* end confdefs.h. */
38368 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38370 #define gethostbyname_r innocuous_gethostbyname_r
38372 /* System header to define __stub macros and hopefully few prototypes,
38373 which can conflict with char gethostbyname_r (); below.
38374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38375 <limits.h> exists even on freestanding compilers. */
38378 # include <limits.h>
38380 # include <assert.h>
38383 #undef gethostbyname_r
38385 /* Override any GCC internal prototype to avoid an error.
38386 Use char because int might match the return type of a GCC
38387 builtin and then its argument prototype would still apply. */
38391 char gethostbyname_r ();
38392 /* The GNU C library defines this for functions which it implements
38393 to always fail with ENOSYS. Some functions are actually named
38394 something starting with __ and the normal name is an alias. */
38395 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38402 return gethostbyname_r ();
38407 rm -f conftest.$ac_objext conftest$ac_exeext
38408 if { (ac_try="$ac_link"
38409 case "(($ac_try" in
38410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38411 *) ac_try_echo=$ac_try;;
38413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38414 (eval "$ac_link") 2>conftest.er1
38416 grep -v '^ *+' conftest.er1 >conftest.err
38418 cat conftest.err >&5
38419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420 (exit $ac_status); } && {
38421 test -z "$ac_c_werror_flag" ||
38422 test ! -s conftest.err
38423 } && test -s conftest$ac_exeext &&
38424 $as_test_x conftest$ac_exeext; then
38425 ac_cv_func_gethostbyname_r=yes
38427 echo "$as_me: failed program was:" >&5
38428 sed 's/^/| /' conftest.$ac_ext >&5
38430 ac_cv_func_gethostbyname_r=no
38433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38434 conftest$ac_exeext conftest.$ac_ext
38436 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38437 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38438 if test $ac_cv_func_gethostbyname_r = yes; then
38439 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38440 echo "${ECHO_T}using libc's resolver" >&6; }
38443 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38444 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38445 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38446 echo $ECHO_N "(cached) $ECHO_C" >&6
38448 ac_check_lib_save_LIBS=$LIBS
38450 cat >conftest.$ac_ext <<_ACEOF
38453 cat confdefs.h >>conftest.$ac_ext
38454 cat >>conftest.$ac_ext <<_ACEOF
38455 /* end confdefs.h. */
38457 /* Override any GCC internal prototype to avoid an error.
38458 Use char because int might match the return type of a GCC
38459 builtin and then its argument prototype would still apply. */
38463 char gethostbyname_r ();
38467 return gethostbyname_r ();
38472 rm -f conftest.$ac_objext conftest$ac_exeext
38473 if { (ac_try="$ac_link"
38474 case "(($ac_try" in
38475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38476 *) ac_try_echo=$ac_try;;
38478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38479 (eval "$ac_link") 2>conftest.er1
38481 grep -v '^ *+' conftest.er1 >conftest.err
38483 cat conftest.err >&5
38484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485 (exit $ac_status); } && {
38486 test -z "$ac_c_werror_flag" ||
38487 test ! -s conftest.err
38488 } && test -s conftest$ac_exeext &&
38489 $as_test_x conftest$ac_exeext; then
38490 ac_cv_lib_nsl_gethostbyname_r=yes
38492 echo "$as_me: failed program was:" >&5
38493 sed 's/^/| /' conftest.$ac_ext >&5
38495 ac_cv_lib_nsl_gethostbyname_r=no
38498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38499 conftest$ac_exeext conftest.$ac_ext
38500 LIBS=$ac_check_lib_save_LIBS
38502 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38503 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38504 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38505 cat >>confdefs.h <<_ACEOF
38506 #define HAVE_LIBNSL 1
38514 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38515 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38516 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38517 echo $ECHO_N "(cached) $ECHO_C" >&6
38519 ac_check_lib_save_LIBS=$LIBS
38520 LIBS="-lresolv $LIBS"
38521 cat >conftest.$ac_ext <<_ACEOF
38524 cat confdefs.h >>conftest.$ac_ext
38525 cat >>conftest.$ac_ext <<_ACEOF
38526 /* end confdefs.h. */
38528 /* Override any GCC internal prototype to avoid an error.
38529 Use char because int might match the return type of a GCC
38530 builtin and then its argument prototype would still apply. */
38534 char gethostbyname_r ();
38538 return gethostbyname_r ();
38543 rm -f conftest.$ac_objext conftest$ac_exeext
38544 if { (ac_try="$ac_link"
38545 case "(($ac_try" in
38546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38547 *) ac_try_echo=$ac_try;;
38549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38550 (eval "$ac_link") 2>conftest.er1
38552 grep -v '^ *+' conftest.er1 >conftest.err
38554 cat conftest.err >&5
38555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); } && {
38557 test -z "$ac_c_werror_flag" ||
38558 test ! -s conftest.err
38559 } && test -s conftest$ac_exeext &&
38560 $as_test_x conftest$ac_exeext; then
38561 ac_cv_lib_resolv_gethostbyname_r=yes
38563 echo "$as_me: failed program was:" >&5
38564 sed 's/^/| /' conftest.$ac_ext >&5
38566 ac_cv_lib_resolv_gethostbyname_r=no
38569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38570 conftest$ac_exeext conftest.$ac_ext
38571 LIBS=$ac_check_lib_save_LIBS
38573 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38574 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38575 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38576 cat >>confdefs.h <<_ACEOF
38577 #define HAVE_LIBRESOLV 1
38580 LIBS="-lresolv $LIBS"
38588 for ac_func in inet_pton
38590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38594 echo $ECHO_N "(cached) $ECHO_C" >&6
38596 cat >conftest.$ac_ext <<_ACEOF
38599 cat confdefs.h >>conftest.$ac_ext
38600 cat >>conftest.$ac_ext <<_ACEOF
38601 /* end confdefs.h. */
38602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38604 #define $ac_func innocuous_$ac_func
38606 /* System header to define __stub macros and hopefully few prototypes,
38607 which can conflict with char $ac_func (); below.
38608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38609 <limits.h> exists even on freestanding compilers. */
38612 # include <limits.h>
38614 # include <assert.h>
38619 /* Override any GCC internal prototype to avoid an error.
38620 Use char because int might match the return type of a GCC
38621 builtin and then its argument prototype would still apply. */
38626 /* The GNU C library defines this for functions which it implements
38627 to always fail with ENOSYS. Some functions are actually named
38628 something starting with __ and the normal name is an alias. */
38629 #if defined __stub_$ac_func || defined __stub___$ac_func
38636 return $ac_func ();
38641 rm -f conftest.$ac_objext conftest$ac_exeext
38642 if { (ac_try="$ac_link"
38643 case "(($ac_try" in
38644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38645 *) ac_try_echo=$ac_try;;
38647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38648 (eval "$ac_link") 2>conftest.er1
38650 grep -v '^ *+' conftest.er1 >conftest.err
38652 cat conftest.err >&5
38653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38654 (exit $ac_status); } && {
38655 test -z "$ac_c_werror_flag" ||
38656 test ! -s conftest.err
38657 } && test -s conftest$ac_exeext &&
38658 $as_test_x conftest$ac_exeext; then
38659 eval "$as_ac_var=yes"
38661 echo "$as_me: failed program was:" >&5
38662 sed 's/^/| /' conftest.$ac_ext >&5
38664 eval "$as_ac_var=no"
38667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38668 conftest$ac_exeext conftest.$ac_ext
38670 ac_res=`eval echo '${'$as_ac_var'}'`
38671 { echo "$as_me:$LINENO: result: $ac_res" >&5
38672 echo "${ECHO_T}$ac_res" >&6; }
38673 if test `eval echo '${'$as_ac_var'}'` = yes; then
38674 cat >>confdefs.h <<_ACEOF
38675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38677 cat >>confdefs.h <<\_ACEOF
38678 #define HAVE_INET_PTON 1
38685 for ac_func in inet_ntop
38687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38691 echo $ECHO_N "(cached) $ECHO_C" >&6
38693 cat >conftest.$ac_ext <<_ACEOF
38696 cat confdefs.h >>conftest.$ac_ext
38697 cat >>conftest.$ac_ext <<_ACEOF
38698 /* end confdefs.h. */
38699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38701 #define $ac_func innocuous_$ac_func
38703 /* System header to define __stub macros and hopefully few prototypes,
38704 which can conflict with char $ac_func (); below.
38705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38706 <limits.h> exists even on freestanding compilers. */
38709 # include <limits.h>
38711 # include <assert.h>
38716 /* Override any GCC internal prototype to avoid an error.
38717 Use char because int might match the return type of a GCC
38718 builtin and then its argument prototype would still apply. */
38723 /* The GNU C library defines this for functions which it implements
38724 to always fail with ENOSYS. Some functions are actually named
38725 something starting with __ and the normal name is an alias. */
38726 #if defined __stub_$ac_func || defined __stub___$ac_func
38733 return $ac_func ();
38738 rm -f conftest.$ac_objext conftest$ac_exeext
38739 if { (ac_try="$ac_link"
38740 case "(($ac_try" in
38741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38742 *) ac_try_echo=$ac_try;;
38744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38745 (eval "$ac_link") 2>conftest.er1
38747 grep -v '^ *+' conftest.er1 >conftest.err
38749 cat conftest.err >&5
38750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); } && {
38752 test -z "$ac_c_werror_flag" ||
38753 test ! -s conftest.err
38754 } && test -s conftest$ac_exeext &&
38755 $as_test_x conftest$ac_exeext; then
38756 eval "$as_ac_var=yes"
38758 echo "$as_me: failed program was:" >&5
38759 sed 's/^/| /' conftest.$ac_ext >&5
38761 eval "$as_ac_var=no"
38764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38765 conftest$ac_exeext conftest.$ac_ext
38767 ac_res=`eval echo '${'$as_ac_var'}'`
38768 { echo "$as_me:$LINENO: result: $ac_res" >&5
38769 echo "${ECHO_T}$ac_res" >&6; }
38770 if test `eval echo '${'$as_ac_var'}'` = yes; then
38771 cat >>confdefs.h <<_ACEOF
38772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38774 cat >>confdefs.h <<\_ACEOF
38775 #define HAVE_INET_NTOP 1
38782 for ac_func in gethostbyname2
38784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38788 echo $ECHO_N "(cached) $ECHO_C" >&6
38790 cat >conftest.$ac_ext <<_ACEOF
38793 cat confdefs.h >>conftest.$ac_ext
38794 cat >>conftest.$ac_ext <<_ACEOF
38795 /* end confdefs.h. */
38796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38798 #define $ac_func innocuous_$ac_func
38800 /* System header to define __stub macros and hopefully few prototypes,
38801 which can conflict with char $ac_func (); below.
38802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38803 <limits.h> exists even on freestanding compilers. */
38806 # include <limits.h>
38808 # include <assert.h>
38813 /* Override any GCC internal prototype to avoid an error.
38814 Use char because int might match the return type of a GCC
38815 builtin and then its argument prototype would still apply. */
38820 /* The GNU C library defines this for functions which it implements
38821 to always fail with ENOSYS. Some functions are actually named
38822 something starting with __ and the normal name is an alias. */
38823 #if defined __stub_$ac_func || defined __stub___$ac_func
38830 return $ac_func ();
38835 rm -f conftest.$ac_objext conftest$ac_exeext
38836 if { (ac_try="$ac_link"
38837 case "(($ac_try" in
38838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38839 *) ac_try_echo=$ac_try;;
38841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38842 (eval "$ac_link") 2>conftest.er1
38844 grep -v '^ *+' conftest.er1 >conftest.err
38846 cat conftest.err >&5
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); } && {
38849 test -z "$ac_c_werror_flag" ||
38850 test ! -s conftest.err
38851 } && test -s conftest$ac_exeext &&
38852 $as_test_x conftest$ac_exeext; then
38853 eval "$as_ac_var=yes"
38855 echo "$as_me: failed program was:" >&5
38856 sed 's/^/| /' conftest.$ac_ext >&5
38858 eval "$as_ac_var=no"
38861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38862 conftest$ac_exeext conftest.$ac_ext
38864 ac_res=`eval echo '${'$as_ac_var'}'`
38865 { echo "$as_me:$LINENO: result: $ac_res" >&5
38866 echo "${ECHO_T}$ac_res" >&6; }
38867 if test `eval echo '${'$as_ac_var'}'` = yes; then
38868 cat >>confdefs.h <<_ACEOF
38869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38871 cat >>confdefs.h <<\_ACEOF
38872 #define HAVE_GETHOSTBYNAME2 1
38879 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38880 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38881 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38882 echo $ECHO_N "(cached) $ECHO_C" >&6
38885 cat >conftest.$ac_ext <<_ACEOF
38888 cat confdefs.h >>conftest.$ac_ext
38889 cat >>conftest.$ac_ext <<_ACEOF
38890 /* end confdefs.h. */
38892 #include <sys/socket.h>
38898 struct sockaddr s; s.sa_len;
38904 rm -f conftest.$ac_objext
38905 if { (ac_try="$ac_compile"
38906 case "(($ac_try" in
38907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38908 *) ac_try_echo=$ac_try;;
38910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38911 (eval "$ac_compile") 2>conftest.er1
38913 grep -v '^ *+' conftest.er1 >conftest.err
38915 cat conftest.err >&5
38916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917 (exit $ac_status); } && {
38918 test -z "$ac_c_werror_flag" ||
38919 test ! -s conftest.err
38920 } && test -s conftest.$ac_objext; then
38922 ac_cv_struct_sockaddr_sa_len=yes
38925 echo "$as_me: failed program was:" >&5
38926 sed 's/^/| /' conftest.$ac_ext >&5
38928 ac_cv_struct_sockaddr_sa_len=no
38933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38937 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38938 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38940 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38942 cat >>confdefs.h <<\_ACEOF
38943 #define HAVE_SA_LEN 1
38949 for ac_func in strftime
38951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38955 echo $ECHO_N "(cached) $ECHO_C" >&6
38957 cat >conftest.$ac_ext <<_ACEOF
38960 cat confdefs.h >>conftest.$ac_ext
38961 cat >>conftest.$ac_ext <<_ACEOF
38962 /* end confdefs.h. */
38963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38965 #define $ac_func innocuous_$ac_func
38967 /* System header to define __stub macros and hopefully few prototypes,
38968 which can conflict with char $ac_func (); below.
38969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38970 <limits.h> exists even on freestanding compilers. */
38973 # include <limits.h>
38975 # include <assert.h>
38980 /* Override any GCC internal prototype to avoid an error.
38981 Use char because int might match the return type of a GCC
38982 builtin and then its argument prototype would still apply. */
38987 /* The GNU C library defines this for functions which it implements
38988 to always fail with ENOSYS. Some functions are actually named
38989 something starting with __ and the normal name is an alias. */
38990 #if defined __stub_$ac_func || defined __stub___$ac_func
38997 return $ac_func ();
39002 rm -f conftest.$ac_objext conftest$ac_exeext
39003 if { (ac_try="$ac_link"
39004 case "(($ac_try" in
39005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39006 *) ac_try_echo=$ac_try;;
39008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39009 (eval "$ac_link") 2>conftest.er1
39011 grep -v '^ *+' conftest.er1 >conftest.err
39013 cat conftest.err >&5
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); } && {
39016 test -z "$ac_c_werror_flag" ||
39017 test ! -s conftest.err
39018 } && test -s conftest$ac_exeext &&
39019 $as_test_x conftest$ac_exeext; then
39020 eval "$as_ac_var=yes"
39022 echo "$as_me: failed program was:" >&5
39023 sed 's/^/| /' conftest.$ac_ext >&5
39025 eval "$as_ac_var=no"
39028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39029 conftest$ac_exeext conftest.$ac_ext
39031 ac_res=`eval echo '${'$as_ac_var'}'`
39032 { echo "$as_me:$LINENO: result: $ac_res" >&5
39033 echo "${ECHO_T}$ac_res" >&6; }
39034 if test `eval echo '${'$as_ac_var'}'` = yes; then
39035 cat >>confdefs.h <<_ACEOF
39036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39040 # strftime is in -lintl on SCO UNIX.
39041 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39042 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39043 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39044 echo $ECHO_N "(cached) $ECHO_C" >&6
39046 ac_check_lib_save_LIBS=$LIBS
39047 LIBS="-lintl $LIBS"
39048 cat >conftest.$ac_ext <<_ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h. */
39055 /* Override any GCC internal prototype to avoid an error.
39056 Use char because int might match the return type of a GCC
39057 builtin and then its argument prototype would still apply. */
39065 return strftime ();
39070 rm -f conftest.$ac_objext conftest$ac_exeext
39071 if { (ac_try="$ac_link"
39072 case "(($ac_try" in
39073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39074 *) ac_try_echo=$ac_try;;
39076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39077 (eval "$ac_link") 2>conftest.er1
39079 grep -v '^ *+' conftest.er1 >conftest.err
39081 cat conftest.err >&5
39082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39083 (exit $ac_status); } && {
39084 test -z "$ac_c_werror_flag" ||
39085 test ! -s conftest.err
39086 } && test -s conftest$ac_exeext &&
39087 $as_test_x conftest$ac_exeext; then
39088 ac_cv_lib_intl_strftime=yes
39090 echo "$as_me: failed program was:" >&5
39091 sed 's/^/| /' conftest.$ac_ext >&5
39093 ac_cv_lib_intl_strftime=no
39096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39097 conftest$ac_exeext conftest.$ac_ext
39098 LIBS=$ac_check_lib_save_LIBS
39100 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39101 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39102 if test $ac_cv_lib_intl_strftime = yes; then
39103 cat >>confdefs.h <<\_ACEOF
39104 #define HAVE_STRFTIME 1
39107 LIBS="-lintl $LIBS"
39114 for ac_func in vprintf
39116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39120 echo $ECHO_N "(cached) $ECHO_C" >&6
39122 cat >conftest.$ac_ext <<_ACEOF
39125 cat confdefs.h >>conftest.$ac_ext
39126 cat >>conftest.$ac_ext <<_ACEOF
39127 /* end confdefs.h. */
39128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39130 #define $ac_func innocuous_$ac_func
39132 /* System header to define __stub macros and hopefully few prototypes,
39133 which can conflict with char $ac_func (); below.
39134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39135 <limits.h> exists even on freestanding compilers. */
39138 # include <limits.h>
39140 # include <assert.h>
39145 /* Override any GCC internal prototype to avoid an error.
39146 Use char because int might match the return type of a GCC
39147 builtin and then its argument prototype would still apply. */
39152 /* The GNU C library defines this for functions which it implements
39153 to always fail with ENOSYS. Some functions are actually named
39154 something starting with __ and the normal name is an alias. */
39155 #if defined __stub_$ac_func || defined __stub___$ac_func
39162 return $ac_func ();
39167 rm -f conftest.$ac_objext conftest$ac_exeext
39168 if { (ac_try="$ac_link"
39169 case "(($ac_try" in
39170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39171 *) ac_try_echo=$ac_try;;
39173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39174 (eval "$ac_link") 2>conftest.er1
39176 grep -v '^ *+' conftest.er1 >conftest.err
39178 cat conftest.err >&5
39179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180 (exit $ac_status); } && {
39181 test -z "$ac_c_werror_flag" ||
39182 test ! -s conftest.err
39183 } && test -s conftest$ac_exeext &&
39184 $as_test_x conftest$ac_exeext; then
39185 eval "$as_ac_var=yes"
39187 echo "$as_me: failed program was:" >&5
39188 sed 's/^/| /' conftest.$ac_ext >&5
39190 eval "$as_ac_var=no"
39193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39194 conftest$ac_exeext conftest.$ac_ext
39196 ac_res=`eval echo '${'$as_ac_var'}'`
39197 { echo "$as_me:$LINENO: result: $ac_res" >&5
39198 echo "${ECHO_T}$ac_res" >&6; }
39199 if test `eval echo '${'$as_ac_var'}'` = yes; then
39200 cat >>confdefs.h <<_ACEOF
39201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39204 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39205 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39206 if test "${ac_cv_func__doprnt+set}" = set; then
39207 echo $ECHO_N "(cached) $ECHO_C" >&6
39209 cat >conftest.$ac_ext <<_ACEOF
39212 cat confdefs.h >>conftest.$ac_ext
39213 cat >>conftest.$ac_ext <<_ACEOF
39214 /* end confdefs.h. */
39215 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39217 #define _doprnt innocuous__doprnt
39219 /* System header to define __stub macros and hopefully few prototypes,
39220 which can conflict with char _doprnt (); below.
39221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39222 <limits.h> exists even on freestanding compilers. */
39225 # include <limits.h>
39227 # include <assert.h>
39232 /* Override any GCC internal prototype to avoid an error.
39233 Use char because int might match the return type of a GCC
39234 builtin and then its argument prototype would still apply. */
39239 /* The GNU C library defines this for functions which it implements
39240 to always fail with ENOSYS. Some functions are actually named
39241 something starting with __ and the normal name is an alias. */
39242 #if defined __stub__doprnt || defined __stub____doprnt
39254 rm -f conftest.$ac_objext conftest$ac_exeext
39255 if { (ac_try="$ac_link"
39256 case "(($ac_try" in
39257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39258 *) ac_try_echo=$ac_try;;
39260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39261 (eval "$ac_link") 2>conftest.er1
39263 grep -v '^ *+' conftest.er1 >conftest.err
39265 cat conftest.err >&5
39266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267 (exit $ac_status); } && {
39268 test -z "$ac_c_werror_flag" ||
39269 test ! -s conftest.err
39270 } && test -s conftest$ac_exeext &&
39271 $as_test_x conftest$ac_exeext; then
39272 ac_cv_func__doprnt=yes
39274 echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.$ac_ext >&5
39277 ac_cv_func__doprnt=no
39280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39281 conftest$ac_exeext conftest.$ac_ext
39283 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39284 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39285 if test $ac_cv_func__doprnt = yes; then
39287 cat >>confdefs.h <<\_ACEOF
39288 #define HAVE_DOPRNT 1
39297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39298 # for constant arguments. Useless!
39299 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39300 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39301 if test "${ac_cv_working_alloca_h+set}" = set; then
39302 echo $ECHO_N "(cached) $ECHO_C" >&6
39304 cat >conftest.$ac_ext <<_ACEOF
39307 cat confdefs.h >>conftest.$ac_ext
39308 cat >>conftest.$ac_ext <<_ACEOF
39309 /* end confdefs.h. */
39310 #include <alloca.h>
39314 char *p = (char *) alloca (2 * sizeof (int));
39320 rm -f conftest.$ac_objext conftest$ac_exeext
39321 if { (ac_try="$ac_link"
39322 case "(($ac_try" in
39323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39324 *) ac_try_echo=$ac_try;;
39326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39327 (eval "$ac_link") 2>conftest.er1
39329 grep -v '^ *+' conftest.er1 >conftest.err
39331 cat conftest.err >&5
39332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333 (exit $ac_status); } && {
39334 test -z "$ac_c_werror_flag" ||
39335 test ! -s conftest.err
39336 } && test -s conftest$ac_exeext &&
39337 $as_test_x conftest$ac_exeext; then
39338 ac_cv_working_alloca_h=yes
39340 echo "$as_me: failed program was:" >&5
39341 sed 's/^/| /' conftest.$ac_ext >&5
39343 ac_cv_working_alloca_h=no
39346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39347 conftest$ac_exeext conftest.$ac_ext
39349 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39350 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39351 if test $ac_cv_working_alloca_h = yes; then
39353 cat >>confdefs.h <<\_ACEOF
39354 #define HAVE_ALLOCA_H 1
39359 { echo "$as_me:$LINENO: checking for alloca" >&5
39360 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39361 if test "${ac_cv_func_alloca_works+set}" = set; then
39362 echo $ECHO_N "(cached) $ECHO_C" >&6
39364 cat >conftest.$ac_ext <<_ACEOF
39367 cat confdefs.h >>conftest.$ac_ext
39368 cat >>conftest.$ac_ext <<_ACEOF
39369 /* end confdefs.h. */
39371 # define alloca __builtin_alloca
39374 # include <malloc.h>
39375 # define alloca _alloca
39377 # ifdef HAVE_ALLOCA_H
39378 # include <alloca.h>
39383 # ifndef alloca /* predefined by HP cc +Olibcalls */
39394 char *p = (char *) alloca (1);
39400 rm -f conftest.$ac_objext conftest$ac_exeext
39401 if { (ac_try="$ac_link"
39402 case "(($ac_try" in
39403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39404 *) ac_try_echo=$ac_try;;
39406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39407 (eval "$ac_link") 2>conftest.er1
39409 grep -v '^ *+' conftest.er1 >conftest.err
39411 cat conftest.err >&5
39412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413 (exit $ac_status); } && {
39414 test -z "$ac_c_werror_flag" ||
39415 test ! -s conftest.err
39416 } && test -s conftest$ac_exeext &&
39417 $as_test_x conftest$ac_exeext; then
39418 ac_cv_func_alloca_works=yes
39420 echo "$as_me: failed program was:" >&5
39421 sed 's/^/| /' conftest.$ac_ext >&5
39423 ac_cv_func_alloca_works=no
39426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39427 conftest$ac_exeext conftest.$ac_ext
39429 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39430 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39432 if test $ac_cv_func_alloca_works = yes; then
39434 cat >>confdefs.h <<\_ACEOF
39435 #define HAVE_ALLOCA 1
39439 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39440 # that cause trouble. Some versions do not even contain alloca or
39441 # contain a buggy version. If you still want to use their alloca,
39442 # use ar to extract alloca.o from them instead of compiling alloca.c.
39444 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39446 cat >>confdefs.h <<\_ACEOF
39451 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39452 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39453 if test "${ac_cv_os_cray+set}" = set; then
39454 echo $ECHO_N "(cached) $ECHO_C" >&6
39456 cat >conftest.$ac_ext <<_ACEOF
39459 cat confdefs.h >>conftest.$ac_ext
39460 cat >>conftest.$ac_ext <<_ACEOF
39461 /* end confdefs.h. */
39462 #if defined CRAY && ! defined CRAY2
39469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39470 $EGREP "webecray" >/dev/null 2>&1; then
39478 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39479 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39480 if test $ac_cv_os_cray = yes; then
39481 for ac_func in _getb67 GETB67 getb67; do
39482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39486 echo $ECHO_N "(cached) $ECHO_C" >&6
39488 cat >conftest.$ac_ext <<_ACEOF
39491 cat confdefs.h >>conftest.$ac_ext
39492 cat >>conftest.$ac_ext <<_ACEOF
39493 /* end confdefs.h. */
39494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39496 #define $ac_func innocuous_$ac_func
39498 /* System header to define __stub macros and hopefully few prototypes,
39499 which can conflict with char $ac_func (); below.
39500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39501 <limits.h> exists even on freestanding compilers. */
39504 # include <limits.h>
39506 # include <assert.h>
39511 /* Override any GCC internal prototype to avoid an error.
39512 Use char because int might match the return type of a GCC
39513 builtin and then its argument prototype would still apply. */
39518 /* The GNU C library defines this for functions which it implements
39519 to always fail with ENOSYS. Some functions are actually named
39520 something starting with __ and the normal name is an alias. */
39521 #if defined __stub_$ac_func || defined __stub___$ac_func
39528 return $ac_func ();
39533 rm -f conftest.$ac_objext conftest$ac_exeext
39534 if { (ac_try="$ac_link"
39535 case "(($ac_try" in
39536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39537 *) ac_try_echo=$ac_try;;
39539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39540 (eval "$ac_link") 2>conftest.er1
39542 grep -v '^ *+' conftest.er1 >conftest.err
39544 cat conftest.err >&5
39545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546 (exit $ac_status); } && {
39547 test -z "$ac_c_werror_flag" ||
39548 test ! -s conftest.err
39549 } && test -s conftest$ac_exeext &&
39550 $as_test_x conftest$ac_exeext; then
39551 eval "$as_ac_var=yes"
39553 echo "$as_me: failed program was:" >&5
39554 sed 's/^/| /' conftest.$ac_ext >&5
39556 eval "$as_ac_var=no"
39559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39560 conftest$ac_exeext conftest.$ac_ext
39562 ac_res=`eval echo '${'$as_ac_var'}'`
39563 { echo "$as_me:$LINENO: result: $ac_res" >&5
39564 echo "${ECHO_T}$ac_res" >&6; }
39565 if test `eval echo '${'$as_ac_var'}'` = yes; then
39567 cat >>confdefs.h <<_ACEOF
39568 #define CRAY_STACKSEG_END $ac_func
39577 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39578 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39579 if test "${ac_cv_c_stack_direction+set}" = set; then
39580 echo $ECHO_N "(cached) $ECHO_C" >&6
39582 if test "$cross_compiling" = yes; then
39583 ac_cv_c_stack_direction=0
39585 cat >conftest.$ac_ext <<_ACEOF
39588 cat confdefs.h >>conftest.$ac_ext
39589 cat >>conftest.$ac_ext <<_ACEOF
39590 /* end confdefs.h. */
39591 $ac_includes_default
39593 find_stack_direction ()
39595 static char *addr = 0;
39600 return find_stack_direction ();
39603 return (&dummy > addr) ? 1 : -1;
39609 return find_stack_direction () < 0;
39612 rm -f conftest$ac_exeext
39613 if { (ac_try="$ac_link"
39614 case "(($ac_try" in
39615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39616 *) ac_try_echo=$ac_try;;
39618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39619 (eval "$ac_link") 2>&5
39621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39623 { (case "(($ac_try" in
39624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39625 *) ac_try_echo=$ac_try;;
39627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39628 (eval "$ac_try") 2>&5
39630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631 (exit $ac_status); }; }; then
39632 ac_cv_c_stack_direction=1
39634 echo "$as_me: program exited with status $ac_status" >&5
39635 echo "$as_me: failed program was:" >&5
39636 sed 's/^/| /' conftest.$ac_ext >&5
39638 ( exit $ac_status )
39639 ac_cv_c_stack_direction=-1
39641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39646 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39647 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39649 cat >>confdefs.h <<_ACEOF
39650 #define STACK_DIRECTION $ac_cv_c_stack_direction
39656 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39657 # -lseq on Dynix/PTX, -lgen on Unixware.
39658 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39659 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39660 if test "${ac_cv_search_getmntent+set}" = set; then
39661 echo $ECHO_N "(cached) $ECHO_C" >&6
39663 ac_func_search_save_LIBS=$LIBS
39664 cat >conftest.$ac_ext <<_ACEOF
39667 cat confdefs.h >>conftest.$ac_ext
39668 cat >>conftest.$ac_ext <<_ACEOF
39669 /* end confdefs.h. */
39671 /* Override any GCC internal prototype to avoid an error.
39672 Use char because int might match the return type of a GCC
39673 builtin and then its argument prototype would still apply. */
39681 return getmntent ();
39686 for ac_lib in '' sun seq gen; do
39687 if test -z "$ac_lib"; then
39688 ac_res="none required"
39691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39693 rm -f conftest.$ac_objext conftest$ac_exeext
39694 if { (ac_try="$ac_link"
39695 case "(($ac_try" in
39696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39697 *) ac_try_echo=$ac_try;;
39699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39700 (eval "$ac_link") 2>conftest.er1
39702 grep -v '^ *+' conftest.er1 >conftest.err
39704 cat conftest.err >&5
39705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39706 (exit $ac_status); } && {
39707 test -z "$ac_c_werror_flag" ||
39708 test ! -s conftest.err
39709 } && test -s conftest$ac_exeext &&
39710 $as_test_x conftest$ac_exeext; then
39711 ac_cv_search_getmntent=$ac_res
39713 echo "$as_me: failed program was:" >&5
39714 sed 's/^/| /' conftest.$ac_ext >&5
39719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39721 if test "${ac_cv_search_getmntent+set}" = set; then
39725 if test "${ac_cv_search_getmntent+set}" = set; then
39728 ac_cv_search_getmntent=no
39730 rm conftest.$ac_ext
39731 LIBS=$ac_func_search_save_LIBS
39733 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39734 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39735 ac_res=$ac_cv_search_getmntent
39736 if test "$ac_res" != no; then
39737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39738 ac_cv_func_getmntent=yes
39740 cat >>confdefs.h <<\_ACEOF
39741 #define HAVE_GETMNTENT 1
39745 ac_cv_func_getmntent=no
39749 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39750 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39751 if test "${ac_cv_func_closedir_void+set}" = set; then
39752 echo $ECHO_N "(cached) $ECHO_C" >&6
39754 if test "$cross_compiling" = yes; then
39755 ac_cv_func_closedir_void=yes
39757 cat >conftest.$ac_ext <<_ACEOF
39760 cat confdefs.h >>conftest.$ac_ext
39761 cat >>conftest.$ac_ext <<_ACEOF
39762 /* end confdefs.h. */
39763 $ac_includes_default
39764 #include <$ac_header_dirent>
39765 #ifndef __cplusplus
39772 return closedir (opendir (".")) != 0;
39777 rm -f conftest$ac_exeext
39778 if { (ac_try="$ac_link"
39779 case "(($ac_try" in
39780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39781 *) ac_try_echo=$ac_try;;
39783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39784 (eval "$ac_link") 2>&5
39786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39788 { (case "(($ac_try" in
39789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39790 *) ac_try_echo=$ac_try;;
39792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39793 (eval "$ac_try") 2>&5
39795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39796 (exit $ac_status); }; }; then
39797 ac_cv_func_closedir_void=no
39799 echo "$as_me: program exited with status $ac_status" >&5
39800 echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39803 ( exit $ac_status )
39804 ac_cv_func_closedir_void=yes
39806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39811 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39812 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39813 if test $ac_cv_func_closedir_void = yes; then
39815 cat >>confdefs.h <<\_ACEOF
39816 #define CLOSEDIR_VOID 1
39821 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39822 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39823 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39824 echo $ECHO_N "(cached) $ECHO_C" >&6
39826 if test "$cross_compiling" = yes; then
39827 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39828 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39829 { (exit 1); exit 1; }; }
39831 cat >conftest.$ac_ext <<_ACEOF
39834 cat confdefs.h >>conftest.$ac_ext
39835 cat >>conftest.$ac_ext <<_ACEOF
39836 /* end confdefs.h. */
39837 $ac_includes_default
39841 /* If this system has a BSD-style setpgrp which takes arguments,
39842 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39843 exit successfully. */
39844 return setpgrp (1,1) != -1;
39849 rm -f conftest$ac_exeext
39850 if { (ac_try="$ac_link"
39851 case "(($ac_try" in
39852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39853 *) ac_try_echo=$ac_try;;
39855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39856 (eval "$ac_link") 2>&5
39858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39860 { (case "(($ac_try" in
39861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39862 *) ac_try_echo=$ac_try;;
39864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39865 (eval "$ac_try") 2>&5
39867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868 (exit $ac_status); }; }; then
39869 ac_cv_func_setpgrp_void=no
39871 echo "$as_me: program exited with status $ac_status" >&5
39872 echo "$as_me: failed program was:" >&5
39873 sed 's/^/| /' conftest.$ac_ext >&5
39875 ( exit $ac_status )
39876 ac_cv_func_setpgrp_void=yes
39878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39883 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39884 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39885 if test $ac_cv_func_setpgrp_void = yes; then
39887 cat >>confdefs.h <<\_ACEOF
39888 #define SETPGRP_VOID 1
39892 # AC_FUNC_FNMATCH dnl use local version
39894 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39895 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39896 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39897 echo $ECHO_N "(cached) $ECHO_C" >&6
39899 ac_check_lib_save_LIBS=$LIBS
39900 LIBS="-lintl $LIBS"
39901 cat >conftest.$ac_ext <<_ACEOF
39904 cat confdefs.h >>conftest.$ac_ext
39905 cat >>conftest.$ac_ext <<_ACEOF
39906 /* end confdefs.h. */
39908 /* Override any GCC internal prototype to avoid an error.
39909 Use char because int might match the return type of a GCC
39910 builtin and then its argument prototype would still apply. */
39923 rm -f conftest.$ac_objext conftest$ac_exeext
39924 if { (ac_try="$ac_link"
39925 case "(($ac_try" in
39926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39927 *) ac_try_echo=$ac_try;;
39929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39930 (eval "$ac_link") 2>conftest.er1
39932 grep -v '^ *+' conftest.er1 >conftest.err
39934 cat conftest.err >&5
39935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936 (exit $ac_status); } && {
39937 test -z "$ac_c_werror_flag" ||
39938 test ! -s conftest.err
39939 } && test -s conftest$ac_exeext &&
39940 $as_test_x conftest$ac_exeext; then
39941 ac_cv_lib_intl_gettext=yes
39943 echo "$as_me: failed program was:" >&5
39944 sed 's/^/| /' conftest.$ac_ext >&5
39946 ac_cv_lib_intl_gettext=no
39949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39950 conftest$ac_exeext conftest.$ac_ext
39951 LIBS=$ac_check_lib_save_LIBS
39953 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39954 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39955 if test $ac_cv_lib_intl_gettext = yes; then
39956 LIBS="$LIBS -lintl"
39961 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39962 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39963 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39964 echo $ECHO_N "(cached) $ECHO_C" >&6
39966 ac_check_lib_save_LIBS=$LIBS
39968 cat >conftest.$ac_ext <<_ACEOF
39971 cat confdefs.h >>conftest.$ac_ext
39972 cat >>conftest.$ac_ext <<_ACEOF
39973 /* end confdefs.h. */
39975 /* Override any GCC internal prototype to avoid an error.
39976 Use char because int might match the return type of a GCC
39977 builtin and then its argument prototype would still apply. */
39985 return getpwnam ();
39990 rm -f conftest.$ac_objext conftest$ac_exeext
39991 if { (ac_try="$ac_link"
39992 case "(($ac_try" in
39993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39994 *) ac_try_echo=$ac_try;;
39996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39997 (eval "$ac_link") 2>conftest.er1
39999 grep -v '^ *+' conftest.er1 >conftest.err
40001 cat conftest.err >&5
40002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003 (exit $ac_status); } && {
40004 test -z "$ac_c_werror_flag" ||
40005 test ! -s conftest.err
40006 } && test -s conftest$ac_exeext &&
40007 $as_test_x conftest$ac_exeext; then
40008 ac_cv_lib_sun_getpwnam=yes
40010 echo "$as_me: failed program was:" >&5
40011 sed 's/^/| /' conftest.$ac_ext >&5
40013 ac_cv_lib_sun_getpwnam=no
40016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40017 conftest$ac_exeext conftest.$ac_ext
40018 LIBS=$ac_check_lib_save_LIBS
40020 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40021 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40022 if test $ac_cv_lib_sun_getpwnam = yes; then
40023 cat >>confdefs.h <<_ACEOF
40024 #define HAVE_LIBSUN 1
40033 for ac_header in zlib.h
40035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40040 echo $ECHO_N "(cached) $ECHO_C" >&6
40042 ac_res=`eval echo '${'$as_ac_Header'}'`
40043 { echo "$as_me:$LINENO: result: $ac_res" >&5
40044 echo "${ECHO_T}$ac_res" >&6; }
40046 # Is the header compilable?
40047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40049 cat >conftest.$ac_ext <<_ACEOF
40052 cat confdefs.h >>conftest.$ac_ext
40053 cat >>conftest.$ac_ext <<_ACEOF
40054 /* end confdefs.h. */
40055 $ac_includes_default
40056 #include <$ac_header>
40058 rm -f conftest.$ac_objext
40059 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
40075 ac_header_compiler=yes
40077 echo "$as_me: failed program was:" >&5
40078 sed 's/^/| /' conftest.$ac_ext >&5
40080 ac_header_compiler=no
40083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40085 echo "${ECHO_T}$ac_header_compiler" >&6; }
40087 # Is the header present?
40088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40090 cat >conftest.$ac_ext <<_ACEOF
40093 cat confdefs.h >>conftest.$ac_ext
40094 cat >>conftest.$ac_ext <<_ACEOF
40095 /* end confdefs.h. */
40096 #include <$ac_header>
40098 if { (ac_try="$ac_cpp conftest.$ac_ext"
40099 case "(($ac_try" in
40100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40101 *) ac_try_echo=$ac_try;;
40103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40106 grep -v '^ *+' conftest.er1 >conftest.err
40108 cat conftest.err >&5
40109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40110 (exit $ac_status); } >/dev/null && {
40111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40112 test ! -s conftest.err
40114 ac_header_preproc=yes
40116 echo "$as_me: failed program was:" >&5
40117 sed 's/^/| /' conftest.$ac_ext >&5
40119 ac_header_preproc=no
40122 rm -f conftest.err conftest.$ac_ext
40123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40124 echo "${ECHO_T}$ac_header_preproc" >&6; }
40126 # So? What about this header?
40127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40133 ac_header_preproc=yes
40136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40154 echo $ECHO_N "(cached) $ECHO_C" >&6
40156 eval "$as_ac_Header=\$ac_header_preproc"
40158 ac_res=`eval echo '${'$as_ac_Header'}'`
40159 { echo "$as_me:$LINENO: result: $ac_res" >&5
40160 echo "${ECHO_T}$ac_res" >&6; }
40163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40164 cat >>confdefs.h <<_ACEOF
40165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40172 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40173 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40174 if test "${ac_cv_lib_z_deflate+set}" = set; then
40175 echo $ECHO_N "(cached) $ECHO_C" >&6
40177 ac_check_lib_save_LIBS=$LIBS
40179 cat >conftest.$ac_ext <<_ACEOF
40182 cat confdefs.h >>conftest.$ac_ext
40183 cat >>conftest.$ac_ext <<_ACEOF
40184 /* end confdefs.h. */
40186 /* Override any GCC internal prototype to avoid an error.
40187 Use char because int might match the return type of a GCC
40188 builtin and then its argument prototype would still apply. */
40201 rm -f conftest.$ac_objext conftest$ac_exeext
40202 if { (ac_try="$ac_link"
40203 case "(($ac_try" in
40204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40205 *) ac_try_echo=$ac_try;;
40207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40208 (eval "$ac_link") 2>conftest.er1
40210 grep -v '^ *+' conftest.er1 >conftest.err
40212 cat conftest.err >&5
40213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214 (exit $ac_status); } && {
40215 test -z "$ac_c_werror_flag" ||
40216 test ! -s conftest.err
40217 } && test -s conftest$ac_exeext &&
40218 $as_test_x conftest$ac_exeext; then
40219 ac_cv_lib_z_deflate=yes
40221 echo "$as_me: failed program was:" >&5
40222 sed 's/^/| /' conftest.$ac_ext >&5
40224 ac_cv_lib_z_deflate=no
40227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40228 conftest$ac_exeext conftest.$ac_ext
40229 LIBS=$ac_check_lib_save_LIBS
40231 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40232 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40233 if test $ac_cv_lib_z_deflate = yes; then
40238 if test x$FDLIBS = x-lz; then
40239 cat >>confdefs.h <<\_ACEOF
40240 #define HAVE_LIBZ 1
40247 # Check whether --enable-acl was given.
40248 if test "${enable_acl+set}" = set; then
40249 enableval=$enable_acl;
40250 if test x$enableval = xno; then
40259 have_extended_acl=no
40260 if test x$support_acl = xyes; then
40261 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40262 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40263 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40264 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40265 echo $ECHO_N "(cached) $ECHO_C" >&6
40267 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40268 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40270 # Is the header compilable?
40271 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40272 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40273 cat >conftest.$ac_ext <<_ACEOF
40276 cat confdefs.h >>conftest.$ac_ext
40277 cat >>conftest.$ac_ext <<_ACEOF
40278 /* end confdefs.h. */
40279 $ac_includes_default
40280 #include <sys/acl.h>
40282 rm -f conftest.$ac_objext
40283 if { (ac_try="$ac_compile"
40284 case "(($ac_try" in
40285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40286 *) ac_try_echo=$ac_try;;
40288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40289 (eval "$ac_compile") 2>conftest.er1
40291 grep -v '^ *+' conftest.er1 >conftest.err
40293 cat conftest.err >&5
40294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295 (exit $ac_status); } && {
40296 test -z "$ac_c_werror_flag" ||
40297 test ! -s conftest.err
40298 } && test -s conftest.$ac_objext; then
40299 ac_header_compiler=yes
40301 echo "$as_me: failed program was:" >&5
40302 sed 's/^/| /' conftest.$ac_ext >&5
40304 ac_header_compiler=no
40307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40309 echo "${ECHO_T}$ac_header_compiler" >&6; }
40311 # Is the header present?
40312 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40313 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40314 cat >conftest.$ac_ext <<_ACEOF
40317 cat confdefs.h >>conftest.$ac_ext
40318 cat >>conftest.$ac_ext <<_ACEOF
40319 /* end confdefs.h. */
40320 #include <sys/acl.h>
40322 if { (ac_try="$ac_cpp conftest.$ac_ext"
40323 case "(($ac_try" in
40324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40325 *) ac_try_echo=$ac_try;;
40327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40330 grep -v '^ *+' conftest.er1 >conftest.err
40332 cat conftest.err >&5
40333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334 (exit $ac_status); } >/dev/null && {
40335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40336 test ! -s conftest.err
40338 ac_header_preproc=yes
40340 echo "$as_me: failed program was:" >&5
40341 sed 's/^/| /' conftest.$ac_ext >&5
40343 ac_header_preproc=no
40346 rm -f conftest.err conftest.$ac_ext
40347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40348 echo "${ECHO_T}$ac_header_preproc" >&6; }
40350 # So? What about this header?
40351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40353 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40354 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40355 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40356 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40357 ac_header_preproc=yes
40360 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40361 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40362 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40363 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40364 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40365 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40366 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40367 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40368 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40369 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40370 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40371 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40375 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40376 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40377 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40378 echo $ECHO_N "(cached) $ECHO_C" >&6
40380 ac_cv_header_sys_acl_h=$ac_header_preproc
40382 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40383 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40386 if test $ac_cv_header_sys_acl_h = yes; then
40388 cat >>confdefs.h <<\_ACEOF
40389 #define HAVE_SYS_ACL_H 1
40395 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40396 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40397 if test "${ac_cv_func_acl_get_file+set}" = set; then
40398 echo $ECHO_N "(cached) $ECHO_C" >&6
40400 cat >conftest.$ac_ext <<_ACEOF
40403 cat confdefs.h >>conftest.$ac_ext
40404 cat >>conftest.$ac_ext <<_ACEOF
40405 /* end confdefs.h. */
40406 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40408 #define acl_get_file innocuous_acl_get_file
40410 /* System header to define __stub macros and hopefully few prototypes,
40411 which can conflict with char acl_get_file (); below.
40412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40413 <limits.h> exists even on freestanding compilers. */
40416 # include <limits.h>
40418 # include <assert.h>
40421 #undef acl_get_file
40423 /* Override any GCC internal prototype to avoid an error.
40424 Use char because int might match the return type of a GCC
40425 builtin and then its argument prototype would still apply. */
40429 char acl_get_file ();
40430 /* The GNU C library defines this for functions which it implements
40431 to always fail with ENOSYS. Some functions are actually named
40432 something starting with __ and the normal name is an alias. */
40433 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40440 return acl_get_file ();
40445 rm -f conftest.$ac_objext conftest$ac_exeext
40446 if { (ac_try="$ac_link"
40447 case "(($ac_try" in
40448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40449 *) ac_try_echo=$ac_try;;
40451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40452 (eval "$ac_link") 2>conftest.er1
40454 grep -v '^ *+' conftest.er1 >conftest.err
40456 cat conftest.err >&5
40457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458 (exit $ac_status); } && {
40459 test -z "$ac_c_werror_flag" ||
40460 test ! -s conftest.err
40461 } && test -s conftest$ac_exeext &&
40462 $as_test_x conftest$ac_exeext; then
40463 ac_cv_func_acl_get_file=yes
40465 echo "$as_me: failed program was:" >&5
40466 sed 's/^/| /' conftest.$ac_ext >&5
40468 ac_cv_func_acl_get_file=no
40471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40472 conftest$ac_exeext conftest.$ac_ext
40474 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40475 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40476 if test $ac_cv_func_acl_get_file = yes; then
40482 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40483 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40484 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40485 echo $ECHO_N "(cached) $ECHO_C" >&6
40487 ac_check_lib_save_LIBS=$LIBS
40489 cat >conftest.$ac_ext <<_ACEOF
40492 cat confdefs.h >>conftest.$ac_ext
40493 cat >>conftest.$ac_ext <<_ACEOF
40494 /* end confdefs.h. */
40496 /* Override any GCC internal prototype to avoid an error.
40497 Use char because int might match the return type of a GCC
40498 builtin and then its argument prototype would still apply. */
40502 char acl_get_file ();
40506 return acl_get_file ();
40511 rm -f conftest.$ac_objext conftest$ac_exeext
40512 if { (ac_try="$ac_link"
40513 case "(($ac_try" in
40514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40515 *) ac_try_echo=$ac_try;;
40517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40518 (eval "$ac_link") 2>conftest.er1
40520 grep -v '^ *+' conftest.er1 >conftest.err
40522 cat conftest.err >&5
40523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524 (exit $ac_status); } && {
40525 test -z "$ac_c_werror_flag" ||
40526 test ! -s conftest.err
40527 } && test -s conftest$ac_exeext &&
40528 $as_test_x conftest$ac_exeext; then
40529 ac_cv_lib_acl_acl_get_file=yes
40531 echo "$as_me: failed program was:" >&5
40532 sed 's/^/| /' conftest.$ac_ext >&5
40534 ac_cv_lib_acl_acl_get_file=no
40537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40538 conftest$ac_exeext conftest.$ac_ext
40539 LIBS=$ac_check_lib_save_LIBS
40541 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40542 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40543 if test $ac_cv_lib_acl_acl_get_file = yes; then
40546 FDLIBS="-lacl $FDLIBS"
40550 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40551 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40552 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40553 echo $ECHO_N "(cached) $ECHO_C" >&6
40555 ac_check_lib_save_LIBS=$LIBS
40556 LIBS="-lpacl $LIBS"
40557 cat >conftest.$ac_ext <<_ACEOF
40560 cat confdefs.h >>conftest.$ac_ext
40561 cat >>conftest.$ac_ext <<_ACEOF
40562 /* end confdefs.h. */
40564 /* Override any GCC internal prototype to avoid an error.
40565 Use char because int might match the return type of a GCC
40566 builtin and then its argument prototype would still apply. */
40570 char acl_get_file ();
40574 return acl_get_file ();
40579 rm -f conftest.$ac_objext conftest$ac_exeext
40580 if { (ac_try="$ac_link"
40581 case "(($ac_try" in
40582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40583 *) ac_try_echo=$ac_try;;
40585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40586 (eval "$ac_link") 2>conftest.er1
40588 grep -v '^ *+' conftest.er1 >conftest.err
40590 cat conftest.err >&5
40591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40592 (exit $ac_status); } && {
40593 test -z "$ac_c_werror_flag" ||
40594 test ! -s conftest.err
40595 } && test -s conftest$ac_exeext &&
40596 $as_test_x conftest$ac_exeext; then
40597 ac_cv_lib_pacl_acl_get_file=yes
40599 echo "$as_me: failed program was:" >&5
40600 sed 's/^/| /' conftest.$ac_ext >&5
40602 ac_cv_lib_pacl_acl_get_file=no
40605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40606 conftest$ac_exeext conftest.$ac_ext
40607 LIBS=$ac_check_lib_save_LIBS
40609 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40610 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40611 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40614 FDLIBS="-lpacl $FDLIBS"
40618 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40619 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40620 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40621 echo $ECHO_N "(cached) $ECHO_C" >&6
40623 ac_check_lib_save_LIBS=$LIBS
40625 cat >conftest.$ac_ext <<_ACEOF
40628 cat confdefs.h >>conftest.$ac_ext
40629 cat >>conftest.$ac_ext <<_ACEOF
40630 /* end confdefs.h. */
40632 /* Override any GCC internal prototype to avoid an error.
40633 Use char because int might match the return type of a GCC
40634 builtin and then its argument prototype would still apply. */
40642 return acltotext ();
40647 rm -f conftest.$ac_objext conftest$ac_exeext
40648 if { (ac_try="$ac_link"
40649 case "(($ac_try" in
40650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40651 *) ac_try_echo=$ac_try;;
40653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40654 (eval "$ac_link") 2>conftest.er1
40656 grep -v '^ *+' conftest.er1 >conftest.err
40658 cat conftest.err >&5
40659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40660 (exit $ac_status); } && {
40661 test -z "$ac_c_werror_flag" ||
40662 test ! -s conftest.err
40663 } && test -s conftest$ac_exeext &&
40664 $as_test_x conftest$ac_exeext; then
40665 ac_cv_lib_sec_acltotext=yes
40667 echo "$as_me: failed program was:" >&5
40668 sed 's/^/| /' conftest.$ac_ext >&5
40670 ac_cv_lib_sec_acltotext=no
40673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40674 conftest$ac_exeext conftest.$ac_ext
40675 LIBS=$ac_check_lib_save_LIBS
40677 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40678 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40679 if test $ac_cv_lib_sec_acltotext = yes; then
40682 FDLIBS="-lsec $FDLIBS"
40684 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40685 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40686 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40687 echo $ECHO_N "(cached) $ECHO_C" >&6
40689 ac_check_lib_save_LIBS=$LIBS
40691 cat >conftest.$ac_ext <<_ACEOF
40694 cat confdefs.h >>conftest.$ac_ext
40695 cat >>conftest.$ac_ext <<_ACEOF
40696 /* end confdefs.h. */
40698 /* Override any GCC internal prototype to avoid an error.
40699 Use char because int might match the return type of a GCC
40700 builtin and then its argument prototype would still apply. */
40704 char acl_totext ();
40708 return acl_totext ();
40713 rm -f conftest.$ac_objext conftest$ac_exeext
40714 if { (ac_try="$ac_link"
40715 case "(($ac_try" in
40716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40717 *) ac_try_echo=$ac_try;;
40719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40720 (eval "$ac_link") 2>conftest.er1
40722 grep -v '^ *+' conftest.er1 >conftest.err
40724 cat conftest.err >&5
40725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40726 (exit $ac_status); } && {
40727 test -z "$ac_c_werror_flag" ||
40728 test ! -s conftest.err
40729 } && test -s conftest$ac_exeext &&
40730 $as_test_x conftest$ac_exeext; then
40731 ac_cv_lib_sec_acl_totext=yes
40733 echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40736 ac_cv_lib_sec_acl_totext=no
40739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40740 conftest$ac_exeext conftest.$ac_ext
40741 LIBS=$ac_check_lib_save_LIBS
40743 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40744 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40745 if test $ac_cv_lib_sec_acl_totext = yes; then
40747 have_extended_acl=yes
40768 if test $have_acl = yes; then
40769 cat >>confdefs.h <<\_ACEOF
40775 if test $have_extended_acl = yes; then
40776 cat >>confdefs.h <<\_ACEOF
40777 #define HAVE_EXTENDED_ACL 1
40784 # Check whether --enable-xattr was given.
40785 if test "${enable_xattr+set}" = set; then
40786 enableval=$enable_xattr;
40787 if test x$enableval = xno; then
40796 if test x$support_xattr = xyes; then
40797 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40798 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40799 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40800 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40801 echo $ECHO_N "(cached) $ECHO_C" >&6
40803 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40804 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40806 # Is the header compilable?
40807 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
40808 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
40809 cat >conftest.$ac_ext <<_ACEOF
40812 cat confdefs.h >>conftest.$ac_ext
40813 cat >>conftest.$ac_ext <<_ACEOF
40814 /* end confdefs.h. */
40815 $ac_includes_default
40816 #include <sys/xattr.h>
40818 rm -f conftest.$ac_objext
40819 if { (ac_try="$ac_compile"
40820 case "(($ac_try" in
40821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40822 *) ac_try_echo=$ac_try;;
40824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40825 (eval "$ac_compile") 2>conftest.er1
40827 grep -v '^ *+' conftest.er1 >conftest.err
40829 cat conftest.err >&5
40830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40831 (exit $ac_status); } && {
40832 test -z "$ac_c_werror_flag" ||
40833 test ! -s conftest.err
40834 } && test -s conftest.$ac_objext; then
40835 ac_header_compiler=yes
40837 echo "$as_me: failed program was:" >&5
40838 sed 's/^/| /' conftest.$ac_ext >&5
40840 ac_header_compiler=no
40843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40845 echo "${ECHO_T}$ac_header_compiler" >&6; }
40847 # Is the header present?
40848 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
40849 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
40850 cat >conftest.$ac_ext <<_ACEOF
40853 cat confdefs.h >>conftest.$ac_ext
40854 cat >>conftest.$ac_ext <<_ACEOF
40855 /* end confdefs.h. */
40856 #include <sys/xattr.h>
40858 if { (ac_try="$ac_cpp conftest.$ac_ext"
40859 case "(($ac_try" in
40860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40861 *) ac_try_echo=$ac_try;;
40863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40866 grep -v '^ *+' conftest.er1 >conftest.err
40868 cat conftest.err >&5
40869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40870 (exit $ac_status); } >/dev/null && {
40871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40872 test ! -s conftest.err
40874 ac_header_preproc=yes
40876 echo "$as_me: failed program was:" >&5
40877 sed 's/^/| /' conftest.$ac_ext >&5
40879 ac_header_preproc=no
40882 rm -f conftest.err conftest.$ac_ext
40883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40884 echo "${ECHO_T}$ac_header_preproc" >&6; }
40886 # So? What about this header?
40887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40889 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
40890 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40891 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
40892 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
40893 ac_header_preproc=yes
40896 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
40897 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
40898 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
40899 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
40900 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
40901 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
40902 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
40903 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
40904 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
40905 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
40906 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
40907 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
40911 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40912 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40913 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40914 echo $ECHO_N "(cached) $ECHO_C" >&6
40916 ac_cv_header_sys_xattr_h=$ac_header_preproc
40918 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40919 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40922 if test $ac_cv_header_sys_xattr_h = yes; then
40924 cat >>confdefs.h <<\_ACEOF
40925 #define HAVE_SYS_XATTR_H 1
40934 for ac_func in llistxattr lgetxattr lsetxattr
40936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40940 echo $ECHO_N "(cached) $ECHO_C" >&6
40942 cat >conftest.$ac_ext <<_ACEOF
40945 cat confdefs.h >>conftest.$ac_ext
40946 cat >>conftest.$ac_ext <<_ACEOF
40947 /* end confdefs.h. */
40948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40950 #define $ac_func innocuous_$ac_func
40952 /* System header to define __stub macros and hopefully few prototypes,
40953 which can conflict with char $ac_func (); below.
40954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40955 <limits.h> exists even on freestanding compilers. */
40958 # include <limits.h>
40960 # include <assert.h>
40965 /* Override any GCC internal prototype to avoid an error.
40966 Use char because int might match the return type of a GCC
40967 builtin and then its argument prototype would still apply. */
40972 /* The GNU C library defines this for functions which it implements
40973 to always fail with ENOSYS. Some functions are actually named
40974 something starting with __ and the normal name is an alias. */
40975 #if defined __stub_$ac_func || defined __stub___$ac_func
40982 return $ac_func ();
40987 rm -f conftest.$ac_objext conftest$ac_exeext
40988 if { (ac_try="$ac_link"
40989 case "(($ac_try" in
40990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40991 *) ac_try_echo=$ac_try;;
40993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40994 (eval "$ac_link") 2>conftest.er1
40996 grep -v '^ *+' conftest.er1 >conftest.err
40998 cat conftest.err >&5
40999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41000 (exit $ac_status); } && {
41001 test -z "$ac_c_werror_flag" ||
41002 test ! -s conftest.err
41003 } && test -s conftest$ac_exeext &&
41004 $as_test_x conftest$ac_exeext; then
41005 eval "$as_ac_var=yes"
41007 echo "$as_me: failed program was:" >&5
41008 sed 's/^/| /' conftest.$ac_ext >&5
41010 eval "$as_ac_var=no"
41013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41014 conftest$ac_exeext conftest.$ac_ext
41016 ac_res=`eval echo '${'$as_ac_var'}'`
41017 { echo "$as_me:$LINENO: result: $ac_res" >&5
41018 echo "${ECHO_T}$ac_res" >&6; }
41019 if test `eval echo '${'$as_ac_var'}'` = yes; then
41020 cat >>confdefs.h <<_ACEOF
41021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41025 cat >>confdefs.h <<\_ACEOF
41026 #define HAVE_LLISTXATTR 1
41029 cat >>confdefs.h <<\_ACEOF
41030 #define HAVE_LGETXATTR 1
41033 cat >>confdefs.h <<\_ACEOF
41034 #define HAVE_LSETXATTR 1
41043 for ac_func in listxattr getxattr setxattr
41045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41049 echo $ECHO_N "(cached) $ECHO_C" >&6
41051 cat >conftest.$ac_ext <<_ACEOF
41054 cat confdefs.h >>conftest.$ac_ext
41055 cat >>conftest.$ac_ext <<_ACEOF
41056 /* end confdefs.h. */
41057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41059 #define $ac_func innocuous_$ac_func
41061 /* System header to define __stub macros and hopefully few prototypes,
41062 which can conflict with char $ac_func (); below.
41063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41064 <limits.h> exists even on freestanding compilers. */
41067 # include <limits.h>
41069 # include <assert.h>
41074 /* Override any GCC internal prototype to avoid an error.
41075 Use char because int might match the return type of a GCC
41076 builtin and then its argument prototype would still apply. */
41081 /* The GNU C library defines this for functions which it implements
41082 to always fail with ENOSYS. Some functions are actually named
41083 something starting with __ and the normal name is an alias. */
41084 #if defined __stub_$ac_func || defined __stub___$ac_func
41091 return $ac_func ();
41096 rm -f conftest.$ac_objext conftest$ac_exeext
41097 if { (ac_try="$ac_link"
41098 case "(($ac_try" in
41099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41100 *) ac_try_echo=$ac_try;;
41102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41103 (eval "$ac_link") 2>conftest.er1
41105 grep -v '^ *+' conftest.er1 >conftest.err
41107 cat conftest.err >&5
41108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41109 (exit $ac_status); } && {
41110 test -z "$ac_c_werror_flag" ||
41111 test ! -s conftest.err
41112 } && test -s conftest$ac_exeext &&
41113 $as_test_x conftest$ac_exeext; then
41114 eval "$as_ac_var=yes"
41116 echo "$as_me: failed program was:" >&5
41117 sed 's/^/| /' conftest.$ac_ext >&5
41119 eval "$as_ac_var=no"
41122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41123 conftest$ac_exeext conftest.$ac_ext
41125 ac_res=`eval echo '${'$as_ac_var'}'`
41126 { echo "$as_me:$LINENO: result: $ac_res" >&5
41127 echo "${ECHO_T}$ac_res" >&6; }
41128 if test `eval echo '${'$as_ac_var'}'` = yes; then
41129 cat >>confdefs.h <<_ACEOF
41130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41134 cat >>confdefs.h <<\_ACEOF
41135 #define HAVE_LISTXATTR 1
41138 cat >>confdefs.h <<\_ACEOF
41139 #define HAVE_GETXATTR 1
41142 cat >>confdefs.h <<\_ACEOF
41143 #define HAVE_SETXATTR 1
41157 if test $have_xattr = yes; then
41158 cat >>confdefs.h <<\_ACEOF
41159 #define HAVE_XATTR 1
41166 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
41167 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
41168 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
41169 echo $ECHO_N "(cached) $ECHO_C" >&6
41171 ac_check_lib_save_LIBS=$LIBS
41172 LIBS="-lpthread $LIBS"
41173 cat >conftest.$ac_ext <<_ACEOF
41176 cat confdefs.h >>conftest.$ac_ext
41177 cat >>conftest.$ac_ext <<_ACEOF
41178 /* end confdefs.h. */
41180 /* Override any GCC internal prototype to avoid an error.
41181 Use char because int might match the return type of a GCC
41182 builtin and then its argument prototype would still apply. */
41186 char pthread_create ();
41190 return pthread_create ();
41195 rm -f conftest.$ac_objext conftest$ac_exeext
41196 if { (ac_try="$ac_link"
41197 case "(($ac_try" in
41198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41199 *) ac_try_echo=$ac_try;;
41201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41202 (eval "$ac_link") 2>conftest.er1
41204 grep -v '^ *+' conftest.er1 >conftest.err
41206 cat conftest.err >&5
41207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41208 (exit $ac_status); } && {
41209 test -z "$ac_c_werror_flag" ||
41210 test ! -s conftest.err
41211 } && test -s conftest$ac_exeext &&
41212 $as_test_x conftest$ac_exeext; then
41213 ac_cv_lib_pthread_pthread_create=yes
41215 echo "$as_me: failed program was:" >&5
41216 sed 's/^/| /' conftest.$ac_ext >&5
41218 ac_cv_lib_pthread_pthread_create=no
41221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41222 conftest$ac_exeext conftest.$ac_ext
41223 LIBS=$ac_check_lib_save_LIBS
41225 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
41226 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
41227 if test $ac_cv_lib_pthread_pthread_create = yes; then
41228 PTHREAD_LIB="-lpthread"
41231 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
41232 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
41233 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
41234 echo $ECHO_N "(cached) $ECHO_C" >&6
41236 ac_check_lib_save_LIBS=$LIBS
41237 LIBS="-lpthreads $LIBS"
41238 cat >conftest.$ac_ext <<_ACEOF
41241 cat confdefs.h >>conftest.$ac_ext
41242 cat >>conftest.$ac_ext <<_ACEOF
41243 /* end confdefs.h. */
41245 /* Override any GCC internal prototype to avoid an error.
41246 Use char because int might match the return type of a GCC
41247 builtin and then its argument prototype would still apply. */
41251 char pthread_create ();
41255 return pthread_create ();
41260 rm -f conftest.$ac_objext conftest$ac_exeext
41261 if { (ac_try="$ac_link"
41262 case "(($ac_try" in
41263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41264 *) ac_try_echo=$ac_try;;
41266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41267 (eval "$ac_link") 2>conftest.er1
41269 grep -v '^ *+' conftest.er1 >conftest.err
41271 cat conftest.err >&5
41272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273 (exit $ac_status); } && {
41274 test -z "$ac_c_werror_flag" ||
41275 test ! -s conftest.err
41276 } && test -s conftest$ac_exeext &&
41277 $as_test_x conftest$ac_exeext; then
41278 ac_cv_lib_pthreads_pthread_create=yes
41280 echo "$as_me: failed program was:" >&5
41281 sed 's/^/| /' conftest.$ac_ext >&5
41283 ac_cv_lib_pthreads_pthread_create=no
41286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41287 conftest$ac_exeext conftest.$ac_ext
41288 LIBS=$ac_check_lib_save_LIBS
41290 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
41291 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
41292 if test $ac_cv_lib_pthreads_pthread_create = yes; then
41293 PTHREAD_LIB="-lpthreads"
41296 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
41297 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
41298 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
41299 echo $ECHO_N "(cached) $ECHO_C" >&6
41301 ac_check_lib_save_LIBS=$LIBS
41303 cat >conftest.$ac_ext <<_ACEOF
41306 cat confdefs.h >>conftest.$ac_ext
41307 cat >>conftest.$ac_ext <<_ACEOF
41308 /* end confdefs.h. */
41310 /* Override any GCC internal prototype to avoid an error.
41311 Use char because int might match the return type of a GCC
41312 builtin and then its argument prototype would still apply. */
41316 char pthread_create ();
41320 return pthread_create ();
41325 rm -f conftest.$ac_objext conftest$ac_exeext
41326 if { (ac_try="$ac_link"
41327 case "(($ac_try" in
41328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41329 *) ac_try_echo=$ac_try;;
41331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41332 (eval "$ac_link") 2>conftest.er1
41334 grep -v '^ *+' conftest.er1 >conftest.err
41336 cat conftest.err >&5
41337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338 (exit $ac_status); } && {
41339 test -z "$ac_c_werror_flag" ||
41340 test ! -s conftest.err
41341 } && test -s conftest$ac_exeext &&
41342 $as_test_x conftest$ac_exeext; then
41343 ac_cv_lib_c_r_pthread_create=yes
41345 echo "$as_me: failed program was:" >&5
41346 sed 's/^/| /' conftest.$ac_ext >&5
41348 ac_cv_lib_c_r_pthread_create=no
41351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41352 conftest$ac_exeext conftest.$ac_ext
41353 LIBS=$ac_check_lib_save_LIBS
41355 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
41356 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
41357 if test $ac_cv_lib_c_r_pthread_create = yes; then
41358 PTHREAD_LIB="-lc_r"
41361 { echo "$as_me:$LINENO: checking for pthread_create" >&5
41362 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
41363 if test "${ac_cv_func_pthread_create+set}" = set; then
41364 echo $ECHO_N "(cached) $ECHO_C" >&6
41366 cat >conftest.$ac_ext <<_ACEOF
41369 cat confdefs.h >>conftest.$ac_ext
41370 cat >>conftest.$ac_ext <<_ACEOF
41371 /* end confdefs.h. */
41372 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
41373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41374 #define pthread_create innocuous_pthread_create
41376 /* System header to define __stub macros and hopefully few prototypes,
41377 which can conflict with char pthread_create (); below.
41378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41379 <limits.h> exists even on freestanding compilers. */
41382 # include <limits.h>
41384 # include <assert.h>
41387 #undef pthread_create
41389 /* Override any GCC internal prototype to avoid an error.
41390 Use char because int might match the return type of a GCC
41391 builtin and then its argument prototype would still apply. */
41395 char pthread_create ();
41396 /* The GNU C library defines this for functions which it implements
41397 to always fail with ENOSYS. Some functions are actually named
41398 something starting with __ and the normal name is an alias. */
41399 #if defined __stub_pthread_create || defined __stub___pthread_create
41406 return pthread_create ();
41411 rm -f conftest.$ac_objext conftest$ac_exeext
41412 if { (ac_try="$ac_link"
41413 case "(($ac_try" in
41414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41415 *) ac_try_echo=$ac_try;;
41417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41418 (eval "$ac_link") 2>conftest.er1
41420 grep -v '^ *+' conftest.er1 >conftest.err
41422 cat conftest.err >&5
41423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41424 (exit $ac_status); } && {
41425 test -z "$ac_c_werror_flag" ||
41426 test ! -s conftest.err
41427 } && test -s conftest$ac_exeext &&
41428 $as_test_x conftest$ac_exeext; then
41429 ac_cv_func_pthread_create=yes
41431 echo "$as_me: failed program was:" >&5
41432 sed 's/^/| /' conftest.$ac_ext >&5
41434 ac_cv_func_pthread_create=no
41437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41438 conftest$ac_exeext conftest.$ac_ext
41440 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
41441 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
41457 cat >>confdefs.h <<\_ACEOF
41462 CFLAGS=${CFLAGS--O}
41464 if test x$have_gcc = xyes ; then
41465 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41466 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41468 LDFLAGS=${LDFLAGS--O}
41469 DB_LIBS="${SQL_LFLAGS}"
41470 CPPFLAGS="$CPPFLAGS"
41497 PFILES="platforms/Makefile"
41501 hostname=`uname -n | cut -d '.' -f 1`
41502 if test x${hostname} = x ; then
41503 hostname="localhost"
41505 case "$DISTNAME" in
41508 PSCMD="ps -e -o pid,comm"
41509 PFILES="${PFILES} \
41510 platforms/aix/Makefile"
41511 TAPEDRIVE="/dev/rmt0.1"
41515 PTHREAD_LIB="-lpthread -lexc"
41516 if test "${CC}" = "gcc" ; then
41523 TAPEDRIVE="/dev/nrmt0"
41526 DISTVER=`uname -a |awk '{print $3}'`
41527 TAPEDRIVE="/dev/nrmt0"
41528 PTHREAD_LIB="-pthread"
41529 CFLAGS="${CFLAGS} -pthread"
41530 PSCMD="ps -ax -o pid,command"
41533 PFILES="${PFILES} \
41534 platforms/bsdi/Makefile \
41535 platforms/bsdi/bacula-fd \
41536 platforms/bsdi/bacula-sd \
41537 platforms/bsdi/bacula-dir"
41538 largefile_support="yes"
41541 DISTVER=`uname -a |awk '{print $3}'`
41542 TAPEDRIVE="/dev/nrst0"
41544 WCFLAGS="-mwindows"
41545 WLDFLAGS="-mwindows"
41549 TAPEDRIVE="/dev/nst0"
41550 PSCMD="ps -e -o pid,command"
41552 PFILES="${PFILES} \
41553 platforms/darwin/Makefile"
41556 ping -c 1 $hostname 2>&1 1>/dev/null
41557 if test ! $? = 0; then
41558 hostname="localhost"
41560 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41563 DISTVER=`cat /etc/debian_version`
41564 if test -f /etc/lsb-release ; then
41566 if test "x$DISTRIB_ID" != "x" ; then
41567 DISTNAME=$DISTRIB_ID
41569 if test "x$DISTRIB_RELEASE" != "x" ; then
41570 DISTVER=$DISTRIB_RELEASE
41573 if test "$DISTNAME" = "Ubuntu" ; then
41576 TAPEDRIVE="/dev/nst0"
41577 PSCMD="ps -e -o pid,command"
41578 if test "$DISTNAME" = "ubuntu" ; then
41579 PFILES="${PFILES} \
41580 platforms/ubuntu/Makefile \
41581 platforms/ubuntu/bacula-fd \
41582 platforms/ubuntu/bacula-sd \
41583 platforms/ubuntu/bacula-dir"
41585 PFILES="${PFILES} \
41586 platforms/debian/Makefile \
41587 platforms/debian/bacula-fd \
41588 platforms/debian/bacula-sd \
41589 platforms/debian/bacula-dir"
41593 ping -c 1 $hostname 2>&1 1>/dev/null
41594 if test ! $? = 0; then
41595 hostname="localhost"
41597 DISTVER=`uname -a |awk '{print $3}'`
41598 VER=`echo $DISTVER | cut -c 1`
41599 if test x$VER = x4 ; then
41600 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41601 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41605 TAPEDRIVE="/dev/nrsa0"
41606 PSCMD="ps -ax -o pid,command"
41607 PFILES="${PFILES} \
41608 platforms/freebsd/Makefile \
41609 platforms/freebsd/bacula-fd \
41610 platforms/freebsd/bacula-sd \
41611 platforms/freebsd/bacula-dir"
41612 largefile_support="yes"
41615 PSCMD="UNIX95=1; ps -e -o pid,comm"
41616 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41618 TAPEDRIVE="/dev/rmt/0hnb"
41619 PTHREAD_LIB="-lpthread"
41620 cat >>confdefs.h <<\_ACEOF
41621 #define _INCLUDE_LONGLONG 1
41627 TAPEDRIVE="/dev/rmt/0cbn"
41628 PSCMD="ps -e -o pid,comm"
41629 PFILES="${PFILES} \
41630 platforms/irix/Makefile \
41631 platforms/irix/bacula-fd \
41632 platforms/irix/bacula-sd \
41633 platforms/irix/bacula-dir"
41636 DISTVER=`uname -a |awk '{print $3}'`
41639 TAPEDRIVE="/dev/nrst0"
41640 PSCMD="ps -ax -o pid,command"
41641 PTHREAD_LIB="-pthread"
41642 CFLAGS="${CFLAGS} -pthread"
41645 DISTVER=`uname -a |awk '{print $3}'`
41648 TAPEDRIVE="/dev/nrst0"
41649 PSCMD="ps -ax -o pid,command"
41650 PTHREAD_LIB="-pthread"
41651 CFLAGS="${CFLAGS} -pthread"
41652 PFILES="${PFILES} \
41653 platforms/openbsd/Makefile \
41654 platforms/openbsd/bacula-fd \
41655 platforms/openbsd/bacula-sd \
41656 platforms/openbsd/bacula-dir"
41659 ping -c 1 $hostname 2>&1 1>/dev/null
41660 if test ! $? = 0; then
41661 hostname="localhost"
41663 if test -f /etc/whitebox-release ; then
41664 f=/etc/whitebox-release
41666 f=/etc/redhat-release
41668 if test `cat $f | grep release |\
41669 cut -f 3 -d ' '`x = "Enterprise"x ; then
41670 DISTVER="Enterprise "`cat $f | grep release |\
41673 DISTVER=`cat /etc/redhat-release | grep release |\
41676 TAPEDRIVE="/dev/nst0"
41677 PSCMD="ps -e -o pid,command"
41678 PFILES="${PFILES} \
41679 platforms/redhat/Makefile \
41680 platforms/redhat/bacula-fd \
41681 platforms/redhat/bacula-sd \
41682 platforms/redhat/bacula-dir \
41683 platforms/redhat/bacula.spec \
41687 ping -c 1 $hostname 2>&1 1>/dev/null
41688 if test ! $? = 0; then
41689 hostname="localhost"
41691 DISTVER=`cat /etc/mandrake-release | grep release |\
41693 TAPEDRIVE="/dev/nst0"
41694 PSCMD="ps -e -o pid,command"
41695 PFILES="${PFILES} \
41696 platforms/mandrake/Makefile \
41697 platforms/mandrake/bacula-fd \
41698 platforms/mandrake/bacula-sd \
41699 platforms/mandrake/bacula-dir \
41700 platforms/mandrake/bacula.spec \
41704 ping -c 1 $hostname 2>&1 1>/dev/null
41705 if test ! $? = 0; then
41706 hostname="localhost"
41708 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41709 TAPEDRIVE="/dev/nst0"
41710 PSCMD="ps -e -o pid,command"
41711 PFILES="${PFILES} \
41712 platforms/gentoo/Makefile \
41713 platforms/gentoo/bacula-init \
41714 platforms/gentoo/bacula-fd \
41715 platforms/gentoo/bacula-sd \
41716 platforms/gentoo/bacula-dir"
41719 ping -c 1 $hostname 2>&1 1>/dev/null
41720 if test ! $? = 0; then
41721 hostname="localhost"
41723 DISTVER=`cat /etc/slackware-version`
41724 TAPEDRIVE="/dev/nst0"
41725 PSCMD="ps -e -o pid,command"
41726 PFILES="${PFILES} \
41727 platforms/slackware/Makefile \
41728 platforms/slackware/rc.bacula-fd \
41729 platforms/slackware/rc.bacula-sd \
41730 platforms/slackware/rc.bacula-dir\
41731 platforms/slackware/functions.bacula"
41735 TAPEDRIVE="/dev/rmt/0cbn"
41736 PSCMD="ps -e -o pid,comm"
41737 PFILES="${PFILES} \
41738 platforms/solaris/Makefile \
41739 platforms/solaris/bacula-fd \
41740 platforms/solaris/bacula-sd \
41741 platforms/solaris/bacula-dir"
41742 if test x$DISTVER = x5.6 ; then
41743 cat >>confdefs.h <<\_ACEOF
41744 #define HAVE_OLD_SOCKOPT 1
41748 LIBS="$LIBS -lresolv"
41751 ping -c 1 $hostname 2>&1 1>/dev/null
41752 if test ! $? = 0; then
41753 hostname="localhost"
41755 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41757 TAPEDRIVE="/dev/nst0"
41758 PSCMD="ps -e -o pid,command"
41759 PFILES="${PFILES} \
41760 platforms/suse/Makefile \
41761 platforms/suse/bacula-fd \
41762 platforms/suse/bacula-sd \
41763 platforms/suse/bacula-dir \
41764 platforms/suse/bacula \
41765 platforms/suse/bacula.spec"
41768 ping -c 1 $hostname 2>&1 1>/dev/null
41769 if test ! $? = 0; then
41770 hostname="localhost"
41774 TAPEDRIVE="/dev/nst0"
41775 PSCMD="ps -e -o pid,command"
41776 PFILES="${PFILES} \
41777 platforms/suse/Makefile \
41778 platforms/suse/bacula-fd \
41779 platforms/suse/bacula-sd \
41780 platforms/suse/bacula-dir"
41784 TAPEDRIVE="/dev/nst0"
41787 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41793 LIBS="$PTHREAD_LIB $LIBS"
41795 cat >>confdefs.h <<_ACEOF
41799 cat >>confdefs.h <<_ACEOF
41810 MCOMMON=./autoconf/Make.common
41813 if test "x${subsysdir}" = "x${sbindir}" ; then
41816 echo "You have set both --sbindir and --with-subsys-dir"
41817 echo " equal to: ${subsysdir} "
41818 echo "This is not permitted. Please reconfigure."
41820 echo "Aborting configuration ..."
41826 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.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_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_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/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 po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
41828 ac_config_commands="$ac_config_commands default"
41830 cat >confcache <<\_ACEOF
41831 # This file is a shell script that caches the results of configure
41832 # tests run on this system so they can be shared between configure
41833 # scripts and configure runs, see configure's option --config-cache.
41834 # It is not useful on other systems. If it contains results you don't
41835 # want to keep, you may remove or edit it.
41837 # config.status only pays attention to the cache file if you give it
41838 # the --recheck option to rerun configure.
41840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41842 # following values.
41846 # The following way of writing the cache mishandles newlines in values,
41847 # but we know of no workaround that is simple, portable, and efficient.
41848 # So, we kill variables containing newlines.
41849 # Ultrix sh set writes to stderr and can't be redirected directly,
41850 # and sets the high bit in the cache file unless we assign to the vars.
41852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41853 eval ac_val=\$$ac_var
41857 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41861 _ | IFS | as_nl) ;; #(
41862 *) $as_unset $ac_var ;;
41868 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41869 *${as_nl}ac_space=\ *)
41870 # `set' does not quote correctly, so add quotes (double-quote
41871 # substitution turns \\\\ into \\, and sed turns \\ into \).
41874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41877 # `set' quotes correctly as required by POSIX, so do not add quotes.
41878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41889 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41891 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41892 if test -w "$cache_file"; then
41893 test "x$cache_file" != "x/dev/null" &&
41894 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41895 echo "$as_me: updating cache $cache_file" >&6;}
41896 cat confcache >$cache_file
41898 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41899 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41905 # Let make expand exec_prefix.
41906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41908 DEFS=-DHAVE_CONFIG_H
41912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41913 # 1. Remove the extension, and $U if already installed.
41914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41915 ac_i=`echo "$ac_i" | sed "$ac_script"`
41916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41917 # will be set to the directory where LIBOBJS objects are built.
41918 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41919 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41921 LIBOBJS=$ac_libobjs
41923 LTLIBOBJS=$ac_ltlibobjs
41927 : ${CONFIG_STATUS=./config.status}
41928 ac_clean_files_save=$ac_clean_files
41929 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41930 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41931 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41932 cat >$CONFIG_STATUS <<_ACEOF
41934 # Generated by $as_me.
41935 # Run this file to recreate the current configuration.
41936 # Compiler output produced by configure, useful for debugging
41937 # configure, is in config.log if it exists.
41940 ac_cs_recheck=false
41942 SHELL=\${CONFIG_SHELL-$SHELL}
41945 cat >>$CONFIG_STATUS <<\_ACEOF
41946 ## --------------------- ##
41947 ## M4sh Initialization. ##
41948 ## --------------------- ##
41950 # Be more Bourne compatible
41951 DUALCASE=1; export DUALCASE # for MKS sh
41952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41955 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41956 # is contrary to our usage. Disable this feature.
41957 alias -g '${1+"$@"}'='"$@"'
41958 setopt NO_GLOB_SUBST
41960 case `(set -o) 2>/dev/null` in
41961 *posix*) set -o posix ;;
41970 # Avoid depending upon Character Ranges.
41971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41974 as_cr_digits='0123456789'
41975 as_cr_alnum=$as_cr_Letters$as_cr_digits
41977 # The user is always right.
41978 if test "${PATH_SEPARATOR+set}" != set; then
41979 echo "#! /bin/sh" >conf$$.sh
41980 echo "exit 0" >>conf$$.sh
41982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41990 # Support unset when possible.
41991 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41999 # We need space, tab and new line, in precisely that order. Quoting is
42000 # there to prevent editors from complaining about space-tab.
42001 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42002 # splitting by setting IFS to empty value.)
42007 # Find who we are. Look in the path if we contain no directory separator.
42009 *[\\/]* ) as_myself=$0 ;;
42010 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42011 for as_dir in $PATH
42014 test -z "$as_dir" && as_dir=.
42015 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42021 # We did not find ourselves, most probably we were run as `sh COMMAND'
42022 # in which case we are not to be found in the path.
42023 if test "x$as_myself" = x; then
42026 if test ! -f "$as_myself"; then
42027 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42028 { (exit 1); exit 1; }
42031 # Work around bugs in pre-3.0 UWIN ksh.
42032 for as_var in ENV MAIL MAILPATH
42033 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42041 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42042 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42043 LC_TELEPHONE LC_TIME
42045 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42046 eval $as_var=C; export $as_var
42048 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42052 # Required to use basename.
42053 if expr a : '\(a\)' >/dev/null 2>&1 &&
42054 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42060 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42061 as_basename=basename
42067 # Name of the executable.
42068 as_me=`$as_basename -- "$0" ||
42069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42070 X"$0" : 'X\(//\)$' \| \
42071 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42073 sed '/^.*\/\([^/][^/]*\)\/*$/{
42092 as_lineno_1=$LINENO
42093 as_lineno_2=$LINENO
42094 test "x$as_lineno_1" != "x$as_lineno_2" &&
42095 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42097 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42098 # uniformly replaced by the line number. The first 'sed' inserts a
42099 # line-number line after each line using $LINENO; the second 'sed'
42100 # does the real work. The second script uses 'N' to pair each
42101 # line-number line with the line containing $LINENO, and appends
42102 # trailing '-' during substitution so that $LINENO is not a special
42103 # case at line end.
42104 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42105 # scripts with optimization help from Paolo Bonzini. Blame Lee
42106 # E. McMahon (1931-1989) for sed's syntax. :-)
42118 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42121 ' >$as_me.lineno &&
42122 chmod +x "$as_me.lineno" ||
42123 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42124 { (exit 1); exit 1; }; }
42126 # Don't try to exec as it changes $[0], causing all sort of problems
42127 # (the dirname of $[0] is not the place where we might find the
42128 # original and so on. Autoconf is especially sensitive to this).
42129 . "./$as_me.lineno"
42130 # Exit status is that of the last command.
42135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42141 ECHO_C= ECHO_N= ECHO_T=
42142 case `echo -n x` in
42144 case `echo 'x\c'` in
42145 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42152 if expr a : '\(a\)' >/dev/null 2>&1 &&
42153 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42159 rm -f conf$$ conf$$.exe conf$$.file
42160 if test -d conf$$.dir; then
42161 rm -f conf$$.dir/conf$$.file
42167 if ln -s conf$$.file conf$$ 2>/dev/null; then
42169 # ... but there are two gotchas:
42170 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42171 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42172 # In both cases, we have to default to `cp -p'.
42173 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42175 elif ln conf$$.file conf$$ 2>/dev/null; then
42180 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42181 rmdir conf$$.dir 2>/dev/null
42183 if mkdir -p . 2>/dev/null; then
42186 test -d ./-p && rmdir ./-p
42190 if test -x / >/dev/null 2>&1; then
42191 as_test_x='test -x'
42193 if ls -dL / >/dev/null 2>&1; then
42200 if test -d "$1"; then
42206 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42207 ???[sx]*):;;*)false;;esac;fi
42211 as_executable_p=$as_test_x
42213 # Sed expression to map a string onto a valid CPP name.
42214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42216 # Sed expression to map a string onto a valid variable name.
42217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42222 # Save the log message, to keep $[0] and so on meaningful, and to
42223 # report actual input values of CONFIG_FILES etc. instead of their
42224 # values after options handling.
42226 This file was extended by $as_me, which was
42227 generated by GNU Autoconf 2.61. Invocation command line was
42229 CONFIG_FILES = $CONFIG_FILES
42230 CONFIG_HEADERS = $CONFIG_HEADERS
42231 CONFIG_LINKS = $CONFIG_LINKS
42232 CONFIG_COMMANDS = $CONFIG_COMMANDS
42235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42240 cat >>$CONFIG_STATUS <<_ACEOF
42241 # Files that config.status was made for.
42242 config_files="$ac_config_files"
42243 config_headers="$ac_config_headers"
42244 config_commands="$ac_config_commands"
42248 cat >>$CONFIG_STATUS <<\_ACEOF
42250 \`$as_me' instantiates files from templates according to the
42251 current configuration.
42253 Usage: $0 [OPTIONS] [FILE]...
42255 -h, --help print this help, then exit
42256 -V, --version print version number and configuration settings, then exit
42257 -q, --quiet do not print progress messages
42258 -d, --debug don't remove temporary files
42259 --recheck update $as_me by reconfiguring in the same conditions
42260 --file=FILE[:TEMPLATE]
42261 instantiate the configuration file FILE
42262 --header=FILE[:TEMPLATE]
42263 instantiate the configuration header FILE
42265 Configuration files:
42268 Configuration headers:
42271 Configuration commands:
42274 Report bugs to <bug-autoconf@gnu.org>."
42277 cat >>$CONFIG_STATUS <<_ACEOF
42280 configured by $0, generated by GNU Autoconf 2.61,
42281 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42283 Copyright (C) 2006 Free Software Foundation, Inc.
42284 This config.status script is free software; the Free Software Foundation
42285 gives unlimited permission to copy, distribute and modify it."
42292 cat >>$CONFIG_STATUS <<\_ACEOF
42293 # If no file are specified by the user, then we need to provide default
42294 # value. By we need to know if files were specified by the user.
42300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42312 # Handling of the options.
42313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42316 echo "$ac_cs_version"; exit ;;
42317 --debug | --debu | --deb | --de | --d | -d )
42319 --file | --fil | --fi | --f )
42321 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42322 ac_need_defaults=false;;
42323 --header | --heade | --head | --hea )
42325 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42326 ac_need_defaults=false;;
42328 # Conflict between --help and --header
42329 { echo "$as_me: error: ambiguous option: $1
42330 Try \`$0 --help' for more information." >&2
42331 { (exit 1); exit 1; }; };;
42332 --help | --hel | -h )
42333 echo "$ac_cs_usage"; exit ;;
42334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42335 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42338 # This is an error.
42339 -*) { echo "$as_me: error: unrecognized option: $1
42340 Try \`$0 --help' for more information." >&2
42341 { (exit 1); exit 1; }; } ;;
42343 *) ac_config_targets="$ac_config_targets $1"
42344 ac_need_defaults=false ;;
42350 ac_configure_extra_args=
42352 if $ac_cs_silent; then
42354 ac_configure_extra_args="$ac_configure_extra_args --silent"
42358 cat >>$CONFIG_STATUS <<_ACEOF
42359 if \$ac_cs_recheck; then
42360 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42361 CONFIG_SHELL=$SHELL
42362 export CONFIG_SHELL
42363 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42367 cat >>$CONFIG_STATUS <<\_ACEOF
42371 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42372 ## Running $as_me. ##
42378 cat >>$CONFIG_STATUS <<_ACEOF
42384 # The HP-UX ksh and POSIX shell print the target directory to stdout
42385 # if CDPATH is set.
42386 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42388 sed_quote_subst='$sed_quote_subst'
42389 double_quote_subst='$double_quote_subst'
42390 delay_variable_subst='$delay_variable_subst'
42391 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
42392 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
42393 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
42394 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
42395 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
42396 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
42397 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
42398 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
42399 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
42400 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
42401 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
42402 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
42403 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
42404 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
42405 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
42406 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
42407 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
42408 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
42409 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
42410 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
42411 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
42412 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
42413 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
42414 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
42415 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
42416 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
42417 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
42418 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42419 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
42420 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
42421 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
42422 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
42423 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42424 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
42425 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
42426 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42427 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42428 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42429 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
42430 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42431 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
42432 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
42433 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
42434 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
42435 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"`'
42436 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"`'
42437 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
42438 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
42439 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
42440 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
42441 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
42442 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
42443 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
42444 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
42445 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
42446 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
42447 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
42448 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
42449 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
42450 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
42451 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
42452 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
42453 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42454 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42455 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
42456 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
42457 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42458 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42459 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
42460 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42461 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42462 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42463 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42464 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42465 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42466 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
42467 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42468 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42469 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42470 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
42471 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
42472 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
42473 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
42474 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
42475 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42476 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
42477 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
42478 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
42479 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
42480 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
42481 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42482 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42483 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42484 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42485 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
42486 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
42487 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
42488 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
42489 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
42490 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42491 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42492 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
42493 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42494 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
42495 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42496 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42497 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42498 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42499 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
42500 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42501 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42502 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42503 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42504 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42505 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42506 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42507 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42508 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42509 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42510 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42511 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42512 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42513 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42514 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42515 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42516 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42517 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42518 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42519 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42520 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42521 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42522 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42523 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42524 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42525 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42526 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42527 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42528 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42529 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42530 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42531 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42532 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42533 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42534 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42535 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42536 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42537 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42538 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42539 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42540 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42541 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42542 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42543 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42544 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42545 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42546 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42547 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42548 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42549 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42550 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42551 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42552 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42553 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42554 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42555 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42556 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42557 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42558 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42559 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42560 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42561 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42564 LTCFLAGS='$LTCFLAGS'
42565 compiler='$compiler_DEFAULT'
42567 # Quote evaled strings.
42579 deplibs_check_method \
42588 lt_cv_sys_global_symbol_pipe \
42589 lt_cv_sys_global_symbol_to_cdecl \
42590 lt_cv_sys_global_symbol_to_c_name_address \
42591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42594 lt_prog_compiler_no_builtin_flag \
42595 lt_prog_compiler_wl \
42596 lt_prog_compiler_pic \
42597 lt_prog_compiler_static \
42598 lt_cv_prog_compiler_c_o \
42606 export_dynamic_flag_spec \
42607 whole_archive_flag_spec \
42608 compiler_needs_object \
42610 allow_undefined_flag \
42611 no_undefined_flag \
42612 hardcode_libdir_flag_spec \
42613 hardcode_libdir_flag_spec_ld \
42614 hardcode_libdir_separator \
42619 variables_saved_for_relink \
42621 library_names_spec \
42626 compiler_lib_search_dirs \
42631 compiler_lib_search_path \
42634 lt_prog_compiler_no_builtin_flag_CXX \
42635 lt_prog_compiler_wl_CXX \
42636 lt_prog_compiler_pic_CXX \
42637 lt_prog_compiler_static_CXX \
42638 lt_cv_prog_compiler_c_o_CXX \
42639 export_dynamic_flag_spec_CXX \
42640 whole_archive_flag_spec_CXX \
42641 compiler_needs_object_CXX \
42643 allow_undefined_flag_CXX \
42644 no_undefined_flag_CXX \
42645 hardcode_libdir_flag_spec_CXX \
42646 hardcode_libdir_flag_spec_ld_CXX \
42647 hardcode_libdir_separator_CXX \
42648 fix_srcfile_path_CXX \
42649 exclude_expsyms_CXX \
42650 include_expsyms_CXX \
42651 file_list_spec_CXX \
42652 compiler_lib_search_dirs_CXX \
42653 predep_objects_CXX \
42654 postdep_objects_CXX \
42657 compiler_lib_search_path_CXX; do
42658 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42659 *[\\\\\\\`\\"\\\$]*)
42660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42668 # Double-quote double-evaled strings.
42669 for var in reload_cmds \
42670 old_postinstall_cmds \
42671 old_postuninstall_cmds \
42673 extract_expsyms_cmds \
42674 old_archive_from_new_cmds \
42675 old_archive_from_expsyms_cmds \
42677 archive_expsym_cmds \
42679 module_expsym_cmds \
42680 export_symbols_cmds \
42683 postuninstall_cmds \
42685 sys_lib_search_path_spec \
42686 sys_lib_dlsearch_path_spec \
42687 old_archive_cmds_CXX \
42688 old_archive_from_new_cmds_CXX \
42689 old_archive_from_expsyms_cmds_CXX \
42691 archive_expsym_cmds_CXX \
42693 module_expsym_cmds_CXX \
42694 export_symbols_cmds_CXX \
42695 prelink_cmds_CXX; do
42696 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42697 *[\\\\\\\`\\"\\\$]*)
42698 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42701 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42706 # Fix-up fallback echo if it was mangled by the above quoting rules.
42708 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42712 ac_aux_dir='$ac_aux_dir'
42713 xsi_shell='$xsi_shell'
42714 lt_shell_append='$lt_shell_append'
42716 # See if we are running on zsh, and set the options which allow our
42717 # commands through without removal of \ escapes INIT.
42718 if test -n "\${ZSH_VERSION+set}" ; then
42719 setopt NO_GLOB_SUBST
42725 TIMESTAMP='$TIMESTAMP'
42733 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42734 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42736 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42737 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42738 LINGUAS="${LINGUAS-%UNSET%}"
42743 cat >>$CONFIG_STATUS <<\_ACEOF
42745 # Handling of arguments.
42746 for ac_config_target in $ac_config_targets
42748 case $ac_config_target in
42749 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42750 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42751 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42752 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42753 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42754 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42755 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42756 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42757 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42758 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42759 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42760 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42761 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42762 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42763 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42764 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42765 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42766 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42767 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42768 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42769 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42770 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42771 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42772 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42773 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42774 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42775 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42776 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42777 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42778 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42779 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42780 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42781 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42782 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42783 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42784 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42785 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42786 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42787 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42788 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42789 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42790 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42791 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42792 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42793 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42794 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42795 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42796 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42797 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42798 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42799 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42800 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42801 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42802 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42803 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42804 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42805 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42806 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42807 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42808 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42809 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42810 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42811 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42812 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42813 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42814 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42815 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42816 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42817 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42818 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42819 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42820 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42821 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42822 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42823 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42824 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42825 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42826 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42827 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42828 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42829 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42830 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42831 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42832 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42833 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42834 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42835 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42836 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42837 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42838 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42839 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42840 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42841 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42842 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42843 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42844 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42845 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42846 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42847 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42848 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42849 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42850 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42851 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42852 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42853 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42854 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42855 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42856 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42857 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42858 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42859 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42860 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42861 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42862 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42863 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42865 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42866 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42867 { (exit 1); exit 1; }; };;
42872 # If the user did not use the arguments to specify the items to instantiate,
42873 # then the envvar interface is used. Set only those that are not.
42874 # We use the long form for the default assignment because of an extremely
42875 # bizarre bug on SunOS 4.1.3.
42876 if $ac_need_defaults; then
42877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42878 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42882 # Have a temporary directory for convenience. Make it in the build tree
42883 # simply because there is no reason against having it here, and in addition,
42884 # creating and moving files from /tmp can sometimes cause problems.
42885 # Hook for its removal unless debugging.
42886 # Note that there is a small window in which the directory will not be cleaned:
42887 # after its creation but before its name has been assigned to `$tmp'.
42891 trap 'exit_status=$?
42892 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42894 trap '{ (exit 1); exit 1; }' 1 2 13 15
42896 # Create a (secure) tmp directory for tmp files.
42899 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42900 test -n "$tmp" && test -d "$tmp"
42903 tmp=./conf$$-$RANDOM
42904 (umask 077 && mkdir "$tmp")
42907 echo "$me: cannot create a temporary directory in ." >&2
42908 { (exit 1); exit 1; }
42912 # Set up the sed scripts for CONFIG_FILES section.
42915 # No need to generate the scripts if there are no CONFIG_FILES.
42916 # This happens for instance when ./config.status config.h
42917 if test -n "$CONFIG_FILES"; then
42921 # Create sed commands to just substitute file output variables.
42923 # Remaining file output variables are in a fragment that also has non-file
42929 for ac_last_try in false false false false false :; do
42930 cat >conf$$subs.sed <<_ACEOF
42931 SHELL!$SHELL$ac_delim
42932 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42933 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42934 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42935 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42936 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42937 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42938 exec_prefix!$exec_prefix$ac_delim
42939 prefix!$prefix$ac_delim
42940 program_transform_name!$program_transform_name$ac_delim
42941 bindir!$bindir$ac_delim
42942 sbindir!$sbindir$ac_delim
42943 libexecdir!$libexecdir$ac_delim
42944 datarootdir!$datarootdir$ac_delim
42945 datadir!$datadir$ac_delim
42946 sysconfdir!$sysconfdir$ac_delim
42947 sharedstatedir!$sharedstatedir$ac_delim
42948 localstatedir!$localstatedir$ac_delim
42949 includedir!$includedir$ac_delim
42950 oldincludedir!$oldincludedir$ac_delim
42951 docdir!$docdir$ac_delim
42952 infodir!$infodir$ac_delim
42953 htmldir!$htmldir$ac_delim
42954 dvidir!$dvidir$ac_delim
42955 pdfdir!$pdfdir$ac_delim
42956 psdir!$psdir$ac_delim
42957 libdir!$libdir$ac_delim
42958 localedir!$localedir$ac_delim
42959 mandir!$mandir$ac_delim
42960 DEFS!$DEFS$ac_delim
42961 ECHO_C!$ECHO_C$ac_delim
42962 ECHO_N!$ECHO_N$ac_delim
42963 ECHO_T!$ECHO_T$ac_delim
42964 LIBS!$LIBS$ac_delim
42965 build_alias!$build_alias$ac_delim
42966 host_alias!$host_alias$ac_delim
42967 target_alias!$target_alias$ac_delim
42968 BUILD_DIR!$BUILD_DIR$ac_delim
42969 TOP_DIR!$TOP_DIR$ac_delim
42970 TRUEPRG!$TRUEPRG$ac_delim
42971 FALSEPRG!$FALSEPRG$ac_delim
42972 VERSION!$VERSION$ac_delim
42973 DATE!$DATE$ac_delim
42974 LSMDATE!$LSMDATE$ac_delim
42975 BACULA!$BACULA$ac_delim
42976 post_host!$post_host$ac_delim
42978 CFLAGS!$CFLAGS$ac_delim
42979 LDFLAGS!$LDFLAGS$ac_delim
42980 CPPFLAGS!$CPPFLAGS$ac_delim
42981 ac_ct_CC!$ac_ct_CC$ac_delim
42982 EXEEXT!$EXEEXT$ac_delim
42983 OBJEXT!$OBJEXT$ac_delim
42985 CXXFLAGS!$CXXFLAGS$ac_delim
42986 ac_ct_CXX!$ac_ct_CXX$ac_delim
42988 GREP!$GREP$ac_delim
42989 EGREP!$EGREP$ac_delim
42990 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42991 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42992 INSTALL_DATA!$INSTALL_DATA$ac_delim
42994 REMOVE!$REMOVE$ac_delim
42997 ECHO!$ECHO$ac_delim
43001 OPENSSL!$OPENSSL$ac_delim
43004 MKISOFS!$MKISOFS$ac_delim
43005 PYTHON!$PYTHON$ac_delim
43006 GROWISOFS!$GROWISOFS$ac_delim
43007 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43008 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43009 PKGCONFIG!$PKGCONFIG$ac_delim
43010 QMAKE!$QMAKE$ac_delim
43011 QMAKEQT4!$QMAKEQT4$ac_delim
43012 WXCONFIG!$WXCONFIG$ac_delim
43013 WXFLAGS!$WXFLAGS$ac_delim
43014 CDRECORD!$CDRECORD$ac_delim
43015 PIDOF!$PIDOF$ac_delim
43017 ARFLAGS!$ARFLAGS$ac_delim
43018 MAKE_SHELL!$MAKE_SHELL$ac_delim
43019 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43020 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43021 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43022 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43023 LIBTOOL!$LIBTOOL$ac_delim
43024 build!$build$ac_delim
43027 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43029 elif $ac_last_try; then
43030 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43031 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43032 { (exit 1); exit 1; }; }
43034 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43038 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43039 if test -n "$ac_eof"; then
43040 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43041 ac_eof=`expr $ac_eof + 1`
43044 cat >>$CONFIG_STATUS <<_ACEOF
43045 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43047 /^[ ]*@MCOMMON@[ ]*$/{
43053 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43054 s/^/s,@/; s/!/@,|#_!!_#|/
43057 s/'"$ac_delim"'$/,g/; t
43059 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43060 ' >>$CONFIG_STATUS <conf$$subs.sed
43061 rm -f conf$$subs.sed
43062 cat >>$CONFIG_STATUS <<_ACEOF
43068 for ac_last_try in false false false false false :; do
43069 cat >conf$$subs.sed <<_ACEOF
43070 build_cpu!$build_cpu$ac_delim
43071 build_vendor!$build_vendor$ac_delim
43072 build_os!$build_os$ac_delim
43073 host!$host$ac_delim
43074 host_cpu!$host_cpu$ac_delim
43075 host_vendor!$host_vendor$ac_delim
43076 host_os!$host_os$ac_delim
43077 FGREP!$FGREP$ac_delim
43079 DUMPBIN!$DUMPBIN$ac_delim
43080 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43082 LN_S!$LN_S$ac_delim
43083 OBJDUMP!$OBJDUMP$ac_delim
43084 STRIP!$STRIP$ac_delim
43085 RANLIB!$RANLIB$ac_delim
43086 lt_ECHO!$lt_ECHO$ac_delim
43087 DSYMUTIL!$DSYMUTIL$ac_delim
43088 NMEDIT!$NMEDIT$ac_delim
43089 LIPO!$LIPO$ac_delim
43090 OTOOL!$OTOOL$ac_delim
43091 OTOOL64!$OTOOL64$ac_delim
43092 CXXCPP!$CXXCPP$ac_delim
43093 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
43094 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
43095 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
43096 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
43097 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
43098 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
43099 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
43100 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
43101 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
43102 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
43103 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
43104 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
43105 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
43106 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
43107 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
43108 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
43109 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
43110 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
43111 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
43112 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
43113 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
43114 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
43115 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
43116 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
43117 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
43118 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
43119 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
43120 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
43121 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
43122 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
43123 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
43124 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
43125 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
43126 SET_MAKE!$SET_MAKE$ac_delim
43127 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
43128 USE_NLS!$USE_NLS$ac_delim
43129 MSGFMT!$MSGFMT$ac_delim
43130 GMSGFMT!$GMSGFMT$ac_delim
43131 XGETTEXT!$XGETTEXT$ac_delim
43132 MSGMERGE!$MSGMERGE$ac_delim
43133 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43134 LIBICONV!$LIBICONV$ac_delim
43135 LTLIBICONV!$LTLIBICONV$ac_delim
43136 INTLLIBS!$INTLLIBS$ac_delim
43137 LIBINTL!$LIBINTL$ac_delim
43138 LTLIBINTL!$LTLIBINTL$ac_delim
43139 POSUB!$POSUB$ac_delim
43140 GLIBC2!$GLIBC2$ac_delim
43141 ALLOCA!$ALLOCA$ac_delim
43142 GLIBC21!$GLIBC21$ac_delim
43143 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
43144 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
43145 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
43146 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
43147 INTLBISON!$INTLBISON$ac_delim
43148 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
43149 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
43150 CATOBJEXT!$CATOBJEXT$ac_delim
43151 DATADIRNAME!$DATADIRNAME$ac_delim
43152 INSTOBJEXT!$INSTOBJEXT$ac_delim
43153 GENCAT!$GENCAT$ac_delim
43154 INTLOBJS!$INTLOBJS$ac_delim
43155 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
43156 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
43157 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
43158 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
43159 GNOME_LIBS!$GNOME_LIBS$ac_delim
43160 GNOME_DIR!$GNOME_DIR$ac_delim
43161 BAT_DIR!$BAT_DIR$ac_delim
43162 QWT_INC!$QWT_INC$ac_delim
43163 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
43164 QWT_LIB!$QWT_LIB$ac_delim
43166 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
43169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43171 elif $ac_last_try; then
43172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43174 { (exit 1); exit 1; }; }
43176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43180 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43181 if test -n "$ac_eof"; then
43182 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43183 ac_eof=`expr $ac_eof + 1`
43186 cat >>$CONFIG_STATUS <<_ACEOF
43187 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43192 s/^/s,@/; s/!/@,|#_!!_#|/
43195 s/'"$ac_delim"'$/,g/; t
43197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43198 ' >>$CONFIG_STATUS <conf$$subs.sed
43199 rm -f conf$$subs.sed
43200 cat >>$CONFIG_STATUS <<_ACEOF
43206 for ac_last_try in false false false false false :; do
43207 cat >conf$$subs.sed <<_ACEOF
43208 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
43209 WX_DIR!$WX_DIR$ac_delim
43210 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
43211 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
43212 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
43213 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
43214 STATIC_FD!$STATIC_FD$ac_delim
43215 STATIC_SD!$STATIC_SD$ac_delim
43216 STATIC_DIR!$STATIC_DIR$ac_delim
43217 STATIC_CONS!$STATIC_CONS$ac_delim
43218 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
43219 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
43220 ALL_DIRS!$ALL_DIRS$ac_delim
43221 DIRD_DIR!$DIRD_DIR$ac_delim
43222 DIR_TOOLS!$DIR_TOOLS$ac_delim
43223 STORED_DIR!$STORED_DIR$ac_delim
43224 CONS_INC!$CONS_INC$ac_delim
43225 CONS_OBJ!$CONS_OBJ$ac_delim
43226 CONS_SRC!$CONS_SRC$ac_delim
43227 CONS_LIBS!$CONS_LIBS$ac_delim
43228 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
43229 READLINE_SRC!$READLINE_SRC$ac_delim
43230 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
43231 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
43232 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
43233 OPENSSL_INC!$OPENSSL_INC$ac_delim
43234 working_dir!$working_dir$ac_delim
43235 archivedir!$archivedir$ac_delim
43236 scriptdir!$scriptdir$ac_delim
43237 plugindir!$plugindir$ac_delim
43238 dump_email!$dump_email$ac_delim
43239 job_email!$job_email$ac_delim
43240 smtp_host!$smtp_host$ac_delim
43241 piddir!$piddir$ac_delim
43242 subsysdir!$subsysdir$ac_delim
43243 baseport!$baseport$ac_delim
43244 dir_port!$dir_port$ac_delim
43245 fd_port!$fd_port$ac_delim
43246 sd_port!$sd_port$ac_delim
43247 dir_password!$dir_password$ac_delim
43248 fd_password!$fd_password$ac_delim
43249 sd_password!$sd_password$ac_delim
43250 mon_dir_password!$mon_dir_password$ac_delim
43251 mon_fd_password!$mon_fd_password$ac_delim
43252 mon_sd_password!$mon_sd_password$ac_delim
43253 db_name!$db_name$ac_delim
43254 db_user!$db_user$ac_delim
43255 db_password!$db_password$ac_delim
43256 db_port!$db_port$ac_delim
43257 dir_user!$dir_user$ac_delim
43258 dir_group!$dir_group$ac_delim
43259 sd_user!$sd_user$ac_delim
43260 sd_group!$sd_group$ac_delim
43261 fd_user!$fd_user$ac_delim
43262 fd_group!$fd_group$ac_delim
43263 SBINPERM!$SBINPERM$ac_delim
43264 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
43265 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
43266 SQL_BINDIR!$SQL_BINDIR$ac_delim
43267 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
43268 uncomment_dbi!$uncomment_dbi$ac_delim
43269 DB_PROG!$DB_PROG$ac_delim
43270 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
43271 cats!$cats$ac_delim
43272 DB_TYPE!$DB_TYPE$ac_delim
43273 GETCONF!$GETCONF$ac_delim
43274 XMKMF!$XMKMF$ac_delim
43275 X_CFLAGS!$X_CFLAGS$ac_delim
43276 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43277 X_LIBS!$X_LIBS$ac_delim
43278 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43279 LIBOBJS!$LIBOBJS$ac_delim
43280 FDLIBS!$FDLIBS$ac_delim
43281 DEBUG!$DEBUG$ac_delim
43282 DINCLUDE!$DINCLUDE$ac_delim
43283 DLIB!$DLIB$ac_delim
43284 DB_LIBS!$DB_LIBS$ac_delim
43285 WCFLAGS!$WCFLAGS$ac_delim
43286 WLDFLAGS!$WLDFLAGS$ac_delim
43287 WRAPLIBS!$WRAPLIBS$ac_delim
43288 OBJLIST!$OBJLIST$ac_delim
43289 hostname!$hostname$ac_delim
43290 TAPEDRIVE!$TAPEDRIVE$ac_delim
43291 PSCMD!$PSCMD$ac_delim
43292 WIN32!$WIN32$ac_delim
43293 MACOSX!$MACOSX$ac_delim
43294 DISTNAME!$DISTNAME$ac_delim
43295 DISTVER!$DISTVER$ac_delim
43296 LTLIBOBJS!$LTLIBOBJS$ac_delim
43299 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
43301 elif $ac_last_try; then
43302 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43303 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43304 { (exit 1); exit 1; }; }
43306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43310 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43311 if test -n "$ac_eof"; then
43312 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43313 ac_eof=`expr $ac_eof + 1`
43316 cat >>$CONFIG_STATUS <<_ACEOF
43317 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43321 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43322 s/^/s,@/; s/!/@,|#_!!_#|/
43325 s/'"$ac_delim"'$/,g/; t
43327 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43328 ' >>$CONFIG_STATUS <conf$$subs.sed
43329 rm -f conf$$subs.sed
43330 cat >>$CONFIG_STATUS <<_ACEOF
43337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43339 # trailing colons and then remove the whole line if VPATH becomes empty
43340 # (actually we leave an empty line to preserve line numbers).
43341 if test "x$srcdir" = x.; then
43342 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43343 s/:*\$(srcdir):*/:/
43344 s/:*\${srcdir}:*/:/
43346 s/^\([^=]*=[ ]*\):*/\1/
43352 cat >>$CONFIG_STATUS <<\_ACEOF
43353 fi # test -n "$CONFIG_FILES"
43356 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
43359 :[FHLC]) ac_mode=$ac_tag; continue;;
43361 case $ac_mode$ac_tag in
43363 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43364 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43365 { (exit 1); exit 1; }; };;
43366 :[FH]-) ac_tag=-:-;;
43367 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43384 -) ac_f="$tmp/stdin";;
43385 *) # Look for the file first in the build tree, then in the source tree
43386 # (if the path is not absolute). The absolute path cannot be DOS-style,
43387 # because $ac_f cannot contain `:'.
43391 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43393 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43394 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43395 { (exit 1); exit 1; }; };;
43397 ac_file_inputs="$ac_file_inputs $ac_f"
43400 # Let's still pretend it is `configure' which instantiates (i.e., don't
43401 # use $as_me), people would be surprised to read:
43402 # /* config.h. Generated by config.status. */
43403 configure_input="Generated from "`IFS=:
43404 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43405 if test x"$ac_file" != x-; then
43406 configure_input="$ac_file. $configure_input"
43407 { echo "$as_me:$LINENO: creating $ac_file" >&5
43408 echo "$as_me: creating $ac_file" >&6;}
43412 *:-:* | *:-) cat >"$tmp/stdin";;
43417 ac_dir=`$as_dirname -- "$ac_file" ||
43418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43419 X"$ac_file" : 'X\(//\)[^/]' \| \
43420 X"$ac_file" : 'X\(//\)$' \| \
43421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43427 /^X\(\/\/\)[^/].*/{
43442 -*) as_dir=./$as_dir;;
43444 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43448 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43449 *) as_qdir=$as_dir;;
43451 as_dirs="'$as_qdir' $as_dirs"
43452 as_dir=`$as_dirname -- "$as_dir" ||
43453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43454 X"$as_dir" : 'X\(//\)[^/]' \| \
43455 X"$as_dir" : 'X\(//\)$' \| \
43456 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43462 /^X\(\/\/\)[^/].*/{
43475 test -d "$as_dir" && break
43477 test -z "$as_dirs" || eval "mkdir $as_dirs"
43478 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43479 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43480 { (exit 1); exit 1; }; }; }
43484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43487 # A ".." for each directory in $ac_dir_suffix.
43488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43489 case $ac_top_builddir_sub in
43490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43494 ac_abs_top_builddir=$ac_pwd
43495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43496 # for backward compatibility:
43497 ac_top_builddir=$ac_top_build_prefix
43500 .) # We are building in place.
43502 ac_top_srcdir=$ac_top_builddir_sub
43503 ac_abs_top_srcdir=$ac_pwd ;;
43504 [\\/]* | ?:[\\/]* ) # Absolute name.
43505 ac_srcdir=$srcdir$ac_dir_suffix;
43506 ac_top_srcdir=$srcdir
43507 ac_abs_top_srcdir=$srcdir ;;
43508 *) # Relative name.
43509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43510 ac_top_srcdir=$ac_top_build_prefix$srcdir
43511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43528 cat >>$CONFIG_STATUS <<\_ACEOF
43529 # If the template does not know about datarootdir, expand it.
43530 # FIXME: This hack should be removed a few years after 2.60.
43531 ac_datarootdir_hack=; ac_datarootdir_seen=
43533 case `sed -n '/datarootdir/ {
43542 ' $ac_file_inputs` in
43543 *datarootdir*) ac_datarootdir_seen=yes;;
43544 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43545 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43546 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43548 cat >>$CONFIG_STATUS <<_ACEOF
43549 ac_datarootdir_hack='
43550 s&@datadir@&$datadir&g
43551 s&@docdir@&$docdir&g
43552 s&@infodir@&$infodir&g
43553 s&@localedir@&$localedir&g
43554 s&@mandir@&$mandir&g
43555 s&\\\${datarootdir}&$datarootdir&g' ;;
43559 # Neutralize VPATH when `$srcdir' = `.'.
43560 # Shell code in configure.ac might set extrasub.
43561 # FIXME: do we really want to maintain this feature?
43562 cat >>$CONFIG_STATUS <<_ACEOF
43566 cat >>$CONFIG_STATUS <<\_ACEOF
43568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43569 s&@configure_input@&$configure_input&;t t
43570 s&@top_builddir@&$ac_top_builddir_sub&;t t
43571 s&@srcdir@&$ac_srcdir&;t t
43572 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43573 s&@top_srcdir@&$ac_top_srcdir&;t t
43574 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43575 s&@builddir@&$ac_builddir&;t t
43576 s&@abs_builddir@&$ac_abs_builddir&;t t
43577 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43578 s&@INSTALL@&$ac_INSTALL&;t t
43579 $ac_datarootdir_hack
43580 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43583 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43585 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43586 which seems to be undefined. Please make sure it is defined." >&5
43587 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43588 which seems to be undefined. Please make sure it is defined." >&2;}
43592 -) cat "$tmp/out"; rm -f "$tmp/out";;
43593 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43602 # Transform confdefs.h into a sed script `conftest.defines', that
43603 # substitutes the proper values into config.h.in to produce config.h.
43604 rm -f conftest.defines conftest.tail
43605 # First, append a space to every undef/define line, to ease matching.
43606 echo 's/$/ /' >conftest.defines
43607 # Then, protect against being on the right side of a sed subst, or in
43608 # an unquoted here document, in config.status. If some macros were
43609 # called several times there might be several #defines for the same
43610 # symbol, which is useless. But do not sort them, since the last
43611 # AC_DEFINE must be honored.
43612 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43613 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43614 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43615 # PARAMS is the parameter list in the macro definition--in most cases, it's
43616 # just an empty string.
43617 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43618 ac_dB='\\)[ (].*,\\1define\\2'
43626 s/^[ ]*#[ ]*define[ ][ ]*//
43631 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43632 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43633 ' >>conftest.defines
43635 # Remove the space that was appended to ease matching.
43636 # Then replace #undef with comments. This is necessary, for
43637 # example, in the case of _POSIX_SOURCE, which is predefined and required
43638 # on some systems where configure will not decide to define it.
43639 # (The regexp can be short, since the line contains either #define or #undef.)
43641 s,^[ #]*u.*,/* & */,' >>conftest.defines
43643 # Break up conftest.defines:
43644 ac_max_sed_lines=50
43646 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43647 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43648 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43650 ac_in='$ac_file_inputs'
43651 ac_out='"$tmp/out1"'
43652 ac_nxt='"$tmp/out2"'
43656 # Write a here document:
43657 cat >>$CONFIG_STATUS <<_ACEOF
43658 # First, check the format of the line:
43659 cat >"\$tmp/defines.sed" <<\\CEOF
43660 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43661 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43665 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43667 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43668 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43669 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43670 grep . conftest.tail >/dev/null || break
43671 rm -f conftest.defines
43672 mv conftest.tail conftest.defines
43674 rm -f conftest.defines conftest.tail
43676 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43677 cat >>$CONFIG_STATUS <<\_ACEOF
43678 if test x"$ac_file" != x-; then
43679 echo "/* $configure_input */" >"$tmp/config.h"
43680 cat "$ac_result" >>"$tmp/config.h"
43681 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43682 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43683 echo "$as_me: $ac_file is unchanged" >&6;}
43686 mv "$tmp/config.h" $ac_file
43689 echo "/* $configure_input */"
43695 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43696 echo "$as_me: executing $ac_file commands" >&6;}
43701 case $ac_file$ac_mode in
43704 # See if we are running on zsh, and set the options which allow our
43705 # commands through without removal of \ escapes.
43706 if test -n "${ZSH_VERSION+set}" ; then
43707 setopt NO_GLOB_SUBST
43710 cfgfile="${ofile}T"
43711 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43714 cat <<_LT_EOF >> "$cfgfile"
43717 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43718 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43720 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43722 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43723 # 2006, 2007, 2008 Free Software Foundation, Inc.
43724 # Written by Gordon Matzigkeit, 1996
43726 # This file is part of GNU Libtool.
43728 # GNU Libtool is free software; you can redistribute it and/or
43729 # modify it under the terms of the GNU General Public License as
43730 # published by the Free Software Foundation; either version 2 of
43731 # the License, or (at your option) any later version.
43733 # As a special exception to the GNU General Public License,
43734 # if you distribute this file as part of a program or library that
43735 # is built using GNU Libtool, you may include this file under the
43736 # same distribution terms that you use for the rest of that program.
43738 # GNU Libtool is distributed in the hope that it will be useful,
43739 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43740 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43741 # GNU General Public License for more details.
43743 # You should have received a copy of the GNU General Public License
43744 # along with GNU Libtool; see the file COPYING. If not, a copy
43745 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43746 # obtained by writing to the Free Software Foundation, Inc.,
43747 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43750 # The names of the tagged configurations supported by this script.
43751 available_tags="CXX "
43753 # ### BEGIN LIBTOOL CONFIG
43755 # Which release of libtool.m4 was used?
43756 macro_version=$macro_version
43757 macro_revision=$macro_revision
43759 # Whether or not to build shared libraries.
43760 build_libtool_libs=$enable_shared
43762 # Whether or not to build static libraries.
43763 build_old_libs=$enable_static
43765 # What type of objects to build.
43768 # Whether or not to optimize for fast installation.
43769 fast_install=$enable_fast_install
43772 host_alias=$host_alias
43776 # The build system.
43777 build_alias=$build_alias
43781 # A sed program that does not truncate output.
43784 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43785 Xsed="\$SED -e 1s/^X//"
43787 # A grep program that handles long lines.
43793 # A literal string matcher.
43796 # A BSD- or MS-compatible name lister.
43799 # Whether we need soft or hard links.
43802 # What is the maximum length of a command?
43803 max_cmd_len=$max_cmd_len
43805 # Object file suffix (normally "o").
43808 # Executable file suffix (normally "").
43811 # whether the shell understands "unset".
43814 # turn spaces into newlines.
43817 # turn newlines into spaces.
43820 # How to create reloadable object files.
43821 reload_flag=$lt_reload_flag
43822 reload_cmds=$lt_reload_cmds
43824 # An object symbol dumper.
43825 OBJDUMP=$lt_OBJDUMP
43827 # Method to check whether dependent libraries are shared objects.
43828 deplibs_check_method=$lt_deplibs_check_method
43830 # Command to use when deplibs_check_method == "file_magic".
43831 file_magic_cmd=$lt_file_magic_cmd
43835 AR_FLAGS=$lt_AR_FLAGS
43837 # A symbol stripping program.
43840 # Commands used to install an old-style archive.
43842 old_postinstall_cmds=$lt_old_postinstall_cmds
43843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43848 # LTCC compiler flags.
43849 LTCFLAGS=$lt_CFLAGS
43851 # Take the output of nm and produce a listing of raw symbols and C names.
43852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43854 # Transform the output of nm in a proper C declaration.
43855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43857 # Transform the output of nm in a C name address pair.
43858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43860 # Transform the output of nm in a C name address pair when lib prefix is needed.
43861 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43863 # The name of the directory that contains temporary libtool files.
43866 # Shell to use when invoking shell scripts.
43869 # An echo program that does not interpret backslashes.
43872 # Used to examine libraries when file_magic_cmd begins with "file".
43873 MAGIC_CMD=$MAGIC_CMD
43875 # Must we lock files when doing compilation?
43876 need_locks=$lt_need_locks
43878 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43879 DSYMUTIL=$lt_DSYMUTIL
43881 # Tool to change global to local symbols on Mac OS X.
43884 # Tool to manipulate fat objects and archives on Mac OS X.
43887 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43890 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43891 OTOOL64=$lt_OTOOL64
43893 # Old archive suffix (normally "a").
43896 # Shared library suffix (normally ".so").
43897 shrext_cmds=$lt_shrext_cmds
43899 # The commands to extract the exported symbol list from a shared archive.
43900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43902 # Variables whose values should be saved in libtool wrapper scripts and
43903 # restored at link time.
43904 variables_saved_for_relink=$lt_variables_saved_for_relink
43906 # Do we need the "lib" prefix for modules?
43907 need_lib_prefix=$need_lib_prefix
43909 # Do we need a version for libraries?
43910 need_version=$need_version
43912 # Library versioning type.
43913 version_type=$version_type
43915 # Shared library runtime path variable.
43916 runpath_var=$runpath_var
43918 # Shared library path variable.
43919 shlibpath_var=$shlibpath_var
43921 # Is shlibpath searched before the hard-coded library search path?
43922 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43924 # Format of library name prefix.
43925 libname_spec=$lt_libname_spec
43927 # List of archive names. First name is the real one, the rest are links.
43928 # The last name is the one that the linker finds with -lNAME
43929 library_names_spec=$lt_library_names_spec
43931 # The coded name of the library, if different from the real name.
43932 soname_spec=$lt_soname_spec
43934 # Command to use after installation of a shared archive.
43935 postinstall_cmds=$lt_postinstall_cmds
43937 # Command to use after uninstallation of a shared archive.
43938 postuninstall_cmds=$lt_postuninstall_cmds
43940 # Commands used to finish a libtool library installation in a directory.
43941 finish_cmds=$lt_finish_cmds
43943 # As "finish_cmds", except a single script fragment to be evaled but
43945 finish_eval=$lt_finish_eval
43947 # Whether we should hardcode library paths into libraries.
43948 hardcode_into_libs=$hardcode_into_libs
43950 # Compile-time system search path for libraries.
43951 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43953 # Run-time system search path for libraries.
43954 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43956 # Whether dlopen is supported.
43957 dlopen_support=$enable_dlopen
43959 # Whether dlopen of programs is supported.
43960 dlopen_self=$enable_dlopen_self
43962 # Whether dlopen of statically linked programs is supported.
43963 dlopen_self_static=$enable_dlopen_self_static
43965 # Commands to strip libraries.
43966 old_striplib=$lt_old_striplib
43967 striplib=$lt_striplib
43970 # The linker used to build libraries.
43973 # Commands used to build an old-style archive.
43974 old_archive_cmds=$lt_old_archive_cmds
43976 # A language specific compiler.
43979 # Is the compiler the GNU compiler?
43982 # Compiler flag to turn off builtin functions.
43983 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43985 # How to pass a linker flag through the compiler.
43986 wl=$lt_lt_prog_compiler_wl
43988 # Additional compiler flags for building library objects.
43989 pic_flag=$lt_lt_prog_compiler_pic
43991 # Compiler flag to prevent dynamic linking.
43992 link_static_flag=$lt_lt_prog_compiler_static
43994 # Does compiler simultaneously support -c and -o options?
43995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43997 # Whether or not to add -lc for building shared libraries.
43998 build_libtool_need_lc=$archive_cmds_need_lc
44000 # Whether or not to disallow shared libs when runtime libs are static.
44001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44003 # Compiler flag to allow reflexive dlopens.
44004 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44006 # Compiler flag to generate shared objects directly from archives.
44007 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44009 # Whether the compiler copes with passing no objects directly.
44010 compiler_needs_object=$lt_compiler_needs_object
44012 # Create an old-style archive from a shared archive.
44013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44015 # Create a temporary old-style archive to link instead of a shared archive.
44016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44018 # Commands used to build a shared archive.
44019 archive_cmds=$lt_archive_cmds
44020 archive_expsym_cmds=$lt_archive_expsym_cmds
44022 # Commands used to build a loadable module if different from building
44023 # a shared archive.
44024 module_cmds=$lt_module_cmds
44025 module_expsym_cmds=$lt_module_expsym_cmds
44027 # Whether we are building with GNU ld or not.
44028 with_gnu_ld=$lt_with_gnu_ld
44030 # Flag that allows shared libraries with undefined symbols to be built.
44031 allow_undefined_flag=$lt_allow_undefined_flag
44033 # Flag that enforces no undefined symbols.
44034 no_undefined_flag=$lt_no_undefined_flag
44036 # Flag to hardcode \$libdir into a binary during linking.
44037 # This must work even if \$libdir does not exist
44038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44040 # If ld is used when linking, flag to hardcode \$libdir into a binary
44041 # during linking. This must work even if \$libdir does not exist.
44042 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44044 # Whether we need a single "-rpath" flag with a separated argument.
44045 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44047 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44048 # DIR into the resulting binary.
44049 hardcode_direct=$hardcode_direct
44051 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44052 # DIR into the resulting binary and the resulting library dependency is
44053 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44054 # library is relocated.
44055 hardcode_direct_absolute=$hardcode_direct_absolute
44057 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44058 # into the resulting binary.
44059 hardcode_minus_L=$hardcode_minus_L
44061 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44062 # into the resulting binary.
44063 hardcode_shlibpath_var=$hardcode_shlibpath_var
44065 # Set to "yes" if building a shared library automatically hardcodes DIR
44066 # into the library and all subsequent libraries and executables linked
44068 hardcode_automatic=$hardcode_automatic
44070 # Set to yes if linker adds runtime paths of dependent libraries
44071 # to runtime path list.
44072 inherit_rpath=$inherit_rpath
44074 # Whether libtool must link a program against all its dependency libraries.
44075 link_all_deplibs=$link_all_deplibs
44077 # Fix the shell variable \$srcfile for the compiler.
44078 fix_srcfile_path=$lt_fix_srcfile_path
44080 # Set to "yes" if exported symbols are required.
44081 always_export_symbols=$always_export_symbols
44083 # The commands to list exported symbols.
44084 export_symbols_cmds=$lt_export_symbols_cmds
44086 # Symbols that should not be listed in the preloaded symbols.
44087 exclude_expsyms=$lt_exclude_expsyms
44089 # Symbols that must always be exported.
44090 include_expsyms=$lt_include_expsyms
44092 # Commands necessary for linking programs (against libraries) with templates.
44093 prelink_cmds=$lt_prelink_cmds
44095 # Specify filename containing input files.
44096 file_list_spec=$lt_file_list_spec
44098 # How to hardcode a shared library path into an executable.
44099 hardcode_action=$hardcode_action
44101 # The directories searched by this compiler when creating a shared library.
44102 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
44104 # Dependencies to place before and after the objects being linked to
44105 # create a shared library.
44106 predep_objects=$lt_predep_objects
44107 postdep_objects=$lt_postdep_objects
44108 predeps=$lt_predeps
44109 postdeps=$lt_postdeps
44111 # The library search path used internally by the compiler when linking
44112 # a shared library.
44113 compiler_lib_search_path=$lt_compiler_lib_search_path
44115 # ### END LIBTOOL CONFIG
44121 cat <<\_LT_EOF >> "$cfgfile"
44122 # AIX sometimes has problems with the GCC collect2 program. For some
44123 # reason, if we set the COLLECT_NAMES environment variable, the problems
44124 # vanish in a puff of smoke.
44125 if test "X${COLLECT_NAMES+set}" != Xset; then
44127 export COLLECT_NAMES
44134 ltmain="$ac_aux_dir/ltmain.sh"
44137 # We use sed instead of cat because bash on DJGPP gets confused if
44138 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44139 # text mode, it properly converts lines to CR/LF. This bash problem
44140 # is reportedly fixed, but why not run on old versions too?
44141 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
44142 || (rm -f "$cfgfile"; exit 1)
44146 cat << \_LT_EOF >> "$cfgfile"
44148 # func_dirname file append nondir_replacement
44149 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44150 # otherwise set result to NONDIR_REPLACEMENT.
44154 */*) func_dirname_result="${1%/*}${2}" ;;
44155 * ) func_dirname_result="${3}" ;;
44159 # func_basename file
44162 func_basename_result="${1##*/}"
44165 # func_dirname_and_basename file append nondir_replacement
44166 # perform func_basename and func_dirname in a single function
44168 # dirname: Compute the dirname of FILE. If nonempty,
44169 # add APPEND to the result, otherwise set result
44170 # to NONDIR_REPLACEMENT.
44171 # value returned in "$func_dirname_result"
44172 # basename: Compute filename of FILE.
44173 # value retuned in "$func_basename_result"
44174 # Implementation must be kept synchronized with func_dirname
44175 # and func_basename. For efficiency, we do not delegate to
44176 # those functions but instead duplicate the functionality here.
44177 func_dirname_and_basename ()
44180 */*) func_dirname_result="${1%/*}${2}" ;;
44181 * ) func_dirname_result="${3}" ;;
44183 func_basename_result="${1##*/}"
44186 # func_stripname prefix suffix name
44187 # strip PREFIX and SUFFIX off of NAME.
44188 # PREFIX and SUFFIX must not contain globbing or regex special
44189 # characters, hashes, percent signs, but SUFFIX may contain a leading
44190 # dot (in which case that matches only a dot).
44193 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
44194 # positional parameters, so assign one to ordinary parameter first.
44195 func_stripname_result=${3}
44196 func_stripname_result=${func_stripname_result#"${1}"}
44197 func_stripname_result=${func_stripname_result%"${2}"}
44203 func_opt_split_opt=${1%%=*}
44204 func_opt_split_arg=${1#*=}
44211 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
44212 *) func_lo2o_result=${1} ;;
44216 # func_xform libobj-or-source
44219 func_xform_result=${1%.*}.lo
44222 # func_arith arithmetic-term...
44225 func_arith_result=$(( $* ))
44229 # STRING may not start with a hyphen.
44232 func_len_result=${#1}
44237 *) # Bourne compatible functions.
44238 cat << \_LT_EOF >> "$cfgfile"
44240 # func_dirname file append nondir_replacement
44241 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44242 # otherwise set result to NONDIR_REPLACEMENT.
44245 # Extract subdirectory from the argument.
44246 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
44247 if test "X$func_dirname_result" = "X${1}"; then
44248 func_dirname_result="${3}"
44250 func_dirname_result="$func_dirname_result${2}"
44254 # func_basename file
44257 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
44261 # func_stripname prefix suffix name
44262 # strip PREFIX and SUFFIX off of NAME.
44263 # PREFIX and SUFFIX must not contain globbing or regex special
44264 # characters, hashes, percent signs, but SUFFIX may contain a leading
44265 # dot (in which case that matches only a dot).
44266 # func_strip_suffix prefix name
44270 .*) func_stripname_result=`$ECHO "X${3}" \
44271 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
44272 *) func_stripname_result=`$ECHO "X${3}" \
44273 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
44278 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
44279 my_sed_long_arg='1s/^-[^=]*=//'
44284 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
44285 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
44291 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
44294 # func_xform libobj-or-source
44297 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
44300 # func_arith arithmetic-term...
44303 func_arith_result=`expr "$@"`
44307 # STRING may not start with a hyphen.
44310 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
44316 case $lt_shell_append in
44318 cat << \_LT_EOF >> "$cfgfile"
44320 # func_append var value
44321 # Append VALUE to the end of shell variable VAR.
44329 cat << \_LT_EOF >> "$cfgfile"
44331 # func_append var value
44332 # Append VALUE to the end of shell variable VAR.
44343 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
44344 || (rm -f "$cfgfile"; exit 1)
44346 mv -f "$cfgfile" "$ofile" ||
44347 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44351 cat <<_LT_EOF >> "$ofile"
44353 # ### BEGIN LIBTOOL TAG CONFIG: CXX
44355 # The linker used to build libraries.
44358 # Commands used to build an old-style archive.
44359 old_archive_cmds=$lt_old_archive_cmds_CXX
44361 # A language specific compiler.
44362 CC=$lt_compiler_CXX
44364 # Is the compiler the GNU compiler?
44367 # Compiler flag to turn off builtin functions.
44368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44370 # How to pass a linker flag through the compiler.
44371 wl=$lt_lt_prog_compiler_wl_CXX
44373 # Additional compiler flags for building library objects.
44374 pic_flag=$lt_lt_prog_compiler_pic_CXX
44376 # Compiler flag to prevent dynamic linking.
44377 link_static_flag=$lt_lt_prog_compiler_static_CXX
44379 # Does compiler simultaneously support -c and -o options?
44380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44382 # Whether or not to add -lc for building shared libraries.
44383 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44385 # Whether or not to disallow shared libs when runtime libs are static.
44386 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44388 # Compiler flag to allow reflexive dlopens.
44389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44391 # Compiler flag to generate shared objects directly from archives.
44392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44394 # Whether the compiler copes with passing no objects directly.
44395 compiler_needs_object=$lt_compiler_needs_object_CXX
44397 # Create an old-style archive from a shared archive.
44398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44400 # Create a temporary old-style archive to link instead of a shared archive.
44401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44403 # Commands used to build a shared archive.
44404 archive_cmds=$lt_archive_cmds_CXX
44405 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44407 # Commands used to build a loadable module if different from building
44408 # a shared archive.
44409 module_cmds=$lt_module_cmds_CXX
44410 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44412 # Whether we are building with GNU ld or not.
44413 with_gnu_ld=$lt_with_gnu_ld_CXX
44415 # Flag that allows shared libraries with undefined symbols to be built.
44416 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44418 # Flag that enforces no undefined symbols.
44419 no_undefined_flag=$lt_no_undefined_flag_CXX
44421 # Flag to hardcode \$libdir into a binary during linking.
44422 # This must work even if \$libdir does not exist
44423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44425 # If ld is used when linking, flag to hardcode \$libdir into a binary
44426 # during linking. This must work even if \$libdir does not exist.
44427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44429 # Whether we need a single "-rpath" flag with a separated argument.
44430 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44432 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44433 # DIR into the resulting binary.
44434 hardcode_direct=$hardcode_direct_CXX
44436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44437 # DIR into the resulting binary and the resulting library dependency is
44438 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44439 # library is relocated.
44440 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
44442 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44443 # into the resulting binary.
44444 hardcode_minus_L=$hardcode_minus_L_CXX
44446 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44447 # into the resulting binary.
44448 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44450 # Set to "yes" if building a shared library automatically hardcodes DIR
44451 # into the library and all subsequent libraries and executables linked
44453 hardcode_automatic=$hardcode_automatic_CXX
44455 # Set to yes if linker adds runtime paths of dependent libraries
44456 # to runtime path list.
44457 inherit_rpath=$inherit_rpath_CXX
44459 # Whether libtool must link a program against all its dependency libraries.
44460 link_all_deplibs=$link_all_deplibs_CXX
44462 # Fix the shell variable \$srcfile for the compiler.
44463 fix_srcfile_path=$lt_fix_srcfile_path_CXX
44465 # Set to "yes" if exported symbols are required.
44466 always_export_symbols=$always_export_symbols_CXX
44468 # The commands to list exported symbols.
44469 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44471 # Symbols that should not be listed in the preloaded symbols.
44472 exclude_expsyms=$lt_exclude_expsyms_CXX
44474 # Symbols that must always be exported.
44475 include_expsyms=$lt_include_expsyms_CXX
44477 # Commands necessary for linking programs (against libraries) with templates.
44478 prelink_cmds=$lt_prelink_cmds_CXX
44480 # Specify filename containing input files.
44481 file_list_spec=$lt_file_list_spec_CXX
44483 # How to hardcode a shared library path into an executable.
44484 hardcode_action=$hardcode_action_CXX
44486 # The directories searched by this compiler when creating a shared library.
44487 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
44489 # Dependencies to place before and after the objects being linked to
44490 # create a shared library.
44491 predep_objects=$lt_predep_objects_CXX
44492 postdep_objects=$lt_postdep_objects_CXX
44493 predeps=$lt_predeps_CXX
44494 postdeps=$lt_postdeps_CXX
44496 # The library search path used internally by the compiler when linking
44497 # a shared library.
44498 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44500 # ### END LIBTOOL TAG CONFIG: CXX
44505 for ac_file in $CONFIG_FILES; do
44506 # Support "outfile[:infile[:infile...]]"
44508 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44510 # PO directories have a Makefile.in generated from Makefile.in.in.
44511 case "$ac_file" in */Makefile.in)
44512 # Adjust a relative srcdir.
44513 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44514 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44515 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44516 # In autoconf-2.13 it is called $ac_given_srcdir.
44517 # In autoconf-2.50 it is called $srcdir.
44518 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44519 case "$ac_given_srcdir" in
44520 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44521 /*) top_srcdir="$ac_given_srcdir" ;;
44522 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
44524 # Treat a directory as a PO directory if and only if it has a
44525 # POTFILES.in file. This allows packages to have multiple PO
44526 # directories under different names or in different locations.
44527 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44528 rm -f "$ac_dir/POTFILES"
44529 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44530 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44531 POMAKEFILEDEPS="POTFILES.in"
44532 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44533 # on $ac_dir but don't depend on user-specified configuration
44535 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44536 # The LINGUAS file contains the set of available languages.
44537 if test -n "$OBSOLETE_ALL_LINGUAS"; then
44538 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44540 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44541 # Hide the ALL_LINGUAS assigment from automake.
44542 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44543 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44545 # The set of available languages was given in configure.in.
44546 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44549 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44550 # Compute UPDATEPOFILES
44551 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44552 # Compute DUMMYPOFILES
44553 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44555 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44556 case "$ac_given_srcdir" in
44558 *) srcdirpre='$(srcdir)/' ;;
44564 for lang in $ALL_LINGUAS; do
44565 POFILES="$POFILES $srcdirpre$lang.po"
44566 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44567 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44568 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44570 # CATALOGS depends on both $ac_dir and the user's LINGUAS
44571 # environment variable.
44573 if test -n "$ALL_LINGUAS"; then
44574 for presentlang in $ALL_LINGUAS; do
44576 if test "%UNSET%" != "$LINGUAS"; then
44577 desiredlanguages="$LINGUAS"
44579 desiredlanguages="$ALL_LINGUAS"
44581 for desiredlang in $desiredlanguages; do
44582 # Use the presentlang catalog if desiredlang is
44583 # a. equal to presentlang, or
44584 # b. a variant of presentlang (because in this case,
44585 # presentlang can be used as a fallback for messages
44586 # which are not translated in the desiredlang catalog).
44587 case "$desiredlang" in
44588 "$presentlang"*) useit=yes;;
44591 if test $useit = yes; then
44592 INST_LINGUAS="$INST_LINGUAS $presentlang"
44597 if test -n "$INST_LINGUAS"; then
44598 for lang in $INST_LINGUAS; do
44599 CATALOGS="$CATALOGS $lang.gmo"
44602 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44603 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"
44604 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44605 if test -f "$f"; then
44607 *.orig | *.bak | *~) ;;
44608 *) cat "$f" >> "$ac_dir/Makefile" ;;
44623 { (exit 0); exit 0; }
44625 chmod +x $CONFIG_STATUS
44626 ac_clean_files=$ac_clean_files_save
44629 # configure is writing to config.log, and then calls config.status.
44630 # config.status does its own redirection, appending to config.log.
44631 # Unfortunately, on DOS this fails, as config.log is still kept open
44632 # by configure, so config.status won't be able to write to it; its
44633 # output is simply discarded. So we exec the FD to /dev/null,
44634 # effectively closing config.log, so it can be properly (re)opened and
44635 # appended to by config.status. When coming back to configure, we
44636 # need to make the FD available again.
44637 if test "$no_create" != yes; then
44639 ac_config_status_args=
44640 test "$silent" = yes &&
44641 ac_config_status_args="$ac_config_status_args --quiet"
44643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44646 # would make configure fail if this is the last instruction.
44647 $ac_cs_success || { (exit 1); exit 1; }
44651 if test "${support_bat}" = "yes" ; then
44652 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44653 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44659 if test "x$QMAKEQT4" != "xnone"; then
44664 chmod 755 install_conf_file build-depkgs-qt-console
44665 echo "Creating bat Makefile"
44671 if test X"$GCC" = "Xyes" ; then
44672 echo "Doing make of dependencies"
44673 ${MAKE:-make} depend
44677 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44678 chmod 755 dvd-handler dvd-simulator
44679 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44683 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44684 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44688 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44689 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44691 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44692 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44694 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44695 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44697 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44698 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44700 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44701 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44703 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44704 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44706 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44707 chmod 755 $c/sqlite
44710 chmod 755 src/win32/build-depkgs-mingw32
44712 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44713 largefile_support="yes"
44716 if test X"$GCC" = "Xyes" ; then
44717 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44718 if test "x${CCVERSION}" = "x" ; then
44719 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44721 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44722 if test x"${CXXVERSION}" = x ; then
44723 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44727 # clean up any old junk
44733 if test "x${db_type}" = "xInternal" ; then
44736 echo "You have not specified either --enable-client-only or one of the"
44737 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44738 echo " This is not permitted. Please reconfigure."
44740 echo "Aborting the configuration ..."
44747 Configuration on `date`:
44749 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44750 Bacula version: ${BACULA} ${VERSION} (${DATE})
44751 Source code location: ${srcdir}
44752 Install binaries: ${sbindir}
44753 Install libraries: ${libdir}
44754 Install config files: ${sysconfdir}
44755 Scripts directory: ${scriptdir}
44756 Archive directory: ${archivedir}
44757 Working directory: ${working_dir}
44758 PID directory: ${piddir}
44759 Subsys directory: ${subsysdir}
44760 Man directory: ${mandir}
44761 Data directory: ${datarootdir}
44762 Plugin directory: ${plugindir}
44763 C Compiler: ${CC} ${CCVERSION}
44764 C++ Compiler: ${CXX} ${CXXVERSION}
44765 Compiler flags: ${WCFLAGS} ${CFLAGS}
44766 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44768 Statically Linked Tools: ${support_static_tools}
44769 Statically Linked FD: ${support_static_fd}
44770 Statically Linked SD: ${support_static_sd}
44771 Statically Linked DIR: ${support_static_dir}
44772 Statically Linked CONS: ${support_static_cons}
44773 Database type: ${db_type}
44774 Database port: ${db_port}
44775 Database lib: ${DB_LIBS}
44776 Database name: ${db_name}
44777 Database user: ${db_user}
44779 Job Output Email: ${job_email}
44780 Traceback Email: ${dump_email}
44781 SMTP Host Address: ${smtp_host}
44783 Director Port: ${dir_port}
44784 File daemon Port: ${fd_port}
44785 Storage daemon Port: ${sd_port}
44787 Director User: ${dir_user}
44788 Director Group: ${dir_group}
44789 Storage Daemon User: ${sd_user}
44790 Storage DaemonGroup: ${sd_group}
44791 File Daemon User: ${fd_user}
44792 File Daemon Group: ${fd_group}
44794 SQL binaries Directory ${SQL_BINDIR}
44796 Large file support: $largefile_support
44797 Bacula conio support: ${got_conio} ${CONS_LIBS}
44798 readline support: ${got_readline} ${PRTREADLINE_SRC}
44799 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44800 TLS support: ${support_tls}
44801 Encryption support: ${support_crypto}
44802 ZLIB support: ${have_zlib}
44803 enable-smartalloc: ${support_smartalloc}
44804 enable-lockmgr: ${support_lockmgr}
44805 bat support: ${support_bat} ${QWT_LDFLAGS}
44806 enable-gnome: ${support_gnome} ${gnome_version}
44807 enable-bwx-console: ${support_wx_console} ${wx_version}
44808 enable-tray-monitor: ${support_tray_monitor}
44809 client-only: ${build_client_only}
44810 build-dird: ${build_dird}
44811 build-stored: ${build_stored}
44812 ACL support: ${have_acl}
44813 XATTR support: ${have_xattr}
44814 Python support: ${support_python} ${PYTHON_LIBS}
44815 Batch insert enabled: ${support_batch_insert}