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=yes]
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-static-tools enable static tape tools [default=no]
1654 --enable-static-fd enable static File daemon [default=no]
1655 --enable-static-sd enable static Storage daemon [default=no]
1656 --enable-static-dir enable static Director [default=no]
1657 --enable-static-cons enable static Console [default=no]
1658 --enable-client-only build client (File daemon) only [default=no]
1659 --enable-build-dird enable building of dird (Director) [default=yes]
1660 --enable-build-stored enable building of stored (Storage daemon)
1662 --disable-conio disable conio support [default=no]
1663 --enable-ipv6 enable ipv6 support [default=yes]
1664 --disable-readline disable readline support [default=yes]
1665 --enable-batch-insert enable the DB batch insert code [default=no]
1666 --disable-largefile omit support for large files
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1677 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1678 --without-libintl-prefix don't search for libintl in includedir and libdir
1679 --with-included-gettext use the GNU gettext library included here
1680 --with-qwt[=DIR] specify qwt library directory
1681 --with-readline[=DIR] specify readline library directory
1682 --with-python[=DIR] Include Python support. DIR is the Python base
1683 install directory, default is to search through a
1684 number of common places for the Python files.
1685 --with-tcp-wrappers[=DIR]
1686 enable tcpwrappers support
1687 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1688 --with-working-dir=PATH specify path of Bacula working directory
1689 --with-archivedir=PATH specify path of SD archive directory
1690 --with-scriptdir=PATH specify path of Bacula scripts directory
1691 --with-plugindir=PATH specify path of Bacula plugins directory
1692 --with-dump-email=EMAIL dump email address
1693 --with-job-email=EMAIL job output email address
1694 --with-smtp-host=HOST SMTP mail host address
1695 --with-pid-dir=PATH specify location of Bacula pid files
1696 --with-subsys-dir=PATH specify location of Bacula subsys file
1697 --with-baseport=PORT specify base port address for daemons
1698 --with-dir-password=PASSWORD
1699 specify Director's password
1700 --with-fd-password=PASSWORD
1701 specify Client's password
1702 --with-sd-password=PASSWORD
1703 specify Storage daemon's password
1704 --with-mon-dir-password=PASSWORD
1705 specify Director's password used by the monitor
1706 --with-mon-fd-password=PASSWORD
1707 specify Client's password used by the monitor
1708 --with-mon-sd-password=PASSWORD
1709 specify Storage daemon's password used by the
1711 --with-db-name=DBNAME specify database name [default=bacula]
1712 --with-db-user=UNAME specify database user [default=bacula]
1713 --with-db-password=PWD specify database password [default=*none*]
1714 --with-db-port=DBPORT specify a database port [default=null]
1715 --with-dir-user=USER specify user for Director daemon
1716 --with-dir-group=GROUP specify group for Director daemon
1717 --with-sd-user=USER specify user for Storage daemon
1718 --with-sd-group=GROUP specify group for Storage daemon
1719 --with-fd-user=USER specify user for File daemon
1720 --with-fd-group=GROUP specify group for File daemon
1721 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1722 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1723 base install directory, [default=/usr/local/pgsql]
1724 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1725 directory, default is to search through a number of
1726 common places for the MySQL files.
1727 --with-embedded-mysql[=DIR]
1728 Include MySQL support. DIR is the MySQL base install
1729 directory, default is to search through a number of
1730 common places for the MySQL files.
1731 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1732 install directory, default is to search through a
1733 number of common places for the SQLite3 files.
1734 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1735 install directory, default is to search through a
1736 number of common places for the SQLite files.
1737 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1738 directory, default is to search through a number of
1739 common places for the DBI files.
1740 --with-dbi-driver[=DRIVER]
1741 Suport for DBI driver. DRIVER is the one DBI driver
1742 like Mysql, Postgresql, others. Default is to not
1743 configure any driver.
1744 --with-x use the X Window System
1746 Some influential environment variables:
1747 CC C compiler command
1748 CFLAGS C compiler flags
1749 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1750 nonstandard directory <lib dir>
1751 LIBS libraries to pass to the linker, e.g. -l<library>
1752 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753 you have headers in a nonstandard directory <include dir>
1754 CXX C++ compiler command
1755 CXXFLAGS C++ compiler flags
1757 WXCONFIG wx-config command. On some systems, you must set it to
1758 wx-config-2.6 to use wxWidgets 2.6.
1759 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1760 CXXCPP C++ preprocessor
1761 XMKMF Path to xmkmf, Makefile generator for X Window System
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1770 if test "$ac_init_help" = "recursive"; then
1771 # If there are subdirs, report their specific --help.
1772 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773 test -d "$ac_dir" || continue
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1793 .) # We are building in place.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1817 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1827 generated by GNU Autoconf 2.61
1829 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1830 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1840 It was created by $as_me, which was
1841 generated by GNU Autoconf 2.61. Invocation command line was
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1862 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1863 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1866 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1867 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1868 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 echo "PATH: $as_dir"
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1901 ac_must_keep_next=false
1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909 | -silent | --silent | --silen | --sile | --sil)
1912 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1917 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1918 if test $ac_must_keep_next = true; then
1919 ac_must_keep_next=false # Got value, back to normal.
1922 *=* | --config-cache | -C | -disable-* | --disable-* \
1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925 | -with-* | --with-* | -without-* | --without-* | --x)
1926 case "$ac_configure_args0 " in
1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930 -* ) ac_must_keep_next=true ;;
1933 ac_configure_args="$ac_configure_args '$ac_arg'"
1938 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1939 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log. We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947 # Save into config.log some information that might help in debugging.
1952 ## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##
1957 # The following way of writing the cache mishandles newlines in values,
1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960 eval ac_val=\$$ac_var
1964 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1968 _ | IFS | as_nl) ;; #(
1969 *) $as_unset $ac_var ;;
1974 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975 *${as_nl}ac_space=\ *)
1977 "s/'\''/'\''\\\\'\'''\''/g;
1978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989 ## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##
1994 for ac_var in $ac_subst_vars
1996 eval ac_val=\$$ac_var
1998 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 echo "$ac_var='\''$ac_val'\''"
2004 if test -n "$ac_subst_files"; then
2006 ## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##
2011 for ac_var in $ac_subst_files
2013 eval ac_val=\$$ac_var
2015 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017 echo "$ac_var='\''$ac_val'\''"
2022 if test -s confdefs.h; then
2032 test "$ac_signal" != 0 &&
2033 echo "$as_me: caught signal $ac_signal"
2034 echo "$as_me: exit $exit_status"
2036 rm -f core *.core core.conftest.* &&
2037 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040 for ac_signal in 1 2 13 15; do
2041 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2048 # Predefined preprocessor variables.
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078 set x "$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2082 set x "$ac_default_prefix/share/config.site" \
2083 "$ac_default_prefix/etc/config.site"
2088 if test -r "$ac_site_file"; then
2089 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2090 echo "$as_me: loading site script $ac_site_file" >&6;}
2091 sed 's/^/| /' "$ac_site_file" >&5
2096 if test -r "$cache_file"; then
2097 # Some versions of bash will fail to source /dev/null (special
2098 # files actually), so we avoid doing that.
2099 if test -f "$cache_file"; then
2100 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2101 echo "$as_me: loading cache $cache_file" >&6;}
2103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104 *) . "./$cache_file";;
2108 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2109 echo "$as_me: creating cache $cache_file" >&6;}
2113 # Check that the precious variables saved in the cache have kept the same
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118 eval ac_new_set=\$ac_env_${ac_var}_set
2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120 eval ac_new_val=\$ac_env_${ac_var}_value
2121 case $ac_old_set,$ac_new_set in
2123 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2127 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2132 if test "x$ac_old_val" != "x$ac_new_val"; then
2133 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2134 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2136 echo "$as_me: former value: $ac_old_val" >&2;}
2137 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2138 echo "$as_me: current value: $ac_new_val" >&2;}
2139 ac_cache_corrupted=:
2142 # Pass precious variables to config.status.
2143 if test "$ac_new_set" = set; then
2145 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146 *) ac_arg=$ac_var=$ac_new_val ;;
2148 case " $ac_configure_args " in
2149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2150 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2154 if $ac_cache_corrupted; then
2155 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2156 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2158 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2159 { (exit 1); exit 1; }; }
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2193 if test -f "$ac_dir/install-sh"; then
2195 ac_install_sh="$ac_aux_dir/install-sh -c"
2197 elif test -f "$ac_dir/install.sh"; then
2199 ac_install_sh="$ac_aux_dir/install.sh -c"
2201 elif test -f "$ac_dir/shtool"; then
2203 ac_install_sh="$ac_aux_dir/shtool install -c"
2207 if test -z "$ac_aux_dir"; then
2208 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2209 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2210 { (exit 1); exit 1; }; }
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2222 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2229 # Extract the first word of "$ac_prog", so it can be a program name with args.
2230 set dummy $ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 TRUEPRG=$ac_cv_path_TRUEPRG
2260 if test -n "$TRUEPRG"; then
2261 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2262 echo "${ECHO_T}$TRUEPRG" >&6; }
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2269 test -n "$TRUEPRG" && break
2271 test -n "$TRUEPRG" || TRUEPRG=":"
2273 for ac_prog in false
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 FALSEPRG=$ac_cv_path_FALSEPRG
2306 if test -n "$FALSEPRG"; then
2307 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2308 echo "${ECHO_T}$FALSEPRG" >&6; }
2310 { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2315 test -n "$FALSEPRG" && break
2317 test -n "$FALSEPRG" || FALSEPRG=":"
2321 if test "x$BACULA" != x; then
2322 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2324 BACULA=${BACULA-Bacula}
2325 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2326 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 echo "configuring for ${BACULA} $VERSION ($DATE)"
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2375 if test -z "$ac_cv_prog_CC"; then
2377 # Extract the first word of "gcc", so it can be a program name with args.
2378 set dummy gcc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_ac_ct_CC="gcc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6; }
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2413 if test "x$ac_ct_CC" = x; then
2416 case $cross_compiling:$ac_tool_warned in
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet. If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet. If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2432 if test -z "$CC"; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}cc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_CC="${ac_tool_prefix}cc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 if test -n "$CC"; then
2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2473 if test -z "$CC"; then
2474 # Extract the first word of "cc", so it can be a program name with args.
2475 set dummy cc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2493 ac_prog_rejected=yes
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 if test $ac_prog_rejected = yes; then
2505 # We found a bogon in the path, so make sure we never use it.
2506 set dummy $ac_cv_prog_CC
2508 if test $# != 0; then
2509 # We chose a different compiler from the bogus one.
2510 # However, it has the same basename, so the bogon will be chosen
2511 # first if we set CC to just the basename; use the full file name.
2513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2519 if test -n "$CC"; then
2520 { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 if test -n "$ac_tool_prefix"; then
2531 for ac_prog in cl.exe
2533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2570 test -n "$CC" && break
2573 if test -z "$CC"; then
2575 for ac_prog in cl.exe
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$ac_ct_CC"; then
2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_ac_ct_CC="$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6; }
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2614 test -n "$ac_ct_CC" && break
2617 if test "x$ac_ct_CC" = x; then
2620 case $cross_compiling:$ac_tool_warned in
2622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623 whose name does not start with the host triplet. If you think this
2624 configuration is useful to you, please write to autoconf@gnu.org." >&5
2625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628 ac_tool_warned=yes ;;
2637 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&2;}
2641 { (exit 1); exit 1; }; }
2643 # Provide some information about the compiler.
2644 echo "$as_me:$LINENO: checking for C compiler version" >&5
2645 ac_compiler=`set X $ac_compile; echo $2`
2646 { (ac_try="$ac_compiler --version >&5"
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compiler --version >&5") 2>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }
2656 { (ac_try="$ac_compiler -v >&5"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler -v >&5") 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (ac_try="$ac_compiler -V >&5"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -V >&5") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 ac_clean_files_save=$ac_clean_files
2693 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2694 # Try to create an executable without -o first, disregard a.out.
2695 # It will help us diagnose broken compilers, and finding out an intuition
2697 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2698 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2699 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2701 # List of possible output files, starting from the most likely.
2702 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2703 # only as a last resort. b.out is created by i960 compilers.
2704 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2706 # The IRIX 6 linker writes into existing files which may not be
2707 # executable, retaining their permissions. Remove them first so a
2708 # subsequent execution test works.
2710 for ac_file in $ac_files
2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2714 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2719 if { (ac_try="$ac_link_default"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_link_default") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; then
2729 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2730 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2731 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2732 # so that the user can short-circuit this test for compilers unknown to
2734 for ac_file in $ac_files ''
2736 test -f "$ac_file" || continue
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2741 # We found the default executable, but exeext='' is most
2745 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749 # We set ac_cv_exeext here because the later test for it is not
2750 # safe: cross compilers may not add the suffix if given an `-o'
2751 # argument, so we may need to know it at that point already.
2752 # Even if this section looks crufty: it has the advantage of
2759 test "$ac_cv_exeext" = no && ac_cv_exeext=
2765 { echo "$as_me:$LINENO: result: $ac_file" >&5
2766 echo "${ECHO_T}$ac_file" >&6; }
2767 if test -z "$ac_file"; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2772 See \`config.log' for more details." >&5
2773 echo "$as_me: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&2;}
2775 { (exit 77); exit 77; }; }
2778 ac_exeext=$ac_cv_exeext
2780 # Check that the compiler produces executables we can run. If not, either
2781 # the compiler is broken, or we cross compile.
2782 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2785 # If not cross compiling, check that we can run a simple program.
2786 if test "$cross_compiling" != yes; then
2787 if { ac_try='./$ac_file'
2788 { (case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_try") 2>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2799 if test "$cross_compiling" = maybe; then
2802 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2803 If you meant to cross compile, use \`--host'.
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: cannot run C compiled programs.
2806 If you meant to cross compile, use \`--host'.
2807 See \`config.log' for more details." >&2;}
2808 { (exit 1); exit 1; }; }
2812 { echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6; }
2815 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2816 ac_clean_files=$ac_clean_files_save
2817 # Check that the compiler produces executables we can run. If not, either
2818 # the compiler is broken, or we cross compile.
2819 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2820 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2822 echo "${ECHO_T}$cross_compiling" >&6; }
2824 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2825 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2826 if { (ac_try="$ac_link"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_link") 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; then
2836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2837 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2838 # work properly (i.e., refer to `conftest.exe'), while it won't with
2840 for ac_file in conftest.exe conftest conftest.*; do
2841 test -f "$ac_file" || continue
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2857 rm -f conftest$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2859 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2861 rm -f conftest.$ac_ext
2862 EXEEXT=$ac_cv_exeext
2864 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2866 if test "${ac_cv_objext+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2884 rm -f conftest.o conftest.obj
2885 if { (ac_try="$ac_compile"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compile") 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; then
2895 for ac_file in conftest.o conftest.obj conftest.*; do
2896 test -f "$ac_file" || continue;
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2899 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2916 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2917 echo "${ECHO_T}$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } && {
2957 test -z "$ac_c_werror_flag" ||
2958 test ! -s conftest.err
2959 } && test -s conftest.$ac_objext; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2972 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2974 GCC=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CFLAGS=${CFLAGS+set}
2976 ac_save_CFLAGS=$CFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2978 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cc_g+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 ac_save_c_werror_flag=$ac_c_werror_flag
2983 ac_c_werror_flag=yes
2986 cat >conftest.$ac_ext <<_ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 ac_c_werror_flag=$ac_save_c_werror_flag
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_c_werror_flag=$ac_save_c_werror_flag
3112 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3114 if test "$ac_test_CFLAGS" = set; then
3115 CFLAGS=$ac_save_CFLAGS
3116 elif test $ac_cv_prog_cc_g = yes; then
3117 if test "$GCC" = yes; then
3123 if test "$GCC" = yes; then
3129 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3130 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_cc_c89+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 ac_cv_prog_cc_c89=no
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3144 #include <sys/types.h>
3145 #include <sys/stat.h>
3146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3147 struct buf { int x; };
3148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149 static char *e (p, i)
3155 static char *f (char * (*g) (char **, int), char **p, ...)
3160 s = g (p, va_arg (v,int));
3165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3166 function prototypes and stuff, but not '\xHH' hex character constants.
3167 These don't provoke an error unfortunately, instead are silently treated
3168 as 'x'. The following induces an error, until -std is added to get
3169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3170 array size at least. It's necessary to write '\x00'==0 to get something
3171 that's true only with -std. */
3172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175 inside strings and character constants. */
3177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3179 int test (int i, double x);
3180 struct s1 {int (*f) (int a);};
3181 struct s2 {int (*f) (double a);};
3182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196 CC="$ac_save_CC $ac_arg"
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3206 grep -v '^ *+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
3214 ac_cv_prog_cc_c89=$ac_arg
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext
3223 test "x$ac_cv_prog_cc_c89" != "xno" && break
3225 rm -f conftest.$ac_ext
3230 case "x$ac_cv_prog_cc_c89" in
3232 { echo "$as_me:$LINENO: result: none needed" >&5
3233 echo "${ECHO_T}none needed" >&6; } ;;
3235 { echo "$as_me:$LINENO: result: unsupported" >&5
3236 echo "${ECHO_T}unsupported" >&6; } ;;
3238 CC="$CC $ac_cv_prog_cc_c89"
3239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 ac_cpp='$CXXCPP $CPPFLAGS'
3252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3255 if test -z "$CXX"; then
3256 if test -n "$CCC"; then
3259 if test -n "$ac_tool_prefix"; then
3260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3266 if test "${ac_cv_prog_CXX+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 if test -n "$CXX"; then
3270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 if test -n "$CXX"; then
3291 { echo "$as_me:$LINENO: result: $CXX" >&5
3292 echo "${ECHO_T}$CXX" >&6; }
3294 { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3299 test -n "$CXX" && break
3302 if test -z "$CXX"; then
3304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$ac_ct_CXX"; then
3314 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_ac_ct_CXX="$ac_prog"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3334 if test -n "$ac_ct_CXX"; then
3335 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3336 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3338 { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3343 test -n "$ac_ct_CXX" && break
3346 if test "x$ac_ct_CXX" = x; then
3349 case $cross_compiling:$ac_tool_warned in
3351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3352 whose name does not start with the host triplet. If you think this
3353 configuration is useful to you, please write to autoconf@gnu.org." >&5
3354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3357 ac_tool_warned=yes ;;
3365 # Provide some information about the compiler.
3366 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3367 ac_compiler=`set X $ac_compile; echo $2`
3368 { (ac_try="$ac_compiler --version >&5"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_compiler --version >&5") 2>&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }
3378 { (ac_try="$ac_compiler -v >&5"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compiler -v >&5") 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388 { (ac_try="$ac_compiler -V >&5"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compiler -V >&5") 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }
3399 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3400 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3401 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_compile") 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && {
3436 test -z "$ac_cxx_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3451 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3452 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3453 GXX=`test $ac_compiler_gnu = yes && echo yes`
3454 ac_test_CXXFLAGS=${CXXFLAGS+set}
3455 ac_save_CXXFLAGS=$CXXFLAGS
3456 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3457 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_cxx_g+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3462 ac_cxx_werror_flag=yes
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_cxx_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_prog_cxx_g=yes
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3503 cat >conftest.$ac_ext <<_ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_cxx_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compile") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } && {
3571 test -z "$ac_cxx_werror_flag" ||
3572 test ! -s conftest.err
3573 } && test -s conftest.$ac_objext; then
3574 ac_cv_prog_cxx_g=yes
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3593 if test "$ac_test_CXXFLAGS" = set; then
3594 CXXFLAGS=$ac_save_CXXFLAGS
3595 elif test $ac_cv_prog_cxx_g = yes; then
3596 if test "$GXX" = yes; then
3602 if test "$GXX" = yes; then
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 if test "x$CC" != xcc; then
3615 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3616 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3618 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3619 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3621 set dummy $CC; ac_cc=`echo $2 |
3622 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3623 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3641 # Make sure it works both with $CC and with simple cc.
3642 # We do the test twice because some compilers refuse to overwrite an
3643 # existing .o file with -o, though they will create one.
3644 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3646 if { (case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651 (eval "$ac_try") 2>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_try") 2>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); };
3665 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3666 if test "x$CC" != xcc; then
3667 # Test first that cc exists at all.
3668 if { ac_try='cc -c conftest.$ac_ext >&5'
3669 { (case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_try") 2>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3680 if { (case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_try") 2>&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_try") 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); };
3702 # cc exists but doesn't like -o.
3703 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3708 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3710 rm -f core conftest*
3713 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3714 { echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6; }
3717 { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3720 cat >>confdefs.h <<\_ACEOF
3721 #define NO_MINUS_C_MINUS_O 1
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3732 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3733 # On Suns, sometimes $CPP names a directory.
3734 if test -n "$CPP" && test -d "$CPP"; then
3737 if test -z "$CPP"; then
3738 if test "${ac_cv_prog_CPP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 # Double quotes because CPP needs to be expanded
3742 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3745 for ac_c_preproc_warn_flag in '' yes
3747 # Use a header file that comes with gcc, so configuring glibc
3748 # with a fresh cross-compiler works.
3749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3750 # <limits.h> exists even on freestanding compilers.
3751 # On the NeXT, cc -E runs the code through the compiler's parser,
3752 # not just through cpp. "Syntax error" is here to catch this case.
3753 cat >conftest.$ac_ext <<_ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3760 # include <limits.h>
3762 # include <assert.h>
3766 if { (ac_try="$ac_cpp conftest.$ac_ext"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } >/dev/null && {
3779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 # Broken: fails on valid input.
3791 rm -f conftest.err conftest.$ac_ext
3793 # OK, works on sane cases. Now check whether nonexistent headers
3794 # can be detected and how.
3795 cat >conftest.$ac_ext <<_ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 #include <ac_nonexistent.h>
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3819 # Broken: success on invalid input.
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 # Passes both tests.
3830 rm -f conftest.err conftest.$ac_ext
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.err conftest.$ac_ext
3835 if $ac_preproc_ok; then
3847 { echo "$as_me:$LINENO: result: $CPP" >&5
3848 echo "${ECHO_T}$CPP" >&6; }
3850 for ac_c_preproc_warn_flag in '' yes
3852 # Use a header file that comes with gcc, so configuring glibc
3853 # with a fresh cross-compiler works.
3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 # <limits.h> exists even on freestanding compilers.
3856 # On the NeXT, cc -E runs the code through the compiler's parser,
3857 # not just through cpp. "Syntax error" is here to catch this case.
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3865 # include <limits.h>
3867 # include <assert.h>
3871 if { (ac_try="$ac_cpp conftest.$ac_ext"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } >/dev/null && {
3884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 # Broken: fails on valid input.
3896 rm -f conftest.err conftest.$ac_ext
3898 # OK, works on sane cases. Now check whether nonexistent headers
3899 # can be detected and how.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #include <ac_nonexistent.h>
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null && {
3921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3924 # Broken: success on invalid input.
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 # Passes both tests.
3935 rm -f conftest.err conftest.$ac_ext
3938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3939 rm -f conftest.err conftest.$ac_ext
3940 if $ac_preproc_ok; then
3943 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3944 See \`config.log' for more details." >&5
3945 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&2;}
3947 { (exit 1); exit 1; }; }
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in grep ggrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3979 # Check for GNU ac_path_GREP and select it if it is found.
3980 # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 echo 'GREP' >> "conftest.nl"
3993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 ac_count=`expr $ac_count + 1`
3996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_GREP="$ac_path_GREP"
3999 ac_path_GREP_max=$ac_count
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 $ac_path_GREP_found && break 3
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022 { (exit 1); exit 1; }; }
4026 ac_cv_path_GREP=$GREP
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033 GREP="$ac_cv_path_GREP"
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042 then ac_cv_path_EGREP="$GREP -E"
4044 # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 test -z "$as_dir" && as_dir=.
4057 for ac_prog in egrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4061 # Check for GNU ac_path_EGREP and select it if it is found.
4062 # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 echo 'EGREP' >> "conftest.nl"
4075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077 ac_count=`expr $ac_count + 1`
4078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_EGREP="$ac_path_EGREP"
4081 ac_path_EGREP_max=$ac_count
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090 $ac_path_EGREP_found && break 3
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104 { (exit 1); exit 1; }; }
4108 ac_cv_path_EGREP=$EGREP
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116 EGREP="$ac_cv_path_EGREP"
4119 if test $ac_cv_c_compiler_gnu = yes; then
4120 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4121 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4122 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 ac_pattern="Autoconf.*'x'"
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4137 ac_cv_prog_gcc_traditional=yes
4139 ac_cv_prog_gcc_traditional=no
4144 if test $ac_cv_prog_gcc_traditional = no; then
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156 ac_cv_prog_gcc_traditional=yes
4162 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4163 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4164 if test $ac_cv_prog_gcc_traditional = yes; then
4165 CC="$CC -traditional"
4169 BASECC=`basename $CC`
4171 if test "x$BASECC" = xgcc; then
4172 cat >>confdefs.h <<\_ACEOF
4178 # Extract the first word of "$CXX", so it can be a program name with args.
4179 set dummy $CXX; ac_word=$2
4180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4182 if test "${ac_cv_path_CXX+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4210 if test -n "$CXX"; then
4211 { echo "$as_me:$LINENO: result: $CXX" >&5
4212 echo "${ECHO_T}$CXX" >&6; }
4214 { echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6; }
4219 if test ! -e $CXX; then
4220 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4221 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4222 { (exit 1); exit 1; }; }
4225 # Find a good install program. We prefer a C program (faster),
4226 # so one script is as good as another. But avoid the broken or
4227 # incompatible versions:
4228 # SysV /etc/install, /usr/sbin/install
4229 # SunOS /usr/etc/install
4230 # IRIX /sbin/install
4232 # AmigaOS /C/install, which installs bootblocks on floppy discs
4233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4236 # OS/2's system install, which has a completely different semantic
4237 # ./install, which can be erroneously created by make from ./install.sh.
4238 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4240 if test -z "$INSTALL"; then
4241 if test "${ac_cv_path_install+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 # Account for people who put trailing slashes in PATH elements.
4251 ./ | .// | /cC/* | \
4252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4253 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4256 # OSF1 and SCO ODT 3.0 have their own names for install.
4257 # Don't use installbsd from OSF since it installs stuff as root
4259 for ac_prog in ginstall scoinst install; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4262 if test $ac_prog = install &&
4263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4264 # AIX install. It has an incompatible calling convention.
4266 elif test $ac_prog = install &&
4267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268 # program-specific install script used by HP pwplus--don't use.
4271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4284 if test "${ac_cv_path_install+set}" = set; then
4285 INSTALL=$ac_cv_path_install
4287 # As a last resort, use the slow shell script. Don't cache a
4288 # value for INSTALL within a source directory, because that will
4289 # break other packages using the cache if that directory is
4290 # removed, or if the value is a relative name.
4291 INSTALL=$ac_install_sh
4294 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4295 echo "${ECHO_T}$INSTALL" >&6; }
4297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4298 # It thinks the first close brace ends the variable substitution.
4299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4305 # Extract the first word of "mv", so it can be a program name with args.
4306 set dummy mv; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_path_MV+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4337 if test -n "$MV"; then
4338 { echo "$as_me:$LINENO: result: $MV" >&5
4339 echo "${ECHO_T}$MV" >&6; }
4341 { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4346 # Extract the first word of "rm", so it can be a program name with args.
4347 set dummy rm; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_REMOVE+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4377 REMOVE=$ac_cv_path_REMOVE
4378 if test -n "$REMOVE"; then
4379 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4380 echo "${ECHO_T}$REMOVE" >&6; }
4382 { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4387 # Extract the first word of "cp", so it can be a program name with args.
4388 set dummy cp; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_CP+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4419 if test -n "$CP"; then
4420 { echo "$as_me:$LINENO: result: $CP" >&5
4421 echo "${ECHO_T}$CP" >&6; }
4423 { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4428 # Extract the first word of "sed", so it can be a program name with args.
4429 set dummy sed; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_SED+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4460 if test -n "$SED"; then
4461 { echo "$as_me:$LINENO: result: $SED" >&5
4462 echo "${ECHO_T}$SED" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 # Extract the first word of "echo", so it can be a program name with args.
4470 set dummy echo; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_ECHO+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4500 ECHO=$ac_cv_path_ECHO
4501 if test -n "$ECHO"; then
4502 { echo "$as_me:$LINENO: result: $ECHO" >&5
4503 echo "${ECHO_T}$ECHO" >&6; }
4505 { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4510 # Extract the first word of "cmp", so it can be a program name with args.
4511 set dummy cmp; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_CMP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4542 if test -n "$CMP"; then
4543 { echo "$as_me:$LINENO: result: $CMP" >&5
4544 echo "${ECHO_T}$CMP" >&6; }
4546 { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4551 # Extract the first word of "tbl", so it can be a program name with args.
4552 set dummy tbl; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_TBL+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4583 if test -n "$TBL"; then
4584 { echo "$as_me:$LINENO: result: $TBL" >&5
4585 echo "${ECHO_T}$TBL" >&6; }
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4592 # Extract the first word of "ar", so it can be a program name with args.
4593 set dummy ar; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_AR+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4624 if test -n "$AR"; then
4625 { echo "$as_me:$LINENO: result: $AR" >&5
4626 echo "${ECHO_T}$AR" >&6; }
4628 { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4633 # Extract the first word of "openssl", so it can be a program name with args.
4634 set dummy openssl; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_OPENSSL+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4664 OPENSSL=$ac_cv_path_OPENSSL
4665 if test -n "$OPENSSL"; then
4666 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4667 echo "${ECHO_T}$OPENSSL" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4674 # Extract the first word of "mtx", so it can be a program name with args.
4675 set dummy mtx; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_MTX+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4706 if test -n "$MTX"; then
4707 { echo "$as_me:$LINENO: result: $MTX" >&5
4708 echo "${ECHO_T}$MTX" >&6; }
4710 { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4715 # Extract the first word of "dd", so it can be a program name with args.
4716 set dummy dd; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_DD+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4747 if test -n "$DD"; then
4748 { echo "$as_me:$LINENO: result: $DD" >&5
4749 echo "${ECHO_T}$DD" >&6; }
4751 { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4756 # Extract the first word of "mkisofs", so it can be a program name with args.
4757 set dummy mkisofs; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_MKISOFS+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4787 MKISOFS=$ac_cv_path_MKISOFS
4788 if test -n "$MKISOFS"; then
4789 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4790 echo "${ECHO_T}$MKISOFS" >&6; }
4792 { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4797 # Extract the first word of "python", so it can be a program name with args.
4798 set dummy python; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_PYTHON+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4828 PYTHON=$ac_cv_path_PYTHON
4829 if test -n "$PYTHON"; then
4830 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4831 echo "${ECHO_T}$PYTHON" >&6; }
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4838 # Extract the first word of "growisofs", so it can be a program name with args.
4839 set dummy growisofs; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4869 GROWISOFS=$ac_cv_path_GROWISOFS
4870 if test -n "$GROWISOFS"; then
4871 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4872 echo "${ECHO_T}$GROWISOFS" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4880 set dummy dvd+rw-mediainfo; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 case $DVDRWMEDIAINFO in
4888 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4910 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4911 if test -n "$DVDRWMEDIAINFO"; then
4912 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4913 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4920 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4921 set dummy dvd+rw-format; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 case $DVDRWFORMAT in
4929 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4951 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4952 if test -n "$DVDRWFORMAT"; then
4953 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4954 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4961 # Extract the first word of "pkg-config", so it can be a program name with args.
4962 set dummy pkg-config; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4992 PKGCONFIG=$ac_cv_path_PKGCONFIG
4993 if test -n "$PKGCONFIG"; then
4994 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4995 echo "${ECHO_T}$PKGCONFIG" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5002 # Extract the first word of "qmake", so it can be a program name with args.
5003 set dummy qmake; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_QMAKE+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5033 QMAKE=$ac_cv_path_QMAKE
5034 if test -n "$QMAKE"; then
5035 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5036 echo "${ECHO_T}$QMAKE" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5043 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5044 set dummy qmake-qt4; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5074 QMAKEQT4=$ac_cv_path_QMAKEQT4
5075 if test -n "$QMAKEQT4"; then
5076 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5077 echo "${ECHO_T}$QMAKEQT4" >&6; }
5079 { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5085 if test "x$WXCONFIG" = x; then
5088 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5089 set dummy ${WXCONFIG}; ac_word=$2
5090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5092 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5119 WXCONFIG=$ac_cv_path_WXCONFIG
5120 if test -n "$WXCONFIG"; then
5121 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5122 echo "${ECHO_T}$WXCONFIG" >&6; }
5124 { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5130 # Extract the first word of "cdrecord", so it can be a program name with args.
5131 set dummy cdrecord; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_CDRECORD+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5161 CDRECORD=$ac_cv_path_CDRECORD
5162 if test -n "$CDRECORD"; then
5163 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5164 echo "${ECHO_T}$CDRECORD" >&6; }
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5171 # Extract the first word of "pidof", so it can be a program name with args.
5172 set dummy pidof; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_PIDOF+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5202 PIDOF=$ac_cv_path_PIDOF
5203 if test -n "$PIDOF"; then
5204 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5205 echo "${ECHO_T}$PIDOF" >&6; }
5207 { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5212 for ac_prog in gawk mawk nawk awk
5214 # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_prog_AWK+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 if test -n "$AWK"; then
5222 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_AWK="$ac_prog"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 if test -n "$AWK"; then
5243 { echo "$as_me:$LINENO: result: $AWK" >&5
5244 echo "${ECHO_T}$AWK" >&6; }
5246 { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5251 test -n "$AWK" && break
5254 # Some AWK programs fail, so test it and warn the user
5255 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5256 { if ((prog == $2) || (("(" prog ")") == $2) ||
5257 (("" prog "") == $2) ||
5258 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5260 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5261 The regex engine of $AWK is too broken to be used you
5262 might want to install GNU AWK.
5263 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5264 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265 The regex engine of $AWK is too broken to be used you
5266 might want to install GNU AWK.
5267 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5268 { (exit 1); exit 1; }; }
5271 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5272 set dummy $THE_AWK; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_path_AWK+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5303 if test -n "$AWK"; then
5304 { echo "$as_me:$LINENO: result: $AWK" >&5
5305 echo "${ECHO_T}$AWK" >&6; }
5307 { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5314 test -n "$ARFLAG" || ARFLAGS="cr"
5325 # Check whether --enable-libtool was given.
5326 if test "${enable_libtool+set}" = set; then
5327 enableval=$enable_libtool;
5328 if test x$enableval = xno; then
5337 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5338 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5343 macro_version='2.2.6'
5344 macro_revision='1.3012'
5358 ltmain="$ac_aux_dir/ltmain.sh"
5360 # Make sure we can run config.sub.
5361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5362 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5363 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5364 { (exit 1); exit 1; }; }
5366 { echo "$as_me:$LINENO: checking build system type" >&5
5367 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5368 if test "${ac_cv_build+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 ac_build_alias=$build_alias
5372 test "x$ac_build_alias" = x &&
5373 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5374 test "x$ac_build_alias" = x &&
5375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5377 { (exit 1); exit 1; }; }
5378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5379 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5380 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5381 { (exit 1); exit 1; }; }
5384 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5385 echo "${ECHO_T}$ac_cv_build" >&6; }
5386 case $ac_cv_build in
5388 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5389 echo "$as_me: error: invalid value of canonical build" >&2;}
5390 { (exit 1); exit 1; }; };;
5393 ac_save_IFS=$IFS; IFS='-'
5399 # Remember, the first character of IFS is used to create $*,
5400 # except with old shells:
5403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5406 { echo "$as_me:$LINENO: checking host system type" >&5
5407 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5408 if test "${ac_cv_host+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 if test "x$host_alias" = x; then
5412 ac_cv_host=$ac_cv_build
5414 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5415 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5416 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5417 { (exit 1); exit 1; }; }
5421 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5422 echo "${ECHO_T}$ac_cv_host" >&6; }
5425 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5426 echo "$as_me: error: invalid value of canonical host" >&2;}
5427 { (exit 1); exit 1; }; };;
5430 ac_save_IFS=$IFS; IFS='-'
5436 # Remember, the first character of IFS is used to create $*,
5437 # except with old shells:
5440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5443 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5444 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5445 if test "${ac_cv_path_SED+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5449 for ac_i in 1 2 3 4 5 6 7; do
5450 ac_script="$ac_script$as_nl$ac_script"
5452 echo "$ac_script" | sed 99q >conftest.sed
5453 $as_unset ac_script || ac_script=
5454 # Extract the first word of "sed gsed" to use in msg output
5455 if test -z "$SED"; then
5456 set dummy sed gsed; ac_prog_name=$2
5457 if test "${ac_cv_path_SED+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 ac_path_SED_found=false
5461 # Loop through the user's path and test for each of PROGNAME-LIST
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_prog in sed gsed; do
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5470 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5471 # Check for GNU ac_path_SED and select it if it is found.
5472 # Check for GNU $ac_path_SED
5473 case `"$ac_path_SED" --version 2>&1` in
5475 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5478 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5481 cat "conftest.in" "conftest.in" >"conftest.tmp"
5482 mv "conftest.tmp" "conftest.in"
5483 cp "conftest.in" "conftest.nl"
5484 echo '' >> "conftest.nl"
5485 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5487 ac_count=`expr $ac_count + 1`
5488 if test $ac_count -gt ${ac_path_SED_max-0}; then
5489 # Best one so far, save it but keep looking for a better one
5490 ac_cv_path_SED="$ac_path_SED"
5491 ac_path_SED_max=$ac_count
5493 # 10*(2^10) chars as input seems more than enough
5494 test $ac_count -gt 10 && break
5496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5500 $ac_path_SED_found && break 3
5510 SED="$ac_cv_path_SED"
5511 if test -z "$SED"; then
5512 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5513 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5514 { (exit 1); exit 1; }; }
5522 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5523 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5524 SED="$ac_cv_path_SED"
5527 test -z "$SED" && SED=sed
5528 Xsed="$SED -e 1s/^X//"
5540 { echo "$as_me:$LINENO: checking for fgrep" >&5
5541 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5542 if test "${ac_cv_path_FGREP+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5546 then ac_cv_path_FGREP="$GREP -F"
5548 # Extract the first word of "fgrep" to use in msg output
5549 if test -z "$FGREP"; then
5550 set dummy fgrep; ac_prog_name=$2
5551 if test "${ac_cv_path_FGREP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_path_FGREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 test -z "$as_dir" && as_dir=.
5561 for ac_prog in fgrep; do
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5564 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5565 # Check for GNU ac_path_FGREP and select it if it is found.
5566 # Check for GNU $ac_path_FGREP
5567 case `"$ac_path_FGREP" --version 2>&1` in
5569 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 echo 'FGREP' >> "conftest.nl"
5579 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581 ac_count=`expr $ac_count + 1`
5582 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_FGREP="$ac_path_FGREP"
5585 ac_path_FGREP_max=$ac_count
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5594 $ac_path_FGREP_found && break 3
5604 FGREP="$ac_cv_path_FGREP"
5605 if test -z "$FGREP"; then
5606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608 { (exit 1); exit 1; }; }
5612 ac_cv_path_FGREP=$FGREP
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5620 FGREP="$ac_cv_path_FGREP"
5623 test -z "$GREP" && GREP=grep
5643 # Check whether --with-gnu-ld was given.
5644 if test "${with_gnu_ld+set}" = set; then
5645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5651 if test "$GCC" = yes; then
5652 # Check if gcc -print-prog-name=ld gives a path.
5653 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5654 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5657 # gcc leaves a trailing carriage return which upsets mingw
5658 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5660 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5663 # Accept absolute paths.
5665 re_direlt='/[^/][^/]*/\.\./'
5666 # Canonicalize the pathname of ld
5667 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5668 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5669 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5671 test -z "$LD" && LD="$ac_prog"
5674 # If it fails, then pretend we aren't using GCC.
5678 # If it is relative, then search for the first ld in PATH.
5682 elif test "$with_gnu_ld" = yes; then
5683 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5684 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5686 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5687 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5689 if test "${lt_cv_path_LD+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test -z "$LD"; then
5693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5694 for ac_dir in $PATH; do
5696 test -z "$ac_dir" && ac_dir=.
5697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5698 lt_cv_path_LD="$ac_dir/$ac_prog"
5699 # Check to see if the program is GNU ld. I'd rather use --version,
5700 # but apparently some variants of GNU ld only accept -v.
5701 # Break only if it was the GNU/non-GNU ld that we prefer.
5702 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5703 *GNU* | *'with BFD'*)
5704 test "$with_gnu_ld" != no && break
5707 test "$with_gnu_ld" != yes && break
5714 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5719 if test -n "$LD"; then
5720 { echo "$as_me:$LINENO: result: $LD" >&5
5721 echo "${ECHO_T}$LD" >&6; }
5723 { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5726 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5727 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5728 { (exit 1); exit 1; }; }
5729 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5730 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5731 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5735 case `$LD -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737 lt_cv_prog_gnu_ld=yes
5740 lt_cv_prog_gnu_ld=no
5744 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5745 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5746 with_gnu_ld=$lt_cv_prog_gnu_ld
5756 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5757 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5758 if test "${lt_cv_path_NM+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if test -n "$NM"; then
5762 # Let the user override the test.
5765 lt_nm_to_check="${ac_tool_prefix}nm"
5766 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767 lt_nm_to_check="$lt_nm_to_check nm"
5769 for lt_tmp_nm in $lt_nm_to_check; do
5770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5773 test -z "$ac_dir" && ac_dir=.
5774 tmp_nm="$ac_dir/$lt_tmp_nm"
5775 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776 # Check to see if the nm accepts a BSD-compat flag.
5777 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778 # nm: unknown option "B" ignored
5779 # Tru64's nm complains that /dev/null is an invalid object file
5780 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781 */dev/null* | *'Invalid file or object type'*)
5782 lt_cv_path_NM="$tmp_nm -B"
5786 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5788 lt_cv_path_NM="$tmp_nm -p"
5792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793 continue # so that we can try to find one that supports BSD flags
5802 : ${lt_cv_path_NM=no}
5805 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5807 if test "$lt_cv_path_NM" != "no"; then
5810 # Didn't find any BSD compatible name lister, look for dumpbin.
5811 if test -n "$ac_tool_prefix"; then
5812 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 if test -n "$DUMPBIN"; then
5822 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 DUMPBIN=$ac_cv_prog_DUMPBIN
5842 if test -n "$DUMPBIN"; then
5843 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5844 echo "${ECHO_T}$DUMPBIN" >&6; }
5846 { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5851 test -n "$DUMPBIN" && break
5854 if test -z "$DUMPBIN"; then
5855 ac_ct_DUMPBIN=$DUMPBIN
5856 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 if test -n "$ac_ct_DUMPBIN"; then
5866 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5886 if test -n "$ac_ct_DUMPBIN"; then
5887 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5888 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5890 { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5895 test -n "$ac_ct_DUMPBIN" && break
5898 if test "x$ac_ct_DUMPBIN" = x; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet. If you think this
5905 configuration is useful to you, please write to autoconf@gnu.org." >&5
5906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet. If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned=yes ;;
5911 DUMPBIN=$ac_ct_DUMPBIN
5916 if test "$DUMPBIN" != ":"; then
5920 test -z "$NM" && NM=nm
5927 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5928 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5929 if test "${lt_cv_nm_interface+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 lt_cv_nm_interface="BSD nm"
5933 echo "int some_variable = 0;" > conftest.$ac_ext
5934 (eval echo "\"\$as_me:5934: $ac_compile\"" >&5)
5935 (eval "$ac_compile" 2>conftest.err)
5936 cat conftest.err >&5
5937 (eval echo "\"\$as_me:5937: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5938 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5939 cat conftest.err >&5
5940 (eval echo "\"\$as_me:5940: output\"" >&5)
5941 cat conftest.out >&5
5942 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5943 lt_cv_nm_interface="MS dumpbin"
5947 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5948 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5950 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5951 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5953 if test "$LN_S" = "ln -s"; then
5954 { echo "$as_me:$LINENO: result: yes" >&5
5955 echo "${ECHO_T}yes" >&6; }
5957 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5958 echo "${ECHO_T}no, using $LN_S" >&6; }
5961 # find the maximum length of command line arguments
5962 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5963 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5964 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 # On DJGPP, this test can blow up pretty badly due to problems in libc
5973 # (any single argument exceeding 2000 bytes causes a buffer overrun
5974 # during glob expansion). Even if it were fixed, the result of this
5975 # check would be larger than it should be.
5976 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5980 # Under GNU Hurd, this test is not required because there is
5981 # no limit to the length of command line arguments.
5982 # Libtool will interpret -1 as no limit whatsoever
5983 lt_cv_sys_max_cmd_len=-1;
5986 cygwin* | mingw* | cegcc*)
5987 # On Win9x/ME, this test blows up -- it succeeds, but takes
5988 # about 5 minutes as the teststring grows exponentially.
5989 # Worse, since 9x/ME are not pre-emptively multitasking,
5990 # you end up with a "frozen" computer, even though with patience
5991 # the test eventually succeeds (with a max line length of 256k).
5992 # Instead, let's just punt: use the minimum linelength reported by
5993 # all of the supported platforms: 8192 (on NT/2K/XP).
5994 lt_cv_sys_max_cmd_len=8192;
5998 # On AmigaOS with pdksh, this test takes hours, literally.
5999 # So we just punt and use a minimum line length of 8192.
6000 lt_cv_sys_max_cmd_len=8192;
6003 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6004 # This has been around since 386BSD, at least. Likely further.
6005 if test -x /sbin/sysctl; then
6006 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6007 elif test -x /usr/sbin/sysctl; then
6008 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6010 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6012 # And add a safety zone
6013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6018 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6019 lt_cv_sys_max_cmd_len=196608
6023 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6024 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6025 # nice to cause kernel panics so lets avoid the loop below.
6026 # First set a reasonable default.
6027 lt_cv_sys_max_cmd_len=16384
6029 if test -x /sbin/sysconfig; then
6030 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6031 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6036 lt_cv_sys_max_cmd_len=102400
6038 sysv5* | sco5v6* | sysv4.2uw2*)
6039 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6040 if test -n "$kargmax"; then
6041 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6043 lt_cv_sys_max_cmd_len=32768
6047 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6048 if test -n "$lt_cv_sys_max_cmd_len"; then
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6052 # Make teststring a little bigger before we do anything with it.
6053 # a 1K string should be a reasonable start.
6054 for i in 1 2 3 4 5 6 7 8 ; do
6055 teststring=$teststring$teststring
6057 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6058 # If test is not a shell built-in, we'll probably end up computing a
6059 # maximum length that is only half of the actual maximum length, but
6061 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6062 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6063 test $i != 17 # 1/2 MB should be enough
6066 teststring=$teststring$teststring
6068 # Only check the string length outside the loop.
6069 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6071 # Add a significant safety factor because C++ compilers can tack on
6072 # massive amounts of additional arguments before passing them to the
6073 # linker. It appears as though 1/2 is a usable value.
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6081 if test -n $lt_cv_sys_max_cmd_len ; then
6082 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6083 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6085 { echo "$as_me:$LINENO: result: none" >&5
6086 echo "${ECHO_T}none" >&6; }
6088 max_cmd_len=$lt_cv_sys_max_cmd_len
6099 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6100 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6101 # Try some XSI features
6104 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6106 && eval 'test $(( 1 + 1 )) -eq 2 \
6107 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6109 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6110 echo "${ECHO_T}$xsi_shell" >&6; }
6113 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6114 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6116 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6118 && lt_shell_append=yes
6119 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6120 echo "${ECHO_T}$lt_shell_append" >&6; }
6123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6133 # test EBCDIC or ASCII
6134 case `echo X|tr X '\101'` in
6135 A) # ASCII based system
6136 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6137 lt_SP2NL='tr \040 \012'
6138 lt_NL2SP='tr \015\012 \040\040'
6140 *) # EBCDIC based system
6141 lt_SP2NL='tr \100 \n'
6142 lt_NL2SP='tr \r\n \100\100'
6154 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6155 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6156 if test "${lt_cv_ld_reload_flag+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 lt_cv_ld_reload_flag='-r'
6161 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6162 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6163 reload_flag=$lt_cv_ld_reload_flag
6164 case $reload_flag in
6166 *) reload_flag=" $reload_flag" ;;
6168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6171 if test "$GCC" = yes; then
6172 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 if test -n "$OBJDUMP"; then
6196 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 OBJDUMP=$ac_cv_prog_OBJDUMP
6216 if test -n "$OBJDUMP"; then
6217 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6218 echo "${ECHO_T}$OBJDUMP" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6226 if test -z "$ac_cv_prog_OBJDUMP"; then
6227 ac_ct_OBJDUMP=$OBJDUMP
6228 # Extract the first word of "objdump", so it can be a program name with args.
6229 set dummy objdump; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 if test -n "$ac_ct_OBJDUMP"; then
6236 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6256 if test -n "$ac_ct_OBJDUMP"; then
6257 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6258 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6264 if test "x$ac_ct_OBJDUMP" = x; then
6267 case $cross_compiling:$ac_tool_warned in
6269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6270 whose name does not start with the host triplet. If you think this
6271 configuration is useful to you, please write to autoconf@gnu.org." >&5
6272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6273 whose name does not start with the host triplet. If you think this
6274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6275 ac_tool_warned=yes ;;
6277 OBJDUMP=$ac_ct_OBJDUMP
6280 OBJDUMP="$ac_cv_prog_OBJDUMP"
6283 test -z "$OBJDUMP" && OBJDUMP=objdump
6293 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6294 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6295 if test "${lt_cv_deplibs_check_method+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 lt_cv_file_magic_cmd='$MAGIC_CMD'
6299 lt_cv_file_magic_test_file=
6300 lt_cv_deplibs_check_method='unknown'
6301 # Need to set the preceding variable on all platforms that support
6302 # interlibrary dependencies.
6303 # 'none' -- dependencies not supported.
6304 # `unknown' -- same as none, but documents that we really don't know.
6305 # 'pass_all' -- all dependencies passed with no checks.
6306 # 'test_compile' -- check by making test program.
6307 # 'file_magic [[regex]]' -- check by looking for files in library path
6308 # which responds to the $file_magic_cmd with a given extended regex.
6309 # If you have `file' or equivalent on your system and you're not sure
6310 # whether `pass_all' will *always* work, you probably want this one.
6314 lt_cv_deplibs_check_method=pass_all
6318 lt_cv_deplibs_check_method=pass_all
6322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6323 lt_cv_file_magic_cmd='/usr/bin/file -L'
6324 lt_cv_file_magic_test_file=/shlib/libc.so
6328 # func_win32_libid is a shell function defined in ltmain.sh
6329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330 lt_cv_file_magic_cmd='func_win32_libid'
6334 # Base MSYS/MinGW do not provide the 'file' command needed by
6335 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6336 # unless we find 'file', for example because we are cross-compiling.
6337 if ( file / ) >/dev/null 2>&1; then
6338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6339 lt_cv_file_magic_cmd='func_win32_libid'
6341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6342 lt_cv_file_magic_cmd='$OBJDUMP -f'
6347 # use the weaker test based on 'objdump'. See mingw*.
6348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6349 lt_cv_file_magic_cmd='$OBJDUMP -f'
6352 darwin* | rhapsody*)
6353 lt_cv_deplibs_check_method=pass_all
6356 freebsd* | dragonfly*)
6357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6360 # Not sure whether the presence of OpenBSD here was a mistake.
6361 # Let's accept both of them until this is cleared up.
6362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6363 lt_cv_file_magic_cmd=/usr/bin/file
6364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6368 lt_cv_deplibs_check_method=pass_all
6373 lt_cv_deplibs_check_method=pass_all
6376 hpux10.20* | hpux11*)
6377 lt_cv_file_magic_cmd=/usr/bin/file
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6384 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]'
6385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6399 irix5* | irix6* | nonstopux*)
6401 *-32|*"-32 ") libmagic=32-bit;;
6402 *-n32|*"-n32 ") libmagic=N32;;
6403 *-64|*"-64 ") libmagic=64-bit;;
6404 *) libmagic=never-match;;
6406 lt_cv_deplibs_check_method=pass_all
6409 # This must be Linux ELF.
6410 linux* | k*bsd*-gnu)
6411 lt_cv_deplibs_check_method=pass_all
6415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6424 lt_cv_file_magic_cmd=/usr/bin/file
6425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6429 lt_cv_deplibs_check_method=pass_all
6433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6440 osf3* | osf4* | osf5*)
6441 lt_cv_deplibs_check_method=pass_all
6445 lt_cv_deplibs_check_method=pass_all
6449 lt_cv_deplibs_check_method=pass_all
6452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6453 lt_cv_deplibs_check_method=pass_all
6457 case $host_vendor in
6459 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]'
6460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6463 lt_cv_deplibs_check_method=pass_all
6466 lt_cv_file_magic_cmd='/bin/file'
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6470 lt_cv_file_magic_cmd='/bin/file'
6471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6472 lt_cv_file_magic_test_file=/lib/libc.so
6475 lt_cv_deplibs_check_method=pass_all
6478 lt_cv_deplibs_check_method=pass_all
6484 lt_cv_deplibs_check_method=pass_all
6489 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6490 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6491 file_magic_cmd=$lt_cv_file_magic_cmd
6492 deplibs_check_method=$lt_cv_deplibs_check_method
6493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}ar; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_AR+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 if test -n "$AR"; then
6515 ac_cv_prog_AR="$AR" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_AR="${ac_tool_prefix}ar"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 if test -n "$AR"; then
6536 { echo "$as_me:$LINENO: result: $AR" >&5
6537 echo "${ECHO_T}$AR" >&6; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6545 if test -z "$ac_cv_prog_AR"; then
6547 # Extract the first word of "ar", so it can be a program name with args.
6548 set dummy ar; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 if test -n "$ac_ct_AR"; then
6555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_ac_ct_AR="ar"
6565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6575 if test -n "$ac_ct_AR"; then
6576 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6577 echo "${ECHO_T}$ac_ct_AR" >&6; }
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6583 if test "x$ac_ct_AR" = x; then
6586 case $cross_compiling:$ac_tool_warned in
6588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6589 whose name does not start with the host triplet. If you think this
6590 configuration is useful to you, please write to autoconf@gnu.org." >&5
6591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6592 whose name does not start with the host triplet. If you think this
6593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6594 ac_tool_warned=yes ;;
6602 test -z "$AR" && AR=ar
6603 test -z "$AR_FLAGS" && AR_FLAGS=cru
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}strip; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_prog_STRIP+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 if test -n "$STRIP"; then
6624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 STRIP=$ac_cv_prog_STRIP
6644 if test -n "$STRIP"; then
6645 { echo "$as_me:$LINENO: result: $STRIP" >&5
6646 echo "${ECHO_T}$STRIP" >&6; }
6648 { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6654 if test -z "$ac_cv_prog_STRIP"; then
6656 # Extract the first word of "strip", so it can be a program name with args.
6657 set dummy strip; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 if test -n "$ac_ct_STRIP"; then
6664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_ac_ct_STRIP="strip"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6684 if test -n "$ac_ct_STRIP"; then
6685 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6686 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6688 { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6692 if test "x$ac_ct_STRIP" = x; then
6695 case $cross_compiling:$ac_tool_warned in
6697 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6698 whose name does not start with the host triplet. If you think this
6699 configuration is useful to you, please write to autoconf@gnu.org." >&5
6700 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6701 whose name does not start with the host triplet. If you think this
6702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6703 ac_tool_warned=yes ;;
6708 STRIP="$ac_cv_prog_STRIP"
6711 test -z "$STRIP" && STRIP=:
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 if test -n "$RANLIB"; then
6727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758 ac_ct_RANLIB=$RANLIB
6759 # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test -n "$ac_ct_RANLIB"; then
6767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_RANLIB="ranlib"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6795 if test "x$ac_ct_RANLIB" = x; then
6798 case $cross_compiling:$ac_tool_warned in
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet. If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6808 RANLIB=$ac_ct_RANLIB
6811 RANLIB="$ac_cv_prog_RANLIB"
6814 test -z "$RANLIB" && RANLIB=:
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6826 if test -n "$RANLIB"; then
6829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6835 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6871 # If no C compiler was specified, use CC.
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877 # Allow CC to be a program name with arguments.
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6883 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897 # Define system-specific variables.
6902 cygwin* | mingw* | pw32* | cegcc*)
6903 symcode='[ABCDGISTW]'
6906 if test "$host_cpu" = ia64; then
6907 symcode='[ABCDEGRST]'
6911 symcode='[BCDEGRST]'
6914 symcode='[BCDEGQRST]'
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936 symcode='[ABCDGIRSTW]' ;;
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6946 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'"
6948 # Handle CRLF in mingw tool chain
6952 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6959 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960 symxfrm="\\1 $ac_symprfx\\2 \\2"
6962 # Write the raw and C identifiers.
6963 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964 # Fake it for dumpbin and say T for any non-static function
6965 # and D for any global variable.
6966 # Also find C++ and __fastcall symbols from MSVC++,
6967 # which start with @ or ?.
6968 lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 " {last_section=section; section=\$ 3};"\
6970 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971 " \$ 0!~/External *\|/{next};"\
6972 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973 " {if(hide[section]) next};"\
6974 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978 " ' prfx=^$ac_symprfx"
6980 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6983 # Check to see that the pipe works correctly.
6987 cat > conftest.$ac_ext <<_LT_EOF
6992 void nm_test_func(void);
6993 void nm_test_func(void){}
6997 int main(){nm_test_var='a';nm_test_func();return(0);}
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001 (eval $ac_compile) 2>&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; then
7005 # Now try to grab the symbols.
7007 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7008 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && test -s "$nlist"; then
7012 # Try sorting and uniquifying the output.
7013 if sort "$nlist" | uniq > "$nlist"T; then
7014 mv -f "$nlist"T "$nlist"
7019 # Make sure that we snagged all the symbols we need.
7020 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022 cat <<_LT_EOF > conftest.$ac_ext
7028 # Now generate the symbol file.
7029 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7031 cat <<_LT_EOF >> conftest.$ac_ext
7033 /* The mapping between symbol names and symbols. */
7038 lt__PROGRAM__LTX_preloaded_symbols[] =
7040 { "@PROGRAM@", (void *) 0 },
7042 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043 cat <<\_LT_EOF >> conftest.$ac_ext
7047 /* This works around a problem in FreeBSD linker */
7048 #ifdef FREEBSD_WORKAROUND
7049 static const void *lt_preloaded_setup() {
7050 return lt__PROGRAM__LTX_preloaded_symbols;
7058 # Now try linking the two files.
7059 mv conftest.$ac_objext conftstm.$ac_objext
7060 lt_save_LIBS="$LIBS"
7061 lt_save_CFLAGS="$CFLAGS"
7062 LIBS="conftstm.$ac_objext"
7063 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7071 LIBS="$lt_save_LIBS"
7072 CFLAGS="$lt_save_CFLAGS"
7074 echo "cannot find nm_test_func in $nlist" >&5
7077 echo "cannot find nm_test_var in $nlist" >&5
7080 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7083 echo "$progname: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7086 rm -rf conftest* conftst*
7088 # Do not use the global_symbol_pipe unless it works.
7089 if test "$pipe_works" = yes; then
7092 lt_cv_sys_global_symbol_pipe=
7098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099 lt_cv_sys_global_symbol_to_cdecl=
7101 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7102 { echo "$as_me:$LINENO: result: failed" >&5
7103 echo "${ECHO_T}failed" >&6; }
7105 { echo "$as_me:$LINENO: result: ok" >&5
7106 echo "${ECHO_T}ok" >&6; }
7130 # Check whether --enable-libtool-lock was given.
7131 if test "${enable_libtool_lock+set}" = set; then
7132 enableval=$enable_libtool_lock;
7135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7137 # Some flags need to be propagated to the compiler or linker for good
7141 # Find out which ABI we are using.
7142 echo 'int i;' > conftest.$ac_ext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; then
7148 case `/usr/bin/file conftest.$ac_objext` in
7160 # Find out which ABI we are using.
7161 echo '#line 7161 "configure"' > conftest.$ac_ext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; then
7167 if test "$lt_cv_prog_gnu_ld" = yes; then
7168 case `/usr/bin/file conftest.$ac_objext` in
7170 LD="${LD-ld} -melf32bsmip"
7173 LD="${LD-ld} -melf32bmipn32"
7176 LD="${LD-ld} -melf64bmip"
7180 case `/usr/bin/file conftest.$ac_objext` in
7196 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; then
7205 case `/usr/bin/file conftest.o` in
7208 x86_64-*kfreebsd*-gnu)
7209 LD="${LD-ld} -m elf_i386_fbsd"
7212 LD="${LD-ld} -m elf_i386"
7214 ppc64-*linux*|powerpc64-*linux*)
7215 LD="${LD-ld} -m elf32ppclinux"
7218 LD="${LD-ld} -m elf_s390"
7221 LD="${LD-ld} -m elf32_sparc"
7227 x86_64-*kfreebsd*-gnu)
7228 LD="${LD-ld} -m elf_x86_64_fbsd"
7231 LD="${LD-ld} -m elf_x86_64"
7233 ppc*-*linux*|powerpc*-*linux*)
7234 LD="${LD-ld} -m elf64ppc"
7236 s390*-*linux*|s390*-*tpf*)
7237 LD="${LD-ld} -m elf64_s390"
7240 LD="${LD-ld} -m elf64_sparc"
7250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251 SAVE_CFLAGS="$CFLAGS"
7252 CFLAGS="$CFLAGS -belf"
7253 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7254 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (ac_try="$ac_link"
7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283 *) ac_try_echo=$ac_try;;
7285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286 (eval "$ac_link") 2>conftest.er1
7288 grep -v '^ *+' conftest.er1 >conftest.err
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest$ac_exeext &&
7296 $as_test_x conftest$ac_exeext; then
7297 lt_cv_cc_needs_belf=yes
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7302 lt_cv_cc_needs_belf=no
7305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7306 conftest$ac_exeext conftest.$ac_ext
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7315 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7316 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7317 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7318 CFLAGS="$SAVE_CFLAGS"
7322 # Find out which ABI we are using.
7323 echo 'int i;' > conftest.$ac_ext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; then
7329 case `/usr/bin/file conftest.o` in
7331 case $lt_cv_prog_gnu_ld in
7332 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7334 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7346 need_locks="$enable_libtool_lock"
7350 rhapsody* | darwin*)
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 if test -n "$DSYMUTIL"; then
7360 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7380 if test -n "$DSYMUTIL"; then
7381 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7382 echo "${ECHO_T}$DSYMUTIL" >&6; }
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7390 if test -z "$ac_cv_prog_DSYMUTIL"; then
7391 ac_ct_DSYMUTIL=$DSYMUTIL
7392 # Extract the first word of "dsymutil", so it can be a program name with args.
7393 set dummy dsymutil; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 if test -n "$ac_ct_DSYMUTIL"; then
7400 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7420 if test -n "$ac_ct_DSYMUTIL"; then
7421 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7422 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7428 if test "x$ac_ct_DSYMUTIL" = x; then
7431 case $cross_compiling:$ac_tool_warned in
7433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7434 whose name does not start with the host triplet. If you think this
7435 configuration is useful to you, please write to autoconf@gnu.org." >&5
7436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7437 whose name does not start with the host triplet. If you think this
7438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7439 ac_tool_warned=yes ;;
7441 DSYMUTIL=$ac_ct_DSYMUTIL
7444 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7447 if test -n "$ac_tool_prefix"; then
7448 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 if test -n "$NMEDIT"; then
7456 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 NMEDIT=$ac_cv_prog_NMEDIT
7476 if test -n "$NMEDIT"; then
7477 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7478 echo "${ECHO_T}$NMEDIT" >&6; }
7480 { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7486 if test -z "$ac_cv_prog_NMEDIT"; then
7487 ac_ct_NMEDIT=$NMEDIT
7488 # Extract the first word of "nmedit", so it can be a program name with args.
7489 set dummy nmedit; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 if test -n "$ac_ct_NMEDIT"; then
7496 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7516 if test -n "$ac_ct_NMEDIT"; then
7517 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7518 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7520 { echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6; }
7524 if test "x$ac_ct_NMEDIT" = x; then
7527 case $cross_compiling:$ac_tool_warned in
7529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7530 whose name does not start with the host triplet. If you think this
7531 configuration is useful to you, please write to autoconf@gnu.org." >&5
7532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7533 whose name does not start with the host triplet. If you think this
7534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7535 ac_tool_warned=yes ;;
7537 NMEDIT=$ac_ct_NMEDIT
7540 NMEDIT="$ac_cv_prog_NMEDIT"
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_prog_LIPO+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 if test -n "$LIPO"; then
7552 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 LIPO=$ac_cv_prog_LIPO
7572 if test -n "$LIPO"; then
7573 { echo "$as_me:$LINENO: result: $LIPO" >&5
7574 echo "${ECHO_T}$LIPO" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7582 if test -z "$ac_cv_prog_LIPO"; then
7584 # Extract the first word of "lipo", so it can be a program name with args.
7585 set dummy lipo; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 if test -n "$ac_ct_LIPO"; then
7592 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_prog_ac_ct_LIPO="lipo"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7612 if test -n "$ac_ct_LIPO"; then
7613 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7614 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7620 if test "x$ac_ct_LIPO" = x; then
7623 case $cross_compiling:$ac_tool_warned in
7625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7626 whose name does not start with the host triplet. If you think this
7627 configuration is useful to you, please write to autoconf@gnu.org." >&5
7628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7629 whose name does not start with the host triplet. If you think this
7630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7631 ac_tool_warned=yes ;;
7636 LIPO="$ac_cv_prog_LIPO"
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}otool; ac_word=$2
7642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7644 if test "${ac_cv_prog_OTOOL+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 if test -n "$OTOOL"; then
7648 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 OTOOL=$ac_cv_prog_OTOOL
7668 if test -n "$OTOOL"; then
7669 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7670 echo "${ECHO_T}$OTOOL" >&6; }
7672 { echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6; }
7678 if test -z "$ac_cv_prog_OTOOL"; then
7680 # Extract the first word of "otool", so it can be a program name with args.
7681 set dummy otool; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 if test -n "$ac_ct_OTOOL"; then
7688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_ac_ct_OTOOL="otool"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7708 if test -n "$ac_ct_OTOOL"; then
7709 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7710 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7712 { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7716 if test "x$ac_ct_OTOOL" = x; then
7719 case $cross_compiling:$ac_tool_warned in
7721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7722 whose name does not start with the host triplet. If you think this
7723 configuration is useful to you, please write to autoconf@gnu.org." >&5
7724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7725 whose name does not start with the host triplet. If you think this
7726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7727 ac_tool_warned=yes ;;
7732 OTOOL="$ac_cv_prog_OTOOL"
7735 if test -n "$ac_tool_prefix"; then
7736 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 if test -n "$OTOOL64"; then
7744 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 OTOOL64=$ac_cv_prog_OTOOL64
7764 if test -n "$OTOOL64"; then
7765 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7766 echo "${ECHO_T}$OTOOL64" >&6; }
7768 { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7774 if test -z "$ac_cv_prog_OTOOL64"; then
7775 ac_ct_OTOOL64=$OTOOL64
7776 # Extract the first word of "otool64", so it can be a program name with args.
7777 set dummy otool64; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 if test -n "$ac_ct_OTOOL64"; then
7784 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793 ac_cv_prog_ac_ct_OTOOL64="otool64"
7794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7804 if test -n "$ac_ct_OTOOL64"; then
7805 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7806 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7812 if test "x$ac_ct_OTOOL64" = x; then
7815 case $cross_compiling:$ac_tool_warned in
7817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7818 whose name does not start with the host triplet. If you think this
7819 configuration is useful to you, please write to autoconf@gnu.org." >&5
7820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7821 whose name does not start with the host triplet. If you think this
7822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7823 ac_tool_warned=yes ;;
7825 OTOOL64=$ac_ct_OTOOL64
7828 OTOOL64="$ac_cv_prog_OTOOL64"
7857 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7858 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7859 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 lt_cv_apple_cc_single_mod=no
7863 if test -z "${LT_MULTI_MODULE}"; then
7864 # By default we will add the -single_module flag. You can override
7865 # by either setting the environment variable LT_MULTI_MODULE
7866 # non-empty at configure time, or by adding -multi_module to the
7868 rm -rf libconftest.dylib*
7869 echo "int foo(void){return 1;}" > conftest.c
7870 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib -Wl,-single_module conftest.c" >&5
7872 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7875 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7876 lt_cv_apple_cc_single_mod=yes
7878 cat conftest.err >&5
7880 rm -rf libconftest.dylib*
7884 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7885 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7886 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7887 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7888 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 lt_cv_ld_exported_symbols_list=no
7892 save_LDFLAGS=$LDFLAGS
7893 echo "_main" > conftest.sym
7894 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7895 cat >conftest.$ac_ext <<_ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (ac_try="$ac_link"
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_link") 2>conftest.er1
7919 grep -v '^ *+' conftest.er1 >conftest.err
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && {
7924 test -z "$ac_c_werror_flag" ||
7925 test ! -s conftest.err
7926 } && test -s conftest$ac_exeext &&
7927 $as_test_x conftest$ac_exeext; then
7928 lt_cv_ld_exported_symbols_list=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 lt_cv_ld_exported_symbols_list=no
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937 conftest$ac_exeext conftest.$ac_ext
7938 LDFLAGS="$save_LDFLAGS"
7941 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7942 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7944 rhapsody* | darwin1.[012])
7945 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7948 darwin*) # darwin 5.x on
7949 # if running on 10.5 or later, the deployment target defaults
7950 # to the OS version, if on x86, and 10.4, the deployment
7951 # target defaults to 10.4. Don't you love it?
7952 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7953 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7954 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7956 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7958 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7962 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7963 _lt_dar_single_mod='$single_module'
7965 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7966 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7968 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7970 if test "$DSYMUTIL" != ":"; then
7971 _lt_dsymutil='~$DSYMUTIL $lib || :'
7978 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7979 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7980 if test "${ac_cv_header_stdc+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8019 ac_cv_header_stdc=yes
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_cv_header_stdc=no
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 if test $ac_cv_header_stdc = yes; then
8030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8041 $EGREP "memchr" >/dev/null 2>&1; then
8044 ac_cv_header_stdc=no
8050 if test $ac_cv_header_stdc = yes; then
8051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8052 cat >conftest.$ac_ext <<_ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062 $EGREP "free" >/dev/null 2>&1; then
8065 ac_cv_header_stdc=no
8071 if test $ac_cv_header_stdc = yes; then
8072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8073 if test "$cross_compiling" = yes; then
8076 cat >conftest.$ac_ext <<_ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8084 #if ((' ' & 0x0FF) == 0x020)
8085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8088 # define ISLOWER(c) \
8089 (('a' <= (c) && (c) <= 'i') \
8090 || ('j' <= (c) && (c) <= 'r') \
8091 || ('s' <= (c) && (c) <= 'z'))
8092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8100 for (i = 0; i < 256; i++)
8101 if (XOR (islower (i), ISLOWER (i))
8102 || toupper (i) != TOUPPER (i))
8107 rm -f conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_link") 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8129 echo "$as_me: program exited with status $ac_status" >&5
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_cv_header_stdc=no
8136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8143 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8144 if test $ac_cv_header_stdc = yes; then
8146 cat >>confdefs.h <<\_ACEOF
8147 #define STDC_HEADERS 1
8152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8163 inttypes.h stdint.h unistd.h
8165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8179 #include <$ac_header>
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 eval "$as_ac_Header=yes"
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 eval "$as_ac_Header=no"
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 ac_res=`eval echo '${'$as_ac_Header'}'`
8209 { echo "$as_me:$LINENO: result: $ac_res" >&5
8210 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212 cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8222 for ac_header in dlfcn.h
8224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8238 #include <$ac_header>
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_compile") 2>conftest.er1
8249 grep -v '^ *+' conftest.er1 >conftest.err
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && {
8254 test -z "$ac_c_werror_flag" ||
8255 test ! -s conftest.err
8256 } && test -s conftest.$ac_objext; then
8257 eval "$as_ac_Header=yes"
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8262 eval "$as_ac_Header=no"
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 ac_res=`eval echo '${'$as_ac_Header'}'`
8268 { echo "$as_me:$LINENO: result: $ac_res" >&5
8269 echo "${ECHO_T}$ac_res" >&6; }
8270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8271 cat >>confdefs.h <<_ACEOF
8272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282 ac_cpp='$CXXCPP $CPPFLAGS'
8283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8286 if test -z "$CXX"; then
8287 if test -n "$CCC"; then
8290 if test -n "$ac_tool_prefix"; then
8291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297 if test "${ac_cv_prog_CXX+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 if test -n "$CXX"; then
8301 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 if test -n "$CXX"; then
8322 { echo "$as_me:$LINENO: result: $CXX" >&5
8323 echo "${ECHO_T}$CXX" >&6; }
8325 { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8330 test -n "$CXX" && break
8333 if test -z "$CXX"; then
8335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8337 # Extract the first word of "$ac_prog", so it can be a program name with args.
8338 set dummy $ac_prog; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 if test -n "$ac_ct_CXX"; then
8345 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_ac_ct_CXX="$ac_prog"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8365 if test -n "$ac_ct_CXX"; then
8366 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8367 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8369 { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8374 test -n "$ac_ct_CXX" && break
8377 if test "x$ac_ct_CXX" = x; then
8380 case $cross_compiling:$ac_tool_warned in
8382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8383 whose name does not start with the host triplet. If you think this
8384 configuration is useful to you, please write to autoconf@gnu.org." >&5
8385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8386 whose name does not start with the host triplet. If you think this
8387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8388 ac_tool_warned=yes ;;
8396 # Provide some information about the compiler.
8397 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8398 ac_compiler=`set X $ac_compile; echo $2`
8399 { (ac_try="$ac_compiler --version >&5"
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compiler --version >&5") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }
8409 { (ac_try="$ac_compiler -v >&5"
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_compiler -v >&5") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }
8419 { (ac_try="$ac_compiler -V >&5"
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_compiler -V >&5") 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }
8430 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8431 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compile") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_cxx_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest.$ac_objext; then
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8482 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8483 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8484 GXX=`test $ac_compiler_gnu = yes && echo yes`
8485 ac_test_CXXFLAGS=${CXXFLAGS+set}
8486 ac_save_CXXFLAGS=$CXXFLAGS
8487 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8488 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8489 if test "${ac_cv_prog_cxx_g+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8493 ac_cxx_werror_flag=yes
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_compile") 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_cxx_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest.$ac_objext; then
8528 ac_cv_prog_cxx_g=yes
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8558 grep -v '^ *+' conftest.er1 >conftest.err
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_cxx_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_cxx_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8605 ac_cv_prog_cxx_g=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8624 if test "$ac_test_CXXFLAGS" = set; then
8625 CXXFLAGS=$ac_save_CXXFLAGS
8626 elif test $ac_cv_prog_cxx_g = yes; then
8627 if test "$GXX" = yes; then
8633 if test "$GXX" = yes; then
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8645 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8646 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8647 (test "X$CXX" != "Xg++"))) ; then
8649 ac_cpp='$CXXCPP $CPPFLAGS'
8650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8653 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8654 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8655 if test -z "$CXXCPP"; then
8656 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 # Double quotes because CXXCPP needs to be expanded
8660 for CXXCPP in "$CXX -E" "/lib/cpp"
8663 for ac_cxx_preproc_warn_flag in '' yes
8665 # Use a header file that comes with gcc, so configuring glibc
8666 # with a fresh cross-compiler works.
8667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668 # <limits.h> exists even on freestanding compilers.
8669 # On the NeXT, cc -E runs the code through the compiler's parser,
8670 # not just through cpp. "Syntax error" is here to catch this case.
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8678 # include <limits.h>
8680 # include <assert.h>
8684 if { (ac_try="$ac_cpp conftest.$ac_ext"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } >/dev/null && {
8697 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8698 test ! -s conftest.err
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 # Broken: fails on valid input.
8709 rm -f conftest.err conftest.$ac_ext
8711 # OK, works on sane cases. Now check whether nonexistent headers
8712 # can be detected and how.
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <ac_nonexistent.h>
8721 if { (ac_try="$ac_cpp conftest.$ac_ext"
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8729 grep -v '^ *+' conftest.er1 >conftest.err
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } >/dev/null && {
8734 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8735 test ! -s conftest.err
8737 # Broken: success on invalid input.
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 # Passes both tests.
8748 rm -f conftest.err conftest.$ac_ext
8751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8752 rm -f conftest.err conftest.$ac_ext
8753 if $ac_preproc_ok; then
8758 ac_cv_prog_CXXCPP=$CXXCPP
8761 CXXCPP=$ac_cv_prog_CXXCPP
8763 ac_cv_prog_CXXCPP=$CXXCPP
8765 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8766 echo "${ECHO_T}$CXXCPP" >&6; }
8768 for ac_cxx_preproc_warn_flag in '' yes
8770 # Use a header file that comes with gcc, so configuring glibc
8771 # with a fresh cross-compiler works.
8772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8773 # <limits.h> exists even on freestanding compilers.
8774 # On the NeXT, cc -E runs the code through the compiler's parser,
8775 # not just through cpp. "Syntax error" is here to catch this case.
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8783 # include <limits.h>
8785 # include <assert.h>
8789 if { (ac_try="$ac_cpp conftest.$ac_ext"
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } >/dev/null && {
8802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8803 test ! -s conftest.err
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 # Broken: fails on valid input.
8814 rm -f conftest.err conftest.$ac_ext
8816 # OK, works on sane cases. Now check whether nonexistent headers
8817 # can be detected and how.
8818 cat >conftest.$ac_ext <<_ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824 #include <ac_nonexistent.h>
8826 if { (ac_try="$ac_cpp conftest.$ac_ext"
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } >/dev/null && {
8839 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8840 test ! -s conftest.err
8842 # Broken: success on invalid input.
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 # Passes both tests.
8853 rm -f conftest.err conftest.$ac_ext
8856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8857 rm -f conftest.err conftest.$ac_ext
8858 if $ac_preproc_ok; then
8861 _lt_caught_CXX_error=yes
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871 _lt_caught_CXX_error=yes
8879 # Check whether --enable-shared was given.
8880 if test "${enable_shared+set}" = set; then
8881 enableval=$enable_shared; p=${PACKAGE-default}
8883 yes) enable_shared=yes ;;
8884 no) enable_shared=no ;;
8887 # Look at the argument we got. We use all the common list separators.
8888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889 for pkg in $enableval; do
8891 if test "X$pkg" = "X$p"; then
8908 # Check whether --enable-static was given.
8909 if test "${enable_static+set}" = set; then
8910 enableval=$enable_static; p=${PACKAGE-default}
8912 yes) enable_static=yes ;;
8913 no) enable_static=no ;;
8916 # Look at the argument we got. We use all the common list separators.
8917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8918 for pkg in $enableval; do
8920 if test "X$pkg" = "X$p"; then
8949 # Check whether --with-pic was given.
8950 if test "${with_pic+set}" = set; then
8951 withval=$with_pic; pic_mode="$withval"
8957 test -z "$pic_mode" && pic_mode=default
8965 # Check whether --enable-fast-install was given.
8966 if test "${enable_fast_install+set}" = set; then
8967 enableval=$enable_fast_install; p=${PACKAGE-default}
8969 yes) enable_fast_install=yes ;;
8970 no) enable_fast_install=no ;;
8972 enable_fast_install=no
8973 # Look at the argument we got. We use all the common list separators.
8974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975 for pkg in $enableval; do
8977 if test "X$pkg" = "X$p"; then
8978 enable_fast_install=yes
8985 enable_fast_install=yes
8998 # This can be used to rebuild libtool when needed
8999 LIBTOOL_DEPS="$ltmain"
9001 # Always use our own libtool.
9002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9028 test -z "$LN_S" && LN_S="ln -s"
9043 if test -n "${ZSH_VERSION+set}" ; then
9044 setopt NO_GLOB_SUBST
9047 { echo "$as_me:$LINENO: checking for objdir" >&5
9048 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9049 if test "${lt_cv_objdir+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 rm -f .libs 2>/dev/null
9053 mkdir .libs 2>/dev/null
9054 if test -d .libs; then
9057 # MS-DOS does not allow filenames that begin with a dot.
9060 rmdir .libs 2>/dev/null
9062 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9063 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9064 objdir=$lt_cv_objdir
9070 cat >>confdefs.h <<_ACEOF
9071 #define LT_OBJDIR "$lt_cv_objdir/"
9092 # AIX sometimes has problems with the GCC collect2 program. For some
9093 # reason, if we set the COLLECT_NAMES environment variable, the problems
9094 # vanish in a puff of smoke.
9095 if test "X${COLLECT_NAMES+set}" != Xset; then
9097 export COLLECT_NAMES
9102 # Sed substitution that helps us do robust quoting. It backslashifies
9103 # metacharacters that are still active within double-quoted strings.
9104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9106 # Same as above, but do not quote variable references.
9107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9109 # Sed substitution to delay expansion of an escaped shell variable in a
9110 # double_quote_subst'ed string.
9111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9113 # Sed substitution to delay expansion of an escaped single quote.
9114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9116 # Sed substitution to avoid accidental globbing in evaled expressions
9117 no_glob_subst='s/\*/\\\*/g'
9121 can_build_shared=yes
9123 # All known linkers require a `.a' archive for static linking (except MSVC,
9124 # which needs '.lib').
9127 with_gnu_ld="$lt_cv_prog_gnu_ld"
9130 old_CFLAGS="$CFLAGS"
9132 # Set sane defaults for various variables
9133 test -z "$CC" && CC=cc
9134 test -z "$LTCC" && LTCC=$CC
9135 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9136 test -z "$LD" && LD=ld
9137 test -z "$ac_objext" && ac_objext=o
9139 for cc_temp in $compiler""; do
9141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9147 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9150 # Only perform the check for file, if the check method requires it
9151 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9152 case $deplibs_check_method in
9154 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9155 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9156 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9157 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9165 lt_save_MAGIC_CMD="$MAGIC_CMD"
9166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9168 for ac_dir in $ac_dummy; do
9170 test -z "$ac_dir" && ac_dir=.
9171 if test -f $ac_dir/${ac_tool_prefix}file; then
9172 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9173 if test -n "$file_magic_test_file"; then
9174 case $deplibs_check_method in
9176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9179 $EGREP "$file_magic_regex" > /dev/null; then
9184 *** Warning: the command libtool uses to detect shared libraries,
9185 *** $file_magic_cmd, produces output that libtool cannot recognize.
9186 *** The result is that libtool may fail to recognize shared libraries
9187 *** as such. This will affect the creation of libtool libraries that
9188 *** depend on shared libraries, but programs linked with such libtool
9189 *** libraries will work regardless of this problem. Nevertheless, you
9190 *** may want to report the problem to your system manager and/or to
9191 *** bug-libtool@gnu.org
9201 MAGIC_CMD="$lt_save_MAGIC_CMD"
9206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9207 if test -n "$MAGIC_CMD"; then
9208 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9209 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9211 { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9219 if test -z "$lt_cv_path_MAGIC_CMD"; then
9220 if test -n "$ac_tool_prefix"; then
9221 { echo "$as_me:$LINENO: checking for file" >&5
9222 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9231 lt_save_MAGIC_CMD="$MAGIC_CMD"
9232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9234 for ac_dir in $ac_dummy; do
9236 test -z "$ac_dir" && ac_dir=.
9237 if test -f $ac_dir/file; then
9238 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9239 if test -n "$file_magic_test_file"; then
9240 case $deplibs_check_method in
9242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9245 $EGREP "$file_magic_regex" > /dev/null; then
9250 *** Warning: the command libtool uses to detect shared libraries,
9251 *** $file_magic_cmd, produces output that libtool cannot recognize.
9252 *** The result is that libtool may fail to recognize shared libraries
9253 *** as such. This will affect the creation of libtool libraries that
9254 *** depend on shared libraries, but programs linked with such libtool
9255 *** libraries will work regardless of this problem. Nevertheless, you
9256 *** may want to report the problem to your system manager and/or to
9257 *** bug-libtool@gnu.org
9267 MAGIC_CMD="$lt_save_MAGIC_CMD"
9272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9273 if test -n "$MAGIC_CMD"; then
9274 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9275 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9277 { echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6; }
9291 # Use C for the default configuration in the libtool script
9295 ac_cpp='$CPP $CPPFLAGS'
9296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9301 # Source file extension for C test sources.
9304 # Object file extension for compiled C test sources.
9308 # Code to be used in simple compile tests
9309 lt_simple_compile_test_code="int some_variable = 0;"
9311 # Code to be used in simple link tests
9312 lt_simple_link_test_code='int main(){return(0);}'
9320 # If no C compiler was specified, use CC.
9323 # If no C compiler flags were specified, use CFLAGS.
9324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9326 # Allow CC to be a program name with arguments.
9329 # Save the default compiler, since it gets overwritten when the other
9330 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9331 compiler_DEFAULT=$CC
9333 # save warnings/boilerplate of simple test code
9334 ac_outfile=conftest.$ac_objext
9335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9337 _lt_compiler_boilerplate=`cat conftest.err`
9340 ac_outfile=conftest.$ac_objext
9341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9343 _lt_linker_boilerplate=`cat conftest.err`
9348 ## There is no encapsulation within the following macros, do not change
9349 ## the running order or otherwise move them around unless you know exactly
9350 ## what you are doing...
9351 if test -n "$compiler"; then
9353 lt_prog_compiler_no_builtin_flag=
9355 if test "$GCC" = yes; then
9356 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9358 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9359 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9360 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 lt_cv_prog_compiler_rtti_exceptions=no
9364 ac_outfile=conftest.$ac_objext
9365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366 lt_compiler_flag="-fno-rtti -fno-exceptions"
9367 # Insert the option either (1) after the last *FLAGS variable, or
9368 # (2) before a word containing "conftest.", or (3) at the end.
9369 # Note that $ac_compile itself does not contain backslashes and begins
9370 # with a dollar sign (not a hyphen), so the echo should work correctly.
9371 # The option is referenced via a variable to avoid confusing sed.
9372 lt_compile=`echo "$ac_compile" | $SED \
9373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375 -e 's:$: $lt_compiler_flag:'`
9376 (eval echo "\"\$as_me:9376: $lt_compile\"" >&5)
9377 (eval "$lt_compile" 2>conftest.err)
9379 cat conftest.err >&5
9380 echo "$as_me:9380: \$? = $ac_status" >&5
9381 if (exit $ac_status) && test -s "$ac_outfile"; then
9382 # The compiler can only warn and ignore the option if not recognized
9383 # So say no if there are warnings other than the usual output.
9384 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9387 lt_cv_prog_compiler_rtti_exceptions=yes
9393 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9394 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9396 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9397 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9409 lt_prog_compiler_wl=
9410 lt_prog_compiler_pic=
9411 lt_prog_compiler_static=
9413 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9414 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9416 if test "$GCC" = yes; then
9417 lt_prog_compiler_wl='-Wl,'
9418 lt_prog_compiler_static='-static'
9422 # All AIX code is PIC.
9423 if test "$host_cpu" = ia64; then
9424 # AIX 5 now supports IA64 processor
9425 lt_prog_compiler_static='-Bstatic'
9432 # see comment about AmigaOS4 .so support
9433 lt_prog_compiler_pic='-fPIC'
9436 # FIXME: we need at least 68020 code to build shared libraries, but
9437 # adding the `-m68020' flag to GCC prevents building anything better,
9439 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9445 # PIC is the default for these OSes.
9448 mingw* | cygwin* | pw32* | os2* | cegcc*)
9449 # This hack is so that the source file can tell whether it is being
9450 # built for inclusion in a dll (and should export symbols for example).
9451 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9452 # (--disable-auto-import) libraries
9453 lt_prog_compiler_pic='-DDLL_EXPORT'
9456 darwin* | rhapsody*)
9457 # PIC is the default on this platform
9458 # Common symbols not allowed in MH_DYLIB files
9459 lt_prog_compiler_pic='-fno-common'
9463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9465 # sets the default TLS model and affects inlining.
9471 lt_prog_compiler_pic='-fPIC'
9477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9478 # Instead, we relocate shared libraries at runtime.
9482 # Just because we use GCC doesn't mean we suddenly get shared libraries
9483 # on systems that don't support them.
9484 lt_prog_compiler_can_build_shared=no
9489 # QNX uses GNU C++, but need to define -shared option too, otherwise
9491 lt_prog_compiler_pic='-fPIC -shared'
9495 if test -d /usr/nec; then
9496 lt_prog_compiler_pic=-Kconform_pic
9501 lt_prog_compiler_pic='-fPIC'
9505 # PORTME Check for flag to pass linker flags through the system compiler.
9508 lt_prog_compiler_wl='-Wl,'
9509 if test "$host_cpu" = ia64; then
9510 # AIX 5 now supports IA64 processor
9511 lt_prog_compiler_static='-Bstatic'
9513 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9517 mingw* | cygwin* | pw32* | os2* | cegcc*)
9518 # This hack is so that the source file can tell whether it is being
9519 # built for inclusion in a dll (and should export symbols for example).
9520 lt_prog_compiler_pic='-DDLL_EXPORT'
9523 hpux9* | hpux10* | hpux11*)
9524 lt_prog_compiler_wl='-Wl,'
9525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9532 lt_prog_compiler_pic='+Z'
9535 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9536 lt_prog_compiler_static='${wl}-a ${wl}archive'
9539 irix5* | irix6* | nonstopux*)
9540 lt_prog_compiler_wl='-Wl,'
9541 # PIC (with -KPIC) is the default.
9542 lt_prog_compiler_static='-non_shared'
9545 linux* | k*bsd*-gnu)
9546 case $cc_basename in
9547 # old Intel for x86_64 which still supported -KPIC.
9549 lt_prog_compiler_wl='-Wl,'
9550 lt_prog_compiler_pic='-KPIC'
9551 lt_prog_compiler_static='-static'
9553 # icc used to be incompatible with GCC.
9554 # ICC 10 doesn't accept -KPIC any more.
9556 lt_prog_compiler_wl='-Wl,'
9557 lt_prog_compiler_pic='-fPIC'
9558 lt_prog_compiler_static='-static'
9560 # Lahey Fortran 8.1.
9562 lt_prog_compiler_wl='-Wl,'
9563 lt_prog_compiler_pic='--shared'
9564 lt_prog_compiler_static='--static'
9566 pgcc* | pgf77* | pgf90* | pgf95*)
9567 # Portland Group compilers (*not* the Pentium gcc compiler,
9568 # which looks to be a dead project)
9569 lt_prog_compiler_wl='-Wl,'
9570 lt_prog_compiler_pic='-fpic'
9571 lt_prog_compiler_static='-Bstatic'
9574 lt_prog_compiler_wl='-Wl,'
9575 # All Alpha code is PIC.
9576 lt_prog_compiler_static='-non_shared'
9579 # IBM XL C 8.0/Fortran 10.1 on PPC
9580 lt_prog_compiler_wl='-Wl,'
9581 lt_prog_compiler_pic='-qpic'
9582 lt_prog_compiler_static='-qstaticlink'
9585 case `$CC -V 2>&1 | sed 5q` in
9588 lt_prog_compiler_pic='-KPIC'
9589 lt_prog_compiler_static='-Bstatic'
9590 lt_prog_compiler_wl='-Wl,'
9593 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9594 lt_prog_compiler_pic='-KPIC'
9595 lt_prog_compiler_static='-Bstatic'
9596 lt_prog_compiler_wl=''
9604 lt_prog_compiler_pic='-KPIC'
9605 lt_prog_compiler_static='-Bstatic'
9609 # QNX uses GNU C++, but need to define -shared option too, otherwise
9611 lt_prog_compiler_pic='-fPIC -shared'
9614 osf3* | osf4* | osf5*)
9615 lt_prog_compiler_wl='-Wl,'
9616 # All OSF/1 code is PIC.
9617 lt_prog_compiler_static='-non_shared'
9621 lt_prog_compiler_static='-non_shared'
9625 lt_prog_compiler_pic='-KPIC'
9626 lt_prog_compiler_static='-Bstatic'
9627 case $cc_basename in
9629 lt_prog_compiler_wl='-Qoption ld ';;
9631 lt_prog_compiler_wl='-Wl,';;
9636 lt_prog_compiler_wl='-Qoption ld '
9637 lt_prog_compiler_pic='-PIC'
9638 lt_prog_compiler_static='-Bstatic'
9641 sysv4 | sysv4.2uw2* | sysv4.3*)
9642 lt_prog_compiler_wl='-Wl,'
9643 lt_prog_compiler_pic='-KPIC'
9644 lt_prog_compiler_static='-Bstatic'
9648 if test -d /usr/nec ;then
9649 lt_prog_compiler_pic='-Kconform_pic'
9650 lt_prog_compiler_static='-Bstatic'
9654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9655 lt_prog_compiler_wl='-Wl,'
9656 lt_prog_compiler_pic='-KPIC'
9657 lt_prog_compiler_static='-Bstatic'
9661 lt_prog_compiler_wl='-Wl,'
9662 lt_prog_compiler_can_build_shared=no
9666 lt_prog_compiler_pic='-pic'
9667 lt_prog_compiler_static='-Bstatic'
9671 lt_prog_compiler_can_build_shared=no
9677 # For platforms which do not support PIC, -DPIC is meaningless:
9679 lt_prog_compiler_pic=
9682 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9694 # Check to make sure the PIC flag actually works.
9696 if test -n "$lt_prog_compiler_pic"; then
9697 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9699 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 lt_cv_prog_compiler_pic_works=no
9703 ac_outfile=conftest.$ac_objext
9704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9706 # Insert the option either (1) after the last *FLAGS variable, or
9707 # (2) before a word containing "conftest.", or (3) at the end.
9708 # Note that $ac_compile itself does not contain backslashes and begins
9709 # with a dollar sign (not a hyphen), so the echo should work correctly.
9710 # The option is referenced via a variable to avoid confusing sed.
9711 lt_compile=`echo "$ac_compile" | $SED \
9712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714 -e 's:$: $lt_compiler_flag:'`
9715 (eval echo "\"\$as_me:9715: $lt_compile\"" >&5)
9716 (eval "$lt_compile" 2>conftest.err)
9718 cat conftest.err >&5
9719 echo "$as_me:9719: \$? = $ac_status" >&5
9720 if (exit $ac_status) && test -s "$ac_outfile"; then
9721 # The compiler can only warn and ignore the option if not recognized
9722 # So say no if there are warnings other than the usual output.
9723 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9726 lt_cv_prog_compiler_pic_works=yes
9732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9733 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9735 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9736 case $lt_prog_compiler_pic in
9738 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9741 lt_prog_compiler_pic=
9742 lt_prog_compiler_can_build_shared=no
9753 # Check to make sure the static flag actually works.
9755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9758 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 lt_cv_prog_compiler_static_works=no
9762 save_LDFLAGS="$LDFLAGS"
9763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9764 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9766 # The linker can only warn and ignore the option if not recognized
9767 # So say no if there are warnings
9768 if test -s conftest.err; then
9769 # Append any errors to the config.log.
9770 cat conftest.err 1>&5
9771 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9773 if diff conftest.exp conftest.er2 >/dev/null; then
9774 lt_cv_prog_compiler_static_works=yes
9777 lt_cv_prog_compiler_static_works=yes
9781 LDFLAGS="$save_LDFLAGS"
9784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9787 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9790 lt_prog_compiler_static=
9799 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9800 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9801 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 lt_cv_prog_compiler_c_o=no
9805 $RM -r conftest 2>/dev/null
9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9811 lt_compiler_flag="-o out/conftest2.$ac_objext"
9812 # Insert the option either (1) after the last *FLAGS variable, or
9813 # (2) before a word containing "conftest.", or (3) at the end.
9814 # Note that $ac_compile itself does not contain backslashes and begins
9815 # with a dollar sign (not a hyphen), so the echo should work correctly.
9816 lt_compile=`echo "$ac_compile" | $SED \
9817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9819 -e 's:$: $lt_compiler_flag:'`
9820 (eval echo "\"\$as_me:9820: $lt_compile\"" >&5)
9821 (eval "$lt_compile" 2>out/conftest.err)
9823 cat out/conftest.err >&5
9824 echo "$as_me:9824: \$? = $ac_status" >&5
9825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9827 # The compiler can only warn and ignore the option if not recognized
9828 # So say no if there are warnings
9829 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9832 lt_cv_prog_compiler_c_o=yes
9837 # SGI C++ compiler will create directory out/ii_files/ for
9838 # template instantiation
9839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9840 $RM out/* && rmdir out
9846 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9854 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9856 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 lt_cv_prog_compiler_c_o=no
9860 $RM -r conftest 2>/dev/null
9864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9866 lt_compiler_flag="-o out/conftest2.$ac_objext"
9867 # Insert the option either (1) after the last *FLAGS variable, or
9868 # (2) before a word containing "conftest.", or (3) at the end.
9869 # Note that $ac_compile itself does not contain backslashes and begins
9870 # with a dollar sign (not a hyphen), so the echo should work correctly.
9871 lt_compile=`echo "$ac_compile" | $SED \
9872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9874 -e 's:$: $lt_compiler_flag:'`
9875 (eval echo "\"\$as_me:9875: $lt_compile\"" >&5)
9876 (eval "$lt_compile" 2>out/conftest.err)
9878 cat out/conftest.err >&5
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9882 # The compiler can only warn and ignore the option if not recognized
9883 # So say no if there are warnings
9884 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler_c_o=yes
9892 # SGI C++ compiler will create directory out/ii_files/ for
9893 # template instantiation
9894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9895 $RM out/* && rmdir out
9901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9907 hard_links="nottested"
9908 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9909 # do not overwrite the value of need_locks provided by the user
9910 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9916 ln conftest.a conftest.b 2>&5 || hard_links=no
9917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9918 { echo "$as_me:$LINENO: result: $hard_links" >&5
9919 echo "${ECHO_T}$hard_links" >&6; }
9920 if test "$hard_links" = no; then
9921 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9934 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9938 allow_undefined_flag=
9939 always_export_symbols=no
9941 archive_expsym_cmds=
9942 compiler_needs_object=no
9943 enable_shared_with_static_runtimes=no
9944 export_dynamic_flag_spec=
9945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9946 hardcode_automatic=no
9948 hardcode_direct_absolute=no
9949 hardcode_libdir_flag_spec=
9950 hardcode_libdir_flag_spec_ld=
9951 hardcode_libdir_separator=
9953 hardcode_shlibpath_var=unsupported
9955 link_all_deplibs=unknown
9958 old_archive_from_new_cmds=
9959 old_archive_from_expsyms_cmds=
9960 thread_safe_flag_spec=
9961 whole_archive_flag_spec=
9962 # include_expsyms should be a list of space-separated symbols to be *always*
9963 # included in the symbol list
9965 # exclude_expsyms can be an extended regexp of symbols to exclude
9966 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9967 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9968 # as well as any symbol that contains `d'.
9969 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9971 # platforms (ab)use it in PIC code, but their linkers get confused if
9972 # the symbol is explicitly referenced. Since portable code cannot
9973 # rely on this symbol name, it's probably fine to never include it in
9974 # preloaded symbol tables.
9975 # Exclude shared library initialization/finalization symbols.
9976 extract_expsyms_cmds=
9979 cygwin* | mingw* | pw32* | cegcc*)
9980 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9981 # When not using gcc, we currently assume that we are using
9982 # Microsoft Visual C++.
9983 if test "$GCC" != yes; then
9988 # we just hope/assume this is gcc and not c89 (= MSVC++)
9997 if test "$with_gnu_ld" = yes; then
9998 # If archive_cmds runs LD, not CC, wlarc should be empty
10001 # Set some defaults for GNU ld with shared library support. These
10002 # are reset later if shared libraries are not supported. Putting them
10003 # here allows them to be overridden if necessary.
10004 runpath_var=LD_RUN_PATH
10005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006 export_dynamic_flag_spec='${wl}--export-dynamic'
10007 # ancient GNU ld didn't support --whole-archive et. al.
10008 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10011 whole_archive_flag_spec=
10013 supports_anon_versioning=no
10014 case `$LD -v 2>&1` in
10015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10018 *\ 2.11.*) ;; # other 2.11 versions
10019 *) supports_anon_versioning=yes ;;
10022 # See if GNU ld supports shared libraries.
10025 # On AIX/PPC, the GNU linker is very broken
10026 if test "$host_cpu" != ia64; then
10030 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10031 *** to be unable to reliably create shared libraries on AIX.
10032 *** Therefore, libtool is disabling shared libraries support. If you
10033 *** really care for shared libraries, you may want to modify your PATH
10034 *** so that a non-GNU linker is found, and then restart.
10043 # see comment about AmigaOS4 .so support
10044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045 archive_expsym_cmds=''
10048 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)'
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_minus_L=yes
10056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057 allow_undefined_flag=unsupported
10058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10059 # support --undefined. This deserves some investigation. FIXME
10060 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066 cygwin* | mingw* | pw32* | cegcc*)
10067 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068 # as there is no search path for DLLs.
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 allow_undefined_flag=unsupported
10071 always_export_symbols=no
10072 enable_shared_with_static_runtimes=yes
10073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10075 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10077 # If the export-symbols file already is a .def file (1st line
10078 # is EXPORTS), use it as is; otherwise, prepend...
10079 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10080 cp $export_symbols $output_objdir/$soname.def;
10082 echo EXPORTS > $output_objdir/$soname.def;
10083 cat $export_symbols >> $output_objdir/$soname.def;
10085 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10093 hardcode_shlibpath_var=no
10094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10095 export_dynamic_flag_spec='${wl}-E'
10096 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10097 # Instead, shared libraries are loaded at an image base (0x10000000 by
10098 # default) and relocated if they conflict, which is a slow very memory
10099 # consuming and fragmenting process. To avoid this, we pick a random,
10100 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10101 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10103 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'
10106 gnu* | linux* | tpf* | k*bsd*-gnu)
10108 if test "$host_os" = linux-dietlibc; then
10109 case $cc_basename in
10110 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10113 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10114 && test "$tmp_diet" = no
10117 tmp_sharedflag='-shared'
10118 case $cc_basename,$host_cpu in
10119 pgcc*) # Portland Group C compiler
10120 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'
10121 tmp_addflag=' $pic_flag'
10123 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10124 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'
10125 tmp_addflag=' $pic_flag -Mnomain' ;;
10126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10127 tmp_addflag=' -i_dynamic' ;;
10128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10129 tmp_addflag=' -i_dynamic -nofor_main' ;;
10130 ifc* | ifort*) # Intel Fortran compiler
10131 tmp_addflag=' -nofor_main' ;;
10132 lf95*) # Lahey Fortran 8.1
10133 whole_archive_flag_spec=
10134 tmp_sharedflag='--shared' ;;
10135 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10136 tmp_sharedflag='-qmkshrobj'
10139 case `$CC -V 2>&1 | sed 5q` in
10140 *Sun\ C*) # Sun C 5.9
10141 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'
10142 compiler_needs_object=yes
10143 tmp_sharedflag='-G' ;;
10144 *Sun\ F*) # Sun Fortran 8.3
10145 tmp_sharedflag='-G' ;;
10147 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149 if test "x$supports_anon_versioning" = xyes; then
10150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10152 echo "local: *; };" >> $output_objdir/$libname.ver~
10153 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10156 case $cc_basename in
10158 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10159 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10160 hardcode_libdir_flag_spec=
10161 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10162 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10163 if test "x$supports_anon_versioning" = xyes; then
10164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10166 echo "local: *; };" >> $output_objdir/$libname.ver~
10167 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10178 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10187 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10192 *** create shared libraries on Solaris systems. Therefore, libtool
10193 *** is disabling shared libraries support. We urge you to upgrade GNU
10194 *** binutils to release 2.9.1 or newer. Another option is to modify
10195 *** your PATH or compiler configuration so that the native linker is
10196 *** used, and then restart.
10199 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10208 case `$LD -v 2>&1` in
10209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10214 *** reliably create shared libraries on SCO systems. Therefore, libtool
10215 *** is disabling shared libraries support. We urge you to upgrade GNU
10216 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10217 *** your PATH or compiler configuration so that the native linker is
10218 *** used, and then restart.
10223 # For security reasons, it is highly recommended that you always
10224 # use absolute paths for naming shared libraries, and exclude the
10225 # DT_RUNPATH tag from executables and libraries. But doing so
10226 # requires that you compile everything twice, which is a pain.
10227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10239 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10241 hardcode_direct=yes
10242 hardcode_shlibpath_var=no
10246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10255 if test "$ld_shlibs" = no; then
10257 hardcode_libdir_flag_spec=
10258 export_dynamic_flag_spec=
10259 whole_archive_flag_spec=
10262 # PORTME fill in a description of your system's linker (not GNU ld)
10265 allow_undefined_flag=unsupported
10266 always_export_symbols=yes
10267 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'
10268 # Note: this linker hardcodes the directories in LIBPATH if there
10269 # are no directories specified by -L.
10270 hardcode_minus_L=yes
10271 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10272 # Neither direct hardcoding nor static linking is supported with a
10274 hardcode_direct=unsupported
10279 if test "$host_cpu" = ia64; then
10280 # On IA64, the linker does run time linking by default, so we don't
10281 # have to do anything special.
10282 aix_use_runtimelinking=no
10283 exp_sym_flag='-Bexport'
10286 # If we're using GNU nm, then we don't want the "-C" option.
10287 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10288 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10289 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'
10291 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'
10293 aix_use_runtimelinking=no
10295 # Test if we are trying to use run time linking or normal
10296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10297 # need to do runtime linking.
10298 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10299 for ld_flag in $LDFLAGS; do
10300 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10301 aix_use_runtimelinking=yes
10308 exp_sym_flag='-bexport'
10309 no_entry_flag='-bnoentry'
10312 # When large executables or shared objects are built, AIX ld can
10313 # have problems creating the table of contents. If linking a library
10314 # or program results in "error TOC overflow" add -mminimal-toc to
10315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10319 hardcode_direct=yes
10320 hardcode_direct_absolute=yes
10321 hardcode_libdir_separator=':'
10322 link_all_deplibs=yes
10323 file_list_spec='${wl}-f,'
10325 if test "$GCC" = yes; then
10326 case $host_os in aix4.[012]|aix4.[012].*)
10327 # We only want to do this on AIX 4.2 and lower, the check
10328 # below for broken collect2 doesn't work under 4.3+
10329 collect2name=`${CC} -print-prog-name=collect2`
10330 if test -f "$collect2name" &&
10331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10333 # We have reworked collect2
10336 # We have old collect2
10337 hardcode_direct=unsupported
10338 # It fails to find uninstalled libraries when the uninstalled
10339 # path is not listed in the libpath. Setting hardcode_minus_L
10340 # to unsupported forces relinking
10341 hardcode_minus_L=yes
10342 hardcode_libdir_flag_spec='-L$libdir'
10343 hardcode_libdir_separator=
10347 shared_flag='-shared'
10348 if test "$aix_use_runtimelinking" = yes; then
10349 shared_flag="$shared_flag "'${wl}-G'
10353 if test "$host_cpu" = ia64; then
10354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355 # chokes on -Wl,-G. The following line is correct:
10358 if test "$aix_use_runtimelinking" = yes; then
10359 shared_flag='${wl}-G'
10361 shared_flag='${wl}-bM:SRE'
10366 export_dynamic_flag_spec='${wl}-bexpall'
10367 # It seems that -bexpall does not export symbols beginning with
10368 # underscore (_), so it is better to generate a list of symbols to export.
10369 always_export_symbols=yes
10370 if test "$aix_use_runtimelinking" = yes; then
10371 # Warning - without using the other runtime loading flags (-brtl),
10372 # -berok will link without error, but may produce a broken library.
10373 allow_undefined_flag='-berok'
10374 # Determine the default libpath from the value encoded in an
10375 # empty executable.
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest$ac_exeext &&
10408 $as_test_x conftest$ac_exeext; then
10410 lt_aix_libpath_sed='
10411 /Import File Strings/,/^$/ {
10417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10418 # Check for a 64-bit object if we didn't find anything.
10419 if test -z "$aix_libpath"; then
10420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10430 conftest$ac_exeext conftest.$ac_ext
10431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10433 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10434 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"
10436 if test "$host_cpu" = ia64; then
10437 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10438 allow_undefined_flag="-z nodefs"
10439 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"
10441 # Determine the default libpath from the value encoded in an
10442 # empty executable.
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_link") 2>conftest.er1
10467 grep -v '^ *+' conftest.er1 >conftest.err
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && {
10472 test -z "$ac_c_werror_flag" ||
10473 test ! -s conftest.err
10474 } && test -s conftest$ac_exeext &&
10475 $as_test_x conftest$ac_exeext; then
10477 lt_aix_libpath_sed='
10478 /Import File Strings/,/^$/ {
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 # Check for a 64-bit object if we didn't find anything.
10486 if test -z "$aix_libpath"; then
10487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497 conftest$ac_exeext conftest.$ac_ext
10498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10501 # Warning - without using the other run time loading flags,
10502 # -berok will link without error, but may produce a broken library.
10503 no_undefined_flag=' ${wl}-bernotok'
10504 allow_undefined_flag=' ${wl}-berok'
10505 # Exported symbols can be pulled into shared objects from archives
10506 whole_archive_flag_spec='$convenience'
10507 archive_cmds_need_lc=yes
10508 # This is similar to how AIX traditionally builds its shared libraries.
10509 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'
10517 # see comment about AmigaOS4 .so support
10518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10519 archive_expsym_cmds=''
10522 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)'
10523 hardcode_libdir_flag_spec='-L$libdir'
10524 hardcode_minus_L=yes
10530 export_dynamic_flag_spec=-rdynamic
10533 cygwin* | mingw* | pw32* | cegcc*)
10534 # When not using gcc, we currently assume that we are using
10535 # Microsoft Visual C++.
10536 # hardcode_libdir_flag_spec is actually meaningless, as there is
10537 # no search path for DLLs.
10538 hardcode_libdir_flag_spec=' '
10539 allow_undefined_flag=unsupported
10540 # Tell ltmain to make .lib files, not .a files.
10542 # Tell ltmain to make .dll files, not .so files.
10544 # FIXME: Setting linknames here is a bad hack.
10545 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10546 # The linker will automatically build a .lib file if we build a DLL.
10547 old_archive_from_new_cmds='true'
10548 # FIXME: Should let the user specify the lib program.
10549 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10550 fix_srcfile_path='`cygpath -w "$srcfile"`'
10551 enable_shared_with_static_runtimes=yes
10554 darwin* | rhapsody*)
10557 archive_cmds_need_lc=no
10559 hardcode_automatic=yes
10560 hardcode_shlibpath_var=unsupported
10561 whole_archive_flag_spec=''
10562 link_all_deplibs=yes
10563 allow_undefined_flag="$_lt_dar_allow_undefined"
10564 case $cc_basename in
10565 ifort*) _lt_dar_can_shared=yes ;;
10566 *) _lt_dar_can_shared=$GCC ;;
10568 if test "$_lt_dar_can_shared" = "yes"; then
10569 output_verbose_link_cmd=echo
10570 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10571 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10572 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}"
10573 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}"
10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_libdir_flag_spec='-L$libdir'
10584 hardcode_shlibpath_var=no
10591 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10592 # support. Future versions do this automatically, but an explicit c++rt0.o
10593 # does not break anything, and helps significantly (at the cost of a little
10596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10597 hardcode_libdir_flag_spec='-R$libdir'
10598 hardcode_direct=yes
10599 hardcode_shlibpath_var=no
10602 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_direct=yes
10606 hardcode_minus_L=yes
10607 hardcode_shlibpath_var=no
10610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10611 freebsd* | dragonfly*)
10612 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10613 hardcode_libdir_flag_spec='-R$libdir'
10614 hardcode_direct=yes
10615 hardcode_shlibpath_var=no
10619 if test "$GCC" = yes; then
10620 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'
10622 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'
10624 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10625 hardcode_libdir_separator=:
10626 hardcode_direct=yes
10628 # hardcode_minus_L: Not really in the search PATH,
10629 # but as the default location of the library.
10630 hardcode_minus_L=yes
10631 export_dynamic_flag_spec='${wl}-E'
10635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10640 if test "$with_gnu_ld" = no; then
10641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10642 hardcode_libdir_flag_spec_ld='+b $libdir'
10643 hardcode_libdir_separator=:
10644 hardcode_direct=yes
10645 hardcode_direct_absolute=yes
10646 export_dynamic_flag_spec='${wl}-E'
10647 # hardcode_minus_L: Not really in the search PATH,
10648 # but as the default location of the library.
10649 hardcode_minus_L=yes
10654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10657 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10669 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10679 if test "$with_gnu_ld" = no; then
10680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10681 hardcode_libdir_separator=:
10686 hardcode_shlibpath_var=no
10689 hardcode_direct=yes
10690 hardcode_direct_absolute=yes
10691 export_dynamic_flag_spec='${wl}-E'
10693 # hardcode_minus_L: Not really in the search PATH,
10694 # but as the default location of the library.
10695 hardcode_minus_L=yes
10701 irix5* | irix6* | nonstopux*)
10702 if test "$GCC" = yes; then
10703 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'
10704 # Try to use the -exported_symbol ld option, if it does not
10705 # work, assume that -exports_file does not work either and
10706 # implicitly export all symbols.
10707 save_LDFLAGS="$LDFLAGS"
10708 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10709 cat >conftest.$ac_ext <<_ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext &&
10729 $as_test_x conftest$ac_exeext; then
10730 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'
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LDFLAGS="$save_LDFLAGS"
10743 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'
10744 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'
10746 archive_cmds_need_lc='no'
10747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10748 hardcode_libdir_separator=:
10750 link_all_deplibs=yes
10754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10759 hardcode_libdir_flag_spec='-R$libdir'
10760 hardcode_direct=yes
10761 hardcode_shlibpath_var=no
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_direct=yes
10767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10768 hardcode_libdir_separator=:
10769 hardcode_shlibpath_var=no
10776 if test -f /usr/libexec/ld.so; then
10777 hardcode_direct=yes
10778 hardcode_shlibpath_var=no
10779 hardcode_direct_absolute=yes
10780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10784 export_dynamic_flag_spec='${wl}-E'
10787 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789 hardcode_libdir_flag_spec='-R$libdir'
10792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10793 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10803 hardcode_libdir_flag_spec='-L$libdir'
10804 hardcode_minus_L=yes
10805 allow_undefined_flag=unsupported
10806 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'
10807 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10811 if test "$GCC" = yes; then
10812 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10813 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'
10815 allow_undefined_flag=' -expect_unresolved \*'
10816 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'
10818 archive_cmds_need_lc='no'
10819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820 hardcode_libdir_separator=:
10823 osf4* | osf5*) # as osf3* with the addition of -msym flag
10824 if test "$GCC" = yes; then
10825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10826 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'
10827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10829 allow_undefined_flag=' -expect_unresolved \*'
10830 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'
10831 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~
10832 $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'
10834 # Both c and cxx compiler support -rpath directly
10835 hardcode_libdir_flag_spec='-rpath $libdir'
10837 archive_cmds_need_lc='no'
10838 hardcode_libdir_separator=:
10842 no_undefined_flag=' -z defs'
10843 if test "$GCC" = yes; then
10845 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10847 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10849 case `$CC -V 2>&1` in
10852 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10858 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10860 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10864 hardcode_libdir_flag_spec='-R$libdir'
10865 hardcode_shlibpath_var=no
10867 solaris2.[0-5] | solaris2.[0-5].*) ;;
10869 # The compiler driver will combine and reorder linker options,
10870 # but understands `-z linker_flag'. GCC discards it without `$wl',
10871 # but is careful enough not to reorder.
10872 # Supported since Solaris 2.6 (maybe 2.5.1?)
10873 if test "$GCC" = yes; then
10874 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10876 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10880 link_all_deplibs=yes
10884 if test "x$host_vendor" = xsequent; then
10885 # Use $CC to link under sequent, because it throws in some extra .o
10886 # files that make .init and .fini sections work.
10887 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10889 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10891 hardcode_libdir_flag_spec='-L$libdir'
10892 hardcode_direct=yes
10893 hardcode_minus_L=yes
10894 hardcode_shlibpath_var=no
10898 case $host_vendor in
10900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_direct=yes # is this really true???
10904 ## LD is ld it makes a PLAMLIB
10905 ## CC just makes a GrossModule.
10906 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10907 reload_cmds='$CC -r -o $output$reload_objs'
10911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10915 runpath_var='LD_RUN_PATH'
10916 hardcode_shlibpath_var=no
10920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10921 hardcode_shlibpath_var=no
10922 export_dynamic_flag_spec='-Bexport'
10926 if test -d /usr/nec; then
10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_shlibpath_var=no
10929 runpath_var=LD_RUN_PATH
10930 hardcode_runpath_var=yes
10935 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10936 no_undefined_flag='${wl}-z,text'
10937 archive_cmds_need_lc=no
10938 hardcode_shlibpath_var=no
10939 runpath_var='LD_RUN_PATH'
10941 if test "$GCC" = yes; then
10942 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 sysv5* | sco3.2v5* | sco5v6*)
10951 # Note: We can NOT use -z defs as we might desire, because we do not
10952 # link with -lc, and that would cause any symbols used from libc to
10953 # always be unresolved, which means just about no library would
10954 # ever link correctly. If we're not using GNU ld we use -z text
10955 # though, which does catch some bad symbols but isn't as heavy-handed
10957 no_undefined_flag='${wl}-z,text'
10958 allow_undefined_flag='${wl}-z,nodefs'
10959 archive_cmds_need_lc=no
10960 hardcode_shlibpath_var=no
10961 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10962 hardcode_libdir_separator=':'
10963 link_all_deplibs=yes
10964 export_dynamic_flag_spec='${wl}-Bexport'
10965 runpath_var='LD_RUN_PATH'
10967 if test "$GCC" = yes; then
10968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978 hardcode_libdir_flag_spec='-L$libdir'
10979 hardcode_shlibpath_var=no
10987 if test x$host_vendor = xsni; then
10989 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10990 export_dynamic_flag_spec='${wl}-Blargedynsym'
10996 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10997 echo "${ECHO_T}$ld_shlibs" >&6; }
10998 test "$ld_shlibs" = no && can_build_shared=no
11000 with_gnu_ld=$with_gnu_ld
11017 # Do we need to explicitly link libc?
11019 case "x$archive_cmds_need_lc" in
11021 # Assume -lc should be added
11022 archive_cmds_need_lc=yes
11024 if test "$enable_shared" = yes && test "$GCC" = yes; then
11025 case $archive_cmds in
11027 # FIXME: we may have to deal with multi-command sequences.
11030 # Test whether the compiler implicitly links with -lc since on some
11031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11032 # to ld, don't add -lc before -lgcc.
11033 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039 (eval $ac_compile) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } 2>conftest.err; then
11045 libobjs=conftest.$ac_objext
11047 wl=$lt_prog_compiler_wl
11048 pic_flag=$lt_prog_compiler_pic
11054 lt_save_allow_undefined_flag=$allow_undefined_flag
11055 allow_undefined_flag=
11056 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11057 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }
11062 archive_cmds_need_lc=no
11064 archive_cmds_need_lc=yes
11066 allow_undefined_flag=$lt_save_allow_undefined_flag
11068 cat conftest.err 1>&5
11071 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11072 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11235 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11238 if test "$GCC" = yes; then
11240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11241 *) lt_awk_arg="/^libraries:/" ;;
11243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11244 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11245 # if the path contains ";" then we assume it to be the separator
11246 # otherwise default to the standard path separator (i.e. ":") - it is
11247 # assumed that no part of a normal pathname contains ";" but that should
11248 # okay in the real world where ";" in dirpaths is itself problematic.
11249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11251 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11253 # Ok, now we have the path, separated by spaces, we can step through it
11254 # and add multilib dir if necessary.
11255 lt_tmp_lt_search_path_spec=
11256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11257 for lt_sys_path in $lt_search_path_spec; do
11258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11261 test -d "$lt_sys_path" && \
11262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11265 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11266 BEGIN {RS=" "; FS="/|\n";} {
11269 for (lt_i = NF; lt_i > 0; lt_i--) {
11270 if ($lt_i != "" && $lt_i != ".") {
11271 if ($lt_i == "..") {
11274 if (lt_count == 0) {
11275 lt_foo="/" $lt_i lt_foo;
11282 if (lt_foo != "") { lt_freq[lt_foo]++; }
11283 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11285 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11289 library_names_spec=
11290 libname_spec='lib$name'
11294 postuninstall_cmds=
11298 shlibpath_overrides_runpath=unknown
11300 dynamic_linker="$host_os ld.so"
11301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302 need_lib_prefix=unknown
11303 hardcode_into_libs=no
11305 # when you set need_version to no, make sure it does not cause -set_version
11306 # flags to be left without arguments
11307 need_version=unknown
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313 shlibpath_var=LIBPATH
11315 # AIX 3 has no versioning support, so we append a major version to the name.
11316 soname_spec='${libname}${release}${shared_ext}$major'
11323 hardcode_into_libs=yes
11324 if test "$host_cpu" = ia64; then
11325 # AIX 5 supports IA64
11326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327 shlibpath_var=LD_LIBRARY_PATH
11329 # With GCC up to 2.95.x, collect2 would create an import file
11330 # for dependence libraries. The import file would start with
11331 # the line `#! .'. This would cause the generated library to
11332 # depend on `.', always an invalid library. This was fixed in
11333 # development snapshots of GCC prior to 3.0.
11335 aix4 | aix4.[01] | aix4.[01].*)
11336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11341 can_build_shared=no
11345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346 # soname into executable. Probably we can add versioning support to
11347 # collect2, so additional links can be useful in future.
11348 if test "$aix_use_runtimelinking" = yes; then
11349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350 # instead of lib<name>.a to let people know that these are not
11351 # typical AIX shared libraries.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 # We preserve .a as extension for shared libraries through AIX4.2
11355 # and later when we are not doing run time linking.
11356 library_names_spec='${libname}${release}.a $libname.a'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11359 shlibpath_var=LIBPATH
11366 # Since July 2007 AmigaOS4 officially supports .so libraries.
11367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 library_names_spec='$libname.ixlibrary $libname.a'
11372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373 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'
11379 library_names_spec='${libname}${shared_ext}'
11380 dynamic_linker="$host_os ld.so"
11381 shlibpath_var=LIBRARY_PATH
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393 # the default ld.so.conf also contains /usr/contrib/lib and
11394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395 # libtool to hard-code these into programs
11398 cygwin* | mingw* | pw32* | cegcc*)
11399 version_type=windows
11404 case $GCC,$host_os in
11405 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11406 library_names_spec='$libname.dll.a'
11407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408 postinstall_cmds='base_file=`basename \${file}`~
11409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11410 dldir=$destdir/`dirname \$dlpath`~
11411 test -d \$dldir || mkdir -p \$dldir~
11412 $install_prog $dir/$dlname \$dldir/$dlname~
11413 chmod a+x \$dldir/$dlname~
11414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11418 dlpath=$dir/\$dldll~
11420 shlibpath_overrides_runpath=yes
11424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11429 # MinGW DLLs use traditional 'lib' prefix
11430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11432 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11433 # It is most probably a Windows format PATH printed by
11434 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11435 # path with ; separators, and with drive letters. We can handle the
11436 # drive letters (cygwin fileutils understands them), so leave them,
11437 # especially as we might pass files found there to a mingw objdump,
11438 # which wouldn't understand a cygwinified path. Ahh.
11439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11445 # pw32 DLLs use 'pw' prefix rather than 'lib'
11446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11455 dynamic_linker='Win32 ld.exe'
11456 # FIXME: first we should search . and the directory the executable is in
11460 darwin* | rhapsody*)
11461 dynamic_linker="$host_os dyld"
11462 version_type=darwin
11465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11466 soname_spec='${libname}${release}${major}$shared_ext'
11467 shlibpath_overrides_runpath=yes
11468 shlibpath_var=DYLD_LIBRARY_PATH
11469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11488 freebsd* | dragonfly*)
11489 # DragonFly does not have aout. When/if they implement a new
11490 # versioning mechanism, adjust this.
11491 if test -x /usr/bin/objformat; then
11492 objformat=`/usr/bin/objformat`
11495 freebsd[123]*) objformat=aout ;;
11496 *) objformat=elf ;;
11499 version_type=freebsd-$objformat
11500 case $version_type in
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11511 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=yes
11516 freebsd3.[01]* | freebsdelf3.[01]*)
11517 shlibpath_overrides_runpath=yes
11518 hardcode_into_libs=yes
11520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11522 shlibpath_overrides_runpath=no
11523 hardcode_into_libs=yes
11525 *) # from 4.6 on, and DragonFly
11526 shlibpath_overrides_runpath=yes
11527 hardcode_into_libs=yes
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 hardcode_into_libs=yes
11542 hpux9* | hpux10* | hpux11*)
11543 # Give a soname corresponding to the major version so that dld.sl refuses to
11544 # link against other versions.
11551 hardcode_into_libs=yes
11552 dynamic_linker="$host_os dld.so"
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 if test "X$HPUX_IA64_MODE" = X32; then
11558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11566 hardcode_into_libs=yes
11567 dynamic_linker="$host_os dld.sl"
11568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11577 dynamic_linker="$host_os dld.sl"
11578 shlibpath_var=SHLIB_PATH
11579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11584 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11585 postinstall_cmds='chmod 555 $lib'
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=no
11597 hardcode_into_libs=yes
11600 irix5* | irix6* | nonstopux*)
11602 nonstopux*) version_type=nonstopux ;;
11604 if test "$lt_cv_prog_gnu_ld" = yes; then
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11615 irix5* | nonstopux*)
11616 libsuff= shlibsuff=
11619 case $LD in # libtool.m4 will add one of these switches to LD
11620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11621 libsuff= shlibsuff= libmagic=32-bit;;
11622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11623 libsuff=32 shlibsuff=N32 libmagic=N32;;
11624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11626 *) libsuff= shlibsuff= libmagic=never-match;;
11630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11631 shlibpath_overrides_runpath=no
11632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11634 hardcode_into_libs=yes
11637 # No shared lib support for Linux oldld, aout, or coff.
11638 linux*oldld* | linux*aout* | linux*coff*)
11642 # This must be Linux ELF.
11643 linux* | k*bsd*-gnu)
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=no
11652 # Some binutils ld are patched to set DT_RUNPATH
11653 save_LDFLAGS=$LDFLAGS
11654 save_libdir=$libdir
11655 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11656 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (ac_try="$ac_link"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_link") 2>conftest.er1
11681 grep -v '^ *+' conftest.er1 >conftest.err
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } && {
11686 test -z "$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11688 } && test -s conftest$ac_exeext &&
11689 $as_test_x conftest$ac_exeext; then
11690 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11691 shlibpath_overrides_runpath=yes
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11702 conftest$ac_exeext conftest.$ac_ext
11703 LDFLAGS=$save_LDFLAGS
11704 libdir=$save_libdir
11706 # This implies no fast_install, which is unacceptable.
11707 # Some rework will be needed to allow for fast_install
11708 # before this can be enabled.
11709 hardcode_into_libs=yes
11711 # Append ld.so.conf contents to the search path
11712 if test -f /etc/ld.so.conf; then
11713 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' ' '`
11714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11717 # We used to test for /lib/ld.so.1 and disable shared libraries on
11718 # powerpc, because MkLinux only supported shared libraries with the
11719 # GNU dynamic linker. Since this was broken with cross compilers,
11720 # most powerpc-linux boxes support dynamic linking these days and
11721 # people can always --disable-shared, the test was removed, and we
11722 # assume the GNU/Linux dynamic linker is in use.
11723 dynamic_linker='GNU/Linux ld.so'
11730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11733 dynamic_linker='NetBSD (a.out) ld.so'
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 dynamic_linker='NetBSD ld.elf_so'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 hardcode_into_libs=yes
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 shlibpath_var=LD_LIBRARY_PATH
11748 shlibpath_overrides_runpath=yes
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=no
11759 hardcode_into_libs=yes
11760 dynamic_linker='ldqnx.so'
11765 sys_lib_dlsearch_path_spec="/usr/lib"
11767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11769 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11770 *) need_version=no ;;
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11777 openbsd2.[89] | openbsd2.[89].*)
11778 shlibpath_overrides_runpath=no
11781 shlibpath_overrides_runpath=yes
11785 shlibpath_overrides_runpath=yes
11790 libname_spec='$name'
11793 library_names_spec='$libname${shared_ext} $libname.a'
11794 dynamic_linker='OS/2 ld.exe'
11795 shlibpath_var=LIBPATH
11798 osf3* | osf4* | osf5*)
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=yes
11821 hardcode_into_libs=yes
11822 # ldd complains unless libraries are executable
11823 postinstall_cmds='chmod +x $lib'
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes
11832 if test "$with_gnu_ld" = yes; then
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 case $host_vendor in
11845 shlibpath_overrides_runpath=no
11847 runpath_var=LD_RUN_PATH
11855 shlibpath_overrides_runpath=no
11856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11862 if test -d /usr/nec ;then
11864 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11865 soname_spec='$libname${shared_ext}.$major'
11866 shlibpath_var=LD_LIBRARY_PATH
11870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871 version_type=freebsd-elf
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=yes
11878 hardcode_into_libs=yes
11879 if test "$with_gnu_ld" = yes; then
11880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11889 sys_lib_dlsearch_path_spec='/usr/lib'
11893 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=no
11900 hardcode_into_libs=yes
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906 soname_spec='${libname}${release}${shared_ext}$major'
11907 shlibpath_var=LD_LIBRARY_PATH
11914 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11915 echo "${ECHO_T}$dynamic_linker" >&6; }
11916 test "$dynamic_linker" = no && can_build_shared=no
11918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11919 if test "$GCC" = yes; then
11920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11923 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11924 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11926 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11927 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12019 if test -n "$hardcode_libdir_flag_spec" ||
12020 test -n "$runpath_var" ||
12021 test "X$hardcode_automatic" = "Xyes" ; then
12023 # We can hardcode non-existent directories.
12024 if test "$hardcode_direct" != no &&
12025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12026 # have to relink, otherwise we might link with an installed library
12027 # when we should be linking with a yet-to-be-installed one
12028 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12029 test "$hardcode_minus_L" != no; then
12030 # Linking always hardcodes the temporary library directory.
12031 hardcode_action=relink
12033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12034 hardcode_action=immediate
12037 # We cannot hardcode anything, or else we can only hardcode existing
12039 hardcode_action=unsupported
12041 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12042 echo "${ECHO_T}$hardcode_action" >&6; }
12044 if test "$hardcode_action" = relink ||
12045 test "$inherit_rpath" = yes; then
12046 # Fast installation is not supported
12047 enable_fast_install=no
12048 elif test "$shlibpath_overrides_runpath" = yes ||
12049 test "$enable_shared" = no; then
12050 # Fast installation is not necessary
12051 enable_fast_install=needless
12059 if test "x$enable_dlopen" != xyes; then
12060 enable_dlopen=unknown
12061 enable_dlopen_self=unknown
12062 enable_dlopen_self_static=unknown
12069 lt_cv_dlopen="load_add_on"
12071 lt_cv_dlopen_self=yes
12074 mingw* | pw32* | cegcc*)
12075 lt_cv_dlopen="LoadLibrary"
12080 lt_cv_dlopen="dlopen"
12085 # if libdl is installed we need to link against it
12086 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 ac_check_lib_save_LIBS=$LIBS
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_link") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest$ac_exeext &&
12132 $as_test_x conftest$ac_exeext; then
12133 ac_cv_lib_dl_dlopen=yes
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 ac_cv_lib_dl_dlopen=no
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142 conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12146 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12147 if test $ac_cv_lib_dl_dlopen = yes; then
12148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12151 lt_cv_dlopen="dyld"
12153 lt_cv_dlopen_self=yes
12160 { echo "$as_me:$LINENO: checking for shl_load" >&5
12161 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12162 if test "${ac_cv_func_shl_load+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12173 #define shl_load innocuous_shl_load
12175 /* System header to define __stub macros and hopefully few prototypes,
12176 which can conflict with char shl_load (); below.
12177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178 <limits.h> exists even on freestanding compilers. */
12181 # include <limits.h>
12183 # include <assert.h>
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12195 /* The GNU C library defines this for functions which it implements
12196 to always fail with ENOSYS. Some functions are actually named
12197 something starting with __ and the normal name is an alias. */
12198 #if defined __stub_shl_load || defined __stub___shl_load
12205 return shl_load ();
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_link") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest$ac_exeext &&
12227 $as_test_x conftest$ac_exeext; then
12228 ac_cv_func_shl_load=yes
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_func_shl_load=no
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237 conftest$ac_exeext conftest.$ac_ext
12239 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12240 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12241 if test $ac_cv_func_shl_load = yes; then
12242 lt_cv_dlopen="shl_load"
12244 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12245 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12246 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 ac_check_lib_save_LIBS=$LIBS
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12268 return shl_load ();
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext &&
12290 $as_test_x conftest$ac_exeext; then
12291 ac_cv_lib_dld_shl_load=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ac_cv_lib_dld_shl_load=no
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300 conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12304 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12305 if test $ac_cv_lib_dld_shl_load = yes; then
12306 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12308 { echo "$as_me:$LINENO: checking for dlopen" >&5
12309 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12310 if test "${ac_cv_func_dlopen+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12321 #define dlopen innocuous_dlopen
12323 /* System header to define __stub macros and hopefully few prototypes,
12324 which can conflict with char dlopen (); below.
12325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326 <limits.h> exists even on freestanding compilers. */
12329 # include <limits.h>
12331 # include <assert.h>
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12343 /* The GNU C library defines this for functions which it implements
12344 to always fail with ENOSYS. Some functions are actually named
12345 something starting with __ and the normal name is an alias. */
12346 #if defined __stub_dlopen || defined __stub___dlopen
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (ac_try="$ac_link"
12360 case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_link") 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && {
12372 test -z "$ac_c_werror_flag" ||
12373 test ! -s conftest.err
12374 } && test -s conftest$ac_exeext &&
12375 $as_test_x conftest$ac_exeext; then
12376 ac_cv_func_dlopen=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_func_dlopen=no
12384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12385 conftest$ac_exeext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12388 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12389 if test $ac_cv_func_dlopen = yes; then
12390 lt_cv_dlopen="dlopen"
12392 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12393 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 ac_check_lib_save_LIBS=$LIBS
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext &&
12438 $as_test_x conftest$ac_exeext; then
12439 ac_cv_lib_dl_dlopen=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_cv_lib_dl_dlopen=no
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
12449 LIBS=$ac_check_lib_save_LIBS
12451 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12453 if test $ac_cv_lib_dl_dlopen = yes; then
12454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12456 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12457 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-lsvld $LIBS"
12463 cat >conftest.$ac_ext <<_ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12470 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_link") 2>conftest.er1
12494 grep -v '^ *+' conftest.er1 >conftest.err
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && {
12499 test -z "$ac_c_werror_flag" ||
12500 test ! -s conftest.err
12501 } && test -s conftest$ac_exeext &&
12502 $as_test_x conftest$ac_exeext; then
12503 ac_cv_lib_svld_dlopen=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_lib_svld_dlopen=no
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12515 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12517 if test $ac_cv_lib_svld_dlopen = yes; then
12518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12520 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS=$LIBS
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12544 return dld_link ();
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 ac_cv_lib_dld_dld_link=yes
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_cv_lib_dld_dld_link=no
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12581 if test $ac_cv_lib_dld_dld_link = yes; then
12582 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12603 if test "x$lt_cv_dlopen" != xno; then
12609 case $lt_cv_dlopen in
12611 save_CPPFLAGS="$CPPFLAGS"
12612 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12614 save_LDFLAGS="$LDFLAGS"
12615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12618 LIBS="$lt_cv_dlopen_libs $LIBS"
12620 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12621 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12622 if test "${lt_cv_dlopen_self+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 if test "$cross_compiling" = yes; then :
12626 lt_cv_dlopen_self=cross
12628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12629 lt_status=$lt_dlunknown
12630 cat > conftest.$ac_ext <<_LT_EOF
12631 #line 12631 "configure"
12632 #include "confdefs.h"
12641 # define LT_DLGLOBAL RTLD_GLOBAL
12644 # define LT_DLGLOBAL DL_GLOBAL
12646 # define LT_DLGLOBAL 0
12650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12651 find out it does not work in some platform. */
12652 #ifndef LT_DLLAZY_OR_NOW
12654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12657 # define LT_DLLAZY_OR_NOW DL_LAZY
12660 # define LT_DLLAZY_OR_NOW RTLD_NOW
12663 # define LT_DLLAZY_OR_NOW DL_NOW
12665 # define LT_DLLAZY_OR_NOW 0
12672 void fnord() { int i=42;}
12675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12676 int status = $lt_dlunknown;
12680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12681 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12682 /* dlclose (self); */
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12695 (./conftest; exit; ) >&5 2>/dev/null
12697 case x$lt_status in
12698 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12699 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12700 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12703 # compilation failed
12704 lt_cv_dlopen_self=no
12711 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12712 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12714 if test "x$lt_cv_dlopen_self" = xyes; then
12715 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12716 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12717 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12718 if test "${lt_cv_dlopen_self_static+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 if test "$cross_compiling" = yes; then :
12722 lt_cv_dlopen_self_static=cross
12724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12725 lt_status=$lt_dlunknown
12726 cat > conftest.$ac_ext <<_LT_EOF
12727 #line 12727 "configure"
12728 #include "confdefs.h"
12737 # define LT_DLGLOBAL RTLD_GLOBAL
12740 # define LT_DLGLOBAL DL_GLOBAL
12742 # define LT_DLGLOBAL 0
12746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12747 find out it does not work in some platform. */
12748 #ifndef LT_DLLAZY_OR_NOW
12750 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12753 # define LT_DLLAZY_OR_NOW DL_LAZY
12756 # define LT_DLLAZY_OR_NOW RTLD_NOW
12759 # define LT_DLLAZY_OR_NOW DL_NOW
12761 # define LT_DLLAZY_OR_NOW 0
12768 void fnord() { int i=42;}
12771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12772 int status = $lt_dlunknown;
12776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12777 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12778 /* dlclose (self); */
12786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787 (eval $ac_link) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12791 (./conftest; exit; ) >&5 2>/dev/null
12793 case x$lt_status in
12794 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12795 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12796 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12799 # compilation failed
12800 lt_cv_dlopen_self_static=no
12807 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12808 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12811 CPPFLAGS="$save_CPPFLAGS"
12812 LDFLAGS="$save_LDFLAGS"
12817 case $lt_cv_dlopen_self in
12818 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12819 *) enable_dlopen_self=unknown ;;
12822 case $lt_cv_dlopen_self_static in
12823 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12824 *) enable_dlopen_self_static=unknown ;;
12846 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12848 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12851 { echo "$as_me:$LINENO: result: yes" >&5
12852 echo "${ECHO_T}yes" >&6; }
12854 # FIXME - insert some real tests, host_os isn't really good enough
12857 if test -n "$STRIP" ; then
12858 striplib="$STRIP -x"
12859 old_striplib="$STRIP -S"
12860 { echo "$as_me:$LINENO: result: yes" >&5
12861 echo "${ECHO_T}yes" >&6; }
12863 { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12868 { echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6; }
12885 # Report which library types will actually be built
12886 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12887 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12888 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12889 echo "${ECHO_T}$can_build_shared" >&6; }
12891 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12892 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12893 test "$can_build_shared" = "no" && enable_shared=no
12895 # On AIX, shared libraries and static libraries use the same namespace, and
12896 # are all built from PIC.
12899 test "$enable_shared" = yes && enable_static=no
12900 if test -n "$RANLIB"; then
12901 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12902 postinstall_cmds='$RANLIB $lib'
12907 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12908 test "$enable_shared" = yes && enable_static=no
12912 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12913 echo "${ECHO_T}$enable_shared" >&6; }
12915 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12916 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12917 # Make sure either enable_shared or enable_static is yes.
12918 test "$enable_shared" = yes || enable_static=yes
12919 { echo "$as_me:$LINENO: result: $enable_static" >&5
12920 echo "${ECHO_T}$enable_static" >&6; }
12927 ac_cpp='$CPP $CPPFLAGS'
12928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12941 archive_cmds_need_lc_CXX=no
12942 allow_undefined_flag_CXX=
12943 always_export_symbols_CXX=no
12944 archive_expsym_cmds_CXX=
12945 compiler_needs_object_CXX=no
12946 export_dynamic_flag_spec_CXX=
12947 hardcode_direct_CXX=no
12948 hardcode_direct_absolute_CXX=no
12949 hardcode_libdir_flag_spec_CXX=
12950 hardcode_libdir_flag_spec_ld_CXX=
12951 hardcode_libdir_separator_CXX=
12952 hardcode_minus_L_CXX=no
12953 hardcode_shlibpath_var_CXX=unsupported
12954 hardcode_automatic_CXX=no
12955 inherit_rpath_CXX=no
12957 module_expsym_cmds_CXX=
12958 link_all_deplibs_CXX=unknown
12959 old_archive_cmds_CXX=$old_archive_cmds
12960 no_undefined_flag_CXX=
12961 whole_archive_flag_spec_CXX=
12962 enable_shared_with_static_runtimes_CXX=no
12964 # Source file extension for C++ test sources.
12967 # Object file extension for compiled C++ test sources.
12971 # No sense in running all these tests if we already determined that
12972 # the CXX compiler isn't working. Some variables (like enable_shared)
12973 # are currently assumed to apply to all compilers on this platform,
12974 # and will be corrupted by setting them based on a non-working compiler.
12975 if test "$_lt_caught_CXX_error" != yes; then
12976 # Code to be used in simple compile tests
12977 lt_simple_compile_test_code="int some_variable = 0;"
12979 # Code to be used in simple link tests
12980 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12982 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12989 # If no C compiler was specified, use CC.
12992 # If no C compiler flags were specified, use CFLAGS.
12993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12995 # Allow CC to be a program name with arguments.
12999 # save warnings/boilerplate of simple test code
13000 ac_outfile=conftest.$ac_objext
13001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13003 _lt_compiler_boilerplate=`cat conftest.err`
13006 ac_outfile=conftest.$ac_objext
13007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13009 _lt_linker_boilerplate=`cat conftest.err`
13013 # Allow CC to be a program name with arguments.
13018 lt_save_with_gnu_ld=$with_gnu_ld
13019 lt_save_path_LD=$lt_cv_path_LD
13020 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13021 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13023 $as_unset lt_cv_prog_gnu_ld
13025 if test -n "${lt_cv_path_LDCXX+set}"; then
13026 lt_cv_path_LD=$lt_cv_path_LDCXX
13028 $as_unset lt_cv_path_LD
13030 test -z "${LDCXX+set}" || LD=$LDCXX
13034 for cc_temp in $compiler""; do
13036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13042 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13045 if test -n "$compiler"; then
13046 # We don't want -fno-exception when compiling C++ code, so set the
13047 # no_builtin_flag separately
13048 if test "$GXX" = yes; then
13049 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13051 lt_prog_compiler_no_builtin_flag_CXX=
13054 if test "$GXX" = yes; then
13055 # Set up default GNU C++ configuration
13059 # Check whether --with-gnu-ld was given.
13060 if test "${with_gnu_ld+set}" = set; then
13061 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13067 if test "$GCC" = yes; then
13068 # Check if gcc -print-prog-name=ld gives a path.
13069 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13070 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13073 # gcc leaves a trailing carriage return which upsets mingw
13074 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13076 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13079 # Accept absolute paths.
13081 re_direlt='/[^/][^/]*/\.\./'
13082 # Canonicalize the pathname of ld
13083 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13084 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13085 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13087 test -z "$LD" && LD="$ac_prog"
13090 # If it fails, then pretend we aren't using GCC.
13094 # If it is relative, then search for the first ld in PATH.
13095 with_gnu_ld=unknown
13098 elif test "$with_gnu_ld" = yes; then
13099 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13100 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13102 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13103 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13105 if test "${lt_cv_path_LD+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 if test -z "$LD"; then
13109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13110 for ac_dir in $PATH; do
13112 test -z "$ac_dir" && ac_dir=.
13113 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13114 lt_cv_path_LD="$ac_dir/$ac_prog"
13115 # Check to see if the program is GNU ld. I'd rather use --version,
13116 # but apparently some variants of GNU ld only accept -v.
13117 # Break only if it was the GNU/non-GNU ld that we prefer.
13118 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13119 *GNU* | *'with BFD'*)
13120 test "$with_gnu_ld" != no && break
13123 test "$with_gnu_ld" != yes && break
13130 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13134 LD="$lt_cv_path_LD"
13135 if test -n "$LD"; then
13136 { echo "$as_me:$LINENO: result: $LD" >&5
13137 echo "${ECHO_T}$LD" >&6; }
13139 { echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6; }
13142 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13143 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13144 { (exit 1); exit 1; }; }
13145 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13146 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13147 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13151 case `$LD -v 2>&1 </dev/null` in
13152 *GNU* | *'with BFD'*)
13153 lt_cv_prog_gnu_ld=yes
13156 lt_cv_prog_gnu_ld=no
13160 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13161 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13162 with_gnu_ld=$lt_cv_prog_gnu_ld
13170 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13171 # archiving commands below assume that GNU ld is being used.
13172 if test "$with_gnu_ld" = yes; then
13173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174 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'
13176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13179 # If archive_cmds runs LD, not CC, wlarc should be empty
13180 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13181 # investigate it a little bit more. (MM)
13184 # ancient GNU ld didn't support --whole-archive et. al.
13185 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13186 $GREP 'no-whole-archive' > /dev/null; then
13187 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13189 whole_archive_flag_spec_CXX=
13195 # A generic and very simple default shared library creation
13196 # command for GNU C++ for the case where it uses the native
13197 # linker, instead of GNU ld. If possible, this setting should
13198 # overridden to take advantage of the native linker features on
13199 # the platform it is being used on.
13200 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13203 # Commands to make compiler produce verbose output that lists
13204 # what "hidden" libraries, object files and flags are used when
13205 # linking a shared library.
13206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13214 # PORTME: fill in a description of your system's C++ link characteristics
13215 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13220 # FIXME: insert proper C++ library support
13224 if test "$host_cpu" = ia64; then
13225 # On IA64, the linker does run time linking by default, so we don't
13226 # have to do anything special.
13227 aix_use_runtimelinking=no
13228 exp_sym_flag='-Bexport'
13231 aix_use_runtimelinking=no
13233 # Test if we are trying to use run time linking or normal
13234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13235 # need to do runtime linking.
13236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13237 for ld_flag in $LDFLAGS; do
13240 aix_use_runtimelinking=yes
13248 exp_sym_flag='-bexport'
13249 no_entry_flag='-bnoentry'
13252 # When large executables or shared objects are built, AIX ld can
13253 # have problems creating the table of contents. If linking a library
13254 # or program results in "error TOC overflow" add -mminimal-toc to
13255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13258 archive_cmds_CXX=''
13259 hardcode_direct_CXX=yes
13260 hardcode_direct_absolute_CXX=yes
13261 hardcode_libdir_separator_CXX=':'
13262 link_all_deplibs_CXX=yes
13263 file_list_spec_CXX='${wl}-f,'
13265 if test "$GXX" = yes; then
13266 case $host_os in aix4.[012]|aix4.[012].*)
13267 # We only want to do this on AIX 4.2 and lower, the check
13268 # below for broken collect2 doesn't work under 4.3+
13269 collect2name=`${CC} -print-prog-name=collect2`
13270 if test -f "$collect2name" &&
13271 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13273 # We have reworked collect2
13276 # We have old collect2
13277 hardcode_direct_CXX=unsupported
13278 # It fails to find uninstalled libraries when the uninstalled
13279 # path is not listed in the libpath. Setting hardcode_minus_L
13280 # to unsupported forces relinking
13281 hardcode_minus_L_CXX=yes
13282 hardcode_libdir_flag_spec_CXX='-L$libdir'
13283 hardcode_libdir_separator_CXX=
13286 shared_flag='-shared'
13287 if test "$aix_use_runtimelinking" = yes; then
13288 shared_flag="$shared_flag "'${wl}-G'
13292 if test "$host_cpu" = ia64; then
13293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13294 # chokes on -Wl,-G. The following line is correct:
13297 if test "$aix_use_runtimelinking" = yes; then
13298 shared_flag='${wl}-G'
13300 shared_flag='${wl}-bM:SRE'
13305 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13306 # It seems that -bexpall does not export symbols beginning with
13307 # underscore (_), so it is better to generate a list of symbols to
13309 always_export_symbols_CXX=yes
13310 if test "$aix_use_runtimelinking" = yes; then
13311 # Warning - without using the other runtime loading flags (-brtl),
13312 # -berok will link without error, but may produce a broken library.
13313 allow_undefined_flag_CXX='-berok'
13314 # Determine the default libpath from the value encoded in an empty
13316 cat >conftest.$ac_ext <<_ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_link") 2>conftest.er1
13340 grep -v '^ *+' conftest.er1 >conftest.err
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_cxx_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest$ac_exeext &&
13348 $as_test_x conftest$ac_exeext; then
13350 lt_aix_libpath_sed='
13351 /Import File Strings/,/^$/ {
13357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358 # Check for a 64-bit object if we didn't find anything.
13359 if test -z "$aix_libpath"; then
13360 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13370 conftest$ac_exeext conftest.$ac_ext
13371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13373 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13375 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"
13377 if test "$host_cpu" = ia64; then
13378 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13379 allow_undefined_flag_CXX="-z nodefs"
13380 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"
13382 # Determine the default libpath from the value encoded in an
13383 # empty executable.
13384 cat >conftest.$ac_ext <<_ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>conftest.er1
13408 grep -v '^ *+' conftest.er1 >conftest.err
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } && {
13413 test -z "$ac_cxx_werror_flag" ||
13414 test ! -s conftest.err
13415 } && test -s conftest$ac_exeext &&
13416 $as_test_x conftest$ac_exeext; then
13418 lt_aix_libpath_sed='
13419 /Import File Strings/,/^$/ {
13425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 # Check for a 64-bit object if we didn't find anything.
13427 if test -z "$aix_libpath"; then
13428 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13438 conftest$ac_exeext conftest.$ac_ext
13439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13441 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13442 # Warning - without using the other run time loading flags,
13443 # -berok will link without error, but may produce a broken library.
13444 no_undefined_flag_CXX=' ${wl}-bernotok'
13445 allow_undefined_flag_CXX=' ${wl}-berok'
13446 # Exported symbols can be pulled into shared objects from archives
13447 whole_archive_flag_spec_CXX='$convenience'
13448 archive_cmds_need_lc_CXX=yes
13449 # This is similar to how AIX traditionally builds its shared
13451 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'
13457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13458 allow_undefined_flag_CXX=unsupported
13459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13460 # support --undefined. This deserves some investigation. FIXME
13461 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13468 case $cc_basename in
13470 # FIXME: insert proper C++ library support
13476 cygwin* | mingw* | pw32* | cegcc*)
13477 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13478 # as there is no search path for DLLs.
13479 hardcode_libdir_flag_spec_CXX='-L$libdir'
13480 allow_undefined_flag_CXX=unsupported
13481 always_export_symbols_CXX=no
13482 enable_shared_with_static_runtimes_CXX=yes
13484 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13485 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'
13486 # If the export-symbols file already is a .def file (1st line
13487 # is EXPORTS), use it as is; otherwise, prepend...
13488 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13489 cp $export_symbols $output_objdir/$soname.def;
13491 echo EXPORTS > $output_objdir/$soname.def;
13492 cat $export_symbols >> $output_objdir/$soname.def;
13494 $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'
13499 darwin* | rhapsody*)
13502 archive_cmds_need_lc_CXX=no
13503 hardcode_direct_CXX=no
13504 hardcode_automatic_CXX=yes
13505 hardcode_shlibpath_var_CXX=unsupported
13506 whole_archive_flag_spec_CXX=''
13507 link_all_deplibs_CXX=yes
13508 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13509 case $cc_basename in
13510 ifort*) _lt_dar_can_shared=yes ;;
13511 *) _lt_dar_can_shared=$GCC ;;
13513 if test "$_lt_dar_can_shared" = "yes"; then
13514 output_verbose_link_cmd=echo
13515 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}"
13516 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13517 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}"
13518 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}"
13519 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13520 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}"
13521 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}"
13531 case $cc_basename in
13533 # FIXME: insert proper C++ library support
13537 # Green Hills C++ Compiler
13538 # FIXME: insert proper C++ library support
13542 # FIXME: insert proper C++ library support
13549 # C++ shared libraries reported to be fairly broken before
13555 archive_cmds_need_lc_CXX=no
13558 freebsd* | dragonfly*)
13559 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13568 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13569 hardcode_libdir_separator_CXX=:
13570 export_dynamic_flag_spec_CXX='${wl}-E'
13571 hardcode_direct_CXX=yes
13572 hardcode_minus_L_CXX=yes # Not in the search PATH,
13573 # but as the default
13574 # location of the library.
13576 case $cc_basename in
13578 # FIXME: insert proper C++ library support
13582 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'
13583 # Commands to make compiler produce verbose output that lists
13584 # what "hidden" libraries, object files and flags are used when
13585 # linking a shared library.
13587 # There doesn't appear to be a way to prevent this compiler from
13588 # explicitly linking system object files so we need to strip them
13589 # from the output so that they don't get included in the library
13591 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'
13594 if test "$GXX" = yes; then
13595 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'
13597 # FIXME: insert proper C++ library support
13605 if test $with_gnu_ld = no; then
13606 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13607 hardcode_libdir_separator_CXX=:
13613 export_dynamic_flag_spec_CXX='${wl}-E'
13619 hardcode_direct_CXX=no
13620 hardcode_shlibpath_var_CXX=no
13623 hardcode_direct_CXX=yes
13624 hardcode_direct_absolute_CXX=yes
13625 hardcode_minus_L_CXX=yes # Not in the search PATH,
13626 # but as the default
13627 # location of the library.
13631 case $cc_basename in
13633 # FIXME: insert proper C++ library support
13639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13642 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13645 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648 # Commands to make compiler produce verbose output that lists
13649 # what "hidden" libraries, object files and flags are used when
13650 # linking a shared library.
13652 # There doesn't appear to be a way to prevent this compiler from
13653 # explicitly linking system object files so we need to strip them
13654 # from the output so that they don't get included in the library
13656 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'
13659 if test "$GXX" = yes; then
13660 if test $with_gnu_ld = no; then
13663 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13666 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13669 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'
13674 # FIXME: insert proper C++ library support
13682 hardcode_direct_CXX=no
13683 hardcode_shlibpath_var_CXX=no
13684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13685 export_dynamic_flag_spec_CXX='${wl}-E'
13686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13687 # Instead, shared libraries are loaded at an image base (0x10000000 by
13688 # default) and relocated if they conflict, which is a slow very memory
13689 # consuming and fragmenting process. To avoid this, we pick a random,
13690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13692 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'
13693 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'
13696 case $cc_basename in
13699 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'
13701 # Archives containing C++ object files must be created using
13702 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13703 # necessary to make sure instantiated templates are included
13705 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13708 if test "$GXX" = yes; then
13709 if test "$with_gnu_ld" = no; then
13710 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'
13712 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'
13715 link_all_deplibs_CXX=yes
13718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13719 hardcode_libdir_separator_CXX=:
13720 inherit_rpath_CXX=yes
13723 linux* | k*bsd*-gnu)
13724 case $cc_basename in
13726 # Kuck and Associates, Inc. (KAI) C++ Compiler
13728 # KCC will only create a shared library if the output file
13729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13730 # to its proper name (with version) after linking.
13731 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'
13732 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'
13733 # Commands to make compiler produce verbose output that lists
13734 # what "hidden" libraries, object files and flags are used when
13735 # linking a shared library.
13737 # There doesn't appear to be a way to prevent this compiler from
13738 # explicitly linking system object files so we need to strip them
13739 # from the output so that they don't get included in the library
13741 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'
13743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13746 # Archives containing C++ object files must be created using
13747 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13748 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13753 # version 8.0 and above of icpc choke on multiply defined symbols
13754 # if we add $predep_objects and $postdep_objects, however 7.1 and
13755 # earlier do not add the objects themselves.
13756 case `$CC -V 2>&1` in
13758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759 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'
13761 *) # Version 8.0 or newer
13764 ia64*) tmp_idyn=' -i_dynamic';;
13766 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13767 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'
13770 archive_cmds_need_lc_CXX=no
13771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13773 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13776 # Portland Group C++ compiler
13778 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13779 prelink_cmds_CXX='tpldir=Template.dir~
13781 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13782 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13783 old_archive_cmds_CXX='tpldir=Template.dir~
13785 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13786 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13788 archive_cmds_CXX='tpldir=Template.dir~
13790 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13791 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13792 archive_expsym_cmds_CXX='tpldir=Template.dir~
13794 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795 $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'
13797 *) # Version 6 will use weak symbols
13798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13799 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'
13803 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13805 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'
13809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13810 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'
13812 runpath_var=LD_RUN_PATH
13813 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13814 hardcode_libdir_separator_CXX=:
13816 # Commands to make compiler produce verbose output that lists
13817 # what "hidden" libraries, object files and flags are used when
13818 # linking a shared library.
13820 # There doesn't appear to be a way to prevent this compiler from
13821 # explicitly linking system object files so we need to strip them
13822 # from the output so that they don't get included in the library
13824 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'
13827 # IBM XL 8.0 on PPC, with GNU ld
13828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831 if test "x$supports_anon_versioning" = xyes; then
13832 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13834 echo "local: *; };" >> $output_objdir/$libname.ver~
13835 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13839 case `$CC -V 2>&1 | sed 5q` in
13842 no_undefined_flag_CXX=' -zdefs'
13843 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13844 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'
13845 hardcode_libdir_flag_spec_CXX='-R$libdir'
13846 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'
13847 compiler_needs_object_CXX=yes
13849 # Not sure whether something based on
13850 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13852 output_verbose_link_cmd='echo'
13854 # Archives containing C++ object files must be created using
13855 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13856 # necessary to make sure instantiated templates are included
13858 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13866 # FIXME: insert proper C++ library support
13871 # FIXME: insert proper C++ library support
13876 case $cc_basename in
13878 # FIXME: insert proper C++ library support
13882 # FIXME: insert proper C++ library support
13889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13890 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13892 hardcode_libdir_flag_spec_CXX='-R$libdir'
13893 hardcode_direct_CXX=yes
13894 hardcode_shlibpath_var_CXX=no
13896 # Workaround some broken pre-1.5 toolchains
13897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13905 # C++ shared libraries are fairly broken
13910 if test -f /usr/libexec/ld.so; then
13911 hardcode_direct_CXX=yes
13912 hardcode_shlibpath_var_CXX=no
13913 hardcode_direct_absolute_CXX=yes
13914 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13917 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13918 export_dynamic_flag_spec_CXX='${wl}-E'
13919 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13921 output_verbose_link_cmd=echo
13927 osf3* | osf4* | osf5*)
13928 case $cc_basename in
13930 # Kuck and Associates, Inc. (KAI) C++ Compiler
13932 # KCC will only create a shared library if the output file
13933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13934 # to its proper name (with version) after linking.
13935 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'
13937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13938 hardcode_libdir_separator_CXX=:
13940 # Archives containing C++ object files must be created using
13941 # the KAI C++ compiler.
13943 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13944 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13948 # Rational C++ 2.4.1
13949 # FIXME: insert proper C++ library support
13955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13956 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'
13957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13960 allow_undefined_flag_CXX=' -expect_unresolved \*'
13961 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'
13962 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13963 echo "-hidden">> $lib.exp~
13964 $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~
13966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13970 hardcode_libdir_separator_CXX=:
13972 # Commands to make compiler produce verbose output that lists
13973 # what "hidden" libraries, object files and flags are used when
13974 # linking a shared library.
13976 # There doesn't appear to be a way to prevent this compiler from
13977 # explicitly linking system object files so we need to strip them
13978 # from the output so that they don't get included in the library
13980 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'
13983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13987 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'
13990 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'
13994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13995 hardcode_libdir_separator_CXX=:
13997 # Commands to make compiler produce verbose output that lists
13998 # what "hidden" libraries, object files and flags are used when
13999 # linking a shared library.
14000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14003 # FIXME: insert proper C++ library support
14011 # FIXME: insert proper C++ library support
14016 case $cc_basename in
14019 # FIXME: insert proper C++ library support
14024 # FIXME: insert proper C++ library support
14028 # FIXME: insert proper C++ library support
14035 case $cc_basename in
14037 # Sun C++ 4.2, 5.x and Centerline C++
14038 archive_cmds_need_lc_CXX=yes
14039 no_undefined_flag_CXX=' -zdefs'
14040 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14042 $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'
14044 hardcode_libdir_flag_spec_CXX='-R$libdir'
14045 hardcode_shlibpath_var_CXX=no
14047 solaris2.[0-5] | solaris2.[0-5].*) ;;
14049 # The compiler driver will combine and reorder linker options,
14050 # but understands `-z linker_flag'.
14051 # Supported since Solaris 2.6 (maybe 2.5.1?)
14052 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14055 link_all_deplibs_CXX=yes
14057 output_verbose_link_cmd='echo'
14059 # Archives containing C++ object files must be created using
14060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14061 # necessary to make sure instantiated templates are included
14063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14066 # Green Hills C++ Compiler
14067 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14069 # The C++ compiler must be used to create the archive.
14070 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14073 # GNU C++ compiler with Solaris linker
14074 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14075 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14076 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14077 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14078 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14079 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14081 # Commands to make compiler produce verbose output that lists
14082 # what "hidden" libraries, object files and flags are used when
14083 # linking a shared library.
14084 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14086 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14088 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14089 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14090 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14092 # Commands to make compiler produce verbose output that lists
14093 # what "hidden" libraries, object files and flags are used when
14094 # linking a shared library.
14095 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14098 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14100 solaris2.[0-5] | solaris2.[0-5].*) ;;
14102 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14110 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14111 no_undefined_flag_CXX='${wl}-z,text'
14112 archive_cmds_need_lc_CXX=no
14113 hardcode_shlibpath_var_CXX=no
14114 runpath_var='LD_RUN_PATH'
14116 case $cc_basename in
14118 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128 sysv5* | sco3.2v5* | sco5v6*)
14129 # Note: We can NOT use -z defs as we might desire, because we do not
14130 # link with -lc, and that would cause any symbols used from libc to
14131 # always be unresolved, which means just about no library would
14132 # ever link correctly. If we're not using GNU ld we use -z text
14133 # though, which does catch some bad symbols but isn't as heavy-handed
14135 no_undefined_flag_CXX='${wl}-z,text'
14136 allow_undefined_flag_CXX='${wl}-z,nodefs'
14137 archive_cmds_need_lc_CXX=no
14138 hardcode_shlibpath_var_CXX=no
14139 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14140 hardcode_libdir_separator_CXX=':'
14141 link_all_deplibs_CXX=yes
14142 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14143 runpath_var='LD_RUN_PATH'
14145 case $cc_basename in
14147 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14151 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14158 case $cc_basename in
14160 # NonStop-UX NCC 3.20
14161 # FIXME: insert proper C++ library support
14165 # FIXME: insert proper C++ library support
14172 # FIXME: insert proper C++ library support
14177 # FIXME: insert proper C++ library support
14182 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14183 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14184 test "$ld_shlibs_CXX" = no && can_build_shared=no
14190 ## There is no encapsulation within the following macros, do not change
14191 ## the running order or otherwise move them around unless you know exactly
14192 ## what you are doing...
14193 # Dependencies to place before and after the object being linked:
14194 predep_objects_CXX=
14195 postdep_objects_CXX=
14198 compiler_lib_search_path_CXX=
14200 cat > conftest.$ac_ext <<_LT_EOF
14204 Foo (void) { a = 0; }
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; then
14215 # Parse the compiler output and extract the necessary
14216 # objects, libraries and library flags.
14218 # Sentinel used to keep track of whether or not we are before
14219 # the conftest object file.
14220 pre_test_object_deps_done=no
14222 for p in `eval "$output_verbose_link_cmd"`; do
14226 # Some compilers place space between "-{L,R}" and the path.
14227 # Remove the space.
14228 if test $p = "-L" ||
14229 test $p = "-R"; then
14236 if test "$pre_test_object_deps_done" = no; then
14239 # Internal compiler library paths should come after those
14240 # provided the user. The postdeps already come after the
14241 # user supplied libs so there is no need to process them.
14242 if test -z "$compiler_lib_search_path_CXX"; then
14243 compiler_lib_search_path_CXX="${prev}${p}"
14245 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14248 # The "-l" case would never come before the object being
14249 # linked, so don't bother handling this case.
14252 if test -z "$postdeps_CXX"; then
14253 postdeps_CXX="${prev}${p}"
14255 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14261 # This assumes that the test object file only shows up
14262 # once in the compiler output.
14263 if test "$p" = "conftest.$objext"; then
14264 pre_test_object_deps_done=yes
14268 if test "$pre_test_object_deps_done" = no; then
14269 if test -z "$predep_objects_CXX"; then
14270 predep_objects_CXX="$p"
14272 predep_objects_CXX="$predep_objects_CXX $p"
14275 if test -z "$postdep_objects_CXX"; then
14276 postdep_objects_CXX="$p"
14278 postdep_objects_CXX="$postdep_objects_CXX $p"
14283 *) ;; # Ignore the rest.
14291 echo "libtool.m4: error: problem compiling CXX test program"
14294 $RM -f confest.$objext
14296 # PORTME: override above test on systems where it is broken
14299 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14300 # hack all around it, let's just trust "g++" to DTRT.
14301 predep_objects_CXX=
14302 postdep_objects_CXX=
14307 case `$CC -V 2>&1 | sed 5q` in
14311 # The more standards-conforming stlport4 library is
14312 # incompatible with the Cstd library. Avoid specifying
14313 # it if it's in CXXFLAGS. Ignore libCrun as
14314 # -library=stlport4 depends on it.
14315 case " $CXX $CXXFLAGS " in
14316 *" -library=stlport4 "*)
14317 solaris_use_stlport4=yes
14321 if test "$solaris_use_stlport4" != yes; then
14322 postdeps_CXX='-library=Cstd -library=Crun'
14329 case $cc_basename in
14331 # The more standards-conforming stlport4 library is
14332 # incompatible with the Cstd library. Avoid specifying
14333 # it if it's in CXXFLAGS. Ignore libCrun as
14334 # -library=stlport4 depends on it.
14335 case " $CXX $CXXFLAGS " in
14336 *" -library=stlport4 "*)
14337 solaris_use_stlport4=yes
14341 # Adding this requires a known-good setup of shared libraries for
14342 # Sun compiler versions before 5.6, else PIC objects from an old
14343 # archive will be linked into the output, leading to subtle bugs.
14344 if test "$solaris_use_stlport4" != yes; then
14345 postdeps_CXX='-library=Cstd -library=Crun'
14353 case " $postdeps_CXX " in
14354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14356 compiler_lib_search_dirs_CXX=
14357 if test -n "${compiler_lib_search_path_CXX}"; then
14358 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14391 lt_prog_compiler_wl_CXX=
14392 lt_prog_compiler_pic_CXX=
14393 lt_prog_compiler_static_CXX=
14395 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14396 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14398 # C++ specific cases for pic, static, wl, etc.
14399 if test "$GXX" = yes; then
14400 lt_prog_compiler_wl_CXX='-Wl,'
14401 lt_prog_compiler_static_CXX='-static'
14405 # All AIX code is PIC.
14406 if test "$host_cpu" = ia64; then
14407 # AIX 5 now supports IA64 processor
14408 lt_prog_compiler_static_CXX='-Bstatic'
14415 # see comment about AmigaOS4 .so support
14416 lt_prog_compiler_pic_CXX='-fPIC'
14419 # FIXME: we need at least 68020 code to build shared libraries, but
14420 # adding the `-m68020' flag to GCC prevents building anything better,
14422 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14428 # PIC is the default for these OSes.
14430 mingw* | cygwin* | os2* | pw32* | cegcc*)
14431 # This hack is so that the source file can tell whether it is being
14432 # built for inclusion in a dll (and should export symbols for example).
14433 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14434 # (--disable-auto-import) libraries
14435 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14437 darwin* | rhapsody*)
14438 # PIC is the default on this platform
14439 # Common symbols not allowed in MH_DYLIB files
14440 lt_prog_compiler_pic_CXX='-fno-common'
14443 # DJGPP does not support shared libraries at all
14444 lt_prog_compiler_pic_CXX=
14447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14448 # Instead, we relocate shared libraries at runtime.
14451 if test -d /usr/nec; then
14452 lt_prog_compiler_pic_CXX=-Kconform_pic
14456 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14457 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14458 # sets the default TLS model and affects inlining.
14463 lt_prog_compiler_pic_CXX='-fPIC'
14468 # QNX uses GNU C++, but need to define -shared option too, otherwise
14469 # it will coredump.
14470 lt_prog_compiler_pic_CXX='-fPIC -shared'
14473 lt_prog_compiler_pic_CXX='-fPIC'
14479 # All AIX code is PIC.
14480 if test "$host_cpu" = ia64; then
14481 # AIX 5 now supports IA64 processor
14482 lt_prog_compiler_static_CXX='-Bstatic'
14484 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14488 case $cc_basename in
14490 # Green Hills C++ Compiler
14491 # _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"
14496 case $cc_basename in
14498 lt_prog_compiler_pic_CXX='-KPIC'
14501 # Green Hills C++ Compiler
14502 lt_prog_compiler_pic_CXX='-pic'
14508 freebsd* | dragonfly*)
14509 # FreeBSD uses GNU C++
14511 hpux9* | hpux10* | hpux11*)
14512 case $cc_basename in
14514 lt_prog_compiler_wl_CXX='-Wl,'
14515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14516 if test "$host_cpu" != ia64; then
14517 lt_prog_compiler_pic_CXX='+Z'
14521 lt_prog_compiler_wl_CXX='-Wl,'
14522 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14528 lt_prog_compiler_pic_CXX='+Z'
14537 # This is c89, which is MS Visual C++ (no shared libs)
14538 # Anyone wants to do a port?
14540 irix5* | irix6* | nonstopux*)
14541 case $cc_basename in
14543 lt_prog_compiler_wl_CXX='-Wl,'
14544 lt_prog_compiler_static_CXX='-non_shared'
14545 # CC pic flag -KPIC is the default.
14551 linux* | k*bsd*-gnu)
14552 case $cc_basename in
14555 lt_prog_compiler_wl_CXX='--backend -Wl,'
14556 lt_prog_compiler_pic_CXX='-fPIC'
14559 # old Intel C++ for x86_64 which still supported -KPIC.
14560 lt_prog_compiler_wl_CXX='-Wl,'
14561 lt_prog_compiler_pic_CXX='-KPIC'
14562 lt_prog_compiler_static_CXX='-static'
14565 # Intel C++, used to be incompatible with GCC.
14566 # ICC 10 doesn't accept -KPIC any more.
14567 lt_prog_compiler_wl_CXX='-Wl,'
14568 lt_prog_compiler_pic_CXX='-fPIC'
14569 lt_prog_compiler_static_CXX='-static'
14572 # Portland Group C++ compiler
14573 lt_prog_compiler_wl_CXX='-Wl,'
14574 lt_prog_compiler_pic_CXX='-fpic'
14575 lt_prog_compiler_static_CXX='-Bstatic'
14579 # Make sure the PIC flag is empty. It appears that all Alpha
14580 # Linux and Compaq Tru64 Unix objects are PIC.
14581 lt_prog_compiler_pic_CXX=
14582 lt_prog_compiler_static_CXX='-non_shared'
14585 # IBM XL 8.0 on PPC
14586 lt_prog_compiler_wl_CXX='-Wl,'
14587 lt_prog_compiler_pic_CXX='-qpic'
14588 lt_prog_compiler_static_CXX='-qstaticlink'
14591 case `$CC -V 2>&1 | sed 5q` in
14594 lt_prog_compiler_pic_CXX='-KPIC'
14595 lt_prog_compiler_static_CXX='-Bstatic'
14596 lt_prog_compiler_wl_CXX='-Qoption ld '
14607 case $cc_basename in
14609 lt_prog_compiler_pic_CXX='-W c,exportall'
14618 # QNX uses GNU C++, but need to define -shared option too, otherwise
14619 # it will coredump.
14620 lt_prog_compiler_pic_CXX='-fPIC -shared'
14622 osf3* | osf4* | osf5*)
14623 case $cc_basename in
14625 lt_prog_compiler_wl_CXX='--backend -Wl,'
14628 # Rational C++ 2.4.1
14629 lt_prog_compiler_pic_CXX='-pic'
14632 # Digital/Compaq C++
14633 lt_prog_compiler_wl_CXX='-Wl,'
14634 # Make sure the PIC flag is empty. It appears that all Alpha
14635 # Linux and Compaq Tru64 Unix objects are PIC.
14636 lt_prog_compiler_pic_CXX=
14637 lt_prog_compiler_static_CXX='-non_shared'
14646 case $cc_basename in
14648 # Sun C++ 4.2, 5.x and Centerline C++
14649 lt_prog_compiler_pic_CXX='-KPIC'
14650 lt_prog_compiler_static_CXX='-Bstatic'
14651 lt_prog_compiler_wl_CXX='-Qoption ld '
14654 # Green Hills C++ Compiler
14655 lt_prog_compiler_pic_CXX='-PIC'
14662 case $cc_basename in
14665 lt_prog_compiler_pic_CXX='-pic'
14666 lt_prog_compiler_static_CXX='-Bstatic'
14670 lt_prog_compiler_pic_CXX='-pic'
14676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14677 case $cc_basename in
14679 lt_prog_compiler_wl_CXX='-Wl,'
14680 lt_prog_compiler_pic_CXX='-KPIC'
14681 lt_prog_compiler_static_CXX='-Bstatic'
14686 case $cc_basename in
14688 # NonStop-UX NCC 3.20
14689 lt_prog_compiler_pic_CXX='-KPIC'
14698 lt_prog_compiler_can_build_shared_CXX=no
14704 # For platforms which do not support PIC, -DPIC is meaningless:
14706 lt_prog_compiler_pic_CXX=
14709 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14713 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14718 # Check to make sure the PIC flag actually works.
14720 if test -n "$lt_prog_compiler_pic_CXX"; then
14721 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14723 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 lt_cv_prog_compiler_pic_works_CXX=no
14727 ac_outfile=conftest.$ac_objext
14728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14729 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14730 # Insert the option either (1) after the last *FLAGS variable, or
14731 # (2) before a word containing "conftest.", or (3) at the end.
14732 # Note that $ac_compile itself does not contain backslashes and begins
14733 # with a dollar sign (not a hyphen), so the echo should work correctly.
14734 # The option is referenced via a variable to avoid confusing sed.
14735 lt_compile=`echo "$ac_compile" | $SED \
14736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14738 -e 's:$: $lt_compiler_flag:'`
14739 (eval echo "\"\$as_me:14739: $lt_compile\"" >&5)
14740 (eval "$lt_compile" 2>conftest.err)
14742 cat conftest.err >&5
14743 echo "$as_me:14743: \$? = $ac_status" >&5
14744 if (exit $ac_status) && test -s "$ac_outfile"; then
14745 # The compiler can only warn and ignore the option if not recognized
14746 # So say no if there are warnings other than the usual output.
14747 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14750 lt_cv_prog_compiler_pic_works_CXX=yes
14756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14757 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14759 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14760 case $lt_prog_compiler_pic_CXX in
14762 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14765 lt_prog_compiler_pic_CXX=
14766 lt_prog_compiler_can_build_shared_CXX=no
14774 # Check to make sure the static flag actually works.
14776 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14777 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14778 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14779 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 lt_cv_prog_compiler_static_works_CXX=no
14783 save_LDFLAGS="$LDFLAGS"
14784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14785 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14787 # The linker can only warn and ignore the option if not recognized
14788 # So say no if there are warnings
14789 if test -s conftest.err; then
14790 # Append any errors to the config.log.
14791 cat conftest.err 1>&5
14792 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14794 if diff conftest.exp conftest.er2 >/dev/null; then
14795 lt_cv_prog_compiler_static_works_CXX=yes
14798 lt_cv_prog_compiler_static_works_CXX=yes
14802 LDFLAGS="$save_LDFLAGS"
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14808 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14811 lt_prog_compiler_static_CXX=
14817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 lt_cv_prog_compiler_c_o_CXX=no
14823 $RM -r conftest 2>/dev/null
14827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14829 lt_compiler_flag="-o out/conftest2.$ac_objext"
14830 # Insert the option either (1) after the last *FLAGS variable, or
14831 # (2) before a word containing "conftest.", or (3) at the end.
14832 # Note that $ac_compile itself does not contain backslashes and begins
14833 # with a dollar sign (not a hyphen), so the echo should work correctly.
14834 lt_compile=`echo "$ac_compile" | $SED \
14835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14837 -e 's:$: $lt_compiler_flag:'`
14838 (eval echo "\"\$as_me:14838: $lt_compile\"" >&5)
14839 (eval "$lt_compile" 2>out/conftest.err)
14841 cat out/conftest.err >&5
14842 echo "$as_me:14842: \$? = $ac_status" >&5
14843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14845 # The compiler can only warn and ignore the option if not recognized
14846 # So say no if there are warnings
14847 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14850 lt_cv_prog_compiler_c_o_CXX=yes
14855 # SGI C++ compiler will create directory out/ii_files/ for
14856 # template instantiation
14857 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14858 $RM out/* && rmdir out
14864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14869 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 lt_cv_prog_compiler_c_o_CXX=no
14875 $RM -r conftest 2>/dev/null
14879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14881 lt_compiler_flag="-o out/conftest2.$ac_objext"
14882 # Insert the option either (1) after the last *FLAGS variable, or
14883 # (2) before a word containing "conftest.", or (3) at the end.
14884 # Note that $ac_compile itself does not contain backslashes and begins
14885 # with a dollar sign (not a hyphen), so the echo should work correctly.
14886 lt_compile=`echo "$ac_compile" | $SED \
14887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889 -e 's:$: $lt_compiler_flag:'`
14890 (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891 (eval "$lt_compile" 2>out/conftest.err)
14893 cat out/conftest.err >&5
14894 echo "$as_me:14894: \$? = $ac_status" >&5
14895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14897 # The compiler can only warn and ignore the option if not recognized
14898 # So say no if there are warnings
14899 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902 lt_cv_prog_compiler_c_o_CXX=yes
14907 # SGI C++ compiler will create directory out/ii_files/ for
14908 # template instantiation
14909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910 $RM out/* && rmdir out
14916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14922 hard_links="nottested"
14923 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14924 # do not overwrite the value of need_locks provided by the user
14925 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14931 ln conftest.a conftest.b 2>&5 || hard_links=no
14932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14933 { echo "$as_me:$LINENO: result: $hard_links" >&5
14934 echo "${ECHO_T}$hard_links" >&6; }
14935 if test "$hard_links" = no; then
14936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14946 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14952 # If we're using GNU nm, then we don't want the "-C" option.
14953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14954 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14955 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'
14957 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'
14961 export_symbols_cmds_CXX="$ltdll_cmds"
14963 cygwin* | mingw* | cegcc*)
14964 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'
14967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14970 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14972 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14973 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14974 test "$ld_shlibs_CXX" = no && can_build_shared=no
14976 with_gnu_ld_CXX=$with_gnu_ld
14984 # Do we need to explicitly link libc?
14986 case "x$archive_cmds_need_lc_CXX" in
14988 # Assume -lc should be added
14989 archive_cmds_need_lc_CXX=yes
14991 if test "$enable_shared" = yes && test "$GCC" = yes; then
14992 case $archive_cmds_CXX in
14994 # FIXME: we may have to deal with multi-command sequences.
14997 # Test whether the compiler implicitly links with -lc since on some
14998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999 # to ld, don't add -lc before -lgcc.
15000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } 2>conftest.err; then
15012 libobjs=conftest.$ac_objext
15014 wl=$lt_prog_compiler_wl_CXX
15015 pic_flag=$lt_prog_compiler_pic_CXX
15021 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15022 allow_undefined_flag_CXX=
15023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15024 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }
15029 archive_cmds_need_lc_CXX=no
15031 archive_cmds_need_lc_CXX=yes
15033 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15035 cat conftest.err 1>&5
15038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15039 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15109 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15110 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15112 library_names_spec=
15113 libname_spec='lib$name'
15117 postuninstall_cmds=
15121 shlibpath_overrides_runpath=unknown
15123 dynamic_linker="$host_os ld.so"
15124 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15125 need_lib_prefix=unknown
15126 hardcode_into_libs=no
15128 # when you set need_version to no, make sure it does not cause -set_version
15129 # flags to be left without arguments
15130 need_version=unknown
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15136 shlibpath_var=LIBPATH
15138 # AIX 3 has no versioning support, so we append a major version to the name.
15139 soname_spec='${libname}${release}${shared_ext}$major'
15146 hardcode_into_libs=yes
15147 if test "$host_cpu" = ia64; then
15148 # AIX 5 supports IA64
15149 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15150 shlibpath_var=LD_LIBRARY_PATH
15152 # With GCC up to 2.95.x, collect2 would create an import file
15153 # for dependence libraries. The import file would start with
15154 # the line `#! .'. This would cause the generated library to
15155 # depend on `.', always an invalid library. This was fixed in
15156 # development snapshots of GCC prior to 3.0.
15158 aix4 | aix4.[01] | aix4.[01].*)
15159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15161 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15164 can_build_shared=no
15168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15169 # soname into executable. Probably we can add versioning support to
15170 # collect2, so additional links can be useful in future.
15171 if test "$aix_use_runtimelinking" = yes; then
15172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15173 # instead of lib<name>.a to let people know that these are not
15174 # typical AIX shared libraries.
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 # We preserve .a as extension for shared libraries through AIX4.2
15178 # and later when we are not doing run time linking.
15179 library_names_spec='${libname}${release}.a $libname.a'
15180 soname_spec='${libname}${release}${shared_ext}$major'
15182 shlibpath_var=LIBPATH
15189 # Since July 2007 AmigaOS4 officially supports .so libraries.
15190 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 library_names_spec='$libname.ixlibrary $libname.a'
15195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15196 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'
15202 library_names_spec='${libname}${shared_ext}'
15203 dynamic_linker="$host_os ld.so"
15204 shlibpath_var=LIBRARY_PATH
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15216 # the default ld.so.conf also contains /usr/contrib/lib and
15217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15218 # libtool to hard-code these into programs
15221 cygwin* | mingw* | pw32* | cegcc*)
15222 version_type=windows
15227 case $GCC,$host_os in
15228 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15229 library_names_spec='$libname.dll.a'
15230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231 postinstall_cmds='base_file=`basename \${file}`~
15232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15233 dldir=$destdir/`dirname \$dlpath`~
15234 test -d \$dldir || mkdir -p \$dldir~
15235 $install_prog $dir/$dlname \$dldir/$dlname~
15236 chmod a+x \$dldir/$dlname~
15237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15241 dlpath=$dir/\$dldll~
15243 shlibpath_overrides_runpath=yes
15247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15249 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15252 # MinGW DLLs use traditional 'lib' prefix
15253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15255 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15256 # It is most probably a Windows format PATH printed by
15257 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15258 # path with ; separators, and with drive letters. We can handle the
15259 # drive letters (cygwin fileutils understands them), so leave them,
15260 # especially as we might pass files found there to a mingw objdump,
15261 # which wouldn't understand a cygwinified path. Ahh.
15262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15268 # pw32 DLLs use 'pw' prefix rather than 'lib'
15269 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15275 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15278 dynamic_linker='Win32 ld.exe'
15279 # FIXME: first we should search . and the directory the executable is in
15283 darwin* | rhapsody*)
15284 dynamic_linker="$host_os dyld"
15285 version_type=darwin
15288 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15289 soname_spec='${libname}${release}${major}$shared_ext'
15290 shlibpath_overrides_runpath=yes
15291 shlibpath_var=DYLD_LIBRARY_PATH
15292 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15302 soname_spec='${libname}${release}${shared_ext}$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15310 freebsd* | dragonfly*)
15311 # DragonFly does not have aout. When/if they implement a new
15312 # versioning mechanism, adjust this.
15313 if test -x /usr/bin/objformat; then
15314 objformat=`/usr/bin/objformat`
15317 freebsd[123]*) objformat=aout ;;
15318 *) objformat=elf ;;
15321 version_type=freebsd-$objformat
15322 case $version_type in
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15333 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=yes
15338 freebsd3.[01]* | freebsdelf3.[01]*)
15339 shlibpath_overrides_runpath=yes
15340 hardcode_into_libs=yes
15342 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15343 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15344 shlibpath_overrides_runpath=no
15345 hardcode_into_libs=yes
15347 *) # from 4.6 on, and DragonFly
15348 shlibpath_overrides_runpath=yes
15349 hardcode_into_libs=yes
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 hardcode_into_libs=yes
15364 hpux9* | hpux10* | hpux11*)
15365 # Give a soname corresponding to the major version so that dld.sl refuses to
15366 # link against other versions.
15373 hardcode_into_libs=yes
15374 dynamic_linker="$host_os dld.so"
15375 shlibpath_var=LD_LIBRARY_PATH
15376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 if test "X$HPUX_IA64_MODE" = X32; then
15380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15388 hardcode_into_libs=yes
15389 dynamic_linker="$host_os dld.sl"
15390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15399 dynamic_linker="$host_os dld.sl"
15400 shlibpath_var=SHLIB_PATH
15401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15406 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15407 postinstall_cmds='chmod 555 $lib'
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=no
15419 hardcode_into_libs=yes
15422 irix5* | irix6* | nonstopux*)
15424 nonstopux*) version_type=nonstopux ;;
15426 if test "$lt_cv_prog_gnu_ld" = yes; then
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15437 irix5* | nonstopux*)
15438 libsuff= shlibsuff=
15441 case $LD in # libtool.m4 will add one of these switches to LD
15442 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15443 libsuff= shlibsuff= libmagic=32-bit;;
15444 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15445 libsuff=32 shlibsuff=N32 libmagic=N32;;
15446 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15447 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15448 *) libsuff= shlibsuff= libmagic=never-match;;
15452 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15453 shlibpath_overrides_runpath=no
15454 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15455 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15456 hardcode_into_libs=yes
15459 # No shared lib support for Linux oldld, aout, or coff.
15460 linux*oldld* | linux*aout* | linux*coff*)
15464 # This must be Linux ELF.
15465 linux* | k*bsd*-gnu)
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 shlibpath_overrides_runpath=no
15474 # Some binutils ld are patched to set DT_RUNPATH
15475 save_LDFLAGS=$LDFLAGS
15476 save_libdir=$libdir
15477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (ac_try="$ac_link"
15496 case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_link") 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } && {
15508 test -z "$ac_cxx_werror_flag" ||
15509 test ! -s conftest.err
15510 } && test -s conftest$ac_exeext &&
15511 $as_test_x conftest$ac_exeext; then
15512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15513 shlibpath_overrides_runpath=yes
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15524 conftest$ac_exeext conftest.$ac_ext
15525 LDFLAGS=$save_LDFLAGS
15526 libdir=$save_libdir
15528 # This implies no fast_install, which is unacceptable.
15529 # Some rework will be needed to allow for fast_install
15530 # before this can be enabled.
15531 hardcode_into_libs=yes
15533 # Append ld.so.conf contents to the search path
15534 if test -f /etc/ld.so.conf; then
15535 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' ' '`
15536 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15539 # We used to test for /lib/ld.so.1 and disable shared libraries on
15540 # powerpc, because MkLinux only supported shared libraries with the
15541 # GNU dynamic linker. Since this was broken with cross compilers,
15542 # most powerpc-linux boxes support dynamic linking these days and
15543 # people can always --disable-shared, the test was removed, and we
15544 # assume the GNU/Linux dynamic linker is in use.
15545 dynamic_linker='GNU/Linux ld.so'
15552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15555 dynamic_linker='NetBSD (a.out) ld.so'
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 dynamic_linker='NetBSD ld.elf_so'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes
15563 hardcode_into_libs=yes
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 shlibpath_overrides_runpath=yes
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 shlibpath_var=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath=no
15581 hardcode_into_libs=yes
15582 dynamic_linker='ldqnx.so'
15587 sys_lib_dlsearch_path_spec="/usr/lib"
15589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15591 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15592 *) need_version=no ;;
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15599 openbsd2.[89] | openbsd2.[89].*)
15600 shlibpath_overrides_runpath=no
15603 shlibpath_overrides_runpath=yes
15607 shlibpath_overrides_runpath=yes
15612 libname_spec='$name'
15615 library_names_spec='$libname${shared_ext} $libname.a'
15616 dynamic_linker='OS/2 ld.exe'
15617 shlibpath_var=LIBPATH
15620 osf3* | osf4* | osf5*)
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15628 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath=yes
15643 hardcode_into_libs=yes
15644 # ldd complains unless libraries are executable
15645 postinstall_cmds='chmod +x $lib'
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes
15654 if test "$with_gnu_ld" = yes; then
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 case $host_vendor in
15667 shlibpath_overrides_runpath=no
15669 runpath_var=LD_RUN_PATH
15677 shlibpath_overrides_runpath=no
15678 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15684 if test -d /usr/nec ;then
15686 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15687 soname_spec='$libname${shared_ext}.$major'
15688 shlibpath_var=LD_LIBRARY_PATH
15692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15693 version_type=freebsd-elf
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=yes
15700 hardcode_into_libs=yes
15701 if test "$with_gnu_ld" = yes; then
15702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15704 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15711 sys_lib_dlsearch_path_spec='/usr/lib'
15715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=no
15722 hardcode_into_libs=yes
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 shlibpath_var=LD_LIBRARY_PATH
15736 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15737 echo "${ECHO_T}$dynamic_linker" >&6; }
15738 test "$dynamic_linker" = no && can_build_shared=no
15740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15741 if test "$GCC" = yes; then
15742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15746 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15749 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15787 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15789 hardcode_action_CXX=
15790 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15791 test -n "$runpath_var_CXX" ||
15792 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15794 # We can hardcode non-existent directories.
15795 if test "$hardcode_direct_CXX" != no &&
15796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15797 # have to relink, otherwise we might link with an installed library
15798 # when we should be linking with a yet-to-be-installed one
15799 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15800 test "$hardcode_minus_L_CXX" != no; then
15801 # Linking always hardcodes the temporary library directory.
15802 hardcode_action_CXX=relink
15804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15805 hardcode_action_CXX=immediate
15808 # We cannot hardcode anything, or else we can only hardcode existing
15810 hardcode_action_CXX=unsupported
15812 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15813 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15815 if test "$hardcode_action_CXX" = relink ||
15816 test "$inherit_rpath_CXX" = yes; then
15817 # Fast installation is not supported
15818 enable_fast_install=no
15819 elif test "$shlibpath_overrides_runpath" = yes ||
15820 test "$enable_shared" = no; then
15821 # Fast installation is not necessary
15822 enable_fast_install=needless
15831 fi # test -n "$compiler"
15837 with_gnu_ld=$lt_save_with_gnu_ld
15838 lt_cv_path_LDCXX=$lt_cv_path_LD
15839 lt_cv_path_LD=$lt_save_path_LD
15840 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15841 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15842 fi # test "$_lt_caught_CXX_error" != yes
15845 ac_cpp='$CPP $CPPFLAGS'
15846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15862 ac_config_commands="$ac_config_commands libtool"
15867 # Only expand once:
15872 if test x$use_libtool != xno; then
15873 DEFAULT_OBJECT_TYPE=".lo"
15874 DEFAULT_ARCHIVE_TYPE=".la"
15875 DEFAULT_SHARED_OBJECT_TYPE=".la"
15876 LIBTOOL="\$(LIBTOOL)"
15877 LIBTOOL_INSTALL_TARGET="libtool-install"
15878 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15879 LIBTOOL_CLEAN_TARGET="libtool-clean"
15880 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15882 DEFAULT_OBJECT_TYPE=".o"
15883 DEFAULT_ARCHIVE_TYPE=".a"
15884 DEFAULT_SHARED_OBJECT_TYPE=".so"
15885 LIBTOOL="# \$(LIBTOOL)"
15886 LIBTOOL_INSTALL_TARGET=""
15887 LIBTOOL_UNINSTALL_TARGET=""
15888 LIBTOOL_CLEAN_TARGET=""
15889 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15901 # Check whether --enable-includes was given.
15902 if test "${enable_includes+set}" = set; then
15903 enableval=$enable_includes;
15904 if test x$enableval = xno; then
15905 install_includes=no
15913 if test x$use_libtool != xno -a x$install_includes != no; then
15914 INCLUDE_INSTALL_TARGET="install-includes"
15915 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15917 INCLUDE_INSTALL_TARGET=""
15918 INCLUDE_UNINSTALL_TARGET=""
15924 { echo "$as_me:$LINENO: checking host system type" >&5
15925 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15926 if test "${ac_cv_host+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 if test "x$host_alias" = x; then
15930 ac_cv_host=$ac_cv_build
15932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15935 { (exit 1); exit 1; }; }
15939 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15940 echo "${ECHO_T}$ac_cv_host" >&6; }
15941 case $ac_cv_host in
15943 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15944 echo "$as_me: error: invalid value of canonical host" >&2;}
15945 { (exit 1); exit 1; }; };;
15948 ac_save_IFS=$IFS; IFS='-'
15954 # Remember, the first character of IFS is used to create $*,
15955 # except with old shells:
15958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15962 *cygwin* ) CYGWIN=yes;;
15966 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15972 HAVE_SUN_OS_FALSE='#'
15974 HAVE_SUN_OS_TRUE='#'
15977 cat >>confdefs.h <<\_ACEOF
15978 #define HAVE_SUN_OS 1
15986 HAVE_SUN_OS_FALSE='#'
15988 HAVE_SUN_OS_TRUE='#'
15993 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15999 HAVE_OSF1_OS_FALSE='#'
16001 HAVE_OSF1_OS_TRUE='#'
16002 HAVE_OSF1_OS_FALSE=
16004 cat >>confdefs.h <<\_ACEOF
16005 #define HAVE_OSF1_OS 1
16013 HAVE_OSF1_OS_FALSE='#'
16015 HAVE_OSF1_OS_TRUE='#'
16016 HAVE_OSF1_OS_FALSE=
16020 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16026 HAVE_AIX_OS_FALSE='#'
16028 HAVE_AIX_OS_TRUE='#'
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE_AIX_OS 1
16040 HAVE_AIX_OS_FALSE='#'
16042 HAVE_AIX_OS_TRUE='#'
16047 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16053 HAVE_HPUX_OS_FALSE='#'
16055 HAVE_HPUX_OS_TRUE='#'
16056 HAVE_HPUX_OS_FALSE=
16058 cat >>confdefs.h <<\_ACEOF
16059 #define HAVE_HPUX_OS 1
16067 HAVE_HPUX_OS_FALSE='#'
16069 HAVE_HPUX_OS_TRUE='#'
16070 HAVE_HPUX_OS_FALSE=
16074 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16079 HAVE_LINUX_OS_TRUE=
16080 HAVE_LINUX_OS_FALSE='#'
16082 HAVE_LINUX_OS_TRUE='#'
16083 HAVE_LINUX_OS_FALSE=
16085 cat >>confdefs.h <<\_ACEOF
16086 #define HAVE_LINUX_OS 1
16093 HAVE_LINUX_OS_TRUE=
16094 HAVE_LINUX_OS_FALSE='#'
16096 HAVE_LINUX_OS_TRUE='#'
16097 HAVE_LINUX_OS_FALSE=
16101 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16106 HAVE_FREEBSD_OS_TRUE=
16107 HAVE_FREEBSD_OS_FALSE='#'
16109 HAVE_FREEBSD_OS_TRUE='#'
16110 HAVE_FREEBSD_OS_FALSE=
16112 cat >>confdefs.h <<\_ACEOF
16113 #define HAVE_FREEBSD_OS 1
16120 HAVE_FREEBSD_OS_TRUE=
16121 HAVE_FREEBSD_OS_FALSE='#'
16123 HAVE_FREEBSD_OS_TRUE='#'
16124 HAVE_FREEBSD_OS_FALSE=
16128 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16133 HAVE_NETBSD_OS_TRUE=
16134 HAVE_NETBSD_OS_FALSE='#'
16136 HAVE_NETBSD_OS_TRUE='#'
16137 HAVE_NETBSD_OS_FALSE=
16139 cat >>confdefs.h <<\_ACEOF
16140 #define HAVE_NETBSD_OS 1
16147 HAVE_NETBSD_OS_TRUE=
16148 HAVE_NETBSD_OS_FALSE='#'
16150 HAVE_NETBSD_OS_TRUE='#'
16151 HAVE_NETBSD_OS_FALSE=
16155 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16160 HAVE_OPENBSD_OS_TRUE=
16161 HAVE_OPENBSD_OS_FALSE='#'
16163 HAVE_OPENBSD_OS_TRUE='#'
16164 HAVE_OPENBSD_OS_FALSE=
16166 cat >>confdefs.h <<\_ACEOF
16167 #define HAVE_OPENBSD_OS 1
16174 HAVE_OPENBSD_OS_TRUE=
16175 HAVE_OPENBSD_OS_FALSE='#'
16177 HAVE_OPENBSD_OS_TRUE='#'
16178 HAVE_OPENBSD_OS_FALSE=
16182 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16188 HAVE_BSDI_OS_FALSE='#'
16190 HAVE_BSDI_OS_TRUE='#'
16191 HAVE_BSDI_OS_FALSE=
16193 cat >>confdefs.h <<\_ACEOF
16194 #define HAVE_BSDI_OS 1
16202 HAVE_BSDI_OS_FALSE='#'
16204 HAVE_BSDI_OS_TRUE='#'
16205 HAVE_BSDI_OS_FALSE=
16209 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16215 HAVE_SGI_OS_FALSE='#'
16217 HAVE_SGI_OS_TRUE='#'
16220 cat >>confdefs.h <<\_ACEOF
16221 #define HAVE_SGI_OS 1
16229 HAVE_SGI_OS_FALSE='#'
16231 HAVE_SGI_OS_TRUE='#'
16236 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16242 HAVE_IRIX_OS_FALSE='#'
16244 HAVE_IRIX_OS_TRUE='#'
16245 HAVE_IRIX_OS_FALSE=
16247 cat >>confdefs.h <<\_ACEOF
16248 #define HAVE_IRIX_OS 1
16256 HAVE_IRIX_OS_FALSE='#'
16258 HAVE_IRIX_OS_TRUE='#'
16259 HAVE_IRIX_OS_FALSE=
16263 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16268 HAVE_DARWIN_OS_TRUE=
16269 HAVE_DARWIN_OS_FALSE='#'
16271 HAVE_DARWIN_OS_TRUE='#'
16272 HAVE_DARWIN_OS_FALSE=
16274 cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_DARWIN_OS 1
16282 HAVE_DARWIN_OS_TRUE=
16283 HAVE_DARWIN_OS_FALSE='#'
16285 HAVE_DARWIN_OS_TRUE='#'
16286 HAVE_DARWIN_OS_FALSE=
16291 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16292 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16293 if test "x$DISTNAME" != "x"
16295 echo "distname set to $DISTNAME"
16296 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16299 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16302 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16305 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16308 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16311 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16314 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16323 elif test -f /etc/SuSE-release
16326 elif test -d /etc/SuSEconfig
16329 elif test -f /etc/mandrake-release
16332 elif test -f /etc/whitebox-release
16335 elif test -f /etc/redhat-release
16338 elif test -f /etc/gentoo-release
16341 elif test -f /etc/debian_version
16344 elif test -f /etc/slackware-version
16347 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16350 elif test -f /etc/engarde-version
16353 elif test "$CYGWIN" = yes
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_CYGWIN 1
16363 { echo "$as_me:$LINENO: result: done" >&5
16364 echo "${ECHO_T}done" >&6; }
16367 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16368 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16369 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16370 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16373 cat >conftest.make <<\_ACEOF
16376 @echo '@@@%%%=$(MAKE)=@@@%%%'
16378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16379 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16380 *@@@%%%=?*=@@@%%%*)
16381 eval ac_cv_prog_make_${ac_make}_set=yes;;
16383 eval ac_cv_prog_make_${ac_make}_set=no;;
16385 rm -f conftest.make
16387 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16388 { echo "$as_me:$LINENO: result: yes" >&5
16389 echo "${ECHO_T}yes" >&6; }
16392 { echo "$as_me:$LINENO: result: no" >&5
16393 echo "${ECHO_T}no" >&6; }
16394 SET_MAKE="MAKE=${MAKE-make}"
16400 if test -n "$ac_aux_dir"; then
16401 case "$ac_aux_dir" in
16402 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16403 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16406 if test -z "$MKINSTALLDIRS"; then
16407 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16412 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16413 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16414 # Check whether --enable-nls was given.
16415 if test "${enable_nls+set}" = set; then
16416 enableval=$enable_nls; USE_NLS=$enableval
16421 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16422 echo "${ECHO_T}$USE_NLS" >&6; }
16429 # Prepare PATH_SEPARATOR.
16430 # The user is always right.
16431 if test "${PATH_SEPARATOR+set}" != set; then
16432 echo "#! /bin/sh" >conf$$.sh
16433 echo "exit 0" >>conf$$.sh
16435 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16443 # Find out how to test for executable files. Don't use a zero-byte file,
16444 # as systems may use methods other than mode bits to determine executability.
16445 cat >conf$$.file <<_ASEOF
16449 chmod +x conf$$.file
16450 if test -x conf$$.file >/dev/null 2>&1; then
16451 ac_executable_p="test -x"
16453 ac_executable_p="test -f"
16457 # Extract the first word of "msgfmt", so it can be a program name with args.
16458 set dummy msgfmt; ac_word=$2
16459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16461 if test "${ac_cv_path_MSGFMT+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16469 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16470 for ac_dir in $PATH; do
16472 test -z "$ac_dir" && ac_dir=.
16473 for ac_exec_ext in '' $ac_executable_extensions; do
16474 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16475 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16476 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16477 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16478 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16485 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16489 MSGFMT="$ac_cv_path_MSGFMT"
16490 if test "$MSGFMT" != ":"; then
16491 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16492 echo "${ECHO_T}$MSGFMT" >&6; }
16494 { echo "$as_me:$LINENO: result: no" >&5
16495 echo "${ECHO_T}no" >&6; }
16498 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16499 set dummy gmsgfmt; ac_word=$2
16500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16502 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16511 for as_dir in $PATH
16514 test -z "$as_dir" && as_dir=.
16515 for ac_exec_ext in '' $ac_executable_extensions; do
16516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16517 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16525 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16529 GMSGFMT=$ac_cv_path_GMSGFMT
16530 if test -n "$GMSGFMT"; then
16531 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16532 echo "${ECHO_T}$GMSGFMT" >&6; }
16534 { echo "$as_me:$LINENO: result: no" >&5
16535 echo "${ECHO_T}no" >&6; }
16541 # Prepare PATH_SEPARATOR.
16542 # The user is always right.
16543 if test "${PATH_SEPARATOR+set}" != set; then
16544 echo "#! /bin/sh" >conf$$.sh
16545 echo "exit 0" >>conf$$.sh
16547 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16555 # Find out how to test for executable files. Don't use a zero-byte file,
16556 # as systems may use methods other than mode bits to determine executability.
16557 cat >conf$$.file <<_ASEOF
16561 chmod +x conf$$.file
16562 if test -x conf$$.file >/dev/null 2>&1; then
16563 ac_executable_p="test -x"
16565 ac_executable_p="test -f"
16569 # Extract the first word of "xgettext", so it can be a program name with args.
16570 set dummy xgettext; ac_word=$2
16571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16573 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 case "$XGETTEXT" in
16578 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16581 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16582 for ac_dir in $PATH; do
16584 test -z "$ac_dir" && ac_dir=.
16585 for ac_exec_ext in '' $ac_executable_extensions; do
16586 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16587 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16588 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16589 (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
16590 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16597 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16601 XGETTEXT="$ac_cv_path_XGETTEXT"
16602 if test "$XGETTEXT" != ":"; then
16603 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16604 echo "${ECHO_T}$XGETTEXT" >&6; }
16606 { echo "$as_me:$LINENO: result: no" >&5
16607 echo "${ECHO_T}no" >&6; }
16613 # Prepare PATH_SEPARATOR.
16614 # The user is always right.
16615 if test "${PATH_SEPARATOR+set}" != set; then
16616 echo "#! /bin/sh" >conf$$.sh
16617 echo "exit 0" >>conf$$.sh
16619 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16627 # Find out how to test for executable files. Don't use a zero-byte file,
16628 # as systems may use methods other than mode bits to determine executability.
16629 cat >conf$$.file <<_ASEOF
16633 chmod +x conf$$.file
16634 if test -x conf$$.file >/dev/null 2>&1; then
16635 ac_executable_p="test -x"
16637 ac_executable_p="test -f"
16641 # Extract the first word of "msgmerge", so it can be a program name with args.
16642 set dummy msgmerge; ac_word=$2
16643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16645 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 case "$MSGMERGE" in
16650 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16653 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16654 for ac_dir in $PATH; do
16656 test -z "$ac_dir" && ac_dir=.
16657 for ac_exec_ext in '' $ac_executable_extensions; do
16658 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16659 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16660 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16661 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16668 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16672 MSGMERGE="$ac_cv_path_MSGMERGE"
16673 if test "$MSGMERGE" != ":"; then
16674 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16675 echo "${ECHO_T}$MSGMERGE" >&6; }
16677 { echo "$as_me:$LINENO: result: no" >&5
16678 echo "${ECHO_T}no" >&6; }
16682 if test "$GMSGFMT" != ":"; then
16683 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16684 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16687 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16688 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16689 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16694 if test "$XGETTEXT" != ":"; then
16695 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16696 (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
16699 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16700 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16706 ac_config_commands="$ac_config_commands default-1"
16710 if test "X$prefix" = "XNONE"; then
16711 acl_final_prefix="$ac_default_prefix"
16713 acl_final_prefix="$prefix"
16715 if test "X$exec_prefix" = "XNONE"; then
16716 acl_final_exec_prefix='${prefix}'
16718 acl_final_exec_prefix="$exec_prefix"
16720 acl_save_prefix="$prefix"
16721 prefix="$acl_final_prefix"
16722 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16723 prefix="$acl_save_prefix"
16726 # Check whether --with-gnu-ld was given.
16727 if test "${with_gnu_ld+set}" = set; then
16728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16733 # Prepare PATH_SEPARATOR.
16734 # The user is always right.
16735 if test "${PATH_SEPARATOR+set}" != set; then
16736 echo "#! /bin/sh" >conf$$.sh
16737 echo "exit 0" >>conf$$.sh
16739 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16747 if test "$GCC" = yes; then
16748 # Check if gcc -print-prog-name=ld gives a path.
16749 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16750 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16753 # gcc leaves a trailing carriage return which upsets mingw
16754 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16756 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16759 # Accept absolute paths.
16760 [\\/]* | [A-Za-z]:[\\/]*)
16761 re_direlt='/[^/][^/]*/\.\./'
16762 # Canonicalize the path of ld
16763 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16764 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16765 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16767 test -z "$LD" && LD="$ac_prog"
16770 # If it fails, then pretend we aren't using GCC.
16774 # If it is relative, then search for the first ld in PATH.
16775 with_gnu_ld=unknown
16778 elif test "$with_gnu_ld" = yes; then
16779 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16780 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16782 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16783 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16785 if test "${acl_cv_path_LD+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 if test -z "$LD"; then
16789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16790 for ac_dir in $PATH; do
16791 test -z "$ac_dir" && ac_dir=.
16792 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16793 acl_cv_path_LD="$ac_dir/$ac_prog"
16794 # Check to see if the program is GNU ld. I'd rather use --version,
16795 # but apparently some GNU ld's only accept -v.
16796 # Break only if it was the GNU/non-GNU ld that we prefer.
16797 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16798 *GNU* | *'with BFD'*)
16799 test "$with_gnu_ld" != no && break ;;
16801 test "$with_gnu_ld" != yes && break ;;
16807 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16811 LD="$acl_cv_path_LD"
16812 if test -n "$LD"; then
16813 { echo "$as_me:$LINENO: result: $LD" >&5
16814 echo "${ECHO_T}$LD" >&6; }
16816 { echo "$as_me:$LINENO: result: no" >&5
16817 echo "${ECHO_T}no" >&6; }
16819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16821 { (exit 1); exit 1; }; }
16822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16824 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16828 case `$LD -v 2>&1 </dev/null` in
16829 *GNU* | *'with BFD'*)
16830 acl_cv_prog_gnu_ld=yes ;;
16832 acl_cv_prog_gnu_ld=no ;;
16835 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16836 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16837 with_gnu_ld=$acl_cv_prog_gnu_ld
16842 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16843 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16844 if test "${acl_cv_rpath+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16849 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16851 rm -f ./conftest.sh
16855 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16856 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16858 libext="$acl_cv_libext"
16859 shlibext="$acl_cv_shlibext"
16860 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16861 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16862 hardcode_direct="$acl_cv_hardcode_direct"
16863 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16864 # Check whether --enable-rpath was given.
16865 if test "${enable_rpath+set}" = set; then
16866 enableval=$enable_rpath; :
16880 acl_save_prefix="$prefix"
16881 prefix="$acl_final_prefix"
16882 acl_save_exec_prefix="$exec_prefix"
16883 exec_prefix="$acl_final_exec_prefix"
16885 eval additional_includedir=\"$includedir\"
16886 eval additional_libdir=\"$libdir\"
16888 exec_prefix="$acl_save_exec_prefix"
16889 prefix="$acl_save_prefix"
16892 # Check whether --with-libiconv-prefix was given.
16893 if test "${with_libiconv_prefix+set}" = set; then
16894 withval=$with_libiconv_prefix;
16895 if test "X$withval" = "Xno"; then
16898 if test "X$withval" = "X"; then
16900 acl_save_prefix="$prefix"
16901 prefix="$acl_final_prefix"
16902 acl_save_exec_prefix="$exec_prefix"
16903 exec_prefix="$acl_final_exec_prefix"
16905 eval additional_includedir=\"$includedir\"
16906 eval additional_libdir=\"$libdir\"
16908 exec_prefix="$acl_save_exec_prefix"
16909 prefix="$acl_save_prefix"
16912 additional_includedir="$withval/include"
16913 additional_libdir="$withval/lib"
16924 names_already_handled=
16925 names_next_round='iconv '
16926 while test -n "$names_next_round"; do
16927 names_this_round="$names_next_round"
16929 for name in $names_this_round; do
16931 for n in $names_already_handled; do
16932 if test "$n" = "$name"; then
16933 already_handled=yes
16937 if test -z "$already_handled"; then
16938 names_already_handled="$names_already_handled $name"
16939 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16940 eval value=\"\$HAVE_LIB$uppername\"
16941 if test -n "$value"; then
16942 if test "$value" = yes; then
16943 eval value=\"\$LIB$uppername\"
16944 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16945 eval value=\"\$LTLIB$uppername\"
16946 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16955 if test $use_additional = yes; then
16956 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16957 found_dir="$additional_libdir"
16958 found_so="$additional_libdir/lib$name.$shlibext"
16959 if test -f "$additional_libdir/lib$name.la"; then
16960 found_la="$additional_libdir/lib$name.la"
16963 if test -f "$additional_libdir/lib$name.$libext"; then
16964 found_dir="$additional_libdir"
16965 found_a="$additional_libdir/lib$name.$libext"
16966 if test -f "$additional_libdir/lib$name.la"; then
16967 found_la="$additional_libdir/lib$name.la"
16972 if test "X$found_dir" = "X"; then
16973 for x in $LDFLAGS $LTLIBICONV; do
16975 acl_save_prefix="$prefix"
16976 prefix="$acl_final_prefix"
16977 acl_save_exec_prefix="$exec_prefix"
16978 exec_prefix="$acl_final_exec_prefix"
16980 exec_prefix="$acl_save_exec_prefix"
16981 prefix="$acl_save_prefix"
16985 dir=`echo "X$x" | sed -e 's/^X-L//'`
16986 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16988 found_so="$dir/lib$name.$shlibext"
16989 if test -f "$dir/lib$name.la"; then
16990 found_la="$dir/lib$name.la"
16993 if test -f "$dir/lib$name.$libext"; then
16995 found_a="$dir/lib$name.$libext"
16996 if test -f "$dir/lib$name.la"; then
16997 found_la="$dir/lib$name.la"
17003 if test "X$found_dir" != "X"; then
17008 if test "X$found_dir" != "X"; then
17009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17010 if test "X$found_so" != "X"; then
17011 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17012 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17015 for x in $ltrpathdirs; do
17016 if test "X$x" = "X$found_dir"; then
17021 if test -z "$haveit"; then
17022 ltrpathdirs="$ltrpathdirs $found_dir"
17024 if test "$hardcode_direct" = yes; then
17025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17027 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17028 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17030 for x in $rpathdirs; do
17031 if test "X$x" = "X$found_dir"; then
17036 if test -z "$haveit"; then
17037 rpathdirs="$rpathdirs $found_dir"
17041 for x in $LDFLAGS $LIBICONV; do
17043 acl_save_prefix="$prefix"
17044 prefix="$acl_final_prefix"
17045 acl_save_exec_prefix="$exec_prefix"
17046 exec_prefix="$acl_final_exec_prefix"
17048 exec_prefix="$acl_save_exec_prefix"
17049 prefix="$acl_save_prefix"
17051 if test "X$x" = "X-L$found_dir"; then
17056 if test -z "$haveit"; then
17057 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17059 if test "$hardcode_minus_L" != no; then
17060 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17062 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17068 if test "X$found_a" != "X"; then
17069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17071 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17074 additional_includedir=
17075 case "$found_dir" in
17077 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17078 additional_includedir="$basedir/include"
17081 if test "X$additional_includedir" != "X"; then
17082 if test "X$additional_includedir" != "X/usr/include"; then
17084 if test "X$additional_includedir" = "X/usr/local/include"; then
17085 if test -n "$GCC"; then
17087 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17091 if test -z "$haveit"; then
17092 for x in $CPPFLAGS $INCICONV; do
17094 acl_save_prefix="$prefix"
17095 prefix="$acl_final_prefix"
17096 acl_save_exec_prefix="$exec_prefix"
17097 exec_prefix="$acl_final_exec_prefix"
17099 exec_prefix="$acl_save_exec_prefix"
17100 prefix="$acl_save_prefix"
17102 if test "X$x" = "X-I$additional_includedir"; then
17107 if test -z "$haveit"; then
17108 if test -d "$additional_includedir"; then
17109 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17115 if test -n "$found_la"; then
17116 save_libdir="$libdir"
17117 case "$found_la" in
17118 */* | *\\*) . "$found_la" ;;
17119 *) . "./$found_la" ;;
17121 libdir="$save_libdir"
17122 for dep in $dependency_libs; do
17125 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17126 if test "X$additional_libdir" != "X/usr/lib"; then
17128 if test "X$additional_libdir" = "X/usr/local/lib"; then
17129 if test -n "$GCC"; then
17131 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17135 if test -z "$haveit"; then
17137 for x in $LDFLAGS $LIBICONV; do
17139 acl_save_prefix="$prefix"
17140 prefix="$acl_final_prefix"
17141 acl_save_exec_prefix="$exec_prefix"
17142 exec_prefix="$acl_final_exec_prefix"
17144 exec_prefix="$acl_save_exec_prefix"
17145 prefix="$acl_save_prefix"
17147 if test "X$x" = "X-L$additional_libdir"; then
17152 if test -z "$haveit"; then
17153 if test -d "$additional_libdir"; then
17154 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17158 for x in $LDFLAGS $LTLIBICONV; do
17160 acl_save_prefix="$prefix"
17161 prefix="$acl_final_prefix"
17162 acl_save_exec_prefix="$exec_prefix"
17163 exec_prefix="$acl_final_exec_prefix"
17165 exec_prefix="$acl_save_exec_prefix"
17166 prefix="$acl_save_prefix"
17168 if test "X$x" = "X-L$additional_libdir"; then
17173 if test -z "$haveit"; then
17174 if test -d "$additional_libdir"; then
17175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17182 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17183 if test "$enable_rpath" != no; then
17185 for x in $rpathdirs; do
17186 if test "X$x" = "X$dir"; then
17191 if test -z "$haveit"; then
17192 rpathdirs="$rpathdirs $dir"
17195 for x in $ltrpathdirs; do
17196 if test "X$x" = "X$dir"; then
17201 if test -z "$haveit"; then
17202 ltrpathdirs="$ltrpathdirs $dir"
17207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17213 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17220 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17221 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17227 if test "X$rpathdirs" != "X"; then
17228 if test -n "$hardcode_libdir_separator"; then
17230 for found_dir in $rpathdirs; do
17231 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17233 acl_save_libdir="$libdir"
17235 eval flag=\"$hardcode_libdir_flag_spec\"
17236 libdir="$acl_save_libdir"
17237 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17239 for found_dir in $rpathdirs; do
17240 acl_save_libdir="$libdir"
17241 libdir="$found_dir"
17242 eval flag=\"$hardcode_libdir_flag_spec\"
17243 libdir="$acl_save_libdir"
17244 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17248 if test "X$ltrpathdirs" != "X"; then
17249 for found_dir in $ltrpathdirs; do
17250 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17271 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17272 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17273 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 gt_save_CPPFLAGS="$CPPFLAGS"
17277 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17278 gt_save_LIBS="$LIBS"
17279 LIBS="$LIBS -framework CoreFoundation"
17280 cat >conftest.$ac_ext <<_ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 #include <CFPreferences.h>
17290 CFPreferencesCopyAppValue(NULL, NULL)
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (ac_try="$ac_link"
17297 case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_link") 2>conftest.er1
17304 grep -v '^ *+' conftest.er1 >conftest.err
17306 cat conftest.err >&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } && {
17309 test -z "$ac_c_werror_flag" ||
17310 test ! -s conftest.err
17311 } && test -s conftest$ac_exeext &&
17312 $as_test_x conftest$ac_exeext; then
17313 gt_cv_func_CFPreferencesCopyAppValue=yes
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 gt_cv_func_CFPreferencesCopyAppValue=no
17321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17322 conftest$ac_exeext conftest.$ac_ext
17323 CPPFLAGS="$gt_save_CPPFLAGS"
17324 LIBS="$gt_save_LIBS"
17326 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17327 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17328 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17330 cat >>confdefs.h <<\_ACEOF
17331 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17335 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17336 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17337 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 gt_save_CPPFLAGS="$CPPFLAGS"
17341 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17342 gt_save_LIBS="$LIBS"
17343 LIBS="$LIBS -framework CoreFoundation"
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 #include <CFLocale.h>
17354 CFLocaleCopyCurrent();
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
17377 gt_cv_func_CFLocaleCopyCurrent=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 gt_cv_func_CFLocaleCopyCurrent=no
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386 conftest$ac_exeext conftest.$ac_ext
17387 CPPFLAGS="$gt_save_CPPFLAGS"
17388 LIBS="$gt_save_LIBS"
17390 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17391 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17392 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_CFLOCALECOPYCURRENT 1
17400 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17401 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17407 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17408 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17409 # Check whether --enable-nls was given.
17410 if test "${enable_nls+set}" = set; then
17411 enableval=$enable_nls; USE_NLS=$enableval
17416 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17417 echo "${ECHO_T}$USE_NLS" >&6; }
17426 if test "$USE_NLS" = "yes"; then
17427 gt_use_preinstalled_gnugettext=no
17434 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17435 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17436 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 cat >conftest.$ac_ext <<_ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 #include <libintl.h>
17446 extern int _nl_msg_cat_cntr;
17447 extern int *_nl_domain_bindings;
17451 bindtextdomain ("", "");
17452 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (ac_try="$ac_link"
17459 case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_link") 2>conftest.er1
17466 grep -v '^ *+' conftest.er1 >conftest.err
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } && {
17471 test -z "$ac_c_werror_flag" ||
17472 test ! -s conftest.err
17473 } && test -s conftest$ac_exeext &&
17474 $as_test_x conftest$ac_exeext; then
17475 gt_cv_func_gnugettext1_libc=yes
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 gt_cv_func_gnugettext1_libc=no
17483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17484 conftest$ac_exeext conftest.$ac_ext
17486 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17487 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17489 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17495 am_save_CPPFLAGS="$CPPFLAGS"
17497 for element in $INCICONV; do
17499 for x in $CPPFLAGS; do
17501 acl_save_prefix="$prefix"
17502 prefix="$acl_final_prefix"
17503 acl_save_exec_prefix="$exec_prefix"
17504 exec_prefix="$acl_final_exec_prefix"
17506 exec_prefix="$acl_save_exec_prefix"
17507 prefix="$acl_save_prefix"
17509 if test "X$x" = "X$element"; then
17514 if test -z "$haveit"; then
17515 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17520 { echo "$as_me:$LINENO: checking for iconv" >&5
17521 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17522 if test "${am_cv_func_iconv+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 am_cv_func_iconv="no, consider installing GNU libiconv"
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 #include <stdlib.h>
17539 iconv_t cd = iconv_open("","");
17540 iconv(cd,NULL,NULL,NULL,NULL);
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (ac_try="$ac_link"
17548 case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_link") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } && {
17560 test -z "$ac_c_werror_flag" ||
17561 test ! -s conftest.err
17562 } && test -s conftest$ac_exeext &&
17563 $as_test_x conftest$ac_exeext; then
17564 am_cv_func_iconv=yes
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17573 conftest$ac_exeext conftest.$ac_ext
17574 if test "$am_cv_func_iconv" != yes; then
17575 am_save_LIBS="$LIBS"
17576 LIBS="$LIBS $LIBICONV"
17577 cat >conftest.$ac_ext <<_ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17583 #include <stdlib.h>
17588 iconv_t cd = iconv_open("","");
17589 iconv(cd,NULL,NULL,NULL,NULL);
17595 rm -f conftest.$ac_objext conftest$ac_exeext
17596 if { (ac_try="$ac_link"
17597 case "(($ac_try" in
17598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602 (eval "$ac_link") 2>conftest.er1
17604 grep -v '^ *+' conftest.er1 >conftest.err
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } && {
17609 test -z "$ac_c_werror_flag" ||
17610 test ! -s conftest.err
17611 } && test -s conftest$ac_exeext &&
17612 $as_test_x conftest$ac_exeext; then
17613 am_cv_lib_iconv=yes
17614 am_cv_func_iconv=yes
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17623 conftest$ac_exeext conftest.$ac_ext
17624 LIBS="$am_save_LIBS"
17628 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17629 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17630 if test "$am_cv_func_iconv" = yes; then
17632 cat >>confdefs.h <<\_ACEOF
17633 #define HAVE_ICONV 1
17637 if test "$am_cv_lib_iconv" = yes; then
17638 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17639 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17640 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17641 echo "${ECHO_T}$LIBICONV" >&6; }
17643 CPPFLAGS="$am_save_CPPFLAGS"
17655 acl_save_prefix="$prefix"
17656 prefix="$acl_final_prefix"
17657 acl_save_exec_prefix="$exec_prefix"
17658 exec_prefix="$acl_final_exec_prefix"
17660 eval additional_includedir=\"$includedir\"
17661 eval additional_libdir=\"$libdir\"
17663 exec_prefix="$acl_save_exec_prefix"
17664 prefix="$acl_save_prefix"
17667 # Check whether --with-libintl-prefix was given.
17668 if test "${with_libintl_prefix+set}" = set; then
17669 withval=$with_libintl_prefix;
17670 if test "X$withval" = "Xno"; then
17673 if test "X$withval" = "X"; then
17675 acl_save_prefix="$prefix"
17676 prefix="$acl_final_prefix"
17677 acl_save_exec_prefix="$exec_prefix"
17678 exec_prefix="$acl_final_exec_prefix"
17680 eval additional_includedir=\"$includedir\"
17681 eval additional_libdir=\"$libdir\"
17683 exec_prefix="$acl_save_exec_prefix"
17684 prefix="$acl_save_prefix"
17687 additional_includedir="$withval/include"
17688 additional_libdir="$withval/lib"
17699 names_already_handled=
17700 names_next_round='intl '
17701 while test -n "$names_next_round"; do
17702 names_this_round="$names_next_round"
17704 for name in $names_this_round; do
17706 for n in $names_already_handled; do
17707 if test "$n" = "$name"; then
17708 already_handled=yes
17712 if test -z "$already_handled"; then
17713 names_already_handled="$names_already_handled $name"
17714 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17715 eval value=\"\$HAVE_LIB$uppername\"
17716 if test -n "$value"; then
17717 if test "$value" = yes; then
17718 eval value=\"\$LIB$uppername\"
17719 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17720 eval value=\"\$LTLIB$uppername\"
17721 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17730 if test $use_additional = yes; then
17731 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17732 found_dir="$additional_libdir"
17733 found_so="$additional_libdir/lib$name.$shlibext"
17734 if test -f "$additional_libdir/lib$name.la"; then
17735 found_la="$additional_libdir/lib$name.la"
17738 if test -f "$additional_libdir/lib$name.$libext"; then
17739 found_dir="$additional_libdir"
17740 found_a="$additional_libdir/lib$name.$libext"
17741 if test -f "$additional_libdir/lib$name.la"; then
17742 found_la="$additional_libdir/lib$name.la"
17747 if test "X$found_dir" = "X"; then
17748 for x in $LDFLAGS $LTLIBINTL; do
17750 acl_save_prefix="$prefix"
17751 prefix="$acl_final_prefix"
17752 acl_save_exec_prefix="$exec_prefix"
17753 exec_prefix="$acl_final_exec_prefix"
17755 exec_prefix="$acl_save_exec_prefix"
17756 prefix="$acl_save_prefix"
17760 dir=`echo "X$x" | sed -e 's/^X-L//'`
17761 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17763 found_so="$dir/lib$name.$shlibext"
17764 if test -f "$dir/lib$name.la"; then
17765 found_la="$dir/lib$name.la"
17768 if test -f "$dir/lib$name.$libext"; then
17770 found_a="$dir/lib$name.$libext"
17771 if test -f "$dir/lib$name.la"; then
17772 found_la="$dir/lib$name.la"
17778 if test "X$found_dir" != "X"; then
17783 if test "X$found_dir" != "X"; then
17784 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17785 if test "X$found_so" != "X"; then
17786 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17787 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17790 for x in $ltrpathdirs; do
17791 if test "X$x" = "X$found_dir"; then
17796 if test -z "$haveit"; then
17797 ltrpathdirs="$ltrpathdirs $found_dir"
17799 if test "$hardcode_direct" = yes; then
17800 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17802 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17803 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17805 for x in $rpathdirs; do
17806 if test "X$x" = "X$found_dir"; then
17811 if test -z "$haveit"; then
17812 rpathdirs="$rpathdirs $found_dir"
17816 for x in $LDFLAGS $LIBINTL; do
17818 acl_save_prefix="$prefix"
17819 prefix="$acl_final_prefix"
17820 acl_save_exec_prefix="$exec_prefix"
17821 exec_prefix="$acl_final_exec_prefix"
17823 exec_prefix="$acl_save_exec_prefix"
17824 prefix="$acl_save_prefix"
17826 if test "X$x" = "X-L$found_dir"; then
17831 if test -z "$haveit"; then
17832 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17834 if test "$hardcode_minus_L" != no; then
17835 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17837 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17843 if test "X$found_a" != "X"; then
17844 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17846 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17849 additional_includedir=
17850 case "$found_dir" in
17852 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17853 additional_includedir="$basedir/include"
17856 if test "X$additional_includedir" != "X"; then
17857 if test "X$additional_includedir" != "X/usr/include"; then
17859 if test "X$additional_includedir" = "X/usr/local/include"; then
17860 if test -n "$GCC"; then
17862 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17866 if test -z "$haveit"; then
17867 for x in $CPPFLAGS $INCINTL; do
17869 acl_save_prefix="$prefix"
17870 prefix="$acl_final_prefix"
17871 acl_save_exec_prefix="$exec_prefix"
17872 exec_prefix="$acl_final_exec_prefix"
17874 exec_prefix="$acl_save_exec_prefix"
17875 prefix="$acl_save_prefix"
17877 if test "X$x" = "X-I$additional_includedir"; then
17882 if test -z "$haveit"; then
17883 if test -d "$additional_includedir"; then
17884 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17890 if test -n "$found_la"; then
17891 save_libdir="$libdir"
17892 case "$found_la" in
17893 */* | *\\*) . "$found_la" ;;
17894 *) . "./$found_la" ;;
17896 libdir="$save_libdir"
17897 for dep in $dependency_libs; do
17900 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17901 if test "X$additional_libdir" != "X/usr/lib"; then
17903 if test "X$additional_libdir" = "X/usr/local/lib"; then
17904 if test -n "$GCC"; then
17906 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17910 if test -z "$haveit"; then
17912 for x in $LDFLAGS $LIBINTL; do
17914 acl_save_prefix="$prefix"
17915 prefix="$acl_final_prefix"
17916 acl_save_exec_prefix="$exec_prefix"
17917 exec_prefix="$acl_final_exec_prefix"
17919 exec_prefix="$acl_save_exec_prefix"
17920 prefix="$acl_save_prefix"
17922 if test "X$x" = "X-L$additional_libdir"; then
17927 if test -z "$haveit"; then
17928 if test -d "$additional_libdir"; then
17929 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17933 for x in $LDFLAGS $LTLIBINTL; do
17935 acl_save_prefix="$prefix"
17936 prefix="$acl_final_prefix"
17937 acl_save_exec_prefix="$exec_prefix"
17938 exec_prefix="$acl_final_exec_prefix"
17940 exec_prefix="$acl_save_exec_prefix"
17941 prefix="$acl_save_prefix"
17943 if test "X$x" = "X-L$additional_libdir"; then
17948 if test -z "$haveit"; then
17949 if test -d "$additional_libdir"; then
17950 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17957 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17958 if test "$enable_rpath" != no; then
17960 for x in $rpathdirs; do
17961 if test "X$x" = "X$dir"; then
17966 if test -z "$haveit"; then
17967 rpathdirs="$rpathdirs $dir"
17970 for x in $ltrpathdirs; do
17971 if test "X$x" = "X$dir"; then
17976 if test -z "$haveit"; then
17977 ltrpathdirs="$ltrpathdirs $dir"
17982 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17985 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17988 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17989 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17995 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17996 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18002 if test "X$rpathdirs" != "X"; then
18003 if test -n "$hardcode_libdir_separator"; then
18005 for found_dir in $rpathdirs; do
18006 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18008 acl_save_libdir="$libdir"
18010 eval flag=\"$hardcode_libdir_flag_spec\"
18011 libdir="$acl_save_libdir"
18012 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18014 for found_dir in $rpathdirs; do
18015 acl_save_libdir="$libdir"
18016 libdir="$found_dir"
18017 eval flag=\"$hardcode_libdir_flag_spec\"
18018 libdir="$acl_save_libdir"
18019 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18023 if test "X$ltrpathdirs" != "X"; then
18024 for found_dir in $ltrpathdirs; do
18025 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18029 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18030 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18031 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 gt_save_CPPFLAGS="$CPPFLAGS"
18035 CPPFLAGS="$CPPFLAGS $INCINTL"
18036 gt_save_LIBS="$LIBS"
18037 LIBS="$LIBS $LIBINTL"
18038 cat >conftest.$ac_ext <<_ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 #include <libintl.h>
18045 extern int _nl_msg_cat_cntr;
18050 const char *_nl_expand_alias (const char *);
18054 bindtextdomain ("", "");
18055 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_link") 2>conftest.er1
18069 grep -v '^ *+' conftest.er1 >conftest.err
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } && {
18074 test -z "$ac_c_werror_flag" ||
18075 test ! -s conftest.err
18076 } && test -s conftest$ac_exeext &&
18077 $as_test_x conftest$ac_exeext; then
18078 gt_cv_func_gnugettext1_libintl=yes
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 gt_cv_func_gnugettext1_libintl=no
18086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18087 conftest$ac_exeext conftest.$ac_ext
18088 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18089 LIBS="$LIBS $LIBICONV"
18090 cat >conftest.$ac_ext <<_ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18096 #include <libintl.h>
18097 extern int _nl_msg_cat_cntr;
18102 const char *_nl_expand_alias (const char *);
18106 bindtextdomain ("", "");
18107 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_link") 2>conftest.er1
18121 grep -v '^ *+' conftest.er1 >conftest.err
18123 cat conftest.err >&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } && {
18126 test -z "$ac_c_werror_flag" ||
18127 test ! -s conftest.err
18128 } && test -s conftest$ac_exeext &&
18129 $as_test_x conftest$ac_exeext; then
18130 LIBINTL="$LIBINTL $LIBICONV"
18131 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18132 gt_cv_func_gnugettext1_libintl=yes
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18142 conftest$ac_exeext conftest.$ac_ext
18144 CPPFLAGS="$gt_save_CPPFLAGS"
18145 LIBS="$gt_save_LIBS"
18147 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18148 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18151 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18152 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18153 && test "$PACKAGE" != gettext-runtime \
18154 && test "$PACKAGE" != gettext-tools; }; then
18155 gt_use_preinstalled_gnugettext=yes
18164 if test -n "$INTL_MACOSX_LIBS"; then
18165 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18166 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18167 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18168 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18172 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18173 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18175 cat >>confdefs.h <<\_ACEOF
18176 #define ENABLE_NLS 1
18184 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18185 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18186 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18187 echo "${ECHO_T}$USE_NLS" >&6; }
18188 if test "$USE_NLS" = "yes"; then
18189 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18190 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18191 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18192 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18193 gt_source="external libintl"
18198 gt_source="included intl directory"
18200 { echo "$as_me:$LINENO: result: $gt_source" >&5
18201 echo "${ECHO_T}$gt_source" >&6; }
18204 if test "$USE_NLS" = "yes"; then
18206 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18207 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18208 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18209 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18210 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18211 echo "${ECHO_T}$LIBINTL" >&6; }
18213 for element in $INCINTL; do
18215 for x in $CPPFLAGS; do
18217 acl_save_prefix="$prefix"
18218 prefix="$acl_final_prefix"
18219 acl_save_exec_prefix="$exec_prefix"
18220 exec_prefix="$acl_final_exec_prefix"
18222 exec_prefix="$acl_save_exec_prefix"
18223 prefix="$acl_save_prefix"
18225 if test "X$x" = "X$element"; then
18230 if test -z "$haveit"; then
18231 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18238 cat >>confdefs.h <<\_ACEOF
18239 #define HAVE_GETTEXT 1
18243 cat >>confdefs.h <<\_ACEOF
18244 #define HAVE_DCGETTEXT 1
18254 INTLLIBS="$LIBINTL"
18261 if test x${prefix} = xNONE ; then
18262 if test `eval echo ${datarootdir}` = NONE/share ; then
18263 datarootdir=/usr/share
18267 if test x${prefix} = xNONE ; then
18268 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18269 sysconfdir=/etc/bacula
18272 if test `eval echo ${libdir}` = NONE/lib ; then
18273 sysconfdir=/usr/lib
18276 if test `eval echo ${includedir}` = NONE/include ; then
18277 sysconfdir=/usr/include
18282 sysconfdir=`eval echo ${sysconfdir}`
18283 datarootdir=`eval echo ${datarootdir}`
18284 localedir=`eval echo ${datarootdir}/locale`
18285 cat >>confdefs.h <<_ACEOF
18286 #define SYSCONFDIR "$sysconfdir"
18289 cat >>confdefs.h <<_ACEOF
18290 #define LOCALEDIR "$localedir"
18294 if test x${exec_prefix} = xNONE ; then
18295 exec_prefix=${prefix}
18298 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18299 sbindir=${exec_prefix}/sbin
18301 sbindir=`eval echo ${sbindir}`
18303 if test x$mandir = x'${prefix}/man' ; then
18304 mandir=/usr/share/man
18307 for ac_prog in msgfmt
18309 # Extract the first word of "$ac_prog", so it can be a program name with args.
18310 set dummy $ac_prog; ac_word=$2
18311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18313 if test "${ac_cv_path_MSGFMT+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322 for as_dir in $PATH
18325 test -z "$as_dir" && as_dir=.
18326 for ac_exec_ext in '' $ac_executable_extensions; do
18327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18328 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18339 MSGFMT=$ac_cv_path_MSGFMT
18340 if test -n "$MSGFMT"; then
18341 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18342 echo "${ECHO_T}$MSGFMT" >&6; }
18344 { echo "$as_me:$LINENO: result: no" >&5
18345 echo "${ECHO_T}no" >&6; }
18349 test -n "$MSGFMT" && break
18351 test -n "$MSGFMT" || MSGFMT="no"
18353 if test "$MSGFMT" = "no"
18355 echo 'msgfmt program not found, disabling NLS !'
18357 USE_INCLUDED_LIBINTL=no
18360 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18361 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18362 if test "${ac_cv_gnu_library_2+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18372 #include <features.h>
18373 #ifdef __GNU_LIBRARY__
18374 #if (__GLIBC__ >= 2)
18380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18381 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18382 ac_cv_gnu_library_2=yes
18384 ac_cv_gnu_library_2=no
18391 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18392 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18394 GLIBC2="$ac_cv_gnu_library_2"
18397 if test -n "$ac_tool_prefix"; then
18398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18402 if test "${ac_cv_prog_RANLIB+set}" = set; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 if test -n "$RANLIB"; then
18406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18409 for as_dir in $PATH
18412 test -z "$as_dir" && as_dir=.
18413 for ac_exec_ext in '' $ac_executable_extensions; do
18414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18425 RANLIB=$ac_cv_prog_RANLIB
18426 if test -n "$RANLIB"; then
18427 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18428 echo "${ECHO_T}$RANLIB" >&6; }
18430 { echo "$as_me:$LINENO: result: no" >&5
18431 echo "${ECHO_T}no" >&6; }
18436 if test -z "$ac_cv_prog_RANLIB"; then
18437 ac_ct_RANLIB=$RANLIB
18438 # Extract the first word of "ranlib", so it can be a program name with args.
18439 set dummy ranlib; ac_word=$2
18440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18442 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 if test -n "$ac_ct_RANLIB"; then
18446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18449 for as_dir in $PATH
18452 test -z "$as_dir" && as_dir=.
18453 for ac_exec_ext in '' $ac_executable_extensions; do
18454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18455 ac_cv_prog_ac_ct_RANLIB="ranlib"
18456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18466 if test -n "$ac_ct_RANLIB"; then
18467 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18468 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18470 { echo "$as_me:$LINENO: result: no" >&5
18471 echo "${ECHO_T}no" >&6; }
18474 if test "x$ac_ct_RANLIB" = x; then
18477 case $cross_compiling:$ac_tool_warned in
18479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18480 whose name does not start with the host triplet. If you think this
18481 configuration is useful to you, please write to autoconf@gnu.org." >&5
18482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18483 whose name does not start with the host triplet. If you think this
18484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18485 ac_tool_warned=yes ;;
18487 RANLIB=$ac_ct_RANLIB
18490 RANLIB="$ac_cv_prog_RANLIB"
18494 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18495 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18496 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18499 ac_check_lib_save_LIBS=$LIBS
18500 LIBS="-lcposix $LIBS"
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18508 /* Override any GCC internal prototype to avoid an error.
18509 Use char because int might match the return type of a GCC
18510 builtin and then its argument prototype would still apply. */
18518 return strerror ();
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } && {
18537 test -z "$ac_c_werror_flag" ||
18538 test ! -s conftest.err
18539 } && test -s conftest$ac_exeext &&
18540 $as_test_x conftest$ac_exeext; then
18541 ac_cv_lib_cposix_strerror=yes
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 ac_cv_lib_cposix_strerror=no
18549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18550 conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18553 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18554 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18555 if test $ac_cv_lib_cposix_strerror = yes; then
18556 LIBS="$LIBS -lcposix"
18561 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18562 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18563 if test "${ac_cv_c_const+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18566 cat >conftest.$ac_ext <<_ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18576 /* FIXME: Include the comments suggested by Paul. */
18577 #ifndef __cplusplus
18578 /* Ultrix mips cc rejects this. */
18579 typedef int charset[2];
18581 /* SunOS 4.1.1 cc rejects this. */
18582 char const *const *pcpcc;
18584 /* NEC SVR4.0.2 mips cc rejects this. */
18585 struct point {int x, y;};
18586 static struct point const zero = {0,0};
18587 /* AIX XL C 1.02.0.0 rejects this.
18588 It does not let you subtract one const X* pointer from another in
18589 an arm of an if-expression whose if-part is not a constant
18591 const char *g = "string";
18592 pcpcc = &g + (g ? g-g : 0);
18593 /* HPUX 7.0 cc rejects these. */
18595 ppc = (char**) pcpcc;
18596 pcpcc = (char const *const *) ppc;
18597 { /* SCO 3.2v4 cc rejects this. */
18599 char const *s = 0 ? (char *) 0 : (char const *) 0;
18604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18605 int x[] = {25, 17};
18606 const int *foo = &x[0];
18609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18610 typedef const int *iptr;
18614 { /* AIX XL C 1.02.0.0 rejects this saying
18615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18616 struct s { int j; const int *ap[3]; };
18617 struct s *b; b->j = 5;
18619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18620 const int foo = 10;
18621 if (!foo) return 0;
18623 return !cs[0] && !zero.x;
18630 rm -f conftest.$ac_objext
18631 if { (ac_try="$ac_compile"
18632 case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_compile") 2>conftest.er1
18639 grep -v '^ *+' conftest.er1 >conftest.err
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } && {
18644 test -z "$ac_c_werror_flag" ||
18645 test ! -s conftest.err
18646 } && test -s conftest.$ac_objext; then
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18657 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18658 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18659 if test $ac_cv_c_const = no; then
18661 cat >>confdefs.h <<\_ACEOF
18668 { echo "$as_me:$LINENO: checking for signed" >&5
18669 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18670 if test "${bh_cv_c_signed+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 cat >conftest.$ac_ext <<_ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18688 rm -f conftest.$ac_objext
18689 if { (ac_try="$ac_compile"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_compile") 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } && {
18702 test -z "$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 } && test -s conftest.$ac_objext; then
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18715 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18716 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18717 if test $bh_cv_c_signed = no; then
18719 cat >>confdefs.h <<\_ACEOF
18725 { echo "$as_me:$LINENO: checking for inline" >&5
18726 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18727 if test "${ac_cv_c_inline+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 for ac_kw in inline __inline__ __inline; do
18732 cat >conftest.$ac_ext <<_ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18738 #ifndef __cplusplus
18740 static $ac_kw foo_t static_foo () {return 0; }
18741 $ac_kw foo_t foo () {return 0; }
18745 rm -f conftest.$ac_objext
18746 if { (ac_try="$ac_compile"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_compile") 2>conftest.er1
18754 grep -v '^ *+' conftest.er1 >conftest.err
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } && {
18759 test -z "$ac_c_werror_flag" ||
18760 test ! -s conftest.err
18761 } && test -s conftest.$ac_objext; then
18762 ac_cv_c_inline=$ac_kw
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18771 test "$ac_cv_c_inline" != no && break
18775 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18776 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18779 case $ac_cv_c_inline in
18782 case $ac_cv_c_inline in
18784 *) ac_val=$ac_cv_c_inline;;
18786 cat >>confdefs.h <<_ACEOF
18787 #ifndef __cplusplus
18788 #define inline $ac_val
18794 { echo "$as_me:$LINENO: checking for off_t" >&5
18795 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18796 if test "${ac_cv_type_off_t+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 cat >conftest.$ac_ext <<_ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 $ac_includes_default
18806 typedef off_t ac__type_new_;
18810 if ((ac__type_new_ *) 0)
18812 if (sizeof (ac__type_new_))
18818 rm -f conftest.$ac_objext
18819 if { (ac_try="$ac_compile"
18820 case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_compile") 2>conftest.er1
18827 grep -v '^ *+' conftest.er1 >conftest.err
18829 cat conftest.err >&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } && {
18832 test -z "$ac_c_werror_flag" ||
18833 test ! -s conftest.err
18834 } && test -s conftest.$ac_objext; then
18835 ac_cv_type_off_t=yes
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18840 ac_cv_type_off_t=no
18843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18845 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18846 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18847 if test $ac_cv_type_off_t = yes; then
18851 cat >>confdefs.h <<_ACEOF
18852 #define off_t long int
18857 { echo "$as_me:$LINENO: checking for size_t" >&5
18858 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18859 if test "${ac_cv_type_size_t+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 cat >conftest.$ac_ext <<_ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18868 $ac_includes_default
18869 typedef size_t ac__type_new_;
18873 if ((ac__type_new_ *) 0)
18875 if (sizeof (ac__type_new_))
18881 rm -f conftest.$ac_objext
18882 if { (ac_try="$ac_compile"
18883 case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_compile") 2>conftest.er1
18890 grep -v '^ *+' conftest.er1 >conftest.err
18892 cat conftest.err >&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } && {
18895 test -z "$ac_c_werror_flag" ||
18896 test ! -s conftest.err
18897 } && test -s conftest.$ac_objext; then
18898 ac_cv_type_size_t=yes
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_cv_type_size_t=no
18906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18908 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18909 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18910 if test $ac_cv_type_size_t = yes; then
18914 cat >>confdefs.h <<_ACEOF
18915 #define size_t unsigned int
18921 { echo "$as_me:$LINENO: checking for long long" >&5
18922 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18923 if test "${ac_cv_type_long_long+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 long long ll = 1LL; int i = 63;
18936 long long llmax = (long long) -1;
18937 return ll << i | ll >> i | llmax / ll | llmax % ll;
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (ac_try="$ac_link"
18944 case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_link") 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } && {
18956 test -z "$ac_c_werror_flag" ||
18957 test ! -s conftest.err
18958 } && test -s conftest$ac_exeext &&
18959 $as_test_x conftest$ac_exeext; then
18960 ac_cv_type_long_long=yes
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 ac_cv_type_long_long=no
18968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18969 conftest$ac_exeext conftest.$ac_ext
18971 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18972 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18973 if test $ac_cv_type_long_long = yes; then
18975 cat >>confdefs.h <<\_ACEOF
18976 #define HAVE_LONG_LONG 1
18982 { echo "$as_me:$LINENO: checking for long double" >&5
18983 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18984 if test "${gt_cv_c_long_double+set}" = set; then
18985 echo $ECHO_N "(cached) $ECHO_C" >&6
18987 if test "$GCC" = yes; then
18988 gt_cv_c_long_double=yes
18990 cat >conftest.$ac_ext <<_ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18997 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18998 long double foo = 0.0;
18999 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19000 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19010 rm -f conftest.$ac_objext
19011 if { (ac_try="$ac_compile"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_compile") 2>conftest.er1
19019 grep -v '^ *+' conftest.er1 >conftest.err
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } && {
19024 test -z "$ac_c_werror_flag" ||
19025 test ! -s conftest.err
19026 } && test -s conftest.$ac_objext; then
19027 gt_cv_c_long_double=yes
19029 echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19032 gt_cv_c_long_double=no
19035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19039 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19040 if test $gt_cv_c_long_double = yes; then
19042 cat >>confdefs.h <<\_ACEOF
19043 #define HAVE_LONG_DOUBLE 1
19049 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19050 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19051 if test "${gt_cv_c_wchar_t+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 cat >conftest.$ac_ext <<_ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19060 #include <stddef.h>
19061 wchar_t foo = (wchar_t)'\0';
19070 rm -f conftest.$ac_objext
19071 if { (ac_try="$ac_compile"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_compile") 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && {
19084 test -z "$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 } && test -s conftest.$ac_objext; then
19087 gt_cv_c_wchar_t=yes
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19098 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19099 if test $gt_cv_c_wchar_t = yes; then
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_WCHAR_T 1
19108 { echo "$as_me:$LINENO: checking for wint_t" >&5
19109 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19110 if test "${gt_cv_c_wint_t+set}" = set; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 cat >conftest.$ac_ext <<_ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19120 wint_t foo = (wchar_t)'\0';
19129 rm -f conftest.$ac_objext
19130 if { (ac_try="$ac_compile"
19131 case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_compile") 2>conftest.er1
19138 grep -v '^ *+' conftest.er1 >conftest.err
19140 cat conftest.err >&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } && {
19143 test -z "$ac_c_werror_flag" ||
19144 test ! -s conftest.err
19145 } && test -s conftest.$ac_objext; then
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19156 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19157 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19158 if test $gt_cv_c_wint_t = yes; then
19160 cat >>confdefs.h <<\_ACEOF
19161 #define HAVE_WINT_T 1
19167 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19168 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19169 if test "${gl_cv_header_inttypes_h+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19178 #include <sys/types.h>
19179 #include <inttypes.h>
19183 uintmax_t i = (uintmax_t) -1;
19188 rm -f conftest.$ac_objext
19189 if { (ac_try="$ac_compile"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_compile") 2>conftest.er1
19197 grep -v '^ *+' conftest.er1 >conftest.err
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest.$ac_objext; then
19205 gl_cv_header_inttypes_h=yes
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 gl_cv_header_inttypes_h=no
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19216 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19217 if test $gl_cv_header_inttypes_h = yes; then
19219 cat >>confdefs.h <<_ACEOF
19220 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19226 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19227 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19228 if test "${gl_cv_header_stdint_h+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 cat >conftest.$ac_ext <<_ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 #include <sys/types.h>
19238 #include <stdint.h>
19242 uintmax_t i = (uintmax_t) -1;
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_compile") 2>conftest.er1
19256 grep -v '^ *+' conftest.er1 >conftest.err
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } && {
19261 test -z "$ac_c_werror_flag" ||
19262 test ! -s conftest.err
19263 } && test -s conftest.$ac_objext; then
19264 gl_cv_header_stdint_h=yes
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 gl_cv_header_stdint_h=no
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19275 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19276 if test $gl_cv_header_stdint_h = yes; then
19278 cat >>confdefs.h <<_ACEOF
19279 #define HAVE_STDINT_H_WITH_UINTMAX 1
19287 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19288 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19289 if test "${gt_cv_c_intmax_t+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19299 #include <stddef.h>
19300 #include <stdlib.h>
19301 #if HAVE_STDINT_H_WITH_UINTMAX
19302 #include <stdint.h>
19304 #if HAVE_INTTYPES_H_WITH_UINTMAX
19305 #include <inttypes.h>
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_compile") 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } && {
19330 test -z "$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 } && test -s conftest.$ac_objext; then
19333 gt_cv_c_intmax_t=yes
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 gt_cv_c_intmax_t=no
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19344 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19345 if test $gt_cv_c_intmax_t = yes; then
19347 cat >>confdefs.h <<\_ACEOF
19348 #define HAVE_INTMAX_T 1
19355 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19356 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19357 if test "${gt_cv_func_printf_posix+set}" = set; then
19358 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 if test "$cross_compiling" = yes; then
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19370 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19376 $EGREP "notposix" >/dev/null 2>&1; then
19377 gt_cv_func_printf_posix="guessing no"
19379 gt_cv_func_printf_posix="guessing yes"
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19393 #include <string.h>
19394 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19395 dollar expansion (possibly an autoconf bug). */
19396 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19397 static char buf[100];
19400 sprintf (buf, format, 33, 55);
19401 return (strcmp (buf, "55 33") != 0);
19404 rm -f conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_link") 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19415 { (case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_try") 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 gt_cv_func_printf_posix=yes
19426 echo "$as_me: program exited with status $ac_status" >&5
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 ( exit $ac_status )
19431 gt_cv_func_printf_posix=no
19433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19439 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19440 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19441 case $gt_cv_func_printf_posix in
19444 cat >>confdefs.h <<\_ACEOF
19445 #define HAVE_POSIX_PRINTF 1
19451 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19452 # for constant arguments. Useless!
19453 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19454 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19455 if test "${ac_cv_working_alloca_h+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 #include <alloca.h>
19468 char *p = (char *) alloca (2 * sizeof (int));
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (ac_try="$ac_link"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_link") 2>conftest.er1
19483 grep -v '^ *+' conftest.er1 >conftest.err
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest$ac_exeext &&
19491 $as_test_x conftest$ac_exeext; then
19492 ac_cv_working_alloca_h=yes
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_working_alloca_h=no
19500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19501 conftest$ac_exeext conftest.$ac_ext
19503 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19504 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19505 if test $ac_cv_working_alloca_h = yes; then
19507 cat >>confdefs.h <<\_ACEOF
19508 #define HAVE_ALLOCA_H 1
19513 { echo "$as_me:$LINENO: checking for alloca" >&5
19514 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19515 if test "${ac_cv_func_alloca_works+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19525 # define alloca __builtin_alloca
19528 # include <malloc.h>
19529 # define alloca _alloca
19531 # ifdef HAVE_ALLOCA_H
19532 # include <alloca.h>
19537 # ifndef alloca /* predefined by HP cc +Olibcalls */
19548 char *p = (char *) alloca (1);
19554 rm -f conftest.$ac_objext conftest$ac_exeext
19555 if { (ac_try="$ac_link"
19556 case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_link") 2>conftest.er1
19563 grep -v '^ *+' conftest.er1 >conftest.err
19565 cat conftest.err >&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } && {
19568 test -z "$ac_c_werror_flag" ||
19569 test ! -s conftest.err
19570 } && test -s conftest$ac_exeext &&
19571 $as_test_x conftest$ac_exeext; then
19572 ac_cv_func_alloca_works=yes
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 ac_cv_func_alloca_works=no
19580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19581 conftest$ac_exeext conftest.$ac_ext
19583 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19584 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19586 if test $ac_cv_func_alloca_works = yes; then
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_ALLOCA 1
19593 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19594 # that cause trouble. Some versions do not even contain alloca or
19595 # contain a buggy version. If you still want to use their alloca,
19596 # use ar to extract alloca.o from them instead of compiling alloca.c.
19598 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19600 cat >>confdefs.h <<\_ACEOF
19605 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19606 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19607 if test "${ac_cv_os_cray+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19610 cat >conftest.$ac_ext <<_ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19616 #if defined CRAY && ! defined CRAY2
19623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19624 $EGREP "webecray" >/dev/null 2>&1; then
19632 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19633 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19634 if test $ac_cv_os_cray = yes; then
19635 for ac_func in _getb67 GETB67 getb67; do
19636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 cat >conftest.$ac_ext <<_ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h. */
19648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19650 #define $ac_func innocuous_$ac_func
19652 /* System header to define __stub macros and hopefully few prototypes,
19653 which can conflict with char $ac_func (); below.
19654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19655 <limits.h> exists even on freestanding compilers. */
19658 # include <limits.h>
19660 # include <assert.h>
19665 /* Override any GCC internal prototype to avoid an error.
19666 Use char because int might match the return type of a GCC
19667 builtin and then its argument prototype would still apply. */
19672 /* The GNU C library defines this for functions which it implements
19673 to always fail with ENOSYS. Some functions are actually named
19674 something starting with __ and the normal name is an alias. */
19675 #if defined __stub_$ac_func || defined __stub___$ac_func
19682 return $ac_func ();
19687 rm -f conftest.$ac_objext conftest$ac_exeext
19688 if { (ac_try="$ac_link"
19689 case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_link") 2>conftest.er1
19696 grep -v '^ *+' conftest.er1 >conftest.err
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } && {
19701 test -z "$ac_c_werror_flag" ||
19702 test ! -s conftest.err
19703 } && test -s conftest$ac_exeext &&
19704 $as_test_x conftest$ac_exeext; then
19705 eval "$as_ac_var=yes"
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 eval "$as_ac_var=no"
19713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19714 conftest$ac_exeext conftest.$ac_ext
19716 ac_res=`eval echo '${'$as_ac_var'}'`
19717 { echo "$as_me:$LINENO: result: $ac_res" >&5
19718 echo "${ECHO_T}$ac_res" >&6; }
19719 if test `eval echo '${'$as_ac_var'}'` = yes; then
19721 cat >>confdefs.h <<_ACEOF
19722 #define CRAY_STACKSEG_END $ac_func
19731 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19732 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19733 if test "${ac_cv_c_stack_direction+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 if test "$cross_compiling" = yes; then
19737 ac_cv_c_stack_direction=0
19739 cat >conftest.$ac_ext <<_ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745 $ac_includes_default
19747 find_stack_direction ()
19749 static char *addr = 0;
19754 return find_stack_direction ();
19757 return (&dummy > addr) ? 1 : -1;
19763 return find_stack_direction () < 0;
19766 rm -f conftest$ac_exeext
19767 if { (ac_try="$ac_link"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_link") 2>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_cv_c_stack_direction=1
19788 echo "$as_me: program exited with status $ac_status" >&5
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ( exit $ac_status )
19793 ac_cv_c_stack_direction=-1
19795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19800 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19801 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19803 cat >>confdefs.h <<_ACEOF
19804 #define STACK_DIRECTION $ac_cv_c_stack_direction
19812 for ac_header in stdlib.h unistd.h
19814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19821 ac_res=`eval echo '${'$as_ac_Header'}'`
19822 { echo "$as_me:$LINENO: result: $ac_res" >&5
19823 echo "${ECHO_T}$ac_res" >&6; }
19825 # Is the header compilable?
19826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 $ac_includes_default
19835 #include <$ac_header>
19837 rm -f conftest.$ac_objext
19838 if { (ac_try="$ac_compile"
19839 case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_compile") 2>conftest.er1
19846 grep -v '^ *+' conftest.er1 >conftest.err
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } && {
19851 test -z "$ac_c_werror_flag" ||
19852 test ! -s conftest.err
19853 } && test -s conftest.$ac_objext; then
19854 ac_header_compiler=yes
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 ac_header_compiler=no
19862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19864 echo "${ECHO_T}$ac_header_compiler" >&6; }
19866 # Is the header present?
19867 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19869 cat >conftest.$ac_ext <<_ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 #include <$ac_header>
19877 if { (ac_try="$ac_cpp conftest.$ac_ext"
19878 case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19885 grep -v '^ *+' conftest.er1 >conftest.err
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } >/dev/null && {
19890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19891 test ! -s conftest.err
19893 ac_header_preproc=yes
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19898 ac_header_preproc=no
19901 rm -f conftest.err conftest.$ac_ext
19902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19903 echo "${ECHO_T}$ac_header_preproc" >&6; }
19905 # So? What about this header?
19906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19912 ac_header_preproc=yes
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 eval "$as_ac_Header=\$ac_header_preproc"
19937 ac_res=`eval echo '${'$as_ac_Header'}'`
19938 { echo "$as_me:$LINENO: result: $ac_res" >&5
19939 echo "${ECHO_T}$ac_res" >&6; }
19942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19943 cat >>confdefs.h <<_ACEOF
19944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19952 for ac_func in getpagesize
19954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19968 #define $ac_func innocuous_$ac_func
19970 /* System header to define __stub macros and hopefully few prototypes,
19971 which can conflict with char $ac_func (); below.
19972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19973 <limits.h> exists even on freestanding compilers. */
19976 # include <limits.h>
19978 # include <assert.h>
19983 /* Override any GCC internal prototype to avoid an error.
19984 Use char because int might match the return type of a GCC
19985 builtin and then its argument prototype would still apply. */
19990 /* The GNU C library defines this for functions which it implements
19991 to always fail with ENOSYS. Some functions are actually named
19992 something starting with __ and the normal name is an alias. */
19993 #if defined __stub_$ac_func || defined __stub___$ac_func
20000 return $ac_func ();
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (ac_try="$ac_link"
20007 case "(($ac_try" in
20008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009 *) ac_try_echo=$ac_try;;
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012 (eval "$ac_link") 2>conftest.er1
20014 grep -v '^ *+' conftest.er1 >conftest.err
20016 cat conftest.err >&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } && {
20019 test -z "$ac_c_werror_flag" ||
20020 test ! -s conftest.err
20021 } && test -s conftest$ac_exeext &&
20022 $as_test_x conftest$ac_exeext; then
20023 eval "$as_ac_var=yes"
20025 echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20028 eval "$as_ac_var=no"
20031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20032 conftest$ac_exeext conftest.$ac_ext
20034 ac_res=`eval echo '${'$as_ac_var'}'`
20035 { echo "$as_me:$LINENO: result: $ac_res" >&5
20036 echo "${ECHO_T}$ac_res" >&6; }
20037 if test `eval echo '${'$as_ac_var'}'` = yes; then
20038 cat >>confdefs.h <<_ACEOF
20039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20045 { echo "$as_me:$LINENO: checking for working mmap" >&5
20046 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20047 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 if test "$cross_compiling" = yes; then
20051 ac_cv_func_mmap_fixed_mapped=no
20053 cat >conftest.$ac_ext <<_ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 $ac_includes_default
20060 /* malloc might have been renamed as rpl_malloc. */
20063 /* Thanks to Mike Haertel and Jim Avera for this test.
20064 Here is a matrix of mmap possibilities:
20065 mmap private not fixed
20066 mmap private fixed at somewhere currently unmapped
20067 mmap private fixed at somewhere already mapped
20068 mmap shared not fixed
20069 mmap shared fixed at somewhere currently unmapped
20070 mmap shared fixed at somewhere already mapped
20071 For private mappings, we should verify that changes cannot be read()
20072 back from the file, nor mmap's back from the file at a different
20073 address. (There have been systems where private was not correctly
20074 implemented like the infamous i386 svr4.0, and systems where the
20075 VM page cache was not coherent with the file system buffer cache
20076 like early versions of FreeBSD and possibly contemporary NetBSD.)
20077 For shared mappings, we should conversely verify that changes get
20078 propagated back to all the places they're supposed to be.
20080 Grep wants private fixed already mapped.
20081 The main things grep needs to know about mmap are:
20082 * does it exist and is it safe to write into the mmap'd area
20083 * how to use it (BSD variants) */
20086 #include <sys/mman.h>
20088 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20092 /* This mess was copied from the GNU getpagesize.h. */
20093 #ifndef HAVE_GETPAGESIZE
20094 /* Assume that all systems that can run configure have sys/param.h. */
20095 # ifndef HAVE_SYS_PARAM_H
20096 # define HAVE_SYS_PARAM_H 1
20099 # ifdef _SC_PAGESIZE
20100 # define getpagesize() sysconf(_SC_PAGESIZE)
20101 # else /* no _SC_PAGESIZE */
20102 # ifdef HAVE_SYS_PARAM_H
20103 # include <sys/param.h>
20104 # ifdef EXEC_PAGESIZE
20105 # define getpagesize() EXEC_PAGESIZE
20106 # else /* no EXEC_PAGESIZE */
20108 # define getpagesize() NBPG * CLSIZE
20111 # endif /* no CLSIZE */
20112 # else /* no NBPG */
20114 # define getpagesize() NBPC
20115 # else /* no NBPC */
20117 # define getpagesize() PAGESIZE
20118 # endif /* PAGESIZE */
20119 # endif /* no NBPC */
20120 # endif /* no NBPG */
20121 # endif /* no EXEC_PAGESIZE */
20122 # else /* no HAVE_SYS_PARAM_H */
20123 # define getpagesize() 8192 /* punt totally */
20124 # endif /* no HAVE_SYS_PARAM_H */
20125 # endif /* no _SC_PAGESIZE */
20127 #endif /* no HAVE_GETPAGESIZE */
20132 char *data, *data2, *data3;
20136 pagesize = getpagesize ();
20138 /* First, make a file with some known garbage in it. */
20139 data = (char *) malloc (pagesize);
20142 for (i = 0; i < pagesize; ++i)
20143 *(data + i) = rand ();
20145 fd = creat ("conftest.mmap", 0600);
20148 if (write (fd, data, pagesize) != pagesize)
20152 /* Next, try to mmap the file at a fixed address which already has
20153 something else allocated at it. If we can, also make sure that
20154 we see the same garbage. */
20155 fd = open ("conftest.mmap", O_RDWR);
20158 data2 = (char *) malloc (2 * pagesize);
20161 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20162 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20163 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20165 for (i = 0; i < pagesize; ++i)
20166 if (*(data + i) != *(data2 + i))
20169 /* Finally, make sure that changes to the mapped area do not
20170 percolate back to the file as seen by read(). (This is a bug on
20171 some variants of i386 svr4.0.) */
20172 for (i = 0; i < pagesize; ++i)
20173 *(data2 + i) = *(data2 + i) + 1;
20174 data3 = (char *) malloc (pagesize);
20177 if (read (fd, data3, pagesize) != pagesize)
20179 for (i = 0; i < pagesize; ++i)
20180 if (*(data + i) != *(data3 + i))
20186 rm -f conftest$ac_exeext
20187 if { (ac_try="$ac_link"
20188 case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_link") 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20197 { (case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_try") 2>&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; }; then
20206 ac_cv_func_mmap_fixed_mapped=yes
20208 echo "$as_me: program exited with status $ac_status" >&5
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ( exit $ac_status )
20213 ac_cv_func_mmap_fixed_mapped=no
20215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20220 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20221 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20222 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20224 cat >>confdefs.h <<\_ACEOF
20225 #define HAVE_MMAP 1
20229 rm -f conftest.mmap
20232 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20233 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20234 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20244 #include <features.h>
20245 #ifdef __GNU_LIBRARY__
20246 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20253 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20254 ac_cv_gnu_library_2_1=yes
20256 ac_cv_gnu_library_2_1=no
20263 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20264 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20266 GLIBC21="$ac_cv_gnu_library_2_1"
20271 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20272 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20273 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 if test "$cross_compiling" = yes; then
20279 # Guess based on the CPU.
20280 case "$host_cpu" in
20281 alpha* | i3456786 | m68k | s390*)
20282 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20284 gt_cv_int_divbyzero_sigfpe="guessing no";;
20288 cat >conftest.$ac_ext <<_ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20295 #include <stdlib.h>
20296 #include <signal.h>
20300 sigfpe_handler (int sig)
20302 sigfpe_handler (sig) int sig;
20305 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20306 exit (sig != SIGFPE);
20316 signal (SIGFPE, sigfpe_handler);
20317 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20318 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20319 signal (SIGTRAP, sigfpe_handler);
20321 /* Linux/SPARC yields signal SIGILL. */
20322 #if defined (__sparc__) && defined (__linux__)
20323 signal (SIGILL, sigfpe_handler);
20332 rm -f conftest$ac_exeext
20333 if { (ac_try="$ac_link"
20334 case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339 (eval "$ac_link") 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20343 { (case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_try") 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; }; then
20352 gt_cv_int_divbyzero_sigfpe=yes
20354 echo "$as_me: program exited with status $ac_status" >&5
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20358 ( exit $ac_status )
20359 gt_cv_int_divbyzero_sigfpe=no
20361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20367 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20368 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20369 case "$gt_cv_int_divbyzero_sigfpe" in
20374 cat >>confdefs.h <<_ACEOF
20375 #define INTDIV0_RAISES_SIGFPE $value
20380 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20381 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20382 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 unsigned long long ull = 1ULL; int i = 63;
20395 unsigned long long ullmax = (unsigned long long) -1;
20396 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>conftest.er1
20410 grep -v '^ *+' conftest.er1 >conftest.err
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest$ac_exeext &&
20418 $as_test_x conftest$ac_exeext; then
20419 ac_cv_type_unsigned_long_long=yes
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 ac_cv_type_unsigned_long_long=no
20427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20428 conftest$ac_exeext conftest.$ac_ext
20430 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20431 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20432 if test $ac_cv_type_unsigned_long_long = yes; then
20434 cat >>confdefs.h <<\_ACEOF
20435 #define HAVE_UNSIGNED_LONG_LONG 1
20443 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20445 test $ac_cv_type_unsigned_long_long = yes \
20446 && ac_type='unsigned long long' \
20447 || ac_type='unsigned long'
20449 cat >>confdefs.h <<_ACEOF
20450 #define uintmax_t $ac_type
20455 cat >>confdefs.h <<\_ACEOF
20456 #define HAVE_UINTMAX_T 1
20462 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20463 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20464 if test "${gt_cv_header_inttypes_h+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #include <sys/types.h>
20475 #include <inttypes.h>
20484 rm -f conftest.$ac_objext
20485 if { (ac_try="$ac_compile"
20486 case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_compile") 2>conftest.er1
20493 grep -v '^ *+' conftest.er1 >conftest.err
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } && {
20498 test -z "$ac_c_werror_flag" ||
20499 test ! -s conftest.err
20500 } && test -s conftest.$ac_objext; then
20501 gt_cv_header_inttypes_h=yes
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 gt_cv_header_inttypes_h=no
20509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20512 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20513 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20514 if test $gt_cv_header_inttypes_h = yes; then
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_INTTYPES_H 1
20524 if test $gt_cv_header_inttypes_h = yes; then
20525 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20526 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20527 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 #include <inttypes.h>
20550 rm -f conftest.$ac_objext
20551 if { (ac_try="$ac_compile"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_compile") 2>conftest.er1
20559 grep -v '^ *+' conftest.er1 >conftest.err
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest.$ac_objext; then
20567 gt_cv_inttypes_pri_broken=no
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 gt_cv_inttypes_pri_broken=yes
20575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20579 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20581 if test "$gt_cv_inttypes_pri_broken" = yes; then
20583 cat >>confdefs.h <<_ACEOF
20584 #define PRI_MACROS_BROKEN 1
20591 for ac_header in stdint.h
20593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 ac_res=`eval echo '${'$as_ac_Header'}'`
20601 { echo "$as_me:$LINENO: result: $ac_res" >&5
20602 echo "${ECHO_T}$ac_res" >&6; }
20604 # Is the header compilable?
20605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20607 cat >conftest.$ac_ext <<_ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613 $ac_includes_default
20614 #include <$ac_header>
20616 rm -f conftest.$ac_objext
20617 if { (ac_try="$ac_compile"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_compile") 2>conftest.er1
20625 grep -v '^ *+' conftest.er1 >conftest.err
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } && {
20630 test -z "$ac_c_werror_flag" ||
20631 test ! -s conftest.err
20632 } && test -s conftest.$ac_objext; then
20633 ac_header_compiler=yes
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ac_header_compiler=no
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20643 echo "${ECHO_T}$ac_header_compiler" >&6; }
20645 # Is the header present?
20646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20648 cat >conftest.$ac_ext <<_ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h. */
20654 #include <$ac_header>
20656 if { (ac_try="$ac_cpp conftest.$ac_ext"
20657 case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20664 grep -v '^ *+' conftest.er1 >conftest.err
20666 cat conftest.err >&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } >/dev/null && {
20669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20670 test ! -s conftest.err
20672 ac_header_preproc=yes
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20677 ac_header_preproc=no
20680 rm -f conftest.err conftest.$ac_ext
20681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20682 echo "${ECHO_T}$ac_header_preproc" >&6; }
20684 # So? What about this header?
20685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20691 ac_header_preproc=yes
20694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 eval "$as_ac_Header=\$ac_header_preproc"
20716 ac_res=`eval echo '${'$as_ac_Header'}'`
20717 { echo "$as_me:$LINENO: result: $ac_res" >&5
20718 echo "${ECHO_T}$ac_res" >&6; }
20721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20722 cat >>confdefs.h <<_ACEOF
20723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20730 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20731 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20733 cat >conftest.$ac_ext <<_ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20740 #include <limits.h>
20742 #include <stdint.h>
20749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20750 $EGREP "Found it" >/dev/null 2>&1; then
20755 if test -z "$result"; then
20756 if test "$cross_compiling" = yes; then
20757 # Depending upon the size, compute the lo and hi bounds.
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20764 #include <stddef.h>
20768 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_compile") 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest.$ac_objext; then
20794 cat >conftest.$ac_ext <<_ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20800 #include <stddef.h>
20804 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_compile") 2>conftest.er1
20820 grep -v '^ *+' conftest.er1 >conftest.err
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && {
20825 test -z "$ac_c_werror_flag" ||
20826 test ! -s conftest.err
20827 } && test -s conftest.$ac_objext; then
20828 ac_hi=$ac_mid; break
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ac_lo=`expr $ac_mid + 1`
20834 if test $ac_lo -le $ac_mid; then
20838 ac_mid=`expr 2 '*' $ac_mid + 1`
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 #include <stddef.h>
20857 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20873 grep -v '^ *+' conftest.er1 >conftest.err
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest.$ac_objext; then
20883 cat >conftest.$ac_ext <<_ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20889 #include <stddef.h>
20893 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20900 rm -f conftest.$ac_objext
20901 if { (ac_try="$ac_compile"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_compile") 2>conftest.er1
20909 grep -v '^ *+' conftest.er1 >conftest.err
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && {
20914 test -z "$ac_c_werror_flag" ||
20915 test ! -s conftest.err
20916 } && test -s conftest.$ac_objext; then
20917 ac_lo=$ac_mid; break
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_hi=`expr '(' $ac_mid ')' - 1`
20923 if test $ac_mid -le $ac_hi; then
20927 ac_mid=`expr 2 '*' $ac_mid`
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943 # Binary search between lo and hi bounds.
20944 while test "x$ac_lo" != "x$ac_hi"; do
20945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20952 #include <stddef.h>
20956 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_compile") 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } && {
20977 test -z "$ac_c_werror_flag" ||
20978 test ! -s conftest.err
20979 } && test -s conftest.$ac_objext; then
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 ac_lo=`expr '(' $ac_mid ')' + 1`
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991 ?*) res_hi=$ac_lo;;
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 #include <stddef.h>
21002 static long int longval () { return ~(size_t)0 / 10; }
21003 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21005 #include <stdlib.h>
21010 FILE *f = fopen ("conftest.val", "w");
21013 if ((~(size_t)0 / 10) < 0)
21015 long int i = longval ();
21016 if (i != (~(size_t)0 / 10))
21018 fprintf (f, "%ld\n", i);
21022 unsigned long int i = ulongval ();
21023 if (i != (~(size_t)0 / 10))
21025 fprintf (f, "%lu\n", i);
21027 return ferror (f) || fclose (f) != 0;
21033 rm -f conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_link") 2>&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21044 { (case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_try") 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 res_hi=`cat conftest.val`
21055 echo "$as_me: program exited with status $ac_status" >&5
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 ( exit $ac_status )
21062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21066 if test "$cross_compiling" = yes; then
21067 # Depending upon the size, compute the lo and hi bounds.
21068 cat >conftest.$ac_ext <<_ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 #include <stddef.h>
21078 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21085 rm -f conftest.$ac_objext
21086 if { (ac_try="$ac_compile"
21087 case "(($ac_try" in
21088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089 *) ac_try_echo=$ac_try;;
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092 (eval "$ac_compile") 2>conftest.er1
21094 grep -v '^ *+' conftest.er1 >conftest.err
21096 cat conftest.err >&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } && {
21099 test -z "$ac_c_werror_flag" ||
21100 test ! -s conftest.err
21101 } && test -s conftest.$ac_objext; then
21104 cat >conftest.$ac_ext <<_ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21110 #include <stddef.h>
21114 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21121 rm -f conftest.$ac_objext
21122 if { (ac_try="$ac_compile"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_compile") 2>conftest.er1
21130 grep -v '^ *+' conftest.er1 >conftest.err
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && {
21135 test -z "$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 } && test -s conftest.$ac_objext; then
21138 ac_hi=$ac_mid; break
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21143 ac_lo=`expr $ac_mid + 1`
21144 if test $ac_lo -le $ac_mid; then
21148 ac_mid=`expr 2 '*' $ac_mid + 1`
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <stddef.h>
21167 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21174 rm -f conftest.$ac_objext
21175 if { (ac_try="$ac_compile"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_compile") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1 >conftest.err
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest.$ac_objext; then
21193 cat >conftest.$ac_ext <<_ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 #include <stddef.h>
21203 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } && {
21224 test -z "$ac_c_werror_flag" ||
21225 test ! -s conftest.err
21226 } && test -s conftest.$ac_objext; then
21227 ac_lo=$ac_mid; break
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ac_hi=`expr '(' $ac_mid ')' - 1`
21233 if test $ac_mid -le $ac_hi; then
21237 ac_mid=`expr 2 '*' $ac_mid`
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 # Binary search between lo and hi bounds.
21254 while test "x$ac_lo" != "x$ac_hi"; do
21255 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21256 cat >conftest.$ac_ext <<_ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 #include <stddef.h>
21266 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21273 rm -f conftest.$ac_objext
21274 if { (ac_try="$ac_compile"
21275 case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_compile") 2>conftest.er1
21282 grep -v '^ *+' conftest.er1 >conftest.err
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } && {
21287 test -z "$ac_c_werror_flag" ||
21288 test ! -s conftest.err
21289 } && test -s conftest.$ac_objext; then
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21295 ac_lo=`expr '(' $ac_mid ')' + 1`
21298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21301 ?*) res_lo=$ac_lo;;
21305 cat >conftest.$ac_ext <<_ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21311 #include <stddef.h>
21312 static long int longval () { return ~(size_t)0 % 10; }
21313 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21315 #include <stdlib.h>
21320 FILE *f = fopen ("conftest.val", "w");
21323 if ((~(size_t)0 % 10) < 0)
21325 long int i = longval ();
21326 if (i != (~(size_t)0 % 10))
21328 fprintf (f, "%ld\n", i);
21332 unsigned long int i = ulongval ();
21333 if (i != (~(size_t)0 % 10))
21335 fprintf (f, "%lu\n", i);
21337 return ferror (f) || fclose (f) != 0;
21343 rm -f conftest$ac_exeext
21344 if { (ac_try="$ac_link"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_link") 2>&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21354 { (case "(($ac_try" in
21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359 (eval "$ac_try") 2>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; }; then
21363 res_lo=`cat conftest.val`
21365 echo "$as_me: program exited with status $ac_status" >&5
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ( exit $ac_status )
21372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21376 if test "$cross_compiling" = yes; then
21377 # Depending upon the size, compute the lo and hi bounds.
21378 cat >conftest.$ac_ext <<_ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 #include <stddef.h>
21388 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21395 rm -f conftest.$ac_objext
21396 if { (ac_try="$ac_compile"
21397 case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_compile") 2>conftest.er1
21404 grep -v '^ *+' conftest.er1 >conftest.err
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } && {
21409 test -z "$ac_c_werror_flag" ||
21410 test ! -s conftest.err
21411 } && test -s conftest.$ac_objext; then
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 #include <stddef.h>
21424 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_compile") 2>conftest.er1
21440 grep -v '^ *+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && {
21445 test -z "$ac_c_werror_flag" ||
21446 test ! -s conftest.err
21447 } && test -s conftest.$ac_objext; then
21448 ac_hi=$ac_mid; break
21450 echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21453 ac_lo=`expr $ac_mid + 1`
21454 if test $ac_lo -le $ac_mid; then
21458 ac_mid=`expr 2 '*' $ac_mid + 1`
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21467 cat >conftest.$ac_ext <<_ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21473 #include <stddef.h>
21477 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21484 rm -f conftest.$ac_objext
21485 if { (ac_try="$ac_compile"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_compile") 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && {
21498 test -z "$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 } && test -s conftest.$ac_objext; then
21503 cat >conftest.$ac_ext <<_ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 #include <stddef.h>
21513 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21520 rm -f conftest.$ac_objext
21521 if { (ac_try="$ac_compile"
21522 case "(($ac_try" in
21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524 *) ac_try_echo=$ac_try;;
21526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527 (eval "$ac_compile") 2>conftest.er1
21529 grep -v '^ *+' conftest.er1 >conftest.err
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } && {
21534 test -z "$ac_c_werror_flag" ||
21535 test ! -s conftest.err
21536 } && test -s conftest.$ac_objext; then
21537 ac_lo=$ac_mid; break
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 ac_hi=`expr '(' $ac_mid ')' - 1`
21543 if test $ac_mid -le $ac_hi; then
21547 ac_mid=`expr 2 '*' $ac_mid`
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21563 # Binary search between lo and hi bounds.
21564 while test "x$ac_lo" != "x$ac_hi"; do
21565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21566 cat >conftest.$ac_ext <<_ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21572 #include <stddef.h>
21576 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21592 grep -v '^ *+' conftest.er1 >conftest.err
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21602 echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_lo=`expr '(' $ac_mid ')' + 1`
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21611 ?*) fits_in_uint=$ac_lo;;
21615 cat >conftest.$ac_ext <<_ACEOF
21618 cat confdefs.h >>conftest.$ac_ext
21619 cat >>conftest.$ac_ext <<_ACEOF
21620 /* end confdefs.h. */
21621 #include <stddef.h>
21622 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21623 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21625 #include <stdlib.h>
21630 FILE *f = fopen ("conftest.val", "w");
21633 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21635 long int i = longval ();
21636 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21638 fprintf (f, "%ld\n", i);
21642 unsigned long int i = ulongval ();
21643 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21645 fprintf (f, "%lu\n", i);
21647 return ferror (f) || fclose (f) != 0;
21653 rm -f conftest$ac_exeext
21654 if { (ac_try="$ac_link"
21655 case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_link") 2>&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21664 { (case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_try") 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 fits_in_uint=`cat conftest.val`
21675 echo "$as_me: program exited with status $ac_status" >&5
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 ( exit $ac_status )
21682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21686 if test "$fits_in_uint" = 1; then
21687 cat >conftest.$ac_ext <<_ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21693 #include <stddef.h>
21695 extern unsigned long foo;
21705 rm -f conftest.$ac_objext
21706 if { (ac_try="$ac_compile"
21707 case "(($ac_try" in
21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709 *) ac_try_echo=$ac_try;;
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712 (eval "$ac_compile") 2>conftest.er1
21714 grep -v '^ *+' conftest.er1 >conftest.err
21716 cat conftest.err >&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } && {
21719 test -z "$ac_c_werror_flag" ||
21720 test ! -s conftest.err
21721 } && test -s conftest.$ac_objext; then
21724 echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21732 if test -z "$result"; then
21733 if test "$fits_in_uint" = 1; then
21734 result="$res_hi$res_lo"U
21736 result="$res_hi$res_lo"UL
21739 result='~(size_t)0'
21742 { echo "$as_me:$LINENO: result: $result" >&5
21743 echo "${ECHO_T}$result" >&6; }
21744 if test "$result" != yes; then
21746 cat >>confdefs.h <<_ACEOF
21747 #define SIZE_MAX $result
21756 for ac_header in stdint.h
21758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 ac_res=`eval echo '${'$as_ac_Header'}'`
21766 { echo "$as_me:$LINENO: result: $ac_res" >&5
21767 echo "${ECHO_T}$ac_res" >&6; }
21769 # Is the header compilable?
21770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21772 cat >conftest.$ac_ext <<_ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21778 $ac_includes_default
21779 #include <$ac_header>
21781 rm -f conftest.$ac_objext
21782 if { (ac_try="$ac_compile"
21783 case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_compile") 2>conftest.er1
21790 grep -v '^ *+' conftest.er1 >conftest.err
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } && {
21795 test -z "$ac_c_werror_flag" ||
21796 test ! -s conftest.err
21797 } && test -s conftest.$ac_objext; then
21798 ac_header_compiler=yes
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_header_compiler=no
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21808 echo "${ECHO_T}$ac_header_compiler" >&6; }
21810 # Is the header present?
21811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21813 cat >conftest.$ac_ext <<_ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h. */
21819 #include <$ac_header>
21821 if { (ac_try="$ac_cpp conftest.$ac_ext"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21829 grep -v '^ *+' conftest.er1 >conftest.err
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } >/dev/null && {
21834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21835 test ! -s conftest.err
21837 ac_header_preproc=yes
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 ac_header_preproc=no
21845 rm -f conftest.err conftest.$ac_ext
21846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21847 echo "${ECHO_T}$ac_header_preproc" >&6; }
21849 # So? What about this header?
21850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21856 ac_header_preproc=yes
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21879 eval "$as_ac_Header=\$ac_header_preproc"
21881 ac_res=`eval echo '${'$as_ac_Header'}'`
21882 { echo "$as_me:$LINENO: result: $ac_res" >&5
21883 echo "${ECHO_T}$ac_res" >&6; }
21886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21887 cat >>confdefs.h <<_ACEOF
21888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21902 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21903 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21904 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21907 cat >conftest.$ac_ext <<_ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 $ac_includes_default
21914 typedef ptrdiff_t ac__type_new_;
21918 if ((ac__type_new_ *) 0)
21920 if (sizeof (ac__type_new_))
21926 rm -f conftest.$ac_objext
21927 if { (ac_try="$ac_compile"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933 (eval "$ac_compile") 2>conftest.er1
21935 grep -v '^ *+' conftest.er1 >conftest.err
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } && {
21940 test -z "$ac_c_werror_flag" ||
21941 test ! -s conftest.err
21942 } && test -s conftest.$ac_objext; then
21943 ac_cv_type_ptrdiff_t=yes
21945 echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21948 ac_cv_type_ptrdiff_t=no
21951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21954 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21955 if test $ac_cv_type_ptrdiff_t = yes; then
21959 cat >>confdefs.h <<\_ACEOF
21960 #define ptrdiff_t long
21976 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21977 stdlib.h string.h unistd.h sys/param.h
21979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
21986 ac_res=`eval echo '${'$as_ac_Header'}'`
21987 { echo "$as_me:$LINENO: result: $ac_res" >&5
21988 echo "${ECHO_T}$ac_res" >&6; }
21990 # Is the header compilable?
21991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22000 #include <$ac_header>
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && {
22016 test -z "$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 } && test -s conftest.$ac_objext; then
22019 ac_header_compiler=yes
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ac_header_compiler=no
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22029 echo "${ECHO_T}$ac_header_compiler" >&6; }
22031 # Is the header present?
22032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 #include <$ac_header>
22042 if { (ac_try="$ac_cpp conftest.$ac_ext"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } >/dev/null && {
22055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22058 ac_header_preproc=yes
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_header_preproc=no
22066 rm -f conftest.err conftest.$ac_ext
22067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22068 echo "${ECHO_T}$ac_header_preproc" >&6; }
22070 # So? What about this header?
22071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22077 ac_header_preproc=yes
22080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22100 eval "$as_ac_Header=\$ac_header_preproc"
22102 ac_res=`eval echo '${'$as_ac_Header'}'`
22103 { echo "$as_me:$LINENO: result: $ac_res" >&5
22104 echo "${ECHO_T}$ac_res" >&6; }
22107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22108 cat >>confdefs.h <<_ACEOF
22109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22139 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22140 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22141 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 cat >conftest.$ac_ext <<_ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22158 #define $ac_func innocuous_$ac_func
22160 /* System header to define __stub macros and hopefully few prototypes,
22161 which can conflict with char $ac_func (); below.
22162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22163 <limits.h> exists even on freestanding compilers. */
22166 # include <limits.h>
22168 # include <assert.h>
22173 /* Override any GCC internal prototype to avoid an error.
22174 Use char because int might match the return type of a GCC
22175 builtin and then its argument prototype would still apply. */
22180 /* The GNU C library defines this for functions which it implements
22181 to always fail with ENOSYS. Some functions are actually named
22182 something starting with __ and the normal name is an alias. */
22183 #if defined __stub_$ac_func || defined __stub___$ac_func
22190 return $ac_func ();
22195 rm -f conftest.$ac_objext conftest$ac_exeext
22196 if { (ac_try="$ac_link"
22197 case "(($ac_try" in
22198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199 *) ac_try_echo=$ac_try;;
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_link") 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } && {
22209 test -z "$ac_c_werror_flag" ||
22210 test ! -s conftest.err
22211 } && test -s conftest$ac_exeext &&
22212 $as_test_x conftest$ac_exeext; then
22213 eval "$as_ac_var=yes"
22215 echo "$as_me: failed program was:" >&5
22216 sed 's/^/| /' conftest.$ac_ext >&5
22218 eval "$as_ac_var=no"
22221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22222 conftest$ac_exeext conftest.$ac_ext
22224 ac_res=`eval echo '${'$as_ac_var'}'`
22225 { echo "$as_me:$LINENO: result: $ac_res" >&5
22226 echo "${ECHO_T}$ac_res" >&6; }
22227 if test `eval echo '${'$as_ac_var'}'` = yes; then
22228 cat >>confdefs.h <<_ACEOF
22229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22237 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22238 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22239 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 cat >conftest.$ac_ext <<_ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22254 char *p = (char *) _snprintf;
22261 rm -f conftest.$ac_objext
22262 if { (ac_try="$ac_compile"
22263 case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_compile") 2>conftest.er1
22270 grep -v '^ *+' conftest.er1 >conftest.err
22272 cat conftest.err >&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } && {
22275 test -z "$ac_c_werror_flag" ||
22276 test ! -s conftest.err
22277 } && test -s conftest.$ac_objext; then
22278 ac_cv_have_decl__snprintf=yes
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 ac_cv_have_decl__snprintf=no
22286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22289 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22290 if test $ac_cv_have_decl__snprintf = yes; then
22296 cat >>confdefs.h <<_ACEOF
22297 #define HAVE_DECL__SNPRINTF $gt_value
22302 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22303 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22304 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22305 echo $ECHO_N "(cached) $ECHO_C" >&6
22307 cat >conftest.$ac_ext <<_ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h. */
22319 char *p = (char *) _snwprintf;
22326 rm -f conftest.$ac_objext
22327 if { (ac_try="$ac_compile"
22328 case "(($ac_try" in
22329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22330 *) ac_try_echo=$ac_try;;
22332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22333 (eval "$ac_compile") 2>conftest.er1
22335 grep -v '^ *+' conftest.er1 >conftest.err
22337 cat conftest.err >&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); } && {
22340 test -z "$ac_c_werror_flag" ||
22341 test ! -s conftest.err
22342 } && test -s conftest.$ac_objext; then
22343 ac_cv_have_decl__snwprintf=yes
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22348 ac_cv_have_decl__snwprintf=no
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22354 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22355 if test $ac_cv_have_decl__snwprintf = yes; then
22361 cat >>confdefs.h <<_ACEOF
22362 #define HAVE_DECL__SNWPRINTF $gt_value
22368 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22369 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22370 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 cat >conftest.$ac_ext <<_ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22384 #ifndef feof_unlocked
22385 char *p = (char *) feof_unlocked;
22392 rm -f conftest.$ac_objext
22393 if { (ac_try="$ac_compile"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_compile") 2>conftest.er1
22401 grep -v '^ *+' conftest.er1 >conftest.err
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } && {
22406 test -z "$ac_c_werror_flag" ||
22407 test ! -s conftest.err
22408 } && test -s conftest.$ac_objext; then
22409 ac_cv_have_decl_feof_unlocked=yes
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 ac_cv_have_decl_feof_unlocked=no
22417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22420 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22421 if test $ac_cv_have_decl_feof_unlocked = yes; then
22427 cat >>confdefs.h <<_ACEOF
22428 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22433 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22434 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22435 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22436 echo $ECHO_N "(cached) $ECHO_C" >&6
22438 cat >conftest.$ac_ext <<_ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22449 #ifndef fgets_unlocked
22450 char *p = (char *) fgets_unlocked;
22457 rm -f conftest.$ac_objext
22458 if { (ac_try="$ac_compile"
22459 case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464 (eval "$ac_compile") 2>conftest.er1
22466 grep -v '^ *+' conftest.er1 >conftest.err
22468 cat conftest.err >&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } && {
22471 test -z "$ac_c_werror_flag" ||
22472 test ! -s conftest.err
22473 } && test -s conftest.$ac_objext; then
22474 ac_cv_have_decl_fgets_unlocked=yes
22476 echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22479 ac_cv_have_decl_fgets_unlocked=no
22482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22485 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22486 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22492 cat >>confdefs.h <<_ACEOF
22493 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22498 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22499 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22500 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 cat >conftest.$ac_ext <<_ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h. */
22514 #ifndef getc_unlocked
22515 char *p = (char *) getc_unlocked;
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22531 grep -v '^ *+' conftest.er1 >conftest.err
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest.$ac_objext; then
22539 ac_cv_have_decl_getc_unlocked=yes
22541 echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ac_cv_have_decl_getc_unlocked=no
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22550 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22551 if test $ac_cv_have_decl_getc_unlocked = yes; then
22557 cat >>confdefs.h <<_ACEOF
22558 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22563 case $gt_cv_func_printf_posix in
22564 *yes) HAVE_POSIX_PRINTF=1 ;;
22565 *) HAVE_POSIX_PRINTF=0 ;;
22568 if test "$ac_cv_func_asprintf" = yes; then
22574 if test "$ac_cv_func_snprintf" = yes; then
22580 if test "$ac_cv_func_wprintf" = yes; then
22592 am_save_CPPFLAGS="$CPPFLAGS"
22594 for element in $INCICONV; do
22596 for x in $CPPFLAGS; do
22598 acl_save_prefix="$prefix"
22599 prefix="$acl_final_prefix"
22600 acl_save_exec_prefix="$exec_prefix"
22601 exec_prefix="$acl_final_exec_prefix"
22603 exec_prefix="$acl_save_exec_prefix"
22604 prefix="$acl_save_prefix"
22606 if test "X$x" = "X$element"; then
22611 if test -z "$haveit"; then
22612 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22617 { echo "$as_me:$LINENO: checking for iconv" >&5
22618 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22619 if test "${am_cv_func_iconv+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22623 am_cv_func_iconv="no, consider installing GNU libiconv"
22625 cat >conftest.$ac_ext <<_ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22631 #include <stdlib.h>
22636 iconv_t cd = iconv_open("","");
22637 iconv(cd,NULL,NULL,NULL,NULL);
22643 rm -f conftest.$ac_objext conftest$ac_exeext
22644 if { (ac_try="$ac_link"
22645 case "(($ac_try" in
22646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22647 *) ac_try_echo=$ac_try;;
22649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22650 (eval "$ac_link") 2>conftest.er1
22652 grep -v '^ *+' conftest.er1 >conftest.err
22654 cat conftest.err >&5
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } && {
22657 test -z "$ac_c_werror_flag" ||
22658 test ! -s conftest.err
22659 } && test -s conftest$ac_exeext &&
22660 $as_test_x conftest$ac_exeext; then
22661 am_cv_func_iconv=yes
22663 echo "$as_me: failed program was:" >&5
22664 sed 's/^/| /' conftest.$ac_ext >&5
22669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22670 conftest$ac_exeext conftest.$ac_ext
22671 if test "$am_cv_func_iconv" != yes; then
22672 am_save_LIBS="$LIBS"
22673 LIBS="$LIBS $LIBICONV"
22674 cat >conftest.$ac_ext <<_ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 #include <stdlib.h>
22685 iconv_t cd = iconv_open("","");
22686 iconv(cd,NULL,NULL,NULL,NULL);
22692 rm -f conftest.$ac_objext conftest$ac_exeext
22693 if { (ac_try="$ac_link"
22694 case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22699 (eval "$ac_link") 2>conftest.er1
22701 grep -v '^ *+' conftest.er1 >conftest.err
22703 cat conftest.err >&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } && {
22706 test -z "$ac_c_werror_flag" ||
22707 test ! -s conftest.err
22708 } && test -s conftest$ac_exeext &&
22709 $as_test_x conftest$ac_exeext; then
22710 am_cv_lib_iconv=yes
22711 am_cv_func_iconv=yes
22713 echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22720 conftest$ac_exeext conftest.$ac_ext
22721 LIBS="$am_save_LIBS"
22725 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22726 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22727 if test "$am_cv_func_iconv" = yes; then
22729 cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_ICONV 1
22734 if test "$am_cv_lib_iconv" = yes; then
22735 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22736 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22737 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22738 echo "${ECHO_T}$LIBICONV" >&6; }
22740 CPPFLAGS="$am_save_CPPFLAGS"
22747 if test "$am_cv_func_iconv" = yes; then
22748 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22749 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22750 if test "${am_cv_proto_iconv+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22754 cat >conftest.$ac_ext <<_ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h. */
22761 #include <stdlib.h>
22767 #if defined(__STDC__) || defined(__cplusplus)
22768 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 am_cv_proto_iconv_arg1=""
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 am_cv_proto_iconv_arg1="const"
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 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);"
22810 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22811 { echo "$as_me:$LINENO: result: ${ac_t:-
22812 }$am_cv_proto_iconv" >&5
22813 echo "${ECHO_T}${ac_t:-
22814 }$am_cv_proto_iconv" >&6; }
22816 cat >>confdefs.h <<_ACEOF
22817 #define ICONV_CONST $am_cv_proto_iconv_arg1
22823 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22824 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22825 if test "${am_cv_langinfo_codeset+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 cat >conftest.$ac_ext <<_ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 #include <langinfo.h>
22838 char* cs = nl_langinfo(CODESET);
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (ac_try="$ac_link"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_link") 2>conftest.er1
22852 grep -v '^ *+' conftest.er1 >conftest.err
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest$ac_exeext &&
22860 $as_test_x conftest$ac_exeext; then
22861 am_cv_langinfo_codeset=yes
22863 echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 am_cv_langinfo_codeset=no
22869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22870 conftest$ac_exeext conftest.$ac_ext
22873 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22874 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22875 if test $am_cv_langinfo_codeset = yes; then
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_LANGINFO_CODESET 1
22883 if test $ac_cv_header_locale_h = yes; then
22885 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22886 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22887 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22890 cat >conftest.$ac_ext <<_ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22896 #include <locale.h>
22905 rm -f conftest.$ac_objext conftest$ac_exeext
22906 if { (ac_try="$ac_link"
22907 case "(($ac_try" in
22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909 *) ac_try_echo=$ac_try;;
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912 (eval "$ac_link") 2>conftest.er1
22914 grep -v '^ *+' conftest.er1 >conftest.err
22916 cat conftest.err >&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); } && {
22919 test -z "$ac_c_werror_flag" ||
22920 test ! -s conftest.err
22921 } && test -s conftest$ac_exeext &&
22922 $as_test_x conftest$ac_exeext; then
22923 gt_cv_val_LC_MESSAGES=yes
22925 echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22928 gt_cv_val_LC_MESSAGES=no
22931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22932 conftest$ac_exeext conftest.$ac_ext
22934 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22935 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22936 if test $gt_cv_val_LC_MESSAGES = yes; then
22938 cat >>confdefs.h <<\_ACEOF
22939 #define HAVE_LC_MESSAGES 1
22946 if test -n "$INTL_MACOSX_LIBS"; then
22947 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22950 for ac_prog in bison
22952 # Extract the first word of "$ac_prog", so it can be a program name with args.
22953 set dummy $ac_prog; ac_word=$2
22954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22956 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 if test -n "$INTLBISON"; then
22960 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22963 for as_dir in $PATH
22966 test -z "$as_dir" && as_dir=.
22967 for ac_exec_ext in '' $ac_executable_extensions; do
22968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22969 ac_cv_prog_INTLBISON="$ac_prog"
22970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22979 INTLBISON=$ac_cv_prog_INTLBISON
22980 if test -n "$INTLBISON"; then
22981 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22982 echo "${ECHO_T}$INTLBISON" >&6; }
22984 { echo "$as_me:$LINENO: result: no" >&5
22985 echo "${ECHO_T}no" >&6; }
22989 test -n "$INTLBISON" && break
22992 if test -z "$INTLBISON"; then
22995 { echo "$as_me:$LINENO: checking version of bison" >&5
22996 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
22997 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22998 case $ac_prog_version in
22999 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23000 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23001 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23002 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23004 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23005 echo "${ECHO_T}$ac_prog_version" >&6; }
23007 if test $ac_verc_fail = yes; then
23026 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23027 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23028 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
23031 gt_save_CPPFLAGS="$CPPFLAGS"
23032 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23033 gt_save_LIBS="$LIBS"
23034 LIBS="$LIBS -framework CoreFoundation"
23035 cat >conftest.$ac_ext <<_ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 #include <CFPreferences.h>
23045 CFPreferencesCopyAppValue(NULL, NULL)
23050 rm -f conftest.$ac_objext conftest$ac_exeext
23051 if { (ac_try="$ac_link"
23052 case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057 (eval "$ac_link") 2>conftest.er1
23059 grep -v '^ *+' conftest.er1 >conftest.err
23061 cat conftest.err >&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } && {
23064 test -z "$ac_c_werror_flag" ||
23065 test ! -s conftest.err
23066 } && test -s conftest$ac_exeext &&
23067 $as_test_x conftest$ac_exeext; then
23068 gt_cv_func_CFPreferencesCopyAppValue=yes
23070 echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23073 gt_cv_func_CFPreferencesCopyAppValue=no
23076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23077 conftest$ac_exeext conftest.$ac_ext
23078 CPPFLAGS="$gt_save_CPPFLAGS"
23079 LIBS="$gt_save_LIBS"
23081 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23082 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23083 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23085 cat >>confdefs.h <<\_ACEOF
23086 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23090 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23091 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23092 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23095 gt_save_CPPFLAGS="$CPPFLAGS"
23096 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23097 gt_save_LIBS="$LIBS"
23098 LIBS="$LIBS -framework CoreFoundation"
23099 cat >conftest.$ac_ext <<_ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23105 #include <CFLocale.h>
23109 CFLocaleCopyCurrent();
23114 rm -f conftest.$ac_objext conftest$ac_exeext
23115 if { (ac_try="$ac_link"
23116 case "(($ac_try" in
23117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23118 *) ac_try_echo=$ac_try;;
23120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23121 (eval "$ac_link") 2>conftest.er1
23123 grep -v '^ *+' conftest.er1 >conftest.err
23125 cat conftest.err >&5
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } && {
23128 test -z "$ac_c_werror_flag" ||
23129 test ! -s conftest.err
23130 } && test -s conftest$ac_exeext &&
23131 $as_test_x conftest$ac_exeext; then
23132 gt_cv_func_CFLocaleCopyCurrent=yes
23134 echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23137 gt_cv_func_CFLocaleCopyCurrent=no
23140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23141 conftest$ac_exeext conftest.$ac_ext
23142 CPPFLAGS="$gt_save_CPPFLAGS"
23143 LIBS="$gt_save_LIBS"
23145 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23146 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23147 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23149 cat >>confdefs.h <<\_ACEOF
23150 #define HAVE_CFLOCALECOPYCURRENT 1
23155 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23156 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23162 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23163 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23164 # Check whether --enable-nls was given.
23165 if test "${enable_nls+set}" = set; then
23166 enableval=$enable_nls; USE_NLS=$enableval
23171 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23172 echo "${ECHO_T}$USE_NLS" >&6; }
23177 BUILD_INCLUDED_LIBINTL=no
23178 USE_INCLUDED_LIBINTL=no
23184 if test "$USE_NLS" = "yes"; then
23185 gt_use_preinstalled_gnugettext=no
23187 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23188 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23190 # Check whether --with-included-gettext was given.
23191 if test "${with_included_gettext+set}" = set; then
23192 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23194 nls_cv_force_use_gnu_gettext=no
23197 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23198 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23200 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23201 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23208 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23209 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23210 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23213 cat >conftest.$ac_ext <<_ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h. */
23219 #include <libintl.h>
23220 extern int _nl_msg_cat_cntr;
23221 extern int *_nl_domain_bindings;
23225 bindtextdomain ("", "");
23226 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23231 rm -f conftest.$ac_objext conftest$ac_exeext
23232 if { (ac_try="$ac_link"
23233 case "(($ac_try" in
23234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235 *) ac_try_echo=$ac_try;;
23237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238 (eval "$ac_link") 2>conftest.er1
23240 grep -v '^ *+' conftest.er1 >conftest.err
23242 cat conftest.err >&5
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); } && {
23245 test -z "$ac_c_werror_flag" ||
23246 test ! -s conftest.err
23247 } && test -s conftest$ac_exeext &&
23248 $as_test_x conftest$ac_exeext; then
23249 gt_cv_func_gnugettext1_libc=yes
23251 echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23254 gt_cv_func_gnugettext1_libc=no
23257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23258 conftest$ac_exeext conftest.$ac_ext
23260 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23261 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23263 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23269 acl_save_prefix="$prefix"
23270 prefix="$acl_final_prefix"
23271 acl_save_exec_prefix="$exec_prefix"
23272 exec_prefix="$acl_final_exec_prefix"
23274 eval additional_includedir=\"$includedir\"
23275 eval additional_libdir=\"$libdir\"
23277 exec_prefix="$acl_save_exec_prefix"
23278 prefix="$acl_save_prefix"
23281 # Check whether --with-libintl-prefix was given.
23282 if test "${with_libintl_prefix+set}" = set; then
23283 withval=$with_libintl_prefix;
23284 if test "X$withval" = "Xno"; then
23287 if test "X$withval" = "X"; then
23289 acl_save_prefix="$prefix"
23290 prefix="$acl_final_prefix"
23291 acl_save_exec_prefix="$exec_prefix"
23292 exec_prefix="$acl_final_exec_prefix"
23294 eval additional_includedir=\"$includedir\"
23295 eval additional_libdir=\"$libdir\"
23297 exec_prefix="$acl_save_exec_prefix"
23298 prefix="$acl_save_prefix"
23301 additional_includedir="$withval/include"
23302 additional_libdir="$withval/lib"
23313 names_already_handled=
23314 names_next_round='intl '
23315 while test -n "$names_next_round"; do
23316 names_this_round="$names_next_round"
23318 for name in $names_this_round; do
23320 for n in $names_already_handled; do
23321 if test "$n" = "$name"; then
23322 already_handled=yes
23326 if test -z "$already_handled"; then
23327 names_already_handled="$names_already_handled $name"
23328 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23329 eval value=\"\$HAVE_LIB$uppername\"
23330 if test -n "$value"; then
23331 if test "$value" = yes; then
23332 eval value=\"\$LIB$uppername\"
23333 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23334 eval value=\"\$LTLIB$uppername\"
23335 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23344 if test $use_additional = yes; then
23345 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23346 found_dir="$additional_libdir"
23347 found_so="$additional_libdir/lib$name.$shlibext"
23348 if test -f "$additional_libdir/lib$name.la"; then
23349 found_la="$additional_libdir/lib$name.la"
23352 if test -f "$additional_libdir/lib$name.$libext"; then
23353 found_dir="$additional_libdir"
23354 found_a="$additional_libdir/lib$name.$libext"
23355 if test -f "$additional_libdir/lib$name.la"; then
23356 found_la="$additional_libdir/lib$name.la"
23361 if test "X$found_dir" = "X"; then
23362 for x in $LDFLAGS $LTLIBINTL; do
23364 acl_save_prefix="$prefix"
23365 prefix="$acl_final_prefix"
23366 acl_save_exec_prefix="$exec_prefix"
23367 exec_prefix="$acl_final_exec_prefix"
23369 exec_prefix="$acl_save_exec_prefix"
23370 prefix="$acl_save_prefix"
23374 dir=`echo "X$x" | sed -e 's/^X-L//'`
23375 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23377 found_so="$dir/lib$name.$shlibext"
23378 if test -f "$dir/lib$name.la"; then
23379 found_la="$dir/lib$name.la"
23382 if test -f "$dir/lib$name.$libext"; then
23384 found_a="$dir/lib$name.$libext"
23385 if test -f "$dir/lib$name.la"; then
23386 found_la="$dir/lib$name.la"
23392 if test "X$found_dir" != "X"; then
23397 if test "X$found_dir" != "X"; then
23398 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23399 if test "X$found_so" != "X"; then
23400 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23401 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23404 for x in $ltrpathdirs; do
23405 if test "X$x" = "X$found_dir"; then
23410 if test -z "$haveit"; then
23411 ltrpathdirs="$ltrpathdirs $found_dir"
23413 if test "$hardcode_direct" = yes; then
23414 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23416 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23417 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23419 for x in $rpathdirs; do
23420 if test "X$x" = "X$found_dir"; then
23425 if test -z "$haveit"; then
23426 rpathdirs="$rpathdirs $found_dir"
23430 for x in $LDFLAGS $LIBINTL; do
23432 acl_save_prefix="$prefix"
23433 prefix="$acl_final_prefix"
23434 acl_save_exec_prefix="$exec_prefix"
23435 exec_prefix="$acl_final_exec_prefix"
23437 exec_prefix="$acl_save_exec_prefix"
23438 prefix="$acl_save_prefix"
23440 if test "X$x" = "X-L$found_dir"; then
23445 if test -z "$haveit"; then
23446 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23448 if test "$hardcode_minus_L" != no; then
23449 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23451 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23457 if test "X$found_a" != "X"; then
23458 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23460 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23463 additional_includedir=
23464 case "$found_dir" in
23466 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23467 additional_includedir="$basedir/include"
23470 if test "X$additional_includedir" != "X"; then
23471 if test "X$additional_includedir" != "X/usr/include"; then
23473 if test "X$additional_includedir" = "X/usr/local/include"; then
23474 if test -n "$GCC"; then
23476 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23480 if test -z "$haveit"; then
23481 for x in $CPPFLAGS $INCINTL; do
23483 acl_save_prefix="$prefix"
23484 prefix="$acl_final_prefix"
23485 acl_save_exec_prefix="$exec_prefix"
23486 exec_prefix="$acl_final_exec_prefix"
23488 exec_prefix="$acl_save_exec_prefix"
23489 prefix="$acl_save_prefix"
23491 if test "X$x" = "X-I$additional_includedir"; then
23496 if test -z "$haveit"; then
23497 if test -d "$additional_includedir"; then
23498 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23504 if test -n "$found_la"; then
23505 save_libdir="$libdir"
23506 case "$found_la" in
23507 */* | *\\*) . "$found_la" ;;
23508 *) . "./$found_la" ;;
23510 libdir="$save_libdir"
23511 for dep in $dependency_libs; do
23514 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23515 if test "X$additional_libdir" != "X/usr/lib"; then
23517 if test "X$additional_libdir" = "X/usr/local/lib"; then
23518 if test -n "$GCC"; then
23520 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23524 if test -z "$haveit"; then
23526 for x in $LDFLAGS $LIBINTL; do
23528 acl_save_prefix="$prefix"
23529 prefix="$acl_final_prefix"
23530 acl_save_exec_prefix="$exec_prefix"
23531 exec_prefix="$acl_final_exec_prefix"
23533 exec_prefix="$acl_save_exec_prefix"
23534 prefix="$acl_save_prefix"
23536 if test "X$x" = "X-L$additional_libdir"; then
23541 if test -z "$haveit"; then
23542 if test -d "$additional_libdir"; then
23543 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23547 for x in $LDFLAGS $LTLIBINTL; do
23549 acl_save_prefix="$prefix"
23550 prefix="$acl_final_prefix"
23551 acl_save_exec_prefix="$exec_prefix"
23552 exec_prefix="$acl_final_exec_prefix"
23554 exec_prefix="$acl_save_exec_prefix"
23555 prefix="$acl_save_prefix"
23557 if test "X$x" = "X-L$additional_libdir"; then
23562 if test -z "$haveit"; then
23563 if test -d "$additional_libdir"; then
23564 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23571 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23572 if test "$enable_rpath" != no; then
23574 for x in $rpathdirs; do
23575 if test "X$x" = "X$dir"; then
23580 if test -z "$haveit"; then
23581 rpathdirs="$rpathdirs $dir"
23584 for x in $ltrpathdirs; do
23585 if test "X$x" = "X$dir"; then
23590 if test -z "$haveit"; then
23591 ltrpathdirs="$ltrpathdirs $dir"
23596 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23599 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23602 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23603 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23609 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23610 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23616 if test "X$rpathdirs" != "X"; then
23617 if test -n "$hardcode_libdir_separator"; then
23619 for found_dir in $rpathdirs; do
23620 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23622 acl_save_libdir="$libdir"
23624 eval flag=\"$hardcode_libdir_flag_spec\"
23625 libdir="$acl_save_libdir"
23626 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23628 for found_dir in $rpathdirs; do
23629 acl_save_libdir="$libdir"
23630 libdir="$found_dir"
23631 eval flag=\"$hardcode_libdir_flag_spec\"
23632 libdir="$acl_save_libdir"
23633 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23637 if test "X$ltrpathdirs" != "X"; then
23638 for found_dir in $ltrpathdirs; do
23639 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23643 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23644 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23645 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23648 gt_save_CPPFLAGS="$CPPFLAGS"
23649 CPPFLAGS="$CPPFLAGS $INCINTL"
23650 gt_save_LIBS="$LIBS"
23651 LIBS="$LIBS $LIBINTL"
23652 cat >conftest.$ac_ext <<_ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23658 #include <libintl.h>
23659 extern int _nl_msg_cat_cntr;
23664 const char *_nl_expand_alias (const char *);
23668 bindtextdomain ("", "");
23669 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23674 rm -f conftest.$ac_objext conftest$ac_exeext
23675 if { (ac_try="$ac_link"
23676 case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681 (eval "$ac_link") 2>conftest.er1
23683 grep -v '^ *+' conftest.er1 >conftest.err
23685 cat conftest.err >&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } && {
23688 test -z "$ac_c_werror_flag" ||
23689 test ! -s conftest.err
23690 } && test -s conftest$ac_exeext &&
23691 $as_test_x conftest$ac_exeext; then
23692 gt_cv_func_gnugettext1_libintl=yes
23694 echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23697 gt_cv_func_gnugettext1_libintl=no
23700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23701 conftest$ac_exeext conftest.$ac_ext
23702 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23703 LIBS="$LIBS $LIBICONV"
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710 #include <libintl.h>
23711 extern int _nl_msg_cat_cntr;
23716 const char *_nl_expand_alias (const char *);
23720 bindtextdomain ("", "");
23721 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23726 rm -f conftest.$ac_objext conftest$ac_exeext
23727 if { (ac_try="$ac_link"
23728 case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_link") 2>conftest.er1
23735 grep -v '^ *+' conftest.er1 >conftest.err
23737 cat conftest.err >&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest$ac_exeext &&
23743 $as_test_x conftest$ac_exeext; then
23744 LIBINTL="$LIBINTL $LIBICONV"
23745 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23746 gt_cv_func_gnugettext1_libintl=yes
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23756 conftest$ac_exeext conftest.$ac_ext
23758 CPPFLAGS="$gt_save_CPPFLAGS"
23759 LIBS="$gt_save_LIBS"
23761 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23762 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23765 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23766 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23767 && test "$PACKAGE" != gettext-runtime \
23768 && test "$PACKAGE" != gettext-tools; }; then
23769 gt_use_preinstalled_gnugettext=yes
23777 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23778 nls_cv_use_gnu_gettext=yes
23782 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23783 BUILD_INCLUDED_LIBINTL=yes
23784 USE_INCLUDED_LIBINTL=yes
23785 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23786 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23787 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23791 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23792 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23797 if test -n "$INTL_MACOSX_LIBS"; then
23798 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23799 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23800 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23801 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23805 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23806 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23808 cat >>confdefs.h <<\_ACEOF
23809 #define ENABLE_NLS 1
23817 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23818 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23819 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23820 echo "${ECHO_T}$USE_NLS" >&6; }
23821 if test "$USE_NLS" = "yes"; then
23822 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23823 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23824 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23825 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23826 gt_source="external libintl"
23831 gt_source="included intl directory"
23833 { echo "$as_me:$LINENO: result: $gt_source" >&5
23834 echo "${ECHO_T}$gt_source" >&6; }
23837 if test "$USE_NLS" = "yes"; then
23839 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23840 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23841 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23842 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23843 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23844 echo "${ECHO_T}$LIBINTL" >&6; }
23846 for element in $INCINTL; do
23848 for x in $CPPFLAGS; do
23850 acl_save_prefix="$prefix"
23851 prefix="$acl_final_prefix"
23852 acl_save_exec_prefix="$exec_prefix"
23853 exec_prefix="$acl_final_exec_prefix"
23855 exec_prefix="$acl_save_exec_prefix"
23856 prefix="$acl_save_prefix"
23858 if test "X$x" = "X$element"; then
23863 if test -z "$haveit"; then
23864 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23871 cat >>confdefs.h <<\_ACEOF
23872 #define HAVE_GETTEXT 1
23876 cat >>confdefs.h <<\_ACEOF
23877 #define HAVE_DCGETTEXT 1
23886 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23887 BUILD_INCLUDED_LIBINTL=yes
23894 nls_cv_header_intl=
23895 nls_cv_header_libgt=
23907 if test "$USE_INCLUDED_LIBINTL" = yes; then
23908 INTLOBJS="\$(GETTOBJS)"
23912 INTL_LIBTOOL_SUFFIX_PREFIX=
23916 INTLLIBS="$LIBINTL"
23928 support_postgresql=no
23930 support_smartalloc=yes
23931 support_readline=yes
23935 support_wx_console=no
23940 support_static_tools=no
23941 support_static_fd=no
23942 support_static_sd=no
23943 support_static_dir=no
23944 support_static_cons=no
23946 build_client_only=no
23954 # Check whether --enable-gnome was given.
23955 if test "${enable_gnome+set}" = set; then
23956 enableval=$enable_gnome;
23957 if test x$enableval = xyes; then
23966 if test x$support_gnome = xyes; then
23967 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23969 if test $pkg = 0; then
23970 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23971 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23972 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23973 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23978 GNOME_DIR=src/gnome2-console
23979 gnome_version="Version 2.x"
23981 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23982 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23983 { (exit 1); exit 1; }; }
23988 # Check whether --enable-bat was given.
23989 if test "${enable_bat+set}" = set; then
23990 enableval=$enable_bat;
23991 if test x$enableval = xyes; then
23993 cat >>confdefs.h <<\_ACEOF
24005 if test x$support_bat = xyes; then
24006 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24008 if test $pkg = 0; then
24009 BAT_DIR=src/qt-console
24011 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24012 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24013 { (exit 1); exit 1; }; }
24023 if test x$support_bat = xyes; then
24024 { echo "$as_me:$LINENO: checking for qwt support" >&5
24025 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24027 # Check whether --with-qwt was given.
24028 if test "${with_qwt+set}" = set; then
24030 case "$with_qwt" in
24035 if test -f ${with_qwt}/include/qwt.h; then
24036 QWT_INC="${with_qwt}/include"
24037 QWT_LDFLAGS="-L${with_qwt}/lib"
24048 if test $no_qwt = no; then
24049 if test x$QWT_INC = x; then
24050 for root in /usr /usr/local; do
24051 for ver in qwt qwt5 qwt-qt4; do
24052 if test -f ${root}/include/${ver}/qwt.h; then
24053 QWT_INC="${root}/include/${ver}"
24054 if test -d ${root}/lib64/; then
24055 QWT_LDFLAGS="-L${root}/lib64"
24056 elif test -d ${root}/lib/64/; then
24057 QWT_LDFLAGS="-L${root}/64"
24059 QWT_LDFLAGS="-L${root}/lib"
24070 if test x$QWT_INC = x; then
24071 { echo "$as_me:$LINENO: result: no" >&5
24072 echo "${ECHO_T}no" >&6; }
24075 cat >>confdefs.h <<\_ACEOF
24079 { echo "$as_me:$LINENO: result: yes" >&5
24080 echo "${ECHO_T}yes" >&6; }
24090 # Check whether --enable-bwx-console was given.
24091 if test "${enable_bwx_console+set}" = set; then
24092 enableval=$enable_bwx_console;
24093 if test x$enableval = xyes; then
24094 support_wx_console=yes
24102 if test x$support_wx_console = xyes; then
24103 abc=`$WXCONFIG $WXFLAGS --cppflags`
24105 if test $pkg = 0; then
24106 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24107 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24108 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24112 WX_DIR=src/wx-console
24115 echo "wx-config program not found. bwx-console disabled."
24117 support_wx_console=no
24122 # Check whether --enable-tray-monitor was given.
24123 if test "${enable_tray_monitor+set}" = set; then
24124 enableval=$enable_tray_monitor;
24125 if test x$enableval = xyes; then
24126 support_tray_monitor=yes
24134 if test x$support_tray_monitor = xyes; then
24135 abc=`$PKGCONFIG --exists gtk+-2.0`
24137 if test $pkg = 0; then
24138 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24139 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24142 TRAY_MONITOR_DIR=src/tray-monitor
24143 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24145 if test $pkg = 0; then
24147 cat >>confdefs.h <<\_ACEOF
24148 #define HAVE_GTK_2_4 1
24156 # Check whether --enable-smartalloc was given.
24157 if test "${enable_smartalloc+set}" = set; then
24158 enableval=$enable_smartalloc;
24159 if test x$enableval = xno; then
24160 support_smartalloc=no
24167 if test x$support_smartalloc = xyes; then
24169 cat >>confdefs.h <<\_ACEOF
24170 #define SMARTALLOC 1
24175 # Check whether --enable-static-tools was given.
24176 if test "${enable_static_tools+set}" = set; then
24177 enableval=$enable_static_tools;
24178 if test x$enableval = xyes; then
24179 support_static_tools=yes
24187 if test x$support_static_tools = xyes; then
24188 TTOOL_LDFLAGS="-static"
24192 # Check whether --enable-static-fd was given.
24193 if test "${enable_static_fd+set}" = set; then
24194 enableval=$enable_static_fd;
24195 if test x$enableval = xyes; then
24196 support_static_fd=yes
24204 if test x$support_static_fd = xyes; then
24205 STATIC_FD="static-bacula-fd"
24209 # Check whether --enable-static-sd was given.
24210 if test "${enable_static_sd+set}" = set; then
24211 enableval=$enable_static_sd;
24212 if test x$enableval = xyes; then
24213 support_static_sd=yes
24221 if test x$support_static_sd = xyes; then
24222 STATIC_SD="static-bacula-sd"
24226 # Check whether --enable-static-dir was given.
24227 if test "${enable_static_dir+set}" = set; then
24228 enableval=$enable_static_dir;
24229 if test x$enableval = xyes; then
24230 support_static_dir=yes
24238 if test x$support_static_dir = xyes; then
24239 STATIC_DIR="static-bacula-dir"
24243 # Check whether --enable-static-cons was given.
24244 if test "${enable_static_cons+set}" = set; then
24245 enableval=$enable_static_cons;
24246 if test x$enableval = xyes; then
24247 support_static_cons=yes
24257 if test x$support_static_cons = xyes; then
24258 STATIC_CONS="static-bconsole"
24259 STATIC_GNOME_CONS="static-bgnome-console"
24260 STATIC_WX_CONS="static-bwx-console"
24266 # Check whether --enable-client-only was given.
24267 if test "${enable_client_only+set}" = set; then
24268 enableval=$enable_client_only;
24269 if test x$enableval = xyes; then
24270 build_client_only=yes
24278 if test x$build_client_only = xno; then
24285 # Check whether --enable-build-dird was given.
24286 if test "${enable_build_dird+set}" = set; then
24287 enableval=$enable_build_dird;
24288 if test x$enableval = xno; then
24295 if test x$build_dird = xyes; then
24296 DIRD_DIR="src/dird"
24297 DIR_TOOLS="DIRTOOLS"
24300 DIR_TOOLS="NODIRTOOLS"
24305 # Check whether --enable-build-stored was given.
24306 if test "${enable_build_stored+set}" = set; then
24307 enableval=$enable_build_stored;
24308 if test x$enableval = xno; then
24315 if test x$build_stored = xyes; then
24316 STORED_DIR="src/stored"
24322 # Check whether --enable-conio was given.
24323 if test "${enable_conio+set}" = set; then
24324 enableval=$enable_conio;
24325 if test x$enableval = xno; then
24335 # Check whether --enable-ipv6 was given.
24336 if test "${enable_ipv6+set}" = set; then
24337 enableval=$enable_ipv6;
24338 if test x$enableval = xno; then
24346 if test x$support_ipv6 = xyes; then
24347 cat >conftest.$ac_ext <<_ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 #include <sys/types.h>
24354 #include <sys/socket.h>
24355 #include <netinet/in.h>
24359 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24364 rm -f conftest.$ac_objext conftest$ac_exeext
24365 if { (ac_try="$ac_link"
24366 case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_link") 2>conftest.er1
24373 grep -v '^ *+' conftest.er1 >conftest.err
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } && {
24378 test -z "$ac_c_werror_flag" ||
24379 test ! -s conftest.err
24380 } && test -s conftest$ac_exeext &&
24381 $as_test_x conftest$ac_exeext; then
24384 echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24391 conftest$ac_exeext conftest.$ac_ext
24394 if test x$support_ipv6 = xyes; then
24396 cat >>confdefs.h <<\_ACEOF
24397 #define HAVE_IPV6 1
24403 if test x$support_conio = xyes; then
24404 if test "${ac_cv_header_termcap_h+set}" = set; then
24405 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24406 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24407 if test "${ac_cv_header_termcap_h+set}" = set; then
24408 echo $ECHO_N "(cached) $ECHO_C" >&6
24410 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24411 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24413 # Is the header compilable?
24414 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24415 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24416 cat >conftest.$ac_ext <<_ACEOF
24419 cat confdefs.h >>conftest.$ac_ext
24420 cat >>conftest.$ac_ext <<_ACEOF
24421 /* end confdefs.h. */
24422 $ac_includes_default
24423 #include <termcap.h>
24425 rm -f conftest.$ac_objext
24426 if { (ac_try="$ac_compile"
24427 case "(($ac_try" in
24428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429 *) ac_try_echo=$ac_try;;
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432 (eval "$ac_compile") 2>conftest.er1
24434 grep -v '^ *+' conftest.er1 >conftest.err
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } && {
24439 test -z "$ac_c_werror_flag" ||
24440 test ! -s conftest.err
24441 } && test -s conftest.$ac_objext; then
24442 ac_header_compiler=yes
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24447 ac_header_compiler=no
24450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24452 echo "${ECHO_T}$ac_header_compiler" >&6; }
24454 # Is the header present?
24455 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24456 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24457 cat >conftest.$ac_ext <<_ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h. */
24463 #include <termcap.h>
24465 if { (ac_try="$ac_cpp conftest.$ac_ext"
24466 case "(($ac_try" in
24467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24468 *) ac_try_echo=$ac_try;;
24470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24473 grep -v '^ *+' conftest.er1 >conftest.err
24475 cat conftest.err >&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } >/dev/null && {
24478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24479 test ! -s conftest.err
24481 ac_header_preproc=yes
24483 echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24486 ac_header_preproc=no
24489 rm -f conftest.err conftest.$ac_ext
24490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24491 echo "${ECHO_T}$ac_header_preproc" >&6; }
24493 # So? What about this header?
24494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24496 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24497 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24498 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24499 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24500 ac_header_preproc=yes
24503 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24504 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24505 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24506 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24507 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24508 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24509 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24510 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24511 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24512 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24513 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24514 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24518 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24519 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24520 if test "${ac_cv_header_termcap_h+set}" = set; then
24521 echo $ECHO_N "(cached) $ECHO_C" >&6
24523 ac_cv_header_termcap_h=$ac_header_preproc
24525 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24526 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24529 if test $ac_cv_header_termcap_h = yes; then
24530 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24531 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24532 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24533 echo $ECHO_N "(cached) $ECHO_C" >&6
24535 ac_check_lib_save_LIBS=$LIBS
24536 LIBS="-ltermcap $LIBS"
24537 cat >conftest.$ac_ext <<_ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24544 /* Override any GCC internal prototype to avoid an error.
24545 Use char because int might match the return type of a GCC
24546 builtin and then its argument prototype would still apply. */
24559 rm -f conftest.$ac_objext conftest$ac_exeext
24560 if { (ac_try="$ac_link"
24561 case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566 (eval "$ac_link") 2>conftest.er1
24568 grep -v '^ *+' conftest.er1 >conftest.err
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } && {
24573 test -z "$ac_c_werror_flag" ||
24574 test ! -s conftest.err
24575 } && test -s conftest$ac_exeext &&
24576 $as_test_x conftest$ac_exeext; then
24577 ac_cv_lib_termcap_tgetent=yes
24579 echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24582 ac_cv_lib_termcap_tgetent=no
24585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24586 conftest$ac_exeext conftest.$ac_ext
24587 LIBS=$ac_check_lib_save_LIBS
24589 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24590 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24591 if test $ac_cv_lib_termcap_tgetent = yes; then
24592 CONS_LIBS="-ltermcap"
24596 support_readline=no
24598 cat >>confdefs.h <<\_ACEOF
24599 #define HAVE_CONIO 1
24604 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24605 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24606 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 ac_check_lib_save_LIBS=$LIBS
24610 LIBS="-lncurses $LIBS"
24611 cat >conftest.$ac_ext <<_ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24618 /* Override any GCC internal prototype to avoid an error.
24619 Use char because int might match the return type of a GCC
24620 builtin and then its argument prototype would still apply. */
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_link") 2>conftest.er1
24642 grep -v '^ *+' conftest.er1 >conftest.err
24644 cat conftest.err >&5
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest$ac_exeext &&
24650 $as_test_x conftest$ac_exeext; then
24651 ac_cv_lib_ncurses_tgetent=yes
24653 echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24656 ac_cv_lib_ncurses_tgetent=no
24659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24660 conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24663 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24664 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24665 if test $ac_cv_lib_ncurses_tgetent = yes; then
24666 CONS_LIBS="-lncurses"
24670 support_readline=no
24672 cat >>confdefs.h <<\_ACEOF
24673 #define HAVE_CONIO 1
24686 for ac_header in curses.h
24688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
24695 ac_res=`eval echo '${'$as_ac_Header'}'`
24696 { echo "$as_me:$LINENO: result: $ac_res" >&5
24697 echo "${ECHO_T}$ac_res" >&6; }
24699 # Is the header compilable?
24700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24702 cat >conftest.$ac_ext <<_ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24708 $ac_includes_default
24709 #include <$ac_header>
24711 rm -f conftest.$ac_objext
24712 if { (ac_try="$ac_compile"
24713 case "(($ac_try" in
24714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715 *) ac_try_echo=$ac_try;;
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718 (eval "$ac_compile") 2>conftest.er1
24720 grep -v '^ *+' conftest.er1 >conftest.err
24722 cat conftest.err >&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } && {
24725 test -z "$ac_c_werror_flag" ||
24726 test ! -s conftest.err
24727 } && test -s conftest.$ac_objext; then
24728 ac_header_compiler=yes
24730 echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24733 ac_header_compiler=no
24736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24738 echo "${ECHO_T}$ac_header_compiler" >&6; }
24740 # Is the header present?
24741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24743 cat >conftest.$ac_ext <<_ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h. */
24749 #include <$ac_header>
24751 if { (ac_try="$ac_cpp conftest.$ac_ext"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24759 grep -v '^ *+' conftest.er1 >conftest.err
24761 cat conftest.err >&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } >/dev/null && {
24764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24765 test ! -s conftest.err
24767 ac_header_preproc=yes
24769 echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24772 ac_header_preproc=no
24775 rm -f conftest.err conftest.$ac_ext
24776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24777 echo "${ECHO_T}$ac_header_preproc" >&6; }
24779 # So? What about this header?
24780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24786 ac_header_preproc=yes
24789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24807 echo $ECHO_N "(cached) $ECHO_C" >&6
24809 eval "$as_ac_Header=\$ac_header_preproc"
24811 ac_res=`eval echo '${'$as_ac_Header'}'`
24812 { echo "$as_me:$LINENO: result: $ac_res" >&5
24813 echo "${ECHO_T}$ac_res" >&6; }
24816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24817 cat >>confdefs.h <<_ACEOF
24818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24825 { echo "$as_me:$LINENO: checking for term.h" >&5
24826 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24827 if test "${ac_cv_header_term_h+set}" = set; then
24828 echo $ECHO_N "(cached) $ECHO_C" >&6
24830 cat >conftest.$ac_ext <<_ACEOF
24833 cat confdefs.h >>conftest.$ac_ext
24834 cat >>conftest.$ac_ext <<_ACEOF
24835 /* end confdefs.h. */
24837 #include <curses.h>
24843 rm -f conftest.$ac_objext
24844 if { (ac_try="$ac_compile"
24845 case "(($ac_try" in
24846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847 *) ac_try_echo=$ac_try;;
24849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24850 (eval "$ac_compile") 2>conftest.er1
24852 grep -v '^ *+' conftest.er1 >conftest.err
24854 cat conftest.err >&5
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } && {
24857 test -z "$ac_c_werror_flag" ||
24858 test ! -s conftest.err
24859 } && test -s conftest.$ac_objext; then
24860 ac_cv_header_term_h=yes
24862 echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24865 ac_cv_header_term_h=no
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24870 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24871 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24872 if test $ac_cv_header_term_h = yes; then
24873 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24874 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24875 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24876 echo $ECHO_N "(cached) $ECHO_C" >&6
24878 ac_check_lib_save_LIBS=$LIBS
24879 LIBS="-lcurses $LIBS"
24880 cat >conftest.$ac_ext <<_ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h. */
24887 /* Override any GCC internal prototype to avoid an error.
24888 Use char because int might match the return type of a GCC
24889 builtin and then its argument prototype would still apply. */
24902 rm -f conftest.$ac_objext conftest$ac_exeext
24903 if { (ac_try="$ac_link"
24904 case "(($ac_try" in
24905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906 *) ac_try_echo=$ac_try;;
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909 (eval "$ac_link") 2>conftest.er1
24911 grep -v '^ *+' conftest.er1 >conftest.err
24913 cat conftest.err >&5
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } && {
24916 test -z "$ac_c_werror_flag" ||
24917 test ! -s conftest.err
24918 } && test -s conftest$ac_exeext &&
24919 $as_test_x conftest$ac_exeext; then
24920 ac_cv_lib_curses_tgetent=yes
24922 echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24925 ac_cv_lib_curses_tgetent=no
24928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24929 conftest$ac_exeext conftest.$ac_ext
24930 LIBS=$ac_check_lib_save_LIBS
24932 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24933 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24934 if test $ac_cv_lib_curses_tgetent = yes; then
24935 CONS_LIBS="-lcurses"
24939 support_readline=no
24941 cat >>confdefs.h <<\_ACEOF
24942 #define HAVE_CONIO 1
24950 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24961 # Check whether --enable-readline was given.
24962 if test "${enable_readline+set}" = set; then
24963 enableval=$enable_readline;
24964 if test x$enableval = xno; then
24965 support_readline=no
24974 if test x$support_readline = xyes; then
24976 # Check whether --with-readline was given.
24977 if test "${with_readline+set}" = set; then
24978 withval=$with_readline;
24979 case "$with_readline" in
24984 if test -f ${with_readline}/readline.h; then
24985 CONS_INC="-I${with_readline}"
24986 CONS_LDFLAGS="-L$with_readline"
24987 elif test -f ${with_readline}/include/readline/readline.h; then
24988 CONS_INC="-I${with_readline}/include/readline"
24989 CONS_LDFLAGS="-L${with_readline}/lib"
24990 with_readline="${with_readline}/include/readline"
24992 with_readline="/usr/include/readline"
24995 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
24996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24997 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
24998 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
24999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25000 echo $ECHO_N "(cached) $ECHO_C" >&6
25002 ac_res=`eval echo '${'$as_ac_Header'}'`
25003 { echo "$as_me:$LINENO: result: $ac_res" >&5
25004 echo "${ECHO_T}$ac_res" >&6; }
25006 # Is the header compilable?
25007 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25008 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25009 cat >conftest.$ac_ext <<_ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h. */
25015 $ac_includes_default
25016 #include <${with_readline}/readline.h>
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022 *) ac_try_echo=$ac_try;;
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025 (eval "$ac_compile") 2>conftest.er1
25027 grep -v '^ *+' conftest.er1 >conftest.err
25029 cat conftest.err >&5
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); } && {
25032 test -z "$ac_c_werror_flag" ||
25033 test ! -s conftest.err
25034 } && test -s conftest.$ac_objext; then
25035 ac_header_compiler=yes
25037 echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25040 ac_header_compiler=no
25043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25045 echo "${ECHO_T}$ac_header_compiler" >&6; }
25047 # Is the header present?
25048 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25049 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25050 cat >conftest.$ac_ext <<_ACEOF
25053 cat confdefs.h >>conftest.$ac_ext
25054 cat >>conftest.$ac_ext <<_ACEOF
25055 /* end confdefs.h. */
25056 #include <${with_readline}/readline.h>
25058 if { (ac_try="$ac_cpp conftest.$ac_ext"
25059 case "(($ac_try" in
25060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25061 *) ac_try_echo=$ac_try;;
25063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25066 grep -v '^ *+' conftest.er1 >conftest.err
25068 cat conftest.err >&5
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); } >/dev/null && {
25071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25072 test ! -s conftest.err
25074 ac_header_preproc=yes
25076 echo "$as_me: failed program was:" >&5
25077 sed 's/^/| /' conftest.$ac_ext >&5
25079 ac_header_preproc=no
25082 rm -f conftest.err conftest.$ac_ext
25083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25084 echo "${ECHO_T}$ac_header_preproc" >&6; }
25086 # So? What about this header?
25087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25089 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25090 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25091 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25092 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25093 ac_header_preproc=yes
25096 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25097 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25098 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25099 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25100 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25101 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25102 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25103 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25104 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25105 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25106 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25107 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25111 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25112 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25114 echo $ECHO_N "(cached) $ECHO_C" >&6
25116 eval "$as_ac_Header=\$ac_header_preproc"
25118 ac_res=`eval echo '${'$as_ac_Header'}'`
25119 { echo "$as_me:$LINENO: result: $ac_res" >&5
25120 echo "${ECHO_T}$ac_res" >&6; }
25123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25126 cat >>confdefs.h <<\_ACEOF
25127 #define HAVE_READLINE 1
25130 CONS_LIBS="-lreadline -lhistory -ltermcap"
25136 echo "readline.h not found. readline turned off ..."
25148 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25149 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25150 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25151 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25152 echo $ECHO_N "(cached) $ECHO_C" >&6
25154 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25155 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25157 # Is the header compilable?
25158 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25159 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25160 cat >conftest.$ac_ext <<_ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25166 $ac_includes_default
25167 #include </usr/include/readline/readline.h>
25169 rm -f conftest.$ac_objext
25170 if { (ac_try="$ac_compile"
25171 case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176 (eval "$ac_compile") 2>conftest.er1
25178 grep -v '^ *+' conftest.er1 >conftest.err
25180 cat conftest.err >&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && {
25183 test -z "$ac_c_werror_flag" ||
25184 test ! -s conftest.err
25185 } && test -s conftest.$ac_objext; then
25186 ac_header_compiler=yes
25188 echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25191 ac_header_compiler=no
25194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25196 echo "${ECHO_T}$ac_header_compiler" >&6; }
25198 # Is the header present?
25199 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25200 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25201 cat >conftest.$ac_ext <<_ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 #include </usr/include/readline/readline.h>
25209 if { (ac_try="$ac_cpp conftest.$ac_ext"
25210 case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25217 grep -v '^ *+' conftest.er1 >conftest.err
25219 cat conftest.err >&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } >/dev/null && {
25222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25223 test ! -s conftest.err
25225 ac_header_preproc=yes
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ac_header_preproc=no
25233 rm -f conftest.err conftest.$ac_ext
25234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25235 echo "${ECHO_T}$ac_header_preproc" >&6; }
25237 # So? What about this header?
25238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25240 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25241 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25243 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25244 ac_header_preproc=yes
25247 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25248 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25249 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25250 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25251 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25252 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25254 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25256 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25258 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25262 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25263 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25264 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
25267 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25269 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25270 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25273 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25276 cat >>confdefs.h <<\_ACEOF
25277 #define HAVE_READLINE 1
25281 CONS_INC="-I/usr/include/readline"
25282 CONS_LIBS="-lreadline -ltermcap"
25286 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25288 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25289 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25291 echo $ECHO_N "(cached) $ECHO_C" >&6
25293 ac_res=`eval echo '${'$as_ac_Header'}'`
25294 { echo "$as_me:$LINENO: result: $ac_res" >&5
25295 echo "${ECHO_T}$ac_res" >&6; }
25297 # Is the header compilable?
25298 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25299 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25300 cat >conftest.$ac_ext <<_ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25306 $ac_includes_default
25307 #include <${TOP_DIR}/depkgs/readline/readline.h>
25309 rm -f conftest.$ac_objext
25310 if { (ac_try="$ac_compile"
25311 case "(($ac_try" in
25312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25316 (eval "$ac_compile") 2>conftest.er1
25318 grep -v '^ *+' conftest.er1 >conftest.err
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } && {
25323 test -z "$ac_c_werror_flag" ||
25324 test ! -s conftest.err
25325 } && test -s conftest.$ac_objext; then
25326 ac_header_compiler=yes
25328 echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25331 ac_header_compiler=no
25334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25336 echo "${ECHO_T}$ac_header_compiler" >&6; }
25338 # Is the header present?
25339 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25340 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25341 cat >conftest.$ac_ext <<_ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25347 #include <${TOP_DIR}/depkgs/readline/readline.h>
25349 if { (ac_try="$ac_cpp conftest.$ac_ext"
25350 case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25357 grep -v '^ *+' conftest.er1 >conftest.err
25359 cat conftest.err >&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } >/dev/null && {
25362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25363 test ! -s conftest.err
25365 ac_header_preproc=yes
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ac_header_preproc=no
25373 rm -f conftest.err conftest.$ac_ext
25374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25375 echo "${ECHO_T}$ac_header_preproc" >&6; }
25377 # So? What about this header?
25378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25380 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25381 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25383 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25384 ac_header_preproc=yes
25387 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25388 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25390 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25392 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25394 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25398 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25402 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25403 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
25407 eval "$as_ac_Header=\$ac_header_preproc"
25409 ac_res=`eval echo '${'$as_ac_Header'}'`
25410 { echo "$as_me:$LINENO: result: $ac_res" >&5
25411 echo "${ECHO_T}$ac_res" >&6; }
25414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25417 cat >>confdefs.h <<\_ACEOF
25418 #define HAVE_READLINE 1
25422 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25423 CONS_LIBS="-lreadline -lhistory -ltermcap"
25424 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25425 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25430 echo "readline.h not found. readline turned off ..."
25457 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25458 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25459 if test "${ac_cv_header_stat_broken+set}" = set; then
25460 echo $ECHO_N "(cached) $ECHO_C" >&6
25462 cat >conftest.$ac_ext <<_ACEOF
25465 cat confdefs.h >>conftest.$ac_ext
25466 cat >>conftest.$ac_ext <<_ACEOF
25467 /* end confdefs.h. */
25468 #include <sys/types.h>
25469 #include <sys/stat.h>
25471 #if defined S_ISBLK && defined S_IFDIR
25472 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25475 #if defined S_ISBLK && defined S_IFCHR
25476 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25479 #if defined S_ISLNK && defined S_IFREG
25480 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25483 #if defined S_ISSOCK && defined S_IFREG
25484 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25488 rm -f conftest.$ac_objext
25489 if { (ac_try="$ac_compile"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495 (eval "$ac_compile") 2>conftest.er1
25497 grep -v '^ *+' conftest.er1 >conftest.err
25499 cat conftest.err >&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } && {
25502 test -z "$ac_c_werror_flag" ||
25503 test ! -s conftest.err
25504 } && test -s conftest.$ac_objext; then
25505 ac_cv_header_stat_broken=no
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ac_cv_header_stat_broken=yes
25513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25515 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25516 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25517 if test $ac_cv_header_stat_broken = yes; then
25519 cat >>confdefs.h <<\_ACEOF
25520 #define STAT_MACROS_BROKEN 1
25530 ac_header_dirent=no
25531 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25532 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25533 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25534 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25536 echo $ECHO_N "(cached) $ECHO_C" >&6
25538 cat >conftest.$ac_ext <<_ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h. */
25544 #include <sys/types.h>
25556 rm -f conftest.$ac_objext
25557 if { (ac_try="$ac_compile"
25558 case "(($ac_try" in
25559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25560 *) ac_try_echo=$ac_try;;
25562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25563 (eval "$ac_compile") 2>conftest.er1
25565 grep -v '^ *+' conftest.er1 >conftest.err
25567 cat conftest.err >&5
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); } && {
25570 test -z "$ac_c_werror_flag" ||
25571 test ! -s conftest.err
25572 } && test -s conftest.$ac_objext; then
25573 eval "$as_ac_Header=yes"
25575 echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25578 eval "$as_ac_Header=no"
25581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25583 ac_res=`eval echo '${'$as_ac_Header'}'`
25584 { echo "$as_me:$LINENO: result: $ac_res" >&5
25585 echo "${ECHO_T}$ac_res" >&6; }
25586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25587 cat >>confdefs.h <<_ACEOF
25588 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25591 ac_header_dirent=$ac_hdr; break
25595 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25596 if test $ac_header_dirent = dirent.h; then
25597 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25598 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25599 if test "${ac_cv_search_opendir+set}" = set; then
25600 echo $ECHO_N "(cached) $ECHO_C" >&6
25602 ac_func_search_save_LIBS=$LIBS
25603 cat >conftest.$ac_ext <<_ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h. */
25610 /* Override any GCC internal prototype to avoid an error.
25611 Use char because int might match the return type of a GCC
25612 builtin and then its argument prototype would still apply. */
25625 for ac_lib in '' dir; do
25626 if test -z "$ac_lib"; then
25627 ac_res="none required"
25630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25632 rm -f conftest.$ac_objext conftest$ac_exeext
25633 if { (ac_try="$ac_link"
25634 case "(($ac_try" in
25635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636 *) ac_try_echo=$ac_try;;
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639 (eval "$ac_link") 2>conftest.er1
25641 grep -v '^ *+' conftest.er1 >conftest.err
25643 cat conftest.err >&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } && {
25646 test -z "$ac_c_werror_flag" ||
25647 test ! -s conftest.err
25648 } && test -s conftest$ac_exeext &&
25649 $as_test_x conftest$ac_exeext; then
25650 ac_cv_search_opendir=$ac_res
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25660 if test "${ac_cv_search_opendir+set}" = set; then
25664 if test "${ac_cv_search_opendir+set}" = set; then
25667 ac_cv_search_opendir=no
25669 rm conftest.$ac_ext
25670 LIBS=$ac_func_search_save_LIBS
25672 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25673 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25674 ac_res=$ac_cv_search_opendir
25675 if test "$ac_res" != no; then
25676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25681 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25682 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25683 if test "${ac_cv_search_opendir+set}" = set; then
25684 echo $ECHO_N "(cached) $ECHO_C" >&6
25686 ac_func_search_save_LIBS=$LIBS
25687 cat >conftest.$ac_ext <<_ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h. */
25694 /* Override any GCC internal prototype to avoid an error.
25695 Use char because int might match the return type of a GCC
25696 builtin and then its argument prototype would still apply. */
25709 for ac_lib in '' x; do
25710 if test -z "$ac_lib"; then
25711 ac_res="none required"
25714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25716 rm -f conftest.$ac_objext conftest$ac_exeext
25717 if { (ac_try="$ac_link"
25718 case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25723 (eval "$ac_link") 2>conftest.er1
25725 grep -v '^ *+' conftest.er1 >conftest.err
25727 cat conftest.err >&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } && {
25730 test -z "$ac_c_werror_flag" ||
25731 test ! -s conftest.err
25732 } && test -s conftest$ac_exeext &&
25733 $as_test_x conftest$ac_exeext; then
25734 ac_cv_search_opendir=$ac_res
25736 echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25744 if test "${ac_cv_search_opendir+set}" = set; then
25748 if test "${ac_cv_search_opendir+set}" = set; then
25751 ac_cv_search_opendir=no
25753 rm conftest.$ac_ext
25754 LIBS=$ac_func_search_save_LIBS
25756 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25757 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25758 ac_res=$ac_cv_search_opendir
25759 if test "$ac_res" != no; then
25760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25773 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25779 echo $ECHO_N "(cached) $ECHO_C" >&6
25781 cat >conftest.$ac_ext <<_ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h. */
25787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25789 #define $ac_func innocuous_$ac_func
25791 /* System header to define __stub macros and hopefully few prototypes,
25792 which can conflict with char $ac_func (); below.
25793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25794 <limits.h> exists even on freestanding compilers. */
25797 # include <limits.h>
25799 # include <assert.h>
25804 /* Override any GCC internal prototype to avoid an error.
25805 Use char because int might match the return type of a GCC
25806 builtin and then its argument prototype would still apply. */
25811 /* The GNU C library defines this for functions which it implements
25812 to always fail with ENOSYS. Some functions are actually named
25813 something starting with __ and the normal name is an alias. */
25814 #if defined __stub_$ac_func || defined __stub___$ac_func
25821 return $ac_func ();
25826 rm -f conftest.$ac_objext conftest$ac_exeext
25827 if { (ac_try="$ac_link"
25828 case "(($ac_try" in
25829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830 *) ac_try_echo=$ac_try;;
25832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833 (eval "$ac_link") 2>conftest.er1
25835 grep -v '^ *+' conftest.er1 >conftest.err
25837 cat conftest.err >&5
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } && {
25840 test -z "$ac_c_werror_flag" ||
25841 test ! -s conftest.err
25842 } && test -s conftest$ac_exeext &&
25843 $as_test_x conftest$ac_exeext; then
25844 eval "$as_ac_var=yes"
25846 echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25849 eval "$as_ac_var=no"
25852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25853 conftest$ac_exeext conftest.$ac_ext
25855 ac_res=`eval echo '${'$as_ac_var'}'`
25856 { echo "$as_me:$LINENO: result: $ac_res" >&5
25857 echo "${ECHO_T}$ac_res" >&6; }
25858 if test `eval echo '${'$as_ac_var'}'` = yes; then
25859 cat >>confdefs.h <<_ACEOF
25860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25868 for ac_func in nanosleep nl_langinfo
25870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25874 echo $ECHO_N "(cached) $ECHO_C" >&6
25876 cat >conftest.$ac_ext <<_ACEOF
25879 cat confdefs.h >>conftest.$ac_ext
25880 cat >>conftest.$ac_ext <<_ACEOF
25881 /* end confdefs.h. */
25882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25884 #define $ac_func innocuous_$ac_func
25886 /* System header to define __stub macros and hopefully few prototypes,
25887 which can conflict with char $ac_func (); below.
25888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25889 <limits.h> exists even on freestanding compilers. */
25892 # include <limits.h>
25894 # include <assert.h>
25899 /* Override any GCC internal prototype to avoid an error.
25900 Use char because int might match the return type of a GCC
25901 builtin and then its argument prototype would still apply. */
25906 /* The GNU C library defines this for functions which it implements
25907 to always fail with ENOSYS. Some functions are actually named
25908 something starting with __ and the normal name is an alias. */
25909 #if defined __stub_$ac_func || defined __stub___$ac_func
25916 return $ac_func ();
25921 rm -f conftest.$ac_objext conftest$ac_exeext
25922 if { (ac_try="$ac_link"
25923 case "(($ac_try" in
25924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25925 *) ac_try_echo=$ac_try;;
25927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25928 (eval "$ac_link") 2>conftest.er1
25930 grep -v '^ *+' conftest.er1 >conftest.err
25932 cat conftest.err >&5
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } && {
25935 test -z "$ac_c_werror_flag" ||
25936 test ! -s conftest.err
25937 } && test -s conftest$ac_exeext &&
25938 $as_test_x conftest$ac_exeext; then
25939 eval "$as_ac_var=yes"
25941 echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25944 eval "$as_ac_var=no"
25947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25948 conftest$ac_exeext conftest.$ac_ext
25950 ac_res=`eval echo '${'$as_ac_var'}'`
25951 { echo "$as_me:$LINENO: result: $ac_res" >&5
25952 echo "${ECHO_T}$ac_res" >&6; }
25953 if test `eval echo '${'$as_ac_var'}'` = yes; then
25954 cat >>confdefs.h <<_ACEOF
25955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25962 for ac_header in varargs.h
25964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25969 echo $ECHO_N "(cached) $ECHO_C" >&6
25971 ac_res=`eval echo '${'$as_ac_Header'}'`
25972 { echo "$as_me:$LINENO: result: $ac_res" >&5
25973 echo "${ECHO_T}$ac_res" >&6; }
25975 # Is the header compilable?
25976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25978 cat >conftest.$ac_ext <<_ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h. */
25984 $ac_includes_default
25985 #include <$ac_header>
25987 rm -f conftest.$ac_objext
25988 if { (ac_try="$ac_compile"
25989 case "(($ac_try" in
25990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25991 *) ac_try_echo=$ac_try;;
25993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25994 (eval "$ac_compile") 2>conftest.er1
25996 grep -v '^ *+' conftest.er1 >conftest.err
25998 cat conftest.err >&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } && {
26001 test -z "$ac_c_werror_flag" ||
26002 test ! -s conftest.err
26003 } && test -s conftest.$ac_objext; then
26004 ac_header_compiler=yes
26006 echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26009 ac_header_compiler=no
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26014 echo "${ECHO_T}$ac_header_compiler" >&6; }
26016 # Is the header present?
26017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26019 cat >conftest.$ac_ext <<_ACEOF
26022 cat confdefs.h >>conftest.$ac_ext
26023 cat >>conftest.$ac_ext <<_ACEOF
26024 /* end confdefs.h. */
26025 #include <$ac_header>
26027 if { (ac_try="$ac_cpp conftest.$ac_ext"
26028 case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26035 grep -v '^ *+' conftest.er1 >conftest.err
26037 cat conftest.err >&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); } >/dev/null && {
26040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26041 test ! -s conftest.err
26043 ac_header_preproc=yes
26045 echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26048 ac_header_preproc=no
26051 rm -f conftest.err conftest.$ac_ext
26052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26053 echo "${ECHO_T}$ac_header_preproc" >&6; }
26055 # So? What about this header?
26056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26062 ac_header_preproc=yes
26065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26085 eval "$as_ac_Header=\$ac_header_preproc"
26087 ac_res=`eval echo '${'$as_ac_Header'}'`
26088 { echo "$as_me:$LINENO: result: $ac_res" >&5
26089 echo "${ECHO_T}$ac_res" >&6; }
26092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26093 cat >>confdefs.h <<_ACEOF
26094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26103 { echo "$as_me:$LINENO: checking for Python support" >&5
26104 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26106 # Check whether --with-python was given.
26107 if test "${with_python+set}" = set; then
26108 withval=$with_python;
26111 if test "$withval" != "no"; then
26112 if test "$withval" = "yes"; then
26113 for python_root in /usr /usr/local /usr/sfw; do
26114 for ver in python2.2 python2.3 python2.4 python2.5; do
26115 if test -f $python_root/include/${ver}/Python.h; then
26116 PYTHON_INCDIR=-I$python_root/include/${ver}
26117 if test -d $python_root/lib64/${ver}/config; then
26118 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26120 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26127 if test x$PYTHON_INCDIR = x; then
26128 if test -f $prefix/include/Python.h; then
26129 PYTHON_INCDIR=-I$prefix/include
26130 if test -d $prefix/lib64/config; then
26131 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26133 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26136 { echo "$as_me:$LINENO: result: no" >&5
26137 echo "${ECHO_T}no" >&6; }
26138 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26139 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26140 { (exit 1); exit 1; }; }
26144 if test -f $withval/Python.h; then
26145 PYTHON_INCDIR=-I$withval
26146 PYTHON_LIBS="-L$withval/config -lpython"
26147 elif test -f $withval/include/Python.h; then
26148 PYTHON_INCDIR=-I$withval/include
26149 if test -d $withval/lib64/config; then
26150 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26152 PYTHON_LIBS="-L$withval/lib/config -lpython"
26154 elif test -f $withval/include/python/Python.h; then
26155 PYTHON_INCDIR=-I$withval/include/python
26156 if test -d $withval/lib64/python/config; then
26157 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26159 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26162 { echo "$as_me:$LINENO: result: no" >&5
26163 echo "${ECHO_T}no" >&6; }
26164 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26165 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26166 { (exit 1); exit 1; }; }
26170 cat >>confdefs.h <<\_ACEOF
26171 #define HAVE_PYTHON 1
26174 { echo "$as_me:$LINENO: result: yes" >&5
26175 echo "${ECHO_T}yes" >&6; }
26177 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26178 echo "$as_me: checking for more Python libs" >&6;}
26179 saved_LIBS="$LIBS"; LIBS=
26180 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26181 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26182 if test "${ac_cv_search_shm_open+set}" = set; then
26183 echo $ECHO_N "(cached) $ECHO_C" >&6
26185 ac_func_search_save_LIBS=$LIBS
26186 cat >conftest.$ac_ext <<_ACEOF
26189 cat confdefs.h >>conftest.$ac_ext
26190 cat >>conftest.$ac_ext <<_ACEOF
26191 /* end confdefs.h. */
26193 /* Override any GCC internal prototype to avoid an error.
26194 Use char because int might match the return type of a GCC
26195 builtin and then its argument prototype would still apply. */
26203 return shm_open ();
26208 for ac_lib in '' rt; do
26209 if test -z "$ac_lib"; then
26210 ac_res="none required"
26213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26215 rm -f conftest.$ac_objext conftest$ac_exeext
26216 if { (ac_try="$ac_link"
26217 case "(($ac_try" in
26218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26219 *) ac_try_echo=$ac_try;;
26221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26222 (eval "$ac_link") 2>conftest.er1
26224 grep -v '^ *+' conftest.er1 >conftest.err
26226 cat conftest.err >&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } && {
26229 test -z "$ac_c_werror_flag" ||
26230 test ! -s conftest.err
26231 } && test -s conftest$ac_exeext &&
26232 $as_test_x conftest$ac_exeext; then
26233 ac_cv_search_shm_open=$ac_res
26235 echo "$as_me: failed program was:" >&5
26236 sed 's/^/| /' conftest.$ac_ext >&5
26241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26243 if test "${ac_cv_search_shm_open+set}" = set; then
26247 if test "${ac_cv_search_shm_open+set}" = set; then
26250 ac_cv_search_shm_open=no
26252 rm conftest.$ac_ext
26253 LIBS=$ac_func_search_save_LIBS
26255 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26256 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26257 ac_res=$ac_cv_search_shm_open
26258 if test "$ac_res" != no; then
26259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26264 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26265 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26266 if test "${ac_cv_lib_util_openpty+set}" = set; then
26267 echo $ECHO_N "(cached) $ECHO_C" >&6
26269 ac_check_lib_save_LIBS=$LIBS
26270 LIBS="-lutil $LIBS"
26271 cat >conftest.$ac_ext <<_ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h. */
26278 /* Override any GCC internal prototype to avoid an error.
26279 Use char because int might match the return type of a GCC
26280 builtin and then its argument prototype would still apply. */
26293 rm -f conftest.$ac_objext conftest$ac_exeext
26294 if { (ac_try="$ac_link"
26295 case "(($ac_try" in
26296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297 *) ac_try_echo=$ac_try;;
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300 (eval "$ac_link") 2>conftest.er1
26302 grep -v '^ *+' conftest.er1 >conftest.err
26304 cat conftest.err >&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && {
26307 test -z "$ac_c_werror_flag" ||
26308 test ! -s conftest.err
26309 } && test -s conftest$ac_exeext &&
26310 $as_test_x conftest$ac_exeext; then
26311 ac_cv_lib_util_openpty=yes
26313 echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26316 ac_cv_lib_util_openpty=no
26319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26320 conftest$ac_exeext conftest.$ac_ext
26321 LIBS=$ac_check_lib_save_LIBS
26323 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26324 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26325 if test $ac_cv_lib_util_openpty = yes; then
26326 cat >>confdefs.h <<_ACEOF
26327 #define HAVE_LIBUTIL 1
26330 LIBS="-lutil $LIBS"
26334 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26337 { echo "$as_me:$LINENO: result: no" >&5
26338 echo "${ECHO_T}no" >&6; }
26343 { echo "$as_me:$LINENO: result: no" >&5
26344 echo "${ECHO_T}no" >&6; }
26352 { echo "$as_me:$LINENO: checking for socket" >&5
26353 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26354 if test "${ac_cv_func_socket+set}" = set; then
26355 echo $ECHO_N "(cached) $ECHO_C" >&6
26357 cat >conftest.$ac_ext <<_ACEOF
26360 cat confdefs.h >>conftest.$ac_ext
26361 cat >>conftest.$ac_ext <<_ACEOF
26362 /* end confdefs.h. */
26363 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26365 #define socket innocuous_socket
26367 /* System header to define __stub macros and hopefully few prototypes,
26368 which can conflict with char socket (); below.
26369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26370 <limits.h> exists even on freestanding compilers. */
26373 # include <limits.h>
26375 # include <assert.h>
26380 /* Override any GCC internal prototype to avoid an error.
26381 Use char because int might match the return type of a GCC
26382 builtin and then its argument prototype would still apply. */
26387 /* The GNU C library defines this for functions which it implements
26388 to always fail with ENOSYS. Some functions are actually named
26389 something starting with __ and the normal name is an alias. */
26390 #if defined __stub_socket || defined __stub___socket
26402 rm -f conftest.$ac_objext conftest$ac_exeext
26403 if { (ac_try="$ac_link"
26404 case "(($ac_try" in
26405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26406 *) ac_try_echo=$ac_try;;
26408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26409 (eval "$ac_link") 2>conftest.er1
26411 grep -v '^ *+' conftest.er1 >conftest.err
26413 cat conftest.err >&5
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); } && {
26416 test -z "$ac_c_werror_flag" ||
26417 test ! -s conftest.err
26418 } && test -s conftest$ac_exeext &&
26419 $as_test_x conftest$ac_exeext; then
26420 ac_cv_func_socket=yes
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26425 ac_cv_func_socket=no
26428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26429 conftest$ac_exeext conftest.$ac_ext
26431 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26432 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26433 if test $ac_cv_func_socket = yes; then
26434 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26435 echo "${ECHO_T}using libc's socket" >&6; }
26438 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26439 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26440 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26443 ac_check_lib_save_LIBS=$LIBS
26444 LIBS="-lxnet $LIBS"
26445 cat >conftest.$ac_ext <<_ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h. */
26452 /* Override any GCC internal prototype to avoid an error.
26453 Use char because int might match the return type of a GCC
26454 builtin and then its argument prototype would still apply. */
26467 rm -f conftest.$ac_objext conftest$ac_exeext
26468 if { (ac_try="$ac_link"
26469 case "(($ac_try" in
26470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471 *) ac_try_echo=$ac_try;;
26473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26474 (eval "$ac_link") 2>conftest.er1
26476 grep -v '^ *+' conftest.er1 >conftest.err
26478 cat conftest.err >&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } && {
26481 test -z "$ac_c_werror_flag" ||
26482 test ! -s conftest.err
26483 } && test -s conftest$ac_exeext &&
26484 $as_test_x conftest$ac_exeext; then
26485 ac_cv_lib_xnet_socket=yes
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26490 ac_cv_lib_xnet_socket=no
26493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26494 conftest$ac_exeext conftest.$ac_ext
26495 LIBS=$ac_check_lib_save_LIBS
26497 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26498 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26499 if test $ac_cv_lib_xnet_socket = yes; then
26500 cat >>confdefs.h <<_ACEOF
26501 #define HAVE_LIBXNET 1
26504 LIBS="-lxnet $LIBS"
26509 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26510 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26511 if test "${ac_cv_lib_socket_socket+set}" = set; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26514 ac_check_lib_save_LIBS=$LIBS
26515 LIBS="-lsocket $LIBS"
26516 cat >conftest.$ac_ext <<_ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h. */
26523 /* Override any GCC internal prototype to avoid an error.
26524 Use char because int might match the return type of a GCC
26525 builtin and then its argument prototype would still apply. */
26538 rm -f conftest.$ac_objext conftest$ac_exeext
26539 if { (ac_try="$ac_link"
26540 case "(($ac_try" in
26541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542 *) ac_try_echo=$ac_try;;
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545 (eval "$ac_link") 2>conftest.er1
26547 grep -v '^ *+' conftest.er1 >conftest.err
26549 cat conftest.err >&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } && {
26552 test -z "$ac_c_werror_flag" ||
26553 test ! -s conftest.err
26554 } && test -s conftest$ac_exeext &&
26555 $as_test_x conftest$ac_exeext; then
26556 ac_cv_lib_socket_socket=yes
26558 echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26561 ac_cv_lib_socket_socket=no
26564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26565 conftest$ac_exeext conftest.$ac_ext
26566 LIBS=$ac_check_lib_save_LIBS
26568 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26569 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26570 if test $ac_cv_lib_socket_socket = yes; then
26571 cat >>confdefs.h <<_ACEOF
26572 #define HAVE_LIBSOCKET 1
26575 LIBS="-lsocket $LIBS"
26580 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26581 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26582 if test "${ac_cv_lib_inet_socket+set}" = set; then
26583 echo $ECHO_N "(cached) $ECHO_C" >&6
26585 ac_check_lib_save_LIBS=$LIBS
26586 LIBS="-linet $LIBS"
26587 cat >conftest.$ac_ext <<_ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h. */
26594 /* Override any GCC internal prototype to avoid an error.
26595 Use char because int might match the return type of a GCC
26596 builtin and then its argument prototype would still apply. */
26609 rm -f conftest.$ac_objext conftest$ac_exeext
26610 if { (ac_try="$ac_link"
26611 case "(($ac_try" in
26612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613 *) ac_try_echo=$ac_try;;
26615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616 (eval "$ac_link") 2>conftest.er1
26618 grep -v '^ *+' conftest.er1 >conftest.err
26620 cat conftest.err >&5
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); } && {
26623 test -z "$ac_c_werror_flag" ||
26624 test ! -s conftest.err
26625 } && test -s conftest$ac_exeext &&
26626 $as_test_x conftest$ac_exeext; then
26627 ac_cv_lib_inet_socket=yes
26629 echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26632 ac_cv_lib_inet_socket=no
26635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26636 conftest$ac_exeext conftest.$ac_ext
26637 LIBS=$ac_check_lib_save_LIBS
26639 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26640 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26641 if test $ac_cv_lib_inet_socket = yes; then
26642 cat >>confdefs.h <<_ACEOF
26643 #define HAVE_LIBINET 1
26646 LIBS="-linet $LIBS"
26656 # Check whether --with-tcp-wrappers was given.
26657 if test "${with_tcp_wrappers+set}" = set; then
26658 withval=$with_tcp_wrappers;
26659 if test "x$withval" != "xno" ; then
26661 LIBS="$saved_LIBS -lwrap"
26662 { echo "$as_me:$LINENO: checking for libwrap" >&5
26663 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26664 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26665 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26666 if test "${ac_cv_search_nanosleep+set}" = set; then
26667 echo $ECHO_N "(cached) $ECHO_C" >&6
26669 ac_func_search_save_LIBS=$LIBS
26670 cat >conftest.$ac_ext <<_ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h. */
26677 /* Override any GCC internal prototype to avoid an error.
26678 Use char because int might match the return type of a GCC
26679 builtin and then its argument prototype would still apply. */
26687 return nanosleep ();
26692 for ac_lib in '' rt; do
26693 if test -z "$ac_lib"; then
26694 ac_res="none required"
26697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26699 rm -f conftest.$ac_objext conftest$ac_exeext
26700 if { (ac_try="$ac_link"
26701 case "(($ac_try" in
26702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703 *) ac_try_echo=$ac_try;;
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706 (eval "$ac_link") 2>conftest.er1
26708 grep -v '^ *+' conftest.er1 >conftest.err
26710 cat conftest.err >&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } && {
26713 test -z "$ac_c_werror_flag" ||
26714 test ! -s conftest.err
26715 } && test -s conftest$ac_exeext &&
26716 $as_test_x conftest$ac_exeext; then
26717 ac_cv_search_nanosleep=$ac_res
26719 echo "$as_me: failed program was:" >&5
26720 sed 's/^/| /' conftest.$ac_ext >&5
26725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26727 if test "${ac_cv_search_nanosleep+set}" = set; then
26731 if test "${ac_cv_search_nanosleep+set}" = set; then
26734 ac_cv_search_nanosleep=no
26736 rm conftest.$ac_ext
26737 LIBS=$ac_func_search_save_LIBS
26739 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26740 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26741 ac_res=$ac_cv_search_nanosleep
26742 if test "$ac_res" != no; then
26743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26747 cat >conftest.$ac_ext <<_ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h. */
26754 #include <sys/types.h>
26756 int deny_severity = 0;
26757 int allow_severity = 0;
26758 struct request_info *req;
26770 rm -f conftest.$ac_objext conftest$ac_exeext
26771 if { (ac_try="$ac_link"
26772 case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777 (eval "$ac_link") 2>conftest.er1
26779 grep -v '^ *+' conftest.er1 >conftest.err
26781 cat conftest.err >&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } && {
26784 test -z "$ac_c_werror_flag" ||
26785 test ! -s conftest.err
26786 } && test -s conftest$ac_exeext &&
26787 $as_test_x conftest$ac_exeext; then
26789 { echo "$as_me:$LINENO: result: yes" >&5
26790 echo "${ECHO_T}yes" >&6; }
26792 cat >>confdefs.h <<\_ACEOF
26793 #define HAVE_LIBWRAP 1
26801 echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26805 LIBS="$saved_LIBS -lwrap -lnsl"
26806 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26807 cat >conftest.$ac_ext <<_ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h. */
26814 #include <sys/types.h>
26816 int deny_severity = 0;
26817 int allow_severity = 0;
26818 struct request_info *req;
26830 rm -f conftest.$ac_objext conftest$ac_exeext
26831 if { (ac_try="$ac_link"
26832 case "(($ac_try" in
26833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834 *) ac_try_echo=$ac_try;;
26836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26837 (eval "$ac_link") 2>conftest.er1
26839 grep -v '^ *+' conftest.er1 >conftest.err
26841 cat conftest.err >&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } && {
26844 test -z "$ac_c_werror_flag" ||
26845 test ! -s conftest.err
26846 } && test -s conftest$ac_exeext &&
26847 $as_test_x conftest$ac_exeext; then
26849 { echo "$as_me:$LINENO: result: yes" >&5
26850 echo "${ECHO_T}yes" >&6; }
26852 cat >>confdefs.h <<\_ACEOF
26853 #define HAVE_LIBWRAP 1
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26865 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26866 echo "$as_me: error: *** libwrap missing" >&2;}
26867 { (exit 1); exit 1; }; }
26872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26873 conftest$ac_exeext conftest.$ac_ext
26878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26879 conftest$ac_exeext conftest.$ac_ext
26886 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26887 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26889 # Check whether --with-openssl was given.
26890 if test "${with_openssl+set}" = set; then
26891 withval=$with_openssl;
26892 with_openssl_directory=${withval}
26898 if test "x$with_openssl_directory" != "xno"; then
26899 OPENSSL_LIBS="-lssl -lcrypto"
26902 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26904 # Make sure the $with_openssl_directory also makes sense
26906 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26907 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26908 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26912 saved_LIBS="${LIBS}"
26913 saved_CFLAGS="${CFLAGS}"
26914 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26915 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26917 cat >conftest.$ac_ext <<_ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h. */
26924 #include <openssl/ssl.h>
26930 CRYPTO_set_id_callback(NULL);
26936 rm -f conftest.$ac_objext conftest$ac_exeext
26937 if { (ac_try="$ac_link"
26938 case "(($ac_try" in
26939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26940 *) ac_try_echo=$ac_try;;
26942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26943 (eval "$ac_link") 2>conftest.er1
26945 grep -v '^ *+' conftest.er1 >conftest.err
26947 cat conftest.err >&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); } && {
26950 test -z "$ac_c_werror_flag" ||
26951 test ! -s conftest.err
26952 } && test -s conftest$ac_exeext &&
26953 $as_test_x conftest$ac_exeext; then
26956 support_crypto="yes"
26959 echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26969 conftest$ac_exeext conftest.$ac_ext
26971 cat >conftest.$ac_ext <<_ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26978 #include <openssl/evp.h>
26990 rm -f conftest.$ac_objext conftest$ac_exeext
26991 if { (ac_try="$ac_link"
26992 case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_link") 2>conftest.er1
26999 grep -v '^ *+' conftest.er1 >conftest.err
27001 cat conftest.err >&5
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); } && {
27004 test -z "$ac_c_werror_flag" ||
27005 test ! -s conftest.err
27006 } && test -s conftest$ac_exeext &&
27007 $as_test_x conftest$ac_exeext; then
27009 ac_cv_openssl_sha2="yes"
27012 echo "$as_me: failed program was:" >&5
27013 sed 's/^/| /' conftest.$ac_ext >&5
27016 ac_cv_openssl_sha2="no"
27021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27022 conftest$ac_exeext conftest.$ac_ext
27024 cat >conftest.$ac_ext <<_ACEOF
27027 cat confdefs.h >>conftest.$ac_ext
27028 cat >>conftest.$ac_ext <<_ACEOF
27029 /* end confdefs.h. */
27031 #include <openssl/evp.h>
27043 rm -f conftest.$ac_objext conftest$ac_exeext
27044 if { (ac_try="$ac_link"
27045 case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_link") 2>conftest.er1
27052 grep -v '^ *+' conftest.er1 >conftest.err
27054 cat conftest.err >&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } && {
27057 test -z "$ac_c_werror_flag" ||
27058 test ! -s conftest.err
27059 } && test -s conftest$ac_exeext &&
27060 $as_test_x conftest$ac_exeext; then
27062 ac_cv_openssl_export="no"
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27069 ac_cv_openssl_export="yes"
27074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27075 conftest$ac_exeext conftest.$ac_ext
27077 LIBS="${saved_LIBS}"
27078 CFLAGS="${saved_CFLAGS}"
27080 if test "$support_tls" = "yes"; then
27082 cat >>confdefs.h <<\_ACEOF
27083 #define HAVE_OPENSSL 1
27087 cat >>confdefs.h <<\_ACEOF
27092 cat >>confdefs.h <<\_ACEOF
27093 #define HAVE_CRYPTO 1
27098 if test "$ac_cv_openssl_sha2" = "yes"; then
27100 cat >>confdefs.h <<\_ACEOF
27101 #define HAVE_SHA2 1
27106 if test "$ac_cv_openssl_export" = "yes"; then
27108 cat >>confdefs.h <<\_ACEOF
27109 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27115 support_crypto="no"
27120 { echo "$as_me:$LINENO: result: $support_tls" >&5
27121 echo "${ECHO_T}$support_tls" >&6; }
27125 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27126 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27127 if test "${ac_cv_search_dlopen+set}" = set; then
27128 echo $ECHO_N "(cached) $ECHO_C" >&6
27130 ac_func_search_save_LIBS=$LIBS
27131 cat >conftest.$ac_ext <<_ACEOF
27134 cat confdefs.h >>conftest.$ac_ext
27135 cat >>conftest.$ac_ext <<_ACEOF
27136 /* end confdefs.h. */
27138 /* Override any GCC internal prototype to avoid an error.
27139 Use char because int might match the return type of a GCC
27140 builtin and then its argument prototype would still apply. */
27153 for ac_lib in '' dl; do
27154 if test -z "$ac_lib"; then
27155 ac_res="none required"
27158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27160 rm -f conftest.$ac_objext conftest$ac_exeext
27161 if { (ac_try="$ac_link"
27162 case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_link") 2>conftest.er1
27169 grep -v '^ *+' conftest.er1 >conftest.err
27171 cat conftest.err >&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); } && {
27174 test -z "$ac_c_werror_flag" ||
27175 test ! -s conftest.err
27176 } && test -s conftest$ac_exeext &&
27177 $as_test_x conftest$ac_exeext; then
27178 ac_cv_search_dlopen=$ac_res
27180 echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27188 if test "${ac_cv_search_dlopen+set}" = set; then
27192 if test "${ac_cv_search_dlopen+set}" = set; then
27195 ac_cv_search_dlopen=no
27197 rm conftest.$ac_ext
27198 LIBS=$ac_func_search_save_LIBS
27200 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27201 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27202 ac_res=$ac_cv_search_dlopen
27203 if test "$ac_res" != no; then
27204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27209 working_dir=`eval echo ${prefix}/var/bacula/working`
27211 # Check whether --with-working-dir was given.
27212 if test "${with_working_dir+set}" = set; then
27213 withval=$with_working_dir;
27214 if test "x$withval" != "xno" ; then
27215 working_dir=$withval
27226 # Check whether --with-archivedir was given.
27227 if test "${with_archivedir+set}" = set; then
27228 withval=$with_archivedir;
27229 if test "x$withval" != "xno" ; then
27230 archivedir=$withval
27239 scriptdir=`eval echo ${sysconfdir}`
27241 # Check whether --with-scriptdir was given.
27242 if test "${with_scriptdir+set}" = set; then
27243 withval=$with_scriptdir;
27244 if test "x$withval" != "xno" ; then
27254 # ------------------------------------------
27255 # Where to place plugindir (script files)
27256 # ------------------------------------------
27257 plugindir=`eval echo ${sysconfdir}`
27259 # Check whether --with-plugindir was given.
27260 if test "${with_plugindir+set}" = set; then
27261 withval=$with_plugindir;
27262 if test "x$withval" != "xno" ; then
27272 dump_email=root@localhost
27274 # Check whether --with-dump-email was given.
27275 if test "${with_dump_email+set}" = set; then
27276 withval=$with_dump_email;
27277 if test "x$withval" != "xno" ; then
27278 dump_email=$withval
27287 job_email=root@localhost
27289 # Check whether --with-job-email was given.
27290 if test "${with_job_email+set}" = set; then
27291 withval=$with_job_email;
27292 if test "x$withval" != "xno" ; then
27302 smtp_host=localhost
27304 # Check whether --with-smtp_host was given.
27305 if test "${with_smtp_host+set}" = set; then
27306 withval=$with_smtp_host;
27307 if test "x$withval" != "xno" ; then
27319 # Check whether --with-pid-dir was given.
27320 if test "${with_pid_dir+set}" = set; then
27321 withval=$with_pid_dir;
27322 if test "x$withval" != "xno" ; then
27330 cat >>confdefs.h <<_ACEOF
27331 #define _PATH_BACULA_PIDDIR "$piddir"
27336 subsysdir=/var/run/subsys
27337 if test -d /var/run/subsys; then
27338 subsysdir=/var/run/subsys
27339 elif test -d /var/lock/subsys; then
27340 subsysdir=/var/lock/subsys
27342 subsysdir=/var/run/subsys
27345 # Check whether --with-subsys-dir was given.
27346 if test "${with_subsys_dir+set}" = set; then
27347 withval=$with_subsys_dir;
27348 if test "x$withval" != "xno" ; then
27360 # Check whether --with-baseport was given.
27361 if test "${with_baseport+set}" = set; then
27362 withval=$with_baseport;
27363 if test "x$withval" != "xno" ; then
27372 dir_port=`expr $baseport`
27373 fd_port=`expr $baseport + 1`
27374 sd_port=`expr $fd_port + 1`
27382 # Check whether --with-dir-password was given.
27383 if test "${with_dir_password+set}" = set; then
27384 withval=$with_dir_password;
27385 if test "x$withval" != "xno" ; then
27386 dir_password=$withval
27393 if test "x$dir_password" = "x" ; then
27394 if test "x$OPENSSL" = "xnone" ; then
27395 key=`autoconf/randpass 33`
27397 key=`openssl rand -base64 33`
27404 # Check whether --with-fd-password was given.
27405 if test "${with_fd_password+set}" = set; then
27406 withval=$with_fd_password;
27407 if test "x$withval" != "xno" ; then
27408 fd_password=$withval
27415 if test "x$fd_password" = "x" ; then
27416 if test "x$OPENSSL" = "xnone" ; then
27417 key=`autoconf/randpass 37`
27419 key=`openssl rand -base64 33`
27426 # Check whether --with-sd-password was given.
27427 if test "${with_sd_password+set}" = set; then
27428 withval=$with_sd_password;
27429 if test "x$withval" != "xno" ; then
27430 sd_password=$withval
27437 if test "x$sd_password" = "x" ; then
27438 if test "x$OPENSSL" = "xnone" ; then
27439 key=`autoconf/randpass 41`
27441 key=`openssl rand -base64 33`
27448 # Check whether --with-mon-dir-password was given.
27449 if test "${with_mon_dir_password+set}" = set; then
27450 withval=$with_mon_dir_password;
27451 if test "x$withval" != "xno" ; then
27452 mon_dir_password=$withval
27459 if test "x$mon_dir_password" = "x" ; then
27460 if test "x$OPENSSL" = "xnone" ; then
27461 key=`autoconf/randpass 33`
27463 key=`openssl rand -base64 33`
27465 mon_dir_password=$key
27470 # Check whether --with-mon-fd-password was given.
27471 if test "${with_mon_fd_password+set}" = set; then
27472 withval=$with_mon_fd_password;
27473 if test "x$withval" != "xno" ; then
27474 mon_fd_password=$withval
27481 if test "x$mon_fd_password" = "x" ; then
27482 if test "x$OPENSSL" = "xnone" ; then
27483 key=`autoconf/randpass 37`
27485 key=`openssl rand -base64 33`
27487 mon_fd_password=$key
27492 # Check whether --with-mon-sd-password was given.
27493 if test "${with_mon_sd_password+set}" = set; then
27494 withval=$with_mon_sd_password;
27495 if test "x$withval" != "xno" ; then
27496 mon_sd_password=$withval
27503 if test "x$mon_sd_password" = "x" ; then
27504 if test "x$OPENSSL" = "xnone" ; then
27505 key=`autoconf/randpass 41`
27507 key=`openssl rand -base64 33`
27509 mon_sd_password=$key
27521 # Check whether --with-db_name was given.
27522 if test "${with_db_name+set}" = set; then
27523 withval=$with_db_name;
27524 if test "x$withval" != "x" ; then
27535 # Check whether --with-db_user was given.
27536 if test "${with_db_user+set}" = set; then
27537 withval=$with_db_user;
27538 if test "x$withval" != "x" ; then
27549 # Check whether --with-db_password was given.
27550 if test "${with_db_password+set}" = set; then
27551 withval=$with_db_password;
27552 if test "x$withval" != "x" ; then
27553 db_password=$withval
27563 # Check whether --with-db_port was given.
27564 if test "${with_db_port+set}" = set; then
27565 withval=$with_db_port;
27566 if test "x$withval" != "x" ; then
27576 # Handle users and groups for each daemon
27580 # Check whether --with-dir_user was given.
27581 if test "${with_dir_user+set}" = set; then
27582 withval=$with_dir_user;
27583 if test "x$withval" != "x" ; then
27593 # Check whether --with-dir_group was given.
27594 if test "${with_dir_group+set}" = set; then
27595 withval=$with_dir_group;
27596 if test "x$withval" != "x" ; then
27606 # Check whether --with-sd_user was given.
27607 if test "${with_sd_user+set}" = set; then
27608 withval=$with_sd_user;
27609 if test "x$withval" != "x" ; then
27619 # Check whether --with-sd_group was given.
27620 if test "${with_sd_group+set}" = set; then
27621 withval=$with_sd_group;
27622 if test "x$withval" != "x" ; then
27632 # Check whether --with-fd_user was given.
27633 if test "${with_fd_user+set}" = set; then
27634 withval=$with_fd_user;
27635 if test "x$withval" != "x" ; then
27645 # Check whether --with-fd_group was given.
27646 if test "${with_fd_group+set}" = set; then
27647 withval=$with_fd_group;
27648 if test "x$withval" != "x" ; then
27665 # Check whether --with-sbin-perm was given.
27666 if test "${with_sbin_perm+set}" = set; then
27667 withval=$with_sbin_perm;
27668 if test "x$withval" != "x" ; then
27681 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27682 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27684 # Check whether --with-postgresql was given.
27685 if test "${with_postgresql+set}" = set; then
27686 withval=$with_postgresql;
27687 if test "$withval" != "no"; then
27688 if test "$db_found" = "yes"; then
27689 { echo "$as_me:$LINENO: result: error" >&5
27690 echo "${ECHO_T}error" >&6; }
27691 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27692 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27693 { (exit 1); exit 1; }; };
27695 if test "$withval" = "yes"; then
27696 PG_CONFIG=`which pg_config`
27697 if test -n "$PG_CONFIG";then
27698 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27699 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27700 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27701 elif test -f /usr/local/include/libpq-fe.h; then
27702 POSTGRESQL_INCDIR=/usr/local/include
27703 if test -d /usr/local/lib64; then
27704 POSTGRESQL_LIBDIR=/usr/local/lib64
27706 POSTGRESQL_LIBDIR=/usr/local/lib
27708 POSTGRESQL_BINDIR=/usr/local/bin
27709 elif test -f /usr/include/libpq-fe.h; then
27710 POSTGRESQL_INCDIR=/usr/include
27711 if test -d /usr/lib64; then
27712 POSTGRESQL_LIBDIR=/usr/lib64
27714 POSTGRESQL_LIBDIR=/usr/lib
27716 POSTGRESQL_BINDIR=/usr/bin
27717 elif test -f /usr/include/pgsql/libpq-fe.h; then
27718 POSTGRESQL_INCDIR=/usr/include/pgsql
27719 if test -d /usr/lib64/pgsql; then
27720 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27722 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27724 POSTGRESQL_BINDIR=/usr/bin
27725 elif test -f /usr/include/postgresql/libpq-fe.h; then
27726 POSTGRESQL_INCDIR=/usr/include/postgresql
27727 if test -d /usr/lib64/postgresql; then
27728 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27730 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27732 POSTGRESQL_BINDIR=/usr/bin
27734 { echo "$as_me:$LINENO: result: no" >&5
27735 echo "${ECHO_T}no" >&6; }
27736 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27737 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27738 { (exit 1); exit 1; }; }
27740 elif test -f $withval/include/libpq-fe.h; then
27741 POSTGRESQL_INCDIR=$withval/include
27742 POSTGRESQL_LIBDIR=$withval/lib
27743 POSTGRESQL_BINDIR=$withval/bin
27744 elif test -f $withval/include/postgresql/libpq-fe.h; then
27745 POSTGRESQL_INCDIR=$withval/include/postgresql
27746 if test -d $withval/lib64; then
27747 POSTGRESQL_LIBDIR=$withval/lib64
27749 POSTGRESQL_LIBDIR=$withval/lib
27751 POSTGRESQL_BINDIR=$withval/bin
27753 { echo "$as_me:$LINENO: result: no" >&5
27754 echo "${ECHO_T}no" >&6; }
27755 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27756 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27757 { (exit 1); exit 1; }; }
27759 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27760 { echo "$as_me:$LINENO: checking for crypt" >&5
27761 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27762 if test "${ac_cv_func_crypt+set}" = set; then
27763 echo $ECHO_N "(cached) $ECHO_C" >&6
27765 cat >conftest.$ac_ext <<_ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h. */
27771 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27773 #define crypt innocuous_crypt
27775 /* System header to define __stub macros and hopefully few prototypes,
27776 which can conflict with char crypt (); below.
27777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27778 <limits.h> exists even on freestanding compilers. */
27781 # include <limits.h>
27783 # include <assert.h>
27788 /* Override any GCC internal prototype to avoid an error.
27789 Use char because int might match the return type of a GCC
27790 builtin and then its argument prototype would still apply. */
27795 /* The GNU C library defines this for functions which it implements
27796 to always fail with ENOSYS. Some functions are actually named
27797 something starting with __ and the normal name is an alias. */
27798 #if defined __stub_crypt || defined __stub___crypt
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (ac_try="$ac_link"
27812 case "(($ac_try" in
27813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814 *) ac_try_echo=$ac_try;;
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817 (eval "$ac_link") 2>conftest.er1
27819 grep -v '^ *+' conftest.er1 >conftest.err
27821 cat conftest.err >&5
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); } && {
27824 test -z "$ac_c_werror_flag" ||
27825 test ! -s conftest.err
27826 } && test -s conftest$ac_exeext &&
27827 $as_test_x conftest$ac_exeext; then
27828 ac_cv_func_crypt=yes
27830 echo "$as_me: failed program was:" >&5
27831 sed 's/^/| /' conftest.$ac_ext >&5
27833 ac_cv_func_crypt=no
27836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27837 conftest$ac_exeext conftest.$ac_ext
27839 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27840 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27841 if test $ac_cv_func_crypt = yes; then
27844 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27845 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27846 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27849 ac_check_lib_save_LIBS=$LIBS
27850 LIBS="-lcrypt $LIBS"
27851 cat >conftest.$ac_ext <<_ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h. */
27858 /* Override any GCC internal prototype to avoid an error.
27859 Use char because int might match the return type of a GCC
27860 builtin and then its argument prototype would still apply. */
27873 rm -f conftest.$ac_objext conftest$ac_exeext
27874 if { (ac_try="$ac_link"
27875 case "(($ac_try" in
27876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27877 *) ac_try_echo=$ac_try;;
27879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27880 (eval "$ac_link") 2>conftest.er1
27882 grep -v '^ *+' conftest.er1 >conftest.err
27884 cat conftest.err >&5
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); } && {
27887 test -z "$ac_c_werror_flag" ||
27888 test ! -s conftest.err
27889 } && test -s conftest$ac_exeext &&
27890 $as_test_x conftest$ac_exeext; then
27891 ac_cv_lib_crypt_crypt=yes
27893 echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27896 ac_cv_lib_crypt_crypt=no
27899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27900 conftest$ac_exeext conftest.$ac_ext
27901 LIBS=$ac_check_lib_save_LIBS
27903 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27904 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27905 if test $ac_cv_lib_crypt_crypt = yes; then
27906 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27911 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27912 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27913 SQL_BINDIR=$POSTGRESQL_BINDIR
27914 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27916 cat >>confdefs.h <<\_ACEOF
27917 #define HAVE_POSTGRESQL 1
27920 { echo "$as_me:$LINENO: result: yes" >&5
27921 echo "${ECHO_T}yes" >&6; }
27923 support_postgresql=yes
27927 { echo "$as_me:$LINENO: result: no" >&5
27928 echo "${ECHO_T}no" >&6; }
27933 { echo "$as_me:$LINENO: result: no" >&5
27934 echo "${ECHO_T}no" >&6; }
27946 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27947 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27949 # Check whether --with-mysql was given.
27950 if test "${with_mysql+set}" = set; then
27951 withval=$with_mysql;
27952 if test "$withval" != "no"; then
27953 if test "$withval" = "yes"; then
27954 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27955 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27956 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27957 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27958 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27960 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27962 MYSQL_BINDIR=/usr/local/mysql/bin
27963 elif test -f /usr/include/mysql/mysql.h; then
27964 MYSQL_INCDIR=/usr/include/mysql
27965 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27966 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27967 MYSQL_LIBDIR=/usr/lib64/mysql
27968 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27969 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27970 MYSQL_LIBDIR=/usr/lib/mysql
27972 MYSQL_LIBDIR=/usr/lib
27974 MYSQL_BINDIR=/usr/bin
27975 elif test -f /usr/include/mysql.h; then
27976 MYSQL_INCDIR=/usr/include
27977 if test -f /usr/lib64/libmysqlclient_r.a \
27978 -o -f /usr/lib64/libmysqlclient_r.so; then
27979 MYSQL_LIBDIR=/usr/lib64
27981 MYSQL_LIBDIR=/usr/lib
27983 MYSQL_BINDIR=/usr/bin
27984 elif test -f /usr/local/include/mysql/mysql.h; then
27985 MYSQL_INCDIR=/usr/local/include/mysql
27986 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27987 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27988 MYSQL_LIBDIR=/usr/local/lib64/mysql
27990 MYSQL_LIBDIR=/usr/local/lib/mysql
27992 MYSQL_BINDIR=/usr/local/bin
27993 elif test -f /usr/local/include/mysql.h; then
27994 MYSQL_INCDIR=/usr/local/include
27995 if test -f /usr/local/lib64/libmysqlclient_r.a \
27996 -o -f /usr/local/lib64/libmysqlclient_r.so; then
27997 MYSQL_LIBDIR=/usr/local/lib64
27999 MYSQL_LIBDIR=/usr/local/lib
28001 MYSQL_BINDIR=/usr/local/bin
28003 { echo "$as_me:$LINENO: result: no" >&5
28004 echo "${ECHO_T}no" >&6; }
28005 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28006 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28007 { (exit 1); exit 1; }; }
28010 if test -f $withval/include/mysql/mysql.h; then
28011 MYSQL_INCDIR=$withval/include/mysql
28012 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28013 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28014 MYSQL_LIBDIR=$withval/lib64/mysql
28016 MYSQL_LIBDIR=$withval/lib/mysql
28018 if test -f $withval/lib/libmysqlclient_r.so; then
28019 MYSQL_LIBDIR=$withval/lib
28022 MYSQL_BINDIR=$withval/bin
28023 elif test -f $withval/include/mysql.h; then
28024 MYSQL_INCDIR=$withval/include
28025 if test -f $withval/lib64/libmysqlclient_r.a \
28026 -o -f $withval/lib64/libmysqlclient_r.so; then
28027 MYSQL_LIBDIR=$withval/lib64
28029 MYSQL_LIBDIR=$withval/lib
28031 MYSQL_BINDIR=$withval/bin
28033 { echo "$as_me:$LINENO: result: no" >&5
28034 echo "${ECHO_T}no" >&6; }
28035 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28036 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28037 { (exit 1); exit 1; }; }
28040 SQL_INCLUDE=-I$MYSQL_INCDIR
28041 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28042 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28043 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28044 cat >>confdefs.h <<\_ACEOF
28045 #define HAVE_THREAD_SAFE_MYSQL 1
28049 SQL_BINDIR=$MYSQL_BINDIR
28050 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28052 cat >>confdefs.h <<\_ACEOF
28053 #define HAVE_MYSQL 1
28056 { echo "$as_me:$LINENO: result: yes" >&5
28057 echo "${ECHO_T}yes" >&6; }
28064 { echo "$as_me:$LINENO: result: no" >&5
28065 echo "${ECHO_T}no" >&6; }
28073 # Check whether --with-embedded-mysql was given.
28074 if test "${with_embedded_mysql+set}" = set; then
28075 withval=$with_embedded_mysql;
28076 if test "$withval" != "no"; then
28077 if test "$withval" = "yes"; then
28078 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28079 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28080 if test -d /usr/local/mysql/lib64/mysql; then
28081 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28083 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28085 MYSQL_BINDIR=/usr/local/mysql/bin
28086 elif test -f /usr/include/mysql/mysql.h; then
28087 MYSQL_INCDIR=/usr/include/mysql
28088 if test -d /usr/lib64/mysql; then
28089 MYSQL_LIBDIR=/usr/lib64/mysql
28091 MYSQL_LIBDIR=/usr/lib/mysql
28093 MYSQL_BINDIR=/usr/bin
28094 elif test -f /usr/include/mysql.h; then
28095 MYSQL_INCDIR=/usr/include
28096 if test -d /usr/lib64; then
28097 MYSQL_LIBDIR=/usr/lib64
28099 MYSQL_LIBDIR=/usr/lib
28101 MYSQL_BINDIR=/usr/bin
28102 elif test -f /usr/local/include/mysql/mysql.h; then
28103 MYSQL_INCDIR=/usr/local/include/mysql
28104 if test -d /usr/local/lib64/mysql; then
28105 MYSQL_LIBDIR=/usr/local/lib64/mysql
28107 MYSQL_LIBDIR=/usr/local/lib/mysql
28109 MYSQL_BINDIR=/usr/local/bin
28110 elif test -f /usr/local/include/mysql.h; then
28111 MYSQL_INCDIR=/usr/local/include
28112 if test -d /usr/local/lib64; then
28113 MYSQL_LIBDIR=/usr/local/lib64
28115 MYSQL_LIBDIR=/usr/local/lib
28117 MYSQL_BINDIR=/usr/local/bin
28119 { echo "$as_me:$LINENO: result: no" >&5
28120 echo "${ECHO_T}no" >&6; }
28121 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28122 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28123 { (exit 1); exit 1; }; }
28126 if test -f $withval/include/mysql/mysql.h; then
28127 MYSQL_INCDIR=$withval/include/mysql
28128 if test -d $withval/lib64/mysql; then
28129 MYSQL_LIBDIR=$withval/lib64/mysql
28131 MYSQL_LIBDIR=$withval/lib/mysql
28133 MYSQL_BINDIR=$withval/bin
28134 elif test -f $withval/include/mysql.h; then
28135 MYSQL_INCDIR=$withval/include
28136 if test -d $withval/lib64; then
28137 MYSQL_LIBDIR=$withval/lib64
28139 MYSQL_LIBDIR=$withval/lib
28141 MYSQL_BINDIR=$withval/bin
28143 { echo "$as_me:$LINENO: result: no" >&5
28144 echo "${ECHO_T}no" >&6; }
28145 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28146 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28147 { (exit 1); exit 1; }; }
28150 SQL_INCLUDE=-I$MYSQL_INCDIR
28151 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28152 SQL_BINDIR=$MYSQL_BINDIR
28153 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28155 cat >>confdefs.h <<\_ACEOF
28156 #define HAVE_MYSQL 1
28159 cat >>confdefs.h <<\_ACEOF
28160 #define HAVE_EMBEDDED_MYSQL 1
28163 { echo "$as_me:$LINENO: result: yes" >&5
28164 echo "${ECHO_T}yes" >&6; }
28171 { echo "$as_me:$LINENO: result: no" >&5
28172 echo "${ECHO_T}no" >&6; }
28188 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28189 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28191 # Check whether --with-sqlite3 was given.
28192 if test "${with_sqlite3+set}" = set; then
28193 withval=$with_sqlite3;
28194 if test "$withval" != "no"; then
28195 if test "$withval" = "yes"; then
28196 if test -f /usr/local/include/sqlite3.h; then
28197 SQLITE_INCDIR=/usr/local/include
28198 if test -d /usr/local/lib64; then
28199 SQLITE_LIBDIR=/usr/local/lib64
28201 SQLITE_LIBDIR=/usr/local/lib
28203 SQLITE_BINDIR=/usr/local/bin
28204 elif test -f /usr/include/sqlite3.h; then
28205 SQLITE_INCDIR=/usr/include
28206 if test -d /usr/lib64; then
28207 SQLITE_LIBDIR=/usr/lib64
28209 SQLITE_LIBDIR=/usr/lib
28211 SQLITE_BINDIR=/usr/bin
28212 elif test -f $prefix/include/sqlite3.h; then
28213 SQLITE_INCDIR=$prefix/include
28214 if test -d $prefix/lib64; then
28215 SQLITE_LIBDIR=$prefix/lib64
28217 SQLITE_LIBDIR=$prefix/lib
28219 SQLITE_BINDIR=$prefix/bin
28221 { echo "$as_me:$LINENO: result: no" >&5
28222 echo "${ECHO_T}no" >&6; }
28223 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28224 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28225 { (exit 1); exit 1; }; }
28228 if test -f $withval/sqlite3.h; then
28229 SQLITE_INCDIR=$withval
28230 SQLITE_LIBDIR=$withval
28231 SQLITE_BINDIR=$withval
28232 elif test -f $withval/include/sqlite3.h; then
28233 SQLITE_INCDIR=$withval/include
28234 if test -d $withval/lib64; then
28235 SQLITE_LIBDIR=$withval/lib64
28237 SQLITE_LIBDIR=$withval/lib
28239 SQLITE_BINDIR=$withval/bin
28241 { echo "$as_me:$LINENO: result: no" >&5
28242 echo "${ECHO_T}no" >&6; }
28243 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28244 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28245 { (exit 1); exit 1; }; }
28248 SQL_INCLUDE=-I$SQLITE_INCDIR
28249 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28250 SQL_BINDIR=$SQLITE_BINDIR
28251 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28253 cat >>confdefs.h <<\_ACEOF
28254 #define HAVE_SQLITE3 1
28257 { echo "$as_me:$LINENO: result: yes" >&5
28258 echo "${ECHO_T}yes" >&6; }
28260 support_sqlite3=yes
28265 { echo "$as_me:$LINENO: result: no" >&5
28266 echo "${ECHO_T}no" >&6; }
28271 { echo "$as_me:$LINENO: result: no" >&5
28272 echo "${ECHO_T}no" >&6; }
28284 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28285 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28287 # Check whether --with-sqlite was given.
28288 if test "${with_sqlite+set}" = set; then
28289 withval=$with_sqlite;
28290 if test "$withval" != "no"; then
28291 if test "$withval" = "yes"; then
28292 if test -f /usr/local/include/sqlite.h; then
28293 SQLITE_INCDIR=/usr/local/include
28294 if test -d /usr/local/lib64; then
28295 SQLITE_LIBDIR=/usr/local/lib64
28297 SQLITE_LIBDIR=/usr/local/lib
28299 SQLITE_BINDIR=/usr/local/bin
28300 elif test -f /usr/include/sqlite.h; then
28301 SQLITE_INCDIR=/usr/include
28302 if test -d /usr/lib64; then
28303 SQLITE_LIBDIR=/usr/lib64
28305 SQLITE_LIBDIR=/usr/lib
28307 SQLITE_BINDIR=/usr/bin
28308 elif test -f $prefix/include/sqlite.h; then
28309 SQLITE_INCDIR=$prefix/include
28310 if test -d $prefix/lib64; then
28311 SQLITE_LIBDIR=$prefix/lib64
28313 SQLITE_LIBDIR=$prefix/lib
28315 SQLITE_BINDIR=$prefix/bin
28317 { echo "$as_me:$LINENO: result: no" >&5
28318 echo "${ECHO_T}no" >&6; }
28319 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28320 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28321 { (exit 1); exit 1; }; }
28324 if test -f $withval/sqlite.h; then
28325 SQLITE_INCDIR=$withval
28326 SQLITE_LIBDIR=$withval
28327 SQLITE_BINDIR=$withval
28328 elif test -f $withval/include/sqlite.h; then
28329 SQLITE_INCDIR=$withval/include
28330 if test -d $withval/lib64; then
28331 SQLITE_LIBDIR=$withval/lib64
28333 SQLITE_LIBDIR=$withval/lib
28335 SQLITE_BINDIR=$withval/bin
28337 { echo "$as_me:$LINENO: result: no" >&5
28338 echo "${ECHO_T}no" >&6; }
28339 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28340 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28341 { (exit 1); exit 1; }; }
28344 SQL_INCLUDE=-I$SQLITE_INCDIR
28345 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28346 SQL_BINDIR=$SQLITE_BINDIR
28347 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28349 cat >>confdefs.h <<\_ACEOF
28350 #define HAVE_SQLITE 1
28353 { echo "$as_me:$LINENO: result: yes" >&5
28354 echo "${ECHO_T}yes" >&6; }
28361 { echo "$as_me:$LINENO: result: no" >&5
28362 echo "${ECHO_T}no" >&6; }
28367 { echo "$as_me:$LINENO: result: no" >&5
28368 echo "${ECHO_T}no" >&6; }
28380 { echo "$as_me:$LINENO: checking for DBI support" >&5
28381 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28383 # Check whether --with-dbi was given.
28384 if test "${with_dbi+set}" = set; then
28386 if test "$withval" != "no"; then
28387 if test "$withval" = "yes"; then
28388 if test -f /usr/local/include/dbi/dbi.h; then
28389 DBI_INCDIR=/usr/local/dbi/include
28390 if test -d /usr/local/lib64; then
28391 DBI_LIBDIR=/usr/local/lib64
28393 DBI_LIBDIR=/usr/local/lib
28395 DBI_BINDIR=/usr/local/bin
28396 elif test -f /usr/include/dbi/dbi.h; then
28397 DBI_INCDIR=/usr/include
28398 if test -d /usr/lib64; then
28399 DBI_LIBDIR=/usr/lib64
28401 DBI_LIBDIR=/usr/lib
28403 DBI_BINDIR=/usr/bin
28404 elif test -f $prefix/include/dbi/dbi.h; then
28405 DBI_INCDIR=$prefix/include
28406 if test -d $prefix/lib64; then
28407 DBI_LIBDIR=$prefix/lib64
28409 DBI_LIBDIR=$prefix/lib
28411 DBI_BINDIR=$prefix/bin
28413 { echo "$as_me:$LINENO: result: no" >&5
28414 echo "${ECHO_T}no" >&6; }
28415 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28416 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28417 { (exit 1); exit 1; }; }
28419 if test -d /usr/local/lib/dbd; then
28420 DRIVERDIR=/usr/local/lib/dbd
28421 if test -d /usr/local/lib64/dbd; then
28422 DRIVERDIR=/usr/local/lib64/dbd
28424 DRIVERDIR=/usr/local/lib/dbd
28426 elif test -d /usr/lib/dbd; then
28427 DRIVERDIR=/usr/lib/dbd
28428 if test -d /usr/lib64/dbd; then
28429 DRIVERDIR=/usr/lib64/dbd
28431 DRIVERDIR=/usr/lib/dbd
28433 elif test -d $prefix/lib/dbd; then
28434 if test -d $prefix/lib64/dbd; then
28435 DRIVERDIR=$prefix/lib64/dbd
28437 DRIVERDIR=$prefix/lib/dbd
28440 { echo "$as_me:$LINENO: result: no" >&5
28441 echo "${ECHO_T}no" >&6; }
28442 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28443 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28444 { (exit 1); exit 1; }; }
28447 if test -f $withval/dbi.h; then
28448 DBI_INCDIR=$withval
28449 DBI_LIBDIR=$withval
28450 DBI_BINDIR=$withval
28451 elif test -f $withval/include/dbi/dbi.h; then
28452 DBI_INCDIR=$withval/include
28453 if test -d $withval/lib64; then
28454 DBI_LIBDIR=$withval/lib64
28456 DBI_LIBDIR=$withval/lib
28458 DBI_BINDIR=$withval/bin
28460 { echo "$as_me:$LINENO: result: no" >&5
28461 echo "${ECHO_T}no" >&6; }
28462 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28463 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28464 { (exit 1); exit 1; }; }
28466 if test -d $withval/dbd; then
28467 DRIVERDIR=$withval/dbd
28468 elif test -d $withval/lib/; then
28469 if test -d $withval/lib64/dbd; then
28470 DRIVERDIR=$withval/lib64/dbd
28472 DRIVERDIR=$withval/lib/dbd
28475 { echo "$as_me:$LINENO: result: no" >&5
28476 echo "${ECHO_T}no" >&6; }
28477 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28478 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28479 { (exit 1); exit 1; }; }
28482 SQL_INCLUDE=-I$DBI_INCDIR
28483 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28484 SQL_BINDIR=$DBI_BINDIR
28485 SQL_LIB=$DBI_LIBDIR/libdbi.a
28486 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28489 cat >>confdefs.h <<\_ACEOF
28493 { echo "$as_me:$LINENO: result: yes" >&5
28494 echo "${ECHO_T}yes" >&6; }
28502 { echo "$as_me:$LINENO: result: no" >&5
28503 echo "${ECHO_T}no" >&6; }
28508 { echo "$as_me:$LINENO: result: no" >&5
28509 echo "${ECHO_T}no" >&6; }
28524 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28525 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28527 # Check whether --with-dbi-driver was given.
28528 if test "${with_dbi_driver+set}" = set; then
28529 withval=$with_dbi_driver;
28530 if test "$withval" != "no"; then
28534 if test -f /usr/local/mysql/bin/mysql; then
28535 SQL_BINDIR=/usr/local/mysql/bin
28536 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28537 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28538 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28540 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28542 elif test -f /usr/bin/mysql; then
28543 SQL_BINDIR=/usr/bin
28544 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28545 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28546 SQL_LIBDIR=/usr/lib64/mysql
28547 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28548 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28549 SQL_LIBDIR=/usr/lib/mysql
28551 SQL_LIBDIR=/usr/lib
28553 elif test -f /usr/local/bin/mysql; then
28554 SQL_BINDIR=/usr/local/bin
28555 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28556 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28557 SQL_LIBDIR=/usr/local/lib64/mysql
28558 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28559 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28560 SQL_LIBDIR=/usr/local/lib/mysql
28562 SQL_LIBDIR=/usr/local/lib
28564 elif test -f $withval/bin/mysql; then
28565 SQL_BINDIR=$withval/bin
28566 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28567 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28568 SQL_LIBDIR=$withval/lib64/mysql
28569 elif test -f $withval/lib64/libmysqlclient_r.a \
28570 -o -f $withval/lib64/libmysqlclient_r.so; then
28571 SQL_LIBDIR=$withval/lib64
28572 elif test -f $withval/lib/libmysqlclient_r.a \
28573 -o -f $withval/lib/libmysqlclient_r.so; then
28574 SQL_LIBDIR=$withval/lib/
28576 SQL_LIBDIR=$withval/lib/mysql
28579 { echo "$as_me:$LINENO: result: no" >&5
28580 echo "${ECHO_T}no" >&6; }
28581 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28582 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28583 { (exit 1); exit 1; }; }
28585 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28588 db_prog="postgresql"
28589 PG_CONFIG=`which pg_config`
28590 if test -n "$PG_CONFIG"; then
28591 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28592 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28593 elif test -f /usr/local/bin/psql; then
28594 SQL_BINDIR=/usr/local/bin
28595 if test -d /usr/local/lib64; then
28596 SQL_LIBDIR=/usr/local/lib64
28598 SQL_LIBDIR=/usr/local/lib
28600 elif test -f /usr/bin/psql; then
28601 SQL_BINDIR=/usr/local/bin
28602 if test -d /usr/lib64/postgresql; then
28603 SQL_LIBDIR=/usr/lib64/postgresql
28604 elif test -d /usr/lib/postgresql; then
28605 SQL_LIBDIR=/usr/lib/postgresql
28606 elif test -d /usr/lib64; then
28607 SQL_LIBDIR=/usr/lib64
28609 SQL_LIBDIR=/usr/lib
28611 elif test -f $withval/bin/psql; then
28612 SQL_BINDIR=$withval/bin
28613 if test -d $withval/lib64; then
28614 SQL_LIBDIR=$withval/lib64
28616 SQL_LIBDIR=$withval/lib
28619 { echo "$as_me:$LINENO: result: no" >&5
28620 echo "${ECHO_T}no" >&6; }
28621 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28622 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28623 { (exit 1); exit 1; }; }
28625 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28629 if test -f /usr/local/bin/sqlite; then
28630 SQL_BINDIR=/usr/local/bin
28631 if test -d /usr/local/lib64; then
28632 SQL_LIBDIR=/usr/local/lib64
28634 SQL_LIBDIR=/usr/local/lib
28636 elif test -f /usr/bin/sqlite; then
28637 SQL_BINDIR=/usr/bin
28638 if test -d /usr/lib64; then
28639 SQL_LIBDIR=/usr/lib64
28641 SQL_LIBDIR=/usr/lib
28643 elif test -f $withval/bin/sqlite; then
28644 SQL_BINDIR=$withval/bin
28645 if test -d $withval/lib64; then
28646 SQL_LIBDIR=$withval/lib64
28648 SQL_LIBDIR=$withval/lib
28651 { echo "$as_me:$LINENO: result: no" >&5
28652 echo "${ECHO_T}no" >&6; }
28653 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28654 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28655 { (exit 1); exit 1; }; }
28657 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28661 if test -f /usr/local/bin/sqlite3; then
28662 SQL_BINDIR=/usr/local/bin
28663 if test -d /usr/local/lib64; then
28664 SQL_LIBDIR=/usr/local/lib64
28666 SQL_LIBDIR=/usr/local/lib
28668 elif test -f /usr/bin/sqlite3; then
28669 SQL_BINDIR=/usr/bin
28670 if test -d /usr/lib64; then
28671 SQL_LIBDIR=/usr/lib64
28673 SQL_LIBDIR=/usr/lib
28675 elif test -f $withval/bin/sqlite3; then
28676 SQL_BINDIR=$withval/bin
28677 if test -d $withval/lib64; then
28678 SQL_LIBDIR=$withval/lib64
28680 SQL_LIBDIR=$withval/lib
28683 { echo "$as_me:$LINENO: result: no" >&5
28684 echo "${ECHO_T}no" >&6; }
28685 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28686 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28687 { (exit 1); exit 1; }; }
28689 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28692 { echo "$as_me:$LINENO: result: no" >&5
28693 echo "${ECHO_T}no" >&6; }
28694 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28695 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28696 { (exit 1); exit 1; }; }
28700 { echo "$as_me:$LINENO: result: yes" >&5
28701 echo "${ECHO_T}yes" >&6; }
28704 { echo "$as_me:$LINENO: result: no" >&5
28705 echo "${ECHO_T}no" >&6; }
28710 { echo "$as_me:$LINENO: result: no" >&5
28711 echo "${ECHO_T}no" >&6; }
28724 support_batch_insert=no
28725 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28727 if test $pkg = 0; then
28728 support_batch_insert=yes
28729 # Check whether --enable-batch-insert was given.
28730 if test "${enable_batch_insert+set}" = set; then
28731 enableval=$enable_batch_insert;
28732 if test x$enableval = xno; then
28733 support_batch_insert=no
28735 support_batch_insert=yes
28743 if test x$DB_TYPE = xpostgresql; then
28744 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28746 if test $pkg != 0; then
28747 support_batch_insert=no
28751 if test x$DB_TYPE = xdbi; then
28755 if test $DB_PROG = postgresql; then
28756 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28760 if test $DB_PROG = mysql; then
28761 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28765 if test $DB_PROG = sqlite3; then
28766 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28770 if test $pkg = 0; then
28771 # Check whether --enable-batch-insert was given.
28772 if test "${enable_batch_insert+set}" = set; then
28773 enableval=$enable_batch_insert;
28774 if test x$enableval = xno; then
28775 support_batch_insert=no
28777 support_batch_insert=yes
28790 if test $support_batch_insert = yes ; then
28792 cat >>confdefs.h <<\_ACEOF
28793 #define HAVE_BATCH_FILE_INSERT 1
28798 cat >>confdefs.h <<\_ACEOF
28799 #define PROTOTYPES 1
28803 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28804 if test -z "$CCOPTS"; then
28805 CCOPTS='-g -O2 -Wall'
28812 largefile_support="no"
28814 # Check whether --enable-largefile was given.
28815 if test "${enable_largefile+set}" = set; then
28816 enableval=$enable_largefile;
28819 if test "$enable_largefile" != no; then
28820 if test -n "$ac_tool_prefix"; then
28821 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28822 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28825 if test "${ac_cv_prog_GETCONF+set}" = set; then
28826 echo $ECHO_N "(cached) $ECHO_C" >&6
28828 if test -n "$GETCONF"; then
28829 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28832 for as_dir in $PATH
28835 test -z "$as_dir" && as_dir=.
28836 for ac_exec_ext in '' $ac_executable_extensions; do
28837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28838 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28848 GETCONF=$ac_cv_prog_GETCONF
28849 if test -n "$GETCONF"; then
28850 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28851 echo "${ECHO_T}$GETCONF" >&6; }
28853 { echo "$as_me:$LINENO: result: no" >&5
28854 echo "${ECHO_T}no" >&6; }
28859 if test -z "$ac_cv_prog_GETCONF"; then
28860 ac_ct_GETCONF=$GETCONF
28861 # Extract the first word of "getconf", so it can be a program name with args.
28862 set dummy getconf; ac_word=$2
28863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28865 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28866 echo $ECHO_N "(cached) $ECHO_C" >&6
28868 if test -n "$ac_ct_GETCONF"; then
28869 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28872 for as_dir in $PATH
28875 test -z "$as_dir" && as_dir=.
28876 for ac_exec_ext in '' $ac_executable_extensions; do
28877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28878 ac_cv_prog_ac_ct_GETCONF="getconf"
28879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28888 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28889 if test -n "$ac_ct_GETCONF"; then
28890 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28891 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28893 { echo "$as_me:$LINENO: result: no" >&5
28894 echo "${ECHO_T}no" >&6; }
28897 if test "x$ac_ct_GETCONF" = x; then
28900 case $cross_compiling:$ac_tool_warned in
28902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28903 whose name does not start with the host triplet. If you think this
28904 configuration is useful to you, please write to autoconf@gnu.org." >&5
28905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28906 whose name does not start with the host triplet. If you think this
28907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28908 ac_tool_warned=yes ;;
28910 GETCONF=$ac_ct_GETCONF
28913 GETCONF="$ac_cv_prog_GETCONF"
28916 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28917 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28918 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28919 echo $ECHO_N "(cached) $ECHO_C" >&6
28921 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28922 ac_cv_sys_largefile_CFLAGS=no
28924 # IRIX 6.2 and later require cc -n32.
28925 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28926 if test "$GCC" != yes; then
28927 ac_cv_sys_largefile_CFLAGS=-n32
28930 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28931 cat >conftest.$ac_ext <<_ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h. */
28946 rm -f conftest.$ac_objext conftest$ac_exeext
28947 if { (ac_try="$ac_link"
28948 case "(($ac_try" in
28949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950 *) ac_try_echo=$ac_try;;
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953 (eval "$ac_link") 2>conftest.er1
28955 grep -v '^ *+' conftest.er1 >conftest.err
28957 cat conftest.err >&5
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); } && {
28960 test -z "$ac_c_werror_flag" ||
28961 test ! -s conftest.err
28962 } && test -s conftest$ac_exeext &&
28963 $as_test_x conftest$ac_exeext; then
28966 echo "$as_me: failed program was:" >&5
28967 sed 's/^/| /' conftest.$ac_ext >&5
28969 ac_cv_sys_largefile_CFLAGS=no
28972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28973 conftest$ac_exeext conftest.$ac_ext
28978 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28979 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28980 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28981 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28982 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28983 echo $ECHO_N "(cached) $ECHO_C" >&6
28985 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28986 ac_cv_sys_largefile_LDFLAGS=no
28990 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28991 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28992 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28993 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28994 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28995 echo $ECHO_N "(cached) $ECHO_C" >&6
28997 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
28998 ac_cv_sys_largefile_LIBS=no
29002 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29003 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29005 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29008 -D_FILE_OFFSET_BITS=*) ;;
29009 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29010 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29015 case "$CPPFLAGS" in
29016 '') CPPFLAGS="$ac_flag" ;;
29017 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29025 '') CFLAGS="$ac_flag" ;;
29026 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29031 case "$ac_cv_sys_largefile_LDFLAGS" in
29035 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29036 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29039 case "$ac_cv_sys_largefile_LIBS" in
29043 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29044 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29047 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29048 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29049 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 ac_cv_sys_file_offset_bits=no
29053 ac_cv_sys_file_offset_bits=64
29054 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29056 -D_FILE_OFFSET_BITS)
29057 ac_cv_sys_file_offset_bits=1 ;;
29058 -D_FILE_OFFSET_BITS=*)
29059 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29064 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29065 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29066 if test "$ac_cv_sys_file_offset_bits" != no; then
29068 cat >>confdefs.h <<_ACEOF
29069 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29073 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29074 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29075 if test "${ac_cv_sys_largefile_source+set}" = set; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29078 ac_cv_sys_largefile_source=no
29079 ac_cv_sys_largefile_source=1
29080 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29082 -D_LARGEFILE_SOURCE)
29083 ac_cv_sys_largefile_source=1 ;;
29084 -D_LARGEFILE_SOURCE=*)
29085 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29090 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29091 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29092 if test "$ac_cv_sys_largefile_source" != no; then
29094 cat >>confdefs.h <<_ACEOF
29095 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29099 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29100 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29101 if test "${ac_cv_sys_large_files+set}" = set; then
29102 echo $ECHO_N "(cached) $ECHO_C" >&6
29104 ac_cv_sys_large_files=no
29105 ac_cv_sys_large_files=1
29106 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29109 ac_cv_sys_large_files=1 ;;
29111 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29116 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29117 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29118 if test "$ac_cv_sys_large_files" != no; then
29120 cat >>confdefs.h <<_ACEOF
29121 #define _LARGE_FILES $ac_cv_sys_large_files
29128 { echo "$as_me:$LINENO: checking for X" >&5
29129 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29132 # Check whether --with-x was given.
29133 if test "${with_x+set}" = set; then
29137 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29138 if test "x$with_x" = xno; then
29139 # The user explicitly disabled X.
29142 case $x_includes,$x_libraries in #(
29143 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29144 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29145 { (exit 1); exit 1; }; };; #(
29146 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 # One or both of the vars are not set, and there is no cached value.
29150 ac_x_includes=no ac_x_libraries=no
29151 rm -f -r conftest.dir
29152 if mkdir conftest.dir; then
29154 cat >Imakefile <<'_ACEOF'
29156 @echo incroot='${INCROOT}'
29158 @echo usrlibdir='${USRLIBDIR}'
29160 @echo libdir='${LIBDIR}'
29162 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29163 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29164 for ac_var in incroot usrlibdir libdir; do
29165 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29167 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29168 for ac_extension in a so sl; do
29169 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29170 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29171 ac_im_usrlibdir=$ac_im_libdir; break
29174 # Screen out bogus values from the imake configuration. They are
29175 # bogus both because they are the default anyway, and because
29176 # using them would break gcc on systems where it needs fixed includes.
29177 case $ac_im_incroot in
29178 /usr/include) ac_x_includes= ;;
29179 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29181 case $ac_im_usrlibdir in
29182 /usr/lib | /lib) ;;
29183 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29187 rm -f -r conftest.dir
29190 # Standard set of common directories for X headers.
29191 # Check X11 before X11Rn because it is often a symlink to the current release.
29203 /usr/local/X11/include
29204 /usr/local/X11R6/include
29205 /usr/local/X11R5/include
29206 /usr/local/X11R4/include
29208 /usr/local/include/X11
29209 /usr/local/include/X11R6
29210 /usr/local/include/X11R5
29211 /usr/local/include/X11R4
29215 /usr/XFree86/include/X11
29219 /usr/unsupported/include
29220 /usr/athena/include
29221 /usr/local/x11r5/include
29222 /usr/lpp/Xamples/include
29224 /usr/openwin/include
29225 /usr/openwin/share/include'
29227 if test "$ac_x_includes" = no; then
29228 # Guess where to find include files, by looking for Xlib.h.
29229 # First, try using that file with no special directory specified.
29230 cat >conftest.$ac_ext <<_ACEOF
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h. */
29236 #include <X11/Xlib.h>
29238 if { (ac_try="$ac_cpp conftest.$ac_ext"
29239 case "(($ac_try" in
29240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241 *) ac_try_echo=$ac_try;;
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29246 grep -v '^ *+' conftest.er1 >conftest.err
29248 cat conftest.err >&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } >/dev/null && {
29251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29252 test ! -s conftest.err
29254 # We can compile using X headers with no special include directory.
29257 echo "$as_me: failed program was:" >&5
29258 sed 's/^/| /' conftest.$ac_ext >&5
29260 for ac_dir in $ac_x_header_dirs; do
29261 if test -r "$ac_dir/X11/Xlib.h"; then
29262 ac_x_includes=$ac_dir
29268 rm -f conftest.err conftest.$ac_ext
29269 fi # $ac_x_includes = no
29271 if test "$ac_x_libraries" = no; then
29272 # Check for the libraries.
29273 # See if we find them without any special options.
29274 # Don't add to $LIBS permanently.
29277 cat >conftest.$ac_ext <<_ACEOF
29280 cat confdefs.h >>conftest.$ac_ext
29281 cat >>conftest.$ac_ext <<_ACEOF
29282 /* end confdefs.h. */
29283 #include <X11/Xlib.h>
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299 (eval "$ac_link") 2>conftest.er1
29301 grep -v '^ *+' conftest.er1 >conftest.err
29303 cat conftest.err >&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } && {
29306 test -z "$ac_c_werror_flag" ||
29307 test ! -s conftest.err
29308 } && test -s conftest$ac_exeext &&
29309 $as_test_x conftest$ac_exeext; then
29311 # We can link X programs with no special library path.
29314 echo "$as_me: failed program was:" >&5
29315 sed 's/^/| /' conftest.$ac_ext >&5
29318 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29320 # Don't even attempt the hair of trying to link an X program!
29321 for ac_extension in a so sl; do
29322 if test -r "$ac_dir/libX11.$ac_extension"; then
29323 ac_x_libraries=$ac_dir
29330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29331 conftest$ac_exeext conftest.$ac_ext
29332 fi # $ac_x_libraries = no
29334 case $ac_x_includes,$ac_x_libraries in #(
29335 no,* | *,no | *\'*)
29336 # Didn't find X, or a directory has "'" in its name.
29337 ac_cv_have_x="have_x=no";; #(
29339 # Record where we found X for the cache.
29340 ac_cv_have_x="have_x=yes\
29341 ac_x_includes='$ac_x_includes'\
29342 ac_x_libraries='$ac_x_libraries'"
29348 eval "$ac_cv_have_x"
29351 if test "$have_x" != yes; then
29352 { echo "$as_me:$LINENO: result: $have_x" >&5
29353 echo "${ECHO_T}$have_x" >&6; }
29356 # If each of the values was on the command line, it overrides each guess.
29357 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29358 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29359 # Update the cache value to reflect the command line values.
29360 ac_cv_have_x="have_x=yes\
29361 ac_x_includes='$x_includes'\
29362 ac_x_libraries='$x_libraries'"
29363 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29364 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29367 if test "$no_x" = yes; then
29368 # Not all programs may use this symbol, but it does not hurt to define it.
29370 cat >>confdefs.h <<\_ACEOF
29371 #define X_DISPLAY_MISSING 1
29374 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29376 if test -n "$x_includes"; then
29377 X_CFLAGS="$X_CFLAGS -I$x_includes"
29380 # It would also be nice to do this for all -L options, not just this one.
29381 if test -n "$x_libraries"; then
29382 X_LIBS="$X_LIBS -L$x_libraries"
29383 # For Solaris; some versions of Sun CC require a space after -R and
29384 # others require no space. Words are not sufficient . . . .
29385 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29386 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29387 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29388 ac_xsave_c_werror_flag=$ac_c_werror_flag
29389 ac_c_werror_flag=yes
29390 cat >conftest.$ac_ext <<_ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h. */
29405 rm -f conftest.$ac_objext conftest$ac_exeext
29406 if { (ac_try="$ac_link"
29407 case "(($ac_try" in
29408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29409 *) ac_try_echo=$ac_try;;
29411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29412 (eval "$ac_link") 2>conftest.er1
29414 grep -v '^ *+' conftest.er1 >conftest.err
29416 cat conftest.err >&5
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); } && {
29419 test -z "$ac_c_werror_flag" ||
29420 test ! -s conftest.err
29421 } && test -s conftest$ac_exeext &&
29422 $as_test_x conftest$ac_exeext; then
29423 { echo "$as_me:$LINENO: result: no" >&5
29424 echo "${ECHO_T}no" >&6; }
29425 X_LIBS="$X_LIBS -R$x_libraries"
29427 echo "$as_me: failed program was:" >&5
29428 sed 's/^/| /' conftest.$ac_ext >&5
29430 LIBS="$ac_xsave_LIBS -R $x_libraries"
29431 cat >conftest.$ac_ext <<_ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h. */
29446 rm -f conftest.$ac_objext conftest$ac_exeext
29447 if { (ac_try="$ac_link"
29448 case "(($ac_try" in
29449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450 *) ac_try_echo=$ac_try;;
29452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453 (eval "$ac_link") 2>conftest.er1
29455 grep -v '^ *+' conftest.er1 >conftest.err
29457 cat conftest.err >&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); } && {
29460 test -z "$ac_c_werror_flag" ||
29461 test ! -s conftest.err
29462 } && test -s conftest$ac_exeext &&
29463 $as_test_x conftest$ac_exeext; then
29464 { echo "$as_me:$LINENO: result: yes" >&5
29465 echo "${ECHO_T}yes" >&6; }
29466 X_LIBS="$X_LIBS -R $x_libraries"
29468 echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29471 { echo "$as_me:$LINENO: result: neither works" >&5
29472 echo "${ECHO_T}neither works" >&6; }
29475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29476 conftest$ac_exeext conftest.$ac_ext
29479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29480 conftest$ac_exeext conftest.$ac_ext
29481 ac_c_werror_flag=$ac_xsave_c_werror_flag
29482 LIBS=$ac_xsave_LIBS
29485 # Check for system-dependent libraries X programs must link with.
29486 # Do this before checking for the system-independent R6 libraries
29487 # (-lICE), since we may need -lsocket or whatever for X linking.
29489 if test "$ISC" = yes; then
29490 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29492 # Martyn Johnson says this is needed for Ultrix, if the X
29493 # libraries were built with DECnet support. And Karl Berry says
29494 # the Alpha needs dnet_stub (dnet does not exist).
29495 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29496 cat >conftest.$ac_ext <<_ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h. */
29503 /* Override any GCC internal prototype to avoid an error.
29504 Use char because int might match the return type of a GCC
29505 builtin and then its argument prototype would still apply. */
29509 char XOpenDisplay ();
29513 return XOpenDisplay ();
29518 rm -f conftest.$ac_objext conftest$ac_exeext
29519 if { (ac_try="$ac_link"
29520 case "(($ac_try" in
29521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522 *) ac_try_echo=$ac_try;;
29524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525 (eval "$ac_link") 2>conftest.er1
29527 grep -v '^ *+' conftest.er1 >conftest.err
29529 cat conftest.err >&5
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); } && {
29532 test -z "$ac_c_werror_flag" ||
29533 test ! -s conftest.err
29534 } && test -s conftest$ac_exeext &&
29535 $as_test_x conftest$ac_exeext; then
29538 echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29541 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29542 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29543 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29544 echo $ECHO_N "(cached) $ECHO_C" >&6
29546 ac_check_lib_save_LIBS=$LIBS
29547 LIBS="-ldnet $LIBS"
29548 cat >conftest.$ac_ext <<_ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29555 /* Override any GCC internal prototype to avoid an error.
29556 Use char because int might match the return type of a GCC
29557 builtin and then its argument prototype would still apply. */
29565 return dnet_ntoa ();
29570 rm -f conftest.$ac_objext conftest$ac_exeext
29571 if { (ac_try="$ac_link"
29572 case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577 (eval "$ac_link") 2>conftest.er1
29579 grep -v '^ *+' conftest.er1 >conftest.err
29581 cat conftest.err >&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } && {
29584 test -z "$ac_c_werror_flag" ||
29585 test ! -s conftest.err
29586 } && test -s conftest$ac_exeext &&
29587 $as_test_x conftest$ac_exeext; then
29588 ac_cv_lib_dnet_dnet_ntoa=yes
29590 echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29593 ac_cv_lib_dnet_dnet_ntoa=no
29596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29597 conftest$ac_exeext conftest.$ac_ext
29598 LIBS=$ac_check_lib_save_LIBS
29600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29601 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29602 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29603 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29606 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29607 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29608 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29609 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29610 echo $ECHO_N "(cached) $ECHO_C" >&6
29612 ac_check_lib_save_LIBS=$LIBS
29613 LIBS="-ldnet_stub $LIBS"
29614 cat >conftest.$ac_ext <<_ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h. */
29621 /* Override any GCC internal prototype to avoid an error.
29622 Use char because int might match the return type of a GCC
29623 builtin and then its argument prototype would still apply. */
29631 return dnet_ntoa ();
29636 rm -f conftest.$ac_objext conftest$ac_exeext
29637 if { (ac_try="$ac_link"
29638 case "(($ac_try" in
29639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29640 *) ac_try_echo=$ac_try;;
29642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29643 (eval "$ac_link") 2>conftest.er1
29645 grep -v '^ *+' conftest.er1 >conftest.err
29647 cat conftest.err >&5
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); } && {
29650 test -z "$ac_c_werror_flag" ||
29651 test ! -s conftest.err
29652 } && test -s conftest$ac_exeext &&
29653 $as_test_x conftest$ac_exeext; then
29654 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29656 echo "$as_me: failed program was:" >&5
29657 sed 's/^/| /' conftest.$ac_ext >&5
29659 ac_cv_lib_dnet_stub_dnet_ntoa=no
29662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29663 conftest$ac_exeext conftest.$ac_ext
29664 LIBS=$ac_check_lib_save_LIBS
29666 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29667 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29668 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29669 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29676 conftest$ac_exeext conftest.$ac_ext
29677 LIBS="$ac_xsave_LIBS"
29679 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29680 # to get the SysV transport functions.
29681 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29683 # The nsl library prevents programs from opening the X display
29684 # on Irix 5.2, according to T.E. Dickey.
29685 # The functions gethostbyname, getservbyname, and inet_addr are
29686 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29687 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29688 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29689 if test "${ac_cv_func_gethostbyname+set}" = set; then
29690 echo $ECHO_N "(cached) $ECHO_C" >&6
29692 cat >conftest.$ac_ext <<_ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h. */
29698 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29700 #define gethostbyname innocuous_gethostbyname
29702 /* System header to define __stub macros and hopefully few prototypes,
29703 which can conflict with char gethostbyname (); below.
29704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29705 <limits.h> exists even on freestanding compilers. */
29708 # include <limits.h>
29710 # include <assert.h>
29713 #undef gethostbyname
29715 /* Override any GCC internal prototype to avoid an error.
29716 Use char because int might match the return type of a GCC
29717 builtin and then its argument prototype would still apply. */
29721 char gethostbyname ();
29722 /* The GNU C library defines this for functions which it implements
29723 to always fail with ENOSYS. Some functions are actually named
29724 something starting with __ and the normal name is an alias. */
29725 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29732 return gethostbyname ();
29737 rm -f conftest.$ac_objext conftest$ac_exeext
29738 if { (ac_try="$ac_link"
29739 case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744 (eval "$ac_link") 2>conftest.er1
29746 grep -v '^ *+' conftest.er1 >conftest.err
29748 cat conftest.err >&5
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); } && {
29751 test -z "$ac_c_werror_flag" ||
29752 test ! -s conftest.err
29753 } && test -s conftest$ac_exeext &&
29754 $as_test_x conftest$ac_exeext; then
29755 ac_cv_func_gethostbyname=yes
29757 echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29760 ac_cv_func_gethostbyname=no
29763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29764 conftest$ac_exeext conftest.$ac_ext
29766 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29767 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29769 if test $ac_cv_func_gethostbyname = no; then
29770 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29771 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29772 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29773 echo $ECHO_N "(cached) $ECHO_C" >&6
29775 ac_check_lib_save_LIBS=$LIBS
29777 cat >conftest.$ac_ext <<_ACEOF
29780 cat confdefs.h >>conftest.$ac_ext
29781 cat >>conftest.$ac_ext <<_ACEOF
29782 /* end confdefs.h. */
29784 /* Override any GCC internal prototype to avoid an error.
29785 Use char because int might match the return type of a GCC
29786 builtin and then its argument prototype would still apply. */
29790 char gethostbyname ();
29794 return gethostbyname ();
29799 rm -f conftest.$ac_objext conftest$ac_exeext
29800 if { (ac_try="$ac_link"
29801 case "(($ac_try" in
29802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803 *) ac_try_echo=$ac_try;;
29805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806 (eval "$ac_link") 2>conftest.er1
29808 grep -v '^ *+' conftest.er1 >conftest.err
29810 cat conftest.err >&5
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); } && {
29813 test -z "$ac_c_werror_flag" ||
29814 test ! -s conftest.err
29815 } && test -s conftest$ac_exeext &&
29816 $as_test_x conftest$ac_exeext; then
29817 ac_cv_lib_nsl_gethostbyname=yes
29819 echo "$as_me: failed program was:" >&5
29820 sed 's/^/| /' conftest.$ac_ext >&5
29822 ac_cv_lib_nsl_gethostbyname=no
29825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29826 conftest$ac_exeext conftest.$ac_ext
29827 LIBS=$ac_check_lib_save_LIBS
29829 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29830 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29831 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29832 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29835 if test $ac_cv_lib_nsl_gethostbyname = no; then
29836 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29837 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29838 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29839 echo $ECHO_N "(cached) $ECHO_C" >&6
29841 ac_check_lib_save_LIBS=$LIBS
29843 cat >conftest.$ac_ext <<_ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h. */
29850 /* Override any GCC internal prototype to avoid an error.
29851 Use char because int might match the return type of a GCC
29852 builtin and then its argument prototype would still apply. */
29856 char gethostbyname ();
29860 return gethostbyname ();
29865 rm -f conftest.$ac_objext conftest$ac_exeext
29866 if { (ac_try="$ac_link"
29867 case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872 (eval "$ac_link") 2>conftest.er1
29874 grep -v '^ *+' conftest.er1 >conftest.err
29876 cat conftest.err >&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); } && {
29879 test -z "$ac_c_werror_flag" ||
29880 test ! -s conftest.err
29881 } && test -s conftest$ac_exeext &&
29882 $as_test_x conftest$ac_exeext; then
29883 ac_cv_lib_bsd_gethostbyname=yes
29885 echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29888 ac_cv_lib_bsd_gethostbyname=no
29891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29892 conftest$ac_exeext conftest.$ac_ext
29893 LIBS=$ac_check_lib_save_LIBS
29895 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29896 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29897 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29904 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29905 # socket/setsockopt and other routines are undefined under SCO ODT
29906 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29907 # on later versions), says Simon Leinen: it contains gethostby*
29908 # variants that don't use the name server (or something). -lsocket
29909 # must be given before -lnsl if both are needed. We assume that
29910 # if connect needs -lnsl, so does gethostbyname.
29911 { echo "$as_me:$LINENO: checking for connect" >&5
29912 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29913 if test "${ac_cv_func_connect+set}" = set; then
29914 echo $ECHO_N "(cached) $ECHO_C" >&6
29916 cat >conftest.$ac_ext <<_ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h. */
29922 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29924 #define connect innocuous_connect
29926 /* System header to define __stub macros and hopefully few prototypes,
29927 which can conflict with char connect (); below.
29928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29929 <limits.h> exists even on freestanding compilers. */
29932 # include <limits.h>
29934 # include <assert.h>
29939 /* Override any GCC internal prototype to avoid an error.
29940 Use char because int might match the return type of a GCC
29941 builtin and then its argument prototype would still apply. */
29946 /* The GNU C library defines this for functions which it implements
29947 to always fail with ENOSYS. Some functions are actually named
29948 something starting with __ and the normal name is an alias. */
29949 #if defined __stub_connect || defined __stub___connect
29961 rm -f conftest.$ac_objext conftest$ac_exeext
29962 if { (ac_try="$ac_link"
29963 case "(($ac_try" in
29964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965 *) ac_try_echo=$ac_try;;
29967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29968 (eval "$ac_link") 2>conftest.er1
29970 grep -v '^ *+' conftest.er1 >conftest.err
29972 cat conftest.err >&5
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); } && {
29975 test -z "$ac_c_werror_flag" ||
29976 test ! -s conftest.err
29977 } && test -s conftest$ac_exeext &&
29978 $as_test_x conftest$ac_exeext; then
29979 ac_cv_func_connect=yes
29981 echo "$as_me: failed program was:" >&5
29982 sed 's/^/| /' conftest.$ac_ext >&5
29984 ac_cv_func_connect=no
29987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29988 conftest$ac_exeext conftest.$ac_ext
29990 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29991 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29993 if test $ac_cv_func_connect = no; then
29994 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29995 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
29996 if test "${ac_cv_lib_socket_connect+set}" = set; then
29997 echo $ECHO_N "(cached) $ECHO_C" >&6
29999 ac_check_lib_save_LIBS=$LIBS
30000 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30001 cat >conftest.$ac_ext <<_ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h. */
30008 /* Override any GCC internal prototype to avoid an error.
30009 Use char because int might match the return type of a GCC
30010 builtin and then its argument prototype would still apply. */
30023 rm -f conftest.$ac_objext conftest$ac_exeext
30024 if { (ac_try="$ac_link"
30025 case "(($ac_try" in
30026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30027 *) ac_try_echo=$ac_try;;
30029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030 (eval "$ac_link") 2>conftest.er1
30032 grep -v '^ *+' conftest.er1 >conftest.err
30034 cat conftest.err >&5
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); } && {
30037 test -z "$ac_c_werror_flag" ||
30038 test ! -s conftest.err
30039 } && test -s conftest$ac_exeext &&
30040 $as_test_x conftest$ac_exeext; then
30041 ac_cv_lib_socket_connect=yes
30043 echo "$as_me: failed program was:" >&5
30044 sed 's/^/| /' conftest.$ac_ext >&5
30046 ac_cv_lib_socket_connect=no
30049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30050 conftest$ac_exeext conftest.$ac_ext
30051 LIBS=$ac_check_lib_save_LIBS
30053 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30054 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30055 if test $ac_cv_lib_socket_connect = yes; then
30056 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30061 # Guillermo Gomez says -lposix is necessary on A/UX.
30062 { echo "$as_me:$LINENO: checking for remove" >&5
30063 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30064 if test "${ac_cv_func_remove+set}" = set; then
30065 echo $ECHO_N "(cached) $ECHO_C" >&6
30067 cat >conftest.$ac_ext <<_ACEOF
30070 cat confdefs.h >>conftest.$ac_ext
30071 cat >>conftest.$ac_ext <<_ACEOF
30072 /* end confdefs.h. */
30073 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30075 #define remove innocuous_remove
30077 /* System header to define __stub macros and hopefully few prototypes,
30078 which can conflict with char remove (); below.
30079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30080 <limits.h> exists even on freestanding compilers. */
30083 # include <limits.h>
30085 # include <assert.h>
30090 /* Override any GCC internal prototype to avoid an error.
30091 Use char because int might match the return type of a GCC
30092 builtin and then its argument prototype would still apply. */
30097 /* The GNU C library defines this for functions which it implements
30098 to always fail with ENOSYS. Some functions are actually named
30099 something starting with __ and the normal name is an alias. */
30100 #if defined __stub_remove || defined __stub___remove
30112 rm -f conftest.$ac_objext conftest$ac_exeext
30113 if { (ac_try="$ac_link"
30114 case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_link") 2>conftest.er1
30121 grep -v '^ *+' conftest.er1 >conftest.err
30123 cat conftest.err >&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } && {
30126 test -z "$ac_c_werror_flag" ||
30127 test ! -s conftest.err
30128 } && test -s conftest$ac_exeext &&
30129 $as_test_x conftest$ac_exeext; then
30130 ac_cv_func_remove=yes
30132 echo "$as_me: failed program was:" >&5
30133 sed 's/^/| /' conftest.$ac_ext >&5
30135 ac_cv_func_remove=no
30138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30139 conftest$ac_exeext conftest.$ac_ext
30141 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30142 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30144 if test $ac_cv_func_remove = no; then
30145 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30146 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30147 if test "${ac_cv_lib_posix_remove+set}" = set; then
30148 echo $ECHO_N "(cached) $ECHO_C" >&6
30150 ac_check_lib_save_LIBS=$LIBS
30151 LIBS="-lposix $LIBS"
30152 cat >conftest.$ac_ext <<_ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h. */
30159 /* Override any GCC internal prototype to avoid an error.
30160 Use char because int might match the return type of a GCC
30161 builtin and then its argument prototype would still apply. */
30174 rm -f conftest.$ac_objext conftest$ac_exeext
30175 if { (ac_try="$ac_link"
30176 case "(($ac_try" in
30177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30178 *) ac_try_echo=$ac_try;;
30180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30181 (eval "$ac_link") 2>conftest.er1
30183 grep -v '^ *+' conftest.er1 >conftest.err
30185 cat conftest.err >&5
30186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187 (exit $ac_status); } && {
30188 test -z "$ac_c_werror_flag" ||
30189 test ! -s conftest.err
30190 } && test -s conftest$ac_exeext &&
30191 $as_test_x conftest$ac_exeext; then
30192 ac_cv_lib_posix_remove=yes
30194 echo "$as_me: failed program was:" >&5
30195 sed 's/^/| /' conftest.$ac_ext >&5
30197 ac_cv_lib_posix_remove=no
30200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30201 conftest$ac_exeext conftest.$ac_ext
30202 LIBS=$ac_check_lib_save_LIBS
30204 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30205 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30206 if test $ac_cv_lib_posix_remove = yes; then
30207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30212 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30213 { echo "$as_me:$LINENO: checking for shmat" >&5
30214 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30215 if test "${ac_cv_func_shmat+set}" = set; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30218 cat >conftest.$ac_ext <<_ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h. */
30224 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30226 #define shmat innocuous_shmat
30228 /* System header to define __stub macros and hopefully few prototypes,
30229 which can conflict with char shmat (); below.
30230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30231 <limits.h> exists even on freestanding compilers. */
30234 # include <limits.h>
30236 # include <assert.h>
30241 /* Override any GCC internal prototype to avoid an error.
30242 Use char because int might match the return type of a GCC
30243 builtin and then its argument prototype would still apply. */
30248 /* The GNU C library defines this for functions which it implements
30249 to always fail with ENOSYS. Some functions are actually named
30250 something starting with __ and the normal name is an alias. */
30251 #if defined __stub_shmat || defined __stub___shmat
30263 rm -f conftest.$ac_objext conftest$ac_exeext
30264 if { (ac_try="$ac_link"
30265 case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_link") 2>conftest.er1
30272 grep -v '^ *+' conftest.er1 >conftest.err
30274 cat conftest.err >&5
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); } && {
30277 test -z "$ac_c_werror_flag" ||
30278 test ! -s conftest.err
30279 } && test -s conftest$ac_exeext &&
30280 $as_test_x conftest$ac_exeext; then
30281 ac_cv_func_shmat=yes
30283 echo "$as_me: failed program was:" >&5
30284 sed 's/^/| /' conftest.$ac_ext >&5
30286 ac_cv_func_shmat=no
30289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30290 conftest$ac_exeext conftest.$ac_ext
30292 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30293 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30295 if test $ac_cv_func_shmat = no; then
30296 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30297 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30298 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30299 echo $ECHO_N "(cached) $ECHO_C" >&6
30301 ac_check_lib_save_LIBS=$LIBS
30303 cat >conftest.$ac_ext <<_ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h. */
30310 /* Override any GCC internal prototype to avoid an error.
30311 Use char because int might match the return type of a GCC
30312 builtin and then its argument prototype would still apply. */
30325 rm -f conftest.$ac_objext conftest$ac_exeext
30326 if { (ac_try="$ac_link"
30327 case "(($ac_try" in
30328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30329 *) ac_try_echo=$ac_try;;
30331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30332 (eval "$ac_link") 2>conftest.er1
30334 grep -v '^ *+' conftest.er1 >conftest.err
30336 cat conftest.err >&5
30337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); } && {
30339 test -z "$ac_c_werror_flag" ||
30340 test ! -s conftest.err
30341 } && test -s conftest$ac_exeext &&
30342 $as_test_x conftest$ac_exeext; then
30343 ac_cv_lib_ipc_shmat=yes
30345 echo "$as_me: failed program was:" >&5
30346 sed 's/^/| /' conftest.$ac_ext >&5
30348 ac_cv_lib_ipc_shmat=no
30351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30352 conftest$ac_exeext conftest.$ac_ext
30353 LIBS=$ac_check_lib_save_LIBS
30355 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30356 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30357 if test $ac_cv_lib_ipc_shmat = yes; then
30358 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30364 # Check for libraries that X11R6 Xt/Xaw programs need.
30365 ac_save_LDFLAGS=$LDFLAGS
30366 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30367 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30368 # check for ICE first), but we must link in the order -lSM -lICE or
30369 # we get undefined symbols. So assume we have SM if we have ICE.
30370 # These have to be linked with before -lX11, unlike the other
30371 # libraries we check for below, so use a different variable.
30372 # John Interrante, Karl Berry
30373 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30374 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30375 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30376 echo $ECHO_N "(cached) $ECHO_C" >&6
30378 ac_check_lib_save_LIBS=$LIBS
30379 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30380 cat >conftest.$ac_ext <<_ACEOF
30383 cat confdefs.h >>conftest.$ac_ext
30384 cat >>conftest.$ac_ext <<_ACEOF
30385 /* end confdefs.h. */
30387 /* Override any GCC internal prototype to avoid an error.
30388 Use char because int might match the return type of a GCC
30389 builtin and then its argument prototype would still apply. */
30393 char IceConnectionNumber ();
30397 return IceConnectionNumber ();
30402 rm -f conftest.$ac_objext conftest$ac_exeext
30403 if { (ac_try="$ac_link"
30404 case "(($ac_try" in
30405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406 *) ac_try_echo=$ac_try;;
30408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409 (eval "$ac_link") 2>conftest.er1
30411 grep -v '^ *+' conftest.er1 >conftest.err
30413 cat conftest.err >&5
30414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415 (exit $ac_status); } && {
30416 test -z "$ac_c_werror_flag" ||
30417 test ! -s conftest.err
30418 } && test -s conftest$ac_exeext &&
30419 $as_test_x conftest$ac_exeext; then
30420 ac_cv_lib_ICE_IceConnectionNumber=yes
30422 echo "$as_me: failed program was:" >&5
30423 sed 's/^/| /' conftest.$ac_ext >&5
30425 ac_cv_lib_ICE_IceConnectionNumber=no
30428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30429 conftest$ac_exeext conftest.$ac_ext
30430 LIBS=$ac_check_lib_save_LIBS
30432 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30433 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30434 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30435 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30438 LDFLAGS=$ac_save_LDFLAGS
30506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30511 echo $ECHO_N "(cached) $ECHO_C" >&6
30513 ac_res=`eval echo '${'$as_ac_Header'}'`
30514 { echo "$as_me:$LINENO: result: $ac_res" >&5
30515 echo "${ECHO_T}$ac_res" >&6; }
30517 # Is the header compilable?
30518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30520 cat >conftest.$ac_ext <<_ACEOF
30523 cat confdefs.h >>conftest.$ac_ext
30524 cat >>conftest.$ac_ext <<_ACEOF
30525 /* end confdefs.h. */
30526 $ac_includes_default
30527 #include <$ac_header>
30529 rm -f conftest.$ac_objext
30530 if { (ac_try="$ac_compile"
30531 case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_compile") 2>conftest.er1
30538 grep -v '^ *+' conftest.er1 >conftest.err
30540 cat conftest.err >&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); } && {
30543 test -z "$ac_c_werror_flag" ||
30544 test ! -s conftest.err
30545 } && test -s conftest.$ac_objext; then
30546 ac_header_compiler=yes
30548 echo "$as_me: failed program was:" >&5
30549 sed 's/^/| /' conftest.$ac_ext >&5
30551 ac_header_compiler=no
30554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30556 echo "${ECHO_T}$ac_header_compiler" >&6; }
30558 # Is the header present?
30559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30561 cat >conftest.$ac_ext <<_ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h. */
30567 #include <$ac_header>
30569 if { (ac_try="$ac_cpp conftest.$ac_ext"
30570 case "(($ac_try" in
30571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30572 *) ac_try_echo=$ac_try;;
30574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30577 grep -v '^ *+' conftest.er1 >conftest.err
30579 cat conftest.err >&5
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); } >/dev/null && {
30582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30583 test ! -s conftest.err
30585 ac_header_preproc=yes
30587 echo "$as_me: failed program was:" >&5
30588 sed 's/^/| /' conftest.$ac_ext >&5
30590 ac_header_preproc=no
30593 rm -f conftest.err conftest.$ac_ext
30594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30595 echo "${ECHO_T}$ac_header_preproc" >&6; }
30597 # So? What about this header?
30598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30604 ac_header_preproc=yes
30607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30625 echo $ECHO_N "(cached) $ECHO_C" >&6
30627 eval "$as_ac_Header=\$ac_header_preproc"
30629 ac_res=`eval echo '${'$as_ac_Header'}'`
30630 { echo "$as_me:$LINENO: result: $ac_res" >&5
30631 echo "${ECHO_T}$ac_res" >&6; }
30634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30635 cat >>confdefs.h <<_ACEOF
30636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30643 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30644 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30645 if test "${ac_cv_header_stdc+set}" = set; then
30646 echo $ECHO_N "(cached) $ECHO_C" >&6
30648 cat >conftest.$ac_ext <<_ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h. */
30654 #include <stdlib.h>
30655 #include <stdarg.h>
30656 #include <string.h>
30667 rm -f conftest.$ac_objext
30668 if { (ac_try="$ac_compile"
30669 case "(($ac_try" in
30670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671 *) ac_try_echo=$ac_try;;
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674 (eval "$ac_compile") 2>conftest.er1
30676 grep -v '^ *+' conftest.er1 >conftest.err
30678 cat conftest.err >&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } && {
30681 test -z "$ac_c_werror_flag" ||
30682 test ! -s conftest.err
30683 } && test -s conftest.$ac_objext; then
30684 ac_cv_header_stdc=yes
30686 echo "$as_me: failed program was:" >&5
30687 sed 's/^/| /' conftest.$ac_ext >&5
30689 ac_cv_header_stdc=no
30692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30694 if test $ac_cv_header_stdc = yes; then
30695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30696 cat >conftest.$ac_ext <<_ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h. */
30702 #include <string.h>
30705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30706 $EGREP "memchr" >/dev/null 2>&1; then
30709 ac_cv_header_stdc=no
30715 if test $ac_cv_header_stdc = yes; then
30716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30717 cat >conftest.$ac_ext <<_ACEOF
30720 cat confdefs.h >>conftest.$ac_ext
30721 cat >>conftest.$ac_ext <<_ACEOF
30722 /* end confdefs.h. */
30723 #include <stdlib.h>
30726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30727 $EGREP "free" >/dev/null 2>&1; then
30730 ac_cv_header_stdc=no
30736 if test $ac_cv_header_stdc = yes; then
30737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30738 if test "$cross_compiling" = yes; then
30741 cat >conftest.$ac_ext <<_ACEOF
30744 cat confdefs.h >>conftest.$ac_ext
30745 cat >>conftest.$ac_ext <<_ACEOF
30746 /* end confdefs.h. */
30748 #include <stdlib.h>
30749 #if ((' ' & 0x0FF) == 0x020)
30750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30753 # define ISLOWER(c) \
30754 (('a' <= (c) && (c) <= 'i') \
30755 || ('j' <= (c) && (c) <= 'r') \
30756 || ('s' <= (c) && (c) <= 'z'))
30757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30765 for (i = 0; i < 256; i++)
30766 if (XOR (islower (i), ISLOWER (i))
30767 || toupper (i) != TOUPPER (i))
30772 rm -f conftest$ac_exeext
30773 if { (ac_try="$ac_link"
30774 case "(($ac_try" in
30775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776 *) ac_try_echo=$ac_try;;
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_link") 2>&5
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30783 { (case "(($ac_try" in
30784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30785 *) ac_try_echo=$ac_try;;
30787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30788 (eval "$ac_try") 2>&5
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); }; }; then
30794 echo "$as_me: program exited with status $ac_status" >&5
30795 echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30798 ( exit $ac_status )
30799 ac_cv_header_stdc=no
30801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30807 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30808 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30809 if test $ac_cv_header_stdc = yes; then
30811 cat >>confdefs.h <<\_ACEOF
30812 #define STDC_HEADERS 1
30817 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30818 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30819 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30820 echo $ECHO_N "(cached) $ECHO_C" >&6
30822 cat >conftest.$ac_ext <<_ACEOF
30825 cat confdefs.h >>conftest.$ac_ext
30826 cat >>conftest.$ac_ext <<_ACEOF
30827 /* end confdefs.h. */
30828 #include <sys/types.h>
30832 return makedev(0, 0);
30837 rm -f conftest.$ac_objext conftest$ac_exeext
30838 if { (ac_try="$ac_link"
30839 case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_link") 2>conftest.er1
30846 grep -v '^ *+' conftest.er1 >conftest.err
30848 cat conftest.err >&5
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } && {
30851 test -z "$ac_c_werror_flag" ||
30852 test ! -s conftest.err
30853 } && test -s conftest$ac_exeext &&
30854 $as_test_x conftest$ac_exeext; then
30855 ac_cv_header_sys_types_h_makedev=yes
30857 echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30860 ac_cv_header_sys_types_h_makedev=no
30863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30864 conftest$ac_exeext conftest.$ac_ext
30867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30868 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30870 if test $ac_cv_header_sys_types_h_makedev = no; then
30871 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30872 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30873 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30877 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30878 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30880 # Is the header compilable?
30881 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30882 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30883 cat >conftest.$ac_ext <<_ACEOF
30886 cat confdefs.h >>conftest.$ac_ext
30887 cat >>conftest.$ac_ext <<_ACEOF
30888 /* end confdefs.h. */
30889 $ac_includes_default
30890 #include <sys/mkdev.h>
30892 rm -f conftest.$ac_objext
30893 if { (ac_try="$ac_compile"
30894 case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_compile") 2>conftest.er1
30901 grep -v '^ *+' conftest.er1 >conftest.err
30903 cat conftest.err >&5
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); } && {
30906 test -z "$ac_c_werror_flag" ||
30907 test ! -s conftest.err
30908 } && test -s conftest.$ac_objext; then
30909 ac_header_compiler=yes
30911 echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30914 ac_header_compiler=no
30917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30919 echo "${ECHO_T}$ac_header_compiler" >&6; }
30921 # Is the header present?
30922 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30923 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30924 cat >conftest.$ac_ext <<_ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h. */
30930 #include <sys/mkdev.h>
30932 if { (ac_try="$ac_cpp conftest.$ac_ext"
30933 case "(($ac_try" in
30934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935 *) ac_try_echo=$ac_try;;
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30940 grep -v '^ *+' conftest.er1 >conftest.err
30942 cat conftest.err >&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); } >/dev/null && {
30945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30946 test ! -s conftest.err
30948 ac_header_preproc=yes
30950 echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30953 ac_header_preproc=no
30956 rm -f conftest.err conftest.$ac_ext
30957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30958 echo "${ECHO_T}$ac_header_preproc" >&6; }
30960 # So? What about this header?
30961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30964 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30966 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30967 ac_header_preproc=yes
30970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30971 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
30973 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30975 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30979 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30980 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30981 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30985 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30986 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30987 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30988 echo $ECHO_N "(cached) $ECHO_C" >&6
30990 ac_cv_header_sys_mkdev_h=$ac_header_preproc
30992 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30993 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30996 if test $ac_cv_header_sys_mkdev_h = yes; then
30998 cat >>confdefs.h <<\_ACEOF
30999 #define MAJOR_IN_MKDEV 1
31006 if test $ac_cv_header_sys_mkdev_h = no; then
31007 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31008 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31009 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31010 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31011 echo $ECHO_N "(cached) $ECHO_C" >&6
31013 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31014 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31016 # Is the header compilable?
31017 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31018 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31019 cat >conftest.$ac_ext <<_ACEOF
31022 cat confdefs.h >>conftest.$ac_ext
31023 cat >>conftest.$ac_ext <<_ACEOF
31024 /* end confdefs.h. */
31025 $ac_includes_default
31026 #include <sys/sysmacros.h>
31028 rm -f conftest.$ac_objext
31029 if { (ac_try="$ac_compile"
31030 case "(($ac_try" in
31031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31032 *) ac_try_echo=$ac_try;;
31034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31035 (eval "$ac_compile") 2>conftest.er1
31037 grep -v '^ *+' conftest.er1 >conftest.err
31039 cat conftest.err >&5
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); } && {
31042 test -z "$ac_c_werror_flag" ||
31043 test ! -s conftest.err
31044 } && test -s conftest.$ac_objext; then
31045 ac_header_compiler=yes
31047 echo "$as_me: failed program was:" >&5
31048 sed 's/^/| /' conftest.$ac_ext >&5
31050 ac_header_compiler=no
31053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31055 echo "${ECHO_T}$ac_header_compiler" >&6; }
31057 # Is the header present?
31058 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31059 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31060 cat >conftest.$ac_ext <<_ACEOF
31063 cat confdefs.h >>conftest.$ac_ext
31064 cat >>conftest.$ac_ext <<_ACEOF
31065 /* end confdefs.h. */
31066 #include <sys/sysmacros.h>
31068 if { (ac_try="$ac_cpp conftest.$ac_ext"
31069 case "(($ac_try" in
31070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31071 *) ac_try_echo=$ac_try;;
31073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31076 grep -v '^ *+' conftest.er1 >conftest.err
31078 cat conftest.err >&5
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); } >/dev/null && {
31081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31082 test ! -s conftest.err
31084 ac_header_preproc=yes
31086 echo "$as_me: failed program was:" >&5
31087 sed 's/^/| /' conftest.$ac_ext >&5
31089 ac_header_preproc=no
31092 rm -f conftest.err conftest.$ac_ext
31093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31094 echo "${ECHO_T}$ac_header_preproc" >&6; }
31096 # So? What about this header?
31097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31099 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31100 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31101 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31102 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31103 ac_header_preproc=yes
31106 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31107 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31108 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31109 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31110 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31111 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31112 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31114 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31115 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31116 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31117 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31121 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31122 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31123 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31124 echo $ECHO_N "(cached) $ECHO_C" >&6
31126 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31128 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31129 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31132 if test $ac_cv_header_sys_sysmacros_h = yes; then
31134 cat >>confdefs.h <<\_ACEOF
31135 #define MAJOR_IN_SYSMACROS 1
31149 ac_header_dirent=no
31150 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31151 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31152 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31153 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31155 echo $ECHO_N "(cached) $ECHO_C" >&6
31157 cat >conftest.$ac_ext <<_ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h. */
31163 #include <sys/types.h>
31175 rm -f conftest.$ac_objext
31176 if { (ac_try="$ac_compile"
31177 case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_compile") 2>conftest.er1
31184 grep -v '^ *+' conftest.er1 >conftest.err
31186 cat conftest.err >&5
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } && {
31189 test -z "$ac_c_werror_flag" ||
31190 test ! -s conftest.err
31191 } && test -s conftest.$ac_objext; then
31192 eval "$as_ac_Header=yes"
31194 echo "$as_me: failed program was:" >&5
31195 sed 's/^/| /' conftest.$ac_ext >&5
31197 eval "$as_ac_Header=no"
31200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31202 ac_res=`eval echo '${'$as_ac_Header'}'`
31203 { echo "$as_me:$LINENO: result: $ac_res" >&5
31204 echo "${ECHO_T}$ac_res" >&6; }
31205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31206 cat >>confdefs.h <<_ACEOF
31207 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31210 ac_header_dirent=$ac_hdr; break
31214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31215 if test $ac_header_dirent = dirent.h; then
31216 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31217 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31218 if test "${ac_cv_search_opendir+set}" = set; then
31219 echo $ECHO_N "(cached) $ECHO_C" >&6
31221 ac_func_search_save_LIBS=$LIBS
31222 cat >conftest.$ac_ext <<_ACEOF
31225 cat confdefs.h >>conftest.$ac_ext
31226 cat >>conftest.$ac_ext <<_ACEOF
31227 /* end confdefs.h. */
31229 /* Override any GCC internal prototype to avoid an error.
31230 Use char because int might match the return type of a GCC
31231 builtin and then its argument prototype would still apply. */
31244 for ac_lib in '' dir; do
31245 if test -z "$ac_lib"; then
31246 ac_res="none required"
31249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31251 rm -f conftest.$ac_objext conftest$ac_exeext
31252 if { (ac_try="$ac_link"
31253 case "(($ac_try" in
31254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255 *) ac_try_echo=$ac_try;;
31257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258 (eval "$ac_link") 2>conftest.er1
31260 grep -v '^ *+' conftest.er1 >conftest.err
31262 cat conftest.err >&5
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); } && {
31265 test -z "$ac_c_werror_flag" ||
31266 test ! -s conftest.err
31267 } && test -s conftest$ac_exeext &&
31268 $as_test_x conftest$ac_exeext; then
31269 ac_cv_search_opendir=$ac_res
31271 echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31279 if test "${ac_cv_search_opendir+set}" = set; then
31283 if test "${ac_cv_search_opendir+set}" = set; then
31286 ac_cv_search_opendir=no
31288 rm conftest.$ac_ext
31289 LIBS=$ac_func_search_save_LIBS
31291 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31292 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31293 ac_res=$ac_cv_search_opendir
31294 if test "$ac_res" != no; then
31295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31300 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31301 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31302 if test "${ac_cv_search_opendir+set}" = set; then
31303 echo $ECHO_N "(cached) $ECHO_C" >&6
31305 ac_func_search_save_LIBS=$LIBS
31306 cat >conftest.$ac_ext <<_ACEOF
31309 cat confdefs.h >>conftest.$ac_ext
31310 cat >>conftest.$ac_ext <<_ACEOF
31311 /* end confdefs.h. */
31313 /* Override any GCC internal prototype to avoid an error.
31314 Use char because int might match the return type of a GCC
31315 builtin and then its argument prototype would still apply. */
31328 for ac_lib in '' x; do
31329 if test -z "$ac_lib"; then
31330 ac_res="none required"
31333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31335 rm -f conftest.$ac_objext conftest$ac_exeext
31336 if { (ac_try="$ac_link"
31337 case "(($ac_try" in
31338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31339 *) ac_try_echo=$ac_try;;
31341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31342 (eval "$ac_link") 2>conftest.er1
31344 grep -v '^ *+' conftest.er1 >conftest.err
31346 cat conftest.err >&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } && {
31349 test -z "$ac_c_werror_flag" ||
31350 test ! -s conftest.err
31351 } && test -s conftest$ac_exeext &&
31352 $as_test_x conftest$ac_exeext; then
31353 ac_cv_search_opendir=$ac_res
31355 echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31363 if test "${ac_cv_search_opendir+set}" = set; then
31367 if test "${ac_cv_search_opendir+set}" = set; then
31370 ac_cv_search_opendir=no
31372 rm conftest.$ac_ext
31373 LIBS=$ac_func_search_save_LIBS
31375 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31377 ac_res=$ac_cv_search_opendir
31378 if test "$ac_res" != no; then
31379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31385 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31386 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31387 if test "${ac_cv_header_stat_broken+set}" = set; then
31388 echo $ECHO_N "(cached) $ECHO_C" >&6
31390 cat >conftest.$ac_ext <<_ACEOF
31393 cat confdefs.h >>conftest.$ac_ext
31394 cat >>conftest.$ac_ext <<_ACEOF
31395 /* end confdefs.h. */
31396 #include <sys/types.h>
31397 #include <sys/stat.h>
31399 #if defined S_ISBLK && defined S_IFDIR
31400 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31403 #if defined S_ISBLK && defined S_IFCHR
31404 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31407 #if defined S_ISLNK && defined S_IFREG
31408 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31411 #if defined S_ISSOCK && defined S_IFREG
31412 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31416 rm -f conftest.$ac_objext
31417 if { (ac_try="$ac_compile"
31418 case "(($ac_try" in
31419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420 *) ac_try_echo=$ac_try;;
31422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423 (eval "$ac_compile") 2>conftest.er1
31425 grep -v '^ *+' conftest.er1 >conftest.err
31427 cat conftest.err >&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); } && {
31430 test -z "$ac_c_werror_flag" ||
31431 test ! -s conftest.err
31432 } && test -s conftest.$ac_objext; then
31433 ac_cv_header_stat_broken=no
31435 echo "$as_me: failed program was:" >&5
31436 sed 's/^/| /' conftest.$ac_ext >&5
31438 ac_cv_header_stat_broken=yes
31441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31443 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31444 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31445 if test $ac_cv_header_stat_broken = yes; then
31447 cat >>confdefs.h <<\_ACEOF
31448 #define STAT_MACROS_BROKEN 1
31453 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31454 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31455 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31456 echo $ECHO_N "(cached) $ECHO_C" >&6
31458 cat >conftest.$ac_ext <<_ACEOF
31461 cat confdefs.h >>conftest.$ac_ext
31462 cat >>conftest.$ac_ext <<_ACEOF
31463 /* end confdefs.h. */
31464 #include <sys/types.h>
31465 #include <sys/wait.h>
31466 #ifndef WEXITSTATUS
31467 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31470 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31478 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31483 rm -f conftest.$ac_objext
31484 if { (ac_try="$ac_compile"
31485 case "(($ac_try" in
31486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487 *) ac_try_echo=$ac_try;;
31489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490 (eval "$ac_compile") 2>conftest.er1
31492 grep -v '^ *+' conftest.er1 >conftest.err
31494 cat conftest.err >&5
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); } && {
31497 test -z "$ac_c_werror_flag" ||
31498 test ! -s conftest.err
31499 } && test -s conftest.$ac_objext; then
31500 ac_cv_header_sys_wait_h=yes
31502 echo "$as_me: failed program was:" >&5
31503 sed 's/^/| /' conftest.$ac_ext >&5
31505 ac_cv_header_sys_wait_h=no
31508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31510 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31511 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31512 if test $ac_cv_header_sys_wait_h = yes; then
31514 cat >>confdefs.h <<\_ACEOF
31515 #define HAVE_SYS_WAIT_H 1
31520 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31521 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31522 if test "${ac_cv_header_time+set}" = set; then
31523 echo $ECHO_N "(cached) $ECHO_C" >&6
31525 cat >conftest.$ac_ext <<_ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h. */
31531 #include <sys/types.h>
31532 #include <sys/time.h>
31538 if ((struct tm *) 0)
31544 rm -f conftest.$ac_objext
31545 if { (ac_try="$ac_compile"
31546 case "(($ac_try" in
31547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31548 *) ac_try_echo=$ac_try;;
31550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31551 (eval "$ac_compile") 2>conftest.er1
31553 grep -v '^ *+' conftest.er1 >conftest.err
31555 cat conftest.err >&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); } && {
31558 test -z "$ac_c_werror_flag" ||
31559 test ! -s conftest.err
31560 } && test -s conftest.$ac_objext; then
31561 ac_cv_header_time=yes
31563 echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.$ac_ext >&5
31566 ac_cv_header_time=no
31569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31571 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31572 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31573 if test $ac_cv_header_time = yes; then
31575 cat >>confdefs.h <<\_ACEOF
31576 #define TIME_WITH_SYS_TIME 1
31581 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31582 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31583 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31584 echo $ECHO_N "(cached) $ECHO_C" >&6
31586 cat >conftest.$ac_ext <<_ACEOF
31589 cat confdefs.h >>conftest.$ac_ext
31590 cat >>conftest.$ac_ext <<_ACEOF
31591 /* end confdefs.h. */
31592 $ac_includes_default
31596 static struct stat ac_aggr;
31597 if (ac_aggr.st_blksize)
31603 rm -f conftest.$ac_objext
31604 if { (ac_try="$ac_compile"
31605 case "(($ac_try" in
31606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607 *) ac_try_echo=$ac_try;;
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610 (eval "$ac_compile") 2>conftest.er1
31612 grep -v '^ *+' conftest.er1 >conftest.err
31614 cat conftest.err >&5
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } && {
31617 test -z "$ac_c_werror_flag" ||
31618 test ! -s conftest.err
31619 } && test -s conftest.$ac_objext; then
31620 ac_cv_member_struct_stat_st_blksize=yes
31622 echo "$as_me: failed program was:" >&5
31623 sed 's/^/| /' conftest.$ac_ext >&5
31625 cat >conftest.$ac_ext <<_ACEOF
31628 cat confdefs.h >>conftest.$ac_ext
31629 cat >>conftest.$ac_ext <<_ACEOF
31630 /* end confdefs.h. */
31631 $ac_includes_default
31635 static struct stat ac_aggr;
31636 if (sizeof ac_aggr.st_blksize)
31642 rm -f conftest.$ac_objext
31643 if { (ac_try="$ac_compile"
31644 case "(($ac_try" in
31645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646 *) ac_try_echo=$ac_try;;
31648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31649 (eval "$ac_compile") 2>conftest.er1
31651 grep -v '^ *+' conftest.er1 >conftest.err
31653 cat conftest.err >&5
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); } && {
31656 test -z "$ac_c_werror_flag" ||
31657 test ! -s conftest.err
31658 } && test -s conftest.$ac_objext; then
31659 ac_cv_member_struct_stat_st_blksize=yes
31661 echo "$as_me: failed program was:" >&5
31662 sed 's/^/| /' conftest.$ac_ext >&5
31664 ac_cv_member_struct_stat_st_blksize=no
31667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31672 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31673 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31674 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31676 cat >>confdefs.h <<_ACEOF
31677 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31681 cat >>confdefs.h <<\_ACEOF
31682 #define HAVE_ST_BLKSIZE 1
31688 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31689 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31690 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31691 echo $ECHO_N "(cached) $ECHO_C" >&6
31693 cat >conftest.$ac_ext <<_ACEOF
31696 cat confdefs.h >>conftest.$ac_ext
31697 cat >>conftest.$ac_ext <<_ACEOF
31698 /* end confdefs.h. */
31699 $ac_includes_default
31703 static struct stat ac_aggr;
31704 if (ac_aggr.st_blocks)
31710 rm -f conftest.$ac_objext
31711 if { (ac_try="$ac_compile"
31712 case "(($ac_try" in
31713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714 *) ac_try_echo=$ac_try;;
31716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31717 (eval "$ac_compile") 2>conftest.er1
31719 grep -v '^ *+' conftest.er1 >conftest.err
31721 cat conftest.err >&5
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); } && {
31724 test -z "$ac_c_werror_flag" ||
31725 test ! -s conftest.err
31726 } && test -s conftest.$ac_objext; then
31727 ac_cv_member_struct_stat_st_blocks=yes
31729 echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31732 cat >conftest.$ac_ext <<_ACEOF
31735 cat confdefs.h >>conftest.$ac_ext
31736 cat >>conftest.$ac_ext <<_ACEOF
31737 /* end confdefs.h. */
31738 $ac_includes_default
31742 static struct stat ac_aggr;
31743 if (sizeof ac_aggr.st_blocks)
31749 rm -f conftest.$ac_objext
31750 if { (ac_try="$ac_compile"
31751 case "(($ac_try" in
31752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753 *) ac_try_echo=$ac_try;;
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756 (eval "$ac_compile") 2>conftest.er1
31758 grep -v '^ *+' conftest.er1 >conftest.err
31760 cat conftest.err >&5
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); } && {
31763 test -z "$ac_c_werror_flag" ||
31764 test ! -s conftest.err
31765 } && test -s conftest.$ac_objext; then
31766 ac_cv_member_struct_stat_st_blocks=yes
31768 echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31771 ac_cv_member_struct_stat_st_blocks=no
31774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31779 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31780 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31781 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31783 cat >>confdefs.h <<_ACEOF
31784 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31788 cat >>confdefs.h <<\_ACEOF
31789 #define HAVE_ST_BLOCKS 1
31793 case " $LIBOBJS " in
31794 *" fileblocks.$ac_objext "* ) ;;
31795 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31802 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31803 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31804 if test "${ac_cv_struct_tm+set}" = set; then
31805 echo $ECHO_N "(cached) $ECHO_C" >&6
31807 cat >conftest.$ac_ext <<_ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h. */
31813 #include <sys/types.h>
31820 int *p = &tm.tm_sec;
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830 *) ac_try_echo=$ac_try;;
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833 (eval "$ac_compile") 2>conftest.er1
31835 grep -v '^ *+' conftest.er1 >conftest.err
31837 cat conftest.err >&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } && {
31840 test -z "$ac_c_werror_flag" ||
31841 test ! -s conftest.err
31842 } && test -s conftest.$ac_objext; then
31843 ac_cv_struct_tm=time.h
31845 echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31848 ac_cv_struct_tm=sys/time.h
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31853 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31854 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31855 if test $ac_cv_struct_tm = sys/time.h; then
31857 cat >>confdefs.h <<\_ACEOF
31858 #define TM_IN_SYS_TIME 1
31863 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31864 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31865 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31866 echo $ECHO_N "(cached) $ECHO_C" >&6
31868 cat >conftest.$ac_ext <<_ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h. */
31874 #include <sys/types.h>
31875 #include <$ac_cv_struct_tm>
31881 static struct tm ac_aggr;
31882 if (ac_aggr.tm_zone)
31888 rm -f conftest.$ac_objext
31889 if { (ac_try="$ac_compile"
31890 case "(($ac_try" in
31891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892 *) ac_try_echo=$ac_try;;
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895 (eval "$ac_compile") 2>conftest.er1
31897 grep -v '^ *+' conftest.er1 >conftest.err
31899 cat conftest.err >&5
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); } && {
31902 test -z "$ac_c_werror_flag" ||
31903 test ! -s conftest.err
31904 } && test -s conftest.$ac_objext; then
31905 ac_cv_member_struct_tm_tm_zone=yes
31907 echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31910 cat >conftest.$ac_ext <<_ACEOF
31913 cat confdefs.h >>conftest.$ac_ext
31914 cat >>conftest.$ac_ext <<_ACEOF
31915 /* end confdefs.h. */
31916 #include <sys/types.h>
31917 #include <$ac_cv_struct_tm>
31923 static struct tm ac_aggr;
31924 if (sizeof ac_aggr.tm_zone)
31930 rm -f conftest.$ac_objext
31931 if { (ac_try="$ac_compile"
31932 case "(($ac_try" in
31933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934 *) ac_try_echo=$ac_try;;
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_compile") 2>conftest.er1
31939 grep -v '^ *+' conftest.er1 >conftest.err
31941 cat conftest.err >&5
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); } && {
31944 test -z "$ac_c_werror_flag" ||
31945 test ! -s conftest.err
31946 } && test -s conftest.$ac_objext; then
31947 ac_cv_member_struct_tm_tm_zone=yes
31949 echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31952 ac_cv_member_struct_tm_tm_zone=no
31955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31960 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31961 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31962 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31964 cat >>confdefs.h <<_ACEOF
31965 #define HAVE_STRUCT_TM_TM_ZONE 1
31971 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31973 cat >>confdefs.h <<\_ACEOF
31974 #define HAVE_TM_ZONE 1
31978 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31979 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31980 if test "${ac_cv_have_decl_tzname+set}" = set; then
31981 echo $ECHO_N "(cached) $ECHO_C" >&6
31983 cat >conftest.$ac_ext <<_ACEOF
31986 cat confdefs.h >>conftest.$ac_ext
31987 cat >>conftest.$ac_ext <<_ACEOF
31988 /* end confdefs.h. */
32002 rm -f conftest.$ac_objext
32003 if { (ac_try="$ac_compile"
32004 case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_compile") 2>conftest.er1
32011 grep -v '^ *+' conftest.er1 >conftest.err
32013 cat conftest.err >&5
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); } && {
32016 test -z "$ac_c_werror_flag" ||
32017 test ! -s conftest.err
32018 } && test -s conftest.$ac_objext; then
32019 ac_cv_have_decl_tzname=yes
32021 echo "$as_me: failed program was:" >&5
32022 sed 's/^/| /' conftest.$ac_ext >&5
32024 ac_cv_have_decl_tzname=no
32027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32029 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32030 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32031 if test $ac_cv_have_decl_tzname = yes; then
32033 cat >>confdefs.h <<_ACEOF
32034 #define HAVE_DECL_TZNAME 1
32039 cat >>confdefs.h <<_ACEOF
32040 #define HAVE_DECL_TZNAME 0
32047 { echo "$as_me:$LINENO: checking for tzname" >&5
32048 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32049 if test "${ac_cv_var_tzname+set}" = set; then
32050 echo $ECHO_N "(cached) $ECHO_C" >&6
32052 cat >conftest.$ac_ext <<_ACEOF
32055 cat confdefs.h >>conftest.$ac_ext
32056 cat >>conftest.$ac_ext <<_ACEOF
32057 /* end confdefs.h. */
32059 #if !HAVE_DECL_TZNAME
32060 extern char *tzname[];
32066 return tzname[0][0];
32071 rm -f conftest.$ac_objext conftest$ac_exeext
32072 if { (ac_try="$ac_link"
32073 case "(($ac_try" in
32074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32075 *) ac_try_echo=$ac_try;;
32077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32078 (eval "$ac_link") 2>conftest.er1
32080 grep -v '^ *+' conftest.er1 >conftest.err
32082 cat conftest.err >&5
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); } && {
32085 test -z "$ac_c_werror_flag" ||
32086 test ! -s conftest.err
32087 } && test -s conftest$ac_exeext &&
32088 $as_test_x conftest$ac_exeext; then
32089 ac_cv_var_tzname=yes
32091 echo "$as_me: failed program was:" >&5
32092 sed 's/^/| /' conftest.$ac_ext >&5
32094 ac_cv_var_tzname=no
32097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32098 conftest$ac_exeext conftest.$ac_ext
32100 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32101 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32102 if test $ac_cv_var_tzname = yes; then
32104 cat >>confdefs.h <<\_ACEOF
32105 #define HAVE_TZNAME 1
32112 { echo "$as_me:$LINENO: checking for utime.h" >&5
32113 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32114 if test "${ba_cv_header_utime_h+set}" = set; then
32115 echo $ECHO_N "(cached) $ECHO_C" >&6
32118 cat >conftest.$ac_ext <<_ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h. */
32125 #include <sys/types.h>
32138 rm -f conftest.$ac_objext
32139 if { (ac_try="$ac_compile"
32140 case "(($ac_try" in
32141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32142 *) ac_try_echo=$ac_try;;
32144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32145 (eval "$ac_compile") 2>conftest.er1
32147 grep -v '^ *+' conftest.er1 >conftest.err
32149 cat conftest.err >&5
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } && {
32152 test -z "$ac_c_werror_flag" ||
32153 test ! -s conftest.err
32154 } && test -s conftest.$ac_objext; then
32156 ba_cv_header_utime_h=yes
32159 echo "$as_me: failed program was:" >&5
32160 sed 's/^/| /' conftest.$ac_ext >&5
32163 ba_cv_header_utime_h=no
32168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32172 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32173 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32174 test $ba_cv_header_utime_h = yes &&
32175 cat >>confdefs.h <<\_ACEOF
32176 #define HAVE_UTIME_H 1
32180 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32181 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32182 if test "${ba_cv_header_socklen_t+set}" = set; then
32183 echo $ECHO_N "(cached) $ECHO_C" >&6
32186 cat >conftest.$ac_ext <<_ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h. */
32193 #include <sys/types.h>
32194 #include <sys/socket.h>
32206 rm -f conftest.$ac_objext
32207 if { (ac_try="$ac_compile"
32208 case "(($ac_try" in
32209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210 *) ac_try_echo=$ac_try;;
32212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213 (eval "$ac_compile") 2>conftest.er1
32215 grep -v '^ *+' conftest.er1 >conftest.err
32217 cat conftest.err >&5
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); } && {
32220 test -z "$ac_c_werror_flag" ||
32221 test ! -s conftest.err
32222 } && test -s conftest.$ac_objext; then
32224 ba_cv_header_socklen_t=yes
32227 echo "$as_me: failed program was:" >&5
32228 sed 's/^/| /' conftest.$ac_ext >&5
32231 ba_cv_header_socklen_t=no
32236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32240 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32241 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32242 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32243 #define HAVE_SOCKLEN_T 1
32247 { echo "$as_me:$LINENO: checking for bigendian" >&5
32248 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32249 if test "${ba_cv_bigendian+set}" = set; then
32250 echo $ECHO_N "(cached) $ECHO_C" >&6
32253 if test "$cross_compiling" = yes; then
32259 cat >conftest.$ac_ext <<_ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h. */
32266 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32269 rm -f conftest$ac_exeext
32270 if { (ac_try="$ac_link"
32271 case "(($ac_try" in
32272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32273 *) ac_try_echo=$ac_try;;
32275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32276 (eval "$ac_link") 2>&5
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32280 { (case "(($ac_try" in
32281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282 *) ac_try_echo=$ac_try;;
32284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285 (eval "$ac_try") 2>&5
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; }; then
32290 ba_cv_bigendian=yes
32293 echo "$as_me: program exited with status $ac_status" >&5
32294 echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32297 ( exit $ac_status )
32302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32309 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32310 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32311 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32312 #define HAVE_BIGENDIAN 1
32317 ac_cpp='$CXXCPP $CPPFLAGS'
32318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32322 { echo "$as_me:$LINENO: checking for typeof" >&5
32323 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32324 if test "${ba_cv_have_typeof+set}" = set; then
32325 echo $ECHO_N "(cached) $ECHO_C" >&6
32328 if test "$cross_compiling" = yes; then
32330 ba_cv_have_typeof=no
32334 cat >conftest.$ac_ext <<_ACEOF
32337 cat confdefs.h >>conftest.$ac_ext
32338 cat >>conftest.$ac_ext <<_ACEOF
32339 /* end confdefs.h. */
32341 main(){char *a = 0; a = (typeof a)a;}
32344 rm -f conftest$ac_exeext
32345 if { (ac_try="$ac_link"
32346 case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351 (eval "$ac_link") 2>&5
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32355 { (case "(($ac_try" in
32356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357 *) ac_try_echo=$ac_try;;
32359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360 (eval "$ac_try") 2>&5
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; }; then
32365 ba_cv_have_typeof=yes
32368 echo "$as_me: program exited with status $ac_status" >&5
32369 echo "$as_me: failed program was:" >&5
32370 sed 's/^/| /' conftest.$ac_ext >&5
32372 ( exit $ac_status )
32374 ba_cv_have_typeof=no
32377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32384 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32385 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32386 test $ba_cv_have_typeof = yes &&
32387 cat >>confdefs.h <<\_ACEOF
32388 #define HAVE_TYPEOF 1
32392 ac_cpp='$CPP $CPPFLAGS'
32393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32398 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32399 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32400 if test "${ac_cv_c_const+set}" = set; then
32401 echo $ECHO_N "(cached) $ECHO_C" >&6
32403 cat >conftest.$ac_ext <<_ACEOF
32406 cat confdefs.h >>conftest.$ac_ext
32407 cat >>conftest.$ac_ext <<_ACEOF
32408 /* end confdefs.h. */
32413 /* FIXME: Include the comments suggested by Paul. */
32414 #ifndef __cplusplus
32415 /* Ultrix mips cc rejects this. */
32416 typedef int charset[2];
32418 /* SunOS 4.1.1 cc rejects this. */
32419 char const *const *pcpcc;
32421 /* NEC SVR4.0.2 mips cc rejects this. */
32422 struct point {int x, y;};
32423 static struct point const zero = {0,0};
32424 /* AIX XL C 1.02.0.0 rejects this.
32425 It does not let you subtract one const X* pointer from another in
32426 an arm of an if-expression whose if-part is not a constant
32428 const char *g = "string";
32429 pcpcc = &g + (g ? g-g : 0);
32430 /* HPUX 7.0 cc rejects these. */
32432 ppc = (char**) pcpcc;
32433 pcpcc = (char const *const *) ppc;
32434 { /* SCO 3.2v4 cc rejects this. */
32436 char const *s = 0 ? (char *) 0 : (char const *) 0;
32441 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32442 int x[] = {25, 17};
32443 const int *foo = &x[0];
32446 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32447 typedef const int *iptr;
32451 { /* AIX XL C 1.02.0.0 rejects this saying
32452 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32453 struct s { int j; const int *ap[3]; };
32454 struct s *b; b->j = 5;
32456 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32457 const int foo = 10;
32458 if (!foo) return 0;
32460 return !cs[0] && !zero.x;
32467 rm -f conftest.$ac_objext
32468 if { (ac_try="$ac_compile"
32469 case "(($ac_try" in
32470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32471 *) ac_try_echo=$ac_try;;
32473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32474 (eval "$ac_compile") 2>conftest.er1
32476 grep -v '^ *+' conftest.er1 >conftest.err
32478 cat conftest.err >&5
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); } && {
32481 test -z "$ac_c_werror_flag" ||
32482 test ! -s conftest.err
32483 } && test -s conftest.$ac_objext; then
32486 echo "$as_me: failed program was:" >&5
32487 sed 's/^/| /' conftest.$ac_ext >&5
32492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32494 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32495 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32496 if test $ac_cv_c_const = no; then
32498 cat >>confdefs.h <<\_ACEOF
32505 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32506 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32508 # The order of these tests is important.
32509 cat >conftest.$ac_ext <<_ACEOF
32512 cat confdefs.h >>conftest.$ac_ext
32513 cat >>conftest.$ac_ext <<_ACEOF
32514 /* end confdefs.h. */
32516 #include <sys/statvfs.h>
32517 #include <sys/fstyp.h>
32520 if { (ac_try="$ac_cpp conftest.$ac_ext"
32521 case "(($ac_try" in
32522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32523 *) ac_try_echo=$ac_try;;
32525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32528 grep -v '^ *+' conftest.er1 >conftest.err
32530 cat conftest.err >&5
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); } >/dev/null && {
32533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32534 test ! -s conftest.err
32536 cat >>confdefs.h <<\_ACEOF
32537 #define FSTYPE_STATVFS 1
32542 echo "$as_me: failed program was:" >&5
32543 sed 's/^/| /' conftest.$ac_ext >&5
32548 rm -f conftest.err conftest.$ac_ext
32549 if test $fstype = no; then
32550 cat >conftest.$ac_ext <<_ACEOF
32553 cat confdefs.h >>conftest.$ac_ext
32554 cat >>conftest.$ac_ext <<_ACEOF
32555 /* end confdefs.h. */
32557 #include <sys/statfs.h>
32558 #include <sys/fstyp.h>
32561 if { (ac_try="$ac_cpp conftest.$ac_ext"
32562 case "(($ac_try" in
32563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32564 *) ac_try_echo=$ac_try;;
32566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32569 grep -v '^ *+' conftest.er1 >conftest.err
32571 cat conftest.err >&5
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); } >/dev/null && {
32574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32575 test ! -s conftest.err
32577 cat >>confdefs.h <<\_ACEOF
32578 #define FSTYPE_USG_STATFS 1
32583 echo "$as_me: failed program was:" >&5
32584 sed 's/^/| /' conftest.$ac_ext >&5
32589 rm -f conftest.err conftest.$ac_ext
32591 if test $fstype = no; then
32592 cat >conftest.$ac_ext <<_ACEOF
32595 cat confdefs.h >>conftest.$ac_ext
32596 cat >>conftest.$ac_ext <<_ACEOF
32597 /* end confdefs.h. */
32599 #include <sys/statfs.h>
32600 #include <sys/vmount.h>
32603 if { (ac_try="$ac_cpp conftest.$ac_ext"
32604 case "(($ac_try" in
32605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606 *) ac_try_echo=$ac_try;;
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32611 grep -v '^ *+' conftest.er1 >conftest.err
32613 cat conftest.err >&5
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); } >/dev/null && {
32616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32617 test ! -s conftest.err
32619 cat >>confdefs.h <<\_ACEOF
32620 #define FSTYPE_AIX_STATFS 1
32625 echo "$as_me: failed program was:" >&5
32626 sed 's/^/| /' conftest.$ac_ext >&5
32631 rm -f conftest.err conftest.$ac_ext
32633 if test $fstype = no; then
32634 cat >conftest.$ac_ext <<_ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32641 #include <mntent.h>
32644 if { (ac_try="$ac_cpp conftest.$ac_ext"
32645 case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32652 grep -v '^ *+' conftest.er1 >conftest.err
32654 cat conftest.err >&5
32655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656 (exit $ac_status); } >/dev/null && {
32657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32658 test ! -s conftest.err
32660 cat >>confdefs.h <<\_ACEOF
32661 #define FSTYPE_MNTENT 1
32666 echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32672 rm -f conftest.err conftest.$ac_ext
32674 if test $fstype = no; then
32675 cat >conftest.$ac_ext <<_ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h. */
32681 #include <sys/mount.h>
32684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32685 $EGREP "f_type;" >/dev/null 2>&1; then
32686 cat >>confdefs.h <<\_ACEOF
32687 #define FSTYPE_STATFS 1
32694 if test $fstype = no; then
32695 cat >conftest.$ac_ext <<_ACEOF
32698 cat confdefs.h >>conftest.$ac_ext
32699 cat >>conftest.$ac_ext <<_ACEOF
32700 /* end confdefs.h. */
32702 #include <sys/mount.h>
32703 #include <sys/fs_types.h>
32706 if { (ac_try="$ac_cpp conftest.$ac_ext"
32707 case "(($ac_try" in
32708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32714 grep -v '^ *+' conftest.er1 >conftest.err
32716 cat conftest.err >&5
32717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718 (exit $ac_status); } >/dev/null && {
32719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32720 test ! -s conftest.err
32722 cat >>confdefs.h <<\_ACEOF
32723 #define FSTYPE_GETMNT 1
32728 echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32734 rm -f conftest.err conftest.$ac_ext
32736 { echo "$as_me:$LINENO: result: $fstype" >&5
32737 echo "${ECHO_T}$fstype" >&6; }
32739 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32740 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32741 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32742 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32745 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32746 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32748 # Is the header compilable?
32749 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32750 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32751 cat >conftest.$ac_ext <<_ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h. */
32757 $ac_includes_default
32758 #include <sys/statvfs.h>
32760 rm -f conftest.$ac_objext
32761 if { (ac_try="$ac_compile"
32762 case "(($ac_try" in
32763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32764 *) ac_try_echo=$ac_try;;
32766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32767 (eval "$ac_compile") 2>conftest.er1
32769 grep -v '^ *+' conftest.er1 >conftest.err
32771 cat conftest.err >&5
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); } && {
32774 test -z "$ac_c_werror_flag" ||
32775 test ! -s conftest.err
32776 } && test -s conftest.$ac_objext; then
32777 ac_header_compiler=yes
32779 echo "$as_me: failed program was:" >&5
32780 sed 's/^/| /' conftest.$ac_ext >&5
32782 ac_header_compiler=no
32785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32787 echo "${ECHO_T}$ac_header_compiler" >&6; }
32789 # Is the header present?
32790 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32791 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32792 cat >conftest.$ac_ext <<_ACEOF
32795 cat confdefs.h >>conftest.$ac_ext
32796 cat >>conftest.$ac_ext <<_ACEOF
32797 /* end confdefs.h. */
32798 #include <sys/statvfs.h>
32800 if { (ac_try="$ac_cpp conftest.$ac_ext"
32801 case "(($ac_try" in
32802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32803 *) ac_try_echo=$ac_try;;
32805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32808 grep -v '^ *+' conftest.er1 >conftest.err
32810 cat conftest.err >&5
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); } >/dev/null && {
32813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32814 test ! -s conftest.err
32816 ac_header_preproc=yes
32818 echo "$as_me: failed program was:" >&5
32819 sed 's/^/| /' conftest.$ac_ext >&5
32821 ac_header_preproc=no
32824 rm -f conftest.err conftest.$ac_ext
32825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32826 echo "${ECHO_T}$ac_header_preproc" >&6; }
32828 # So? What about this header?
32829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32831 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32832 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32833 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32834 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32835 ac_header_preproc=yes
32838 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32839 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32840 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32841 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32842 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32843 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32844 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32846 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32847 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32848 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32849 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32853 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32854 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32855 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32856 echo $ECHO_N "(cached) $ECHO_C" >&6
32858 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32860 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32861 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32864 if test $ac_cv_header_sys_statvfs_h = yes; then
32866 cat >>confdefs.h <<\_ACEOF
32867 #define HAVE_SYS_STATVFS_H 1
32874 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32875 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32876 if test "${ac_cv_type_signal+set}" = set; then
32877 echo $ECHO_N "(cached) $ECHO_C" >&6
32879 cat >conftest.$ac_ext <<_ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h. */
32885 #include <sys/types.h>
32886 #include <signal.h>
32891 return *(signal (0, 0)) (0) == 1;
32896 rm -f conftest.$ac_objext
32897 if { (ac_try="$ac_compile"
32898 case "(($ac_try" in
32899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903 (eval "$ac_compile") 2>conftest.er1
32905 grep -v '^ *+' conftest.er1 >conftest.err
32907 cat conftest.err >&5
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); } && {
32910 test -z "$ac_c_werror_flag" ||
32911 test ! -s conftest.err
32912 } && test -s conftest.$ac_objext; then
32913 ac_cv_type_signal=int
32915 echo "$as_me: failed program was:" >&5
32916 sed 's/^/| /' conftest.$ac_ext >&5
32918 ac_cv_type_signal=void
32921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32923 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32924 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32926 cat >>confdefs.h <<_ACEOF
32927 #define RETSIGTYPE $ac_cv_type_signal
32932 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32933 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32934 if test "${bash_cv_signal_vintage+set}" = set; then
32935 echo $ECHO_N "(cached) $ECHO_C" >&6
32938 cat >conftest.$ac_ext <<_ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h. */
32944 #include <signal.h>
32950 struct sigaction sa;
32951 sigemptyset(&ss); sigsuspend(&ss);
32952 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32953 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32959 rm -f conftest.$ac_objext conftest$ac_exeext
32960 if { (ac_try="$ac_link"
32961 case "(($ac_try" in
32962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32963 *) ac_try_echo=$ac_try;;
32965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32966 (eval "$ac_link") 2>conftest.er1
32968 grep -v '^ *+' conftest.er1 >conftest.err
32970 cat conftest.err >&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); } && {
32973 test -z "$ac_c_werror_flag" ||
32974 test ! -s conftest.err
32975 } && test -s conftest$ac_exeext &&
32976 $as_test_x conftest$ac_exeext; then
32977 bash_cv_signal_vintage="posix"
32979 echo "$as_me: failed program was:" >&5
32980 sed 's/^/| /' conftest.$ac_ext >&5
32983 cat >conftest.$ac_ext <<_ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h. */
32989 #include <signal.h>
32994 int mask = sigmask(SIGINT);
32995 sigsetmask(mask); sigblock(mask); sigpause(mask);
33001 rm -f conftest.$ac_objext conftest$ac_exeext
33002 if { (ac_try="$ac_link"
33003 case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_link") 2>conftest.er1
33010 grep -v '^ *+' conftest.er1 >conftest.err
33012 cat conftest.err >&5
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); } && {
33015 test -z "$ac_c_werror_flag" ||
33016 test ! -s conftest.err
33017 } && test -s conftest$ac_exeext &&
33018 $as_test_x conftest$ac_exeext; then
33019 bash_cv_signal_vintage="4.2bsd"
33021 echo "$as_me: failed program was:" >&5
33022 sed 's/^/| /' conftest.$ac_ext >&5
33025 cat >conftest.$ac_ext <<_ACEOF
33028 cat confdefs.h >>conftest.$ac_ext
33029 cat >>conftest.$ac_ext <<_ACEOF
33030 /* end confdefs.h. */
33032 #include <signal.h>
33033 RETSIGTYPE foo() { }
33038 int mask = sigmask(SIGINT);
33039 sigset(SIGINT, foo); sigrelse(SIGINT);
33040 sighold(SIGINT); sigpause(SIGINT);
33046 rm -f conftest.$ac_objext conftest$ac_exeext
33047 if { (ac_try="$ac_link"
33048 case "(($ac_try" in
33049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050 *) ac_try_echo=$ac_try;;
33052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053 (eval "$ac_link") 2>conftest.er1
33055 grep -v '^ *+' conftest.er1 >conftest.err
33057 cat conftest.err >&5
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } && {
33060 test -z "$ac_c_werror_flag" ||
33061 test ! -s conftest.err
33062 } && test -s conftest$ac_exeext &&
33063 $as_test_x conftest$ac_exeext; then
33064 bash_cv_signal_vintage="svr3"
33066 echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33069 bash_cv_signal_vintage="v7"
33073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33074 conftest$ac_exeext conftest.$ac_ext
33078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33079 conftest$ac_exeext conftest.$ac_ext
33083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33084 conftest$ac_exeext conftest.$ac_ext
33088 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33089 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33090 if test "$bash_cv_signal_vintage" = "posix"; then
33091 cat >>confdefs.h <<\_ACEOF
33092 #define HAVE_POSIX_SIGNALS 1
33095 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33096 cat >>confdefs.h <<\_ACEOF
33097 #define HAVE_BSD_SIGNALS 1
33100 elif test "$bash_cv_signal_vintage" = "svr3"; then
33101 cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_USG_SIGHOLD 1
33107 { echo "$as_me:$LINENO: checking for mode_t" >&5
33108 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33109 if test "${ac_cv_type_mode_t+set}" = set; then
33110 echo $ECHO_N "(cached) $ECHO_C" >&6
33112 cat >conftest.$ac_ext <<_ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h. */
33118 $ac_includes_default
33119 typedef mode_t ac__type_new_;
33123 if ((ac__type_new_ *) 0)
33125 if (sizeof (ac__type_new_))
33131 rm -f conftest.$ac_objext
33132 if { (ac_try="$ac_compile"
33133 case "(($ac_try" in
33134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135 *) ac_try_echo=$ac_try;;
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138 (eval "$ac_compile") 2>conftest.er1
33140 grep -v '^ *+' conftest.er1 >conftest.err
33142 cat conftest.err >&5
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); } && {
33145 test -z "$ac_c_werror_flag" ||
33146 test ! -s conftest.err
33147 } && test -s conftest.$ac_objext; then
33148 ac_cv_type_mode_t=yes
33150 echo "$as_me: failed program was:" >&5
33151 sed 's/^/| /' conftest.$ac_ext >&5
33153 ac_cv_type_mode_t=no
33156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33158 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33159 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33160 if test $ac_cv_type_mode_t = yes; then
33164 cat >>confdefs.h <<_ACEOF
33170 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33171 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33172 if test "${ac_cv_type_uid_t+set}" = set; then
33173 echo $ECHO_N "(cached) $ECHO_C" >&6
33175 cat >conftest.$ac_ext <<_ACEOF
33178 cat confdefs.h >>conftest.$ac_ext
33179 cat >>conftest.$ac_ext <<_ACEOF
33180 /* end confdefs.h. */
33181 #include <sys/types.h>
33184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33185 $EGREP "uid_t" >/dev/null 2>&1; then
33186 ac_cv_type_uid_t=yes
33188 ac_cv_type_uid_t=no
33193 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33194 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33195 if test $ac_cv_type_uid_t = no; then
33197 cat >>confdefs.h <<\_ACEOF
33202 cat >>confdefs.h <<\_ACEOF
33208 { echo "$as_me:$LINENO: checking for size_t" >&5
33209 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33210 if test "${ac_cv_type_size_t+set}" = set; then
33211 echo $ECHO_N "(cached) $ECHO_C" >&6
33213 cat >conftest.$ac_ext <<_ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h. */
33219 $ac_includes_default
33220 typedef size_t ac__type_new_;
33224 if ((ac__type_new_ *) 0)
33226 if (sizeof (ac__type_new_))
33232 rm -f conftest.$ac_objext
33233 if { (ac_try="$ac_compile"
33234 case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_compile") 2>conftest.er1
33241 grep -v '^ *+' conftest.er1 >conftest.err
33243 cat conftest.err >&5
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); } && {
33246 test -z "$ac_c_werror_flag" ||
33247 test ! -s conftest.err
33248 } && test -s conftest.$ac_objext; then
33249 ac_cv_type_size_t=yes
33251 echo "$as_me: failed program was:" >&5
33252 sed 's/^/| /' conftest.$ac_ext >&5
33254 ac_cv_type_size_t=no
33257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33259 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33260 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33261 if test $ac_cv_type_size_t = yes; then
33265 cat >>confdefs.h <<_ACEOF
33266 #define size_t unsigned int
33271 { echo "$as_me:$LINENO: checking for pid_t" >&5
33272 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33273 if test "${ac_cv_type_pid_t+set}" = set; then
33274 echo $ECHO_N "(cached) $ECHO_C" >&6
33276 cat >conftest.$ac_ext <<_ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h. */
33282 $ac_includes_default
33283 typedef pid_t ac__type_new_;
33287 if ((ac__type_new_ *) 0)
33289 if (sizeof (ac__type_new_))
33295 rm -f conftest.$ac_objext
33296 if { (ac_try="$ac_compile"
33297 case "(($ac_try" in
33298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299 *) ac_try_echo=$ac_try;;
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302 (eval "$ac_compile") 2>conftest.er1
33304 grep -v '^ *+' conftest.er1 >conftest.err
33306 cat conftest.err >&5
33307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308 (exit $ac_status); } && {
33309 test -z "$ac_c_werror_flag" ||
33310 test ! -s conftest.err
33311 } && test -s conftest.$ac_objext; then
33312 ac_cv_type_pid_t=yes
33314 echo "$as_me: failed program was:" >&5
33315 sed 's/^/| /' conftest.$ac_ext >&5
33317 ac_cv_type_pid_t=no
33320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33322 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33323 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33324 if test $ac_cv_type_pid_t = yes; then
33328 cat >>confdefs.h <<_ACEOF
33334 { echo "$as_me:$LINENO: checking for off_t" >&5
33335 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33336 if test "${ac_cv_type_off_t+set}" = set; then
33337 echo $ECHO_N "(cached) $ECHO_C" >&6
33339 cat >conftest.$ac_ext <<_ACEOF
33342 cat confdefs.h >>conftest.$ac_ext
33343 cat >>conftest.$ac_ext <<_ACEOF
33344 /* end confdefs.h. */
33345 $ac_includes_default
33346 typedef off_t ac__type_new_;
33350 if ((ac__type_new_ *) 0)
33352 if (sizeof (ac__type_new_))
33358 rm -f conftest.$ac_objext
33359 if { (ac_try="$ac_compile"
33360 case "(($ac_try" in
33361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362 *) ac_try_echo=$ac_try;;
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365 (eval "$ac_compile") 2>conftest.er1
33367 grep -v '^ *+' conftest.er1 >conftest.err
33369 cat conftest.err >&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } && {
33372 test -z "$ac_c_werror_flag" ||
33373 test ! -s conftest.err
33374 } && test -s conftest.$ac_objext; then
33375 ac_cv_type_off_t=yes
33377 echo "$as_me: failed program was:" >&5
33378 sed 's/^/| /' conftest.$ac_ext >&5
33380 ac_cv_type_off_t=no
33383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33385 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33386 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33387 if test $ac_cv_type_off_t = yes; then
33391 cat >>confdefs.h <<_ACEOF
33392 #define off_t long int
33397 { echo "$as_me:$LINENO: checking for ino_t" >&5
33398 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33399 if test "${ac_cv_type_ino_t+set}" = set; then
33400 echo $ECHO_N "(cached) $ECHO_C" >&6
33402 cat >conftest.$ac_ext <<_ACEOF
33405 cat confdefs.h >>conftest.$ac_ext
33406 cat >>conftest.$ac_ext <<_ACEOF
33407 /* end confdefs.h. */
33408 $ac_includes_default
33409 typedef ino_t ac__type_new_;
33413 if ((ac__type_new_ *) 0)
33415 if (sizeof (ac__type_new_))
33421 rm -f conftest.$ac_objext
33422 if { (ac_try="$ac_compile"
33423 case "(($ac_try" in
33424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425 *) ac_try_echo=$ac_try;;
33427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428 (eval "$ac_compile") 2>conftest.er1
33430 grep -v '^ *+' conftest.er1 >conftest.err
33432 cat conftest.err >&5
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); } && {
33435 test -z "$ac_c_werror_flag" ||
33436 test ! -s conftest.err
33437 } && test -s conftest.$ac_objext; then
33438 ac_cv_type_ino_t=yes
33440 echo "$as_me: failed program was:" >&5
33441 sed 's/^/| /' conftest.$ac_ext >&5
33443 ac_cv_type_ino_t=no
33446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33448 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33449 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33450 if test $ac_cv_type_ino_t = yes; then
33454 cat >>confdefs.h <<_ACEOF
33455 #define ino_t unsigned long
33460 { echo "$as_me:$LINENO: checking for dev_t" >&5
33461 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33462 if test "${ac_cv_type_dev_t+set}" = set; then
33463 echo $ECHO_N "(cached) $ECHO_C" >&6
33465 cat >conftest.$ac_ext <<_ACEOF
33468 cat confdefs.h >>conftest.$ac_ext
33469 cat >>conftest.$ac_ext <<_ACEOF
33470 /* end confdefs.h. */
33471 $ac_includes_default
33472 typedef dev_t ac__type_new_;
33476 if ((ac__type_new_ *) 0)
33478 if (sizeof (ac__type_new_))
33484 rm -f conftest.$ac_objext
33485 if { (ac_try="$ac_compile"
33486 case "(($ac_try" in
33487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488 *) ac_try_echo=$ac_try;;
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_compile") 2>conftest.er1
33493 grep -v '^ *+' conftest.er1 >conftest.err
33495 cat conftest.err >&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); } && {
33498 test -z "$ac_c_werror_flag" ||
33499 test ! -s conftest.err
33500 } && test -s conftest.$ac_objext; then
33501 ac_cv_type_dev_t=yes
33503 echo "$as_me: failed program was:" >&5
33504 sed 's/^/| /' conftest.$ac_ext >&5
33506 ac_cv_type_dev_t=no
33509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33511 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33512 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33513 if test $ac_cv_type_dev_t = yes; then
33517 cat >>confdefs.h <<_ACEOF
33518 #define dev_t unsigned long
33523 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33524 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33525 if test "${ac_cv_type_daddr_t+set}" = set; then
33526 echo $ECHO_N "(cached) $ECHO_C" >&6
33528 cat >conftest.$ac_ext <<_ACEOF
33531 cat confdefs.h >>conftest.$ac_ext
33532 cat >>conftest.$ac_ext <<_ACEOF
33533 /* end confdefs.h. */
33534 $ac_includes_default
33535 typedef daddr_t ac__type_new_;
33539 if ((ac__type_new_ *) 0)
33541 if (sizeof (ac__type_new_))
33547 rm -f conftest.$ac_objext
33548 if { (ac_try="$ac_compile"
33549 case "(($ac_try" in
33550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33551 *) ac_try_echo=$ac_try;;
33553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33554 (eval "$ac_compile") 2>conftest.er1
33556 grep -v '^ *+' conftest.er1 >conftest.err
33558 cat conftest.err >&5
33559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560 (exit $ac_status); } && {
33561 test -z "$ac_c_werror_flag" ||
33562 test ! -s conftest.err
33563 } && test -s conftest.$ac_objext; then
33564 ac_cv_type_daddr_t=yes
33566 echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33569 ac_cv_type_daddr_t=no
33572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33574 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33575 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33576 if test $ac_cv_type_daddr_t = yes; then
33580 cat >>confdefs.h <<_ACEOF
33581 #define daddr_t long
33586 { echo "$as_me:$LINENO: checking for major_t" >&5
33587 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33588 if test "${ac_cv_type_major_t+set}" = set; then
33589 echo $ECHO_N "(cached) $ECHO_C" >&6
33591 cat >conftest.$ac_ext <<_ACEOF
33594 cat confdefs.h >>conftest.$ac_ext
33595 cat >>conftest.$ac_ext <<_ACEOF
33596 /* end confdefs.h. */
33597 $ac_includes_default
33598 typedef major_t ac__type_new_;
33602 if ((ac__type_new_ *) 0)
33604 if (sizeof (ac__type_new_))
33610 rm -f conftest.$ac_objext
33611 if { (ac_try="$ac_compile"
33612 case "(($ac_try" in
33613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33614 *) ac_try_echo=$ac_try;;
33616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33617 (eval "$ac_compile") 2>conftest.er1
33619 grep -v '^ *+' conftest.er1 >conftest.err
33621 cat conftest.err >&5
33622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); } && {
33624 test -z "$ac_c_werror_flag" ||
33625 test ! -s conftest.err
33626 } && test -s conftest.$ac_objext; then
33627 ac_cv_type_major_t=yes
33629 echo "$as_me: failed program was:" >&5
33630 sed 's/^/| /' conftest.$ac_ext >&5
33632 ac_cv_type_major_t=no
33635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33637 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33638 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33639 if test $ac_cv_type_major_t = yes; then
33643 cat >>confdefs.h <<_ACEOF
33644 #define major_t int
33649 { echo "$as_me:$LINENO: checking for minor_t" >&5
33650 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33651 if test "${ac_cv_type_minor_t+set}" = set; then
33652 echo $ECHO_N "(cached) $ECHO_C" >&6
33654 cat >conftest.$ac_ext <<_ACEOF
33657 cat confdefs.h >>conftest.$ac_ext
33658 cat >>conftest.$ac_ext <<_ACEOF
33659 /* end confdefs.h. */
33660 $ac_includes_default
33661 typedef minor_t ac__type_new_;
33665 if ((ac__type_new_ *) 0)
33667 if (sizeof (ac__type_new_))
33673 rm -f conftest.$ac_objext
33674 if { (ac_try="$ac_compile"
33675 case "(($ac_try" in
33676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677 *) ac_try_echo=$ac_try;;
33679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680 (eval "$ac_compile") 2>conftest.er1
33682 grep -v '^ *+' conftest.er1 >conftest.err
33684 cat conftest.err >&5
33685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33686 (exit $ac_status); } && {
33687 test -z "$ac_c_werror_flag" ||
33688 test ! -s conftest.err
33689 } && test -s conftest.$ac_objext; then
33690 ac_cv_type_minor_t=yes
33692 echo "$as_me: failed program was:" >&5
33693 sed 's/^/| /' conftest.$ac_ext >&5
33695 ac_cv_type_minor_t=no
33698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33700 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33701 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33702 if test $ac_cv_type_minor_t = yes; then
33706 cat >>confdefs.h <<_ACEOF
33707 #define minor_t int
33712 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33713 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33714 if test "${ac_cv_type_ssize_t+set}" = set; then
33715 echo $ECHO_N "(cached) $ECHO_C" >&6
33717 cat >conftest.$ac_ext <<_ACEOF
33720 cat confdefs.h >>conftest.$ac_ext
33721 cat >>conftest.$ac_ext <<_ACEOF
33722 /* end confdefs.h. */
33723 $ac_includes_default
33724 typedef ssize_t ac__type_new_;
33728 if ((ac__type_new_ *) 0)
33730 if (sizeof (ac__type_new_))
33736 rm -f conftest.$ac_objext
33737 if { (ac_try="$ac_compile"
33738 case "(($ac_try" in
33739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740 *) ac_try_echo=$ac_try;;
33742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743 (eval "$ac_compile") 2>conftest.er1
33745 grep -v '^ *+' conftest.er1 >conftest.err
33747 cat conftest.err >&5
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); } && {
33750 test -z "$ac_c_werror_flag" ||
33751 test ! -s conftest.err
33752 } && test -s conftest.$ac_objext; then
33753 ac_cv_type_ssize_t=yes
33755 echo "$as_me: failed program was:" >&5
33756 sed 's/^/| /' conftest.$ac_ext >&5
33758 ac_cv_type_ssize_t=no
33761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33763 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33764 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33765 if test $ac_cv_type_ssize_t = yes; then
33769 cat >>confdefs.h <<_ACEOF
33770 #define ssize_t int
33775 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33776 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33777 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33778 echo $ECHO_N "(cached) $ECHO_C" >&6
33780 cat >conftest.$ac_ext <<_ACEOF
33783 cat confdefs.h >>conftest.$ac_ext
33784 cat >>conftest.$ac_ext <<_ACEOF
33785 /* end confdefs.h. */
33786 $ac_includes_default
33790 static struct stat ac_aggr;
33791 if (ac_aggr.st_blocks)
33797 rm -f conftest.$ac_objext
33798 if { (ac_try="$ac_compile"
33799 case "(($ac_try" in
33800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33801 *) ac_try_echo=$ac_try;;
33803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33804 (eval "$ac_compile") 2>conftest.er1
33806 grep -v '^ *+' conftest.er1 >conftest.err
33808 cat conftest.err >&5
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); } && {
33811 test -z "$ac_c_werror_flag" ||
33812 test ! -s conftest.err
33813 } && test -s conftest.$ac_objext; then
33814 ac_cv_member_struct_stat_st_blocks=yes
33816 echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33819 cat >conftest.$ac_ext <<_ACEOF
33822 cat confdefs.h >>conftest.$ac_ext
33823 cat >>conftest.$ac_ext <<_ACEOF
33824 /* end confdefs.h. */
33825 $ac_includes_default
33829 static struct stat ac_aggr;
33830 if (sizeof ac_aggr.st_blocks)
33836 rm -f conftest.$ac_objext
33837 if { (ac_try="$ac_compile"
33838 case "(($ac_try" in
33839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840 *) ac_try_echo=$ac_try;;
33842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843 (eval "$ac_compile") 2>conftest.er1
33845 grep -v '^ *+' conftest.er1 >conftest.err
33847 cat conftest.err >&5
33848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849 (exit $ac_status); } && {
33850 test -z "$ac_c_werror_flag" ||
33851 test ! -s conftest.err
33852 } && test -s conftest.$ac_objext; then
33853 ac_cv_member_struct_stat_st_blocks=yes
33855 echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.$ac_ext >&5
33858 ac_cv_member_struct_stat_st_blocks=no
33861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33866 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33867 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33868 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33870 cat >>confdefs.h <<_ACEOF
33871 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33875 cat >>confdefs.h <<\_ACEOF
33876 #define HAVE_ST_BLOCKS 1
33880 case " $LIBOBJS " in
33881 *" fileblocks.$ac_objext "* ) ;;
33882 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33889 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33890 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33891 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33892 echo $ECHO_N "(cached) $ECHO_C" >&6
33894 cat >conftest.$ac_ext <<_ACEOF
33897 cat confdefs.h >>conftest.$ac_ext
33898 cat >>conftest.$ac_ext <<_ACEOF
33899 /* end confdefs.h. */
33900 $ac_includes_default
33904 static struct stat ac_aggr;
33905 if (ac_aggr.st_rdev)
33911 rm -f conftest.$ac_objext
33912 if { (ac_try="$ac_compile"
33913 case "(($ac_try" in
33914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33915 *) ac_try_echo=$ac_try;;
33917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33918 (eval "$ac_compile") 2>conftest.er1
33920 grep -v '^ *+' conftest.er1 >conftest.err
33922 cat conftest.err >&5
33923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924 (exit $ac_status); } && {
33925 test -z "$ac_c_werror_flag" ||
33926 test ! -s conftest.err
33927 } && test -s conftest.$ac_objext; then
33928 ac_cv_member_struct_stat_st_rdev=yes
33930 echo "$as_me: failed program was:" >&5
33931 sed 's/^/| /' conftest.$ac_ext >&5
33933 cat >conftest.$ac_ext <<_ACEOF
33936 cat confdefs.h >>conftest.$ac_ext
33937 cat >>conftest.$ac_ext <<_ACEOF
33938 /* end confdefs.h. */
33939 $ac_includes_default
33943 static struct stat ac_aggr;
33944 if (sizeof ac_aggr.st_rdev)
33950 rm -f conftest.$ac_objext
33951 if { (ac_try="$ac_compile"
33952 case "(($ac_try" in
33953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33954 *) ac_try_echo=$ac_try;;
33956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33957 (eval "$ac_compile") 2>conftest.er1
33959 grep -v '^ *+' conftest.er1 >conftest.err
33961 cat conftest.err >&5
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); } && {
33964 test -z "$ac_c_werror_flag" ||
33965 test ! -s conftest.err
33966 } && test -s conftest.$ac_objext; then
33967 ac_cv_member_struct_stat_st_rdev=yes
33969 echo "$as_me: failed program was:" >&5
33970 sed 's/^/| /' conftest.$ac_ext >&5
33972 ac_cv_member_struct_stat_st_rdev=no
33975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33980 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33981 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33982 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33984 cat >>confdefs.h <<_ACEOF
33985 #define HAVE_STRUCT_STAT_ST_RDEV 1
33989 cat >>confdefs.h <<\_ACEOF
33990 #define HAVE_ST_RDEV 1
33996 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33997 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
33998 if test "${ac_cv_struct_tm+set}" = set; then
33999 echo $ECHO_N "(cached) $ECHO_C" >&6
34001 cat >conftest.$ac_ext <<_ACEOF
34004 cat confdefs.h >>conftest.$ac_ext
34005 cat >>conftest.$ac_ext <<_ACEOF
34006 /* end confdefs.h. */
34007 #include <sys/types.h>
34014 int *p = &tm.tm_sec;
34020 rm -f conftest.$ac_objext
34021 if { (ac_try="$ac_compile"
34022 case "(($ac_try" in
34023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024 *) ac_try_echo=$ac_try;;
34026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34027 (eval "$ac_compile") 2>conftest.er1
34029 grep -v '^ *+' conftest.er1 >conftest.err
34031 cat conftest.err >&5
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); } && {
34034 test -z "$ac_c_werror_flag" ||
34035 test ! -s conftest.err
34036 } && test -s conftest.$ac_objext; then
34037 ac_cv_struct_tm=time.h
34039 echo "$as_me: failed program was:" >&5
34040 sed 's/^/| /' conftest.$ac_ext >&5
34042 ac_cv_struct_tm=sys/time.h
34045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34047 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34048 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34049 if test $ac_cv_struct_tm = sys/time.h; then
34051 cat >>confdefs.h <<\_ACEOF
34052 #define TM_IN_SYS_TIME 1
34057 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34058 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34059 if test "${ac_cv_c_const+set}" = set; then
34060 echo $ECHO_N "(cached) $ECHO_C" >&6
34062 cat >conftest.$ac_ext <<_ACEOF
34065 cat confdefs.h >>conftest.$ac_ext
34066 cat >>conftest.$ac_ext <<_ACEOF
34067 /* end confdefs.h. */
34072 /* FIXME: Include the comments suggested by Paul. */
34073 #ifndef __cplusplus
34074 /* Ultrix mips cc rejects this. */
34075 typedef int charset[2];
34077 /* SunOS 4.1.1 cc rejects this. */
34078 char const *const *pcpcc;
34080 /* NEC SVR4.0.2 mips cc rejects this. */
34081 struct point {int x, y;};
34082 static struct point const zero = {0,0};
34083 /* AIX XL C 1.02.0.0 rejects this.
34084 It does not let you subtract one const X* pointer from another in
34085 an arm of an if-expression whose if-part is not a constant
34087 const char *g = "string";
34088 pcpcc = &g + (g ? g-g : 0);
34089 /* HPUX 7.0 cc rejects these. */
34091 ppc = (char**) pcpcc;
34092 pcpcc = (char const *const *) ppc;
34093 { /* SCO 3.2v4 cc rejects this. */
34095 char const *s = 0 ? (char *) 0 : (char const *) 0;
34100 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34101 int x[] = {25, 17};
34102 const int *foo = &x[0];
34105 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34106 typedef const int *iptr;
34110 { /* AIX XL C 1.02.0.0 rejects this saying
34111 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34112 struct s { int j; const int *ap[3]; };
34113 struct s *b; b->j = 5;
34115 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34116 const int foo = 10;
34117 if (!foo) return 0;
34119 return !cs[0] && !zero.x;
34126 rm -f conftest.$ac_objext
34127 if { (ac_try="$ac_compile"
34128 case "(($ac_try" in
34129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34130 *) ac_try_echo=$ac_try;;
34132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34133 (eval "$ac_compile") 2>conftest.er1
34135 grep -v '^ *+' conftest.er1 >conftest.err
34137 cat conftest.err >&5
34138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139 (exit $ac_status); } && {
34140 test -z "$ac_c_werror_flag" ||
34141 test ! -s conftest.err
34142 } && test -s conftest.$ac_objext; then
34145 echo "$as_me: failed program was:" >&5
34146 sed 's/^/| /' conftest.$ac_ext >&5
34151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34153 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34154 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34155 if test $ac_cv_c_const = no; then
34157 cat >>confdefs.h <<\_ACEOF
34164 { echo "$as_me:$LINENO: checking for char" >&5
34165 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34166 if test "${ac_cv_type_char+set}" = set; then
34167 echo $ECHO_N "(cached) $ECHO_C" >&6
34169 cat >conftest.$ac_ext <<_ACEOF
34172 cat confdefs.h >>conftest.$ac_ext
34173 cat >>conftest.$ac_ext <<_ACEOF
34174 /* end confdefs.h. */
34175 $ac_includes_default
34176 typedef char ac__type_new_;
34180 if ((ac__type_new_ *) 0)
34182 if (sizeof (ac__type_new_))
34188 rm -f conftest.$ac_objext
34189 if { (ac_try="$ac_compile"
34190 case "(($ac_try" in
34191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34192 *) ac_try_echo=$ac_try;;
34194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34195 (eval "$ac_compile") 2>conftest.er1
34197 grep -v '^ *+' conftest.er1 >conftest.err
34199 cat conftest.err >&5
34200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); } && {
34202 test -z "$ac_c_werror_flag" ||
34203 test ! -s conftest.err
34204 } && test -s conftest.$ac_objext; then
34205 ac_cv_type_char=yes
34207 echo "$as_me: failed program was:" >&5
34208 sed 's/^/| /' conftest.$ac_ext >&5
34213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34215 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34216 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34218 # The cast to long int works around a bug in the HP C Compiler
34219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34221 # This bug is HP SR number 8606223364.
34222 { echo "$as_me:$LINENO: checking size of char" >&5
34223 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34224 if test "${ac_cv_sizeof_char+set}" = set; then
34225 echo $ECHO_N "(cached) $ECHO_C" >&6
34227 if test "$cross_compiling" = yes; then
34228 # Depending upon the size, compute the lo and hi bounds.
34229 cat >conftest.$ac_ext <<_ACEOF
34232 cat confdefs.h >>conftest.$ac_ext
34233 cat >>conftest.$ac_ext <<_ACEOF
34234 /* end confdefs.h. */
34235 $ac_includes_default
34236 typedef char ac__type_sizeof_;
34240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34247 rm -f conftest.$ac_objext
34248 if { (ac_try="$ac_compile"
34249 case "(($ac_try" in
34250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34251 *) ac_try_echo=$ac_try;;
34253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34254 (eval "$ac_compile") 2>conftest.er1
34256 grep -v '^ *+' conftest.er1 >conftest.err
34258 cat conftest.err >&5
34259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260 (exit $ac_status); } && {
34261 test -z "$ac_c_werror_flag" ||
34262 test ! -s conftest.err
34263 } && test -s conftest.$ac_objext; then
34266 cat >conftest.$ac_ext <<_ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h. */
34272 $ac_includes_default
34273 typedef char ac__type_sizeof_;
34277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34284 rm -f conftest.$ac_objext
34285 if { (ac_try="$ac_compile"
34286 case "(($ac_try" in
34287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34288 *) ac_try_echo=$ac_try;;
34290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34291 (eval "$ac_compile") 2>conftest.er1
34293 grep -v '^ *+' conftest.er1 >conftest.err
34295 cat conftest.err >&5
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); } && {
34298 test -z "$ac_c_werror_flag" ||
34299 test ! -s conftest.err
34300 } && test -s conftest.$ac_objext; then
34301 ac_hi=$ac_mid; break
34303 echo "$as_me: failed program was:" >&5
34304 sed 's/^/| /' conftest.$ac_ext >&5
34306 ac_lo=`expr $ac_mid + 1`
34307 if test $ac_lo -le $ac_mid; then
34311 ac_mid=`expr 2 '*' $ac_mid + 1`
34314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34317 echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34320 cat >conftest.$ac_ext <<_ACEOF
34323 cat confdefs.h >>conftest.$ac_ext
34324 cat >>conftest.$ac_ext <<_ACEOF
34325 /* end confdefs.h. */
34326 $ac_includes_default
34327 typedef char ac__type_sizeof_;
34331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34338 rm -f conftest.$ac_objext
34339 if { (ac_try="$ac_compile"
34340 case "(($ac_try" in
34341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34342 *) ac_try_echo=$ac_try;;
34344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34345 (eval "$ac_compile") 2>conftest.er1
34347 grep -v '^ *+' conftest.er1 >conftest.err
34349 cat conftest.err >&5
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); } && {
34352 test -z "$ac_c_werror_flag" ||
34353 test ! -s conftest.err
34354 } && test -s conftest.$ac_objext; then
34357 cat >conftest.$ac_ext <<_ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h. */
34363 $ac_includes_default
34364 typedef char ac__type_sizeof_;
34368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34375 rm -f conftest.$ac_objext
34376 if { (ac_try="$ac_compile"
34377 case "(($ac_try" in
34378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34379 *) ac_try_echo=$ac_try;;
34381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34382 (eval "$ac_compile") 2>conftest.er1
34384 grep -v '^ *+' conftest.er1 >conftest.err
34386 cat conftest.err >&5
34387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388 (exit $ac_status); } && {
34389 test -z "$ac_c_werror_flag" ||
34390 test ! -s conftest.err
34391 } && test -s conftest.$ac_objext; then
34392 ac_lo=$ac_mid; break
34394 echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34397 ac_hi=`expr '(' $ac_mid ')' - 1`
34398 if test $ac_mid -le $ac_hi; then
34402 ac_mid=`expr 2 '*' $ac_mid`
34405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34408 echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34418 # Binary search between lo and hi bounds.
34419 while test "x$ac_lo" != "x$ac_hi"; do
34420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34421 cat >conftest.$ac_ext <<_ACEOF
34424 cat confdefs.h >>conftest.$ac_ext
34425 cat >>conftest.$ac_ext <<_ACEOF
34426 /* end confdefs.h. */
34427 $ac_includes_default
34428 typedef char ac__type_sizeof_;
34432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34439 rm -f conftest.$ac_objext
34440 if { (ac_try="$ac_compile"
34441 case "(($ac_try" in
34442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34443 *) ac_try_echo=$ac_try;;
34445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34446 (eval "$ac_compile") 2>conftest.er1
34448 grep -v '^ *+' conftest.er1 >conftest.err
34450 cat conftest.err >&5
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); } && {
34453 test -z "$ac_c_werror_flag" ||
34454 test ! -s conftest.err
34455 } && test -s conftest.$ac_objext; then
34458 echo "$as_me: failed program was:" >&5
34459 sed 's/^/| /' conftest.$ac_ext >&5
34461 ac_lo=`expr '(' $ac_mid ')' + 1`
34464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34467 ?*) ac_cv_sizeof_char=$ac_lo;;
34468 '') if test "$ac_cv_type_char" = yes; then
34469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34470 See \`config.log' for more details." >&5
34471 echo "$as_me: error: cannot compute sizeof (char)
34472 See \`config.log' for more details." >&2;}
34473 { (exit 77); exit 77; }; }
34475 ac_cv_sizeof_char=0
34479 cat >conftest.$ac_ext <<_ACEOF
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h. */
34485 $ac_includes_default
34486 typedef char ac__type_sizeof_;
34487 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34488 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34490 #include <stdlib.h>
34495 FILE *f = fopen ("conftest.val", "w");
34498 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34500 long int i = longval ();
34501 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34503 fprintf (f, "%ld\n", i);
34507 unsigned long int i = ulongval ();
34508 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34510 fprintf (f, "%lu\n", i);
34512 return ferror (f) || fclose (f) != 0;
34518 rm -f conftest$ac_exeext
34519 if { (ac_try="$ac_link"
34520 case "(($ac_try" in
34521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34522 *) ac_try_echo=$ac_try;;
34524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34525 (eval "$ac_link") 2>&5
34527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34529 { (case "(($ac_try" in
34530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34531 *) ac_try_echo=$ac_try;;
34533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34534 (eval "$ac_try") 2>&5
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); }; }; then
34538 ac_cv_sizeof_char=`cat conftest.val`
34540 echo "$as_me: program exited with status $ac_status" >&5
34541 echo "$as_me: failed program was:" >&5
34542 sed 's/^/| /' conftest.$ac_ext >&5
34544 ( exit $ac_status )
34545 if test "$ac_cv_type_char" = yes; then
34546 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34547 See \`config.log' for more details." >&5
34548 echo "$as_me: error: cannot compute sizeof (char)
34549 See \`config.log' for more details." >&2;}
34550 { (exit 77); exit 77; }; }
34552 ac_cv_sizeof_char=0
34555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34559 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34560 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34564 cat >>confdefs.h <<_ACEOF
34565 #define SIZEOF_CHAR $ac_cv_sizeof_char
34569 { echo "$as_me:$LINENO: checking for short int" >&5
34570 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34571 if test "${ac_cv_type_short_int+set}" = set; then
34572 echo $ECHO_N "(cached) $ECHO_C" >&6
34574 cat >conftest.$ac_ext <<_ACEOF
34577 cat confdefs.h >>conftest.$ac_ext
34578 cat >>conftest.$ac_ext <<_ACEOF
34579 /* end confdefs.h. */
34580 $ac_includes_default
34581 typedef short int ac__type_new_;
34585 if ((ac__type_new_ *) 0)
34587 if (sizeof (ac__type_new_))
34593 rm -f conftest.$ac_objext
34594 if { (ac_try="$ac_compile"
34595 case "(($ac_try" in
34596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34597 *) ac_try_echo=$ac_try;;
34599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34600 (eval "$ac_compile") 2>conftest.er1
34602 grep -v '^ *+' conftest.er1 >conftest.err
34604 cat conftest.err >&5
34605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34606 (exit $ac_status); } && {
34607 test -z "$ac_c_werror_flag" ||
34608 test ! -s conftest.err
34609 } && test -s conftest.$ac_objext; then
34610 ac_cv_type_short_int=yes
34612 echo "$as_me: failed program was:" >&5
34613 sed 's/^/| /' conftest.$ac_ext >&5
34615 ac_cv_type_short_int=no
34618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34620 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34621 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34623 # The cast to long int works around a bug in the HP C Compiler
34624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34626 # This bug is HP SR number 8606223364.
34627 { echo "$as_me:$LINENO: checking size of short int" >&5
34628 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34629 if test "${ac_cv_sizeof_short_int+set}" = set; then
34630 echo $ECHO_N "(cached) $ECHO_C" >&6
34632 if test "$cross_compiling" = yes; then
34633 # Depending upon the size, compute the lo and hi bounds.
34634 cat >conftest.$ac_ext <<_ACEOF
34637 cat confdefs.h >>conftest.$ac_ext
34638 cat >>conftest.$ac_ext <<_ACEOF
34639 /* end confdefs.h. */
34640 $ac_includes_default
34641 typedef short int ac__type_sizeof_;
34645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34652 rm -f conftest.$ac_objext
34653 if { (ac_try="$ac_compile"
34654 case "(($ac_try" in
34655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34656 *) ac_try_echo=$ac_try;;
34658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34659 (eval "$ac_compile") 2>conftest.er1
34661 grep -v '^ *+' conftest.er1 >conftest.err
34663 cat conftest.err >&5
34664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665 (exit $ac_status); } && {
34666 test -z "$ac_c_werror_flag" ||
34667 test ! -s conftest.err
34668 } && test -s conftest.$ac_objext; then
34671 cat >conftest.$ac_ext <<_ACEOF
34674 cat confdefs.h >>conftest.$ac_ext
34675 cat >>conftest.$ac_ext <<_ACEOF
34676 /* end confdefs.h. */
34677 $ac_includes_default
34678 typedef short int ac__type_sizeof_;
34682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34689 rm -f conftest.$ac_objext
34690 if { (ac_try="$ac_compile"
34691 case "(($ac_try" in
34692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34693 *) ac_try_echo=$ac_try;;
34695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34696 (eval "$ac_compile") 2>conftest.er1
34698 grep -v '^ *+' conftest.er1 >conftest.err
34700 cat conftest.err >&5
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); } && {
34703 test -z "$ac_c_werror_flag" ||
34704 test ! -s conftest.err
34705 } && test -s conftest.$ac_objext; then
34706 ac_hi=$ac_mid; break
34708 echo "$as_me: failed program was:" >&5
34709 sed 's/^/| /' conftest.$ac_ext >&5
34711 ac_lo=`expr $ac_mid + 1`
34712 if test $ac_lo -le $ac_mid; then
34716 ac_mid=`expr 2 '*' $ac_mid + 1`
34719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34722 echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34725 cat >conftest.$ac_ext <<_ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h. */
34731 $ac_includes_default
34732 typedef short int ac__type_sizeof_;
34736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34743 rm -f conftest.$ac_objext
34744 if { (ac_try="$ac_compile"
34745 case "(($ac_try" in
34746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34747 *) ac_try_echo=$ac_try;;
34749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34750 (eval "$ac_compile") 2>conftest.er1
34752 grep -v '^ *+' conftest.er1 >conftest.err
34754 cat conftest.err >&5
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); } && {
34757 test -z "$ac_c_werror_flag" ||
34758 test ! -s conftest.err
34759 } && test -s conftest.$ac_objext; then
34762 cat >conftest.$ac_ext <<_ACEOF
34765 cat confdefs.h >>conftest.$ac_ext
34766 cat >>conftest.$ac_ext <<_ACEOF
34767 /* end confdefs.h. */
34768 $ac_includes_default
34769 typedef short int ac__type_sizeof_;
34773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34780 rm -f conftest.$ac_objext
34781 if { (ac_try="$ac_compile"
34782 case "(($ac_try" in
34783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784 *) ac_try_echo=$ac_try;;
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787 (eval "$ac_compile") 2>conftest.er1
34789 grep -v '^ *+' conftest.er1 >conftest.err
34791 cat conftest.err >&5
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); } && {
34794 test -z "$ac_c_werror_flag" ||
34795 test ! -s conftest.err
34796 } && test -s conftest.$ac_objext; then
34797 ac_lo=$ac_mid; break
34799 echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34802 ac_hi=`expr '(' $ac_mid ')' - 1`
34803 if test $ac_mid -le $ac_hi; then
34807 ac_mid=`expr 2 '*' $ac_mid`
34810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34813 echo "$as_me: failed program was:" >&5
34814 sed 's/^/| /' conftest.$ac_ext >&5
34819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34823 # Binary search between lo and hi bounds.
34824 while test "x$ac_lo" != "x$ac_hi"; do
34825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34826 cat >conftest.$ac_ext <<_ACEOF
34829 cat confdefs.h >>conftest.$ac_ext
34830 cat >>conftest.$ac_ext <<_ACEOF
34831 /* end confdefs.h. */
34832 $ac_includes_default
34833 typedef short int ac__type_sizeof_;
34837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34844 rm -f conftest.$ac_objext
34845 if { (ac_try="$ac_compile"
34846 case "(($ac_try" in
34847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848 *) ac_try_echo=$ac_try;;
34850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851 (eval "$ac_compile") 2>conftest.er1
34853 grep -v '^ *+' conftest.er1 >conftest.err
34855 cat conftest.err >&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); } && {
34858 test -z "$ac_c_werror_flag" ||
34859 test ! -s conftest.err
34860 } && test -s conftest.$ac_objext; then
34863 echo "$as_me: failed program was:" >&5
34864 sed 's/^/| /' conftest.$ac_ext >&5
34866 ac_lo=`expr '(' $ac_mid ')' + 1`
34869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34872 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34873 '') if test "$ac_cv_type_short_int" = yes; then
34874 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34875 See \`config.log' for more details." >&5
34876 echo "$as_me: error: cannot compute sizeof (short int)
34877 See \`config.log' for more details." >&2;}
34878 { (exit 77); exit 77; }; }
34880 ac_cv_sizeof_short_int=0
34884 cat >conftest.$ac_ext <<_ACEOF
34887 cat confdefs.h >>conftest.$ac_ext
34888 cat >>conftest.$ac_ext <<_ACEOF
34889 /* end confdefs.h. */
34890 $ac_includes_default
34891 typedef short int ac__type_sizeof_;
34892 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34893 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34895 #include <stdlib.h>
34900 FILE *f = fopen ("conftest.val", "w");
34903 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34905 long int i = longval ();
34906 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34908 fprintf (f, "%ld\n", i);
34912 unsigned long int i = ulongval ();
34913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34915 fprintf (f, "%lu\n", i);
34917 return ferror (f) || fclose (f) != 0;
34923 rm -f conftest$ac_exeext
34924 if { (ac_try="$ac_link"
34925 case "(($ac_try" in
34926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34927 *) ac_try_echo=$ac_try;;
34929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34930 (eval "$ac_link") 2>&5
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34934 { (case "(($ac_try" in
34935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936 *) ac_try_echo=$ac_try;;
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939 (eval "$ac_try") 2>&5
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); }; }; then
34943 ac_cv_sizeof_short_int=`cat conftest.val`
34945 echo "$as_me: program exited with status $ac_status" >&5
34946 echo "$as_me: failed program was:" >&5
34947 sed 's/^/| /' conftest.$ac_ext >&5
34949 ( exit $ac_status )
34950 if test "$ac_cv_type_short_int" = yes; then
34951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34952 See \`config.log' for more details." >&5
34953 echo "$as_me: error: cannot compute sizeof (short int)
34954 See \`config.log' for more details." >&2;}
34955 { (exit 77); exit 77; }; }
34957 ac_cv_sizeof_short_int=0
34960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34964 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34965 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34969 cat >>confdefs.h <<_ACEOF
34970 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34974 { echo "$as_me:$LINENO: checking for int" >&5
34975 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34976 if test "${ac_cv_type_int+set}" = set; then
34977 echo $ECHO_N "(cached) $ECHO_C" >&6
34979 cat >conftest.$ac_ext <<_ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h. */
34985 $ac_includes_default
34986 typedef int ac__type_new_;
34990 if ((ac__type_new_ *) 0)
34992 if (sizeof (ac__type_new_))
34998 rm -f conftest.$ac_objext
34999 if { (ac_try="$ac_compile"
35000 case "(($ac_try" in
35001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35002 *) ac_try_echo=$ac_try;;
35004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35005 (eval "$ac_compile") 2>conftest.er1
35007 grep -v '^ *+' conftest.er1 >conftest.err
35009 cat conftest.err >&5
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); } && {
35012 test -z "$ac_c_werror_flag" ||
35013 test ! -s conftest.err
35014 } && test -s conftest.$ac_objext; then
35017 echo "$as_me: failed program was:" >&5
35018 sed 's/^/| /' conftest.$ac_ext >&5
35023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35025 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35026 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35028 # The cast to long int works around a bug in the HP C Compiler
35029 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35030 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35031 # This bug is HP SR number 8606223364.
35032 { echo "$as_me:$LINENO: checking size of int" >&5
35033 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35034 if test "${ac_cv_sizeof_int+set}" = set; then
35035 echo $ECHO_N "(cached) $ECHO_C" >&6
35037 if test "$cross_compiling" = yes; then
35038 # Depending upon the size, compute the lo and hi bounds.
35039 cat >conftest.$ac_ext <<_ACEOF
35042 cat confdefs.h >>conftest.$ac_ext
35043 cat >>conftest.$ac_ext <<_ACEOF
35044 /* end confdefs.h. */
35045 $ac_includes_default
35046 typedef int ac__type_sizeof_;
35050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35057 rm -f conftest.$ac_objext
35058 if { (ac_try="$ac_compile"
35059 case "(($ac_try" in
35060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35061 *) ac_try_echo=$ac_try;;
35063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35064 (eval "$ac_compile") 2>conftest.er1
35066 grep -v '^ *+' conftest.er1 >conftest.err
35068 cat conftest.err >&5
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); } && {
35071 test -z "$ac_c_werror_flag" ||
35072 test ! -s conftest.err
35073 } && test -s conftest.$ac_objext; then
35076 cat >conftest.$ac_ext <<_ACEOF
35079 cat confdefs.h >>conftest.$ac_ext
35080 cat >>conftest.$ac_ext <<_ACEOF
35081 /* end confdefs.h. */
35082 $ac_includes_default
35083 typedef int ac__type_sizeof_;
35087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35094 rm -f conftest.$ac_objext
35095 if { (ac_try="$ac_compile"
35096 case "(($ac_try" in
35097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098 *) ac_try_echo=$ac_try;;
35100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35101 (eval "$ac_compile") 2>conftest.er1
35103 grep -v '^ *+' conftest.er1 >conftest.err
35105 cat conftest.err >&5
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); } && {
35108 test -z "$ac_c_werror_flag" ||
35109 test ! -s conftest.err
35110 } && test -s conftest.$ac_objext; then
35111 ac_hi=$ac_mid; break
35113 echo "$as_me: failed program was:" >&5
35114 sed 's/^/| /' conftest.$ac_ext >&5
35116 ac_lo=`expr $ac_mid + 1`
35117 if test $ac_lo -le $ac_mid; then
35121 ac_mid=`expr 2 '*' $ac_mid + 1`
35124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35127 echo "$as_me: failed program was:" >&5
35128 sed 's/^/| /' conftest.$ac_ext >&5
35130 cat >conftest.$ac_ext <<_ACEOF
35133 cat confdefs.h >>conftest.$ac_ext
35134 cat >>conftest.$ac_ext <<_ACEOF
35135 /* end confdefs.h. */
35136 $ac_includes_default
35137 typedef int ac__type_sizeof_;
35141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35148 rm -f conftest.$ac_objext
35149 if { (ac_try="$ac_compile"
35150 case "(($ac_try" in
35151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35152 *) ac_try_echo=$ac_try;;
35154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35155 (eval "$ac_compile") 2>conftest.er1
35157 grep -v '^ *+' conftest.er1 >conftest.err
35159 cat conftest.err >&5
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161 (exit $ac_status); } && {
35162 test -z "$ac_c_werror_flag" ||
35163 test ! -s conftest.err
35164 } && test -s conftest.$ac_objext; then
35167 cat >conftest.$ac_ext <<_ACEOF
35170 cat confdefs.h >>conftest.$ac_ext
35171 cat >>conftest.$ac_ext <<_ACEOF
35172 /* end confdefs.h. */
35173 $ac_includes_default
35174 typedef int ac__type_sizeof_;
35178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35185 rm -f conftest.$ac_objext
35186 if { (ac_try="$ac_compile"
35187 case "(($ac_try" in
35188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35189 *) ac_try_echo=$ac_try;;
35191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35192 (eval "$ac_compile") 2>conftest.er1
35194 grep -v '^ *+' conftest.er1 >conftest.err
35196 cat conftest.err >&5
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); } && {
35199 test -z "$ac_c_werror_flag" ||
35200 test ! -s conftest.err
35201 } && test -s conftest.$ac_objext; then
35202 ac_lo=$ac_mid; break
35204 echo "$as_me: failed program was:" >&5
35205 sed 's/^/| /' conftest.$ac_ext >&5
35207 ac_hi=`expr '(' $ac_mid ')' - 1`
35208 if test $ac_mid -le $ac_hi; then
35212 ac_mid=`expr 2 '*' $ac_mid`
35215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35218 echo "$as_me: failed program was:" >&5
35219 sed 's/^/| /' conftest.$ac_ext >&5
35224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35228 # Binary search between lo and hi bounds.
35229 while test "x$ac_lo" != "x$ac_hi"; do
35230 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35231 cat >conftest.$ac_ext <<_ACEOF
35234 cat confdefs.h >>conftest.$ac_ext
35235 cat >>conftest.$ac_ext <<_ACEOF
35236 /* end confdefs.h. */
35237 $ac_includes_default
35238 typedef int ac__type_sizeof_;
35242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35249 rm -f conftest.$ac_objext
35250 if { (ac_try="$ac_compile"
35251 case "(($ac_try" in
35252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35253 *) ac_try_echo=$ac_try;;
35255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35256 (eval "$ac_compile") 2>conftest.er1
35258 grep -v '^ *+' conftest.er1 >conftest.err
35260 cat conftest.err >&5
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); } && {
35263 test -z "$ac_c_werror_flag" ||
35264 test ! -s conftest.err
35265 } && test -s conftest.$ac_objext; then
35268 echo "$as_me: failed program was:" >&5
35269 sed 's/^/| /' conftest.$ac_ext >&5
35271 ac_lo=`expr '(' $ac_mid ')' + 1`
35274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35277 ?*) ac_cv_sizeof_int=$ac_lo;;
35278 '') if test "$ac_cv_type_int" = yes; then
35279 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35280 See \`config.log' for more details." >&5
35281 echo "$as_me: error: cannot compute sizeof (int)
35282 See \`config.log' for more details." >&2;}
35283 { (exit 77); exit 77; }; }
35289 cat >conftest.$ac_ext <<_ACEOF
35292 cat confdefs.h >>conftest.$ac_ext
35293 cat >>conftest.$ac_ext <<_ACEOF
35294 /* end confdefs.h. */
35295 $ac_includes_default
35296 typedef int ac__type_sizeof_;
35297 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35298 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35300 #include <stdlib.h>
35305 FILE *f = fopen ("conftest.val", "w");
35308 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35310 long int i = longval ();
35311 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35313 fprintf (f, "%ld\n", i);
35317 unsigned long int i = ulongval ();
35318 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35320 fprintf (f, "%lu\n", i);
35322 return ferror (f) || fclose (f) != 0;
35328 rm -f conftest$ac_exeext
35329 if { (ac_try="$ac_link"
35330 case "(($ac_try" in
35331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35332 *) ac_try_echo=$ac_try;;
35334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35335 (eval "$ac_link") 2>&5
35337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35339 { (case "(($ac_try" in
35340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35341 *) ac_try_echo=$ac_try;;
35343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35344 (eval "$ac_try") 2>&5
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); }; }; then
35348 ac_cv_sizeof_int=`cat conftest.val`
35350 echo "$as_me: program exited with status $ac_status" >&5
35351 echo "$as_me: failed program was:" >&5
35352 sed 's/^/| /' conftest.$ac_ext >&5
35354 ( exit $ac_status )
35355 if test "$ac_cv_type_int" = yes; then
35356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35357 See \`config.log' for more details." >&5
35358 echo "$as_me: error: cannot compute sizeof (int)
35359 See \`config.log' for more details." >&2;}
35360 { (exit 77); exit 77; }; }
35365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35369 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35370 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35374 cat >>confdefs.h <<_ACEOF
35375 #define SIZEOF_INT $ac_cv_sizeof_int
35379 { echo "$as_me:$LINENO: checking for long int" >&5
35380 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35381 if test "${ac_cv_type_long_int+set}" = set; then
35382 echo $ECHO_N "(cached) $ECHO_C" >&6
35384 cat >conftest.$ac_ext <<_ACEOF
35387 cat confdefs.h >>conftest.$ac_ext
35388 cat >>conftest.$ac_ext <<_ACEOF
35389 /* end confdefs.h. */
35390 $ac_includes_default
35391 typedef long int ac__type_new_;
35395 if ((ac__type_new_ *) 0)
35397 if (sizeof (ac__type_new_))
35403 rm -f conftest.$ac_objext
35404 if { (ac_try="$ac_compile"
35405 case "(($ac_try" in
35406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35407 *) ac_try_echo=$ac_try;;
35409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35410 (eval "$ac_compile") 2>conftest.er1
35412 grep -v '^ *+' conftest.er1 >conftest.err
35414 cat conftest.err >&5
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); } && {
35417 test -z "$ac_c_werror_flag" ||
35418 test ! -s conftest.err
35419 } && test -s conftest.$ac_objext; then
35420 ac_cv_type_long_int=yes
35422 echo "$as_me: failed program was:" >&5
35423 sed 's/^/| /' conftest.$ac_ext >&5
35425 ac_cv_type_long_int=no
35428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35430 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35431 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35433 # The cast to long int works around a bug in the HP C Compiler
35434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35436 # This bug is HP SR number 8606223364.
35437 { echo "$as_me:$LINENO: checking size of long int" >&5
35438 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35439 if test "${ac_cv_sizeof_long_int+set}" = set; then
35440 echo $ECHO_N "(cached) $ECHO_C" >&6
35442 if test "$cross_compiling" = yes; then
35443 # Depending upon the size, compute the lo and hi bounds.
35444 cat >conftest.$ac_ext <<_ACEOF
35447 cat confdefs.h >>conftest.$ac_ext
35448 cat >>conftest.$ac_ext <<_ACEOF
35449 /* end confdefs.h. */
35450 $ac_includes_default
35451 typedef long int ac__type_sizeof_;
35455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35462 rm -f conftest.$ac_objext
35463 if { (ac_try="$ac_compile"
35464 case "(($ac_try" in
35465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35466 *) ac_try_echo=$ac_try;;
35468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35469 (eval "$ac_compile") 2>conftest.er1
35471 grep -v '^ *+' conftest.er1 >conftest.err
35473 cat conftest.err >&5
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); } && {
35476 test -z "$ac_c_werror_flag" ||
35477 test ! -s conftest.err
35478 } && test -s conftest.$ac_objext; then
35481 cat >conftest.$ac_ext <<_ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h. */
35487 $ac_includes_default
35488 typedef long int ac__type_sizeof_;
35492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35499 rm -f conftest.$ac_objext
35500 if { (ac_try="$ac_compile"
35501 case "(($ac_try" in
35502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35503 *) ac_try_echo=$ac_try;;
35505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35506 (eval "$ac_compile") 2>conftest.er1
35508 grep -v '^ *+' conftest.er1 >conftest.err
35510 cat conftest.err >&5
35511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512 (exit $ac_status); } && {
35513 test -z "$ac_c_werror_flag" ||
35514 test ! -s conftest.err
35515 } && test -s conftest.$ac_objext; then
35516 ac_hi=$ac_mid; break
35518 echo "$as_me: failed program was:" >&5
35519 sed 's/^/| /' conftest.$ac_ext >&5
35521 ac_lo=`expr $ac_mid + 1`
35522 if test $ac_lo -le $ac_mid; then
35526 ac_mid=`expr 2 '*' $ac_mid + 1`
35529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35532 echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35535 cat >conftest.$ac_ext <<_ACEOF
35538 cat confdefs.h >>conftest.$ac_ext
35539 cat >>conftest.$ac_ext <<_ACEOF
35540 /* end confdefs.h. */
35541 $ac_includes_default
35542 typedef long int ac__type_sizeof_;
35546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35553 rm -f conftest.$ac_objext
35554 if { (ac_try="$ac_compile"
35555 case "(($ac_try" in
35556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35557 *) ac_try_echo=$ac_try;;
35559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35560 (eval "$ac_compile") 2>conftest.er1
35562 grep -v '^ *+' conftest.er1 >conftest.err
35564 cat conftest.err >&5
35565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); } && {
35567 test -z "$ac_c_werror_flag" ||
35568 test ! -s conftest.err
35569 } && test -s conftest.$ac_objext; then
35572 cat >conftest.$ac_ext <<_ACEOF
35575 cat confdefs.h >>conftest.$ac_ext
35576 cat >>conftest.$ac_ext <<_ACEOF
35577 /* end confdefs.h. */
35578 $ac_includes_default
35579 typedef long int ac__type_sizeof_;
35583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35590 rm -f conftest.$ac_objext
35591 if { (ac_try="$ac_compile"
35592 case "(($ac_try" in
35593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35594 *) ac_try_echo=$ac_try;;
35596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35597 (eval "$ac_compile") 2>conftest.er1
35599 grep -v '^ *+' conftest.er1 >conftest.err
35601 cat conftest.err >&5
35602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603 (exit $ac_status); } && {
35604 test -z "$ac_c_werror_flag" ||
35605 test ! -s conftest.err
35606 } && test -s conftest.$ac_objext; then
35607 ac_lo=$ac_mid; break
35609 echo "$as_me: failed program was:" >&5
35610 sed 's/^/| /' conftest.$ac_ext >&5
35612 ac_hi=`expr '(' $ac_mid ')' - 1`
35613 if test $ac_mid -le $ac_hi; then
35617 ac_mid=`expr 2 '*' $ac_mid`
35620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35623 echo "$as_me: failed program was:" >&5
35624 sed 's/^/| /' conftest.$ac_ext >&5
35629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35633 # Binary search between lo and hi bounds.
35634 while test "x$ac_lo" != "x$ac_hi"; do
35635 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35636 cat >conftest.$ac_ext <<_ACEOF
35639 cat confdefs.h >>conftest.$ac_ext
35640 cat >>conftest.$ac_ext <<_ACEOF
35641 /* end confdefs.h. */
35642 $ac_includes_default
35643 typedef long int ac__type_sizeof_;
35647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35654 rm -f conftest.$ac_objext
35655 if { (ac_try="$ac_compile"
35656 case "(($ac_try" in
35657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35658 *) ac_try_echo=$ac_try;;
35660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35661 (eval "$ac_compile") 2>conftest.er1
35663 grep -v '^ *+' conftest.er1 >conftest.err
35665 cat conftest.err >&5
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); } && {
35668 test -z "$ac_c_werror_flag" ||
35669 test ! -s conftest.err
35670 } && test -s conftest.$ac_objext; then
35673 echo "$as_me: failed program was:" >&5
35674 sed 's/^/| /' conftest.$ac_ext >&5
35676 ac_lo=`expr '(' $ac_mid ')' + 1`
35679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35682 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35683 '') if test "$ac_cv_type_long_int" = yes; then
35684 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35685 See \`config.log' for more details." >&5
35686 echo "$as_me: error: cannot compute sizeof (long int)
35687 See \`config.log' for more details." >&2;}
35688 { (exit 77); exit 77; }; }
35690 ac_cv_sizeof_long_int=0
35694 cat >conftest.$ac_ext <<_ACEOF
35697 cat confdefs.h >>conftest.$ac_ext
35698 cat >>conftest.$ac_ext <<_ACEOF
35699 /* end confdefs.h. */
35700 $ac_includes_default
35701 typedef long int ac__type_sizeof_;
35702 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35703 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35705 #include <stdlib.h>
35710 FILE *f = fopen ("conftest.val", "w");
35713 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35715 long int i = longval ();
35716 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35718 fprintf (f, "%ld\n", i);
35722 unsigned long int i = ulongval ();
35723 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35725 fprintf (f, "%lu\n", i);
35727 return ferror (f) || fclose (f) != 0;
35733 rm -f conftest$ac_exeext
35734 if { (ac_try="$ac_link"
35735 case "(($ac_try" in
35736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35737 *) ac_try_echo=$ac_try;;
35739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35740 (eval "$ac_link") 2>&5
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35744 { (case "(($ac_try" in
35745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35746 *) ac_try_echo=$ac_try;;
35748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35749 (eval "$ac_try") 2>&5
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); }; }; then
35753 ac_cv_sizeof_long_int=`cat conftest.val`
35755 echo "$as_me: program exited with status $ac_status" >&5
35756 echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35759 ( exit $ac_status )
35760 if test "$ac_cv_type_long_int" = yes; then
35761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35762 See \`config.log' for more details." >&5
35763 echo "$as_me: error: cannot compute sizeof (long int)
35764 See \`config.log' for more details." >&2;}
35765 { (exit 77); exit 77; }; }
35767 ac_cv_sizeof_long_int=0
35770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35774 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35775 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35779 cat >>confdefs.h <<_ACEOF
35780 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35784 { echo "$as_me:$LINENO: checking for long long int" >&5
35785 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35786 if test "${ac_cv_type_long_long_int+set}" = set; then
35787 echo $ECHO_N "(cached) $ECHO_C" >&6
35789 cat >conftest.$ac_ext <<_ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h. */
35795 $ac_includes_default
35796 typedef long long int ac__type_new_;
35800 if ((ac__type_new_ *) 0)
35802 if (sizeof (ac__type_new_))
35808 rm -f conftest.$ac_objext
35809 if { (ac_try="$ac_compile"
35810 case "(($ac_try" in
35811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35812 *) ac_try_echo=$ac_try;;
35814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35815 (eval "$ac_compile") 2>conftest.er1
35817 grep -v '^ *+' conftest.er1 >conftest.err
35819 cat conftest.err >&5
35820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821 (exit $ac_status); } && {
35822 test -z "$ac_c_werror_flag" ||
35823 test ! -s conftest.err
35824 } && test -s conftest.$ac_objext; then
35825 ac_cv_type_long_long_int=yes
35827 echo "$as_me: failed program was:" >&5
35828 sed 's/^/| /' conftest.$ac_ext >&5
35830 ac_cv_type_long_long_int=no
35833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35835 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35836 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35838 # The cast to long int works around a bug in the HP C Compiler
35839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35841 # This bug is HP SR number 8606223364.
35842 { echo "$as_me:$LINENO: checking size of long long int" >&5
35843 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35844 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35845 echo $ECHO_N "(cached) $ECHO_C" >&6
35847 if test "$cross_compiling" = yes; then
35848 # Depending upon the size, compute the lo and hi bounds.
35849 cat >conftest.$ac_ext <<_ACEOF
35852 cat confdefs.h >>conftest.$ac_ext
35853 cat >>conftest.$ac_ext <<_ACEOF
35854 /* end confdefs.h. */
35855 $ac_includes_default
35856 typedef long long int ac__type_sizeof_;
35860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35867 rm -f conftest.$ac_objext
35868 if { (ac_try="$ac_compile"
35869 case "(($ac_try" in
35870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871 *) ac_try_echo=$ac_try;;
35873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35874 (eval "$ac_compile") 2>conftest.er1
35876 grep -v '^ *+' conftest.er1 >conftest.err
35878 cat conftest.err >&5
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); } && {
35881 test -z "$ac_c_werror_flag" ||
35882 test ! -s conftest.err
35883 } && test -s conftest.$ac_objext; then
35886 cat >conftest.$ac_ext <<_ACEOF
35889 cat confdefs.h >>conftest.$ac_ext
35890 cat >>conftest.$ac_ext <<_ACEOF
35891 /* end confdefs.h. */
35892 $ac_includes_default
35893 typedef long long int ac__type_sizeof_;
35897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35904 rm -f conftest.$ac_objext
35905 if { (ac_try="$ac_compile"
35906 case "(($ac_try" in
35907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35908 *) ac_try_echo=$ac_try;;
35910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35911 (eval "$ac_compile") 2>conftest.er1
35913 grep -v '^ *+' conftest.er1 >conftest.err
35915 cat conftest.err >&5
35916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917 (exit $ac_status); } && {
35918 test -z "$ac_c_werror_flag" ||
35919 test ! -s conftest.err
35920 } && test -s conftest.$ac_objext; then
35921 ac_hi=$ac_mid; break
35923 echo "$as_me: failed program was:" >&5
35924 sed 's/^/| /' conftest.$ac_ext >&5
35926 ac_lo=`expr $ac_mid + 1`
35927 if test $ac_lo -le $ac_mid; then
35931 ac_mid=`expr 2 '*' $ac_mid + 1`
35934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35937 echo "$as_me: failed program was:" >&5
35938 sed 's/^/| /' conftest.$ac_ext >&5
35940 cat >conftest.$ac_ext <<_ACEOF
35943 cat confdefs.h >>conftest.$ac_ext
35944 cat >>conftest.$ac_ext <<_ACEOF
35945 /* end confdefs.h. */
35946 $ac_includes_default
35947 typedef long long int ac__type_sizeof_;
35951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35958 rm -f conftest.$ac_objext
35959 if { (ac_try="$ac_compile"
35960 case "(($ac_try" in
35961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35962 *) ac_try_echo=$ac_try;;
35964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35965 (eval "$ac_compile") 2>conftest.er1
35967 grep -v '^ *+' conftest.er1 >conftest.err
35969 cat conftest.err >&5
35970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971 (exit $ac_status); } && {
35972 test -z "$ac_c_werror_flag" ||
35973 test ! -s conftest.err
35974 } && test -s conftest.$ac_objext; then
35977 cat >conftest.$ac_ext <<_ACEOF
35980 cat confdefs.h >>conftest.$ac_ext
35981 cat >>conftest.$ac_ext <<_ACEOF
35982 /* end confdefs.h. */
35983 $ac_includes_default
35984 typedef long long int ac__type_sizeof_;
35988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35995 rm -f conftest.$ac_objext
35996 if { (ac_try="$ac_compile"
35997 case "(($ac_try" in
35998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35999 *) ac_try_echo=$ac_try;;
36001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36002 (eval "$ac_compile") 2>conftest.er1
36004 grep -v '^ *+' conftest.er1 >conftest.err
36006 cat conftest.err >&5
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); } && {
36009 test -z "$ac_c_werror_flag" ||
36010 test ! -s conftest.err
36011 } && test -s conftest.$ac_objext; then
36012 ac_lo=$ac_mid; break
36014 echo "$as_me: failed program was:" >&5
36015 sed 's/^/| /' conftest.$ac_ext >&5
36017 ac_hi=`expr '(' $ac_mid ')' - 1`
36018 if test $ac_mid -le $ac_hi; then
36022 ac_mid=`expr 2 '*' $ac_mid`
36025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36028 echo "$as_me: failed program was:" >&5
36029 sed 's/^/| /' conftest.$ac_ext >&5
36034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36038 # Binary search between lo and hi bounds.
36039 while test "x$ac_lo" != "x$ac_hi"; do
36040 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36041 cat >conftest.$ac_ext <<_ACEOF
36044 cat confdefs.h >>conftest.$ac_ext
36045 cat >>conftest.$ac_ext <<_ACEOF
36046 /* end confdefs.h. */
36047 $ac_includes_default
36048 typedef long long int ac__type_sizeof_;
36052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36059 rm -f conftest.$ac_objext
36060 if { (ac_try="$ac_compile"
36061 case "(($ac_try" in
36062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36063 *) ac_try_echo=$ac_try;;
36065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36066 (eval "$ac_compile") 2>conftest.er1
36068 grep -v '^ *+' conftest.er1 >conftest.err
36070 cat conftest.err >&5
36071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 (exit $ac_status); } && {
36073 test -z "$ac_c_werror_flag" ||
36074 test ! -s conftest.err
36075 } && test -s conftest.$ac_objext; then
36078 echo "$as_me: failed program was:" >&5
36079 sed 's/^/| /' conftest.$ac_ext >&5
36081 ac_lo=`expr '(' $ac_mid ')' + 1`
36084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36087 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36088 '') if test "$ac_cv_type_long_long_int" = yes; then
36089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36090 See \`config.log' for more details." >&5
36091 echo "$as_me: error: cannot compute sizeof (long long int)
36092 See \`config.log' for more details." >&2;}
36093 { (exit 77); exit 77; }; }
36095 ac_cv_sizeof_long_long_int=0
36099 cat >conftest.$ac_ext <<_ACEOF
36102 cat confdefs.h >>conftest.$ac_ext
36103 cat >>conftest.$ac_ext <<_ACEOF
36104 /* end confdefs.h. */
36105 $ac_includes_default
36106 typedef long long int ac__type_sizeof_;
36107 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36108 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36110 #include <stdlib.h>
36115 FILE *f = fopen ("conftest.val", "w");
36118 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36120 long int i = longval ();
36121 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36123 fprintf (f, "%ld\n", i);
36127 unsigned long int i = ulongval ();
36128 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36130 fprintf (f, "%lu\n", i);
36132 return ferror (f) || fclose (f) != 0;
36138 rm -f conftest$ac_exeext
36139 if { (ac_try="$ac_link"
36140 case "(($ac_try" in
36141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36142 *) ac_try_echo=$ac_try;;
36144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36145 (eval "$ac_link") 2>&5
36147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36149 { (case "(($ac_try" in
36150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36151 *) ac_try_echo=$ac_try;;
36153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36154 (eval "$ac_try") 2>&5
36156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157 (exit $ac_status); }; }; then
36158 ac_cv_sizeof_long_long_int=`cat conftest.val`
36160 echo "$as_me: program exited with status $ac_status" >&5
36161 echo "$as_me: failed program was:" >&5
36162 sed 's/^/| /' conftest.$ac_ext >&5
36164 ( exit $ac_status )
36165 if test "$ac_cv_type_long_long_int" = yes; then
36166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36167 See \`config.log' for more details." >&5
36168 echo "$as_me: error: cannot compute sizeof (long long int)
36169 See \`config.log' for more details." >&2;}
36170 { (exit 77); exit 77; }; }
36172 ac_cv_sizeof_long_long_int=0
36175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36179 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36180 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36184 cat >>confdefs.h <<_ACEOF
36185 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36189 { echo "$as_me:$LINENO: checking for int *" >&5
36190 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36191 if test "${ac_cv_type_int_p+set}" = set; then
36192 echo $ECHO_N "(cached) $ECHO_C" >&6
36194 cat >conftest.$ac_ext <<_ACEOF
36197 cat confdefs.h >>conftest.$ac_ext
36198 cat >>conftest.$ac_ext <<_ACEOF
36199 /* end confdefs.h. */
36200 $ac_includes_default
36201 typedef int * ac__type_new_;
36205 if ((ac__type_new_ *) 0)
36207 if (sizeof (ac__type_new_))
36213 rm -f conftest.$ac_objext
36214 if { (ac_try="$ac_compile"
36215 case "(($ac_try" in
36216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36217 *) ac_try_echo=$ac_try;;
36219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36220 (eval "$ac_compile") 2>conftest.er1
36222 grep -v '^ *+' conftest.er1 >conftest.err
36224 cat conftest.err >&5
36225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226 (exit $ac_status); } && {
36227 test -z "$ac_c_werror_flag" ||
36228 test ! -s conftest.err
36229 } && test -s conftest.$ac_objext; then
36230 ac_cv_type_int_p=yes
36232 echo "$as_me: failed program was:" >&5
36233 sed 's/^/| /' conftest.$ac_ext >&5
36235 ac_cv_type_int_p=no
36238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36240 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36241 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36243 # The cast to long int works around a bug in the HP C Compiler
36244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36246 # This bug is HP SR number 8606223364.
36247 { echo "$as_me:$LINENO: checking size of int *" >&5
36248 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36249 if test "${ac_cv_sizeof_int_p+set}" = set; then
36250 echo $ECHO_N "(cached) $ECHO_C" >&6
36252 if test "$cross_compiling" = yes; then
36253 # Depending upon the size, compute the lo and hi bounds.
36254 cat >conftest.$ac_ext <<_ACEOF
36257 cat confdefs.h >>conftest.$ac_ext
36258 cat >>conftest.$ac_ext <<_ACEOF
36259 /* end confdefs.h. */
36260 $ac_includes_default
36261 typedef int * ac__type_sizeof_;
36265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36272 rm -f conftest.$ac_objext
36273 if { (ac_try="$ac_compile"
36274 case "(($ac_try" in
36275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36276 *) ac_try_echo=$ac_try;;
36278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36279 (eval "$ac_compile") 2>conftest.er1
36281 grep -v '^ *+' conftest.er1 >conftest.err
36283 cat conftest.err >&5
36284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285 (exit $ac_status); } && {
36286 test -z "$ac_c_werror_flag" ||
36287 test ! -s conftest.err
36288 } && test -s conftest.$ac_objext; then
36291 cat >conftest.$ac_ext <<_ACEOF
36294 cat confdefs.h >>conftest.$ac_ext
36295 cat >>conftest.$ac_ext <<_ACEOF
36296 /* end confdefs.h. */
36297 $ac_includes_default
36298 typedef int * ac__type_sizeof_;
36302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36309 rm -f conftest.$ac_objext
36310 if { (ac_try="$ac_compile"
36311 case "(($ac_try" in
36312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36313 *) ac_try_echo=$ac_try;;
36315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36316 (eval "$ac_compile") 2>conftest.er1
36318 grep -v '^ *+' conftest.er1 >conftest.err
36320 cat conftest.err >&5
36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); } && {
36323 test -z "$ac_c_werror_flag" ||
36324 test ! -s conftest.err
36325 } && test -s conftest.$ac_objext; then
36326 ac_hi=$ac_mid; break
36328 echo "$as_me: failed program was:" >&5
36329 sed 's/^/| /' conftest.$ac_ext >&5
36331 ac_lo=`expr $ac_mid + 1`
36332 if test $ac_lo -le $ac_mid; then
36336 ac_mid=`expr 2 '*' $ac_mid + 1`
36339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36342 echo "$as_me: failed program was:" >&5
36343 sed 's/^/| /' conftest.$ac_ext >&5
36345 cat >conftest.$ac_ext <<_ACEOF
36348 cat confdefs.h >>conftest.$ac_ext
36349 cat >>conftest.$ac_ext <<_ACEOF
36350 /* end confdefs.h. */
36351 $ac_includes_default
36352 typedef int * ac__type_sizeof_;
36356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36363 rm -f conftest.$ac_objext
36364 if { (ac_try="$ac_compile"
36365 case "(($ac_try" in
36366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36367 *) ac_try_echo=$ac_try;;
36369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36370 (eval "$ac_compile") 2>conftest.er1
36372 grep -v '^ *+' conftest.er1 >conftest.err
36374 cat conftest.err >&5
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); } && {
36377 test -z "$ac_c_werror_flag" ||
36378 test ! -s conftest.err
36379 } && test -s conftest.$ac_objext; then
36382 cat >conftest.$ac_ext <<_ACEOF
36385 cat confdefs.h >>conftest.$ac_ext
36386 cat >>conftest.$ac_ext <<_ACEOF
36387 /* end confdefs.h. */
36388 $ac_includes_default
36389 typedef int * ac__type_sizeof_;
36393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36400 rm -f conftest.$ac_objext
36401 if { (ac_try="$ac_compile"
36402 case "(($ac_try" in
36403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36404 *) ac_try_echo=$ac_try;;
36406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36407 (eval "$ac_compile") 2>conftest.er1
36409 grep -v '^ *+' conftest.er1 >conftest.err
36411 cat conftest.err >&5
36412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); } && {
36414 test -z "$ac_c_werror_flag" ||
36415 test ! -s conftest.err
36416 } && test -s conftest.$ac_objext; then
36417 ac_lo=$ac_mid; break
36419 echo "$as_me: failed program was:" >&5
36420 sed 's/^/| /' conftest.$ac_ext >&5
36422 ac_hi=`expr '(' $ac_mid ')' - 1`
36423 if test $ac_mid -le $ac_hi; then
36427 ac_mid=`expr 2 '*' $ac_mid`
36430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36433 echo "$as_me: failed program was:" >&5
36434 sed 's/^/| /' conftest.$ac_ext >&5
36439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36443 # Binary search between lo and hi bounds.
36444 while test "x$ac_lo" != "x$ac_hi"; do
36445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36446 cat >conftest.$ac_ext <<_ACEOF
36449 cat confdefs.h >>conftest.$ac_ext
36450 cat >>conftest.$ac_ext <<_ACEOF
36451 /* end confdefs.h. */
36452 $ac_includes_default
36453 typedef int * ac__type_sizeof_;
36457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36464 rm -f conftest.$ac_objext
36465 if { (ac_try="$ac_compile"
36466 case "(($ac_try" in
36467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36468 *) ac_try_echo=$ac_try;;
36470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36471 (eval "$ac_compile") 2>conftest.er1
36473 grep -v '^ *+' conftest.er1 >conftest.err
36475 cat conftest.err >&5
36476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477 (exit $ac_status); } && {
36478 test -z "$ac_c_werror_flag" ||
36479 test ! -s conftest.err
36480 } && test -s conftest.$ac_objext; then
36483 echo "$as_me: failed program was:" >&5
36484 sed 's/^/| /' conftest.$ac_ext >&5
36486 ac_lo=`expr '(' $ac_mid ')' + 1`
36489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36492 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36493 '') if test "$ac_cv_type_int_p" = yes; then
36494 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36495 See \`config.log' for more details." >&5
36496 echo "$as_me: error: cannot compute sizeof (int *)
36497 See \`config.log' for more details." >&2;}
36498 { (exit 77); exit 77; }; }
36500 ac_cv_sizeof_int_p=0
36504 cat >conftest.$ac_ext <<_ACEOF
36507 cat confdefs.h >>conftest.$ac_ext
36508 cat >>conftest.$ac_ext <<_ACEOF
36509 /* end confdefs.h. */
36510 $ac_includes_default
36511 typedef int * ac__type_sizeof_;
36512 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36513 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36515 #include <stdlib.h>
36520 FILE *f = fopen ("conftest.val", "w");
36523 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36525 long int i = longval ();
36526 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36528 fprintf (f, "%ld\n", i);
36532 unsigned long int i = ulongval ();
36533 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36535 fprintf (f, "%lu\n", i);
36537 return ferror (f) || fclose (f) != 0;
36543 rm -f conftest$ac_exeext
36544 if { (ac_try="$ac_link"
36545 case "(($ac_try" in
36546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36547 *) ac_try_echo=$ac_try;;
36549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36550 (eval "$ac_link") 2>&5
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36554 { (case "(($ac_try" in
36555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36556 *) ac_try_echo=$ac_try;;
36558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36559 (eval "$ac_try") 2>&5
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); }; }; then
36563 ac_cv_sizeof_int_p=`cat conftest.val`
36565 echo "$as_me: program exited with status $ac_status" >&5
36566 echo "$as_me: failed program was:" >&5
36567 sed 's/^/| /' conftest.$ac_ext >&5
36569 ( exit $ac_status )
36570 if test "$ac_cv_type_int_p" = yes; then
36571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36572 See \`config.log' for more details." >&5
36573 echo "$as_me: error: cannot compute sizeof (int *)
36574 See \`config.log' for more details." >&2;}
36575 { (exit 77); exit 77; }; }
36577 ac_cv_sizeof_int_p=0
36580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36584 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36585 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36589 cat >>confdefs.h <<_ACEOF
36590 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36595 { echo "$as_me:$LINENO: checking for u_int type" >&5
36596 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36597 if test "${ac_cv_have_u_int+set}" = set; then
36598 echo $ECHO_N "(cached) $ECHO_C" >&6
36601 cat >conftest.$ac_ext <<_ACEOF
36604 cat confdefs.h >>conftest.$ac_ext
36605 cat >>conftest.$ac_ext <<_ACEOF
36606 /* end confdefs.h. */
36608 #include <sys/types.h>
36620 rm -f conftest.$ac_objext
36621 if { (ac_try="$ac_compile"
36622 case "(($ac_try" in
36623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36624 *) ac_try_echo=$ac_try;;
36626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36627 (eval "$ac_compile") 2>conftest.er1
36629 grep -v '^ *+' conftest.er1 >conftest.err
36631 cat conftest.err >&5
36632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633 (exit $ac_status); } && {
36634 test -z "$ac_c_werror_flag" ||
36635 test ! -s conftest.err
36636 } && test -s conftest.$ac_objext; then
36638 ac_cv_have_u_int="yes"
36641 echo "$as_me: failed program was:" >&5
36642 sed 's/^/| /' conftest.$ac_ext >&5
36645 ac_cv_have_u_int="no"
36650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36654 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36655 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36656 if test "x$ac_cv_have_u_int" = "xyes" ; then
36657 cat >>confdefs.h <<\_ACEOF
36658 #define HAVE_U_INT 1
36664 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36665 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36666 if test "${ac_cv_have_intmax_t+set}" = set; then
36667 echo $ECHO_N "(cached) $ECHO_C" >&6
36670 cat >conftest.$ac_ext <<_ACEOF
36673 cat confdefs.h >>conftest.$ac_ext
36674 cat >>conftest.$ac_ext <<_ACEOF
36675 /* end confdefs.h. */
36677 #include <sys/types.h>
36689 rm -f conftest.$ac_objext
36690 if { (ac_try="$ac_compile"
36691 case "(($ac_try" in
36692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36693 *) ac_try_echo=$ac_try;;
36695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36696 (eval "$ac_compile") 2>conftest.er1
36698 grep -v '^ *+' conftest.er1 >conftest.err
36700 cat conftest.err >&5
36701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36702 (exit $ac_status); } && {
36703 test -z "$ac_c_werror_flag" ||
36704 test ! -s conftest.err
36705 } && test -s conftest.$ac_objext; then
36707 ac_cv_have_intmax_t="yes"
36710 echo "$as_me: failed program was:" >&5
36711 sed 's/^/| /' conftest.$ac_ext >&5
36714 cat >conftest.$ac_ext <<_ACEOF
36717 cat confdefs.h >>conftest.$ac_ext
36718 cat >>conftest.$ac_ext <<_ACEOF
36719 /* end confdefs.h. */
36721 #include <stdint.h>
36733 rm -f conftest.$ac_objext
36734 if { (ac_try="$ac_compile"
36735 case "(($ac_try" in
36736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36737 *) ac_try_echo=$ac_try;;
36739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36740 (eval "$ac_compile") 2>conftest.er1
36742 grep -v '^ *+' conftest.er1 >conftest.err
36744 cat conftest.err >&5
36745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746 (exit $ac_status); } && {
36747 test -z "$ac_c_werror_flag" ||
36748 test ! -s conftest.err
36749 } && test -s conftest.$ac_objext; then
36751 ac_cv_have_intmax_t="yes"
36754 echo "$as_me: failed program was:" >&5
36755 sed 's/^/| /' conftest.$ac_ext >&5
36758 ac_cv_have_intmax_t="no"
36763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36772 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36773 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36774 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36775 cat >>confdefs.h <<\_ACEOF
36776 #define HAVE_INTMAX_T 1
36782 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36783 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36784 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36785 echo $ECHO_N "(cached) $ECHO_C" >&6
36788 cat >conftest.$ac_ext <<_ACEOF
36791 cat confdefs.h >>conftest.$ac_ext
36792 cat >>conftest.$ac_ext <<_ACEOF
36793 /* end confdefs.h. */
36795 #include <sys/types.h>
36801 u_intmax_t a; a = 1;
36807 rm -f conftest.$ac_objext
36808 if { (ac_try="$ac_compile"
36809 case "(($ac_try" in
36810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36811 *) ac_try_echo=$ac_try;;
36813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36814 (eval "$ac_compile") 2>conftest.er1
36816 grep -v '^ *+' conftest.er1 >conftest.err
36818 cat conftest.err >&5
36819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820 (exit $ac_status); } && {
36821 test -z "$ac_c_werror_flag" ||
36822 test ! -s conftest.err
36823 } && test -s conftest.$ac_objext; then
36825 ac_cv_have_u_intmax_t="yes"
36828 echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36832 cat >conftest.$ac_ext <<_ACEOF
36835 cat confdefs.h >>conftest.$ac_ext
36836 cat >>conftest.$ac_ext <<_ACEOF
36837 /* end confdefs.h. */
36839 #include <stdint.h>
36845 u_intmax_t a; a = 1;
36851 rm -f conftest.$ac_objext
36852 if { (ac_try="$ac_compile"
36853 case "(($ac_try" in
36854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36855 *) ac_try_echo=$ac_try;;
36857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36858 (eval "$ac_compile") 2>conftest.er1
36860 grep -v '^ *+' conftest.er1 >conftest.err
36862 cat conftest.err >&5
36863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864 (exit $ac_status); } && {
36865 test -z "$ac_c_werror_flag" ||
36866 test ! -s conftest.err
36867 } && test -s conftest.$ac_objext; then
36869 ac_cv_have_u_intmax_t="yes"
36872 echo "$as_me: failed program was:" >&5
36873 sed 's/^/| /' conftest.$ac_ext >&5
36876 ac_cv_have_u_intmax_t="no"
36881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36890 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36891 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36892 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36893 cat >>confdefs.h <<\_ACEOF
36894 #define HAVE_U_INTMAX_T 1
36900 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36901 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36902 if test "${ac_cv_have_intxx_t+set}" = set; then
36903 echo $ECHO_N "(cached) $ECHO_C" >&6
36906 cat >conftest.$ac_ext <<_ACEOF
36909 cat confdefs.h >>conftest.$ac_ext
36910 cat >>conftest.$ac_ext <<_ACEOF
36911 /* end confdefs.h. */
36913 #include <sys/types.h>
36919 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36925 rm -f conftest.$ac_objext
36926 if { (ac_try="$ac_compile"
36927 case "(($ac_try" in
36928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36929 *) ac_try_echo=$ac_try;;
36931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36932 (eval "$ac_compile") 2>conftest.er1
36934 grep -v '^ *+' conftest.er1 >conftest.err
36936 cat conftest.err >&5
36937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938 (exit $ac_status); } && {
36939 test -z "$ac_c_werror_flag" ||
36940 test ! -s conftest.err
36941 } && test -s conftest.$ac_objext; then
36943 ac_cv_have_intxx_t="yes"
36946 echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36950 ac_cv_have_intxx_t="no"
36955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36959 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36960 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36961 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36962 cat >>confdefs.h <<\_ACEOF
36963 #define HAVE_INTXX_T 1
36969 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36970 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36971 if test "${ac_cv_have_int64_t+set}" = set; then
36972 echo $ECHO_N "(cached) $ECHO_C" >&6
36975 cat >conftest.$ac_ext <<_ACEOF
36978 cat confdefs.h >>conftest.$ac_ext
36979 cat >>conftest.$ac_ext <<_ACEOF
36980 /* end confdefs.h. */
36982 #include <sys/types.h>
36994 rm -f conftest.$ac_objext
36995 if { (ac_try="$ac_compile"
36996 case "(($ac_try" in
36997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36998 *) ac_try_echo=$ac_try;;
37000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37001 (eval "$ac_compile") 2>conftest.er1
37003 grep -v '^ *+' conftest.er1 >conftest.err
37005 cat conftest.err >&5
37006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37007 (exit $ac_status); } && {
37008 test -z "$ac_c_werror_flag" ||
37009 test ! -s conftest.err
37010 } && test -s conftest.$ac_objext; then
37012 ac_cv_have_int64_t="yes"
37015 echo "$as_me: failed program was:" >&5
37016 sed 's/^/| /' conftest.$ac_ext >&5
37019 ac_cv_have_int64_t="no"
37024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37028 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37029 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37030 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37031 cat >>confdefs.h <<\_ACEOF
37032 #define HAVE_INT64_T 1
37038 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37039 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37040 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37041 echo $ECHO_N "(cached) $ECHO_C" >&6
37044 cat >conftest.$ac_ext <<_ACEOF
37047 cat confdefs.h >>conftest.$ac_ext
37048 cat >>conftest.$ac_ext <<_ACEOF
37049 /* end confdefs.h. */
37051 #include <sys/types.h>
37057 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37063 rm -f conftest.$ac_objext
37064 if { (ac_try="$ac_compile"
37065 case "(($ac_try" in
37066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37067 *) ac_try_echo=$ac_try;;
37069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37070 (eval "$ac_compile") 2>conftest.er1
37072 grep -v '^ *+' conftest.er1 >conftest.err
37074 cat conftest.err >&5
37075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076 (exit $ac_status); } && {
37077 test -z "$ac_c_werror_flag" ||
37078 test ! -s conftest.err
37079 } && test -s conftest.$ac_objext; then
37081 ac_cv_have_u_intxx_t="yes"
37084 echo "$as_me: failed program was:" >&5
37085 sed 's/^/| /' conftest.$ac_ext >&5
37088 ac_cv_have_u_intxx_t="no"
37093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37097 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37098 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37099 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37100 cat >>confdefs.h <<\_ACEOF
37101 #define HAVE_U_INTXX_T 1
37107 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37108 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37109 if test "${ac_cv_have_u_int64_t+set}" = set; then
37110 echo $ECHO_N "(cached) $ECHO_C" >&6
37113 cat >conftest.$ac_ext <<_ACEOF
37116 cat confdefs.h >>conftest.$ac_ext
37117 cat >>conftest.$ac_ext <<_ACEOF
37118 /* end confdefs.h. */
37120 #include <sys/types.h>
37126 u_int64_t a; a = 1;
37132 rm -f conftest.$ac_objext
37133 if { (ac_try="$ac_compile"
37134 case "(($ac_try" in
37135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37136 *) ac_try_echo=$ac_try;;
37138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37139 (eval "$ac_compile") 2>conftest.er1
37141 grep -v '^ *+' conftest.er1 >conftest.err
37143 cat conftest.err >&5
37144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145 (exit $ac_status); } && {
37146 test -z "$ac_c_werror_flag" ||
37147 test ! -s conftest.err
37148 } && test -s conftest.$ac_objext; then
37150 ac_cv_have_u_int64_t="yes"
37153 echo "$as_me: failed program was:" >&5
37154 sed 's/^/| /' conftest.$ac_ext >&5
37157 ac_cv_have_u_int64_t="no"
37162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37166 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37167 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37168 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37169 cat >>confdefs.h <<\_ACEOF
37170 #define HAVE_U_INT64_T 1
37176 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37177 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37179 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37180 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37181 cat >conftest.$ac_ext <<_ACEOF
37184 cat confdefs.h >>conftest.$ac_ext
37185 cat >>conftest.$ac_ext <<_ACEOF
37186 /* end confdefs.h. */
37188 #include <sys/bitypes.h>
37194 int8_t a; int16_t b; int32_t c;
37195 u_int8_t e; u_int16_t f; u_int32_t g;
37196 a = b = c = e = f = g = 1;
37202 rm -f conftest.$ac_objext
37203 if { (ac_try="$ac_compile"
37204 case "(($ac_try" in
37205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37206 *) ac_try_echo=$ac_try;;
37208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37209 (eval "$ac_compile") 2>conftest.er1
37211 grep -v '^ *+' conftest.er1 >conftest.err
37213 cat conftest.err >&5
37214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37215 (exit $ac_status); } && {
37216 test -z "$ac_c_werror_flag" ||
37217 test ! -s conftest.err
37218 } && test -s conftest.$ac_objext; then
37220 cat >>confdefs.h <<\_ACEOF
37221 #define HAVE_U_INTXX_T 1
37224 cat >>confdefs.h <<\_ACEOF
37225 #define HAVE_INTXX_T 1
37228 cat >>confdefs.h <<\_ACEOF
37229 #define HAVE_SYS_BITYPES_H 1
37232 { echo "$as_me:$LINENO: result: yes" >&5
37233 echo "${ECHO_T}yes" >&6; }
37236 echo "$as_me: failed program was:" >&5
37237 sed 's/^/| /' conftest.$ac_ext >&5
37240 { echo "$as_me:$LINENO: result: no" >&5
37241 echo "${ECHO_T}no" >&6; }
37246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37249 if test -z "$have_u_intxx_t" ; then
37250 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37251 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37252 if test "${ac_cv_have_uintxx_t+set}" = set; then
37253 echo $ECHO_N "(cached) $ECHO_C" >&6
37256 cat >conftest.$ac_ext <<_ACEOF
37259 cat confdefs.h >>conftest.$ac_ext
37260 cat >>conftest.$ac_ext <<_ACEOF
37261 /* end confdefs.h. */
37263 #include <sys/types.h>
37269 uint8_t a; uint16_t b;
37270 uint32_t c; a = b = c = 1;
37276 rm -f conftest.$ac_objext
37277 if { (ac_try="$ac_compile"
37278 case "(($ac_try" in
37279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37280 *) ac_try_echo=$ac_try;;
37282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37283 (eval "$ac_compile") 2>conftest.er1
37285 grep -v '^ *+' conftest.er1 >conftest.err
37287 cat conftest.err >&5
37288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289 (exit $ac_status); } && {
37290 test -z "$ac_c_werror_flag" ||
37291 test ! -s conftest.err
37292 } && test -s conftest.$ac_objext; then
37294 ac_cv_have_uintxx_t="yes"
37297 echo "$as_me: failed program was:" >&5
37298 sed 's/^/| /' conftest.$ac_ext >&5
37301 ac_cv_have_uintxx_t="no"
37306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37310 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37311 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37312 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37313 cat >>confdefs.h <<\_ACEOF
37314 #define HAVE_UINTXX_T 1
37320 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37321 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37323 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37324 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37325 cat >conftest.$ac_ext <<_ACEOF
37328 cat confdefs.h >>conftest.$ac_ext
37329 cat >>conftest.$ac_ext <<_ACEOF
37330 /* end confdefs.h. */
37332 #include <sys/bitypes.h>
37338 int64_t a; u_int64_t b;
37345 rm -f conftest.$ac_objext
37346 if { (ac_try="$ac_compile"
37347 case "(($ac_try" in
37348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37349 *) ac_try_echo=$ac_try;;
37351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37352 (eval "$ac_compile") 2>conftest.er1
37354 grep -v '^ *+' conftest.er1 >conftest.err
37356 cat conftest.err >&5
37357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37358 (exit $ac_status); } && {
37359 test -z "$ac_c_werror_flag" ||
37360 test ! -s conftest.err
37361 } && test -s conftest.$ac_objext; then
37363 cat >>confdefs.h <<\_ACEOF
37364 #define HAVE_U_INT64_T 1
37367 cat >>confdefs.h <<\_ACEOF
37368 #define HAVE_INT64_T 1
37371 { echo "$as_me:$LINENO: result: yes" >&5
37372 echo "${ECHO_T}yes" >&6; }
37375 echo "$as_me: failed program was:" >&5
37376 sed 's/^/| /' conftest.$ac_ext >&5
37379 { echo "$as_me:$LINENO: result: no" >&5
37380 echo "${ECHO_T}no" >&6; }
37385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37388 if (test -z "$have_uintxx_t" && \
37389 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37391 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37392 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37393 cat >conftest.$ac_ext <<_ACEOF
37396 cat confdefs.h >>conftest.$ac_ext
37397 cat >>conftest.$ac_ext <<_ACEOF
37398 /* end confdefs.h. */
37400 #include <sys/bitypes.h>
37406 uint8_t a; uint16_t b;
37407 uint32_t c; a = b = c = 1;
37413 rm -f conftest.$ac_objext
37414 if { (ac_try="$ac_compile"
37415 case "(($ac_try" in
37416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37417 *) ac_try_echo=$ac_try;;
37419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37420 (eval "$ac_compile") 2>conftest.er1
37422 grep -v '^ *+' conftest.er1 >conftest.err
37424 cat conftest.err >&5
37425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426 (exit $ac_status); } && {
37427 test -z "$ac_c_werror_flag" ||
37428 test ! -s conftest.err
37429 } && test -s conftest.$ac_objext; then
37431 cat >>confdefs.h <<\_ACEOF
37432 #define HAVE_UINTXX_T 1
37435 { echo "$as_me:$LINENO: result: yes" >&5
37436 echo "${ECHO_T}yes" >&6; }
37439 echo "$as_me: failed program was:" >&5
37440 sed 's/^/| /' conftest.$ac_ext >&5
37443 { echo "$as_me:$LINENO: result: no" >&5
37444 echo "${ECHO_T}no" >&6; }
37449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37485 echo $ECHO_N "(cached) $ECHO_C" >&6
37487 cat >conftest.$ac_ext <<_ACEOF
37490 cat confdefs.h >>conftest.$ac_ext
37491 cat >>conftest.$ac_ext <<_ACEOF
37492 /* end confdefs.h. */
37493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37495 #define $ac_func innocuous_$ac_func
37497 /* System header to define __stub macros and hopefully few prototypes,
37498 which can conflict with char $ac_func (); below.
37499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37500 <limits.h> exists even on freestanding compilers. */
37503 # include <limits.h>
37505 # include <assert.h>
37510 /* Override any GCC internal prototype to avoid an error.
37511 Use char because int might match the return type of a GCC
37512 builtin and then its argument prototype would still apply. */
37517 /* The GNU C library defines this for functions which it implements
37518 to always fail with ENOSYS. Some functions are actually named
37519 something starting with __ and the normal name is an alias. */
37520 #if defined __stub_$ac_func || defined __stub___$ac_func
37527 return $ac_func ();
37532 rm -f conftest.$ac_objext conftest$ac_exeext
37533 if { (ac_try="$ac_link"
37534 case "(($ac_try" in
37535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37536 *) ac_try_echo=$ac_try;;
37538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37539 (eval "$ac_link") 2>conftest.er1
37541 grep -v '^ *+' conftest.er1 >conftest.err
37543 cat conftest.err >&5
37544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37545 (exit $ac_status); } && {
37546 test -z "$ac_c_werror_flag" ||
37547 test ! -s conftest.err
37548 } && test -s conftest$ac_exeext &&
37549 $as_test_x conftest$ac_exeext; then
37550 eval "$as_ac_var=yes"
37552 echo "$as_me: failed program was:" >&5
37553 sed 's/^/| /' conftest.$ac_ext >&5
37555 eval "$as_ac_var=no"
37558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37559 conftest$ac_exeext conftest.$ac_ext
37561 ac_res=`eval echo '${'$as_ac_var'}'`
37562 { echo "$as_me:$LINENO: result: $ac_res" >&5
37563 echo "${ECHO_T}$ac_res" >&6; }
37564 if test `eval echo '${'$as_ac_var'}'` = yes; then
37565 cat >>confdefs.h <<_ACEOF
37566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37570 echo 'configure: cannot find needed function.'; exit 1
37577 for ac_func in fchdir
37579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37583 echo $ECHO_N "(cached) $ECHO_C" >&6
37585 cat >conftest.$ac_ext <<_ACEOF
37588 cat confdefs.h >>conftest.$ac_ext
37589 cat >>conftest.$ac_ext <<_ACEOF
37590 /* end confdefs.h. */
37591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37593 #define $ac_func innocuous_$ac_func
37595 /* System header to define __stub macros and hopefully few prototypes,
37596 which can conflict with char $ac_func (); below.
37597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37598 <limits.h> exists even on freestanding compilers. */
37601 # include <limits.h>
37603 # include <assert.h>
37608 /* Override any GCC internal prototype to avoid an error.
37609 Use char because int might match the return type of a GCC
37610 builtin and then its argument prototype would still apply. */
37615 /* The GNU C library defines this for functions which it implements
37616 to always fail with ENOSYS. Some functions are actually named
37617 something starting with __ and the normal name is an alias. */
37618 #if defined __stub_$ac_func || defined __stub___$ac_func
37625 return $ac_func ();
37630 rm -f conftest.$ac_objext conftest$ac_exeext
37631 if { (ac_try="$ac_link"
37632 case "(($ac_try" in
37633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37634 *) ac_try_echo=$ac_try;;
37636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37637 (eval "$ac_link") 2>conftest.er1
37639 grep -v '^ *+' conftest.er1 >conftest.err
37641 cat conftest.err >&5
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); } && {
37644 test -z "$ac_c_werror_flag" ||
37645 test ! -s conftest.err
37646 } && test -s conftest$ac_exeext &&
37647 $as_test_x conftest$ac_exeext; then
37648 eval "$as_ac_var=yes"
37650 echo "$as_me: failed program was:" >&5
37651 sed 's/^/| /' conftest.$ac_ext >&5
37653 eval "$as_ac_var=no"
37656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37657 conftest$ac_exeext conftest.$ac_ext
37659 ac_res=`eval echo '${'$as_ac_var'}'`
37660 { echo "$as_me:$LINENO: result: $ac_res" >&5
37661 echo "${ECHO_T}$ac_res" >&6; }
37662 if test `eval echo '${'$as_ac_var'}'` = yes; then
37663 cat >>confdefs.h <<_ACEOF
37664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37666 cat >>confdefs.h <<\_ACEOF
37667 #define HAVE_FCHDIR 1
37674 for ac_func in strtoll
37676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37680 echo $ECHO_N "(cached) $ECHO_C" >&6
37682 cat >conftest.$ac_ext <<_ACEOF
37685 cat confdefs.h >>conftest.$ac_ext
37686 cat >>conftest.$ac_ext <<_ACEOF
37687 /* end confdefs.h. */
37688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37690 #define $ac_func innocuous_$ac_func
37692 /* System header to define __stub macros and hopefully few prototypes,
37693 which can conflict with char $ac_func (); below.
37694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37695 <limits.h> exists even on freestanding compilers. */
37698 # include <limits.h>
37700 # include <assert.h>
37705 /* Override any GCC internal prototype to avoid an error.
37706 Use char because int might match the return type of a GCC
37707 builtin and then its argument prototype would still apply. */
37712 /* The GNU C library defines this for functions which it implements
37713 to always fail with ENOSYS. Some functions are actually named
37714 something starting with __ and the normal name is an alias. */
37715 #if defined __stub_$ac_func || defined __stub___$ac_func
37722 return $ac_func ();
37727 rm -f conftest.$ac_objext conftest$ac_exeext
37728 if { (ac_try="$ac_link"
37729 case "(($ac_try" in
37730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37731 *) ac_try_echo=$ac_try;;
37733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37734 (eval "$ac_link") 2>conftest.er1
37736 grep -v '^ *+' conftest.er1 >conftest.err
37738 cat conftest.err >&5
37739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37740 (exit $ac_status); } && {
37741 test -z "$ac_c_werror_flag" ||
37742 test ! -s conftest.err
37743 } && test -s conftest$ac_exeext &&
37744 $as_test_x conftest$ac_exeext; then
37745 eval "$as_ac_var=yes"
37747 echo "$as_me: failed program was:" >&5
37748 sed 's/^/| /' conftest.$ac_ext >&5
37750 eval "$as_ac_var=no"
37753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37754 conftest$ac_exeext conftest.$ac_ext
37756 ac_res=`eval echo '${'$as_ac_var'}'`
37757 { echo "$as_me:$LINENO: result: $ac_res" >&5
37758 echo "${ECHO_T}$ac_res" >&6; }
37759 if test `eval echo '${'$as_ac_var'}'` = yes; then
37760 cat >>confdefs.h <<_ACEOF
37761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37763 cat >>confdefs.h <<\_ACEOF
37764 #define HAVE_STRTOLL 1
37771 for ac_func in posix_fadvise
37773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37777 echo $ECHO_N "(cached) $ECHO_C" >&6
37779 cat >conftest.$ac_ext <<_ACEOF
37782 cat confdefs.h >>conftest.$ac_ext
37783 cat >>conftest.$ac_ext <<_ACEOF
37784 /* end confdefs.h. */
37785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37787 #define $ac_func innocuous_$ac_func
37789 /* System header to define __stub macros and hopefully few prototypes,
37790 which can conflict with char $ac_func (); below.
37791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37792 <limits.h> exists even on freestanding compilers. */
37795 # include <limits.h>
37797 # include <assert.h>
37802 /* Override any GCC internal prototype to avoid an error.
37803 Use char because int might match the return type of a GCC
37804 builtin and then its argument prototype would still apply. */
37809 /* The GNU C library defines this for functions which it implements
37810 to always fail with ENOSYS. Some functions are actually named
37811 something starting with __ and the normal name is an alias. */
37812 #if defined __stub_$ac_func || defined __stub___$ac_func
37819 return $ac_func ();
37824 rm -f conftest.$ac_objext conftest$ac_exeext
37825 if { (ac_try="$ac_link"
37826 case "(($ac_try" in
37827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37828 *) ac_try_echo=$ac_try;;
37830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37831 (eval "$ac_link") 2>conftest.er1
37833 grep -v '^ *+' conftest.er1 >conftest.err
37835 cat conftest.err >&5
37836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37837 (exit $ac_status); } && {
37838 test -z "$ac_c_werror_flag" ||
37839 test ! -s conftest.err
37840 } && test -s conftest$ac_exeext &&
37841 $as_test_x conftest$ac_exeext; then
37842 eval "$as_ac_var=yes"
37844 echo "$as_me: failed program was:" >&5
37845 sed 's/^/| /' conftest.$ac_ext >&5
37847 eval "$as_ac_var=no"
37850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37851 conftest$ac_exeext conftest.$ac_ext
37853 ac_res=`eval echo '${'$as_ac_var'}'`
37854 { echo "$as_me:$LINENO: result: $ac_res" >&5
37855 echo "${ECHO_T}$ac_res" >&6; }
37856 if test `eval echo '${'$as_ac_var'}'` = yes; then
37857 cat >>confdefs.h <<_ACEOF
37858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37865 for ac_func in fdatasync
37867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37871 echo $ECHO_N "(cached) $ECHO_C" >&6
37873 cat >conftest.$ac_ext <<_ACEOF
37876 cat confdefs.h >>conftest.$ac_ext
37877 cat >>conftest.$ac_ext <<_ACEOF
37878 /* end confdefs.h. */
37879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37881 #define $ac_func innocuous_$ac_func
37883 /* System header to define __stub macros and hopefully few prototypes,
37884 which can conflict with char $ac_func (); below.
37885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37886 <limits.h> exists even on freestanding compilers. */
37889 # include <limits.h>
37891 # include <assert.h>
37896 /* Override any GCC internal prototype to avoid an error.
37897 Use char because int might match the return type of a GCC
37898 builtin and then its argument prototype would still apply. */
37903 /* The GNU C library defines this for functions which it implements
37904 to always fail with ENOSYS. Some functions are actually named
37905 something starting with __ and the normal name is an alias. */
37906 #if defined __stub_$ac_func || defined __stub___$ac_func
37913 return $ac_func ();
37918 rm -f conftest.$ac_objext conftest$ac_exeext
37919 if { (ac_try="$ac_link"
37920 case "(($ac_try" in
37921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37922 *) ac_try_echo=$ac_try;;
37924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37925 (eval "$ac_link") 2>conftest.er1
37927 grep -v '^ *+' conftest.er1 >conftest.err
37929 cat conftest.err >&5
37930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931 (exit $ac_status); } && {
37932 test -z "$ac_c_werror_flag" ||
37933 test ! -s conftest.err
37934 } && test -s conftest$ac_exeext &&
37935 $as_test_x conftest$ac_exeext; then
37936 eval "$as_ac_var=yes"
37938 echo "$as_me: failed program was:" >&5
37939 sed 's/^/| /' conftest.$ac_ext >&5
37941 eval "$as_ac_var=no"
37944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37945 conftest$ac_exeext conftest.$ac_ext
37947 ac_res=`eval echo '${'$as_ac_var'}'`
37948 { echo "$as_me:$LINENO: result: $ac_res" >&5
37949 echo "${ECHO_T}$ac_res" >&6; }
37950 if test `eval echo '${'$as_ac_var'}'` = yes; then
37951 cat >>confdefs.h <<_ACEOF
37952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37960 for ac_func in chflags
37962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37966 echo $ECHO_N "(cached) $ECHO_C" >&6
37968 cat >conftest.$ac_ext <<_ACEOF
37971 cat confdefs.h >>conftest.$ac_ext
37972 cat >>conftest.$ac_ext <<_ACEOF
37973 /* end confdefs.h. */
37974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37976 #define $ac_func innocuous_$ac_func
37978 /* System header to define __stub macros and hopefully few prototypes,
37979 which can conflict with char $ac_func (); below.
37980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37981 <limits.h> exists even on freestanding compilers. */
37984 # include <limits.h>
37986 # include <assert.h>
37991 /* Override any GCC internal prototype to avoid an error.
37992 Use char because int might match the return type of a GCC
37993 builtin and then its argument prototype would still apply. */
37998 /* The GNU C library defines this for functions which it implements
37999 to always fail with ENOSYS. Some functions are actually named
38000 something starting with __ and the normal name is an alias. */
38001 #if defined __stub_$ac_func || defined __stub___$ac_func
38008 return $ac_func ();
38013 rm -f conftest.$ac_objext conftest$ac_exeext
38014 if { (ac_try="$ac_link"
38015 case "(($ac_try" in
38016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38017 *) ac_try_echo=$ac_try;;
38019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38020 (eval "$ac_link") 2>conftest.er1
38022 grep -v '^ *+' conftest.er1 >conftest.err
38024 cat conftest.err >&5
38025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026 (exit $ac_status); } && {
38027 test -z "$ac_c_werror_flag" ||
38028 test ! -s conftest.err
38029 } && test -s conftest$ac_exeext &&
38030 $as_test_x conftest$ac_exeext; then
38031 eval "$as_ac_var=yes"
38033 echo "$as_me: failed program was:" >&5
38034 sed 's/^/| /' conftest.$ac_ext >&5
38036 eval "$as_ac_var=no"
38039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38040 conftest$ac_exeext conftest.$ac_ext
38042 ac_res=`eval echo '${'$as_ac_var'}'`
38043 { echo "$as_me:$LINENO: result: $ac_res" >&5
38044 echo "${ECHO_T}$ac_res" >&6; }
38045 if test `eval echo '${'$as_ac_var'}'` = yes; then
38046 cat >>confdefs.h <<_ACEOF
38047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38058 for ac_func in snprintf vsnprintf gethostid fseeko
38060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38064 echo $ECHO_N "(cached) $ECHO_C" >&6
38066 cat >conftest.$ac_ext <<_ACEOF
38069 cat confdefs.h >>conftest.$ac_ext
38070 cat >>conftest.$ac_ext <<_ACEOF
38071 /* end confdefs.h. */
38072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38074 #define $ac_func innocuous_$ac_func
38076 /* System header to define __stub macros and hopefully few prototypes,
38077 which can conflict with char $ac_func (); below.
38078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38079 <limits.h> exists even on freestanding compilers. */
38082 # include <limits.h>
38084 # include <assert.h>
38089 /* Override any GCC internal prototype to avoid an error.
38090 Use char because int might match the return type of a GCC
38091 builtin and then its argument prototype would still apply. */
38096 /* The GNU C library defines this for functions which it implements
38097 to always fail with ENOSYS. Some functions are actually named
38098 something starting with __ and the normal name is an alias. */
38099 #if defined __stub_$ac_func || defined __stub___$ac_func
38106 return $ac_func ();
38111 rm -f conftest.$ac_objext conftest$ac_exeext
38112 if { (ac_try="$ac_link"
38113 case "(($ac_try" in
38114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38115 *) ac_try_echo=$ac_try;;
38117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38118 (eval "$ac_link") 2>conftest.er1
38120 grep -v '^ *+' conftest.er1 >conftest.err
38122 cat conftest.err >&5
38123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124 (exit $ac_status); } && {
38125 test -z "$ac_c_werror_flag" ||
38126 test ! -s conftest.err
38127 } && test -s conftest$ac_exeext &&
38128 $as_test_x conftest$ac_exeext; then
38129 eval "$as_ac_var=yes"
38131 echo "$as_me: failed program was:" >&5
38132 sed 's/^/| /' conftest.$ac_ext >&5
38134 eval "$as_ac_var=no"
38137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38138 conftest$ac_exeext conftest.$ac_ext
38140 ac_res=`eval echo '${'$as_ac_var'}'`
38141 { echo "$as_me:$LINENO: result: $ac_res" >&5
38142 echo "${ECHO_T}$ac_res" >&6; }
38143 if test `eval echo '${'$as_ac_var'}'` = yes; then
38144 cat >>confdefs.h <<_ACEOF
38145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38152 { echo "$as_me:$LINENO: checking for va_copy" >&5
38153 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38154 if test "${ba_cv_va_copy+set}" = set; then
38155 echo $ECHO_N "(cached) $ECHO_C" >&6
38158 cat >conftest.$ac_ext <<_ACEOF
38161 cat confdefs.h >>conftest.$ac_ext
38162 cat >>conftest.$ac_ext <<_ACEOF
38163 /* end confdefs.h. */
38165 #include <stdarg.h>
38166 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38167 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38173 call_use_va_copy(1,2,3)
38179 rm -f conftest.$ac_objext conftest$ac_exeext
38180 if { (ac_try="$ac_link"
38181 case "(($ac_try" in
38182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38183 *) ac_try_echo=$ac_try;;
38185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38186 (eval "$ac_link") 2>conftest.er1
38188 grep -v '^ *+' conftest.er1 >conftest.err
38190 cat conftest.err >&5
38191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192 (exit $ac_status); } && {
38193 test -z "$ac_c_werror_flag" ||
38194 test ! -s conftest.err
38195 } && test -s conftest$ac_exeext &&
38196 $as_test_x conftest$ac_exeext; then
38201 echo "$as_me: failed program was:" >&5
38202 sed 's/^/| /' conftest.$ac_ext >&5
38210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38211 conftest$ac_exeext conftest.$ac_ext
38215 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38216 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38217 test $ba_cv_va_copy = yes &&
38218 cat >>confdefs.h <<\_ACEOF
38219 #define HAVE_VA_COPY 1
38227 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38233 echo $ECHO_N "(cached) $ECHO_C" >&6
38235 cat >conftest.$ac_ext <<_ACEOF
38238 cat confdefs.h >>conftest.$ac_ext
38239 cat >>conftest.$ac_ext <<_ACEOF
38240 /* end confdefs.h. */
38241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38243 #define $ac_func innocuous_$ac_func
38245 /* System header to define __stub macros and hopefully few prototypes,
38246 which can conflict with char $ac_func (); below.
38247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38248 <limits.h> exists even on freestanding compilers. */
38251 # include <limits.h>
38253 # include <assert.h>
38258 /* Override any GCC internal prototype to avoid an error.
38259 Use char because int might match the return type of a GCC
38260 builtin and then its argument prototype would still apply. */
38265 /* The GNU C library defines this for functions which it implements
38266 to always fail with ENOSYS. Some functions are actually named
38267 something starting with __ and the normal name is an alias. */
38268 #if defined __stub_$ac_func || defined __stub___$ac_func
38275 return $ac_func ();
38280 rm -f conftest.$ac_objext conftest$ac_exeext
38281 if { (ac_try="$ac_link"
38282 case "(($ac_try" in
38283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38284 *) ac_try_echo=$ac_try;;
38286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38287 (eval "$ac_link") 2>conftest.er1
38289 grep -v '^ *+' conftest.er1 >conftest.err
38291 cat conftest.err >&5
38292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293 (exit $ac_status); } && {
38294 test -z "$ac_c_werror_flag" ||
38295 test ! -s conftest.err
38296 } && test -s conftest$ac_exeext &&
38297 $as_test_x conftest$ac_exeext; then
38298 eval "$as_ac_var=yes"
38300 echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.$ac_ext >&5
38303 eval "$as_ac_var=no"
38306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38307 conftest$ac_exeext conftest.$ac_ext
38309 ac_res=`eval echo '${'$as_ac_var'}'`
38310 { echo "$as_me:$LINENO: result: $ac_res" >&5
38311 echo "${ECHO_T}$ac_res" >&6; }
38312 if test `eval echo '${'$as_ac_var'}'` = yes; then
38313 cat >>confdefs.h <<_ACEOF
38314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38321 # If resolver functions are not in libc check for -lnsl or -lresolv.
38322 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38323 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38324 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38325 echo $ECHO_N "(cached) $ECHO_C" >&6
38327 cat >conftest.$ac_ext <<_ACEOF
38330 cat confdefs.h >>conftest.$ac_ext
38331 cat >>conftest.$ac_ext <<_ACEOF
38332 /* end confdefs.h. */
38333 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38335 #define gethostbyname_r innocuous_gethostbyname_r
38337 /* System header to define __stub macros and hopefully few prototypes,
38338 which can conflict with char gethostbyname_r (); below.
38339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38340 <limits.h> exists even on freestanding compilers. */
38343 # include <limits.h>
38345 # include <assert.h>
38348 #undef gethostbyname_r
38350 /* Override any GCC internal prototype to avoid an error.
38351 Use char because int might match the return type of a GCC
38352 builtin and then its argument prototype would still apply. */
38356 char gethostbyname_r ();
38357 /* The GNU C library defines this for functions which it implements
38358 to always fail with ENOSYS. Some functions are actually named
38359 something starting with __ and the normal name is an alias. */
38360 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38367 return gethostbyname_r ();
38372 rm -f conftest.$ac_objext conftest$ac_exeext
38373 if { (ac_try="$ac_link"
38374 case "(($ac_try" in
38375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38376 *) ac_try_echo=$ac_try;;
38378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38379 (eval "$ac_link") 2>conftest.er1
38381 grep -v '^ *+' conftest.er1 >conftest.err
38383 cat conftest.err >&5
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); } && {
38386 test -z "$ac_c_werror_flag" ||
38387 test ! -s conftest.err
38388 } && test -s conftest$ac_exeext &&
38389 $as_test_x conftest$ac_exeext; then
38390 ac_cv_func_gethostbyname_r=yes
38392 echo "$as_me: failed program was:" >&5
38393 sed 's/^/| /' conftest.$ac_ext >&5
38395 ac_cv_func_gethostbyname_r=no
38398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38399 conftest$ac_exeext conftest.$ac_ext
38401 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38402 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38403 if test $ac_cv_func_gethostbyname_r = yes; then
38404 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38405 echo "${ECHO_T}using libc's resolver" >&6; }
38408 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38409 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38410 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38411 echo $ECHO_N "(cached) $ECHO_C" >&6
38413 ac_check_lib_save_LIBS=$LIBS
38415 cat >conftest.$ac_ext <<_ACEOF
38418 cat confdefs.h >>conftest.$ac_ext
38419 cat >>conftest.$ac_ext <<_ACEOF
38420 /* end confdefs.h. */
38422 /* Override any GCC internal prototype to avoid an error.
38423 Use char because int might match the return type of a GCC
38424 builtin and then its argument prototype would still apply. */
38428 char gethostbyname_r ();
38432 return gethostbyname_r ();
38437 rm -f conftest.$ac_objext conftest$ac_exeext
38438 if { (ac_try="$ac_link"
38439 case "(($ac_try" in
38440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38441 *) ac_try_echo=$ac_try;;
38443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38444 (eval "$ac_link") 2>conftest.er1
38446 grep -v '^ *+' conftest.er1 >conftest.err
38448 cat conftest.err >&5
38449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450 (exit $ac_status); } && {
38451 test -z "$ac_c_werror_flag" ||
38452 test ! -s conftest.err
38453 } && test -s conftest$ac_exeext &&
38454 $as_test_x conftest$ac_exeext; then
38455 ac_cv_lib_nsl_gethostbyname_r=yes
38457 echo "$as_me: failed program was:" >&5
38458 sed 's/^/| /' conftest.$ac_ext >&5
38460 ac_cv_lib_nsl_gethostbyname_r=no
38463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38464 conftest$ac_exeext conftest.$ac_ext
38465 LIBS=$ac_check_lib_save_LIBS
38467 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38468 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38469 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38470 cat >>confdefs.h <<_ACEOF
38471 #define HAVE_LIBNSL 1
38479 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38480 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38481 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38482 echo $ECHO_N "(cached) $ECHO_C" >&6
38484 ac_check_lib_save_LIBS=$LIBS
38485 LIBS="-lresolv $LIBS"
38486 cat >conftest.$ac_ext <<_ACEOF
38489 cat confdefs.h >>conftest.$ac_ext
38490 cat >>conftest.$ac_ext <<_ACEOF
38491 /* end confdefs.h. */
38493 /* Override any GCC internal prototype to avoid an error.
38494 Use char because int might match the return type of a GCC
38495 builtin and then its argument prototype would still apply. */
38499 char gethostbyname_r ();
38503 return gethostbyname_r ();
38508 rm -f conftest.$ac_objext conftest$ac_exeext
38509 if { (ac_try="$ac_link"
38510 case "(($ac_try" in
38511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38512 *) ac_try_echo=$ac_try;;
38514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38515 (eval "$ac_link") 2>conftest.er1
38517 grep -v '^ *+' conftest.er1 >conftest.err
38519 cat conftest.err >&5
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); } && {
38522 test -z "$ac_c_werror_flag" ||
38523 test ! -s conftest.err
38524 } && test -s conftest$ac_exeext &&
38525 $as_test_x conftest$ac_exeext; then
38526 ac_cv_lib_resolv_gethostbyname_r=yes
38528 echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38531 ac_cv_lib_resolv_gethostbyname_r=no
38534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38535 conftest$ac_exeext conftest.$ac_ext
38536 LIBS=$ac_check_lib_save_LIBS
38538 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38539 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38540 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38541 cat >>confdefs.h <<_ACEOF
38542 #define HAVE_LIBRESOLV 1
38545 LIBS="-lresolv $LIBS"
38553 for ac_func in inet_pton
38555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38559 echo $ECHO_N "(cached) $ECHO_C" >&6
38561 cat >conftest.$ac_ext <<_ACEOF
38564 cat confdefs.h >>conftest.$ac_ext
38565 cat >>conftest.$ac_ext <<_ACEOF
38566 /* end confdefs.h. */
38567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38569 #define $ac_func innocuous_$ac_func
38571 /* System header to define __stub macros and hopefully few prototypes,
38572 which can conflict with char $ac_func (); below.
38573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38574 <limits.h> exists even on freestanding compilers. */
38577 # include <limits.h>
38579 # include <assert.h>
38584 /* Override any GCC internal prototype to avoid an error.
38585 Use char because int might match the return type of a GCC
38586 builtin and then its argument prototype would still apply. */
38591 /* The GNU C library defines this for functions which it implements
38592 to always fail with ENOSYS. Some functions are actually named
38593 something starting with __ and the normal name is an alias. */
38594 #if defined __stub_$ac_func || defined __stub___$ac_func
38601 return $ac_func ();
38606 rm -f conftest.$ac_objext conftest$ac_exeext
38607 if { (ac_try="$ac_link"
38608 case "(($ac_try" in
38609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38610 *) ac_try_echo=$ac_try;;
38612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38613 (eval "$ac_link") 2>conftest.er1
38615 grep -v '^ *+' conftest.er1 >conftest.err
38617 cat conftest.err >&5
38618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619 (exit $ac_status); } && {
38620 test -z "$ac_c_werror_flag" ||
38621 test ! -s conftest.err
38622 } && test -s conftest$ac_exeext &&
38623 $as_test_x conftest$ac_exeext; then
38624 eval "$as_ac_var=yes"
38626 echo "$as_me: failed program was:" >&5
38627 sed 's/^/| /' conftest.$ac_ext >&5
38629 eval "$as_ac_var=no"
38632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38633 conftest$ac_exeext conftest.$ac_ext
38635 ac_res=`eval echo '${'$as_ac_var'}'`
38636 { echo "$as_me:$LINENO: result: $ac_res" >&5
38637 echo "${ECHO_T}$ac_res" >&6; }
38638 if test `eval echo '${'$as_ac_var'}'` = yes; then
38639 cat >>confdefs.h <<_ACEOF
38640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38642 cat >>confdefs.h <<\_ACEOF
38643 #define HAVE_INET_PTON 1
38650 for ac_func in inet_ntop
38652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38656 echo $ECHO_N "(cached) $ECHO_C" >&6
38658 cat >conftest.$ac_ext <<_ACEOF
38661 cat confdefs.h >>conftest.$ac_ext
38662 cat >>conftest.$ac_ext <<_ACEOF
38663 /* end confdefs.h. */
38664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38666 #define $ac_func innocuous_$ac_func
38668 /* System header to define __stub macros and hopefully few prototypes,
38669 which can conflict with char $ac_func (); below.
38670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38671 <limits.h> exists even on freestanding compilers. */
38674 # include <limits.h>
38676 # include <assert.h>
38681 /* Override any GCC internal prototype to avoid an error.
38682 Use char because int might match the return type of a GCC
38683 builtin and then its argument prototype would still apply. */
38688 /* The GNU C library defines this for functions which it implements
38689 to always fail with ENOSYS. Some functions are actually named
38690 something starting with __ and the normal name is an alias. */
38691 #if defined __stub_$ac_func || defined __stub___$ac_func
38698 return $ac_func ();
38703 rm -f conftest.$ac_objext conftest$ac_exeext
38704 if { (ac_try="$ac_link"
38705 case "(($ac_try" in
38706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38707 *) ac_try_echo=$ac_try;;
38709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38710 (eval "$ac_link") 2>conftest.er1
38712 grep -v '^ *+' conftest.er1 >conftest.err
38714 cat conftest.err >&5
38715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716 (exit $ac_status); } && {
38717 test -z "$ac_c_werror_flag" ||
38718 test ! -s conftest.err
38719 } && test -s conftest$ac_exeext &&
38720 $as_test_x conftest$ac_exeext; then
38721 eval "$as_ac_var=yes"
38723 echo "$as_me: failed program was:" >&5
38724 sed 's/^/| /' conftest.$ac_ext >&5
38726 eval "$as_ac_var=no"
38729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38730 conftest$ac_exeext conftest.$ac_ext
38732 ac_res=`eval echo '${'$as_ac_var'}'`
38733 { echo "$as_me:$LINENO: result: $ac_res" >&5
38734 echo "${ECHO_T}$ac_res" >&6; }
38735 if test `eval echo '${'$as_ac_var'}'` = yes; then
38736 cat >>confdefs.h <<_ACEOF
38737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38739 cat >>confdefs.h <<\_ACEOF
38740 #define HAVE_INET_NTOP 1
38747 for ac_func in gethostbyname2
38749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38753 echo $ECHO_N "(cached) $ECHO_C" >&6
38755 cat >conftest.$ac_ext <<_ACEOF
38758 cat confdefs.h >>conftest.$ac_ext
38759 cat >>conftest.$ac_ext <<_ACEOF
38760 /* end confdefs.h. */
38761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38763 #define $ac_func innocuous_$ac_func
38765 /* System header to define __stub macros and hopefully few prototypes,
38766 which can conflict with char $ac_func (); below.
38767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38768 <limits.h> exists even on freestanding compilers. */
38771 # include <limits.h>
38773 # include <assert.h>
38778 /* Override any GCC internal prototype to avoid an error.
38779 Use char because int might match the return type of a GCC
38780 builtin and then its argument prototype would still apply. */
38785 /* The GNU C library defines this for functions which it implements
38786 to always fail with ENOSYS. Some functions are actually named
38787 something starting with __ and the normal name is an alias. */
38788 #if defined __stub_$ac_func || defined __stub___$ac_func
38795 return $ac_func ();
38800 rm -f conftest.$ac_objext conftest$ac_exeext
38801 if { (ac_try="$ac_link"
38802 case "(($ac_try" in
38803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38804 *) ac_try_echo=$ac_try;;
38806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38807 (eval "$ac_link") 2>conftest.er1
38809 grep -v '^ *+' conftest.er1 >conftest.err
38811 cat conftest.err >&5
38812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813 (exit $ac_status); } && {
38814 test -z "$ac_c_werror_flag" ||
38815 test ! -s conftest.err
38816 } && test -s conftest$ac_exeext &&
38817 $as_test_x conftest$ac_exeext; then
38818 eval "$as_ac_var=yes"
38820 echo "$as_me: failed program was:" >&5
38821 sed 's/^/| /' conftest.$ac_ext >&5
38823 eval "$as_ac_var=no"
38826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38827 conftest$ac_exeext conftest.$ac_ext
38829 ac_res=`eval echo '${'$as_ac_var'}'`
38830 { echo "$as_me:$LINENO: result: $ac_res" >&5
38831 echo "${ECHO_T}$ac_res" >&6; }
38832 if test `eval echo '${'$as_ac_var'}'` = yes; then
38833 cat >>confdefs.h <<_ACEOF
38834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38836 cat >>confdefs.h <<\_ACEOF
38837 #define HAVE_GETHOSTBYNAME2 1
38844 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38845 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38846 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38847 echo $ECHO_N "(cached) $ECHO_C" >&6
38850 cat >conftest.$ac_ext <<_ACEOF
38853 cat confdefs.h >>conftest.$ac_ext
38854 cat >>conftest.$ac_ext <<_ACEOF
38855 /* end confdefs.h. */
38857 #include <sys/socket.h>
38863 struct sockaddr s; s.sa_len;
38869 rm -f conftest.$ac_objext
38870 if { (ac_try="$ac_compile"
38871 case "(($ac_try" in
38872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38873 *) ac_try_echo=$ac_try;;
38875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38876 (eval "$ac_compile") 2>conftest.er1
38878 grep -v '^ *+' conftest.er1 >conftest.err
38880 cat conftest.err >&5
38881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882 (exit $ac_status); } && {
38883 test -z "$ac_c_werror_flag" ||
38884 test ! -s conftest.err
38885 } && test -s conftest.$ac_objext; then
38887 ac_cv_struct_sockaddr_sa_len=yes
38890 echo "$as_me: failed program was:" >&5
38891 sed 's/^/| /' conftest.$ac_ext >&5
38893 ac_cv_struct_sockaddr_sa_len=no
38898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38902 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38903 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38905 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38907 cat >>confdefs.h <<\_ACEOF
38908 #define HAVE_SA_LEN 1
38914 for ac_func in strftime
38916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38920 echo $ECHO_N "(cached) $ECHO_C" >&6
38922 cat >conftest.$ac_ext <<_ACEOF
38925 cat confdefs.h >>conftest.$ac_ext
38926 cat >>conftest.$ac_ext <<_ACEOF
38927 /* end confdefs.h. */
38928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38930 #define $ac_func innocuous_$ac_func
38932 /* System header to define __stub macros and hopefully few prototypes,
38933 which can conflict with char $ac_func (); below.
38934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38935 <limits.h> exists even on freestanding compilers. */
38938 # include <limits.h>
38940 # include <assert.h>
38945 /* Override any GCC internal prototype to avoid an error.
38946 Use char because int might match the return type of a GCC
38947 builtin and then its argument prototype would still apply. */
38952 /* The GNU C library defines this for functions which it implements
38953 to always fail with ENOSYS. Some functions are actually named
38954 something starting with __ and the normal name is an alias. */
38955 #if defined __stub_$ac_func || defined __stub___$ac_func
38962 return $ac_func ();
38967 rm -f conftest.$ac_objext conftest$ac_exeext
38968 if { (ac_try="$ac_link"
38969 case "(($ac_try" in
38970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38971 *) ac_try_echo=$ac_try;;
38973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38974 (eval "$ac_link") 2>conftest.er1
38976 grep -v '^ *+' conftest.er1 >conftest.err
38978 cat conftest.err >&5
38979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980 (exit $ac_status); } && {
38981 test -z "$ac_c_werror_flag" ||
38982 test ! -s conftest.err
38983 } && test -s conftest$ac_exeext &&
38984 $as_test_x conftest$ac_exeext; then
38985 eval "$as_ac_var=yes"
38987 echo "$as_me: failed program was:" >&5
38988 sed 's/^/| /' conftest.$ac_ext >&5
38990 eval "$as_ac_var=no"
38993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38994 conftest$ac_exeext conftest.$ac_ext
38996 ac_res=`eval echo '${'$as_ac_var'}'`
38997 { echo "$as_me:$LINENO: result: $ac_res" >&5
38998 echo "${ECHO_T}$ac_res" >&6; }
38999 if test `eval echo '${'$as_ac_var'}'` = yes; then
39000 cat >>confdefs.h <<_ACEOF
39001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39005 # strftime is in -lintl on SCO UNIX.
39006 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39007 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39008 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39009 echo $ECHO_N "(cached) $ECHO_C" >&6
39011 ac_check_lib_save_LIBS=$LIBS
39012 LIBS="-lintl $LIBS"
39013 cat >conftest.$ac_ext <<_ACEOF
39016 cat confdefs.h >>conftest.$ac_ext
39017 cat >>conftest.$ac_ext <<_ACEOF
39018 /* end confdefs.h. */
39020 /* Override any GCC internal prototype to avoid an error.
39021 Use char because int might match the return type of a GCC
39022 builtin and then its argument prototype would still apply. */
39030 return strftime ();
39035 rm -f conftest.$ac_objext conftest$ac_exeext
39036 if { (ac_try="$ac_link"
39037 case "(($ac_try" in
39038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39039 *) ac_try_echo=$ac_try;;
39041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39042 (eval "$ac_link") 2>conftest.er1
39044 grep -v '^ *+' conftest.er1 >conftest.err
39046 cat conftest.err >&5
39047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39048 (exit $ac_status); } && {
39049 test -z "$ac_c_werror_flag" ||
39050 test ! -s conftest.err
39051 } && test -s conftest$ac_exeext &&
39052 $as_test_x conftest$ac_exeext; then
39053 ac_cv_lib_intl_strftime=yes
39055 echo "$as_me: failed program was:" >&5
39056 sed 's/^/| /' conftest.$ac_ext >&5
39058 ac_cv_lib_intl_strftime=no
39061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39062 conftest$ac_exeext conftest.$ac_ext
39063 LIBS=$ac_check_lib_save_LIBS
39065 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39066 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39067 if test $ac_cv_lib_intl_strftime = yes; then
39068 cat >>confdefs.h <<\_ACEOF
39069 #define HAVE_STRFTIME 1
39072 LIBS="-lintl $LIBS"
39079 for ac_func in vprintf
39081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39085 echo $ECHO_N "(cached) $ECHO_C" >&6
39087 cat >conftest.$ac_ext <<_ACEOF
39090 cat confdefs.h >>conftest.$ac_ext
39091 cat >>conftest.$ac_ext <<_ACEOF
39092 /* end confdefs.h. */
39093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39095 #define $ac_func innocuous_$ac_func
39097 /* System header to define __stub macros and hopefully few prototypes,
39098 which can conflict with char $ac_func (); below.
39099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39100 <limits.h> exists even on freestanding compilers. */
39103 # include <limits.h>
39105 # include <assert.h>
39110 /* Override any GCC internal prototype to avoid an error.
39111 Use char because int might match the return type of a GCC
39112 builtin and then its argument prototype would still apply. */
39117 /* The GNU C library defines this for functions which it implements
39118 to always fail with ENOSYS. Some functions are actually named
39119 something starting with __ and the normal name is an alias. */
39120 #if defined __stub_$ac_func || defined __stub___$ac_func
39127 return $ac_func ();
39132 rm -f conftest.$ac_objext conftest$ac_exeext
39133 if { (ac_try="$ac_link"
39134 case "(($ac_try" in
39135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39136 *) ac_try_echo=$ac_try;;
39138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39139 (eval "$ac_link") 2>conftest.er1
39141 grep -v '^ *+' conftest.er1 >conftest.err
39143 cat conftest.err >&5
39144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39145 (exit $ac_status); } && {
39146 test -z "$ac_c_werror_flag" ||
39147 test ! -s conftest.err
39148 } && test -s conftest$ac_exeext &&
39149 $as_test_x conftest$ac_exeext; then
39150 eval "$as_ac_var=yes"
39152 echo "$as_me: failed program was:" >&5
39153 sed 's/^/| /' conftest.$ac_ext >&5
39155 eval "$as_ac_var=no"
39158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39159 conftest$ac_exeext conftest.$ac_ext
39161 ac_res=`eval echo '${'$as_ac_var'}'`
39162 { echo "$as_me:$LINENO: result: $ac_res" >&5
39163 echo "${ECHO_T}$ac_res" >&6; }
39164 if test `eval echo '${'$as_ac_var'}'` = yes; then
39165 cat >>confdefs.h <<_ACEOF
39166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39169 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39170 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39171 if test "${ac_cv_func__doprnt+set}" = set; then
39172 echo $ECHO_N "(cached) $ECHO_C" >&6
39174 cat >conftest.$ac_ext <<_ACEOF
39177 cat confdefs.h >>conftest.$ac_ext
39178 cat >>conftest.$ac_ext <<_ACEOF
39179 /* end confdefs.h. */
39180 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39182 #define _doprnt innocuous__doprnt
39184 /* System header to define __stub macros and hopefully few prototypes,
39185 which can conflict with char _doprnt (); below.
39186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39187 <limits.h> exists even on freestanding compilers. */
39190 # include <limits.h>
39192 # include <assert.h>
39197 /* Override any GCC internal prototype to avoid an error.
39198 Use char because int might match the return type of a GCC
39199 builtin and then its argument prototype would still apply. */
39204 /* The GNU C library defines this for functions which it implements
39205 to always fail with ENOSYS. Some functions are actually named
39206 something starting with __ and the normal name is an alias. */
39207 #if defined __stub__doprnt || defined __stub____doprnt
39219 rm -f conftest.$ac_objext conftest$ac_exeext
39220 if { (ac_try="$ac_link"
39221 case "(($ac_try" in
39222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39223 *) ac_try_echo=$ac_try;;
39225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39226 (eval "$ac_link") 2>conftest.er1
39228 grep -v '^ *+' conftest.er1 >conftest.err
39230 cat conftest.err >&5
39231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232 (exit $ac_status); } && {
39233 test -z "$ac_c_werror_flag" ||
39234 test ! -s conftest.err
39235 } && test -s conftest$ac_exeext &&
39236 $as_test_x conftest$ac_exeext; then
39237 ac_cv_func__doprnt=yes
39239 echo "$as_me: failed program was:" >&5
39240 sed 's/^/| /' conftest.$ac_ext >&5
39242 ac_cv_func__doprnt=no
39245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39246 conftest$ac_exeext conftest.$ac_ext
39248 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39249 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39250 if test $ac_cv_func__doprnt = yes; then
39252 cat >>confdefs.h <<\_ACEOF
39253 #define HAVE_DOPRNT 1
39262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39263 # for constant arguments. Useless!
39264 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39265 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39266 if test "${ac_cv_working_alloca_h+set}" = set; then
39267 echo $ECHO_N "(cached) $ECHO_C" >&6
39269 cat >conftest.$ac_ext <<_ACEOF
39272 cat confdefs.h >>conftest.$ac_ext
39273 cat >>conftest.$ac_ext <<_ACEOF
39274 /* end confdefs.h. */
39275 #include <alloca.h>
39279 char *p = (char *) alloca (2 * sizeof (int));
39285 rm -f conftest.$ac_objext conftest$ac_exeext
39286 if { (ac_try="$ac_link"
39287 case "(($ac_try" in
39288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39289 *) ac_try_echo=$ac_try;;
39291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39292 (eval "$ac_link") 2>conftest.er1
39294 grep -v '^ *+' conftest.er1 >conftest.err
39296 cat conftest.err >&5
39297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298 (exit $ac_status); } && {
39299 test -z "$ac_c_werror_flag" ||
39300 test ! -s conftest.err
39301 } && test -s conftest$ac_exeext &&
39302 $as_test_x conftest$ac_exeext; then
39303 ac_cv_working_alloca_h=yes
39305 echo "$as_me: failed program was:" >&5
39306 sed 's/^/| /' conftest.$ac_ext >&5
39308 ac_cv_working_alloca_h=no
39311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39312 conftest$ac_exeext conftest.$ac_ext
39314 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39315 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39316 if test $ac_cv_working_alloca_h = yes; then
39318 cat >>confdefs.h <<\_ACEOF
39319 #define HAVE_ALLOCA_H 1
39324 { echo "$as_me:$LINENO: checking for alloca" >&5
39325 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39326 if test "${ac_cv_func_alloca_works+set}" = set; then
39327 echo $ECHO_N "(cached) $ECHO_C" >&6
39329 cat >conftest.$ac_ext <<_ACEOF
39332 cat confdefs.h >>conftest.$ac_ext
39333 cat >>conftest.$ac_ext <<_ACEOF
39334 /* end confdefs.h. */
39336 # define alloca __builtin_alloca
39339 # include <malloc.h>
39340 # define alloca _alloca
39342 # ifdef HAVE_ALLOCA_H
39343 # include <alloca.h>
39348 # ifndef alloca /* predefined by HP cc +Olibcalls */
39359 char *p = (char *) alloca (1);
39365 rm -f conftest.$ac_objext conftest$ac_exeext
39366 if { (ac_try="$ac_link"
39367 case "(($ac_try" in
39368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39369 *) ac_try_echo=$ac_try;;
39371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39372 (eval "$ac_link") 2>conftest.er1
39374 grep -v '^ *+' conftest.er1 >conftest.err
39376 cat conftest.err >&5
39377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39378 (exit $ac_status); } && {
39379 test -z "$ac_c_werror_flag" ||
39380 test ! -s conftest.err
39381 } && test -s conftest$ac_exeext &&
39382 $as_test_x conftest$ac_exeext; then
39383 ac_cv_func_alloca_works=yes
39385 echo "$as_me: failed program was:" >&5
39386 sed 's/^/| /' conftest.$ac_ext >&5
39388 ac_cv_func_alloca_works=no
39391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39392 conftest$ac_exeext conftest.$ac_ext
39394 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39395 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39397 if test $ac_cv_func_alloca_works = yes; then
39399 cat >>confdefs.h <<\_ACEOF
39400 #define HAVE_ALLOCA 1
39404 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39405 # that cause trouble. Some versions do not even contain alloca or
39406 # contain a buggy version. If you still want to use their alloca,
39407 # use ar to extract alloca.o from them instead of compiling alloca.c.
39409 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39411 cat >>confdefs.h <<\_ACEOF
39416 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39417 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39418 if test "${ac_cv_os_cray+set}" = set; then
39419 echo $ECHO_N "(cached) $ECHO_C" >&6
39421 cat >conftest.$ac_ext <<_ACEOF
39424 cat confdefs.h >>conftest.$ac_ext
39425 cat >>conftest.$ac_ext <<_ACEOF
39426 /* end confdefs.h. */
39427 #if defined CRAY && ! defined CRAY2
39434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39435 $EGREP "webecray" >/dev/null 2>&1; then
39443 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39444 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39445 if test $ac_cv_os_cray = yes; then
39446 for ac_func in _getb67 GETB67 getb67; do
39447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39451 echo $ECHO_N "(cached) $ECHO_C" >&6
39453 cat >conftest.$ac_ext <<_ACEOF
39456 cat confdefs.h >>conftest.$ac_ext
39457 cat >>conftest.$ac_ext <<_ACEOF
39458 /* end confdefs.h. */
39459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39461 #define $ac_func innocuous_$ac_func
39463 /* System header to define __stub macros and hopefully few prototypes,
39464 which can conflict with char $ac_func (); below.
39465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39466 <limits.h> exists even on freestanding compilers. */
39469 # include <limits.h>
39471 # include <assert.h>
39476 /* Override any GCC internal prototype to avoid an error.
39477 Use char because int might match the return type of a GCC
39478 builtin and then its argument prototype would still apply. */
39483 /* The GNU C library defines this for functions which it implements
39484 to always fail with ENOSYS. Some functions are actually named
39485 something starting with __ and the normal name is an alias. */
39486 #if defined __stub_$ac_func || defined __stub___$ac_func
39493 return $ac_func ();
39498 rm -f conftest.$ac_objext conftest$ac_exeext
39499 if { (ac_try="$ac_link"
39500 case "(($ac_try" in
39501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39502 *) ac_try_echo=$ac_try;;
39504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39505 (eval "$ac_link") 2>conftest.er1
39507 grep -v '^ *+' conftest.er1 >conftest.err
39509 cat conftest.err >&5
39510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511 (exit $ac_status); } && {
39512 test -z "$ac_c_werror_flag" ||
39513 test ! -s conftest.err
39514 } && test -s conftest$ac_exeext &&
39515 $as_test_x conftest$ac_exeext; then
39516 eval "$as_ac_var=yes"
39518 echo "$as_me: failed program was:" >&5
39519 sed 's/^/| /' conftest.$ac_ext >&5
39521 eval "$as_ac_var=no"
39524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39525 conftest$ac_exeext conftest.$ac_ext
39527 ac_res=`eval echo '${'$as_ac_var'}'`
39528 { echo "$as_me:$LINENO: result: $ac_res" >&5
39529 echo "${ECHO_T}$ac_res" >&6; }
39530 if test `eval echo '${'$as_ac_var'}'` = yes; then
39532 cat >>confdefs.h <<_ACEOF
39533 #define CRAY_STACKSEG_END $ac_func
39542 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39543 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39544 if test "${ac_cv_c_stack_direction+set}" = set; then
39545 echo $ECHO_N "(cached) $ECHO_C" >&6
39547 if test "$cross_compiling" = yes; then
39548 ac_cv_c_stack_direction=0
39550 cat >conftest.$ac_ext <<_ACEOF
39553 cat confdefs.h >>conftest.$ac_ext
39554 cat >>conftest.$ac_ext <<_ACEOF
39555 /* end confdefs.h. */
39556 $ac_includes_default
39558 find_stack_direction ()
39560 static char *addr = 0;
39565 return find_stack_direction ();
39568 return (&dummy > addr) ? 1 : -1;
39574 return find_stack_direction () < 0;
39577 rm -f conftest$ac_exeext
39578 if { (ac_try="$ac_link"
39579 case "(($ac_try" in
39580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39581 *) ac_try_echo=$ac_try;;
39583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39584 (eval "$ac_link") 2>&5
39586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39588 { (case "(($ac_try" in
39589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39590 *) ac_try_echo=$ac_try;;
39592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39593 (eval "$ac_try") 2>&5
39595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596 (exit $ac_status); }; }; then
39597 ac_cv_c_stack_direction=1
39599 echo "$as_me: program exited with status $ac_status" >&5
39600 echo "$as_me: failed program was:" >&5
39601 sed 's/^/| /' conftest.$ac_ext >&5
39603 ( exit $ac_status )
39604 ac_cv_c_stack_direction=-1
39606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39611 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39612 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39614 cat >>confdefs.h <<_ACEOF
39615 #define STACK_DIRECTION $ac_cv_c_stack_direction
39621 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39622 # -lseq on Dynix/PTX, -lgen on Unixware.
39623 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39624 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39625 if test "${ac_cv_search_getmntent+set}" = set; then
39626 echo $ECHO_N "(cached) $ECHO_C" >&6
39628 ac_func_search_save_LIBS=$LIBS
39629 cat >conftest.$ac_ext <<_ACEOF
39632 cat confdefs.h >>conftest.$ac_ext
39633 cat >>conftest.$ac_ext <<_ACEOF
39634 /* end confdefs.h. */
39636 /* Override any GCC internal prototype to avoid an error.
39637 Use char because int might match the return type of a GCC
39638 builtin and then its argument prototype would still apply. */
39646 return getmntent ();
39651 for ac_lib in '' sun seq gen; do
39652 if test -z "$ac_lib"; then
39653 ac_res="none required"
39656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39658 rm -f conftest.$ac_objext conftest$ac_exeext
39659 if { (ac_try="$ac_link"
39660 case "(($ac_try" in
39661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39662 *) ac_try_echo=$ac_try;;
39664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39665 (eval "$ac_link") 2>conftest.er1
39667 grep -v '^ *+' conftest.er1 >conftest.err
39669 cat conftest.err >&5
39670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671 (exit $ac_status); } && {
39672 test -z "$ac_c_werror_flag" ||
39673 test ! -s conftest.err
39674 } && test -s conftest$ac_exeext &&
39675 $as_test_x conftest$ac_exeext; then
39676 ac_cv_search_getmntent=$ac_res
39678 echo "$as_me: failed program was:" >&5
39679 sed 's/^/| /' conftest.$ac_ext >&5
39684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39686 if test "${ac_cv_search_getmntent+set}" = set; then
39690 if test "${ac_cv_search_getmntent+set}" = set; then
39693 ac_cv_search_getmntent=no
39695 rm conftest.$ac_ext
39696 LIBS=$ac_func_search_save_LIBS
39698 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39699 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39700 ac_res=$ac_cv_search_getmntent
39701 if test "$ac_res" != no; then
39702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39703 ac_cv_func_getmntent=yes
39705 cat >>confdefs.h <<\_ACEOF
39706 #define HAVE_GETMNTENT 1
39710 ac_cv_func_getmntent=no
39714 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39715 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39716 if test "${ac_cv_func_closedir_void+set}" = set; then
39717 echo $ECHO_N "(cached) $ECHO_C" >&6
39719 if test "$cross_compiling" = yes; then
39720 ac_cv_func_closedir_void=yes
39722 cat >conftest.$ac_ext <<_ACEOF
39725 cat confdefs.h >>conftest.$ac_ext
39726 cat >>conftest.$ac_ext <<_ACEOF
39727 /* end confdefs.h. */
39728 $ac_includes_default
39729 #include <$ac_header_dirent>
39730 #ifndef __cplusplus
39737 return closedir (opendir (".")) != 0;
39742 rm -f conftest$ac_exeext
39743 if { (ac_try="$ac_link"
39744 case "(($ac_try" in
39745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39746 *) ac_try_echo=$ac_try;;
39748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39749 (eval "$ac_link") 2>&5
39751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39753 { (case "(($ac_try" in
39754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39755 *) ac_try_echo=$ac_try;;
39757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39758 (eval "$ac_try") 2>&5
39760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39761 (exit $ac_status); }; }; then
39762 ac_cv_func_closedir_void=no
39764 echo "$as_me: program exited with status $ac_status" >&5
39765 echo "$as_me: failed program was:" >&5
39766 sed 's/^/| /' conftest.$ac_ext >&5
39768 ( exit $ac_status )
39769 ac_cv_func_closedir_void=yes
39771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39776 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39777 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39778 if test $ac_cv_func_closedir_void = yes; then
39780 cat >>confdefs.h <<\_ACEOF
39781 #define CLOSEDIR_VOID 1
39786 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39787 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39788 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39789 echo $ECHO_N "(cached) $ECHO_C" >&6
39791 if test "$cross_compiling" = yes; then
39792 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39793 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39794 { (exit 1); exit 1; }; }
39796 cat >conftest.$ac_ext <<_ACEOF
39799 cat confdefs.h >>conftest.$ac_ext
39800 cat >>conftest.$ac_ext <<_ACEOF
39801 /* end confdefs.h. */
39802 $ac_includes_default
39806 /* If this system has a BSD-style setpgrp which takes arguments,
39807 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39808 exit successfully. */
39809 return setpgrp (1,1) != -1;
39814 rm -f conftest$ac_exeext
39815 if { (ac_try="$ac_link"
39816 case "(($ac_try" in
39817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39818 *) ac_try_echo=$ac_try;;
39820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39821 (eval "$ac_link") 2>&5
39823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39825 { (case "(($ac_try" in
39826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39827 *) ac_try_echo=$ac_try;;
39829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39830 (eval "$ac_try") 2>&5
39832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39833 (exit $ac_status); }; }; then
39834 ac_cv_func_setpgrp_void=no
39836 echo "$as_me: program exited with status $ac_status" >&5
39837 echo "$as_me: failed program was:" >&5
39838 sed 's/^/| /' conftest.$ac_ext >&5
39840 ( exit $ac_status )
39841 ac_cv_func_setpgrp_void=yes
39843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39848 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39849 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39850 if test $ac_cv_func_setpgrp_void = yes; then
39852 cat >>confdefs.h <<\_ACEOF
39853 #define SETPGRP_VOID 1
39857 # AC_FUNC_FNMATCH dnl use local version
39859 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39860 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39861 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39862 echo $ECHO_N "(cached) $ECHO_C" >&6
39864 ac_check_lib_save_LIBS=$LIBS
39865 LIBS="-lintl $LIBS"
39866 cat >conftest.$ac_ext <<_ACEOF
39869 cat confdefs.h >>conftest.$ac_ext
39870 cat >>conftest.$ac_ext <<_ACEOF
39871 /* end confdefs.h. */
39873 /* Override any GCC internal prototype to avoid an error.
39874 Use char because int might match the return type of a GCC
39875 builtin and then its argument prototype would still apply. */
39888 rm -f conftest.$ac_objext conftest$ac_exeext
39889 if { (ac_try="$ac_link"
39890 case "(($ac_try" in
39891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39892 *) ac_try_echo=$ac_try;;
39894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39895 (eval "$ac_link") 2>conftest.er1
39897 grep -v '^ *+' conftest.er1 >conftest.err
39899 cat conftest.err >&5
39900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901 (exit $ac_status); } && {
39902 test -z "$ac_c_werror_flag" ||
39903 test ! -s conftest.err
39904 } && test -s conftest$ac_exeext &&
39905 $as_test_x conftest$ac_exeext; then
39906 ac_cv_lib_intl_gettext=yes
39908 echo "$as_me: failed program was:" >&5
39909 sed 's/^/| /' conftest.$ac_ext >&5
39911 ac_cv_lib_intl_gettext=no
39914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39915 conftest$ac_exeext conftest.$ac_ext
39916 LIBS=$ac_check_lib_save_LIBS
39918 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39919 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39920 if test $ac_cv_lib_intl_gettext = yes; then
39921 LIBS="$LIBS -lintl"
39926 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39927 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39928 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39929 echo $ECHO_N "(cached) $ECHO_C" >&6
39931 ac_check_lib_save_LIBS=$LIBS
39933 cat >conftest.$ac_ext <<_ACEOF
39936 cat confdefs.h >>conftest.$ac_ext
39937 cat >>conftest.$ac_ext <<_ACEOF
39938 /* end confdefs.h. */
39940 /* Override any GCC internal prototype to avoid an error.
39941 Use char because int might match the return type of a GCC
39942 builtin and then its argument prototype would still apply. */
39950 return getpwnam ();
39955 rm -f conftest.$ac_objext conftest$ac_exeext
39956 if { (ac_try="$ac_link"
39957 case "(($ac_try" in
39958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39959 *) ac_try_echo=$ac_try;;
39961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39962 (eval "$ac_link") 2>conftest.er1
39964 grep -v '^ *+' conftest.er1 >conftest.err
39966 cat conftest.err >&5
39967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39968 (exit $ac_status); } && {
39969 test -z "$ac_c_werror_flag" ||
39970 test ! -s conftest.err
39971 } && test -s conftest$ac_exeext &&
39972 $as_test_x conftest$ac_exeext; then
39973 ac_cv_lib_sun_getpwnam=yes
39975 echo "$as_me: failed program was:" >&5
39976 sed 's/^/| /' conftest.$ac_ext >&5
39978 ac_cv_lib_sun_getpwnam=no
39981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39982 conftest$ac_exeext conftest.$ac_ext
39983 LIBS=$ac_check_lib_save_LIBS
39985 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39986 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39987 if test $ac_cv_lib_sun_getpwnam = yes; then
39988 cat >>confdefs.h <<_ACEOF
39989 #define HAVE_LIBSUN 1
39998 for ac_header in zlib.h
40000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40005 echo $ECHO_N "(cached) $ECHO_C" >&6
40007 ac_res=`eval echo '${'$as_ac_Header'}'`
40008 { echo "$as_me:$LINENO: result: $ac_res" >&5
40009 echo "${ECHO_T}$ac_res" >&6; }
40011 # Is the header compilable?
40012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40014 cat >conftest.$ac_ext <<_ACEOF
40017 cat confdefs.h >>conftest.$ac_ext
40018 cat >>conftest.$ac_ext <<_ACEOF
40019 /* end confdefs.h. */
40020 $ac_includes_default
40021 #include <$ac_header>
40023 rm -f conftest.$ac_objext
40024 if { (ac_try="$ac_compile"
40025 case "(($ac_try" in
40026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40027 *) ac_try_echo=$ac_try;;
40029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40030 (eval "$ac_compile") 2>conftest.er1
40032 grep -v '^ *+' conftest.er1 >conftest.err
40034 cat conftest.err >&5
40035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40036 (exit $ac_status); } && {
40037 test -z "$ac_c_werror_flag" ||
40038 test ! -s conftest.err
40039 } && test -s conftest.$ac_objext; then
40040 ac_header_compiler=yes
40042 echo "$as_me: failed program was:" >&5
40043 sed 's/^/| /' conftest.$ac_ext >&5
40045 ac_header_compiler=no
40048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40050 echo "${ECHO_T}$ac_header_compiler" >&6; }
40052 # Is the header present?
40053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40055 cat >conftest.$ac_ext <<_ACEOF
40058 cat confdefs.h >>conftest.$ac_ext
40059 cat >>conftest.$ac_ext <<_ACEOF
40060 /* end confdefs.h. */
40061 #include <$ac_header>
40063 if { (ac_try="$ac_cpp conftest.$ac_ext"
40064 case "(($ac_try" in
40065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40066 *) ac_try_echo=$ac_try;;
40068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40071 grep -v '^ *+' conftest.er1 >conftest.err
40073 cat conftest.err >&5
40074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40075 (exit $ac_status); } >/dev/null && {
40076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40077 test ! -s conftest.err
40079 ac_header_preproc=yes
40081 echo "$as_me: failed program was:" >&5
40082 sed 's/^/| /' conftest.$ac_ext >&5
40084 ac_header_preproc=no
40087 rm -f conftest.err conftest.$ac_ext
40088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40089 echo "${ECHO_T}$ac_header_preproc" >&6; }
40091 # So? What about this header?
40092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40098 ac_header_preproc=yes
40101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40119 echo $ECHO_N "(cached) $ECHO_C" >&6
40121 eval "$as_ac_Header=\$ac_header_preproc"
40123 ac_res=`eval echo '${'$as_ac_Header'}'`
40124 { echo "$as_me:$LINENO: result: $ac_res" >&5
40125 echo "${ECHO_T}$ac_res" >&6; }
40128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40129 cat >>confdefs.h <<_ACEOF
40130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40137 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40138 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40139 if test "${ac_cv_lib_z_deflate+set}" = set; then
40140 echo $ECHO_N "(cached) $ECHO_C" >&6
40142 ac_check_lib_save_LIBS=$LIBS
40144 cat >conftest.$ac_ext <<_ACEOF
40147 cat confdefs.h >>conftest.$ac_ext
40148 cat >>conftest.$ac_ext <<_ACEOF
40149 /* end confdefs.h. */
40151 /* Override any GCC internal prototype to avoid an error.
40152 Use char because int might match the return type of a GCC
40153 builtin and then its argument prototype would still apply. */
40166 rm -f conftest.$ac_objext conftest$ac_exeext
40167 if { (ac_try="$ac_link"
40168 case "(($ac_try" in
40169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40170 *) ac_try_echo=$ac_try;;
40172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40173 (eval "$ac_link") 2>conftest.er1
40175 grep -v '^ *+' conftest.er1 >conftest.err
40177 cat conftest.err >&5
40178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40179 (exit $ac_status); } && {
40180 test -z "$ac_c_werror_flag" ||
40181 test ! -s conftest.err
40182 } && test -s conftest$ac_exeext &&
40183 $as_test_x conftest$ac_exeext; then
40184 ac_cv_lib_z_deflate=yes
40186 echo "$as_me: failed program was:" >&5
40187 sed 's/^/| /' conftest.$ac_ext >&5
40189 ac_cv_lib_z_deflate=no
40192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40193 conftest$ac_exeext conftest.$ac_ext
40194 LIBS=$ac_check_lib_save_LIBS
40196 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40197 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40198 if test $ac_cv_lib_z_deflate = yes; then
40203 if test x$FDLIBS = x-lz; then
40204 cat >>confdefs.h <<\_ACEOF
40205 #define HAVE_LIBZ 1
40212 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40213 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40214 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40215 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40216 echo $ECHO_N "(cached) $ECHO_C" >&6
40218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40219 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40221 # Is the header compilable?
40222 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40223 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40224 cat >conftest.$ac_ext <<_ACEOF
40227 cat confdefs.h >>conftest.$ac_ext
40228 cat >>conftest.$ac_ext <<_ACEOF
40229 /* end confdefs.h. */
40230 $ac_includes_default
40231 #include <sys/acl.h>
40233 rm -f conftest.$ac_objext
40234 if { (ac_try="$ac_compile"
40235 case "(($ac_try" in
40236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40237 *) ac_try_echo=$ac_try;;
40239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40240 (eval "$ac_compile") 2>conftest.er1
40242 grep -v '^ *+' conftest.er1 >conftest.err
40244 cat conftest.err >&5
40245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40246 (exit $ac_status); } && {
40247 test -z "$ac_c_werror_flag" ||
40248 test ! -s conftest.err
40249 } && test -s conftest.$ac_objext; then
40250 ac_header_compiler=yes
40252 echo "$as_me: failed program was:" >&5
40253 sed 's/^/| /' conftest.$ac_ext >&5
40255 ac_header_compiler=no
40258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40260 echo "${ECHO_T}$ac_header_compiler" >&6; }
40262 # Is the header present?
40263 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40264 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40265 cat >conftest.$ac_ext <<_ACEOF
40268 cat confdefs.h >>conftest.$ac_ext
40269 cat >>conftest.$ac_ext <<_ACEOF
40270 /* end confdefs.h. */
40271 #include <sys/acl.h>
40273 if { (ac_try="$ac_cpp conftest.$ac_ext"
40274 case "(($ac_try" in
40275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40276 *) ac_try_echo=$ac_try;;
40278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40281 grep -v '^ *+' conftest.er1 >conftest.err
40283 cat conftest.err >&5
40284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40285 (exit $ac_status); } >/dev/null && {
40286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40287 test ! -s conftest.err
40289 ac_header_preproc=yes
40291 echo "$as_me: failed program was:" >&5
40292 sed 's/^/| /' conftest.$ac_ext >&5
40294 ac_header_preproc=no
40297 rm -f conftest.err conftest.$ac_ext
40298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40299 echo "${ECHO_T}$ac_header_preproc" >&6; }
40301 # So? What about this header?
40302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40304 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40305 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40306 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40307 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40308 ac_header_preproc=yes
40311 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40312 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40313 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40314 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40315 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40316 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40317 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40318 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40319 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40320 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40321 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40322 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40326 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40327 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40328 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40329 echo $ECHO_N "(cached) $ECHO_C" >&6
40331 ac_cv_header_sys_acl_h=$ac_header_preproc
40333 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40334 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40339 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40340 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40341 if test "${ac_cv_func_acl_get_file+set}" = set; then
40342 echo $ECHO_N "(cached) $ECHO_C" >&6
40344 cat >conftest.$ac_ext <<_ACEOF
40347 cat confdefs.h >>conftest.$ac_ext
40348 cat >>conftest.$ac_ext <<_ACEOF
40349 /* end confdefs.h. */
40350 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40352 #define acl_get_file innocuous_acl_get_file
40354 /* System header to define __stub macros and hopefully few prototypes,
40355 which can conflict with char acl_get_file (); below.
40356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40357 <limits.h> exists even on freestanding compilers. */
40360 # include <limits.h>
40362 # include <assert.h>
40365 #undef acl_get_file
40367 /* Override any GCC internal prototype to avoid an error.
40368 Use char because int might match the return type of a GCC
40369 builtin and then its argument prototype would still apply. */
40373 char acl_get_file ();
40374 /* The GNU C library defines this for functions which it implements
40375 to always fail with ENOSYS. Some functions are actually named
40376 something starting with __ and the normal name is an alias. */
40377 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40384 return acl_get_file ();
40389 rm -f conftest.$ac_objext conftest$ac_exeext
40390 if { (ac_try="$ac_link"
40391 case "(($ac_try" in
40392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40393 *) ac_try_echo=$ac_try;;
40395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40396 (eval "$ac_link") 2>conftest.er1
40398 grep -v '^ *+' conftest.er1 >conftest.err
40400 cat conftest.err >&5
40401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40402 (exit $ac_status); } && {
40403 test -z "$ac_c_werror_flag" ||
40404 test ! -s conftest.err
40405 } && test -s conftest$ac_exeext &&
40406 $as_test_x conftest$ac_exeext; then
40407 ac_cv_func_acl_get_file=yes
40409 echo "$as_me: failed program was:" >&5
40410 sed 's/^/| /' conftest.$ac_ext >&5
40412 ac_cv_func_acl_get_file=no
40415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40416 conftest$ac_exeext conftest.$ac_ext
40418 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40419 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40420 if test $ac_cv_func_acl_get_file = yes; then
40424 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40425 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40426 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40427 echo $ECHO_N "(cached) $ECHO_C" >&6
40429 ac_check_lib_save_LIBS=$LIBS
40431 cat >conftest.$ac_ext <<_ACEOF
40434 cat confdefs.h >>conftest.$ac_ext
40435 cat >>conftest.$ac_ext <<_ACEOF
40436 /* end confdefs.h. */
40438 /* Override any GCC internal prototype to avoid an error.
40439 Use char because int might match the return type of a GCC
40440 builtin and then its argument prototype would still apply. */
40444 char acl_get_file ();
40448 return acl_get_file ();
40453 rm -f conftest.$ac_objext conftest$ac_exeext
40454 if { (ac_try="$ac_link"
40455 case "(($ac_try" in
40456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40457 *) ac_try_echo=$ac_try;;
40459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40460 (eval "$ac_link") 2>conftest.er1
40462 grep -v '^ *+' conftest.er1 >conftest.err
40464 cat conftest.err >&5
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); } && {
40467 test -z "$ac_c_werror_flag" ||
40468 test ! -s conftest.err
40469 } && test -s conftest$ac_exeext &&
40470 $as_test_x conftest$ac_exeext; then
40471 ac_cv_lib_acl_acl_get_file=yes
40473 echo "$as_me: failed program was:" >&5
40474 sed 's/^/| /' conftest.$ac_ext >&5
40476 ac_cv_lib_acl_acl_get_file=no
40479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40480 conftest$ac_exeext conftest.$ac_ext
40481 LIBS=$ac_check_lib_save_LIBS
40483 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40484 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40485 if test $ac_cv_lib_acl_acl_get_file = yes; then
40488 FDLIBS="-lacl $FDLIBS"
40492 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40493 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40494 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40495 echo $ECHO_N "(cached) $ECHO_C" >&6
40497 ac_check_lib_save_LIBS=$LIBS
40499 cat >conftest.$ac_ext <<_ACEOF
40502 cat confdefs.h >>conftest.$ac_ext
40503 cat >>conftest.$ac_ext <<_ACEOF
40504 /* end confdefs.h. */
40506 /* Override any GCC internal prototype to avoid an error.
40507 Use char because int might match the return type of a GCC
40508 builtin and then its argument prototype would still apply. */
40516 return acltotext ();
40521 rm -f conftest.$ac_objext conftest$ac_exeext
40522 if { (ac_try="$ac_link"
40523 case "(($ac_try" in
40524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40525 *) ac_try_echo=$ac_try;;
40527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40528 (eval "$ac_link") 2>conftest.er1
40530 grep -v '^ *+' conftest.er1 >conftest.err
40532 cat conftest.err >&5
40533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534 (exit $ac_status); } && {
40535 test -z "$ac_c_werror_flag" ||
40536 test ! -s conftest.err
40537 } && test -s conftest$ac_exeext &&
40538 $as_test_x conftest$ac_exeext; then
40539 ac_cv_lib_sec_acltotext=yes
40541 echo "$as_me: failed program was:" >&5
40542 sed 's/^/| /' conftest.$ac_ext >&5
40544 ac_cv_lib_sec_acltotext=no
40547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40548 conftest$ac_exeext conftest.$ac_ext
40549 LIBS=$ac_check_lib_save_LIBS
40551 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40552 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40553 if test $ac_cv_lib_sec_acltotext = yes; then
40556 FDLIBS="-lsec $FDLIBS"
40569 if test $have_acl = yes; then
40570 cat >>confdefs.h <<\_ACEOF
40577 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40578 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40579 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40580 echo $ECHO_N "(cached) $ECHO_C" >&6
40582 ac_check_lib_save_LIBS=$LIBS
40583 LIBS="-lpthread $LIBS"
40584 cat >conftest.$ac_ext <<_ACEOF
40587 cat confdefs.h >>conftest.$ac_ext
40588 cat >>conftest.$ac_ext <<_ACEOF
40589 /* end confdefs.h. */
40591 /* Override any GCC internal prototype to avoid an error.
40592 Use char because int might match the return type of a GCC
40593 builtin and then its argument prototype would still apply. */
40597 char pthread_create ();
40601 return pthread_create ();
40606 rm -f conftest.$ac_objext conftest$ac_exeext
40607 if { (ac_try="$ac_link"
40608 case "(($ac_try" in
40609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40610 *) ac_try_echo=$ac_try;;
40612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40613 (eval "$ac_link") 2>conftest.er1
40615 grep -v '^ *+' conftest.er1 >conftest.err
40617 cat conftest.err >&5
40618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40619 (exit $ac_status); } && {
40620 test -z "$ac_c_werror_flag" ||
40621 test ! -s conftest.err
40622 } && test -s conftest$ac_exeext &&
40623 $as_test_x conftest$ac_exeext; then
40624 ac_cv_lib_pthread_pthread_create=yes
40626 echo "$as_me: failed program was:" >&5
40627 sed 's/^/| /' conftest.$ac_ext >&5
40629 ac_cv_lib_pthread_pthread_create=no
40632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40633 conftest$ac_exeext conftest.$ac_ext
40634 LIBS=$ac_check_lib_save_LIBS
40636 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40637 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40638 if test $ac_cv_lib_pthread_pthread_create = yes; then
40639 PTHREAD_LIB="-lpthread"
40642 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40643 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40644 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40645 echo $ECHO_N "(cached) $ECHO_C" >&6
40647 ac_check_lib_save_LIBS=$LIBS
40648 LIBS="-lpthreads $LIBS"
40649 cat >conftest.$ac_ext <<_ACEOF
40652 cat confdefs.h >>conftest.$ac_ext
40653 cat >>conftest.$ac_ext <<_ACEOF
40654 /* end confdefs.h. */
40656 /* Override any GCC internal prototype to avoid an error.
40657 Use char because int might match the return type of a GCC
40658 builtin and then its argument prototype would still apply. */
40662 char pthread_create ();
40666 return pthread_create ();
40671 rm -f conftest.$ac_objext conftest$ac_exeext
40672 if { (ac_try="$ac_link"
40673 case "(($ac_try" in
40674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40675 *) ac_try_echo=$ac_try;;
40677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40678 (eval "$ac_link") 2>conftest.er1
40680 grep -v '^ *+' conftest.er1 >conftest.err
40682 cat conftest.err >&5
40683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40684 (exit $ac_status); } && {
40685 test -z "$ac_c_werror_flag" ||
40686 test ! -s conftest.err
40687 } && test -s conftest$ac_exeext &&
40688 $as_test_x conftest$ac_exeext; then
40689 ac_cv_lib_pthreads_pthread_create=yes
40691 echo "$as_me: failed program was:" >&5
40692 sed 's/^/| /' conftest.$ac_ext >&5
40694 ac_cv_lib_pthreads_pthread_create=no
40697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40698 conftest$ac_exeext conftest.$ac_ext
40699 LIBS=$ac_check_lib_save_LIBS
40701 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40702 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40703 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40704 PTHREAD_LIB="-lpthreads"
40707 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40708 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40709 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40710 echo $ECHO_N "(cached) $ECHO_C" >&6
40712 ac_check_lib_save_LIBS=$LIBS
40714 cat >conftest.$ac_ext <<_ACEOF
40717 cat confdefs.h >>conftest.$ac_ext
40718 cat >>conftest.$ac_ext <<_ACEOF
40719 /* end confdefs.h. */
40721 /* Override any GCC internal prototype to avoid an error.
40722 Use char because int might match the return type of a GCC
40723 builtin and then its argument prototype would still apply. */
40727 char pthread_create ();
40731 return pthread_create ();
40736 rm -f conftest.$ac_objext conftest$ac_exeext
40737 if { (ac_try="$ac_link"
40738 case "(($ac_try" in
40739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40740 *) ac_try_echo=$ac_try;;
40742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40743 (eval "$ac_link") 2>conftest.er1
40745 grep -v '^ *+' conftest.er1 >conftest.err
40747 cat conftest.err >&5
40748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40749 (exit $ac_status); } && {
40750 test -z "$ac_c_werror_flag" ||
40751 test ! -s conftest.err
40752 } && test -s conftest$ac_exeext &&
40753 $as_test_x conftest$ac_exeext; then
40754 ac_cv_lib_c_r_pthread_create=yes
40756 echo "$as_me: failed program was:" >&5
40757 sed 's/^/| /' conftest.$ac_ext >&5
40759 ac_cv_lib_c_r_pthread_create=no
40762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40763 conftest$ac_exeext conftest.$ac_ext
40764 LIBS=$ac_check_lib_save_LIBS
40766 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40767 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40768 if test $ac_cv_lib_c_r_pthread_create = yes; then
40769 PTHREAD_LIB="-lc_r"
40772 { echo "$as_me:$LINENO: checking for pthread_create" >&5
40773 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40774 if test "${ac_cv_func_pthread_create+set}" = set; then
40775 echo $ECHO_N "(cached) $ECHO_C" >&6
40777 cat >conftest.$ac_ext <<_ACEOF
40780 cat confdefs.h >>conftest.$ac_ext
40781 cat >>conftest.$ac_ext <<_ACEOF
40782 /* end confdefs.h. */
40783 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40785 #define pthread_create innocuous_pthread_create
40787 /* System header to define __stub macros and hopefully few prototypes,
40788 which can conflict with char pthread_create (); below.
40789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40790 <limits.h> exists even on freestanding compilers. */
40793 # include <limits.h>
40795 # include <assert.h>
40798 #undef pthread_create
40800 /* Override any GCC internal prototype to avoid an error.
40801 Use char because int might match the return type of a GCC
40802 builtin and then its argument prototype would still apply. */
40806 char pthread_create ();
40807 /* The GNU C library defines this for functions which it implements
40808 to always fail with ENOSYS. Some functions are actually named
40809 something starting with __ and the normal name is an alias. */
40810 #if defined __stub_pthread_create || defined __stub___pthread_create
40817 return pthread_create ();
40822 rm -f conftest.$ac_objext conftest$ac_exeext
40823 if { (ac_try="$ac_link"
40824 case "(($ac_try" in
40825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40826 *) ac_try_echo=$ac_try;;
40828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40829 (eval "$ac_link") 2>conftest.er1
40831 grep -v '^ *+' conftest.er1 >conftest.err
40833 cat conftest.err >&5
40834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835 (exit $ac_status); } && {
40836 test -z "$ac_c_werror_flag" ||
40837 test ! -s conftest.err
40838 } && test -s conftest$ac_exeext &&
40839 $as_test_x conftest$ac_exeext; then
40840 ac_cv_func_pthread_create=yes
40842 echo "$as_me: failed program was:" >&5
40843 sed 's/^/| /' conftest.$ac_ext >&5
40845 ac_cv_func_pthread_create=no
40848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40849 conftest$ac_exeext conftest.$ac_ext
40851 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40852 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40868 cat >>confdefs.h <<\_ACEOF
40873 CFLAGS=${CFLAGS--O}
40875 if test x$have_gcc = xyes ; then
40876 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40877 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40879 LDFLAGS=${LDFLAGS--O}
40880 DB_LIBS="${SQL_LFLAGS}"
40881 CPPFLAGS="$CPPFLAGS"
40908 PFILES="platforms/Makefile"
40912 hostname=`uname -n | cut -d '.' -f 1`
40913 if test x${hostname} = x ; then
40914 hostname="localhost"
40916 case "$DISTNAME" in
40919 PSCMD="ps -e -o pid,comm"
40920 PFILES="${PFILES} \
40921 platforms/aix/Makefile"
40922 TAPEDRIVE="/dev/rmt0.1"
40926 PTHREAD_LIB="-lpthread -lexc"
40927 if test "${CC}" = "gcc" ; then
40934 TAPEDRIVE="/dev/nrmt0"
40937 DISTVER=`uname -a |awk '{print $3}'`
40938 TAPEDRIVE="/dev/nrmt0"
40939 PTHREAD_LIB="-pthread"
40940 CFLAGS="${CFLAGS} -pthread"
40941 PSCMD="ps -ax -o pid,command"
40944 PFILES="${PFILES} \
40945 platforms/bsdi/Makefile \
40946 platforms/bsdi/bacula-fd \
40947 platforms/bsdi/bacula-sd \
40948 platforms/bsdi/bacula-dir"
40949 largefile_support="yes"
40952 DISTVER=`uname -a |awk '{print $3}'`
40953 TAPEDRIVE="/dev/nrst0"
40955 WCFLAGS="-mwindows"
40956 WLDFLAGS="-mwindows"
40960 TAPEDRIVE="/dev/nst0"
40961 PSCMD="ps -e -o pid,command"
40963 PFILES="${PFILES} \
40964 platforms/darwin/Makefile"
40967 ping -c 1 $hostname 2>&1 1>/dev/null
40968 if test ! $? = 0; then
40969 hostname="localhost"
40971 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40974 DISTVER=`cat /etc/debian_version`
40975 if test -f /etc/lsb-release ; then
40977 if test "x$DISTRIB_ID" != "x" ; then
40978 DISTNAME=$DISTRIB_ID
40980 if test "x$DISTRIB_RELEASE" != "x" ; then
40981 DISTVER=$DISTRIB_RELEASE
40984 if test "$DISTNAME" = "Ubuntu" ; then
40987 TAPEDRIVE="/dev/nst0"
40988 PSCMD="ps -e -o pid,command"
40989 if test "$DISTNAME" = "ubuntu" ; then
40990 PFILES="${PFILES} \
40991 platforms/ubuntu/Makefile \
40992 platforms/ubuntu/bacula-fd \
40993 platforms/ubuntu/bacula-sd \
40994 platforms/ubuntu/bacula-dir"
40996 PFILES="${PFILES} \
40997 platforms/debian/Makefile \
40998 platforms/debian/bacula-fd \
40999 platforms/debian/bacula-sd \
41000 platforms/debian/bacula-dir"
41004 ping -c 1 $hostname 2>&1 1>/dev/null
41005 if test ! $? = 0; then
41006 hostname="localhost"
41008 DISTVER=`uname -a |awk '{print $3}'`
41009 VER=`echo $DISTVER | cut -c 1`
41010 if test x$VER = x4 ; then
41011 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41012 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41016 TAPEDRIVE="/dev/nrsa0"
41017 PSCMD="ps -ax -o pid,command"
41018 PFILES="${PFILES} \
41019 platforms/freebsd/Makefile \
41020 platforms/freebsd/bacula-fd \
41021 platforms/freebsd/bacula-sd \
41022 platforms/freebsd/bacula-dir"
41023 largefile_support="yes"
41026 PSCMD="UNIX95=1; ps -e -o pid,comm"
41027 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41029 TAPEDRIVE="/dev/rmt/0hnb"
41030 PTHREAD_LIB="-lpthread"
41031 cat >>confdefs.h <<\_ACEOF
41032 #define _INCLUDE_LONGLONG 1
41038 TAPEDRIVE="/dev/rmt/0cbn"
41039 PSCMD="ps -e -o pid,comm"
41040 PFILES="${PFILES} \
41041 platforms/irix/Makefile \
41042 platforms/irix/bacula-fd \
41043 platforms/irix/bacula-sd \
41044 platforms/irix/bacula-dir"
41047 DISTVER=`uname -a |awk '{print $3}'`
41050 TAPEDRIVE="/dev/nrst0"
41051 PSCMD="ps -ax -o pid,command"
41052 PTHREAD_LIB="-pthread"
41053 CFLAGS="${CFLAGS} -pthread"
41056 DISTVER=`uname -a |awk '{print $3}'`
41059 TAPEDRIVE="/dev/nrst0"
41060 PSCMD="ps -ax -o pid,command"
41061 PTHREAD_LIB="-pthread"
41062 CFLAGS="${CFLAGS} -pthread"
41063 PFILES="${PFILES} \
41064 platforms/openbsd/Makefile \
41065 platforms/openbsd/bacula-fd \
41066 platforms/openbsd/bacula-sd \
41067 platforms/openbsd/bacula-dir"
41070 ping -c 1 $hostname 2>&1 1>/dev/null
41071 if test ! $? = 0; then
41072 hostname="localhost"
41074 if test -f /etc/whitebox-release ; then
41075 f=/etc/whitebox-release
41077 f=/etc/redhat-release
41079 if test `cat $f | grep release |\
41080 cut -f 3 -d ' '`x = "Enterprise"x ; then
41081 DISTVER="Enterprise "`cat $f | grep release |\
41084 DISTVER=`cat /etc/redhat-release | grep release |\
41087 TAPEDRIVE="/dev/nst0"
41088 PSCMD="ps -e -o pid,command"
41089 PFILES="${PFILES} \
41090 platforms/redhat/Makefile \
41091 platforms/redhat/bacula-fd \
41092 platforms/redhat/bacula-sd \
41093 platforms/redhat/bacula-dir \
41094 platforms/redhat/bacula.spec \
41098 ping -c 1 $hostname 2>&1 1>/dev/null
41099 if test ! $? = 0; then
41100 hostname="localhost"
41102 DISTVER=`cat /etc/mandrake-release | grep release |\
41104 TAPEDRIVE="/dev/nst0"
41105 PSCMD="ps -e -o pid,command"
41106 PFILES="${PFILES} \
41107 platforms/mandrake/Makefile \
41108 platforms/mandrake/bacula-fd \
41109 platforms/mandrake/bacula-sd \
41110 platforms/mandrake/bacula-dir \
41111 platforms/mandrake/bacula.spec \
41115 ping -c 1 $hostname 2>&1 1>/dev/null
41116 if test ! $? = 0; then
41117 hostname="localhost"
41119 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41120 TAPEDRIVE="/dev/nst0"
41121 PSCMD="ps -e -o pid,command"
41122 PFILES="${PFILES} \
41123 platforms/gentoo/Makefile \
41124 platforms/gentoo/bacula-init \
41125 platforms/gentoo/bacula-fd \
41126 platforms/gentoo/bacula-sd \
41127 platforms/gentoo/bacula-dir"
41130 ping -c 1 $hostname 2>&1 1>/dev/null
41131 if test ! $? = 0; then
41132 hostname="localhost"
41134 DISTVER=`cat /etc/slackware-version`
41135 TAPEDRIVE="/dev/nst0"
41136 PSCMD="ps -e -o pid,command"
41137 PFILES="${PFILES} \
41138 platforms/slackware/Makefile \
41139 platforms/slackware/rc.bacula-fd \
41140 platforms/slackware/rc.bacula-sd \
41141 platforms/slackware/rc.bacula-dir\
41142 platforms/slackware/functions.bacula"
41146 TAPEDRIVE="/dev/rmt/0cbn"
41147 PSCMD="ps -e -o pid,comm"
41148 PFILES="${PFILES} \
41149 platforms/solaris/Makefile \
41150 platforms/solaris/bacula-fd \
41151 platforms/solaris/bacula-sd \
41152 platforms/solaris/bacula-dir"
41153 if test x$DISTVER = x5.6 ; then
41154 cat >>confdefs.h <<\_ACEOF
41155 #define HAVE_OLD_SOCKOPT 1
41159 LIBS="$LIBS -lresolv"
41162 ping -c 1 $hostname 2>&1 1>/dev/null
41163 if test ! $? = 0; then
41164 hostname="localhost"
41166 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41168 TAPEDRIVE="/dev/nst0"
41169 PSCMD="ps -e -o pid,command"
41170 PFILES="${PFILES} \
41171 platforms/suse/Makefile \
41172 platforms/suse/bacula-fd \
41173 platforms/suse/bacula-sd \
41174 platforms/suse/bacula-dir \
41175 platforms/suse/bacula \
41176 platforms/suse/bacula.spec"
41179 ping -c 1 $hostname 2>&1 1>/dev/null
41180 if test ! $? = 0; then
41181 hostname="localhost"
41185 TAPEDRIVE="/dev/nst0"
41186 PSCMD="ps -e -o pid,command"
41187 PFILES="${PFILES} \
41188 platforms/suse/Makefile \
41189 platforms/suse/bacula-fd \
41190 platforms/suse/bacula-sd \
41191 platforms/suse/bacula-dir"
41195 TAPEDRIVE="/dev/nst0"
41198 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41204 LIBS="$PTHREAD_LIB $LIBS"
41206 cat >>confdefs.h <<_ACEOF
41210 cat >>confdefs.h <<_ACEOF
41221 MCOMMON=./autoconf/Make.common
41224 if test "x${subsysdir}" = "x${sbindir}" ; then
41227 echo "You have set both --sbindir and --with-subsys-dir"
41228 echo " equal to: ${subsysdir} "
41229 echo "This is not permitted. Please reconfigure."
41231 echo "Aborting configuration ..."
41237 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 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"
41239 ac_config_commands="$ac_config_commands default"
41241 cat >confcache <<\_ACEOF
41242 # This file is a shell script that caches the results of configure
41243 # tests run on this system so they can be shared between configure
41244 # scripts and configure runs, see configure's option --config-cache.
41245 # It is not useful on other systems. If it contains results you don't
41246 # want to keep, you may remove or edit it.
41248 # config.status only pays attention to the cache file if you give it
41249 # the --recheck option to rerun configure.
41251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41253 # following values.
41257 # The following way of writing the cache mishandles newlines in values,
41258 # but we know of no workaround that is simple, portable, and efficient.
41259 # So, we kill variables containing newlines.
41260 # Ultrix sh set writes to stderr and can't be redirected directly,
41261 # and sets the high bit in the cache file unless we assign to the vars.
41263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41264 eval ac_val=\$$ac_var
41268 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41269 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41272 _ | IFS | as_nl) ;; #(
41273 *) $as_unset $ac_var ;;
41279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41280 *${as_nl}ac_space=\ *)
41281 # `set' does not quote correctly, so add quotes (double-quote
41282 # substitution turns \\\\ into \\, and sed turns \\ into \).
41285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41288 # `set' quotes correctly as required by POSIX, so do not add quotes.
41289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41303 if test -w "$cache_file"; then
41304 test "x$cache_file" != "x/dev/null" &&
41305 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41306 echo "$as_me: updating cache $cache_file" >&6;}
41307 cat confcache >$cache_file
41309 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41310 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41316 # Let make expand exec_prefix.
41317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41319 DEFS=-DHAVE_CONFIG_H
41323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41324 # 1. Remove the extension, and $U if already installed.
41325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41326 ac_i=`echo "$ac_i" | sed "$ac_script"`
41327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41328 # will be set to the directory where LIBOBJS objects are built.
41329 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41330 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41332 LIBOBJS=$ac_libobjs
41334 LTLIBOBJS=$ac_ltlibobjs
41338 : ${CONFIG_STATUS=./config.status}
41339 ac_clean_files_save=$ac_clean_files
41340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41341 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41342 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41343 cat >$CONFIG_STATUS <<_ACEOF
41345 # Generated by $as_me.
41346 # Run this file to recreate the current configuration.
41347 # Compiler output produced by configure, useful for debugging
41348 # configure, is in config.log if it exists.
41351 ac_cs_recheck=false
41353 SHELL=\${CONFIG_SHELL-$SHELL}
41356 cat >>$CONFIG_STATUS <<\_ACEOF
41357 ## --------------------- ##
41358 ## M4sh Initialization. ##
41359 ## --------------------- ##
41361 # Be more Bourne compatible
41362 DUALCASE=1; export DUALCASE # for MKS sh
41363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41366 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41367 # is contrary to our usage. Disable this feature.
41368 alias -g '${1+"$@"}'='"$@"'
41369 setopt NO_GLOB_SUBST
41371 case `(set -o) 2>/dev/null` in
41372 *posix*) set -o posix ;;
41381 # Avoid depending upon Character Ranges.
41382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41385 as_cr_digits='0123456789'
41386 as_cr_alnum=$as_cr_Letters$as_cr_digits
41388 # The user is always right.
41389 if test "${PATH_SEPARATOR+set}" != set; then
41390 echo "#! /bin/sh" >conf$$.sh
41391 echo "exit 0" >>conf$$.sh
41393 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41401 # Support unset when possible.
41402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41410 # We need space, tab and new line, in precisely that order. Quoting is
41411 # there to prevent editors from complaining about space-tab.
41412 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41413 # splitting by setting IFS to empty value.)
41418 # Find who we are. Look in the path if we contain no directory separator.
41420 *[\\/]* ) as_myself=$0 ;;
41421 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41422 for as_dir in $PATH
41425 test -z "$as_dir" && as_dir=.
41426 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41432 # We did not find ourselves, most probably we were run as `sh COMMAND'
41433 # in which case we are not to be found in the path.
41434 if test "x$as_myself" = x; then
41437 if test ! -f "$as_myself"; then
41438 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41439 { (exit 1); exit 1; }
41442 # Work around bugs in pre-3.0 UWIN ksh.
41443 for as_var in ENV MAIL MAILPATH
41444 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41454 LC_TELEPHONE LC_TIME
41456 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41457 eval $as_var=C; export $as_var
41459 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41463 # Required to use basename.
41464 if expr a : '\(a\)' >/dev/null 2>&1 &&
41465 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41471 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41472 as_basename=basename
41478 # Name of the executable.
41479 as_me=`$as_basename -- "$0" ||
41480 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41481 X"$0" : 'X\(//\)$' \| \
41482 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41484 sed '/^.*\/\([^/][^/]*\)\/*$/{
41503 as_lineno_1=$LINENO
41504 as_lineno_2=$LINENO
41505 test "x$as_lineno_1" != "x$as_lineno_2" &&
41506 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41508 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41509 # uniformly replaced by the line number. The first 'sed' inserts a
41510 # line-number line after each line using $LINENO; the second 'sed'
41511 # does the real work. The second script uses 'N' to pair each
41512 # line-number line with the line containing $LINENO, and appends
41513 # trailing '-' during substitution so that $LINENO is not a special
41514 # case at line end.
41515 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41516 # scripts with optimization help from Paolo Bonzini. Blame Lee
41517 # E. McMahon (1931-1989) for sed's syntax. :-)
41529 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41532 ' >$as_me.lineno &&
41533 chmod +x "$as_me.lineno" ||
41534 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41535 { (exit 1); exit 1; }; }
41537 # Don't try to exec as it changes $[0], causing all sort of problems
41538 # (the dirname of $[0] is not the place where we might find the
41539 # original and so on. Autoconf is especially sensitive to this).
41540 . "./$as_me.lineno"
41541 # Exit status is that of the last command.
41546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41552 ECHO_C= ECHO_N= ECHO_T=
41553 case `echo -n x` in
41555 case `echo 'x\c'` in
41556 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41563 if expr a : '\(a\)' >/dev/null 2>&1 &&
41564 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41570 rm -f conf$$ conf$$.exe conf$$.file
41571 if test -d conf$$.dir; then
41572 rm -f conf$$.dir/conf$$.file
41578 if ln -s conf$$.file conf$$ 2>/dev/null; then
41580 # ... but there are two gotchas:
41581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41583 # In both cases, we have to default to `cp -p'.
41584 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41586 elif ln conf$$.file conf$$ 2>/dev/null; then
41591 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41592 rmdir conf$$.dir 2>/dev/null
41594 if mkdir -p . 2>/dev/null; then
41597 test -d ./-p && rmdir ./-p
41601 if test -x / >/dev/null 2>&1; then
41602 as_test_x='test -x'
41604 if ls -dL / >/dev/null 2>&1; then
41611 if test -d "$1"; then
41617 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41618 ???[sx]*):;;*)false;;esac;fi
41622 as_executable_p=$as_test_x
41624 # Sed expression to map a string onto a valid CPP name.
41625 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41627 # Sed expression to map a string onto a valid variable name.
41628 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41633 # Save the log message, to keep $[0] and so on meaningful, and to
41634 # report actual input values of CONFIG_FILES etc. instead of their
41635 # values after options handling.
41637 This file was extended by $as_me, which was
41638 generated by GNU Autoconf 2.61. Invocation command line was
41640 CONFIG_FILES = $CONFIG_FILES
41641 CONFIG_HEADERS = $CONFIG_HEADERS
41642 CONFIG_LINKS = $CONFIG_LINKS
41643 CONFIG_COMMANDS = $CONFIG_COMMANDS
41646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41651 cat >>$CONFIG_STATUS <<_ACEOF
41652 # Files that config.status was made for.
41653 config_files="$ac_config_files"
41654 config_headers="$ac_config_headers"
41655 config_commands="$ac_config_commands"
41659 cat >>$CONFIG_STATUS <<\_ACEOF
41661 \`$as_me' instantiates files from templates according to the
41662 current configuration.
41664 Usage: $0 [OPTIONS] [FILE]...
41666 -h, --help print this help, then exit
41667 -V, --version print version number and configuration settings, then exit
41668 -q, --quiet do not print progress messages
41669 -d, --debug don't remove temporary files
41670 --recheck update $as_me by reconfiguring in the same conditions
41671 --file=FILE[:TEMPLATE]
41672 instantiate the configuration file FILE
41673 --header=FILE[:TEMPLATE]
41674 instantiate the configuration header FILE
41676 Configuration files:
41679 Configuration headers:
41682 Configuration commands:
41685 Report bugs to <bug-autoconf@gnu.org>."
41688 cat >>$CONFIG_STATUS <<_ACEOF
41691 configured by $0, generated by GNU Autoconf 2.61,
41692 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41694 Copyright (C) 2006 Free Software Foundation, Inc.
41695 This config.status script is free software; the Free Software Foundation
41696 gives unlimited permission to copy, distribute and modify it."
41703 cat >>$CONFIG_STATUS <<\_ACEOF
41704 # If no file are specified by the user, then we need to provide default
41705 # value. By we need to know if files were specified by the user.
41711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41712 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41723 # Handling of the options.
41724 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41726 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41727 echo "$ac_cs_version"; exit ;;
41728 --debug | --debu | --deb | --de | --d | -d )
41730 --file | --fil | --fi | --f )
41732 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41733 ac_need_defaults=false;;
41734 --header | --heade | --head | --hea )
41736 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41737 ac_need_defaults=false;;
41739 # Conflict between --help and --header
41740 { echo "$as_me: error: ambiguous option: $1
41741 Try \`$0 --help' for more information." >&2
41742 { (exit 1); exit 1; }; };;
41743 --help | --hel | -h )
41744 echo "$ac_cs_usage"; exit ;;
41745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41746 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41749 # This is an error.
41750 -*) { echo "$as_me: error: unrecognized option: $1
41751 Try \`$0 --help' for more information." >&2
41752 { (exit 1); exit 1; }; } ;;
41754 *) ac_config_targets="$ac_config_targets $1"
41755 ac_need_defaults=false ;;
41761 ac_configure_extra_args=
41763 if $ac_cs_silent; then
41765 ac_configure_extra_args="$ac_configure_extra_args --silent"
41769 cat >>$CONFIG_STATUS <<_ACEOF
41770 if \$ac_cs_recheck; then
41771 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41772 CONFIG_SHELL=$SHELL
41773 export CONFIG_SHELL
41774 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41778 cat >>$CONFIG_STATUS <<\_ACEOF
41782 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41783 ## Running $as_me. ##
41789 cat >>$CONFIG_STATUS <<_ACEOF
41795 # The HP-UX ksh and POSIX shell print the target directory to stdout
41796 # if CDPATH is set.
41797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41799 sed_quote_subst='$sed_quote_subst'
41800 double_quote_subst='$double_quote_subst'
41801 delay_variable_subst='$delay_variable_subst'
41802 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41803 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41804 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41805 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41806 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41807 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41808 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41809 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41810 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41811 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41812 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41813 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41814 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41815 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41816 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41817 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41818 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41819 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41820 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41821 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41822 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41823 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41824 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41825 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41826 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41827 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41828 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41829 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41830 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41831 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41832 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41833 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41834 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41835 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41836 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41837 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41838 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41839 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41840 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41841 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41842 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41843 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41844 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41845 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41846 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"`'
41847 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"`'
41848 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41849 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41850 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41851 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41852 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41853 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41854 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41855 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41856 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41857 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41858 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41859 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41860 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41861 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41862 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41863 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41864 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41865 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41866 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41867 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41868 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41869 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41870 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41871 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41872 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41873 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41874 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41875 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41876 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41877 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41878 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41879 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41880 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41881 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41882 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41883 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41884 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41885 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41886 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41887 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41888 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41889 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41890 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41891 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41892 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41893 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41894 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41895 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41896 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41897 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41898 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41899 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41900 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41901 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41902 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41903 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41904 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41905 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41906 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41907 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41908 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41909 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41910 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41911 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41912 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41913 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41914 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41915 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41916 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41917 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41918 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41919 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41920 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41921 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41922 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41923 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41924 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41925 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41926 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41927 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41928 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41929 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41930 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41959 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41961 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41962 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41963 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41964 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41965 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41966 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41967 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41968 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41969 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41970 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41971 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41972 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41975 LTCFLAGS='$LTCFLAGS'
41976 compiler='$compiler_DEFAULT'
41978 # Quote evaled strings.
41990 deplibs_check_method \
41999 lt_cv_sys_global_symbol_pipe \
42000 lt_cv_sys_global_symbol_to_cdecl \
42001 lt_cv_sys_global_symbol_to_c_name_address \
42002 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42005 lt_prog_compiler_no_builtin_flag \
42006 lt_prog_compiler_wl \
42007 lt_prog_compiler_pic \
42008 lt_prog_compiler_static \
42009 lt_cv_prog_compiler_c_o \
42017 export_dynamic_flag_spec \
42018 whole_archive_flag_spec \
42019 compiler_needs_object \
42021 allow_undefined_flag \
42022 no_undefined_flag \
42023 hardcode_libdir_flag_spec \
42024 hardcode_libdir_flag_spec_ld \
42025 hardcode_libdir_separator \
42030 variables_saved_for_relink \
42032 library_names_spec \
42037 compiler_lib_search_dirs \
42042 compiler_lib_search_path \
42045 lt_prog_compiler_no_builtin_flag_CXX \
42046 lt_prog_compiler_wl_CXX \
42047 lt_prog_compiler_pic_CXX \
42048 lt_prog_compiler_static_CXX \
42049 lt_cv_prog_compiler_c_o_CXX \
42050 export_dynamic_flag_spec_CXX \
42051 whole_archive_flag_spec_CXX \
42052 compiler_needs_object_CXX \
42054 allow_undefined_flag_CXX \
42055 no_undefined_flag_CXX \
42056 hardcode_libdir_flag_spec_CXX \
42057 hardcode_libdir_flag_spec_ld_CXX \
42058 hardcode_libdir_separator_CXX \
42059 fix_srcfile_path_CXX \
42060 exclude_expsyms_CXX \
42061 include_expsyms_CXX \
42062 file_list_spec_CXX \
42063 compiler_lib_search_dirs_CXX \
42064 predep_objects_CXX \
42065 postdep_objects_CXX \
42068 compiler_lib_search_path_CXX; do
42069 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42070 *[\\\\\\\`\\"\\\$]*)
42071 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42074 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42079 # Double-quote double-evaled strings.
42080 for var in reload_cmds \
42081 old_postinstall_cmds \
42082 old_postuninstall_cmds \
42084 extract_expsyms_cmds \
42085 old_archive_from_new_cmds \
42086 old_archive_from_expsyms_cmds \
42088 archive_expsym_cmds \
42090 module_expsym_cmds \
42091 export_symbols_cmds \
42094 postuninstall_cmds \
42096 sys_lib_search_path_spec \
42097 sys_lib_dlsearch_path_spec \
42098 old_archive_cmds_CXX \
42099 old_archive_from_new_cmds_CXX \
42100 old_archive_from_expsyms_cmds_CXX \
42102 archive_expsym_cmds_CXX \
42104 module_expsym_cmds_CXX \
42105 export_symbols_cmds_CXX \
42106 prelink_cmds_CXX; do
42107 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42108 *[\\\\\\\`\\"\\\$]*)
42109 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42112 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42117 # Fix-up fallback echo if it was mangled by the above quoting rules.
42119 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42123 ac_aux_dir='$ac_aux_dir'
42124 xsi_shell='$xsi_shell'
42125 lt_shell_append='$lt_shell_append'
42127 # See if we are running on zsh, and set the options which allow our
42128 # commands through without removal of \ escapes INIT.
42129 if test -n "\${ZSH_VERSION+set}" ; then
42130 setopt NO_GLOB_SUBST
42136 TIMESTAMP='$TIMESTAMP'
42144 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42145 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42147 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42148 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42149 LINGUAS="${LINGUAS-%UNSET%}"
42154 cat >>$CONFIG_STATUS <<\_ACEOF
42156 # Handling of arguments.
42157 for ac_config_target in $ac_config_targets
42159 case $ac_config_target in
42160 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42161 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42162 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42163 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42164 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42165 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42166 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42167 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42168 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42169 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42170 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42171 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42172 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42173 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42174 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42175 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42176 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42177 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42178 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42179 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42180 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42181 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42182 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42183 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42184 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42185 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42186 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42187 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42188 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42189 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42190 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42191 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42192 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42193 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42194 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42195 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42196 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42197 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42198 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42199 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42200 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42201 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42202 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42203 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42204 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42205 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42206 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42207 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42208 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42209 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42210 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42211 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42212 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42213 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42214 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42215 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42216 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42217 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42218 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42219 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42220 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42221 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42222 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42223 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42224 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42225 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42226 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42227 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42228 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42229 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42230 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42231 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42232 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42233 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42234 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42235 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42236 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42237 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42238 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42239 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42240 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42241 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42242 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42243 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42244 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42245 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42246 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42247 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42248 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42249 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42250 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42251 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42252 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42253 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42254 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42255 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42256 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42257 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42258 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42259 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42260 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42261 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42262 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42263 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42264 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42265 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42266 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42267 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42268 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42269 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42270 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42271 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42272 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42274 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42275 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42276 { (exit 1); exit 1; }; };;
42281 # If the user did not use the arguments to specify the items to instantiate,
42282 # then the envvar interface is used. Set only those that are not.
42283 # We use the long form for the default assignment because of an extremely
42284 # bizarre bug on SunOS 4.1.3.
42285 if $ac_need_defaults; then
42286 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42287 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42288 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42291 # Have a temporary directory for convenience. Make it in the build tree
42292 # simply because there is no reason against having it here, and in addition,
42293 # creating and moving files from /tmp can sometimes cause problems.
42294 # Hook for its removal unless debugging.
42295 # Note that there is a small window in which the directory will not be cleaned:
42296 # after its creation but before its name has been assigned to `$tmp'.
42300 trap 'exit_status=$?
42301 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42303 trap '{ (exit 1); exit 1; }' 1 2 13 15
42305 # Create a (secure) tmp directory for tmp files.
42308 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42309 test -n "$tmp" && test -d "$tmp"
42312 tmp=./conf$$-$RANDOM
42313 (umask 077 && mkdir "$tmp")
42316 echo "$me: cannot create a temporary directory in ." >&2
42317 { (exit 1); exit 1; }
42321 # Set up the sed scripts for CONFIG_FILES section.
42324 # No need to generate the scripts if there are no CONFIG_FILES.
42325 # This happens for instance when ./config.status config.h
42326 if test -n "$CONFIG_FILES"; then
42330 # Create sed commands to just substitute file output variables.
42332 # Remaining file output variables are in a fragment that also has non-file
42338 for ac_last_try in false false false false false :; do
42339 cat >conf$$subs.sed <<_ACEOF
42340 SHELL!$SHELL$ac_delim
42341 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42342 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42343 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42344 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42345 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42346 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42347 exec_prefix!$exec_prefix$ac_delim
42348 prefix!$prefix$ac_delim
42349 program_transform_name!$program_transform_name$ac_delim
42350 bindir!$bindir$ac_delim
42351 sbindir!$sbindir$ac_delim
42352 libexecdir!$libexecdir$ac_delim
42353 datarootdir!$datarootdir$ac_delim
42354 datadir!$datadir$ac_delim
42355 sysconfdir!$sysconfdir$ac_delim
42356 sharedstatedir!$sharedstatedir$ac_delim
42357 localstatedir!$localstatedir$ac_delim
42358 includedir!$includedir$ac_delim
42359 oldincludedir!$oldincludedir$ac_delim
42360 docdir!$docdir$ac_delim
42361 infodir!$infodir$ac_delim
42362 htmldir!$htmldir$ac_delim
42363 dvidir!$dvidir$ac_delim
42364 pdfdir!$pdfdir$ac_delim
42365 psdir!$psdir$ac_delim
42366 libdir!$libdir$ac_delim
42367 localedir!$localedir$ac_delim
42368 mandir!$mandir$ac_delim
42369 DEFS!$DEFS$ac_delim
42370 ECHO_C!$ECHO_C$ac_delim
42371 ECHO_N!$ECHO_N$ac_delim
42372 ECHO_T!$ECHO_T$ac_delim
42373 LIBS!$LIBS$ac_delim
42374 build_alias!$build_alias$ac_delim
42375 host_alias!$host_alias$ac_delim
42376 target_alias!$target_alias$ac_delim
42377 BUILD_DIR!$BUILD_DIR$ac_delim
42378 TOP_DIR!$TOP_DIR$ac_delim
42379 TRUEPRG!$TRUEPRG$ac_delim
42380 FALSEPRG!$FALSEPRG$ac_delim
42381 VERSION!$VERSION$ac_delim
42382 DATE!$DATE$ac_delim
42383 LSMDATE!$LSMDATE$ac_delim
42384 BACULA!$BACULA$ac_delim
42385 post_host!$post_host$ac_delim
42387 CFLAGS!$CFLAGS$ac_delim
42388 LDFLAGS!$LDFLAGS$ac_delim
42389 CPPFLAGS!$CPPFLAGS$ac_delim
42390 ac_ct_CC!$ac_ct_CC$ac_delim
42391 EXEEXT!$EXEEXT$ac_delim
42392 OBJEXT!$OBJEXT$ac_delim
42394 CXXFLAGS!$CXXFLAGS$ac_delim
42395 ac_ct_CXX!$ac_ct_CXX$ac_delim
42397 GREP!$GREP$ac_delim
42398 EGREP!$EGREP$ac_delim
42399 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42400 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42401 INSTALL_DATA!$INSTALL_DATA$ac_delim
42403 REMOVE!$REMOVE$ac_delim
42406 ECHO!$ECHO$ac_delim
42410 OPENSSL!$OPENSSL$ac_delim
42413 MKISOFS!$MKISOFS$ac_delim
42414 PYTHON!$PYTHON$ac_delim
42415 GROWISOFS!$GROWISOFS$ac_delim
42416 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42417 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42418 PKGCONFIG!$PKGCONFIG$ac_delim
42419 QMAKE!$QMAKE$ac_delim
42420 QMAKEQT4!$QMAKEQT4$ac_delim
42421 WXCONFIG!$WXCONFIG$ac_delim
42422 WXFLAGS!$WXFLAGS$ac_delim
42423 CDRECORD!$CDRECORD$ac_delim
42424 PIDOF!$PIDOF$ac_delim
42426 ARFLAGS!$ARFLAGS$ac_delim
42427 MAKE_SHELL!$MAKE_SHELL$ac_delim
42428 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42429 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42430 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42431 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42432 LIBTOOL!$LIBTOOL$ac_delim
42433 build!$build$ac_delim
42436 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42438 elif $ac_last_try; then
42439 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42440 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42441 { (exit 1); exit 1; }; }
42443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42447 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42448 if test -n "$ac_eof"; then
42449 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42450 ac_eof=`expr $ac_eof + 1`
42453 cat >>$CONFIG_STATUS <<_ACEOF
42454 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42456 /^[ ]*@MCOMMON@[ ]*$/{
42462 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42463 s/^/s,@/; s/!/@,|#_!!_#|/
42466 s/'"$ac_delim"'$/,g/; t
42468 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42469 ' >>$CONFIG_STATUS <conf$$subs.sed
42470 rm -f conf$$subs.sed
42471 cat >>$CONFIG_STATUS <<_ACEOF
42477 for ac_last_try in false false false false false :; do
42478 cat >conf$$subs.sed <<_ACEOF
42479 build_cpu!$build_cpu$ac_delim
42480 build_vendor!$build_vendor$ac_delim
42481 build_os!$build_os$ac_delim
42482 host!$host$ac_delim
42483 host_cpu!$host_cpu$ac_delim
42484 host_vendor!$host_vendor$ac_delim
42485 host_os!$host_os$ac_delim
42486 FGREP!$FGREP$ac_delim
42488 DUMPBIN!$DUMPBIN$ac_delim
42489 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42491 LN_S!$LN_S$ac_delim
42492 OBJDUMP!$OBJDUMP$ac_delim
42493 STRIP!$STRIP$ac_delim
42494 RANLIB!$RANLIB$ac_delim
42495 lt_ECHO!$lt_ECHO$ac_delim
42496 DSYMUTIL!$DSYMUTIL$ac_delim
42497 NMEDIT!$NMEDIT$ac_delim
42498 LIPO!$LIPO$ac_delim
42499 OTOOL!$OTOOL$ac_delim
42500 OTOOL64!$OTOOL64$ac_delim
42501 CXXCPP!$CXXCPP$ac_delim
42502 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42503 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42504 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42505 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42506 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42507 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42508 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42509 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42510 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42511 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42512 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42513 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42514 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42515 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42516 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42517 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42518 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42519 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42520 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42521 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42522 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42523 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42524 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42525 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42526 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42527 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42528 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42529 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42530 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42531 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42532 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42533 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42534 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42535 SET_MAKE!$SET_MAKE$ac_delim
42536 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42537 USE_NLS!$USE_NLS$ac_delim
42538 MSGFMT!$MSGFMT$ac_delim
42539 GMSGFMT!$GMSGFMT$ac_delim
42540 XGETTEXT!$XGETTEXT$ac_delim
42541 MSGMERGE!$MSGMERGE$ac_delim
42542 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42543 LIBICONV!$LIBICONV$ac_delim
42544 LTLIBICONV!$LTLIBICONV$ac_delim
42545 INTLLIBS!$INTLLIBS$ac_delim
42546 LIBINTL!$LIBINTL$ac_delim
42547 LTLIBINTL!$LTLIBINTL$ac_delim
42548 POSUB!$POSUB$ac_delim
42549 GLIBC2!$GLIBC2$ac_delim
42550 ALLOCA!$ALLOCA$ac_delim
42551 GLIBC21!$GLIBC21$ac_delim
42552 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42553 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42554 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42555 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42556 INTLBISON!$INTLBISON$ac_delim
42557 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42558 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42559 CATOBJEXT!$CATOBJEXT$ac_delim
42560 DATADIRNAME!$DATADIRNAME$ac_delim
42561 INSTOBJEXT!$INSTOBJEXT$ac_delim
42562 GENCAT!$GENCAT$ac_delim
42563 INTLOBJS!$INTLOBJS$ac_delim
42564 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42565 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42566 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42567 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42568 GNOME_LIBS!$GNOME_LIBS$ac_delim
42569 GNOME_DIR!$GNOME_DIR$ac_delim
42570 BAT_DIR!$BAT_DIR$ac_delim
42571 QWT_INC!$QWT_INC$ac_delim
42572 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42573 QWT_LIB!$QWT_LIB$ac_delim
42575 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42578 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42580 elif $ac_last_try; then
42581 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42582 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42583 { (exit 1); exit 1; }; }
42585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42589 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42590 if test -n "$ac_eof"; then
42591 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42592 ac_eof=`expr $ac_eof + 1`
42595 cat >>$CONFIG_STATUS <<_ACEOF
42596 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42600 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42601 s/^/s,@/; s/!/@,|#_!!_#|/
42604 s/'"$ac_delim"'$/,g/; t
42606 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42607 ' >>$CONFIG_STATUS <conf$$subs.sed
42608 rm -f conf$$subs.sed
42609 cat >>$CONFIG_STATUS <<_ACEOF
42615 for ac_last_try in false false false false false :; do
42616 cat >conf$$subs.sed <<_ACEOF
42617 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42618 WX_DIR!$WX_DIR$ac_delim
42619 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42620 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42621 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42622 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42623 STATIC_FD!$STATIC_FD$ac_delim
42624 STATIC_SD!$STATIC_SD$ac_delim
42625 STATIC_DIR!$STATIC_DIR$ac_delim
42626 STATIC_CONS!$STATIC_CONS$ac_delim
42627 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42628 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42629 ALL_DIRS!$ALL_DIRS$ac_delim
42630 DIRD_DIR!$DIRD_DIR$ac_delim
42631 DIR_TOOLS!$DIR_TOOLS$ac_delim
42632 STORED_DIR!$STORED_DIR$ac_delim
42633 CONS_INC!$CONS_INC$ac_delim
42634 CONS_OBJ!$CONS_OBJ$ac_delim
42635 CONS_SRC!$CONS_SRC$ac_delim
42636 CONS_LIBS!$CONS_LIBS$ac_delim
42637 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42638 READLINE_SRC!$READLINE_SRC$ac_delim
42639 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42640 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42641 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42642 OPENSSL_INC!$OPENSSL_INC$ac_delim
42643 working_dir!$working_dir$ac_delim
42644 archivedir!$archivedir$ac_delim
42645 scriptdir!$scriptdir$ac_delim
42646 plugindir!$plugindir$ac_delim
42647 dump_email!$dump_email$ac_delim
42648 job_email!$job_email$ac_delim
42649 smtp_host!$smtp_host$ac_delim
42650 piddir!$piddir$ac_delim
42651 subsysdir!$subsysdir$ac_delim
42652 baseport!$baseport$ac_delim
42653 dir_port!$dir_port$ac_delim
42654 fd_port!$fd_port$ac_delim
42655 sd_port!$sd_port$ac_delim
42656 dir_password!$dir_password$ac_delim
42657 fd_password!$fd_password$ac_delim
42658 sd_password!$sd_password$ac_delim
42659 mon_dir_password!$mon_dir_password$ac_delim
42660 mon_fd_password!$mon_fd_password$ac_delim
42661 mon_sd_password!$mon_sd_password$ac_delim
42662 db_name!$db_name$ac_delim
42663 db_user!$db_user$ac_delim
42664 db_password!$db_password$ac_delim
42665 db_port!$db_port$ac_delim
42666 dir_user!$dir_user$ac_delim
42667 dir_group!$dir_group$ac_delim
42668 sd_user!$sd_user$ac_delim
42669 sd_group!$sd_group$ac_delim
42670 fd_user!$fd_user$ac_delim
42671 fd_group!$fd_group$ac_delim
42672 SBINPERM!$SBINPERM$ac_delim
42673 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42674 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42675 SQL_BINDIR!$SQL_BINDIR$ac_delim
42676 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42677 uncomment_dbi!$uncomment_dbi$ac_delim
42678 DB_PROG!$DB_PROG$ac_delim
42679 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42680 cats!$cats$ac_delim
42681 DB_TYPE!$DB_TYPE$ac_delim
42682 GETCONF!$GETCONF$ac_delim
42683 XMKMF!$XMKMF$ac_delim
42684 X_CFLAGS!$X_CFLAGS$ac_delim
42685 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42686 X_LIBS!$X_LIBS$ac_delim
42687 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42688 LIBOBJS!$LIBOBJS$ac_delim
42689 FDLIBS!$FDLIBS$ac_delim
42690 DEBUG!$DEBUG$ac_delim
42691 DINCLUDE!$DINCLUDE$ac_delim
42692 DLIB!$DLIB$ac_delim
42693 DB_LIBS!$DB_LIBS$ac_delim
42694 WCFLAGS!$WCFLAGS$ac_delim
42695 WLDFLAGS!$WLDFLAGS$ac_delim
42696 WRAPLIBS!$WRAPLIBS$ac_delim
42697 OBJLIST!$OBJLIST$ac_delim
42698 hostname!$hostname$ac_delim
42699 TAPEDRIVE!$TAPEDRIVE$ac_delim
42700 PSCMD!$PSCMD$ac_delim
42701 WIN32!$WIN32$ac_delim
42702 MACOSX!$MACOSX$ac_delim
42703 DISTNAME!$DISTNAME$ac_delim
42704 DISTVER!$DISTVER$ac_delim
42705 LTLIBOBJS!$LTLIBOBJS$ac_delim
42708 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42710 elif $ac_last_try; then
42711 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42712 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42713 { (exit 1); exit 1; }; }
42715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42719 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42720 if test -n "$ac_eof"; then
42721 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42722 ac_eof=`expr $ac_eof + 1`
42725 cat >>$CONFIG_STATUS <<_ACEOF
42726 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42730 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42731 s/^/s,@/; s/!/@,|#_!!_#|/
42734 s/'"$ac_delim"'$/,g/; t
42736 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42737 ' >>$CONFIG_STATUS <conf$$subs.sed
42738 rm -f conf$$subs.sed
42739 cat >>$CONFIG_STATUS <<_ACEOF
42746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42748 # trailing colons and then remove the whole line if VPATH becomes empty
42749 # (actually we leave an empty line to preserve line numbers).
42750 if test "x$srcdir" = x.; then
42751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42752 s/:*\$(srcdir):*/:/
42753 s/:*\${srcdir}:*/:/
42755 s/^\([^=]*=[ ]*\):*/\1/
42761 cat >>$CONFIG_STATUS <<\_ACEOF
42762 fi # test -n "$CONFIG_FILES"
42765 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
42768 :[FHLC]) ac_mode=$ac_tag; continue;;
42770 case $ac_mode$ac_tag in
42772 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42773 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42774 { (exit 1); exit 1; }; };;
42775 :[FH]-) ac_tag=-:-;;
42776 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42793 -) ac_f="$tmp/stdin";;
42794 *) # Look for the file first in the build tree, then in the source tree
42795 # (if the path is not absolute). The absolute path cannot be DOS-style,
42796 # because $ac_f cannot contain `:'.
42800 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42802 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42803 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42804 { (exit 1); exit 1; }; };;
42806 ac_file_inputs="$ac_file_inputs $ac_f"
42809 # Let's still pretend it is `configure' which instantiates (i.e., don't
42810 # use $as_me), people would be surprised to read:
42811 # /* config.h. Generated by config.status. */
42812 configure_input="Generated from "`IFS=:
42813 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42814 if test x"$ac_file" != x-; then
42815 configure_input="$ac_file. $configure_input"
42816 { echo "$as_me:$LINENO: creating $ac_file" >&5
42817 echo "$as_me: creating $ac_file" >&6;}
42821 *:-:* | *:-) cat >"$tmp/stdin";;
42826 ac_dir=`$as_dirname -- "$ac_file" ||
42827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42828 X"$ac_file" : 'X\(//\)[^/]' \| \
42829 X"$ac_file" : 'X\(//\)$' \| \
42830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42836 /^X\(\/\/\)[^/].*/{
42851 -*) as_dir=./$as_dir;;
42853 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42857 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42858 *) as_qdir=$as_dir;;
42860 as_dirs="'$as_qdir' $as_dirs"
42861 as_dir=`$as_dirname -- "$as_dir" ||
42862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42863 X"$as_dir" : 'X\(//\)[^/]' \| \
42864 X"$as_dir" : 'X\(//\)$' \| \
42865 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42871 /^X\(\/\/\)[^/].*/{
42884 test -d "$as_dir" && break
42886 test -z "$as_dirs" || eval "mkdir $as_dirs"
42887 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42888 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42889 { (exit 1); exit 1; }; }; }
42893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42896 # A ".." for each directory in $ac_dir_suffix.
42897 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42898 case $ac_top_builddir_sub in
42899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42903 ac_abs_top_builddir=$ac_pwd
42904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42905 # for backward compatibility:
42906 ac_top_builddir=$ac_top_build_prefix
42909 .) # We are building in place.
42911 ac_top_srcdir=$ac_top_builddir_sub
42912 ac_abs_top_srcdir=$ac_pwd ;;
42913 [\\/]* | ?:[\\/]* ) # Absolute name.
42914 ac_srcdir=$srcdir$ac_dir_suffix;
42915 ac_top_srcdir=$srcdir
42916 ac_abs_top_srcdir=$srcdir ;;
42917 *) # Relative name.
42918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42919 ac_top_srcdir=$ac_top_build_prefix$srcdir
42920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42933 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42937 cat >>$CONFIG_STATUS <<\_ACEOF
42938 # If the template does not know about datarootdir, expand it.
42939 # FIXME: This hack should be removed a few years after 2.60.
42940 ac_datarootdir_hack=; ac_datarootdir_seen=
42942 case `sed -n '/datarootdir/ {
42951 ' $ac_file_inputs` in
42952 *datarootdir*) ac_datarootdir_seen=yes;;
42953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42954 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42955 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42957 cat >>$CONFIG_STATUS <<_ACEOF
42958 ac_datarootdir_hack='
42959 s&@datadir@&$datadir&g
42960 s&@docdir@&$docdir&g
42961 s&@infodir@&$infodir&g
42962 s&@localedir@&$localedir&g
42963 s&@mandir@&$mandir&g
42964 s&\\\${datarootdir}&$datarootdir&g' ;;
42968 # Neutralize VPATH when `$srcdir' = `.'.
42969 # Shell code in configure.ac might set extrasub.
42970 # FIXME: do we really want to maintain this feature?
42971 cat >>$CONFIG_STATUS <<_ACEOF
42975 cat >>$CONFIG_STATUS <<\_ACEOF
42977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42978 s&@configure_input@&$configure_input&;t t
42979 s&@top_builddir@&$ac_top_builddir_sub&;t t
42980 s&@srcdir@&$ac_srcdir&;t t
42981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42982 s&@top_srcdir@&$ac_top_srcdir&;t t
42983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42984 s&@builddir@&$ac_builddir&;t t
42985 s&@abs_builddir@&$ac_abs_builddir&;t t
42986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42987 s&@INSTALL@&$ac_INSTALL&;t t
42988 $ac_datarootdir_hack
42989 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42992 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42993 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42994 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42995 which seems to be undefined. Please make sure it is defined." >&5
42996 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42997 which seems to be undefined. Please make sure it is defined." >&2;}
43001 -) cat "$tmp/out"; rm -f "$tmp/out";;
43002 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43011 # Transform confdefs.h into a sed script `conftest.defines', that
43012 # substitutes the proper values into config.h.in to produce config.h.
43013 rm -f conftest.defines conftest.tail
43014 # First, append a space to every undef/define line, to ease matching.
43015 echo 's/$/ /' >conftest.defines
43016 # Then, protect against being on the right side of a sed subst, or in
43017 # an unquoted here document, in config.status. If some macros were
43018 # called several times there might be several #defines for the same
43019 # symbol, which is useless. But do not sort them, since the last
43020 # AC_DEFINE must be honored.
43021 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43022 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43023 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43024 # PARAMS is the parameter list in the macro definition--in most cases, it's
43025 # just an empty string.
43026 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43027 ac_dB='\\)[ (].*,\\1define\\2'
43035 s/^[ ]*#[ ]*define[ ][ ]*//
43040 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43041 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43042 ' >>conftest.defines
43044 # Remove the space that was appended to ease matching.
43045 # Then replace #undef with comments. This is necessary, for
43046 # example, in the case of _POSIX_SOURCE, which is predefined and required
43047 # on some systems where configure will not decide to define it.
43048 # (The regexp can be short, since the line contains either #define or #undef.)
43050 s,^[ #]*u.*,/* & */,' >>conftest.defines
43052 # Break up conftest.defines:
43053 ac_max_sed_lines=50
43055 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43056 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43057 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43059 ac_in='$ac_file_inputs'
43060 ac_out='"$tmp/out1"'
43061 ac_nxt='"$tmp/out2"'
43065 # Write a here document:
43066 cat >>$CONFIG_STATUS <<_ACEOF
43067 # First, check the format of the line:
43068 cat >"\$tmp/defines.sed" <<\\CEOF
43069 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43070 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43074 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43076 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43077 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43078 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43079 grep . conftest.tail >/dev/null || break
43080 rm -f conftest.defines
43081 mv conftest.tail conftest.defines
43083 rm -f conftest.defines conftest.tail
43085 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43086 cat >>$CONFIG_STATUS <<\_ACEOF
43087 if test x"$ac_file" != x-; then
43088 echo "/* $configure_input */" >"$tmp/config.h"
43089 cat "$ac_result" >>"$tmp/config.h"
43090 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43091 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43092 echo "$as_me: $ac_file is unchanged" >&6;}
43095 mv "$tmp/config.h" $ac_file
43098 echo "/* $configure_input */"
43104 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43105 echo "$as_me: executing $ac_file commands" >&6;}
43110 case $ac_file$ac_mode in
43113 # See if we are running on zsh, and set the options which allow our
43114 # commands through without removal of \ escapes.
43115 if test -n "${ZSH_VERSION+set}" ; then
43116 setopt NO_GLOB_SUBST
43119 cfgfile="${ofile}T"
43120 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43123 cat <<_LT_EOF >> "$cfgfile"
43126 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43127 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43131 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43132 # 2006, 2007, 2008 Free Software Foundation, Inc.
43133 # Written by Gordon Matzigkeit, 1996
43135 # This file is part of GNU Libtool.
43137 # GNU Libtool is free software; you can redistribute it and/or
43138 # modify it under the terms of the GNU General Public License as
43139 # published by the Free Software Foundation; either version 2 of
43140 # the License, or (at your option) any later version.
43142 # As a special exception to the GNU General Public License,
43143 # if you distribute this file as part of a program or library that
43144 # is built using GNU Libtool, you may include this file under the
43145 # same distribution terms that you use for the rest of that program.
43147 # GNU Libtool is distributed in the hope that it will be useful,
43148 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43149 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43150 # GNU General Public License for more details.
43152 # You should have received a copy of the GNU General Public License
43153 # along with GNU Libtool; see the file COPYING. If not, a copy
43154 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43155 # obtained by writing to the Free Software Foundation, Inc.,
43156 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43159 # The names of the tagged configurations supported by this script.
43160 available_tags="CXX "
43162 # ### BEGIN LIBTOOL CONFIG
43164 # Which release of libtool.m4 was used?
43165 macro_version=$macro_version
43166 macro_revision=$macro_revision
43168 # Whether or not to build shared libraries.
43169 build_libtool_libs=$enable_shared
43171 # Whether or not to build static libraries.
43172 build_old_libs=$enable_static
43174 # What type of objects to build.
43177 # Whether or not to optimize for fast installation.
43178 fast_install=$enable_fast_install
43181 host_alias=$host_alias
43185 # The build system.
43186 build_alias=$build_alias
43190 # A sed program that does not truncate output.
43193 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43194 Xsed="\$SED -e 1s/^X//"
43196 # A grep program that handles long lines.
43202 # A literal string matcher.
43205 # A BSD- or MS-compatible name lister.
43208 # Whether we need soft or hard links.
43211 # What is the maximum length of a command?
43212 max_cmd_len=$max_cmd_len
43214 # Object file suffix (normally "o").
43217 # Executable file suffix (normally "").
43220 # whether the shell understands "unset".
43223 # turn spaces into newlines.
43226 # turn newlines into spaces.
43229 # How to create reloadable object files.
43230 reload_flag=$lt_reload_flag
43231 reload_cmds=$lt_reload_cmds
43233 # An object symbol dumper.
43234 OBJDUMP=$lt_OBJDUMP
43236 # Method to check whether dependent libraries are shared objects.
43237 deplibs_check_method=$lt_deplibs_check_method
43239 # Command to use when deplibs_check_method == "file_magic".
43240 file_magic_cmd=$lt_file_magic_cmd
43244 AR_FLAGS=$lt_AR_FLAGS
43246 # A symbol stripping program.
43249 # Commands used to install an old-style archive.
43251 old_postinstall_cmds=$lt_old_postinstall_cmds
43252 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43257 # LTCC compiler flags.
43258 LTCFLAGS=$lt_CFLAGS
43260 # Take the output of nm and produce a listing of raw symbols and C names.
43261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43263 # Transform the output of nm in a proper C declaration.
43264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43266 # Transform the output of nm in a C name address pair.
43267 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43269 # Transform the output of nm in a C name address pair when lib prefix is needed.
43270 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43272 # The name of the directory that contains temporary libtool files.
43275 # Shell to use when invoking shell scripts.
43278 # An echo program that does not interpret backslashes.
43281 # Used to examine libraries when file_magic_cmd begins with "file".
43282 MAGIC_CMD=$MAGIC_CMD
43284 # Must we lock files when doing compilation?
43285 need_locks=$lt_need_locks
43287 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43288 DSYMUTIL=$lt_DSYMUTIL
43290 # Tool to change global to local symbols on Mac OS X.
43293 # Tool to manipulate fat objects and archives on Mac OS X.
43296 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43299 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43300 OTOOL64=$lt_OTOOL64
43302 # Old archive suffix (normally "a").
43305 # Shared library suffix (normally ".so").
43306 shrext_cmds=$lt_shrext_cmds
43308 # The commands to extract the exported symbol list from a shared archive.
43309 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43311 # Variables whose values should be saved in libtool wrapper scripts and
43312 # restored at link time.
43313 variables_saved_for_relink=$lt_variables_saved_for_relink
43315 # Do we need the "lib" prefix for modules?
43316 need_lib_prefix=$need_lib_prefix
43318 # Do we need a version for libraries?
43319 need_version=$need_version
43321 # Library versioning type.
43322 version_type=$version_type
43324 # Shared library runtime path variable.
43325 runpath_var=$runpath_var
43327 # Shared library path variable.
43328 shlibpath_var=$shlibpath_var
43330 # Is shlibpath searched before the hard-coded library search path?
43331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43333 # Format of library name prefix.
43334 libname_spec=$lt_libname_spec
43336 # List of archive names. First name is the real one, the rest are links.
43337 # The last name is the one that the linker finds with -lNAME
43338 library_names_spec=$lt_library_names_spec
43340 # The coded name of the library, if different from the real name.
43341 soname_spec=$lt_soname_spec
43343 # Command to use after installation of a shared archive.
43344 postinstall_cmds=$lt_postinstall_cmds
43346 # Command to use after uninstallation of a shared archive.
43347 postuninstall_cmds=$lt_postuninstall_cmds
43349 # Commands used to finish a libtool library installation in a directory.
43350 finish_cmds=$lt_finish_cmds
43352 # As "finish_cmds", except a single script fragment to be evaled but
43354 finish_eval=$lt_finish_eval
43356 # Whether we should hardcode library paths into libraries.
43357 hardcode_into_libs=$hardcode_into_libs
43359 # Compile-time system search path for libraries.
43360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43362 # Run-time system search path for libraries.
43363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43365 # Whether dlopen is supported.
43366 dlopen_support=$enable_dlopen
43368 # Whether dlopen of programs is supported.
43369 dlopen_self=$enable_dlopen_self
43371 # Whether dlopen of statically linked programs is supported.
43372 dlopen_self_static=$enable_dlopen_self_static
43374 # Commands to strip libraries.
43375 old_striplib=$lt_old_striplib
43376 striplib=$lt_striplib
43379 # The linker used to build libraries.
43382 # Commands used to build an old-style archive.
43383 old_archive_cmds=$lt_old_archive_cmds
43385 # A language specific compiler.
43388 # Is the compiler the GNU compiler?
43391 # Compiler flag to turn off builtin functions.
43392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43394 # How to pass a linker flag through the compiler.
43395 wl=$lt_lt_prog_compiler_wl
43397 # Additional compiler flags for building library objects.
43398 pic_flag=$lt_lt_prog_compiler_pic
43400 # Compiler flag to prevent dynamic linking.
43401 link_static_flag=$lt_lt_prog_compiler_static
43403 # Does compiler simultaneously support -c and -o options?
43404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43406 # Whether or not to add -lc for building shared libraries.
43407 build_libtool_need_lc=$archive_cmds_need_lc
43409 # Whether or not to disallow shared libs when runtime libs are static.
43410 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43412 # Compiler flag to allow reflexive dlopens.
43413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43415 # Compiler flag to generate shared objects directly from archives.
43416 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43418 # Whether the compiler copes with passing no objects directly.
43419 compiler_needs_object=$lt_compiler_needs_object
43421 # Create an old-style archive from a shared archive.
43422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43424 # Create a temporary old-style archive to link instead of a shared archive.
43425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43427 # Commands used to build a shared archive.
43428 archive_cmds=$lt_archive_cmds
43429 archive_expsym_cmds=$lt_archive_expsym_cmds
43431 # Commands used to build a loadable module if different from building
43432 # a shared archive.
43433 module_cmds=$lt_module_cmds
43434 module_expsym_cmds=$lt_module_expsym_cmds
43436 # Whether we are building with GNU ld or not.
43437 with_gnu_ld=$lt_with_gnu_ld
43439 # Flag that allows shared libraries with undefined symbols to be built.
43440 allow_undefined_flag=$lt_allow_undefined_flag
43442 # Flag that enforces no undefined symbols.
43443 no_undefined_flag=$lt_no_undefined_flag
43445 # Flag to hardcode \$libdir into a binary during linking.
43446 # This must work even if \$libdir does not exist
43447 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43449 # If ld is used when linking, flag to hardcode \$libdir into a binary
43450 # during linking. This must work even if \$libdir does not exist.
43451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43453 # Whether we need a single "-rpath" flag with a separated argument.
43454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43457 # DIR into the resulting binary.
43458 hardcode_direct=$hardcode_direct
43460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43461 # DIR into the resulting binary and the resulting library dependency is
43462 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43463 # library is relocated.
43464 hardcode_direct_absolute=$hardcode_direct_absolute
43466 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43467 # into the resulting binary.
43468 hardcode_minus_L=$hardcode_minus_L
43470 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43471 # into the resulting binary.
43472 hardcode_shlibpath_var=$hardcode_shlibpath_var
43474 # Set to "yes" if building a shared library automatically hardcodes DIR
43475 # into the library and all subsequent libraries and executables linked
43477 hardcode_automatic=$hardcode_automatic
43479 # Set to yes if linker adds runtime paths of dependent libraries
43480 # to runtime path list.
43481 inherit_rpath=$inherit_rpath
43483 # Whether libtool must link a program against all its dependency libraries.
43484 link_all_deplibs=$link_all_deplibs
43486 # Fix the shell variable \$srcfile for the compiler.
43487 fix_srcfile_path=$lt_fix_srcfile_path
43489 # Set to "yes" if exported symbols are required.
43490 always_export_symbols=$always_export_symbols
43492 # The commands to list exported symbols.
43493 export_symbols_cmds=$lt_export_symbols_cmds
43495 # Symbols that should not be listed in the preloaded symbols.
43496 exclude_expsyms=$lt_exclude_expsyms
43498 # Symbols that must always be exported.
43499 include_expsyms=$lt_include_expsyms
43501 # Commands necessary for linking programs (against libraries) with templates.
43502 prelink_cmds=$lt_prelink_cmds
43504 # Specify filename containing input files.
43505 file_list_spec=$lt_file_list_spec
43507 # How to hardcode a shared library path into an executable.
43508 hardcode_action=$hardcode_action
43510 # The directories searched by this compiler when creating a shared library.
43511 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43513 # Dependencies to place before and after the objects being linked to
43514 # create a shared library.
43515 predep_objects=$lt_predep_objects
43516 postdep_objects=$lt_postdep_objects
43517 predeps=$lt_predeps
43518 postdeps=$lt_postdeps
43520 # The library search path used internally by the compiler when linking
43521 # a shared library.
43522 compiler_lib_search_path=$lt_compiler_lib_search_path
43524 # ### END LIBTOOL CONFIG
43530 cat <<\_LT_EOF >> "$cfgfile"
43531 # AIX sometimes has problems with the GCC collect2 program. For some
43532 # reason, if we set the COLLECT_NAMES environment variable, the problems
43533 # vanish in a puff of smoke.
43534 if test "X${COLLECT_NAMES+set}" != Xset; then
43536 export COLLECT_NAMES
43543 ltmain="$ac_aux_dir/ltmain.sh"
43546 # We use sed instead of cat because bash on DJGPP gets confused if
43547 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43548 # text mode, it properly converts lines to CR/LF. This bash problem
43549 # is reportedly fixed, but why not run on old versions too?
43550 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43551 || (rm -f "$cfgfile"; exit 1)
43555 cat << \_LT_EOF >> "$cfgfile"
43557 # func_dirname file append nondir_replacement
43558 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43559 # otherwise set result to NONDIR_REPLACEMENT.
43563 */*) func_dirname_result="${1%/*}${2}" ;;
43564 * ) func_dirname_result="${3}" ;;
43568 # func_basename file
43571 func_basename_result="${1##*/}"
43574 # func_dirname_and_basename file append nondir_replacement
43575 # perform func_basename and func_dirname in a single function
43577 # dirname: Compute the dirname of FILE. If nonempty,
43578 # add APPEND to the result, otherwise set result
43579 # to NONDIR_REPLACEMENT.
43580 # value returned in "$func_dirname_result"
43581 # basename: Compute filename of FILE.
43582 # value retuned in "$func_basename_result"
43583 # Implementation must be kept synchronized with func_dirname
43584 # and func_basename. For efficiency, we do not delegate to
43585 # those functions but instead duplicate the functionality here.
43586 func_dirname_and_basename ()
43589 */*) func_dirname_result="${1%/*}${2}" ;;
43590 * ) func_dirname_result="${3}" ;;
43592 func_basename_result="${1##*/}"
43595 # func_stripname prefix suffix name
43596 # strip PREFIX and SUFFIX off of NAME.
43597 # PREFIX and SUFFIX must not contain globbing or regex special
43598 # characters, hashes, percent signs, but SUFFIX may contain a leading
43599 # dot (in which case that matches only a dot).
43602 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43603 # positional parameters, so assign one to ordinary parameter first.
43604 func_stripname_result=${3}
43605 func_stripname_result=${func_stripname_result#"${1}"}
43606 func_stripname_result=${func_stripname_result%"${2}"}
43612 func_opt_split_opt=${1%%=*}
43613 func_opt_split_arg=${1#*=}
43620 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43621 *) func_lo2o_result=${1} ;;
43625 # func_xform libobj-or-source
43628 func_xform_result=${1%.*}.lo
43631 # func_arith arithmetic-term...
43634 func_arith_result=$(( $* ))
43638 # STRING may not start with a hyphen.
43641 func_len_result=${#1}
43646 *) # Bourne compatible functions.
43647 cat << \_LT_EOF >> "$cfgfile"
43649 # func_dirname file append nondir_replacement
43650 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43651 # otherwise set result to NONDIR_REPLACEMENT.
43654 # Extract subdirectory from the argument.
43655 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43656 if test "X$func_dirname_result" = "X${1}"; then
43657 func_dirname_result="${3}"
43659 func_dirname_result="$func_dirname_result${2}"
43663 # func_basename file
43666 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43670 # func_stripname prefix suffix name
43671 # strip PREFIX and SUFFIX off of NAME.
43672 # PREFIX and SUFFIX must not contain globbing or regex special
43673 # characters, hashes, percent signs, but SUFFIX may contain a leading
43674 # dot (in which case that matches only a dot).
43675 # func_strip_suffix prefix name
43679 .*) func_stripname_result=`$ECHO "X${3}" \
43680 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43681 *) func_stripname_result=`$ECHO "X${3}" \
43682 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43687 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43688 my_sed_long_arg='1s/^-[^=]*=//'
43693 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43694 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43700 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43703 # func_xform libobj-or-source
43706 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43709 # func_arith arithmetic-term...
43712 func_arith_result=`expr "$@"`
43716 # STRING may not start with a hyphen.
43719 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43725 case $lt_shell_append in
43727 cat << \_LT_EOF >> "$cfgfile"
43729 # func_append var value
43730 # Append VALUE to the end of shell variable VAR.
43738 cat << \_LT_EOF >> "$cfgfile"
43740 # func_append var value
43741 # Append VALUE to the end of shell variable VAR.
43752 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43753 || (rm -f "$cfgfile"; exit 1)
43755 mv -f "$cfgfile" "$ofile" ||
43756 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43760 cat <<_LT_EOF >> "$ofile"
43762 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43764 # The linker used to build libraries.
43767 # Commands used to build an old-style archive.
43768 old_archive_cmds=$lt_old_archive_cmds_CXX
43770 # A language specific compiler.
43771 CC=$lt_compiler_CXX
43773 # Is the compiler the GNU compiler?
43776 # Compiler flag to turn off builtin functions.
43777 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43779 # How to pass a linker flag through the compiler.
43780 wl=$lt_lt_prog_compiler_wl_CXX
43782 # Additional compiler flags for building library objects.
43783 pic_flag=$lt_lt_prog_compiler_pic_CXX
43785 # Compiler flag to prevent dynamic linking.
43786 link_static_flag=$lt_lt_prog_compiler_static_CXX
43788 # Does compiler simultaneously support -c and -o options?
43789 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43791 # Whether or not to add -lc for building shared libraries.
43792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43794 # Whether or not to disallow shared libs when runtime libs are static.
43795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43797 # Compiler flag to allow reflexive dlopens.
43798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43800 # Compiler flag to generate shared objects directly from archives.
43801 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43803 # Whether the compiler copes with passing no objects directly.
43804 compiler_needs_object=$lt_compiler_needs_object_CXX
43806 # Create an old-style archive from a shared archive.
43807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43809 # Create a temporary old-style archive to link instead of a shared archive.
43810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43812 # Commands used to build a shared archive.
43813 archive_cmds=$lt_archive_cmds_CXX
43814 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43816 # Commands used to build a loadable module if different from building
43817 # a shared archive.
43818 module_cmds=$lt_module_cmds_CXX
43819 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43821 # Whether we are building with GNU ld or not.
43822 with_gnu_ld=$lt_with_gnu_ld_CXX
43824 # Flag that allows shared libraries with undefined symbols to be built.
43825 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43827 # Flag that enforces no undefined symbols.
43828 no_undefined_flag=$lt_no_undefined_flag_CXX
43830 # Flag to hardcode \$libdir into a binary during linking.
43831 # This must work even if \$libdir does not exist
43832 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43834 # If ld is used when linking, flag to hardcode \$libdir into a binary
43835 # during linking. This must work even if \$libdir does not exist.
43836 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43838 # Whether we need a single "-rpath" flag with a separated argument.
43839 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43841 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43842 # DIR into the resulting binary.
43843 hardcode_direct=$hardcode_direct_CXX
43845 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43846 # DIR into the resulting binary and the resulting library dependency is
43847 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43848 # library is relocated.
43849 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43851 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43852 # into the resulting binary.
43853 hardcode_minus_L=$hardcode_minus_L_CXX
43855 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43856 # into the resulting binary.
43857 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43859 # Set to "yes" if building a shared library automatically hardcodes DIR
43860 # into the library and all subsequent libraries and executables linked
43862 hardcode_automatic=$hardcode_automatic_CXX
43864 # Set to yes if linker adds runtime paths of dependent libraries
43865 # to runtime path list.
43866 inherit_rpath=$inherit_rpath_CXX
43868 # Whether libtool must link a program against all its dependency libraries.
43869 link_all_deplibs=$link_all_deplibs_CXX
43871 # Fix the shell variable \$srcfile for the compiler.
43872 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43874 # Set to "yes" if exported symbols are required.
43875 always_export_symbols=$always_export_symbols_CXX
43877 # The commands to list exported symbols.
43878 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43880 # Symbols that should not be listed in the preloaded symbols.
43881 exclude_expsyms=$lt_exclude_expsyms_CXX
43883 # Symbols that must always be exported.
43884 include_expsyms=$lt_include_expsyms_CXX
43886 # Commands necessary for linking programs (against libraries) with templates.
43887 prelink_cmds=$lt_prelink_cmds_CXX
43889 # Specify filename containing input files.
43890 file_list_spec=$lt_file_list_spec_CXX
43892 # How to hardcode a shared library path into an executable.
43893 hardcode_action=$hardcode_action_CXX
43895 # The directories searched by this compiler when creating a shared library.
43896 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43898 # Dependencies to place before and after the objects being linked to
43899 # create a shared library.
43900 predep_objects=$lt_predep_objects_CXX
43901 postdep_objects=$lt_postdep_objects_CXX
43902 predeps=$lt_predeps_CXX
43903 postdeps=$lt_postdeps_CXX
43905 # The library search path used internally by the compiler when linking
43906 # a shared library.
43907 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43909 # ### END LIBTOOL TAG CONFIG: CXX
43914 for ac_file in $CONFIG_FILES; do
43915 # Support "outfile[:infile[:infile...]]"
43917 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43919 # PO directories have a Makefile.in generated from Makefile.in.in.
43920 case "$ac_file" in */Makefile.in)
43921 # Adjust a relative srcdir.
43922 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43923 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43924 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43925 # In autoconf-2.13 it is called $ac_given_srcdir.
43926 # In autoconf-2.50 it is called $srcdir.
43927 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43928 case "$ac_given_srcdir" in
43929 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43930 /*) top_srcdir="$ac_given_srcdir" ;;
43931 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
43933 # Treat a directory as a PO directory if and only if it has a
43934 # POTFILES.in file. This allows packages to have multiple PO
43935 # directories under different names or in different locations.
43936 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43937 rm -f "$ac_dir/POTFILES"
43938 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43939 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43940 POMAKEFILEDEPS="POTFILES.in"
43941 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43942 # on $ac_dir but don't depend on user-specified configuration
43944 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43945 # The LINGUAS file contains the set of available languages.
43946 if test -n "$OBSOLETE_ALL_LINGUAS"; then
43947 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43949 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43950 # Hide the ALL_LINGUAS assigment from automake.
43951 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43952 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43954 # The set of available languages was given in configure.in.
43955 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43958 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43959 # Compute UPDATEPOFILES
43960 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43961 # Compute DUMMYPOFILES
43962 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43964 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43965 case "$ac_given_srcdir" in
43967 *) srcdirpre='$(srcdir)/' ;;
43973 for lang in $ALL_LINGUAS; do
43974 POFILES="$POFILES $srcdirpre$lang.po"
43975 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43976 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43977 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43979 # CATALOGS depends on both $ac_dir and the user's LINGUAS
43980 # environment variable.
43982 if test -n "$ALL_LINGUAS"; then
43983 for presentlang in $ALL_LINGUAS; do
43985 if test "%UNSET%" != "$LINGUAS"; then
43986 desiredlanguages="$LINGUAS"
43988 desiredlanguages="$ALL_LINGUAS"
43990 for desiredlang in $desiredlanguages; do
43991 # Use the presentlang catalog if desiredlang is
43992 # a. equal to presentlang, or
43993 # b. a variant of presentlang (because in this case,
43994 # presentlang can be used as a fallback for messages
43995 # which are not translated in the desiredlang catalog).
43996 case "$desiredlang" in
43997 "$presentlang"*) useit=yes;;
44000 if test $useit = yes; then
44001 INST_LINGUAS="$INST_LINGUAS $presentlang"
44006 if test -n "$INST_LINGUAS"; then
44007 for lang in $INST_LINGUAS; do
44008 CATALOGS="$CATALOGS $lang.gmo"
44011 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44012 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"
44013 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44014 if test -f "$f"; then
44016 *.orig | *.bak | *~) ;;
44017 *) cat "$f" >> "$ac_dir/Makefile" ;;
44032 { (exit 0); exit 0; }
44034 chmod +x $CONFIG_STATUS
44035 ac_clean_files=$ac_clean_files_save
44038 # configure is writing to config.log, and then calls config.status.
44039 # config.status does its own redirection, appending to config.log.
44040 # Unfortunately, on DOS this fails, as config.log is still kept open
44041 # by configure, so config.status won't be able to write to it; its
44042 # output is simply discarded. So we exec the FD to /dev/null,
44043 # effectively closing config.log, so it can be properly (re)opened and
44044 # appended to by config.status. When coming back to configure, we
44045 # need to make the FD available again.
44046 if test "$no_create" != yes; then
44048 ac_config_status_args=
44049 test "$silent" = yes &&
44050 ac_config_status_args="$ac_config_status_args --quiet"
44052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44055 # would make configure fail if this is the last instruction.
44056 $ac_cs_success || { (exit 1); exit 1; }
44060 if test "${support_bat}" = "yes" ; then
44061 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44062 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44068 if test "x$QMAKEQT4" != "xnone"; then
44073 chmod 755 install_conf_file build-depkgs-qt-console
44074 echo "Creating bat Makefile"
44080 if test X"$GCC" = "Xyes" ; then
44081 echo "Doing make of dependencies"
44082 ${MAKE:-make} depend
44086 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44087 chmod 755 dvd-handler dvd-simulator
44088 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44092 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44093 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44097 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44098 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44100 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44101 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44103 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44104 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44106 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44107 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44109 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44110 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44112 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44113 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44115 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44116 chmod 755 $c/sqlite
44119 chmod 755 src/win32/build-depkgs-mingw32
44121 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44122 largefile_support="yes"
44125 if test X"$GCC" = "Xyes" ; then
44126 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44127 if test "x${CCVERSION}" = "x" ; then
44128 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44130 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44131 if test x"${CXXVERSION}" = x ; then
44132 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44136 if test "x${db_type}" = "xInternal" ; then
44139 echo "You have not specified either --enable-client-only or one of the"
44140 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44141 echo " This is not permitted. Please reconfigure."
44143 echo "Aborting the configuration ..."
44150 Configuration on `date`:
44152 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44153 Bacula version: ${BACULA} ${VERSION} (${DATE})
44154 Source code location: ${srcdir}
44155 Install binaries: ${sbindir}
44156 Install libraries: ${libdir}
44157 Install config files: ${sysconfdir}
44158 Scripts directory: ${scriptdir}
44159 Archive directory: ${archivedir}
44160 Working directory: ${working_dir}
44161 PID directory: ${piddir}
44162 Subsys directory: ${subsysdir}
44163 Man directory: ${mandir}
44164 Data directory: ${datarootdir}
44165 C Compiler: ${CC} ${CCVERSION}
44166 C++ Compiler: ${CXX} ${CXXVERSION}
44167 Compiler flags: ${WCFLAGS} ${CFLAGS}
44168 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44170 Statically Linked Tools: ${support_static_tools}
44171 Statically Linked FD: ${support_static_fd}
44172 Statically Linked SD: ${support_static_sd}
44173 Statically Linked DIR: ${support_static_dir}
44174 Statically Linked CONS: ${support_static_cons}
44175 Database type: ${db_type}
44176 Database port: ${db_port}
44177 Database lib: ${DB_LIBS}
44178 Database name: ${db_name}
44179 Database user: ${db_user}
44181 Job Output Email: ${job_email}
44182 Traceback Email: ${dump_email}
44183 SMTP Host Address: ${smtp_host}
44185 Director Port: ${dir_port}
44186 File daemon Port: ${fd_port}
44187 Storage daemon Port: ${sd_port}
44189 Director User: ${dir_user}
44190 Director Group: ${dir_group}
44191 Storage Daemon User: ${sd_user}
44192 Storage DaemonGroup: ${sd_group}
44193 File Daemon User: ${fd_user}
44194 File Daemon Group: ${fd_group}
44196 SQL binaries Directory ${SQL_BINDIR}
44198 Large file support: $largefile_support
44199 Bacula conio support: ${got_conio} ${CONS_LIBS}
44200 readline support: ${got_readline} ${PRTREADLINE_SRC}
44201 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44202 TLS support: ${support_tls}
44203 Encryption support: ${support_crypto}
44204 ZLIB support: ${have_zlib}
44205 enable-smartalloc: ${support_smartalloc}
44206 bat support: ${support_bat} ${QWT_LDFLAGS}
44207 enable-gnome: ${support_gnome} ${gnome_version}
44208 enable-bwx-console: ${support_wx_console} ${wx_version}
44209 enable-tray-monitor: ${support_tray_monitor}
44210 client-only: ${build_client_only}
44211 build-dird: ${build_dird}
44212 build-stored: ${build_stored}
44213 ACL support: ${have_acl}
44214 Python support: ${support_python} ${PYTHON_LIBS}
44215 Batch insert enabled: ${support_batch_insert}