2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
902 HAVE_FREEBSD_OS_FALSE
906 HAVE_OPENBSD_OS_FALSE
937 BUILD_INCLUDED_LIBINTL
944 INTL_LIBTOOL_SUFFIX_PREFIX
958 TRAY_MONITOR_CPPFLAGS
1045 ac_subst_files='MCOMMON'
1046 ac_precious_vars='build_alias
1064 # Initialize some variables set by options.
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1076 program_transform_name=s,x,x,
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1114 # If the previous option needs an argument, assign it.
1115 if test -n "$ac_prev"; then
1116 eval $ac_prev=\$ac_option
1122 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126 # Accept the important Cygnus configure options, so we can diagnose typos.
1128 case $ac_dashdash$ac_option in
1132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135 bindir=$ac_optarg ;;
1137 -build | --build | --buil | --bui | --bu)
1138 ac_prev=build_alias ;;
1139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140 build_alias=$ac_optarg ;;
1142 -cache-file | --cache-file | --cache-fil | --cache-fi \
1143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144 ac_prev=cache_file ;;
1145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147 cache_file=$ac_optarg ;;
1149 --config-cache | -C)
1150 cache_file=config.cache ;;
1152 -datadir | --datadir | --datadi | --datad)
1154 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155 datadir=$ac_optarg ;;
1157 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158 | --dataroo | --dataro | --datar)
1159 ac_prev=datarootdir ;;
1160 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162 datarootdir=$ac_optarg ;;
1164 -disable-* | --disable-*)
1165 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169 { (exit 1); exit 1; }; }
1170 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171 eval enable_$ac_feature=no ;;
1173 -docdir | --docdir | --docdi | --doc | --do)
1175 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176 docdir=$ac_optarg ;;
1178 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181 dvidir=$ac_optarg ;;
1183 -enable-* | --enable-*)
1184 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190 eval enable_$ac_feature=\$ac_optarg ;;
1192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194 | --exec | --exe | --ex)
1195 ac_prev=exec_prefix ;;
1196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198 | --exec=* | --exe=* | --ex=*)
1199 exec_prefix=$ac_optarg ;;
1201 -gas | --gas | --ga | --g)
1202 # Obsolete; use --with-gas.
1205 -help | --help | --hel | --he | -h)
1206 ac_init_help=long ;;
1207 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208 ac_init_help=recursive ;;
1209 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210 ac_init_help=short ;;
1212 -host | --host | --hos | --ho)
1213 ac_prev=host_alias ;;
1214 -host=* | --host=* | --hos=* | --ho=*)
1215 host_alias=$ac_optarg ;;
1217 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1219 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1221 htmldir=$ac_optarg ;;
1223 -includedir | --includedir | --includedi | --included | --include \
1224 | --includ | --inclu | --incl | --inc)
1225 ac_prev=includedir ;;
1226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227 | --includ=* | --inclu=* | --incl=* | --inc=*)
1228 includedir=$ac_optarg ;;
1230 -infodir | --infodir | --infodi | --infod | --info | --inf)
1232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233 infodir=$ac_optarg ;;
1235 -libdir | --libdir | --libdi | --libd)
1237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238 libdir=$ac_optarg ;;
1240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241 | --libexe | --libex | --libe)
1242 ac_prev=libexecdir ;;
1243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244 | --libexe=* | --libex=* | --libe=*)
1245 libexecdir=$ac_optarg ;;
1247 -localedir | --localedir | --localedi | --localed | --locale)
1248 ac_prev=localedir ;;
1249 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250 localedir=$ac_optarg ;;
1252 -localstatedir | --localstatedir | --localstatedi | --localstated \
1253 | --localstate | --localstat | --localsta | --localst | --locals)
1254 ac_prev=localstatedir ;;
1255 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257 localstatedir=$ac_optarg ;;
1259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262 mandir=$ac_optarg ;;
1264 -nfp | --nfp | --nf)
1265 # Obsolete; use --without-fp.
1268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269 | --no-cr | --no-c | -n)
1272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278 | --oldin | --oldi | --old | --ol | --o)
1279 ac_prev=oldincludedir ;;
1280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283 oldincludedir=$ac_optarg ;;
1285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288 prefix=$ac_optarg ;;
1290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291 | --program-pre | --program-pr | --program-p)
1292 ac_prev=program_prefix ;;
1293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295 program_prefix=$ac_optarg ;;
1297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298 | --program-suf | --program-su | --program-s)
1299 ac_prev=program_suffix ;;
1300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302 program_suffix=$ac_optarg ;;
1304 -program-transform-name | --program-transform-name \
1305 | --program-transform-nam | --program-transform-na \
1306 | --program-transform-n | --program-transform- \
1307 | --program-transform | --program-transfor \
1308 | --program-transfo | --program-transf \
1309 | --program-trans | --program-tran \
1310 | --progr-tra | --program-tr | --program-t)
1311 ac_prev=program_transform_name ;;
1312 -program-transform-name=* | --program-transform-name=* \
1313 | --program-transform-nam=* | --program-transform-na=* \
1314 | --program-transform-n=* | --program-transform-=* \
1315 | --program-transform=* | --program-transfor=* \
1316 | --program-transfo=* | --program-transf=* \
1317 | --program-trans=* | --program-tran=* \
1318 | --progr-tra=* | --program-tr=* | --program-t=*)
1319 program_transform_name=$ac_optarg ;;
1321 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1323 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324 pdfdir=$ac_optarg ;;
1326 -psdir | --psdir | --psdi | --psd | --ps)
1328 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332 | -silent | --silent | --silen | --sile | --sil)
1335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1339 sbindir=$ac_optarg ;;
1341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343 | --sharedst | --shareds | --shared | --share | --shar \
1345 ac_prev=sharedstatedir ;;
1346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1350 sharedstatedir=$ac_optarg ;;
1352 -site | --site | --sit)
1354 -site=* | --site=* | --sit=*)
1357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360 srcdir=$ac_optarg ;;
1362 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363 | --syscon | --sysco | --sysc | --sys | --sy)
1364 ac_prev=sysconfdir ;;
1365 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367 sysconfdir=$ac_optarg ;;
1369 -target | --target | --targe | --targ | --tar | --ta | --t)
1370 ac_prev=target_alias ;;
1371 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372 target_alias=$ac_optarg ;;
1374 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1377 -version | --version | --versio | --versi | --vers | -V)
1378 ac_init_version=: ;;
1381 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 { echo "$as_me: error: invalid package name: $ac_package" >&2
1385 { (exit 1); exit 1; }; }
1386 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387 eval with_$ac_package=\$ac_optarg ;;
1389 -without-* | --without-*)
1390 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393 { echo "$as_me: error: invalid package name: $ac_package" >&2
1394 { (exit 1); exit 1; }; }
1395 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396 eval with_$ac_package=no ;;
1399 # Obsolete; use --with-x.
1402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403 | --x-incl | --x-inc | --x-in | --x-i)
1404 ac_prev=x_includes ;;
1405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407 x_includes=$ac_optarg ;;
1409 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411 ac_prev=x_libraries ;;
1412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414 x_libraries=$ac_optarg ;;
1416 -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418 { (exit 1); exit 1; }; }
1422 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423 # Reject names that are not valid shell variable names.
1424 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426 { (exit 1); exit 1; }; }
1427 eval $ac_envvar=\$ac_optarg
1428 export $ac_envvar ;;
1431 # FIXME: should be removed in autoconf 3.0.
1432 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1441 if test -n "$ac_prev"; then
1442 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443 { echo "$as_me: error: missing argument to $ac_option" >&2
1444 { (exit 1); exit 1; }; }
1447 # Be sure to have absolute directory names.
1448 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449 datadir sysconfdir sharedstatedir localstatedir includedir \
1450 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451 libdir localedir mandir
1453 eval ac_val=\$$ac_var
1455 [\\/$]* | ?:[\\/]* ) continue;;
1456 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1458 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459 { (exit 1); exit 1; }; }
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1467 target=$target_alias
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471 if test "x$build_alias" = x; then
1472 cross_compiling=maybe
1473 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474 If a cross compiler is detected then cross compile mode will be used." >&2
1475 elif test "x$build_alias" != "x$host_alias"; then
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483 test "$silent" = yes && exec 6>/dev/null
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489 { echo "$as_me: error: Working directory cannot be determined" >&2
1490 { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492 { echo "$as_me: error: pwd does not report name of working directory" >&2
1493 { (exit 1); exit 1; }; }
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$0" : 'X\(//\)[^/]' \| \
1503 X"$0" : 'X\(//\)$' \| \
1504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533 { (exit 1); exit 1; }; }
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1537 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538 { (exit 1); exit 1; }; }
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 for ac_var in $ac_precious_vars; do
1551 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_env_${ac_var}_value=\$${ac_var}
1553 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 # Report the --help message.
1560 if test "$ac_init_help" = "long"; then
1561 # Omit some internal or obsolete options to make the list less imposing.
1562 # This message is too long to be a string in the A/UX 3.1 sh.
1564 \`configure' configures this package to adapt to many kinds of systems.
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE. See below for descriptions of some of the useful variables.
1571 Defaults for the options are specified in brackets.
1574 -h, --help display this help and exit
1575 --help=short display options specific to this package
1576 --help=recursive display the short help of all the included packages
1577 -V, --version display version information and exit
1578 -q, --quiet, --silent do not print \`checking...' messages
1579 --cache-file=FILE cache test results in FILE [disabled]
1580 -C, --config-cache alias for \`--cache-file=config.cache'
1581 -n, --no-create do not create output files
1582 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1584 Installation directories:
1585 --prefix=PREFIX install architecture-independent files in PREFIX
1586 [$ac_default_prefix]
1587 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1595 For better control, use the options below.
1597 Fine tuning of the installation directories:
1598 --bindir=DIR user executables [EPREFIX/bin]
1599 --sbindir=DIR system admin executables [EPREFIX/sbin]
1600 --libexecdir=DIR program executables [EPREFIX/libexec]
1601 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1602 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1603 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1604 --libdir=DIR object code libraries [EPREFIX/lib]
1605 --includedir=DIR C header files [PREFIX/include]
1606 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1607 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1608 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1609 --infodir=DIR info documentation [DATAROOTDIR/info]
1610 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1611 --mandir=DIR man documentation [DATAROOTDIR/man]
1612 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1613 --htmldir=DIR html documentation [DOCDIR]
1614 --dvidir=DIR dvi documentation [DOCDIR]
1615 --pdfdir=DIR pdf documentation [DOCDIR]
1616 --psdir=DIR ps documentation [DOCDIR]
1622 --x-includes=DIR X include files are in DIR
1623 --x-libraries=DIR X library files are in DIR
1626 --build=BUILD configure for building on BUILD [guessed]
1627 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631 if test -n "$ac_init_help"; then
1636 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1637 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1638 --enable-libtool enable building using GNU libtool [default=yes]
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=no]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --enable-includes enable installing of include files [default=no]
1645 --disable-nls do not use Native Language Support
1646 --disable-rpath do not hardcode runtime library paths
1647 --enable-gnome enable build of bgnome-console GUI [default=no]
1648 --enable-bat enable build of bat Qt4 GUI [default=no]
1649 --enable-bwx-console enable build of wxWidgets console [default=no]
1650 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1652 --enable-smartalloc enable smartalloc debugging support [default=no]
1653 --enable-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"
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 TRUEPRG=$ac_cv_path_TRUEPRG
2261 if test -n "$TRUEPRG"; then
2262 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2263 echo "${ECHO_T}$TRUEPRG" >&6; }
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2270 test -n "$TRUEPRG" && break
2272 test -n "$TRUEPRG" || TRUEPRG=":"
2274 for ac_prog in false
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 FALSEPRG=$ac_cv_path_FALSEPRG
2307 if test -n "$FALSEPRG"; then
2308 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2309 echo "${ECHO_T}$FALSEPRG" >&6; }
2311 { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2316 test -n "$FALSEPRG" && break
2318 test -n "$FALSEPRG" || FALSEPRG=":"
2323 if test "x$BACULA" != x; then
2324 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2326 BACULA=${BACULA-Bacula}
2327 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2329 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2330 echo "configuring for ${BACULA} $VERSION ($DATE)"
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 if test -n "$CC"; then
2368 { echo "$as_me:$LINENO: result: $CC" >&5
2369 echo "${ECHO_T}$CC" >&6; }
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2377 if test -z "$ac_cv_prog_CC"; then
2379 # Extract the first word of "gcc", so it can be a program name with args.
2380 set dummy gcc; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$ac_ct_CC"; then
2387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_ac_ct_CC="gcc"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2407 if test -n "$ac_ct_CC"; then
2408 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2409 echo "${ECHO_T}$ac_ct_CC" >&6; }
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2415 if test "x$ac_ct_CC" = x; then
2418 case $cross_compiling:$ac_tool_warned in
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2434 if test -z "$CC"; then
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}cc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}cc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2475 if test -z "$CC"; then
2476 # Extract the first word of "cc", so it can be a program name with args.
2477 set dummy cc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2495 ac_prog_rejected=yes
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test $ac_prog_rejected = yes; then
2507 # We found a bogon in the path, so make sure we never use it.
2508 set dummy $ac_cv_prog_CC
2510 if test $# != 0; then
2511 # We chose a different compiler from the bogus one.
2512 # However, it has the same basename, so the bogon will be chosen
2513 # first if we set CC to just the basename; use the full file name.
2515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2521 if test -n "$CC"; then
2522 { echo "$as_me:$LINENO: result: $CC" >&5
2523 echo "${ECHO_T}$CC" >&6; }
2525 { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 for ac_prog in cl.exe
2535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2572 test -n "$CC" && break
2575 if test -z "$CC"; then
2577 for ac_prog in cl.exe
2579 # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$ac_ct_CC"; then
2587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_ac_ct_CC="$ac_prog"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2609 echo "${ECHO_T}$ac_ct_CC" >&6; }
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2616 test -n "$ac_ct_CC" && break
2619 if test "x$ac_ct_CC" = x; then
2622 case $cross_compiling:$ac_tool_warned in
2624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet. If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&5
2627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet. If you think this
2629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2630 ac_tool_warned=yes ;;
2639 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2645 # Provide some information about the compiler.
2646 echo "$as_me:$LINENO: checking for C compiler version" >&5
2647 ac_compiler=`set X $ac_compile; echo $2`
2648 { (ac_try="$ac_compiler --version >&5"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compiler --version >&5") 2>&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }
2658 { (ac_try="$ac_compiler -v >&5"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compiler -v >&5") 2>&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }
2668 { (ac_try="$ac_compiler -V >&5"
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler -V >&5") 2>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2694 ac_clean_files_save=$ac_clean_files
2695 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2696 # Try to create an executable without -o first, disregard a.out.
2697 # It will help us diagnose broken compilers, and finding out an intuition
2699 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2700 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2701 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2703 # List of possible output files, starting from the most likely.
2704 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2705 # only as a last resort. b.out is created by i960 compilers.
2706 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2708 # The IRIX 6 linker writes into existing files which may not be
2709 # executable, retaining their permissions. Remove them first so a
2710 # subsequent execution test works.
2712 for ac_file in $ac_files
2715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2716 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2721 if { (ac_try="$ac_link_default"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_link_default") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; then
2731 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2732 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2733 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2734 # so that the user can short-circuit this test for compilers unknown to
2736 for ac_file in $ac_files ''
2738 test -f "$ac_file" || continue
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2743 # We found the default executable, but exeext='' is most
2747 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2751 # We set ac_cv_exeext here because the later test for it is not
2752 # safe: cross compilers may not add the suffix if given an `-o'
2753 # argument, so we may need to know it at that point already.
2754 # Even if this section looks crufty: it has the advantage of
2761 test "$ac_cv_exeext" = no && ac_cv_exeext=
2767 { echo "$as_me:$LINENO: result: $ac_file" >&5
2768 echo "${ECHO_T}$ac_file" >&6; }
2769 if test -z "$ac_file"; then
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&2;}
2777 { (exit 77); exit 77; }; }
2780 ac_exeext=$ac_cv_exeext
2782 # Check that the compiler produces executables we can run. If not, either
2783 # the compiler is broken, or we cross compile.
2784 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2785 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2786 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2787 # If not cross compiling, check that we can run a simple program.
2788 if test "$cross_compiling" != yes; then
2789 if { ac_try='./$ac_file'
2790 { (case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_try") 2>&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2801 if test "$cross_compiling" = maybe; then
2804 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2805 If you meant to cross compile, use \`--host'.
2806 See \`config.log' for more details." >&5
2807 echo "$as_me: error: cannot run C compiled programs.
2808 If you meant to cross compile, use \`--host'.
2809 See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2814 { echo "$as_me:$LINENO: result: yes" >&5
2815 echo "${ECHO_T}yes" >&6; }
2817 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2818 ac_clean_files=$ac_clean_files_save
2819 # Check that the compiler produces executables we can run. If not, either
2820 # the compiler is broken, or we cross compile.
2821 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2822 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2823 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2824 echo "${ECHO_T}$cross_compiling" >&6; }
2826 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2827 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2828 if { (ac_try="$ac_link"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_link") 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; then
2838 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2839 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2840 # work properly (i.e., refer to `conftest.exe'), while it won't with
2842 for ac_file in conftest.exe conftest conftest.*; do
2843 test -f "$ac_file" || continue
2845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2846 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&5
2854 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }
2859 rm -f conftest$ac_cv_exeext
2860 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2861 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2863 rm -f conftest.$ac_ext
2864 EXEEXT=$ac_cv_exeext
2866 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2867 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2868 if test "${ac_cv_objext+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2886 rm -f conftest.o conftest.obj
2887 if { (ac_try="$ac_compile"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; then
2897 for ac_file in conftest.o conftest.obj conftest.*; do
2898 test -f "$ac_file" || continue;
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&2;}
2913 { (exit 1); exit 1; }; }
2916 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2918 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2919 echo "${ECHO_T}$ac_cv_objext" >&6; }
2920 OBJEXT=$ac_cv_objext
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } && {
2959 test -z "$ac_c_werror_flag" ||
2960 test ! -s conftest.err
2961 } && test -s conftest.$ac_objext; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2976 GCC=`test $ac_compiler_gnu = yes && echo yes`
2977 ac_test_CFLAGS=${CFLAGS+set}
2978 ac_save_CFLAGS=$CFLAGS
2979 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2980 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cc_g+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 ac_save_c_werror_flag=$ac_c_werror_flag
2985 ac_c_werror_flag=yes
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } && {
3017 test -z "$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 } && test -s conftest.$ac_objext; then
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 ac_c_werror_flag=$ac_save_c_werror_flag
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } && {
3094 test -z "$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 ac_c_werror_flag=$ac_save_c_werror_flag
3114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3116 if test "$ac_test_CFLAGS" = set; then
3117 CFLAGS=$ac_save_CFLAGS
3118 elif test $ac_cv_prog_cc_g = yes; then
3119 if test "$GCC" = yes; then
3125 if test "$GCC" = yes; then
3131 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3132 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_cc_c89+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 ac_cv_prog_cc_c89=no
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3146 #include <sys/types.h>
3147 #include <sys/stat.h>
3148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3149 struct buf { int x; };
3150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3151 static char *e (p, i)
3157 static char *f (char * (*g) (char **, int), char **p, ...)
3162 s = g (p, va_arg (v,int));
3167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3168 function prototypes and stuff, but not '\xHH' hex character constants.
3169 These don't provoke an error unfortunately, instead are silently treated
3170 as 'x'. The following induces an error, until -std is added to get
3171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3172 array size at least. It's necessary to write '\x00'==0 to get something
3173 that's true only with -std. */
3174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3177 inside strings and character constants. */
3179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3181 int test (int i, double x);
3182 struct s1 {int (*f) (int a);};
3183 struct s2 {int (*f) (double a);};
3184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3198 CC="$ac_save_CC $ac_arg"
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3216 ac_cv_prog_cc_c89=$ac_arg
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f core conftest.err conftest.$ac_objext
3225 test "x$ac_cv_prog_cc_c89" != "xno" && break
3227 rm -f conftest.$ac_ext
3232 case "x$ac_cv_prog_cc_c89" in
3234 { echo "$as_me:$LINENO: result: none needed" >&5
3235 echo "${ECHO_T}none needed" >&6; } ;;
3237 { echo "$as_me:$LINENO: result: unsupported" >&5
3238 echo "${ECHO_T}unsupported" >&6; } ;;
3240 CC="$CC $ac_cv_prog_cc_c89"
3241 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253 ac_cpp='$CXXCPP $CPPFLAGS'
3254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3257 if test -z "$CXX"; then
3258 if test -n "$CCC"; then
3261 if test -n "$ac_tool_prefix"; then
3262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3268 if test "${ac_cv_prog_CXX+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 if test -n "$CXX"; then
3272 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 if test -n "$CXX"; then
3293 { echo "$as_me:$LINENO: result: $CXX" >&5
3294 echo "${ECHO_T}$CXX" >&6; }
3296 { echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6; }
3301 test -n "$CXX" && break
3304 if test -z "$CXX"; then
3306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3308 # Extract the first word of "$ac_prog", so it can be a program name with args.
3309 set dummy $ac_prog; ac_word=$2
3310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 if test -n "$ac_ct_CXX"; then
3316 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_prog_ac_ct_CXX="$ac_prog"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3336 if test -n "$ac_ct_CXX"; then
3337 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3338 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3340 { echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6; }
3345 test -n "$ac_ct_CXX" && break
3348 if test "x$ac_ct_CXX" = x; then
3351 case $cross_compiling:$ac_tool_warned in
3353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3354 whose name does not start with the host triplet. If you think this
3355 configuration is useful to you, please write to autoconf@gnu.org." >&5
3356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3357 whose name does not start with the host triplet. If you think this
3358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3359 ac_tool_warned=yes ;;
3367 # Provide some information about the compiler.
3368 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3369 ac_compiler=`set X $ac_compile; echo $2`
3370 { (ac_try="$ac_compiler --version >&5"
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_compiler --version >&5") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }
3380 { (ac_try="$ac_compiler -v >&5"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_compiler -v >&5") 2>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }
3390 { (ac_try="$ac_compiler -V >&5"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compiler -V >&5") 2>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }
3401 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3402 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_compile") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } && {
3438 test -z "$ac_cxx_werror_flag" ||
3439 test ! -s conftest.err
3440 } && test -s conftest.$ac_objext; then
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3453 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3454 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3455 GXX=`test $ac_compiler_gnu = yes && echo yes`
3456 ac_test_CXXFLAGS=${CXXFLAGS+set}
3457 ac_save_CXXFLAGS=$CXXFLAGS
3458 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3459 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3460 if test "${ac_cv_prog_cxx_g+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3464 ac_cxx_werror_flag=yes
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3482 rm -f conftest.$ac_objext
3483 if { (ac_try="$ac_compile"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_compile") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && {
3496 test -z "$ac_cxx_werror_flag" ||
3497 test ! -s conftest.err
3498 } && test -s conftest.$ac_objext; then
3499 ac_cv_prog_cxx_g=yes
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3505 cat >conftest.$ac_ext <<_ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } && {
3534 test -z "$ac_cxx_werror_flag" ||
3535 test ! -s conftest.err
3536 } && test -s conftest.$ac_objext; then
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_cxx_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 ac_cv_prog_cxx_g=yes
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3594 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3595 if test "$ac_test_CXXFLAGS" = set; then
3596 CXXFLAGS=$ac_save_CXXFLAGS
3597 elif test $ac_cv_prog_cxx_g = yes; then
3598 if test "$GXX" = yes; then
3604 if test "$GXX" = yes; then
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 if test "x$CC" != xcc; then
3617 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3618 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3620 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3621 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3623 set dummy $CC; ac_cc=`echo $2 |
3624 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3625 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3643 # Make sure it works both with $CC and with simple cc.
3644 # We do the test twice because some compilers refuse to overwrite an
3645 # existing .o file with -o, though they will create one.
3646 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3648 if { (case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_try") 2>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_try") 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); };
3667 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3668 if test "x$CC" != xcc; then
3669 # Test first that cc exists at all.
3670 if { ac_try='cc -c conftest.$ac_ext >&5'
3671 { (case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_try") 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3682 if { (case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_try") 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); };
3704 # cc exists but doesn't like -o.
3705 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3710 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3712 rm -f core conftest*
3715 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3716 { echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6; }
3719 { echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6; }
3722 cat >>confdefs.h <<\_ACEOF
3723 #define NO_MINUS_C_MINUS_O 1
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3735 # On Suns, sometimes $CPP names a directory.
3736 if test -n "$CPP" && test -d "$CPP"; then
3739 if test -z "$CPP"; then
3740 if test "${ac_cv_prog_CPP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 # Double quotes because CPP needs to be expanded
3744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3747 for ac_c_preproc_warn_flag in '' yes
3749 # Use a header file that comes with gcc, so configuring glibc
3750 # with a fresh cross-compiler works.
3751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752 # <limits.h> exists even on freestanding compilers.
3753 # On the NeXT, cc -E runs the code through the compiler's parser,
3754 # not just through cpp. "Syntax error" is here to catch this case.
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3762 # include <limits.h>
3764 # include <assert.h>
3768 if { (ac_try="$ac_cpp conftest.$ac_ext"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } >/dev/null && {
3781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 # Broken: fails on valid input.
3793 rm -f conftest.err conftest.$ac_ext
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <ac_nonexistent.h>
3805 if { (ac_try="$ac_cpp conftest.$ac_ext"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813 grep -v '^ *+' conftest.er1 >conftest.err
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3821 # Broken: success on invalid input.
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 # Passes both tests.
3832 rm -f conftest.err conftest.$ac_ext
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then
3849 { echo "$as_me:$LINENO: result: $CPP" >&5
3850 echo "${ECHO_T}$CPP" >&6; }
3852 for ac_c_preproc_warn_flag in '' yes
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat >conftest.$ac_ext <<_ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3867 # include <limits.h>
3869 # include <assert.h>
3873 if { (ac_try="$ac_cpp conftest.$ac_ext"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3881 grep -v '^ *+' conftest.er1 >conftest.err
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } >/dev/null && {
3886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 # Broken: fails on valid input.
3898 rm -f conftest.err conftest.$ac_ext
3900 # OK, works on sane cases. Now check whether nonexistent headers
3901 # can be detected and how.
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 #include <ac_nonexistent.h>
3910 if { (ac_try="$ac_cpp conftest.$ac_ext"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3926 # Broken: success on invalid input.
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 # Passes both tests.
3937 rm -f conftest.err conftest.$ac_ext
3940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941 rm -f conftest.err conftest.$ac_ext
3942 if $ac_preproc_ok; then
3945 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&5
3947 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3948 See \`config.log' for more details." >&2;}
3949 { (exit 1); exit 1; }; }
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961 if test "${ac_cv_path_GREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 # Extract the first word of "grep ggrep" to use in msg output
3965 if test -z "$GREP"; then
3966 set dummy grep ggrep; ac_prog_name=$2
3967 if test "${ac_cv_path_GREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_path_GREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in grep ggrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3981 # Check for GNU ac_path_GREP and select it if it is found.
3982 # Check for GNU $ac_path_GREP
3983 case `"$ac_path_GREP" --version 2>&1` in
3985 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'GREP' >> "conftest.nl"
3995 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_GREP="$ac_path_GREP"
4001 ac_path_GREP_max=$ac_count
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_GREP_found && break 3
4020 GREP="$ac_cv_path_GREP"
4021 if test -z "$GREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4028 ac_cv_path_GREP=$GREP
4033 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4035 GREP="$ac_cv_path_GREP"
4038 { echo "$as_me:$LINENO: checking for egrep" >&5
4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4046 # Extract the first word of "egrep" to use in msg output
4047 if test -z "$EGREP"; then
4048 set dummy egrep; ac_prog_name=$2
4049 if test "${ac_cv_path_EGREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 ac_path_EGREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in egrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4063 # Check for GNU ac_path_EGREP and select it if it is found.
4064 # Check for GNU $ac_path_EGREP
4065 case `"$ac_path_EGREP" --version 2>&1` in
4067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 echo 'EGREP' >> "conftest.nl"
4077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 ac_count=`expr $ac_count + 1`
4080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_EGREP="$ac_path_EGREP"
4083 ac_path_EGREP_max=$ac_count
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 $ac_path_EGREP_found && break 3
4102 EGREP="$ac_cv_path_EGREP"
4103 if test -z "$EGREP"; then
4104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106 { (exit 1); exit 1; }; }
4110 ac_cv_path_EGREP=$EGREP
4116 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4121 if test $ac_cv_c_compiler_gnu = yes; then
4122 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4123 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4124 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 ac_pattern="Autoconf.*'x'"
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4138 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4139 ac_cv_prog_gcc_traditional=yes
4141 ac_cv_prog_gcc_traditional=no
4146 if test $ac_cv_prog_gcc_traditional = no; then
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4157 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4158 ac_cv_prog_gcc_traditional=yes
4164 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4165 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4166 if test $ac_cv_prog_gcc_traditional = yes; then
4167 CC="$CC -traditional"
4171 BASECC=`basename $CC`
4173 if test "x$BASECC" = xgcc; then
4174 cat >>confdefs.h <<\_ACEOF
4180 # Extract the first word of "$CXX", so it can be a program name with args.
4181 set dummy $CXX; ac_word=$2
4182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4184 if test "${ac_cv_path_CXX+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4212 if test -n "$CXX"; then
4213 { echo "$as_me:$LINENO: result: $CXX" >&5
4214 echo "${ECHO_T}$CXX" >&6; }
4216 { echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6; }
4221 if test ! -e $CXX; then
4222 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4223 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4224 { (exit 1); exit 1; }; }
4227 # Find a good install program. We prefer a C program (faster),
4228 # so one script is as good as another. But avoid the broken or
4229 # incompatible versions:
4230 # SysV /etc/install, /usr/sbin/install
4231 # SunOS /usr/etc/install
4232 # IRIX /sbin/install
4234 # AmigaOS /C/install, which installs bootblocks on floppy discs
4235 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4236 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4237 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4238 # OS/2's system install, which has a completely different semantic
4239 # ./install, which can be erroneously created by make from ./install.sh.
4240 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4241 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4242 if test -z "$INSTALL"; then
4243 if test "${ac_cv_path_install+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 # Account for people who put trailing slashes in PATH elements.
4253 ./ | .// | /cC/* | \
4254 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4255 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4258 # OSF1 and SCO ODT 3.0 have their own names for install.
4259 # Don't use installbsd from OSF since it installs stuff as root
4261 for ac_prog in ginstall scoinst install; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4264 if test $ac_prog = install &&
4265 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4266 # AIX install. It has an incompatible calling convention.
4268 elif test $ac_prog = install &&
4269 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4270 # program-specific install script used by HP pwplus--don't use.
4273 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4286 if test "${ac_cv_path_install+set}" = set; then
4287 INSTALL=$ac_cv_path_install
4289 # As a last resort, use the slow shell script. Don't cache a
4290 # value for INSTALL within a source directory, because that will
4291 # break other packages using the cache if that directory is
4292 # removed, or if the value is a relative name.
4293 INSTALL=$ac_install_sh
4296 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4297 echo "${ECHO_T}$INSTALL" >&6; }
4299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4300 # It thinks the first close brace ends the variable substitution.
4301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4307 # Extract the first word of "mv", so it can be a program name with args.
4308 set dummy mv; ac_word=$2
4309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311 if test "${ac_cv_path_MV+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4339 if test -n "$MV"; then
4340 { echo "$as_me:$LINENO: result: $MV" >&5
4341 echo "${ECHO_T}$MV" >&6; }
4343 { echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6; }
4348 # Extract the first word of "rm", so it can be a program name with args.
4349 set dummy rm; ac_word=$2
4350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4352 if test "${ac_cv_path_REMOVE+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4379 REMOVE=$ac_cv_path_REMOVE
4380 if test -n "$REMOVE"; then
4381 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4382 echo "${ECHO_T}$REMOVE" >&6; }
4384 { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4389 # Extract the first word of "cp", so it can be a program name with args.
4390 set dummy cp; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_path_CP+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4421 if test -n "$CP"; then
4422 { echo "$as_me:$LINENO: result: $CP" >&5
4423 echo "${ECHO_T}$CP" >&6; }
4425 { echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6; }
4430 # Extract the first word of "sed", so it can be a program name with args.
4431 set dummy sed; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_path_SED+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4462 if test -n "$SED"; then
4463 { echo "$as_me:$LINENO: result: $SED" >&5
4464 echo "${ECHO_T}$SED" >&6; }
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4471 # Extract the first word of "echo", so it can be a program name with args.
4472 set dummy echo; ac_word=$2
4473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475 if test "${ac_cv_path_ECHO+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4502 ECHO=$ac_cv_path_ECHO
4503 if test -n "$ECHO"; then
4504 { echo "$as_me:$LINENO: result: $ECHO" >&5
4505 echo "${ECHO_T}$ECHO" >&6; }
4507 { echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6; }
4512 # Extract the first word of "cmp", so it can be a program name with args.
4513 set dummy cmp; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_path_CMP+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4544 if test -n "$CMP"; then
4545 { echo "$as_me:$LINENO: result: $CMP" >&5
4546 echo "${ECHO_T}$CMP" >&6; }
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4553 # Extract the first word of "tbl", so it can be a program name with args.
4554 set dummy tbl; ac_word=$2
4555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557 if test "${ac_cv_path_TBL+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4585 if test -n "$TBL"; then
4586 { echo "$as_me:$LINENO: result: $TBL" >&5
4587 echo "${ECHO_T}$TBL" >&6; }
4589 { echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6; }
4594 # Extract the first word of "ar", so it can be a program name with args.
4595 set dummy ar; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_path_AR+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4626 if test -n "$AR"; then
4627 { echo "$as_me:$LINENO: result: $AR" >&5
4628 echo "${ECHO_T}$AR" >&6; }
4630 { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4635 # Extract the first word of "openssl", so it can be a program name with args.
4636 set dummy openssl; ac_word=$2
4637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4639 if test "${ac_cv_path_OPENSSL+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4666 OPENSSL=$ac_cv_path_OPENSSL
4667 if test -n "$OPENSSL"; then
4668 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4669 echo "${ECHO_T}$OPENSSL" >&6; }
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4676 # Extract the first word of "mtx", so it can be a program name with args.
4677 set dummy mtx; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_path_MTX+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4708 if test -n "$MTX"; then
4709 { echo "$as_me:$LINENO: result: $MTX" >&5
4710 echo "${ECHO_T}$MTX" >&6; }
4712 { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4717 # Extract the first word of "dd", so it can be a program name with args.
4718 set dummy dd; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_path_DD+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4749 if test -n "$DD"; then
4750 { echo "$as_me:$LINENO: result: $DD" >&5
4751 echo "${ECHO_T}$DD" >&6; }
4753 { echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6; }
4758 # Extract the first word of "mkisofs", so it can be a program name with args.
4759 set dummy mkisofs; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_path_MKISOFS+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4789 MKISOFS=$ac_cv_path_MKISOFS
4790 if test -n "$MKISOFS"; then
4791 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4792 echo "${ECHO_T}$MKISOFS" >&6; }
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4799 # Extract the first word of "python", so it can be a program name with args.
4800 set dummy python; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_path_PYTHON+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4830 PYTHON=$ac_cv_path_PYTHON
4831 if test -n "$PYTHON"; then
4832 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4833 echo "${ECHO_T}$PYTHON" >&6; }
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4840 # Extract the first word of "growisofs", so it can be a program name with args.
4841 set dummy growisofs; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4871 GROWISOFS=$ac_cv_path_GROWISOFS
4872 if test -n "$GROWISOFS"; then
4873 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4874 echo "${ECHO_T}$GROWISOFS" >&6; }
4876 { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4881 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4882 set dummy dvd+rw-mediainfo; ac_word=$2
4883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4885 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 case $DVDRWMEDIAINFO in
4890 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4912 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4913 if test -n "$DVDRWMEDIAINFO"; then
4914 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4915 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4917 { echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6; }
4922 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4923 set dummy dvd+rw-format; ac_word=$2
4924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4926 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 case $DVDRWFORMAT in
4931 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4953 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4954 if test -n "$DVDRWFORMAT"; then
4955 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4956 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4958 { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4963 # Extract the first word of "pkg-config", so it can be a program name with args.
4964 set dummy pkg-config; ac_word=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4994 PKGCONFIG=$ac_cv_path_PKGCONFIG
4995 if test -n "$PKGCONFIG"; then
4996 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4997 echo "${ECHO_T}$PKGCONFIG" >&6; }
4999 { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5004 # Extract the first word of "qmake", so it can be a program name with args.
5005 set dummy qmake; ac_word=$2
5006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5008 if test "${ac_cv_path_QMAKE+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5035 QMAKE=$ac_cv_path_QMAKE
5036 if test -n "$QMAKE"; then
5037 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5038 echo "${ECHO_T}$QMAKE" >&6; }
5040 { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5045 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5046 set dummy qmake-qt4; ac_word=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5076 QMAKEQT4=$ac_cv_path_QMAKEQT4
5077 if test -n "$QMAKEQT4"; then
5078 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5079 echo "${ECHO_T}$QMAKEQT4" >&6; }
5081 { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5087 if test "x$WXCONFIG" = x; then
5090 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5091 set dummy ${WXCONFIG}; ac_word=$2
5092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5094 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5121 WXCONFIG=$ac_cv_path_WXCONFIG
5122 if test -n "$WXCONFIG"; then
5123 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5124 echo "${ECHO_T}$WXCONFIG" >&6; }
5126 { echo "$as_me:$LINENO: result: no" >&5
5127 echo "${ECHO_T}no" >&6; }
5132 # Extract the first word of "cdrecord", so it can be a program name with args.
5133 set dummy cdrecord; ac_word=$2
5134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5136 if test "${ac_cv_path_CDRECORD+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5163 CDRECORD=$ac_cv_path_CDRECORD
5164 if test -n "$CDRECORD"; then
5165 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5166 echo "${ECHO_T}$CDRECORD" >&6; }
5168 { echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6; }
5173 # Extract the first word of "pidof", so it can be a program name with args.
5174 set dummy pidof; ac_word=$2
5175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5177 if test "${ac_cv_path_PIDOF+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5204 PIDOF=$ac_cv_path_PIDOF
5205 if test -n "$PIDOF"; then
5206 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5207 echo "${ECHO_T}$PIDOF" >&6; }
5209 { echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6; }
5214 for ac_prog in gawk mawk nawk awk
5216 # Extract the first word of "$ac_prog", so it can be a program name with args.
5217 set dummy $ac_prog; ac_word=$2
5218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5220 if test "${ac_cv_prog_AWK+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 if test -n "$AWK"; then
5224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_AWK="$ac_prog"
5234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 if test -n "$AWK"; then
5245 { echo "$as_me:$LINENO: result: $AWK" >&5
5246 echo "${ECHO_T}$AWK" >&6; }
5248 { echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6; }
5253 test -n "$AWK" && break
5256 # Some AWK programs fail, so test it and warn the user
5257 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5258 { if ((prog == $2) || (("(" prog ")") == $2) ||
5259 (("" prog "") == $2) ||
5260 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5262 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5263 The regex engine of $AWK is too broken to be used you
5264 might want to install GNU AWK.
5265 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5266 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5267 The regex engine of $AWK is too broken to be used you
5268 might want to install GNU AWK.
5269 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5270 { (exit 1); exit 1; }; }
5273 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5274 set dummy $THE_AWK; ac_word=$2
5275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5277 if test "${ac_cv_path_AWK+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5305 if test -n "$AWK"; then
5306 { echo "$as_me:$LINENO: result: $AWK" >&5
5307 echo "${ECHO_T}$AWK" >&6; }
5309 { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5316 test -n "$ARFLAG" || ARFLAGS="cr"
5327 # Check whether --enable-libtool was given.
5328 if test "${enable_libtool+set}" = set; then
5329 enableval=$enable_libtool;
5330 if test x$enableval = xno; then
5339 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5340 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5345 macro_version='2.2.6'
5346 macro_revision='1.3012'
5360 ltmain="$ac_aux_dir/ltmain.sh"
5362 # Make sure we can run config.sub.
5363 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5364 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5365 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5366 { (exit 1); exit 1; }; }
5368 { echo "$as_me:$LINENO: checking build system type" >&5
5369 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5370 if test "${ac_cv_build+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 ac_build_alias=$build_alias
5374 test "x$ac_build_alias" = x &&
5375 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5376 test "x$ac_build_alias" = x &&
5377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5379 { (exit 1); exit 1; }; }
5380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5381 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5382 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5383 { (exit 1); exit 1; }; }
5386 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5387 echo "${ECHO_T}$ac_cv_build" >&6; }
5388 case $ac_cv_build in
5390 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5391 echo "$as_me: error: invalid value of canonical build" >&2;}
5392 { (exit 1); exit 1; }; };;
5395 ac_save_IFS=$IFS; IFS='-'
5401 # Remember, the first character of IFS is used to create $*,
5402 # except with old shells:
5405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5408 { echo "$as_me:$LINENO: checking host system type" >&5
5409 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5410 if test "${ac_cv_host+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 if test "x$host_alias" = x; then
5414 ac_cv_host=$ac_cv_build
5416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5417 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5418 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5419 { (exit 1); exit 1; }; }
5423 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5424 echo "${ECHO_T}$ac_cv_host" >&6; }
5427 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5428 echo "$as_me: error: invalid value of canonical host" >&2;}
5429 { (exit 1); exit 1; }; };;
5432 ac_save_IFS=$IFS; IFS='-'
5438 # Remember, the first character of IFS is used to create $*,
5439 # except with old shells:
5442 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5445 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5446 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5447 if test "${ac_cv_path_SED+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5451 for ac_i in 1 2 3 4 5 6 7; do
5452 ac_script="$ac_script$as_nl$ac_script"
5454 echo "$ac_script" | sed 99q >conftest.sed
5455 $as_unset ac_script || ac_script=
5456 # Extract the first word of "sed gsed" to use in msg output
5457 if test -z "$SED"; then
5458 set dummy sed gsed; ac_prog_name=$2
5459 if test "${ac_cv_path_SED+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 ac_path_SED_found=false
5463 # Loop through the user's path and test for each of PROGNAME-LIST
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_prog in sed gsed; do
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5472 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5473 # Check for GNU ac_path_SED and select it if it is found.
5474 # Check for GNU $ac_path_SED
5475 case `"$ac_path_SED" --version 2>&1` in
5477 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5480 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5483 cat "conftest.in" "conftest.in" >"conftest.tmp"
5484 mv "conftest.tmp" "conftest.in"
5485 cp "conftest.in" "conftest.nl"
5486 echo '' >> "conftest.nl"
5487 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5489 ac_count=`expr $ac_count + 1`
5490 if test $ac_count -gt ${ac_path_SED_max-0}; then
5491 # Best one so far, save it but keep looking for a better one
5492 ac_cv_path_SED="$ac_path_SED"
5493 ac_path_SED_max=$ac_count
5495 # 10*(2^10) chars as input seems more than enough
5496 test $ac_count -gt 10 && break
5498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 $ac_path_SED_found && break 3
5512 SED="$ac_cv_path_SED"
5513 if test -z "$SED"; then
5514 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5515 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5516 { (exit 1); exit 1; }; }
5524 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5525 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5526 SED="$ac_cv_path_SED"
5529 test -z "$SED" && SED=sed
5530 Xsed="$SED -e 1s/^X//"
5542 { echo "$as_me:$LINENO: checking for fgrep" >&5
5543 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5544 if test "${ac_cv_path_FGREP+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5548 then ac_cv_path_FGREP="$GREP -F"
5550 # Extract the first word of "fgrep" to use in msg output
5551 if test -z "$FGREP"; then
5552 set dummy fgrep; ac_prog_name=$2
5553 if test "${ac_cv_path_FGREP+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_path_FGREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in fgrep; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5566 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5567 # Check for GNU ac_path_FGREP and select it if it is found.
5568 # Check for GNU $ac_path_FGREP
5569 case `"$ac_path_FGREP" --version 2>&1` in
5571 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5574 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 echo 'FGREP' >> "conftest.nl"
5581 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 ac_count=`expr $ac_count + 1`
5584 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_FGREP="$ac_path_FGREP"
5587 ac_path_FGREP_max=$ac_count
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596 $ac_path_FGREP_found && break 3
5606 FGREP="$ac_cv_path_FGREP"
5607 if test -z "$FGREP"; then
5608 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5609 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5610 { (exit 1); exit 1; }; }
5614 ac_cv_path_FGREP=$FGREP
5620 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5621 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5622 FGREP="$ac_cv_path_FGREP"
5625 test -z "$GREP" && GREP=grep
5645 # Check whether --with-gnu-ld was given.
5646 if test "${with_gnu_ld+set}" = set; then
5647 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5653 if test "$GCC" = yes; then
5654 # Check if gcc -print-prog-name=ld gives a path.
5655 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5656 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5659 # gcc leaves a trailing carriage return which upsets mingw
5660 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5662 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5665 # Accept absolute paths.
5667 re_direlt='/[^/][^/]*/\.\./'
5668 # Canonicalize the pathname of ld
5669 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5670 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5671 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5673 test -z "$LD" && LD="$ac_prog"
5676 # If it fails, then pretend we aren't using GCC.
5680 # If it is relative, then search for the first ld in PATH.
5684 elif test "$with_gnu_ld" = yes; then
5685 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5686 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5688 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5689 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5691 if test "${lt_cv_path_LD+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 if test -z "$LD"; then
5695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5696 for ac_dir in $PATH; do
5698 test -z "$ac_dir" && ac_dir=.
5699 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5700 lt_cv_path_LD="$ac_dir/$ac_prog"
5701 # Check to see if the program is GNU ld. I'd rather use --version,
5702 # but apparently some variants of GNU ld only accept -v.
5703 # Break only if it was the GNU/non-GNU ld that we prefer.
5704 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5705 *GNU* | *'with BFD'*)
5706 test "$with_gnu_ld" != no && break
5709 test "$with_gnu_ld" != yes && break
5716 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5721 if test -n "$LD"; then
5722 { echo "$as_me:$LINENO: result: $LD" >&5
5723 echo "${ECHO_T}$LD" >&6; }
5725 { echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6; }
5728 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5729 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5730 { (exit 1); exit 1; }; }
5731 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5732 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5733 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5737 case `$LD -v 2>&1 </dev/null` in
5738 *GNU* | *'with BFD'*)
5739 lt_cv_prog_gnu_ld=yes
5742 lt_cv_prog_gnu_ld=no
5746 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5747 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5748 with_gnu_ld=$lt_cv_prog_gnu_ld
5758 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5759 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5760 if test "${lt_cv_path_NM+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 if test -n "$NM"; then
5764 # Let the user override the test.
5767 lt_nm_to_check="${ac_tool_prefix}nm"
5768 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5769 lt_nm_to_check="$lt_nm_to_check nm"
5771 for lt_tmp_nm in $lt_nm_to_check; do
5772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5773 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5775 test -z "$ac_dir" && ac_dir=.
5776 tmp_nm="$ac_dir/$lt_tmp_nm"
5777 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5778 # Check to see if the nm accepts a BSD-compat flag.
5779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5780 # nm: unknown option "B" ignored
5781 # Tru64's nm complains that /dev/null is an invalid object file
5782 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5783 */dev/null* | *'Invalid file or object type'*)
5784 lt_cv_path_NM="$tmp_nm -B"
5788 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5790 lt_cv_path_NM="$tmp_nm -p"
5794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5795 continue # so that we can try to find one that supports BSD flags
5804 : ${lt_cv_path_NM=no}
5807 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5808 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5809 if test "$lt_cv_path_NM" != "no"; then
5812 # Didn't find any BSD compatible name lister, look for dumpbin.
5813 if test -n "$ac_tool_prefix"; then
5814 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 if test -n "$DUMPBIN"; then
5824 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 DUMPBIN=$ac_cv_prog_DUMPBIN
5844 if test -n "$DUMPBIN"; then
5845 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5846 echo "${ECHO_T}$DUMPBIN" >&6; }
5848 { echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6; }
5853 test -n "$DUMPBIN" && break
5856 if test -z "$DUMPBIN"; then
5857 ac_ct_DUMPBIN=$DUMPBIN
5858 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5860 # Extract the first word of "$ac_prog", so it can be a program name with args.
5861 set dummy $ac_prog; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 if test -n "$ac_ct_DUMPBIN"; then
5868 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5888 if test -n "$ac_ct_DUMPBIN"; then
5889 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5890 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5892 { echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6; }
5897 test -n "$ac_ct_DUMPBIN" && break
5900 if test "x$ac_ct_DUMPBIN" = x; then
5903 case $cross_compiling:$ac_tool_warned in
5905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5906 whose name does not start with the host triplet. If you think this
5907 configuration is useful to you, please write to autoconf@gnu.org." >&5
5908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5909 whose name does not start with the host triplet. If you think this
5910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5911 ac_tool_warned=yes ;;
5913 DUMPBIN=$ac_ct_DUMPBIN
5918 if test "$DUMPBIN" != ":"; then
5922 test -z "$NM" && NM=nm
5929 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5930 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5931 if test "${lt_cv_nm_interface+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 lt_cv_nm_interface="BSD nm"
5935 echo "int some_variable = 0;" > conftest.$ac_ext
5936 (eval echo "\"\$as_me:5936: $ac_compile\"" >&5)
5937 (eval "$ac_compile" 2>conftest.err)
5938 cat conftest.err >&5
5939 (eval echo "\"\$as_me:5939: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5940 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5941 cat conftest.err >&5
5942 (eval echo "\"\$as_me:5942: output\"" >&5)
5943 cat conftest.out >&5
5944 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5945 lt_cv_nm_interface="MS dumpbin"
5949 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5950 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5952 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5953 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5955 if test "$LN_S" = "ln -s"; then
5956 { echo "$as_me:$LINENO: result: yes" >&5
5957 echo "${ECHO_T}yes" >&6; }
5959 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5960 echo "${ECHO_T}no, using $LN_S" >&6; }
5963 # find the maximum length of command line arguments
5964 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5965 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5966 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 # On DJGPP, this test can blow up pretty badly due to problems in libc
5975 # (any single argument exceeding 2000 bytes causes a buffer overrun
5976 # during glob expansion). Even if it were fixed, the result of this
5977 # check would be larger than it should be.
5978 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5982 # Under GNU Hurd, this test is not required because there is
5983 # no limit to the length of command line arguments.
5984 # Libtool will interpret -1 as no limit whatsoever
5985 lt_cv_sys_max_cmd_len=-1;
5988 cygwin* | mingw* | cegcc*)
5989 # On Win9x/ME, this test blows up -- it succeeds, but takes
5990 # about 5 minutes as the teststring grows exponentially.
5991 # Worse, since 9x/ME are not pre-emptively multitasking,
5992 # you end up with a "frozen" computer, even though with patience
5993 # the test eventually succeeds (with a max line length of 256k).
5994 # Instead, let's just punt: use the minimum linelength reported by
5995 # all of the supported platforms: 8192 (on NT/2K/XP).
5996 lt_cv_sys_max_cmd_len=8192;
6000 # On AmigaOS with pdksh, this test takes hours, literally.
6001 # So we just punt and use a minimum line length of 8192.
6002 lt_cv_sys_max_cmd_len=8192;
6005 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6006 # This has been around since 386BSD, at least. Likely further.
6007 if test -x /sbin/sysctl; then
6008 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6009 elif test -x /usr/sbin/sysctl; then
6010 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6012 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6014 # And add a safety zone
6015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6020 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6021 lt_cv_sys_max_cmd_len=196608
6025 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6026 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6027 # nice to cause kernel panics so lets avoid the loop below.
6028 # First set a reasonable default.
6029 lt_cv_sys_max_cmd_len=16384
6031 if test -x /sbin/sysconfig; then
6032 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6033 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6038 lt_cv_sys_max_cmd_len=102400
6040 sysv5* | sco5v6* | sysv4.2uw2*)
6041 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6042 if test -n "$kargmax"; then
6043 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6045 lt_cv_sys_max_cmd_len=32768
6049 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6050 if test -n "$lt_cv_sys_max_cmd_len"; then
6051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6054 # Make teststring a little bigger before we do anything with it.
6055 # a 1K string should be a reasonable start.
6056 for i in 1 2 3 4 5 6 7 8 ; do
6057 teststring=$teststring$teststring
6059 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6060 # If test is not a shell built-in, we'll probably end up computing a
6061 # maximum length that is only half of the actual maximum length, but
6063 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6064 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6065 test $i != 17 # 1/2 MB should be enough
6068 teststring=$teststring$teststring
6070 # Only check the string length outside the loop.
6071 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6073 # Add a significant safety factor because C++ compilers can tack on
6074 # massive amounts of additional arguments before passing them to the
6075 # linker. It appears as though 1/2 is a usable value.
6076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6083 if test -n $lt_cv_sys_max_cmd_len ; then
6084 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6085 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6087 { echo "$as_me:$LINENO: result: none" >&5
6088 echo "${ECHO_T}none" >&6; }
6090 max_cmd_len=$lt_cv_sys_max_cmd_len
6101 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6102 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6103 # Try some XSI features
6106 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6108 && eval 'test $(( 1 + 1 )) -eq 2 \
6109 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6111 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6112 echo "${ECHO_T}$xsi_shell" >&6; }
6115 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6116 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6118 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6120 && lt_shell_append=yes
6121 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6122 echo "${ECHO_T}$lt_shell_append" >&6; }
6125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6135 # test EBCDIC or ASCII
6136 case `echo X|tr X '\101'` in
6137 A) # ASCII based system
6138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6139 lt_SP2NL='tr \040 \012'
6140 lt_NL2SP='tr \015\012 \040\040'
6142 *) # EBCDIC based system
6143 lt_SP2NL='tr \100 \n'
6144 lt_NL2SP='tr \r\n \100\100'
6156 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6157 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6158 if test "${lt_cv_ld_reload_flag+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 lt_cv_ld_reload_flag='-r'
6163 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6164 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6165 reload_flag=$lt_cv_ld_reload_flag
6166 case $reload_flag in
6168 *) reload_flag=" $reload_flag" ;;
6170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6173 if test "$GCC" = yes; then
6174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6176 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6189 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 if test -n "$OBJDUMP"; then
6198 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 OBJDUMP=$ac_cv_prog_OBJDUMP
6218 if test -n "$OBJDUMP"; then
6219 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6220 echo "${ECHO_T}$OBJDUMP" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6228 if test -z "$ac_cv_prog_OBJDUMP"; then
6229 ac_ct_OBJDUMP=$OBJDUMP
6230 # Extract the first word of "objdump", so it can be a program name with args.
6231 set dummy objdump; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test -n "$ac_ct_OBJDUMP"; then
6238 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6258 if test -n "$ac_ct_OBJDUMP"; then
6259 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6260 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6266 if test "x$ac_ct_OBJDUMP" = x; then
6269 case $cross_compiling:$ac_tool_warned in
6271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272 whose name does not start with the host triplet. If you think this
6273 configuration is useful to you, please write to autoconf@gnu.org." >&5
6274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet. If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277 ac_tool_warned=yes ;;
6279 OBJDUMP=$ac_ct_OBJDUMP
6282 OBJDUMP="$ac_cv_prog_OBJDUMP"
6285 test -z "$OBJDUMP" && OBJDUMP=objdump
6295 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6296 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6297 if test "${lt_cv_deplibs_check_method+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 lt_cv_file_magic_cmd='$MAGIC_CMD'
6301 lt_cv_file_magic_test_file=
6302 lt_cv_deplibs_check_method='unknown'
6303 # Need to set the preceding variable on all platforms that support
6304 # interlibrary dependencies.
6305 # 'none' -- dependencies not supported.
6306 # `unknown' -- same as none, but documents that we really don't know.
6307 # 'pass_all' -- all dependencies passed with no checks.
6308 # 'test_compile' -- check by making test program.
6309 # 'file_magic [[regex]]' -- check by looking for files in library path
6310 # which responds to the $file_magic_cmd with a given extended regex.
6311 # If you have `file' or equivalent on your system and you're not sure
6312 # whether `pass_all' will *always* work, you probably want this one.
6316 lt_cv_deplibs_check_method=pass_all
6320 lt_cv_deplibs_check_method=pass_all
6324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6325 lt_cv_file_magic_cmd='/usr/bin/file -L'
6326 lt_cv_file_magic_test_file=/shlib/libc.so
6330 # func_win32_libid is a shell function defined in ltmain.sh
6331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6332 lt_cv_file_magic_cmd='func_win32_libid'
6336 # Base MSYS/MinGW do not provide the 'file' command needed by
6337 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6338 # unless we find 'file', for example because we are cross-compiling.
6339 if ( file / ) >/dev/null 2>&1; then
6340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6341 lt_cv_file_magic_cmd='func_win32_libid'
6343 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6344 lt_cv_file_magic_cmd='$OBJDUMP -f'
6349 # use the weaker test based on 'objdump'. See mingw*.
6350 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6351 lt_cv_file_magic_cmd='$OBJDUMP -f'
6354 darwin* | rhapsody*)
6355 lt_cv_deplibs_check_method=pass_all
6358 freebsd* | dragonfly*)
6359 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6362 # Not sure whether the presence of OpenBSD here was a mistake.
6363 # Let's accept both of them until this is cleared up.
6364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6365 lt_cv_file_magic_cmd=/usr/bin/file
6366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6370 lt_cv_deplibs_check_method=pass_all
6375 lt_cv_deplibs_check_method=pass_all
6378 hpux10.20* | hpux11*)
6379 lt_cv_file_magic_cmd=/usr/bin/file
6382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6386 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]'
6387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6401 irix5* | irix6* | nonstopux*)
6403 *-32|*"-32 ") libmagic=32-bit;;
6404 *-n32|*"-n32 ") libmagic=N32;;
6405 *-64|*"-64 ") libmagic=64-bit;;
6406 *) libmagic=never-match;;
6408 lt_cv_deplibs_check_method=pass_all
6411 # This must be Linux ELF.
6412 linux* | k*bsd*-gnu)
6413 lt_cv_deplibs_check_method=pass_all
6417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6426 lt_cv_file_magic_cmd=/usr/bin/file
6427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6431 lt_cv_deplibs_check_method=pass_all
6435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6442 osf3* | osf4* | osf5*)
6443 lt_cv_deplibs_check_method=pass_all
6447 lt_cv_deplibs_check_method=pass_all
6451 lt_cv_deplibs_check_method=pass_all
6454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6455 lt_cv_deplibs_check_method=pass_all
6459 case $host_vendor in
6461 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]'
6462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6465 lt_cv_deplibs_check_method=pass_all
6468 lt_cv_file_magic_cmd='/bin/file'
6469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6472 lt_cv_file_magic_cmd='/bin/file'
6473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6474 lt_cv_file_magic_test_file=/lib/libc.so
6477 lt_cv_deplibs_check_method=pass_all
6480 lt_cv_deplibs_check_method=pass_all
6486 lt_cv_deplibs_check_method=pass_all
6491 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6492 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6493 file_magic_cmd=$lt_cv_file_magic_cmd
6494 deplibs_check_method=$lt_cv_deplibs_check_method
6495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}ar; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_AR+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 if test -n "$AR"; then
6517 ac_cv_prog_AR="$AR" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_AR="${ac_tool_prefix}ar"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 if test -n "$AR"; then
6538 { echo "$as_me:$LINENO: result: $AR" >&5
6539 echo "${ECHO_T}$AR" >&6; }
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6547 if test -z "$ac_cv_prog_AR"; then
6549 # Extract the first word of "ar", so it can be a program name with args.
6550 set dummy ar; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 if test -n "$ac_ct_AR"; then
6557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_ac_ct_AR="ar"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6577 if test -n "$ac_ct_AR"; then
6578 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6579 echo "${ECHO_T}$ac_ct_AR" >&6; }
6581 { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6585 if test "x$ac_ct_AR" = x; then
6588 case $cross_compiling:$ac_tool_warned in
6590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6591 whose name does not start with the host triplet. If you think this
6592 configuration is useful to you, please write to autoconf@gnu.org." >&5
6593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet. If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6596 ac_tool_warned=yes ;;
6604 test -z "$AR" && AR=ar
6605 test -z "$AR_FLAGS" && AR_FLAGS=cru
6617 if test -n "$ac_tool_prefix"; then
6618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6619 set dummy ${ac_tool_prefix}strip; ac_word=$2
6620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622 if test "${ac_cv_prog_STRIP+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 if test -n "$STRIP"; then
6626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 STRIP=$ac_cv_prog_STRIP
6646 if test -n "$STRIP"; then
6647 { echo "$as_me:$LINENO: result: $STRIP" >&5
6648 echo "${ECHO_T}$STRIP" >&6; }
6650 { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6656 if test -z "$ac_cv_prog_STRIP"; then
6658 # Extract the first word of "strip", so it can be a program name with args.
6659 set dummy strip; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 if test -n "$ac_ct_STRIP"; then
6666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_prog_ac_ct_STRIP="strip"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6686 if test -n "$ac_ct_STRIP"; then
6687 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6688 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6694 if test "x$ac_ct_STRIP" = x; then
6697 case $cross_compiling:$ac_tool_warned in
6699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6700 whose name does not start with the host triplet. If you think this
6701 configuration is useful to you, please write to autoconf@gnu.org." >&5
6702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet. If you think this
6704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6705 ac_tool_warned=yes ;;
6710 STRIP="$ac_cv_prog_STRIP"
6713 test -z "$STRIP" && STRIP=:
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_RANLIB+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 if test -n "$RANLIB"; then
6729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 RANLIB=$ac_cv_prog_RANLIB
6749 if test -n "$RANLIB"; then
6750 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6751 echo "${ECHO_T}$RANLIB" >&6; }
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6759 if test -z "$ac_cv_prog_RANLIB"; then
6760 ac_ct_RANLIB=$RANLIB
6761 # Extract the first word of "ranlib", so it can be a program name with args.
6762 set dummy ranlib; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 if test -n "$ac_ct_RANLIB"; then
6769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_RANLIB="ranlib"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6789 if test -n "$ac_ct_RANLIB"; then
6790 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6791 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6793 { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6797 if test "x$ac_ct_RANLIB" = x; then
6800 case $cross_compiling:$ac_tool_warned in
6802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&5
6805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6806 whose name does not start with the host triplet. If you think this
6807 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6808 ac_tool_warned=yes ;;
6810 RANLIB=$ac_ct_RANLIB
6813 RANLIB="$ac_cv_prog_RANLIB"
6816 test -z "$RANLIB" && RANLIB=:
6823 # Determine commands to create old-style static archives.
6824 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6825 old_postinstall_cmds='chmod 644 $oldlib'
6826 old_postuninstall_cmds=
6828 if test -n "$RANLIB"; then
6831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6837 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6873 # If no C compiler was specified, use CC.
6876 # If no C compiler flags were specified, use CFLAGS.
6877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6879 # Allow CC to be a program name with arguments.
6883 # Check for command to grab the raw symbol name followed by C symbol from nm.
6884 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6885 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 # These are sane defaults that work on at least a few old systems.
6891 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6893 # Character class describing NM global symbol codes.
6894 symcode='[BCDEGRST]'
6896 # Regexp to match symbols that can be accessed directly from C.
6897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6899 # Define system-specific variables.
6904 cygwin* | mingw* | pw32* | cegcc*)
6905 symcode='[ABCDGISTW]'
6908 if test "$host_cpu" = ia64; then
6909 symcode='[ABCDEGRST]'
6913 symcode='[BCDEGRST]'
6916 symcode='[BCDEGQRST]'
6927 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6935 # If we're using GNU nm, then use its standard symbol codes.
6936 case `$NM -V 2>&1` in
6937 *GNU* | *'with BFD'*)
6938 symcode='[ABCDGIRSTW]' ;;
6941 # Transform an extracted symbol line into a proper C declaration.
6942 # Some systems (esp. on ia64) link data and code symbols differently,
6943 # so use this general approach.
6944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6946 # Transform an extracted symbol line into symbol name and symbol address
6947 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6948 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'"
6950 # Handle CRLF in mingw tool chain
6954 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6958 # Try without a prefix underscore, then with it.
6959 for ac_symprfx in "" "_"; do
6961 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6962 symxfrm="\\1 $ac_symprfx\\2 \\2"
6964 # Write the raw and C identifiers.
6965 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6966 # Fake it for dumpbin and say T for any non-static function
6967 # and D for any global variable.
6968 # Also find C++ and __fastcall symbols from MSVC++,
6969 # which start with @ or ?.
6970 lt_cv_sys_global_symbol_pipe="$AWK '"\
6971 " {last_section=section; section=\$ 3};"\
6972 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6973 " \$ 0!~/External *\|/{next};"\
6974 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6975 " {if(hide[section]) next};"\
6976 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6977 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6978 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6979 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6980 " ' prfx=^$ac_symprfx"
6982 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6985 # Check to see that the pipe works correctly.
6989 cat > conftest.$ac_ext <<_LT_EOF
6994 void nm_test_func(void);
6995 void nm_test_func(void){}
6999 int main(){nm_test_var='a';nm_test_func();return(0);}
7002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003 (eval $ac_compile) 2>&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; then
7007 # Now try to grab the symbols.
7009 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7010 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && test -s "$nlist"; then
7014 # Try sorting and uniquifying the output.
7015 if sort "$nlist" | uniq > "$nlist"T; then
7016 mv -f "$nlist"T "$nlist"
7021 # Make sure that we snagged all the symbols we need.
7022 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7023 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7024 cat <<_LT_EOF > conftest.$ac_ext
7030 # Now generate the symbol file.
7031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7033 cat <<_LT_EOF >> conftest.$ac_ext
7035 /* The mapping between symbol names and symbols. */
7040 lt__PROGRAM__LTX_preloaded_symbols[] =
7042 { "@PROGRAM@", (void *) 0 },
7044 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7045 cat <<\_LT_EOF >> conftest.$ac_ext
7049 /* This works around a problem in FreeBSD linker */
7050 #ifdef FREEBSD_WORKAROUND
7051 static const void *lt_preloaded_setup() {
7052 return lt__PROGRAM__LTX_preloaded_symbols;
7060 # Now try linking the two files.
7061 mv conftest.$ac_objext conftstm.$ac_objext
7062 lt_save_LIBS="$LIBS"
7063 lt_save_CFLAGS="$CFLAGS"
7064 LIBS="conftstm.$ac_objext"
7065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7067 (eval $ac_link) 2>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7073 LIBS="$lt_save_LIBS"
7074 CFLAGS="$lt_save_CFLAGS"
7076 echo "cannot find nm_test_func in $nlist" >&5
7079 echo "cannot find nm_test_var in $nlist" >&5
7082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7085 echo "$progname: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7088 rm -rf conftest* conftst*
7090 # Do not use the global_symbol_pipe unless it works.
7091 if test "$pipe_works" = yes; then
7094 lt_cv_sys_global_symbol_pipe=
7100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7101 lt_cv_sys_global_symbol_to_cdecl=
7103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7104 { echo "$as_me:$LINENO: result: failed" >&5
7105 echo "${ECHO_T}failed" >&6; }
7107 { echo "$as_me:$LINENO: result: ok" >&5
7108 echo "${ECHO_T}ok" >&6; }
7132 # Check whether --enable-libtool-lock was given.
7133 if test "${enable_libtool_lock+set}" = set; then
7134 enableval=$enable_libtool_lock;
7137 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7139 # Some flags need to be propagated to the compiler or linker for good
7143 # Find out which ABI we are using.
7144 echo 'int i;' > conftest.$ac_ext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146 (eval $ac_compile) 2>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; then
7150 case `/usr/bin/file conftest.$ac_objext` in
7162 # Find out which ABI we are using.
7163 echo '#line 7163 "configure"' > conftest.$ac_ext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165 (eval $ac_compile) 2>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; then
7169 if test "$lt_cv_prog_gnu_ld" = yes; then
7170 case `/usr/bin/file conftest.$ac_objext` in
7172 LD="${LD-ld} -melf32bsmip"
7175 LD="${LD-ld} -melf32bmipn32"
7178 LD="${LD-ld} -melf64bmip"
7182 case `/usr/bin/file conftest.$ac_objext` in
7198 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7199 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7200 # Find out which ABI we are using.
7201 echo 'int i;' > conftest.$ac_ext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203 (eval $ac_compile) 2>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; then
7207 case `/usr/bin/file conftest.o` in
7210 x86_64-*kfreebsd*-gnu)
7211 LD="${LD-ld} -m elf_i386_fbsd"
7214 LD="${LD-ld} -m elf_i386"
7216 ppc64-*linux*|powerpc64-*linux*)
7217 LD="${LD-ld} -m elf32ppclinux"
7220 LD="${LD-ld} -m elf_s390"
7223 LD="${LD-ld} -m elf32_sparc"
7229 x86_64-*kfreebsd*-gnu)
7230 LD="${LD-ld} -m elf_x86_64_fbsd"
7233 LD="${LD-ld} -m elf_x86_64"
7235 ppc*-*linux*|powerpc*-*linux*)
7236 LD="${LD-ld} -m elf64ppc"
7238 s390*-*linux*|s390*-*tpf*)
7239 LD="${LD-ld} -m elf64_s390"
7242 LD="${LD-ld} -m elf64_sparc"
7252 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7253 SAVE_CFLAGS="$CFLAGS"
7254 CFLAGS="$CFLAGS -belf"
7255 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7256 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7257 if test "${lt_cv_cc_needs_belf+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 ac_cpp='$CPP $CPPFLAGS'
7262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7281 rm -f conftest.$ac_objext conftest$ac_exeext
7282 if { (ac_try="$ac_link"
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_link") 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest$ac_exeext &&
7298 $as_test_x conftest$ac_exeext; then
7299 lt_cv_cc_needs_belf=yes
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 lt_cv_cc_needs_belf=no
7307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7308 conftest$ac_exeext conftest.$ac_ext
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7317 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7318 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7319 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7320 CFLAGS="$SAVE_CFLAGS"
7324 # Find out which ABI we are using.
7325 echo 'int i;' > conftest.$ac_ext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327 (eval $ac_compile) 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; then
7331 case `/usr/bin/file conftest.o` in
7333 case $lt_cv_prog_gnu_ld in
7334 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7336 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7348 need_locks="$enable_libtool_lock"
7352 rhapsody* | darwin*)
7353 if test -n "$ac_tool_prefix"; then
7354 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 if test -n "$DSYMUTIL"; then
7362 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7382 if test -n "$DSYMUTIL"; then
7383 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7384 echo "${ECHO_T}$DSYMUTIL" >&6; }
7386 { echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6; }
7392 if test -z "$ac_cv_prog_DSYMUTIL"; then
7393 ac_ct_DSYMUTIL=$DSYMUTIL
7394 # Extract the first word of "dsymutil", so it can be a program name with args.
7395 set dummy dsymutil; ac_word=$2
7396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 if test -n "$ac_ct_DSYMUTIL"; then
7402 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7422 if test -n "$ac_ct_DSYMUTIL"; then
7423 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7424 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7430 if test "x$ac_ct_DSYMUTIL" = x; then
7433 case $cross_compiling:$ac_tool_warned in
7435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7436 whose name does not start with the host triplet. If you think this
7437 configuration is useful to you, please write to autoconf@gnu.org." >&5
7438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7439 whose name does not start with the host triplet. If you think this
7440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7441 ac_tool_warned=yes ;;
7443 DSYMUTIL=$ac_ct_DSYMUTIL
7446 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7449 if test -n "$ac_tool_prefix"; then
7450 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 if test -n "$NMEDIT"; then
7458 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 NMEDIT=$ac_cv_prog_NMEDIT
7478 if test -n "$NMEDIT"; then
7479 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7480 echo "${ECHO_T}$NMEDIT" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7488 if test -z "$ac_cv_prog_NMEDIT"; then
7489 ac_ct_NMEDIT=$NMEDIT
7490 # Extract the first word of "nmedit", so it can be a program name with args.
7491 set dummy nmedit; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 if test -n "$ac_ct_NMEDIT"; then
7498 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7518 if test -n "$ac_ct_NMEDIT"; then
7519 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7520 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7526 if test "x$ac_ct_NMEDIT" = x; then
7529 case $cross_compiling:$ac_tool_warned in
7531 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7532 whose name does not start with the host triplet. If you think this
7533 configuration is useful to you, please write to autoconf@gnu.org." >&5
7534 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7535 whose name does not start with the host triplet. If you think this
7536 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7537 ac_tool_warned=yes ;;
7539 NMEDIT=$ac_ct_NMEDIT
7542 NMEDIT="$ac_cv_prog_NMEDIT"
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_prog_LIPO+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 if test -n "$LIPO"; then
7554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 LIPO=$ac_cv_prog_LIPO
7574 if test -n "$LIPO"; then
7575 { echo "$as_me:$LINENO: result: $LIPO" >&5
7576 echo "${ECHO_T}$LIPO" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7584 if test -z "$ac_cv_prog_LIPO"; then
7586 # Extract the first word of "lipo", so it can be a program name with args.
7587 set dummy lipo; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 if test -n "$ac_ct_LIPO"; then
7594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_ac_ct_LIPO="lipo"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7614 if test -n "$ac_ct_LIPO"; then
7615 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7616 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7622 if test "x$ac_ct_LIPO" = x; then
7625 case $cross_compiling:$ac_tool_warned in
7627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7628 whose name does not start with the host triplet. If you think this
7629 configuration is useful to you, please write to autoconf@gnu.org." >&5
7630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7631 whose name does not start with the host triplet. If you think this
7632 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7633 ac_tool_warned=yes ;;
7638 LIPO="$ac_cv_prog_LIPO"
7641 if test -n "$ac_tool_prefix"; then
7642 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}otool; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_prog_OTOOL+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 if test -n "$OTOOL"; then
7650 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 OTOOL=$ac_cv_prog_OTOOL
7670 if test -n "$OTOOL"; then
7671 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7672 echo "${ECHO_T}$OTOOL" >&6; }
7674 { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7680 if test -z "$ac_cv_prog_OTOOL"; then
7682 # Extract the first word of "otool", so it can be a program name with args.
7683 set dummy otool; ac_word=$2
7684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 if test -n "$ac_ct_OTOOL"; then
7690 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_prog_ac_ct_OTOOL="otool"
7700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7710 if test -n "$ac_ct_OTOOL"; then
7711 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7712 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7714 { echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6; }
7718 if test "x$ac_ct_OTOOL" = x; then
7721 case $cross_compiling:$ac_tool_warned in
7723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7724 whose name does not start with the host triplet. If you think this
7725 configuration is useful to you, please write to autoconf@gnu.org." >&5
7726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7727 whose name does not start with the host triplet. If you think this
7728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7729 ac_tool_warned=yes ;;
7734 OTOOL="$ac_cv_prog_OTOOL"
7737 if test -n "$ac_tool_prefix"; then
7738 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7739 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 if test -n "$OTOOL64"; then
7746 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 OTOOL64=$ac_cv_prog_OTOOL64
7766 if test -n "$OTOOL64"; then
7767 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7768 echo "${ECHO_T}$OTOOL64" >&6; }
7770 { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7776 if test -z "$ac_cv_prog_OTOOL64"; then
7777 ac_ct_OTOOL64=$OTOOL64
7778 # Extract the first word of "otool64", so it can be a program name with args.
7779 set dummy otool64; ac_word=$2
7780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 if test -n "$ac_ct_OTOOL64"; then
7786 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_ac_ct_OTOOL64="otool64"
7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7806 if test -n "$ac_ct_OTOOL64"; then
7807 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7808 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7810 { echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6; }
7814 if test "x$ac_ct_OTOOL64" = x; then
7817 case $cross_compiling:$ac_tool_warned in
7819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7820 whose name does not start with the host triplet. If you think this
7821 configuration is useful to you, please write to autoconf@gnu.org." >&5
7822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7823 whose name does not start with the host triplet. If you think this
7824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7825 ac_tool_warned=yes ;;
7827 OTOOL64=$ac_ct_OTOOL64
7830 OTOOL64="$ac_cv_prog_OTOOL64"
7859 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7860 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7861 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 lt_cv_apple_cc_single_mod=no
7865 if test -z "${LT_MULTI_MODULE}"; then
7866 # By default we will add the -single_module flag. You can override
7867 # by either setting the environment variable LT_MULTI_MODULE
7868 # non-empty at configure time, or by adding -multi_module to the
7870 rm -rf libconftest.dylib*
7871 echo "int foo(void){return 1;}" > conftest.c
7872 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873 -dynamiclib -Wl,-single_module conftest.c" >&5
7874 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7875 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7877 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7878 lt_cv_apple_cc_single_mod=yes
7880 cat conftest.err >&5
7882 rm -rf libconftest.dylib*
7886 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7887 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7888 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7889 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7890 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 lt_cv_ld_exported_symbols_list=no
7894 save_LDFLAGS=$LDFLAGS
7895 echo "_main" > conftest.sym
7896 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (ac_try="$ac_link"
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_link") 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } && {
7926 test -z "$ac_c_werror_flag" ||
7927 test ! -s conftest.err
7928 } && test -s conftest$ac_exeext &&
7929 $as_test_x conftest$ac_exeext; then
7930 lt_cv_ld_exported_symbols_list=yes
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 lt_cv_ld_exported_symbols_list=no
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7939 conftest$ac_exeext conftest.$ac_ext
7940 LDFLAGS="$save_LDFLAGS"
7943 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7944 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7946 rhapsody* | darwin1.[012])
7947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7950 darwin*) # darwin 5.x on
7951 # if running on 10.5 or later, the deployment target defaults
7952 # to the OS version, if on x86, and 10.4, the deployment
7953 # target defaults to 10.4. Don't you love it?
7954 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7955 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7965 _lt_dar_single_mod='$single_module'
7967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7972 if test "$DSYMUTIL" != ":"; then
7973 _lt_dsymutil='~$DSYMUTIL $lib || :'
7980 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7982 if test "${ac_cv_header_stdc+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 cat >conftest.$ac_ext <<_ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8013 grep -v '^ *+' conftest.er1 >conftest.err
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_cv_header_stdc=yes
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 ac_cv_header_stdc=no
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 if test $ac_cv_header_stdc = yes; then
8032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8033 cat >conftest.$ac_ext <<_ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8043 $EGREP "memchr" >/dev/null 2>&1; then
8046 ac_cv_header_stdc=no
8052 if test $ac_cv_header_stdc = yes; then
8053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8064 $EGREP "free" >/dev/null 2>&1; then
8067 ac_cv_header_stdc=no
8073 if test $ac_cv_header_stdc = yes; then
8074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8075 if test "$cross_compiling" = yes; then
8078 cat >conftest.$ac_ext <<_ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8086 #if ((' ' & 0x0FF) == 0x020)
8087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8090 # define ISLOWER(c) \
8091 (('a' <= (c) && (c) <= 'i') \
8092 || ('j' <= (c) && (c) <= 'r') \
8093 || ('s' <= (c) && (c) <= 'z'))
8094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8102 for (i = 0; i < 256; i++)
8103 if (XOR (islower (i), ISLOWER (i))
8104 || toupper (i) != TOUPPER (i))
8109 rm -f conftest$ac_exeext
8110 if { (ac_try="$ac_link"
8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113 *) ac_try_echo=$ac_try;;
8115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116 (eval "$ac_link") 2>&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8120 { (case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_try") 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8131 echo "$as_me: program exited with status $ac_status" >&5
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_cv_header_stdc=no
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8144 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8145 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8146 if test $ac_cv_header_stdc = yes; then
8148 cat >>confdefs.h <<\_ACEOF
8149 #define STDC_HEADERS 1
8154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8165 inttypes.h stdint.h unistd.h
8167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 cat >conftest.$ac_ext <<_ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 $ac_includes_default
8181 #include <$ac_header>
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest.$ac_objext; then
8200 eval "$as_ac_Header=yes"
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 eval "$as_ac_Header=no"
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 ac_res=`eval echo '${'$as_ac_Header'}'`
8211 { echo "$as_me:$LINENO: result: $ac_res" >&5
8212 echo "${ECHO_T}$ac_res" >&6; }
8213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8214 cat >>confdefs.h <<_ACEOF
8215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8224 for ac_header in dlfcn.h
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 $ac_includes_default
8240 #include <$ac_header>
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest.$ac_objext; then
8259 eval "$as_ac_Header=yes"
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 eval "$as_ac_Header=no"
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270 { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273 cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8284 ac_cpp='$CXXCPP $CPPFLAGS'
8285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8288 if test -z "$CXX"; then
8289 if test -n "$CCC"; then
8292 if test -n "$ac_tool_prefix"; then
8293 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8299 if test "${ac_cv_prog_CXX+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 if test -n "$CXX"; then
8303 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 if test -n "$CXX"; then
8324 { echo "$as_me:$LINENO: result: $CXX" >&5
8325 echo "${ECHO_T}$CXX" >&6; }
8327 { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8332 test -n "$CXX" && break
8335 if test -z "$CXX"; then
8337 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8339 # Extract the first word of "$ac_prog", so it can be a program name with args.
8340 set dummy $ac_prog; ac_word=$2
8341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8343 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 if test -n "$ac_ct_CXX"; then
8347 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_ac_ct_CXX="$ac_prog"
8357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8367 if test -n "$ac_ct_CXX"; then
8368 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8369 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8371 { echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6; }
8376 test -n "$ac_ct_CXX" && break
8379 if test "x$ac_ct_CXX" = x; then
8382 case $cross_compiling:$ac_tool_warned in
8384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8385 whose name does not start with the host triplet. If you think this
8386 configuration is useful to you, please write to autoconf@gnu.org." >&5
8387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8388 whose name does not start with the host triplet. If you think this
8389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8390 ac_tool_warned=yes ;;
8398 # Provide some information about the compiler.
8399 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8400 ac_compiler=`set X $ac_compile; echo $2`
8401 { (ac_try="$ac_compiler --version >&5"
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compiler --version >&5") 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }
8411 { (ac_try="$ac_compiler -v >&5"
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_compiler -v >&5") 2>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }
8421 { (ac_try="$ac_compiler -V >&5"
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compiler -V >&5") 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }
8432 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8433 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8434 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8455 rm -f conftest.$ac_objext
8456 if { (ac_try="$ac_compile"
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_compile") 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_cxx_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest.$ac_objext; then
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8484 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8485 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8486 GXX=`test $ac_compiler_gnu = yes && echo yes`
8487 ac_test_CXXFLAGS=${CXXFLAGS+set}
8488 ac_save_CXXFLAGS=$CXXFLAGS
8489 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8490 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8491 if test "${ac_cv_prog_cxx_g+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8495 ac_cxx_werror_flag=yes
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_cxx_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.$ac_objext; then
8530 ac_cv_prog_cxx_g=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8551 rm -f conftest.$ac_objext
8552 if { (ac_try="$ac_compile"
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_compile") 2>conftest.er1
8560 grep -v '^ *+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && {
8565 test -z "$ac_cxx_werror_flag" ||
8566 test ! -s conftest.err
8567 } && test -s conftest.$ac_objext; then
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_compile") 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } && {
8604 test -z "$ac_cxx_werror_flag" ||
8605 test ! -s conftest.err
8606 } && test -s conftest.$ac_objext; then
8607 ac_cv_prog_cxx_g=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8625 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8626 if test "$ac_test_CXXFLAGS" = set; then
8627 CXXFLAGS=$ac_save_CXXFLAGS
8628 elif test $ac_cv_prog_cxx_g = yes; then
8629 if test "$GXX" = yes; then
8635 if test "$GXX" = yes; then
8642 ac_cpp='$CPP $CPPFLAGS'
8643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8647 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8648 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8649 (test "X$CXX" != "Xg++"))) ; then
8651 ac_cpp='$CXXCPP $CPPFLAGS'
8652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8655 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8656 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8657 if test -z "$CXXCPP"; then
8658 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 # Double quotes because CXXCPP needs to be expanded
8662 for CXXCPP in "$CXX -E" "/lib/cpp"
8665 for ac_cxx_preproc_warn_flag in '' yes
8667 # Use a header file that comes with gcc, so configuring glibc
8668 # with a fresh cross-compiler works.
8669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8670 # <limits.h> exists even on freestanding compilers.
8671 # On the NeXT, cc -E runs the code through the compiler's parser,
8672 # not just through cpp. "Syntax error" is here to catch this case.
8673 cat >conftest.$ac_ext <<_ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8680 # include <limits.h>
8682 # include <assert.h>
8686 if { (ac_try="$ac_cpp conftest.$ac_ext"
8688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689 *) ac_try_echo=$ac_try;;
8691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8694 grep -v '^ *+' conftest.er1 >conftest.err
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } >/dev/null && {
8699 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8700 test ! -s conftest.err
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 # Broken: fails on valid input.
8711 rm -f conftest.err conftest.$ac_ext
8713 # OK, works on sane cases. Now check whether nonexistent headers
8714 # can be detected and how.
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 #include <ac_nonexistent.h>
8723 if { (ac_try="$ac_cpp conftest.$ac_ext"
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } >/dev/null && {
8736 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8737 test ! -s conftest.err
8739 # Broken: success on invalid input.
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 # Passes both tests.
8750 rm -f conftest.err conftest.$ac_ext
8753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8754 rm -f conftest.err conftest.$ac_ext
8755 if $ac_preproc_ok; then
8760 ac_cv_prog_CXXCPP=$CXXCPP
8763 CXXCPP=$ac_cv_prog_CXXCPP
8765 ac_cv_prog_CXXCPP=$CXXCPP
8767 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8768 echo "${ECHO_T}$CXXCPP" >&6; }
8770 for ac_cxx_preproc_warn_flag in '' yes
8772 # Use a header file that comes with gcc, so configuring glibc
8773 # with a fresh cross-compiler works.
8774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8775 # <limits.h> exists even on freestanding compilers.
8776 # On the NeXT, cc -E runs the code through the compiler's parser,
8777 # not just through cpp. "Syntax error" is here to catch this case.
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8785 # include <limits.h>
8787 # include <assert.h>
8791 if { (ac_try="$ac_cpp conftest.$ac_ext"
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8799 grep -v '^ *+' conftest.er1 >conftest.err
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } >/dev/null && {
8804 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8805 test ! -s conftest.err
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 # Broken: fails on valid input.
8816 rm -f conftest.err conftest.$ac_ext
8818 # OK, works on sane cases. Now check whether nonexistent headers
8819 # can be detected and how.
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 #include <ac_nonexistent.h>
8828 if { (ac_try="$ac_cpp conftest.$ac_ext"
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8836 grep -v '^ *+' conftest.er1 >conftest.err
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } >/dev/null && {
8841 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8842 test ! -s conftest.err
8844 # Broken: success on invalid input.
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 # Passes both tests.
8855 rm -f conftest.err conftest.$ac_ext
8858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8859 rm -f conftest.err conftest.$ac_ext
8860 if $ac_preproc_ok; then
8863 _lt_caught_CXX_error=yes
8867 ac_cpp='$CPP $CPPFLAGS'
8868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873 _lt_caught_CXX_error=yes
8881 # Check whether --enable-shared was given.
8882 if test "${enable_shared+set}" = set; then
8883 enableval=$enable_shared; p=${PACKAGE-default}
8885 yes) enable_shared=yes ;;
8886 no) enable_shared=no ;;
8889 # Look at the argument we got. We use all the common list separators.
8890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8891 for pkg in $enableval; do
8893 if test "X$pkg" = "X$p"; then
8910 # Check whether --enable-static was given.
8911 if test "${enable_static+set}" = set; then
8912 enableval=$enable_static; p=${PACKAGE-default}
8914 yes) enable_static=yes ;;
8915 no) enable_static=no ;;
8918 # Look at the argument we got. We use all the common list separators.
8919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8920 for pkg in $enableval; do
8922 if test "X$pkg" = "X$p"; then
8951 # Check whether --with-pic was given.
8952 if test "${with_pic+set}" = set; then
8953 withval=$with_pic; pic_mode="$withval"
8959 test -z "$pic_mode" && pic_mode=default
8967 # Check whether --enable-fast-install was given.
8968 if test "${enable_fast_install+set}" = set; then
8969 enableval=$enable_fast_install; p=${PACKAGE-default}
8971 yes) enable_fast_install=yes ;;
8972 no) enable_fast_install=no ;;
8974 enable_fast_install=no
8975 # Look at the argument we got. We use all the common list separators.
8976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8977 for pkg in $enableval; do
8979 if test "X$pkg" = "X$p"; then
8980 enable_fast_install=yes
8987 enable_fast_install=yes
9000 # This can be used to rebuild libtool when needed
9001 LIBTOOL_DEPS="$ltmain"
9003 # Always use our own libtool.
9004 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9030 test -z "$LN_S" && LN_S="ln -s"
9045 if test -n "${ZSH_VERSION+set}" ; then
9046 setopt NO_GLOB_SUBST
9049 { echo "$as_me:$LINENO: checking for objdir" >&5
9050 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9051 if test "${lt_cv_objdir+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 rm -f .libs 2>/dev/null
9055 mkdir .libs 2>/dev/null
9056 if test -d .libs; then
9059 # MS-DOS does not allow filenames that begin with a dot.
9062 rmdir .libs 2>/dev/null
9064 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9065 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9066 objdir=$lt_cv_objdir
9072 cat >>confdefs.h <<_ACEOF
9073 #define LT_OBJDIR "$lt_cv_objdir/"
9094 # AIX sometimes has problems with the GCC collect2 program. For some
9095 # reason, if we set the COLLECT_NAMES environment variable, the problems
9096 # vanish in a puff of smoke.
9097 if test "X${COLLECT_NAMES+set}" != Xset; then
9099 export COLLECT_NAMES
9104 # Sed substitution that helps us do robust quoting. It backslashifies
9105 # metacharacters that are still active within double-quoted strings.
9106 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9108 # Same as above, but do not quote variable references.
9109 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9111 # Sed substitution to delay expansion of an escaped shell variable in a
9112 # double_quote_subst'ed string.
9113 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9115 # Sed substitution to delay expansion of an escaped single quote.
9116 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9118 # Sed substitution to avoid accidental globbing in evaled expressions
9119 no_glob_subst='s/\*/\\\*/g'
9123 can_build_shared=yes
9125 # All known linkers require a `.a' archive for static linking (except MSVC,
9126 # which needs '.lib').
9129 with_gnu_ld="$lt_cv_prog_gnu_ld"
9132 old_CFLAGS="$CFLAGS"
9134 # Set sane defaults for various variables
9135 test -z "$CC" && CC=cc
9136 test -z "$LTCC" && LTCC=$CC
9137 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9138 test -z "$LD" && LD=ld
9139 test -z "$ac_objext" && ac_objext=o
9141 for cc_temp in $compiler""; do
9143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9149 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9152 # Only perform the check for file, if the check method requires it
9153 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9154 case $deplibs_check_method in
9156 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9157 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9158 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9159 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9167 lt_save_MAGIC_CMD="$MAGIC_CMD"
9168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9169 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9170 for ac_dir in $ac_dummy; do
9172 test -z "$ac_dir" && ac_dir=.
9173 if test -f $ac_dir/${ac_tool_prefix}file; then
9174 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9175 if test -n "$file_magic_test_file"; then
9176 case $deplibs_check_method in
9178 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9180 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9181 $EGREP "$file_magic_regex" > /dev/null; then
9186 *** Warning: the command libtool uses to detect shared libraries,
9187 *** $file_magic_cmd, produces output that libtool cannot recognize.
9188 *** The result is that libtool may fail to recognize shared libraries
9189 *** as such. This will affect the creation of libtool libraries that
9190 *** depend on shared libraries, but programs linked with such libtool
9191 *** libraries will work regardless of this problem. Nevertheless, you
9192 *** may want to report the problem to your system manager and/or to
9193 *** bug-libtool@gnu.org
9203 MAGIC_CMD="$lt_save_MAGIC_CMD"
9208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9209 if test -n "$MAGIC_CMD"; then
9210 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9211 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9213 { echo "$as_me:$LINENO: result: no" >&5
9214 echo "${ECHO_T}no" >&6; }
9221 if test -z "$lt_cv_path_MAGIC_CMD"; then
9222 if test -n "$ac_tool_prefix"; then
9223 { echo "$as_me:$LINENO: checking for file" >&5
9224 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9225 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9233 lt_save_MAGIC_CMD="$MAGIC_CMD"
9234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9235 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9236 for ac_dir in $ac_dummy; do
9238 test -z "$ac_dir" && ac_dir=.
9239 if test -f $ac_dir/file; then
9240 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9241 if test -n "$file_magic_test_file"; then
9242 case $deplibs_check_method in
9244 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9246 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9247 $EGREP "$file_magic_regex" > /dev/null; then
9252 *** Warning: the command libtool uses to detect shared libraries,
9253 *** $file_magic_cmd, produces output that libtool cannot recognize.
9254 *** The result is that libtool may fail to recognize shared libraries
9255 *** as such. This will affect the creation of libtool libraries that
9256 *** depend on shared libraries, but programs linked with such libtool
9257 *** libraries will work regardless of this problem. Nevertheless, you
9258 *** may want to report the problem to your system manager and/or to
9259 *** bug-libtool@gnu.org
9269 MAGIC_CMD="$lt_save_MAGIC_CMD"
9274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9275 if test -n "$MAGIC_CMD"; then
9276 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9277 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9279 { echo "$as_me:$LINENO: result: no" >&5
9280 echo "${ECHO_T}no" >&6; }
9293 # Use C for the default configuration in the libtool script
9297 ac_cpp='$CPP $CPPFLAGS'
9298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303 # Source file extension for C test sources.
9306 # Object file extension for compiled C test sources.
9310 # Code to be used in simple compile tests
9311 lt_simple_compile_test_code="int some_variable = 0;"
9313 # Code to be used in simple link tests
9314 lt_simple_link_test_code='int main(){return(0);}'
9322 # If no C compiler was specified, use CC.
9325 # If no C compiler flags were specified, use CFLAGS.
9326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9328 # Allow CC to be a program name with arguments.
9331 # Save the default compiler, since it gets overwritten when the other
9332 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9333 compiler_DEFAULT=$CC
9335 # save warnings/boilerplate of simple test code
9336 ac_outfile=conftest.$ac_objext
9337 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9339 _lt_compiler_boilerplate=`cat conftest.err`
9342 ac_outfile=conftest.$ac_objext
9343 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9345 _lt_linker_boilerplate=`cat conftest.err`
9350 ## There is no encapsulation within the following macros, do not change
9351 ## the running order or otherwise move them around unless you know exactly
9352 ## what you are doing...
9353 if test -n "$compiler"; then
9355 lt_prog_compiler_no_builtin_flag=
9357 if test "$GCC" = yes; then
9358 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9360 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9361 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9362 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 lt_cv_prog_compiler_rtti_exceptions=no
9366 ac_outfile=conftest.$ac_objext
9367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368 lt_compiler_flag="-fno-rtti -fno-exceptions"
9369 # Insert the option either (1) after the last *FLAGS variable, or
9370 # (2) before a word containing "conftest.", or (3) at the end.
9371 # Note that $ac_compile itself does not contain backslashes and begins
9372 # with a dollar sign (not a hyphen), so the echo should work correctly.
9373 # The option is referenced via a variable to avoid confusing sed.
9374 lt_compile=`echo "$ac_compile" | $SED \
9375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377 -e 's:$: $lt_compiler_flag:'`
9378 (eval echo "\"\$as_me:9378: $lt_compile\"" >&5)
9379 (eval "$lt_compile" 2>conftest.err)
9381 cat conftest.err >&5
9382 echo "$as_me:9382: \$? = $ac_status" >&5
9383 if (exit $ac_status) && test -s "$ac_outfile"; then
9384 # The compiler can only warn and ignore the option if not recognized
9385 # So say no if there are warnings other than the usual output.
9386 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9389 lt_cv_prog_compiler_rtti_exceptions=yes
9395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9396 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9398 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9399 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9411 lt_prog_compiler_wl=
9412 lt_prog_compiler_pic=
9413 lt_prog_compiler_static=
9415 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9416 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9418 if test "$GCC" = yes; then
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_static='-static'
9424 # All AIX code is PIC.
9425 if test "$host_cpu" = ia64; then
9426 # AIX 5 now supports IA64 processor
9427 lt_prog_compiler_static='-Bstatic'
9434 # see comment about AmigaOS4 .so support
9435 lt_prog_compiler_pic='-fPIC'
9438 # FIXME: we need at least 68020 code to build shared libraries, but
9439 # adding the `-m68020' flag to GCC prevents building anything better,
9441 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9447 # PIC is the default for these OSes.
9450 mingw* | cygwin* | pw32* | os2* | cegcc*)
9451 # This hack is so that the source file can tell whether it is being
9452 # built for inclusion in a dll (and should export symbols for example).
9453 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9454 # (--disable-auto-import) libraries
9455 lt_prog_compiler_pic='-DDLL_EXPORT'
9458 darwin* | rhapsody*)
9459 # PIC is the default on this platform
9460 # Common symbols not allowed in MH_DYLIB files
9461 lt_prog_compiler_pic='-fno-common'
9465 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9466 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9467 # sets the default TLS model and affects inlining.
9473 lt_prog_compiler_pic='-fPIC'
9479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9480 # Instead, we relocate shared libraries at runtime.
9484 # Just because we use GCC doesn't mean we suddenly get shared libraries
9485 # on systems that don't support them.
9486 lt_prog_compiler_can_build_shared=no
9491 # QNX uses GNU C++, but need to define -shared option too, otherwise
9493 lt_prog_compiler_pic='-fPIC -shared'
9497 if test -d /usr/nec; then
9498 lt_prog_compiler_pic=-Kconform_pic
9503 lt_prog_compiler_pic='-fPIC'
9507 # PORTME Check for flag to pass linker flags through the system compiler.
9510 lt_prog_compiler_wl='-Wl,'
9511 if test "$host_cpu" = ia64; then
9512 # AIX 5 now supports IA64 processor
9513 lt_prog_compiler_static='-Bstatic'
9515 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9519 mingw* | cygwin* | pw32* | os2* | cegcc*)
9520 # This hack is so that the source file can tell whether it is being
9521 # built for inclusion in a dll (and should export symbols for example).
9522 lt_prog_compiler_pic='-DDLL_EXPORT'
9525 hpux9* | hpux10* | hpux11*)
9526 lt_prog_compiler_wl='-Wl,'
9527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9534 lt_prog_compiler_pic='+Z'
9537 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9538 lt_prog_compiler_static='${wl}-a ${wl}archive'
9541 irix5* | irix6* | nonstopux*)
9542 lt_prog_compiler_wl='-Wl,'
9543 # PIC (with -KPIC) is the default.
9544 lt_prog_compiler_static='-non_shared'
9547 linux* | k*bsd*-gnu)
9548 case $cc_basename in
9549 # old Intel for x86_64 which still supported -KPIC.
9551 lt_prog_compiler_wl='-Wl,'
9552 lt_prog_compiler_pic='-KPIC'
9553 lt_prog_compiler_static='-static'
9555 # icc used to be incompatible with GCC.
9556 # ICC 10 doesn't accept -KPIC any more.
9558 lt_prog_compiler_wl='-Wl,'
9559 lt_prog_compiler_pic='-fPIC'
9560 lt_prog_compiler_static='-static'
9562 # Lahey Fortran 8.1.
9564 lt_prog_compiler_wl='-Wl,'
9565 lt_prog_compiler_pic='--shared'
9566 lt_prog_compiler_static='--static'
9568 pgcc* | pgf77* | pgf90* | pgf95*)
9569 # Portland Group compilers (*not* the Pentium gcc compiler,
9570 # which looks to be a dead project)
9571 lt_prog_compiler_wl='-Wl,'
9572 lt_prog_compiler_pic='-fpic'
9573 lt_prog_compiler_static='-Bstatic'
9576 lt_prog_compiler_wl='-Wl,'
9577 # All Alpha code is PIC.
9578 lt_prog_compiler_static='-non_shared'
9581 # IBM XL C 8.0/Fortran 10.1 on PPC
9582 lt_prog_compiler_wl='-Wl,'
9583 lt_prog_compiler_pic='-qpic'
9584 lt_prog_compiler_static='-qstaticlink'
9587 case `$CC -V 2>&1 | sed 5q` in
9590 lt_prog_compiler_pic='-KPIC'
9591 lt_prog_compiler_static='-Bstatic'
9592 lt_prog_compiler_wl='-Wl,'
9595 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9596 lt_prog_compiler_pic='-KPIC'
9597 lt_prog_compiler_static='-Bstatic'
9598 lt_prog_compiler_wl=''
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-Bstatic'
9611 # QNX uses GNU C++, but need to define -shared option too, otherwise
9613 lt_prog_compiler_pic='-fPIC -shared'
9616 osf3* | osf4* | osf5*)
9617 lt_prog_compiler_wl='-Wl,'
9618 # All OSF/1 code is PIC.
9619 lt_prog_compiler_static='-non_shared'
9623 lt_prog_compiler_static='-non_shared'
9627 lt_prog_compiler_pic='-KPIC'
9628 lt_prog_compiler_static='-Bstatic'
9629 case $cc_basename in
9631 lt_prog_compiler_wl='-Qoption ld ';;
9633 lt_prog_compiler_wl='-Wl,';;
9638 lt_prog_compiler_wl='-Qoption ld '
9639 lt_prog_compiler_pic='-PIC'
9640 lt_prog_compiler_static='-Bstatic'
9643 sysv4 | sysv4.2uw2* | sysv4.3*)
9644 lt_prog_compiler_wl='-Wl,'
9645 lt_prog_compiler_pic='-KPIC'
9646 lt_prog_compiler_static='-Bstatic'
9650 if test -d /usr/nec ;then
9651 lt_prog_compiler_pic='-Kconform_pic'
9652 lt_prog_compiler_static='-Bstatic'
9656 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9657 lt_prog_compiler_wl='-Wl,'
9658 lt_prog_compiler_pic='-KPIC'
9659 lt_prog_compiler_static='-Bstatic'
9663 lt_prog_compiler_wl='-Wl,'
9664 lt_prog_compiler_can_build_shared=no
9668 lt_prog_compiler_pic='-pic'
9669 lt_prog_compiler_static='-Bstatic'
9673 lt_prog_compiler_can_build_shared=no
9679 # For platforms which do not support PIC, -DPIC is meaningless:
9681 lt_prog_compiler_pic=
9684 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9688 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9696 # Check to make sure the PIC flag actually works.
9698 if test -n "$lt_prog_compiler_pic"; then
9699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9701 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 lt_cv_prog_compiler_pic_works=no
9705 ac_outfile=conftest.$ac_objext
9706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9707 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9708 # Insert the option either (1) after the last *FLAGS variable, or
9709 # (2) before a word containing "conftest.", or (3) at the end.
9710 # Note that $ac_compile itself does not contain backslashes and begins
9711 # with a dollar sign (not a hyphen), so the echo should work correctly.
9712 # The option is referenced via a variable to avoid confusing sed.
9713 lt_compile=`echo "$ac_compile" | $SED \
9714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9716 -e 's:$: $lt_compiler_flag:'`
9717 (eval echo "\"\$as_me:9717: $lt_compile\"" >&5)
9718 (eval "$lt_compile" 2>conftest.err)
9720 cat conftest.err >&5
9721 echo "$as_me:9721: \$? = $ac_status" >&5
9722 if (exit $ac_status) && test -s "$ac_outfile"; then
9723 # The compiler can only warn and ignore the option if not recognized
9724 # So say no if there are warnings other than the usual output.
9725 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9728 lt_cv_prog_compiler_pic_works=yes
9734 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9735 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9737 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9738 case $lt_prog_compiler_pic in
9740 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9743 lt_prog_compiler_pic=
9744 lt_prog_compiler_can_build_shared=no
9755 # Check to make sure the static flag actually works.
9757 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9758 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9759 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9760 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 lt_cv_prog_compiler_static_works=no
9764 save_LDFLAGS="$LDFLAGS"
9765 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9766 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9768 # The linker can only warn and ignore the option if not recognized
9769 # So say no if there are warnings
9770 if test -s conftest.err; then
9771 # Append any errors to the config.log.
9772 cat conftest.err 1>&5
9773 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9775 if diff conftest.exp conftest.er2 >/dev/null; then
9776 lt_cv_prog_compiler_static_works=yes
9779 lt_cv_prog_compiler_static_works=yes
9783 LDFLAGS="$save_LDFLAGS"
9786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9787 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9789 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9792 lt_prog_compiler_static=
9801 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9802 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9803 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 lt_cv_prog_compiler_c_o=no
9807 $RM -r conftest 2>/dev/null
9811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9813 lt_compiler_flag="-o out/conftest2.$ac_objext"
9814 # Insert the option either (1) after the last *FLAGS variable, or
9815 # (2) before a word containing "conftest.", or (3) at the end.
9816 # Note that $ac_compile itself does not contain backslashes and begins
9817 # with a dollar sign (not a hyphen), so the echo should work correctly.
9818 lt_compile=`echo "$ac_compile" | $SED \
9819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9821 -e 's:$: $lt_compiler_flag:'`
9822 (eval echo "\"\$as_me:9822: $lt_compile\"" >&5)
9823 (eval "$lt_compile" 2>out/conftest.err)
9825 cat out/conftest.err >&5
9826 echo "$as_me:9826: \$? = $ac_status" >&5
9827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9829 # The compiler can only warn and ignore the option if not recognized
9830 # So say no if there are warnings
9831 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9834 lt_cv_prog_compiler_c_o=yes
9839 # SGI C++ compiler will create directory out/ii_files/ for
9840 # template instantiation
9841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9842 $RM out/* && rmdir out
9848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9849 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9856 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9858 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 lt_cv_prog_compiler_c_o=no
9862 $RM -r conftest 2>/dev/null
9866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9868 lt_compiler_flag="-o out/conftest2.$ac_objext"
9869 # Insert the option either (1) after the last *FLAGS variable, or
9870 # (2) before a word containing "conftest.", or (3) at the end.
9871 # Note that $ac_compile itself does not contain backslashes and begins
9872 # with a dollar sign (not a hyphen), so the echo should work correctly.
9873 lt_compile=`echo "$ac_compile" | $SED \
9874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876 -e 's:$: $lt_compiler_flag:'`
9877 (eval echo "\"\$as_me:9877: $lt_compile\"" >&5)
9878 (eval "$lt_compile" 2>out/conftest.err)
9880 cat out/conftest.err >&5
9881 echo "$as_me:9881: \$? = $ac_status" >&5
9882 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9884 # The compiler can only warn and ignore the option if not recognized
9885 # So say no if there are warnings
9886 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9887 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9888 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9889 lt_cv_prog_compiler_c_o=yes
9894 # SGI C++ compiler will create directory out/ii_files/ for
9895 # template instantiation
9896 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9897 $RM out/* && rmdir out
9903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9909 hard_links="nottested"
9910 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9911 # do not overwrite the value of need_locks provided by the user
9912 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9913 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9918 ln conftest.a conftest.b 2>&5 || hard_links=no
9919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9920 { echo "$as_me:$LINENO: result: $hard_links" >&5
9921 echo "${ECHO_T}$hard_links" >&6; }
9922 if test "$hard_links" = no; then
9923 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9924 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9936 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9937 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9940 allow_undefined_flag=
9941 always_export_symbols=no
9943 archive_expsym_cmds=
9944 compiler_needs_object=no
9945 enable_shared_with_static_runtimes=no
9946 export_dynamic_flag_spec=
9947 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9948 hardcode_automatic=no
9950 hardcode_direct_absolute=no
9951 hardcode_libdir_flag_spec=
9952 hardcode_libdir_flag_spec_ld=
9953 hardcode_libdir_separator=
9955 hardcode_shlibpath_var=unsupported
9957 link_all_deplibs=unknown
9960 old_archive_from_new_cmds=
9961 old_archive_from_expsyms_cmds=
9962 thread_safe_flag_spec=
9963 whole_archive_flag_spec=
9964 # include_expsyms should be a list of space-separated symbols to be *always*
9965 # included in the symbol list
9967 # exclude_expsyms can be an extended regexp of symbols to exclude
9968 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9969 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9970 # as well as any symbol that contains `d'.
9971 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9972 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9973 # platforms (ab)use it in PIC code, but their linkers get confused if
9974 # the symbol is explicitly referenced. Since portable code cannot
9975 # rely on this symbol name, it's probably fine to never include it in
9976 # preloaded symbol tables.
9977 # Exclude shared library initialization/finalization symbols.
9978 extract_expsyms_cmds=
9981 cygwin* | mingw* | pw32* | cegcc*)
9982 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9983 # When not using gcc, we currently assume that we are using
9984 # Microsoft Visual C++.
9985 if test "$GCC" != yes; then
9990 # we just hope/assume this is gcc and not c89 (= MSVC++)
9999 if test "$with_gnu_ld" = yes; then
10000 # If archive_cmds runs LD, not CC, wlarc should be empty
10003 # Set some defaults for GNU ld with shared library support. These
10004 # are reset later if shared libraries are not supported. Putting them
10005 # here allows them to be overridden if necessary.
10006 runpath_var=LD_RUN_PATH
10007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10008 export_dynamic_flag_spec='${wl}--export-dynamic'
10009 # ancient GNU ld didn't support --whole-archive et. al.
10010 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10011 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10013 whole_archive_flag_spec=
10015 supports_anon_versioning=no
10016 case `$LD -v 2>&1` in
10017 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10018 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10019 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10020 *\ 2.11.*) ;; # other 2.11 versions
10021 *) supports_anon_versioning=yes ;;
10024 # See if GNU ld supports shared libraries.
10027 # On AIX/PPC, the GNU linker is very broken
10028 if test "$host_cpu" != ia64; then
10032 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10033 *** to be unable to reliably create shared libraries on AIX.
10034 *** Therefore, libtool is disabling shared libraries support. If you
10035 *** really care for shared libraries, you may want to modify your PATH
10036 *** so that a non-GNU linker is found, and then restart.
10045 # see comment about AmigaOS4 .so support
10046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047 archive_expsym_cmds=''
10050 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)'
10051 hardcode_libdir_flag_spec='-L$libdir'
10052 hardcode_minus_L=yes
10058 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10059 allow_undefined_flag=unsupported
10060 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10061 # support --undefined. This deserves some investigation. FIXME
10062 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068 cygwin* | mingw* | pw32* | cegcc*)
10069 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10070 # as there is no search path for DLLs.
10071 hardcode_libdir_flag_spec='-L$libdir'
10072 allow_undefined_flag=unsupported
10073 always_export_symbols=no
10074 enable_shared_with_static_runtimes=yes
10075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10077 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10079 # If the export-symbols file already is a .def file (1st line
10080 # is EXPORTS), use it as is; otherwise, prepend...
10081 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10082 cp $export_symbols $output_objdir/$soname.def;
10084 echo EXPORTS > $output_objdir/$soname.def;
10085 cat $export_symbols >> $output_objdir/$soname.def;
10087 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10095 hardcode_shlibpath_var=no
10096 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10097 export_dynamic_flag_spec='${wl}-E'
10098 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10099 # Instead, shared libraries are loaded at an image base (0x10000000 by
10100 # default) and relocated if they conflict, which is a slow very memory
10101 # consuming and fragmenting process. To avoid this, we pick a random,
10102 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10103 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10105 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'
10108 gnu* | linux* | tpf* | k*bsd*-gnu)
10110 if test "$host_os" = linux-dietlibc; then
10111 case $cc_basename in
10112 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10115 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10116 && test "$tmp_diet" = no
10119 tmp_sharedflag='-shared'
10120 case $cc_basename,$host_cpu in
10121 pgcc*) # Portland Group C compiler
10122 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'
10123 tmp_addflag=' $pic_flag'
10125 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10126 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'
10127 tmp_addflag=' $pic_flag -Mnomain' ;;
10128 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10129 tmp_addflag=' -i_dynamic' ;;
10130 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10131 tmp_addflag=' -i_dynamic -nofor_main' ;;
10132 ifc* | ifort*) # Intel Fortran compiler
10133 tmp_addflag=' -nofor_main' ;;
10134 lf95*) # Lahey Fortran 8.1
10135 whole_archive_flag_spec=
10136 tmp_sharedflag='--shared' ;;
10137 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10138 tmp_sharedflag='-qmkshrobj'
10141 case `$CC -V 2>&1 | sed 5q` in
10142 *Sun\ C*) # Sun C 5.9
10143 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'
10144 compiler_needs_object=yes
10145 tmp_sharedflag='-G' ;;
10146 *Sun\ F*) # Sun Fortran 8.3
10147 tmp_sharedflag='-G' ;;
10149 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151 if test "x$supports_anon_versioning" = xyes; then
10152 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10153 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10154 echo "local: *; };" >> $output_objdir/$libname.ver~
10155 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10158 case $cc_basename in
10160 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10161 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10162 hardcode_libdir_flag_spec=
10163 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10164 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10165 if test "x$supports_anon_versioning" = xyes; then
10166 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10168 echo "local: *; };" >> $output_objdir/$libname.ver~
10169 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10180 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10189 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10194 *** create shared libraries on Solaris systems. Therefore, libtool
10195 *** is disabling shared libraries support. We urge you to upgrade GNU
10196 *** binutils to release 2.9.1 or newer. Another option is to modify
10197 *** your PATH or compiler configuration so that the native linker is
10198 *** used, and then restart.
10201 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10210 case `$LD -v 2>&1` in
10211 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10216 *** reliably create shared libraries on SCO systems. Therefore, libtool
10217 *** is disabling shared libraries support. We urge you to upgrade GNU
10218 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10219 *** your PATH or compiler configuration so that the native linker is
10220 *** used, and then restart.
10225 # For security reasons, it is highly recommended that you always
10226 # use absolute paths for naming shared libraries, and exclude the
10227 # DT_RUNPATH tag from executables and libraries. But doing so
10228 # requires that you compile everything twice, which is a pain.
10229 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10241 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_direct=yes
10244 hardcode_shlibpath_var=no
10248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10257 if test "$ld_shlibs" = no; then
10259 hardcode_libdir_flag_spec=
10260 export_dynamic_flag_spec=
10261 whole_archive_flag_spec=
10264 # PORTME fill in a description of your system's linker (not GNU ld)
10267 allow_undefined_flag=unsupported
10268 always_export_symbols=yes
10269 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'
10270 # Note: this linker hardcodes the directories in LIBPATH if there
10271 # are no directories specified by -L.
10272 hardcode_minus_L=yes
10273 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10274 # Neither direct hardcoding nor static linking is supported with a
10276 hardcode_direct=unsupported
10281 if test "$host_cpu" = ia64; then
10282 # On IA64, the linker does run time linking by default, so we don't
10283 # have to do anything special.
10284 aix_use_runtimelinking=no
10285 exp_sym_flag='-Bexport'
10288 # If we're using GNU nm, then we don't want the "-C" option.
10289 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10290 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10291 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'
10293 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'
10295 aix_use_runtimelinking=no
10297 # Test if we are trying to use run time linking or normal
10298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10299 # need to do runtime linking.
10300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10301 for ld_flag in $LDFLAGS; do
10302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10303 aix_use_runtimelinking=yes
10310 exp_sym_flag='-bexport'
10311 no_entry_flag='-bnoentry'
10314 # When large executables or shared objects are built, AIX ld can
10315 # have problems creating the table of contents. If linking a library
10316 # or program results in "error TOC overflow" add -mminimal-toc to
10317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10321 hardcode_direct=yes
10322 hardcode_direct_absolute=yes
10323 hardcode_libdir_separator=':'
10324 link_all_deplibs=yes
10325 file_list_spec='${wl}-f,'
10327 if test "$GCC" = yes; then
10328 case $host_os in aix4.[012]|aix4.[012].*)
10329 # We only want to do this on AIX 4.2 and lower, the check
10330 # below for broken collect2 doesn't work under 4.3+
10331 collect2name=`${CC} -print-prog-name=collect2`
10332 if test -f "$collect2name" &&
10333 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10335 # We have reworked collect2
10338 # We have old collect2
10339 hardcode_direct=unsupported
10340 # It fails to find uninstalled libraries when the uninstalled
10341 # path is not listed in the libpath. Setting hardcode_minus_L
10342 # to unsupported forces relinking
10343 hardcode_minus_L=yes
10344 hardcode_libdir_flag_spec='-L$libdir'
10345 hardcode_libdir_separator=
10349 shared_flag='-shared'
10350 if test "$aix_use_runtimelinking" = yes; then
10351 shared_flag="$shared_flag "'${wl}-G'
10355 if test "$host_cpu" = ia64; then
10356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10357 # chokes on -Wl,-G. The following line is correct:
10360 if test "$aix_use_runtimelinking" = yes; then
10361 shared_flag='${wl}-G'
10363 shared_flag='${wl}-bM:SRE'
10368 export_dynamic_flag_spec='${wl}-bexpall'
10369 # It seems that -bexpall does not export symbols beginning with
10370 # underscore (_), so it is better to generate a list of symbols to export.
10371 always_export_symbols=yes
10372 if test "$aix_use_runtimelinking" = yes; then
10373 # Warning - without using the other runtime loading flags (-brtl),
10374 # -berok will link without error, but may produce a broken library.
10375 allow_undefined_flag='-berok'
10376 # Determine the default libpath from the value encoded in an
10377 # empty executable.
10378 cat >conftest.$ac_ext <<_ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (ac_try="$ac_link"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_link") 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest$ac_exeext &&
10410 $as_test_x conftest$ac_exeext; then
10412 lt_aix_libpath_sed='
10413 /Import File Strings/,/^$/ {
10419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10420 # Check for a 64-bit object if we didn't find anything.
10421 if test -z "$aix_libpath"; then
10422 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10432 conftest$ac_exeext conftest.$ac_ext
10433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10436 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"
10438 if test "$host_cpu" = ia64; then
10439 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10440 allow_undefined_flag="-z nodefs"
10441 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"
10443 # Determine the default libpath from the value encoded in an
10444 # empty executable.
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (ac_try="$ac_link"
10462 case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_link") 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest$ac_exeext &&
10477 $as_test_x conftest$ac_exeext; then
10479 lt_aix_libpath_sed='
10480 /Import File Strings/,/^$/ {
10486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10487 # Check for a 64-bit object if we didn't find anything.
10488 if test -z "$aix_libpath"; then
10489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10499 conftest$ac_exeext conftest.$ac_ext
10500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10502 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10503 # Warning - without using the other run time loading flags,
10504 # -berok will link without error, but may produce a broken library.
10505 no_undefined_flag=' ${wl}-bernotok'
10506 allow_undefined_flag=' ${wl}-berok'
10507 # Exported symbols can be pulled into shared objects from archives
10508 whole_archive_flag_spec='$convenience'
10509 archive_cmds_need_lc=yes
10510 # This is similar to how AIX traditionally builds its shared libraries.
10511 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'
10519 # see comment about AmigaOS4 .so support
10520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521 archive_expsym_cmds=''
10524 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)'
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 hardcode_minus_L=yes
10532 export_dynamic_flag_spec=-rdynamic
10535 cygwin* | mingw* | pw32* | cegcc*)
10536 # When not using gcc, we currently assume that we are using
10537 # Microsoft Visual C++.
10538 # hardcode_libdir_flag_spec is actually meaningless, as there is
10539 # no search path for DLLs.
10540 hardcode_libdir_flag_spec=' '
10541 allow_undefined_flag=unsupported
10542 # Tell ltmain to make .lib files, not .a files.
10544 # Tell ltmain to make .dll files, not .so files.
10546 # FIXME: Setting linknames here is a bad hack.
10547 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10548 # The linker will automatically build a .lib file if we build a DLL.
10549 old_archive_from_new_cmds='true'
10550 # FIXME: Should let the user specify the lib program.
10551 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10552 fix_srcfile_path='`cygpath -w "$srcfile"`'
10553 enable_shared_with_static_runtimes=yes
10556 darwin* | rhapsody*)
10559 archive_cmds_need_lc=no
10561 hardcode_automatic=yes
10562 hardcode_shlibpath_var=unsupported
10563 whole_archive_flag_spec=''
10564 link_all_deplibs=yes
10565 allow_undefined_flag="$_lt_dar_allow_undefined"
10566 case $cc_basename in
10567 ifort*) _lt_dar_can_shared=yes ;;
10568 *) _lt_dar_can_shared=$GCC ;;
10570 if test "$_lt_dar_can_shared" = "yes"; then
10571 output_verbose_link_cmd=echo
10572 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10573 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10574 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}"
10575 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}"
10584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585 hardcode_libdir_flag_spec='-L$libdir'
10586 hardcode_shlibpath_var=no
10593 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10594 # support. Future versions do this automatically, but an explicit c++rt0.o
10595 # does not break anything, and helps significantly (at the cost of a little
10598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10599 hardcode_libdir_flag_spec='-R$libdir'
10600 hardcode_direct=yes
10601 hardcode_shlibpath_var=no
10604 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10607 hardcode_direct=yes
10608 hardcode_minus_L=yes
10609 hardcode_shlibpath_var=no
10612 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10613 freebsd* | dragonfly*)
10614 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10615 hardcode_libdir_flag_spec='-R$libdir'
10616 hardcode_direct=yes
10617 hardcode_shlibpath_var=no
10621 if test "$GCC" = yes; then
10622 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'
10624 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'
10626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10627 hardcode_libdir_separator=:
10628 hardcode_direct=yes
10630 # hardcode_minus_L: Not really in the search PATH,
10631 # but as the default location of the library.
10632 hardcode_minus_L=yes
10633 export_dynamic_flag_spec='${wl}-E'
10637 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10642 if test "$with_gnu_ld" = no; then
10643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10644 hardcode_libdir_flag_spec_ld='+b $libdir'
10645 hardcode_libdir_separator=:
10646 hardcode_direct=yes
10647 hardcode_direct_absolute=yes
10648 export_dynamic_flag_spec='${wl}-E'
10649 # hardcode_minus_L: Not really in the search PATH,
10650 # but as the default location of the library.
10651 hardcode_minus_L=yes
10656 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10659 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10662 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10671 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10677 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10681 if test "$with_gnu_ld" = no; then
10682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10683 hardcode_libdir_separator=:
10688 hardcode_shlibpath_var=no
10691 hardcode_direct=yes
10692 hardcode_direct_absolute=yes
10693 export_dynamic_flag_spec='${wl}-E'
10695 # hardcode_minus_L: Not really in the search PATH,
10696 # but as the default location of the library.
10697 hardcode_minus_L=yes
10703 irix5* | irix6* | nonstopux*)
10704 if test "$GCC" = yes; then
10705 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'
10706 # Try to use the -exported_symbol ld option, if it does not
10707 # work, assume that -exports_file does not work either and
10708 # implicitly export all symbols.
10709 save_LDFLAGS="$LDFLAGS"
10710 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10711 cat >conftest.$ac_ext <<_ACEOF
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (ac_try="$ac_link"
10716 case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_link") 2>conftest.er1
10723 grep -v '^ *+' conftest.er1 >conftest.err
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } && {
10728 test -z "$ac_c_werror_flag" ||
10729 test ! -s conftest.err
10730 } && test -s conftest$ac_exeext &&
10731 $as_test_x conftest$ac_exeext; then
10732 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'
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LDFLAGS="$save_LDFLAGS"
10745 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'
10746 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'
10748 archive_cmds_need_lc='no'
10749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10750 hardcode_libdir_separator=:
10752 link_all_deplibs=yes
10756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10759 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10761 hardcode_libdir_flag_spec='-R$libdir'
10762 hardcode_direct=yes
10763 hardcode_shlibpath_var=no
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_direct=yes
10769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10770 hardcode_libdir_separator=:
10771 hardcode_shlibpath_var=no
10778 if test -f /usr/libexec/ld.so; then
10779 hardcode_direct=yes
10780 hardcode_shlibpath_var=no
10781 hardcode_direct_absolute=yes
10782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10784 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10786 export_dynamic_flag_spec='${wl}-E'
10789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_libdir_flag_spec='-R$libdir'
10794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10805 hardcode_libdir_flag_spec='-L$libdir'
10806 hardcode_minus_L=yes
10807 allow_undefined_flag=unsupported
10808 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'
10809 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10813 if test "$GCC" = yes; then
10814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10815 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'
10817 allow_undefined_flag=' -expect_unresolved \*'
10818 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'
10820 archive_cmds_need_lc='no'
10821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10822 hardcode_libdir_separator=:
10825 osf4* | osf5*) # as osf3* with the addition of -msym flag
10826 if test "$GCC" = yes; then
10827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10828 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'
10829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831 allow_undefined_flag=' -expect_unresolved \*'
10832 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'
10833 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~
10834 $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'
10836 # Both c and cxx compiler support -rpath directly
10837 hardcode_libdir_flag_spec='-rpath $libdir'
10839 archive_cmds_need_lc='no'
10840 hardcode_libdir_separator=:
10844 no_undefined_flag=' -z defs'
10845 if test "$GCC" = yes; then
10847 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10849 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10851 case `$CC -V 2>&1` in
10854 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10860 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10862 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10866 hardcode_libdir_flag_spec='-R$libdir'
10867 hardcode_shlibpath_var=no
10869 solaris2.[0-5] | solaris2.[0-5].*) ;;
10871 # The compiler driver will combine and reorder linker options,
10872 # but understands `-z linker_flag'. GCC discards it without `$wl',
10873 # but is careful enough not to reorder.
10874 # Supported since Solaris 2.6 (maybe 2.5.1?)
10875 if test "$GCC" = yes; then
10876 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10878 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10882 link_all_deplibs=yes
10886 if test "x$host_vendor" = xsequent; then
10887 # Use $CC to link under sequent, because it throws in some extra .o
10888 # files that make .init and .fini sections work.
10889 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10891 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_libdir_flag_spec='-L$libdir'
10894 hardcode_direct=yes
10895 hardcode_minus_L=yes
10896 hardcode_shlibpath_var=no
10900 case $host_vendor in
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_direct=yes # is this really true???
10906 ## LD is ld it makes a PLAMLIB
10907 ## CC just makes a GrossModule.
10908 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10909 reload_cmds='$CC -r -o $output$reload_objs'
10913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10917 runpath_var='LD_RUN_PATH'
10918 hardcode_shlibpath_var=no
10922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10923 hardcode_shlibpath_var=no
10924 export_dynamic_flag_spec='-Bexport'
10928 if test -d /usr/nec; then
10929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930 hardcode_shlibpath_var=no
10931 runpath_var=LD_RUN_PATH
10932 hardcode_runpath_var=yes
10937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10938 no_undefined_flag='${wl}-z,text'
10939 archive_cmds_need_lc=no
10940 hardcode_shlibpath_var=no
10941 runpath_var='LD_RUN_PATH'
10943 if test "$GCC" = yes; then
10944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 sysv5* | sco3.2v5* | sco5v6*)
10953 # Note: We can NOT use -z defs as we might desire, because we do not
10954 # link with -lc, and that would cause any symbols used from libc to
10955 # always be unresolved, which means just about no library would
10956 # ever link correctly. If we're not using GNU ld we use -z text
10957 # though, which does catch some bad symbols but isn't as heavy-handed
10959 no_undefined_flag='${wl}-z,text'
10960 allow_undefined_flag='${wl}-z,nodefs'
10961 archive_cmds_need_lc=no
10962 hardcode_shlibpath_var=no
10963 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10964 hardcode_libdir_separator=':'
10965 link_all_deplibs=yes
10966 export_dynamic_flag_spec='${wl}-Bexport'
10967 runpath_var='LD_RUN_PATH'
10969 if test "$GCC" = yes; then
10970 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980 hardcode_libdir_flag_spec='-L$libdir'
10981 hardcode_shlibpath_var=no
10989 if test x$host_vendor = xsni; then
10991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10992 export_dynamic_flag_spec='${wl}-Blargedynsym'
10998 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10999 echo "${ECHO_T}$ld_shlibs" >&6; }
11000 test "$ld_shlibs" = no && can_build_shared=no
11002 with_gnu_ld=$with_gnu_ld
11019 # Do we need to explicitly link libc?
11021 case "x$archive_cmds_need_lc" in
11023 # Assume -lc should be added
11024 archive_cmds_need_lc=yes
11026 if test "$enable_shared" = yes && test "$GCC" = yes; then
11027 case $archive_cmds in
11029 # FIXME: we may have to deal with multi-command sequences.
11032 # Test whether the compiler implicitly links with -lc since on some
11033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11034 # to ld, don't add -lc before -lgcc.
11035 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041 (eval $ac_compile) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } 2>conftest.err; then
11047 libobjs=conftest.$ac_objext
11049 wl=$lt_prog_compiler_wl
11050 pic_flag=$lt_prog_compiler_pic
11056 lt_save_allow_undefined_flag=$allow_undefined_flag
11057 allow_undefined_flag=
11058 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11059 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }
11064 archive_cmds_need_lc=no
11066 archive_cmds_need_lc=yes
11068 allow_undefined_flag=$lt_save_allow_undefined_flag
11070 cat conftest.err 1>&5
11073 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11074 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11237 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11238 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11240 if test "$GCC" = yes; then
11242 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11243 *) lt_awk_arg="/^libraries:/" ;;
11245 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11246 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11247 # if the path contains ";" then we assume it to be the separator
11248 # otherwise default to the standard path separator (i.e. ":") - it is
11249 # assumed that no part of a normal pathname contains ";" but that should
11250 # okay in the real world where ";" in dirpaths is itself problematic.
11251 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11255 # Ok, now we have the path, separated by spaces, we can step through it
11256 # and add multilib dir if necessary.
11257 lt_tmp_lt_search_path_spec=
11258 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11259 for lt_sys_path in $lt_search_path_spec; do
11260 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11263 test -d "$lt_sys_path" && \
11264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11267 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11268 BEGIN {RS=" "; FS="/|\n";} {
11271 for (lt_i = NF; lt_i > 0; lt_i--) {
11272 if ($lt_i != "" && $lt_i != ".") {
11273 if ($lt_i == "..") {
11276 if (lt_count == 0) {
11277 lt_foo="/" $lt_i lt_foo;
11284 if (lt_foo != "") { lt_freq[lt_foo]++; }
11285 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11287 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11291 library_names_spec=
11292 libname_spec='lib$name'
11296 postuninstall_cmds=
11300 shlibpath_overrides_runpath=unknown
11302 dynamic_linker="$host_os ld.so"
11303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11304 need_lib_prefix=unknown
11305 hardcode_into_libs=no
11307 # when you set need_version to no, make sure it does not cause -set_version
11308 # flags to be left without arguments
11309 need_version=unknown
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11315 shlibpath_var=LIBPATH
11317 # AIX 3 has no versioning support, so we append a major version to the name.
11318 soname_spec='${libname}${release}${shared_ext}$major'
11325 hardcode_into_libs=yes
11326 if test "$host_cpu" = ia64; then
11327 # AIX 5 supports IA64
11328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11329 shlibpath_var=LD_LIBRARY_PATH
11331 # With GCC up to 2.95.x, collect2 would create an import file
11332 # for dependence libraries. The import file would start with
11333 # the line `#! .'. This would cause the generated library to
11334 # depend on `.', always an invalid library. This was fixed in
11335 # development snapshots of GCC prior to 3.0.
11337 aix4 | aix4.[01] | aix4.[01].*)
11338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11343 can_build_shared=no
11347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11348 # soname into executable. Probably we can add versioning support to
11349 # collect2, so additional links can be useful in future.
11350 if test "$aix_use_runtimelinking" = yes; then
11351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11352 # instead of lib<name>.a to let people know that these are not
11353 # typical AIX shared libraries.
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 # We preserve .a as extension for shared libraries through AIX4.2
11357 # and later when we are not doing run time linking.
11358 library_names_spec='${libname}${release}.a $libname.a'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LIBPATH
11368 # Since July 2007 AmigaOS4 officially supports .so libraries.
11369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373 library_names_spec='$libname.ixlibrary $libname.a'
11374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11375 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'
11381 library_names_spec='${libname}${shared_ext}'
11382 dynamic_linker="$host_os ld.so"
11383 shlibpath_var=LIBRARY_PATH
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11395 # the default ld.so.conf also contains /usr/contrib/lib and
11396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11397 # libtool to hard-code these into programs
11400 cygwin* | mingw* | pw32* | cegcc*)
11401 version_type=windows
11406 case $GCC,$host_os in
11407 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11408 library_names_spec='$libname.dll.a'
11409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410 postinstall_cmds='base_file=`basename \${file}`~
11411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11412 dldir=$destdir/`dirname \$dlpath`~
11413 test -d \$dldir || mkdir -p \$dldir~
11414 $install_prog $dir/$dlname \$dldir/$dlname~
11415 chmod a+x \$dldir/$dlname~
11416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11420 dlpath=$dir/\$dldll~
11422 shlibpath_overrides_runpath=yes
11426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11428 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11431 # MinGW DLLs use traditional 'lib' prefix
11432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11433 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11434 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11435 # It is most probably a Windows format PATH printed by
11436 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11437 # path with ; separators, and with drive letters. We can handle the
11438 # drive letters (cygwin fileutils understands them), so leave them,
11439 # especially as we might pass files found there to a mingw objdump,
11440 # which wouldn't understand a cygwinified path. Ahh.
11441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11447 # pw32 DLLs use 'pw' prefix rather than 'lib'
11448 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11454 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11457 dynamic_linker='Win32 ld.exe'
11458 # FIXME: first we should search . and the directory the executable is in
11462 darwin* | rhapsody*)
11463 dynamic_linker="$host_os dyld"
11464 version_type=darwin
11467 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11468 soname_spec='${libname}${release}${major}$shared_ext'
11469 shlibpath_overrides_runpath=yes
11470 shlibpath_var=DYLD_LIBRARY_PATH
11471 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11473 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 shlibpath_var=LD_LIBRARY_PATH
11490 freebsd* | dragonfly*)
11491 # DragonFly does not have aout. When/if they implement a new
11492 # versioning mechanism, adjust this.
11493 if test -x /usr/bin/objformat; then
11494 objformat=`/usr/bin/objformat`
11497 freebsd[123]*) objformat=aout ;;
11498 *) objformat=elf ;;
11501 version_type=freebsd-$objformat
11502 case $version_type in
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11513 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=yes
11518 freebsd3.[01]* | freebsdelf3.[01]*)
11519 shlibpath_overrides_runpath=yes
11520 hardcode_into_libs=yes
11522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11527 *) # from 4.6 on, and DragonFly
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 hardcode_into_libs=yes
11544 hpux9* | hpux10* | hpux11*)
11545 # Give a soname corresponding to the major version so that dld.sl refuses to
11546 # link against other versions.
11553 hardcode_into_libs=yes
11554 dynamic_linker="$host_os dld.so"
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 if test "X$HPUX_IA64_MODE" = X32; then
11560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11568 hardcode_into_libs=yes
11569 dynamic_linker="$host_os dld.sl"
11570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11579 dynamic_linker="$host_os dld.sl"
11580 shlibpath_var=SHLIB_PATH
11581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11587 postinstall_cmds='chmod 555 $lib'
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 shlibpath_overrides_runpath=no
11599 hardcode_into_libs=yes
11602 irix5* | irix6* | nonstopux*)
11604 nonstopux*) version_type=nonstopux ;;
11606 if test "$lt_cv_prog_gnu_ld" = yes; then
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11617 irix5* | nonstopux*)
11618 libsuff= shlibsuff=
11621 case $LD in # libtool.m4 will add one of these switches to LD
11622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11623 libsuff= shlibsuff= libmagic=32-bit;;
11624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11625 libsuff=32 shlibsuff=N32 libmagic=N32;;
11626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11628 *) libsuff= shlibsuff= libmagic=never-match;;
11632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11633 shlibpath_overrides_runpath=no
11634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11636 hardcode_into_libs=yes
11639 # No shared lib support for Linux oldld, aout, or coff.
11640 linux*oldld* | linux*aout* | linux*coff*)
11644 # This must be Linux ELF.
11645 linux* | k*bsd*-gnu)
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=no
11654 # Some binutils ld are patched to set DT_RUNPATH
11655 save_LDFLAGS=$LDFLAGS
11656 save_libdir=$libdir
11657 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11658 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (ac_try="$ac_link"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_link") 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } && {
11688 test -z "$ac_c_werror_flag" ||
11689 test ! -s conftest.err
11690 } && test -s conftest$ac_exeext &&
11691 $as_test_x conftest$ac_exeext; then
11692 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11693 shlibpath_overrides_runpath=yes
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LDFLAGS=$save_LDFLAGS
11706 libdir=$save_libdir
11708 # This implies no fast_install, which is unacceptable.
11709 # Some rework will be needed to allow for fast_install
11710 # before this can be enabled.
11711 hardcode_into_libs=yes
11713 # Append ld.so.conf contents to the search path
11714 if test -f /etc/ld.so.conf; then
11715 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' ' '`
11716 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11719 # We used to test for /lib/ld.so.1 and disable shared libraries on
11720 # powerpc, because MkLinux only supported shared libraries with the
11721 # GNU dynamic linker. Since this was broken with cross compilers,
11722 # most powerpc-linux boxes support dynamic linking these days and
11723 # people can always --disable-shared, the test was removed, and we
11724 # assume the GNU/Linux dynamic linker is in use.
11725 dynamic_linker='GNU/Linux ld.so'
11732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11735 dynamic_linker='NetBSD (a.out) ld.so'
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 dynamic_linker='NetBSD ld.elf_so'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=no
11761 hardcode_into_libs=yes
11762 dynamic_linker='ldqnx.so'
11767 sys_lib_dlsearch_path_spec="/usr/lib"
11769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11771 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11772 *) need_version=no ;;
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11779 openbsd2.[89] | openbsd2.[89].*)
11780 shlibpath_overrides_runpath=no
11783 shlibpath_overrides_runpath=yes
11787 shlibpath_overrides_runpath=yes
11792 libname_spec='$name'
11795 library_names_spec='$libname${shared_ext} $libname.a'
11796 dynamic_linker='OS/2 ld.exe'
11797 shlibpath_var=LIBPATH
11800 osf3* | osf4* | osf5*)
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 soname_spec='${libname}${release}${shared_ext}$major'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 shlibpath_overrides_runpath=yes
11823 hardcode_into_libs=yes
11824 # ldd complains unless libraries are executable
11825 postinstall_cmds='chmod +x $lib'
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes
11834 if test "$with_gnu_ld" = yes; then
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 case $host_vendor in
11847 shlibpath_overrides_runpath=no
11849 runpath_var=LD_RUN_PATH
11857 shlibpath_overrides_runpath=no
11858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11864 if test -d /usr/nec ;then
11866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11867 soname_spec='$libname${shared_ext}.$major'
11868 shlibpath_var=LD_LIBRARY_PATH
11872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11873 version_type=freebsd-elf
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 shlibpath_overrides_runpath=yes
11880 hardcode_into_libs=yes
11881 if test "$with_gnu_ld" = yes; then
11882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11891 sys_lib_dlsearch_path_spec='/usr/lib'
11895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 shlibpath_overrides_runpath=no
11902 hardcode_into_libs=yes
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11917 echo "${ECHO_T}$dynamic_linker" >&6; }
11918 test "$dynamic_linker" = no && can_build_shared=no
11920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11921 if test "$GCC" = yes; then
11922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11926 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11929 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12018 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12019 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12021 if test -n "$hardcode_libdir_flag_spec" ||
12022 test -n "$runpath_var" ||
12023 test "X$hardcode_automatic" = "Xyes" ; then
12025 # We can hardcode non-existent directories.
12026 if test "$hardcode_direct" != no &&
12027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12028 # have to relink, otherwise we might link with an installed library
12029 # when we should be linking with a yet-to-be-installed one
12030 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12031 test "$hardcode_minus_L" != no; then
12032 # Linking always hardcodes the temporary library directory.
12033 hardcode_action=relink
12035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12036 hardcode_action=immediate
12039 # We cannot hardcode anything, or else we can only hardcode existing
12041 hardcode_action=unsupported
12043 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12044 echo "${ECHO_T}$hardcode_action" >&6; }
12046 if test "$hardcode_action" = relink ||
12047 test "$inherit_rpath" = yes; then
12048 # Fast installation is not supported
12049 enable_fast_install=no
12050 elif test "$shlibpath_overrides_runpath" = yes ||
12051 test "$enable_shared" = no; then
12052 # Fast installation is not necessary
12053 enable_fast_install=needless
12061 if test "x$enable_dlopen" != xyes; then
12062 enable_dlopen=unknown
12063 enable_dlopen_self=unknown
12064 enable_dlopen_self_static=unknown
12071 lt_cv_dlopen="load_add_on"
12073 lt_cv_dlopen_self=yes
12076 mingw* | pw32* | cegcc*)
12077 lt_cv_dlopen="LoadLibrary"
12082 lt_cv_dlopen="dlopen"
12087 # if libdl is installed we need to link against it
12088 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12089 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 ac_check_lib_save_LIBS=$LIBS
12095 cat >conftest.$ac_ext <<_ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (ac_try="$ac_link"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_link") 2>conftest.er1
12126 grep -v '^ *+' conftest.er1 >conftest.err
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } && {
12131 test -z "$ac_c_werror_flag" ||
12132 test ! -s conftest.err
12133 } && test -s conftest$ac_exeext &&
12134 $as_test_x conftest$ac_exeext; then
12135 ac_cv_lib_dl_dlopen=yes
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_cv_lib_dl_dlopen=no
12143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12147 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12149 if test $ac_cv_lib_dl_dlopen = yes; then
12150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12153 lt_cv_dlopen="dyld"
12155 lt_cv_dlopen_self=yes
12162 { echo "$as_me:$LINENO: checking for shl_load" >&5
12163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12164 if test "${ac_cv_func_shl_load+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12175 #define shl_load innocuous_shl_load
12177 /* System header to define __stub macros and hopefully few prototypes,
12178 which can conflict with char shl_load (); below.
12179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12180 <limits.h> exists even on freestanding compilers. */
12183 # include <limits.h>
12185 # include <assert.h>
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12197 /* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
12200 #if defined __stub_shl_load || defined __stub___shl_load
12207 return shl_load ();
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && {
12226 test -z "$ac_c_werror_flag" ||
12227 test ! -s conftest.err
12228 } && test -s conftest$ac_exeext &&
12229 $as_test_x conftest$ac_exeext; then
12230 ac_cv_func_shl_load=yes
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 ac_cv_func_shl_load=no
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12241 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12242 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12243 if test $ac_cv_func_shl_load = yes; then
12244 lt_cv_dlopen="shl_load"
12246 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12247 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12248 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 ac_check_lib_save_LIBS=$LIBS
12253 cat >conftest.$ac_ext <<_ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12270 return shl_load ();
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_link") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1 >conftest.err
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest$ac_exeext &&
12292 $as_test_x conftest$ac_exeext; then
12293 ac_cv_lib_dld_shl_load=yes
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 ac_cv_lib_dld_shl_load=no
12301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12305 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12306 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12307 if test $ac_cv_lib_dld_shl_load = yes; then
12308 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12310 { echo "$as_me:$LINENO: checking for dlopen" >&5
12311 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12312 if test "${ac_cv_func_dlopen+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12323 #define dlopen innocuous_dlopen
12325 /* System header to define __stub macros and hopefully few prototypes,
12326 which can conflict with char dlopen (); below.
12327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12328 <limits.h> exists even on freestanding compilers. */
12331 # include <limits.h>
12333 # include <assert.h>
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12345 /* The GNU C library defines this for functions which it implements
12346 to always fail with ENOSYS. Some functions are actually named
12347 something starting with __ and the normal name is an alias. */
12348 #if defined __stub_dlopen || defined __stub___dlopen
12360 rm -f conftest.$ac_objext conftest$ac_exeext
12361 if { (ac_try="$ac_link"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_link") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest$ac_exeext &&
12377 $as_test_x conftest$ac_exeext; then
12378 ac_cv_func_dlopen=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_func_dlopen=no
12386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12387 conftest$ac_exeext conftest.$ac_ext
12389 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12390 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12391 if test $ac_cv_func_dlopen = yes; then
12392 lt_cv_dlopen="dlopen"
12394 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12395 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 ac_check_lib_save_LIBS=$LIBS
12401 cat >conftest.$ac_ext <<_ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest$ac_exeext &&
12440 $as_test_x conftest$ac_exeext; then
12441 ac_cv_lib_dl_dlopen=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_cv_lib_dl_dlopen=no
12449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12450 conftest$ac_exeext conftest.$ac_ext
12451 LIBS=$ac_check_lib_save_LIBS
12453 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12454 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12455 if test $ac_cv_lib_dl_dlopen = yes; then
12456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12458 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12459 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12460 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 ac_check_lib_save_LIBS=$LIBS
12464 LIBS="-lsvld $LIBS"
12465 cat >conftest.$ac_ext <<_ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (ac_try="$ac_link"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest$ac_exeext &&
12504 $as_test_x conftest$ac_exeext; then
12505 ac_cv_lib_svld_dlopen=yes
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ac_cv_lib_svld_dlopen=no
12513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12514 conftest$ac_exeext conftest.$ac_ext
12515 LIBS=$ac_check_lib_save_LIBS
12517 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12518 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12519 if test $ac_cv_lib_svld_dlopen = yes; then
12520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12522 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12523 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12524 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 ac_check_lib_save_LIBS=$LIBS
12529 cat >conftest.$ac_ext <<_ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12536 /* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12546 return dld_link ();
12551 rm -f conftest.$ac_objext conftest$ac_exeext
12552 if { (ac_try="$ac_link"
12553 case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_link") 2>conftest.er1
12560 grep -v '^ *+' conftest.er1 >conftest.err
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && {
12565 test -z "$ac_c_werror_flag" ||
12566 test ! -s conftest.err
12567 } && test -s conftest$ac_exeext &&
12568 $as_test_x conftest$ac_exeext; then
12569 ac_cv_lib_dld_dld_link=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 ac_cv_lib_dld_dld_link=no
12577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12578 conftest$ac_exeext conftest.$ac_ext
12579 LIBS=$ac_check_lib_save_LIBS
12581 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12582 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12583 if test $ac_cv_lib_dld_dld_link = yes; then
12584 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12605 if test "x$lt_cv_dlopen" != xno; then
12611 case $lt_cv_dlopen in
12613 save_CPPFLAGS="$CPPFLAGS"
12614 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12616 save_LDFLAGS="$LDFLAGS"
12617 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12620 LIBS="$lt_cv_dlopen_libs $LIBS"
12622 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12623 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12624 if test "${lt_cv_dlopen_self+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 if test "$cross_compiling" = yes; then :
12628 lt_cv_dlopen_self=cross
12630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12631 lt_status=$lt_dlunknown
12632 cat > conftest.$ac_ext <<_LT_EOF
12633 #line 12633 "configure"
12634 #include "confdefs.h"
12643 # define LT_DLGLOBAL RTLD_GLOBAL
12646 # define LT_DLGLOBAL DL_GLOBAL
12648 # define LT_DLGLOBAL 0
12652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12653 find out it does not work in some platform. */
12654 #ifndef LT_DLLAZY_OR_NOW
12656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12659 # define LT_DLLAZY_OR_NOW DL_LAZY
12662 # define LT_DLLAZY_OR_NOW RTLD_NOW
12665 # define LT_DLLAZY_OR_NOW DL_NOW
12667 # define LT_DLLAZY_OR_NOW 0
12674 void fnord() { int i=42;}
12677 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12678 int status = $lt_dlunknown;
12682 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12683 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12684 /* dlclose (self); */
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693 (eval $ac_link) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12697 (./conftest; exit; ) >&5 2>/dev/null
12699 case x$lt_status in
12700 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12701 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12702 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12705 # compilation failed
12706 lt_cv_dlopen_self=no
12713 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12714 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12716 if test "x$lt_cv_dlopen_self" = xyes; then
12717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12718 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12719 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12720 if test "${lt_cv_dlopen_self_static+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 if test "$cross_compiling" = yes; then :
12724 lt_cv_dlopen_self_static=cross
12726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12727 lt_status=$lt_dlunknown
12728 cat > conftest.$ac_ext <<_LT_EOF
12729 #line 12729 "configure"
12730 #include "confdefs.h"
12739 # define LT_DLGLOBAL RTLD_GLOBAL
12742 # define LT_DLGLOBAL DL_GLOBAL
12744 # define LT_DLGLOBAL 0
12748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12749 find out it does not work in some platform. */
12750 #ifndef LT_DLLAZY_OR_NOW
12752 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12755 # define LT_DLLAZY_OR_NOW DL_LAZY
12758 # define LT_DLLAZY_OR_NOW RTLD_NOW
12761 # define LT_DLLAZY_OR_NOW DL_NOW
12763 # define LT_DLLAZY_OR_NOW 0
12770 void fnord() { int i=42;}
12773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12774 int status = $lt_dlunknown;
12778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12779 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12780 /* dlclose (self); */
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12793 (./conftest; exit; ) >&5 2>/dev/null
12795 case x$lt_status in
12796 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12797 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12798 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12801 # compilation failed
12802 lt_cv_dlopen_self_static=no
12809 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12810 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12813 CPPFLAGS="$save_CPPFLAGS"
12814 LDFLAGS="$save_LDFLAGS"
12819 case $lt_cv_dlopen_self in
12820 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12821 *) enable_dlopen_self=unknown ;;
12824 case $lt_cv_dlopen_self_static in
12825 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12826 *) enable_dlopen_self_static=unknown ;;
12848 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12849 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12850 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12851 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12852 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12853 { echo "$as_me:$LINENO: result: yes" >&5
12854 echo "${ECHO_T}yes" >&6; }
12856 # FIXME - insert some real tests, host_os isn't really good enough
12859 if test -n "$STRIP" ; then
12860 striplib="$STRIP -x"
12861 old_striplib="$STRIP -S"
12862 { echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6; }
12865 { echo "$as_me:$LINENO: result: no" >&5
12866 echo "${ECHO_T}no" >&6; }
12870 { echo "$as_me:$LINENO: result: no" >&5
12871 echo "${ECHO_T}no" >&6; }
12887 # Report which library types will actually be built
12888 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12889 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12890 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12891 echo "${ECHO_T}$can_build_shared" >&6; }
12893 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12894 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12895 test "$can_build_shared" = "no" && enable_shared=no
12897 # On AIX, shared libraries and static libraries use the same namespace, and
12898 # are all built from PIC.
12901 test "$enable_shared" = yes && enable_static=no
12902 if test -n "$RANLIB"; then
12903 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12904 postinstall_cmds='$RANLIB $lib'
12909 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12910 test "$enable_shared" = yes && enable_static=no
12914 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12915 echo "${ECHO_T}$enable_shared" >&6; }
12917 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12918 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12919 # Make sure either enable_shared or enable_static is yes.
12920 test "$enable_shared" = yes || enable_static=yes
12921 { echo "$as_me:$LINENO: result: $enable_static" >&5
12922 echo "${ECHO_T}$enable_static" >&6; }
12929 ac_cpp='$CPP $CPPFLAGS'
12930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938 ac_cpp='$CXXCPP $CPPFLAGS'
12939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12943 archive_cmds_need_lc_CXX=no
12944 allow_undefined_flag_CXX=
12945 always_export_symbols_CXX=no
12946 archive_expsym_cmds_CXX=
12947 compiler_needs_object_CXX=no
12948 export_dynamic_flag_spec_CXX=
12949 hardcode_direct_CXX=no
12950 hardcode_direct_absolute_CXX=no
12951 hardcode_libdir_flag_spec_CXX=
12952 hardcode_libdir_flag_spec_ld_CXX=
12953 hardcode_libdir_separator_CXX=
12954 hardcode_minus_L_CXX=no
12955 hardcode_shlibpath_var_CXX=unsupported
12956 hardcode_automatic_CXX=no
12957 inherit_rpath_CXX=no
12959 module_expsym_cmds_CXX=
12960 link_all_deplibs_CXX=unknown
12961 old_archive_cmds_CXX=$old_archive_cmds
12962 no_undefined_flag_CXX=
12963 whole_archive_flag_spec_CXX=
12964 enable_shared_with_static_runtimes_CXX=no
12966 # Source file extension for C++ test sources.
12969 # Object file extension for compiled C++ test sources.
12973 # No sense in running all these tests if we already determined that
12974 # the CXX compiler isn't working. Some variables (like enable_shared)
12975 # are currently assumed to apply to all compilers on this platform,
12976 # and will be corrupted by setting them based on a non-working compiler.
12977 if test "$_lt_caught_CXX_error" != yes; then
12978 # Code to be used in simple compile tests
12979 lt_simple_compile_test_code="int some_variable = 0;"
12981 # Code to be used in simple link tests
12982 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12991 # If no C compiler was specified, use CC.
12994 # If no C compiler flags were specified, use CFLAGS.
12995 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12997 # Allow CC to be a program name with arguments.
13001 # save warnings/boilerplate of simple test code
13002 ac_outfile=conftest.$ac_objext
13003 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13004 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13005 _lt_compiler_boilerplate=`cat conftest.err`
13008 ac_outfile=conftest.$ac_objext
13009 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13010 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13011 _lt_linker_boilerplate=`cat conftest.err`
13015 # Allow CC to be a program name with arguments.
13020 lt_save_with_gnu_ld=$with_gnu_ld
13021 lt_save_path_LD=$lt_cv_path_LD
13022 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13023 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13025 $as_unset lt_cv_prog_gnu_ld
13027 if test -n "${lt_cv_path_LDCXX+set}"; then
13028 lt_cv_path_LD=$lt_cv_path_LDCXX
13030 $as_unset lt_cv_path_LD
13032 test -z "${LDCXX+set}" || LD=$LDCXX
13036 for cc_temp in $compiler""; do
13038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13044 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13047 if test -n "$compiler"; then
13048 # We don't want -fno-exception when compiling C++ code, so set the
13049 # no_builtin_flag separately
13050 if test "$GXX" = yes; then
13051 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13053 lt_prog_compiler_no_builtin_flag_CXX=
13056 if test "$GXX" = yes; then
13057 # Set up default GNU C++ configuration
13061 # Check whether --with-gnu-ld was given.
13062 if test "${with_gnu_ld+set}" = set; then
13063 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13069 if test "$GCC" = yes; then
13070 # Check if gcc -print-prog-name=ld gives a path.
13071 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13072 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13075 # gcc leaves a trailing carriage return which upsets mingw
13076 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13078 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13081 # Accept absolute paths.
13083 re_direlt='/[^/][^/]*/\.\./'
13084 # Canonicalize the pathname of ld
13085 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13086 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13087 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13089 test -z "$LD" && LD="$ac_prog"
13092 # If it fails, then pretend we aren't using GCC.
13096 # If it is relative, then search for the first ld in PATH.
13097 with_gnu_ld=unknown
13100 elif test "$with_gnu_ld" = yes; then
13101 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13102 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13104 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13105 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13107 if test "${lt_cv_path_LD+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 if test -z "$LD"; then
13111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13112 for ac_dir in $PATH; do
13114 test -z "$ac_dir" && ac_dir=.
13115 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13116 lt_cv_path_LD="$ac_dir/$ac_prog"
13117 # Check to see if the program is GNU ld. I'd rather use --version,
13118 # but apparently some variants of GNU ld only accept -v.
13119 # Break only if it was the GNU/non-GNU ld that we prefer.
13120 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13121 *GNU* | *'with BFD'*)
13122 test "$with_gnu_ld" != no && break
13125 test "$with_gnu_ld" != yes && break
13132 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13136 LD="$lt_cv_path_LD"
13137 if test -n "$LD"; then
13138 { echo "$as_me:$LINENO: result: $LD" >&5
13139 echo "${ECHO_T}$LD" >&6; }
13141 { echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6; }
13144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13146 { (exit 1); exit 1; }; }
13147 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13149 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13153 case `$LD -v 2>&1 </dev/null` in
13154 *GNU* | *'with BFD'*)
13155 lt_cv_prog_gnu_ld=yes
13158 lt_cv_prog_gnu_ld=no
13162 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13163 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13164 with_gnu_ld=$lt_cv_prog_gnu_ld
13172 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13173 # archiving commands below assume that GNU ld is being used.
13174 if test "$with_gnu_ld" = yes; then
13175 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13176 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'
13178 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13179 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13181 # If archive_cmds runs LD, not CC, wlarc should be empty
13182 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13183 # investigate it a little bit more. (MM)
13186 # ancient GNU ld didn't support --whole-archive et. al.
13187 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13188 $GREP 'no-whole-archive' > /dev/null; then
13189 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13191 whole_archive_flag_spec_CXX=
13197 # A generic and very simple default shared library creation
13198 # command for GNU C++ for the case where it uses the native
13199 # linker, instead of GNU ld. If possible, this setting should
13200 # overridden to take advantage of the native linker features on
13201 # the platform it is being used on.
13202 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13205 # Commands to make compiler produce verbose output that lists
13206 # what "hidden" libraries, object files and flags are used when
13207 # linking a shared library.
13208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13216 # PORTME: fill in a description of your system's C++ link characteristics
13217 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13218 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13222 # FIXME: insert proper C++ library support
13226 if test "$host_cpu" = ia64; then
13227 # On IA64, the linker does run time linking by default, so we don't
13228 # have to do anything special.
13229 aix_use_runtimelinking=no
13230 exp_sym_flag='-Bexport'
13233 aix_use_runtimelinking=no
13235 # Test if we are trying to use run time linking or normal
13236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13237 # need to do runtime linking.
13238 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13239 for ld_flag in $LDFLAGS; do
13242 aix_use_runtimelinking=yes
13250 exp_sym_flag='-bexport'
13251 no_entry_flag='-bnoentry'
13254 # When large executables or shared objects are built, AIX ld can
13255 # have problems creating the table of contents. If linking a library
13256 # or program results in "error TOC overflow" add -mminimal-toc to
13257 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13258 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13260 archive_cmds_CXX=''
13261 hardcode_direct_CXX=yes
13262 hardcode_direct_absolute_CXX=yes
13263 hardcode_libdir_separator_CXX=':'
13264 link_all_deplibs_CXX=yes
13265 file_list_spec_CXX='${wl}-f,'
13267 if test "$GXX" = yes; then
13268 case $host_os in aix4.[012]|aix4.[012].*)
13269 # We only want to do this on AIX 4.2 and lower, the check
13270 # below for broken collect2 doesn't work under 4.3+
13271 collect2name=`${CC} -print-prog-name=collect2`
13272 if test -f "$collect2name" &&
13273 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13275 # We have reworked collect2
13278 # We have old collect2
13279 hardcode_direct_CXX=unsupported
13280 # It fails to find uninstalled libraries when the uninstalled
13281 # path is not listed in the libpath. Setting hardcode_minus_L
13282 # to unsupported forces relinking
13283 hardcode_minus_L_CXX=yes
13284 hardcode_libdir_flag_spec_CXX='-L$libdir'
13285 hardcode_libdir_separator_CXX=
13288 shared_flag='-shared'
13289 if test "$aix_use_runtimelinking" = yes; then
13290 shared_flag="$shared_flag "'${wl}-G'
13294 if test "$host_cpu" = ia64; then
13295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13296 # chokes on -Wl,-G. The following line is correct:
13299 if test "$aix_use_runtimelinking" = yes; then
13300 shared_flag='${wl}-G'
13302 shared_flag='${wl}-bM:SRE'
13307 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13308 # It seems that -bexpall does not export symbols beginning with
13309 # underscore (_), so it is better to generate a list of symbols to
13311 always_export_symbols_CXX=yes
13312 if test "$aix_use_runtimelinking" = yes; then
13313 # Warning - without using the other runtime loading flags (-brtl),
13314 # -berok will link without error, but may produce a broken library.
13315 allow_undefined_flag_CXX='-berok'
13316 # Determine the default libpath from the value encoded in an empty
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_link") 2>conftest.er1
13342 grep -v '^ *+' conftest.er1 >conftest.err
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } && {
13347 test -z "$ac_cxx_werror_flag" ||
13348 test ! -s conftest.err
13349 } && test -s conftest$ac_exeext &&
13350 $as_test_x conftest$ac_exeext; then
13352 lt_aix_libpath_sed='
13353 /Import File Strings/,/^$/ {
13359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13360 # Check for a 64-bit object if we didn't find anything.
13361 if test -z "$aix_libpath"; then
13362 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13372 conftest$ac_exeext conftest.$ac_ext
13373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13375 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13377 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"
13379 if test "$host_cpu" = ia64; then
13380 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13381 allow_undefined_flag_CXX="-z nodefs"
13382 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"
13384 # Determine the default libpath from the value encoded in an
13385 # empty executable.
13386 cat >conftest.$ac_ext <<_ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13401 rm -f conftest.$ac_objext conftest$ac_exeext
13402 if { (ac_try="$ac_link"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_link") 2>conftest.er1
13410 grep -v '^ *+' conftest.er1 >conftest.err
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } && {
13415 test -z "$ac_cxx_werror_flag" ||
13416 test ! -s conftest.err
13417 } && test -s conftest$ac_exeext &&
13418 $as_test_x conftest$ac_exeext; then
13420 lt_aix_libpath_sed='
13421 /Import File Strings/,/^$/ {
13427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13428 # Check for a 64-bit object if we didn't find anything.
13429 if test -z "$aix_libpath"; then
13430 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13440 conftest$ac_exeext conftest.$ac_ext
13441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13443 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13444 # Warning - without using the other run time loading flags,
13445 # -berok will link without error, but may produce a broken library.
13446 no_undefined_flag_CXX=' ${wl}-bernotok'
13447 allow_undefined_flag_CXX=' ${wl}-berok'
13448 # Exported symbols can be pulled into shared objects from archives
13449 whole_archive_flag_spec_CXX='$convenience'
13450 archive_cmds_need_lc_CXX=yes
13451 # This is similar to how AIX traditionally builds its shared
13453 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'
13459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13460 allow_undefined_flag_CXX=unsupported
13461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13462 # support --undefined. This deserves some investigation. FIXME
13463 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13470 case $cc_basename in
13472 # FIXME: insert proper C++ library support
13478 cygwin* | mingw* | pw32* | cegcc*)
13479 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13480 # as there is no search path for DLLs.
13481 hardcode_libdir_flag_spec_CXX='-L$libdir'
13482 allow_undefined_flag_CXX=unsupported
13483 always_export_symbols_CXX=no
13484 enable_shared_with_static_runtimes_CXX=yes
13486 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13487 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'
13488 # If the export-symbols file already is a .def file (1st line
13489 # is EXPORTS), use it as is; otherwise, prepend...
13490 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13491 cp $export_symbols $output_objdir/$soname.def;
13493 echo EXPORTS > $output_objdir/$soname.def;
13494 cat $export_symbols >> $output_objdir/$soname.def;
13496 $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'
13501 darwin* | rhapsody*)
13504 archive_cmds_need_lc_CXX=no
13505 hardcode_direct_CXX=no
13506 hardcode_automatic_CXX=yes
13507 hardcode_shlibpath_var_CXX=unsupported
13508 whole_archive_flag_spec_CXX=''
13509 link_all_deplibs_CXX=yes
13510 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13511 case $cc_basename in
13512 ifort*) _lt_dar_can_shared=yes ;;
13513 *) _lt_dar_can_shared=$GCC ;;
13515 if test "$_lt_dar_can_shared" = "yes"; then
13516 output_verbose_link_cmd=echo
13517 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}"
13518 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13519 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}"
13520 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}"
13521 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13522 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}"
13523 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}"
13533 case $cc_basename in
13535 # FIXME: insert proper C++ library support
13539 # Green Hills C++ Compiler
13540 # FIXME: insert proper C++ library support
13544 # FIXME: insert proper C++ library support
13551 # C++ shared libraries reported to be fairly broken before
13557 archive_cmds_need_lc_CXX=no
13560 freebsd* | dragonfly*)
13561 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13570 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13571 hardcode_libdir_separator_CXX=:
13572 export_dynamic_flag_spec_CXX='${wl}-E'
13573 hardcode_direct_CXX=yes
13574 hardcode_minus_L_CXX=yes # Not in the search PATH,
13575 # but as the default
13576 # location of the library.
13578 case $cc_basename in
13580 # FIXME: insert proper C++ library support
13584 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'
13585 # Commands to make compiler produce verbose output that lists
13586 # what "hidden" libraries, object files and flags are used when
13587 # linking a shared library.
13589 # There doesn't appear to be a way to prevent this compiler from
13590 # explicitly linking system object files so we need to strip them
13591 # from the output so that they don't get included in the library
13593 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'
13596 if test "$GXX" = yes; then
13597 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'
13599 # FIXME: insert proper C++ library support
13607 if test $with_gnu_ld = no; then
13608 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13609 hardcode_libdir_separator_CXX=:
13615 export_dynamic_flag_spec_CXX='${wl}-E'
13621 hardcode_direct_CXX=no
13622 hardcode_shlibpath_var_CXX=no
13625 hardcode_direct_CXX=yes
13626 hardcode_direct_absolute_CXX=yes
13627 hardcode_minus_L_CXX=yes # Not in the search PATH,
13628 # but as the default
13629 # location of the library.
13633 case $cc_basename in
13635 # FIXME: insert proper C++ library support
13641 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650 # Commands to make compiler produce verbose output that lists
13651 # what "hidden" libraries, object files and flags are used when
13652 # linking a shared library.
13654 # There doesn't appear to be a way to prevent this compiler from
13655 # explicitly linking system object files so we need to strip them
13656 # from the output so that they don't get included in the library
13658 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'
13661 if test "$GXX" = yes; then
13662 if test $with_gnu_ld = no; then
13665 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671 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'
13676 # FIXME: insert proper C++ library support
13684 hardcode_direct_CXX=no
13685 hardcode_shlibpath_var_CXX=no
13686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13687 export_dynamic_flag_spec_CXX='${wl}-E'
13688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13689 # Instead, shared libraries are loaded at an image base (0x10000000 by
13690 # default) and relocated if they conflict, which is a slow very memory
13691 # consuming and fragmenting process. To avoid this, we pick a random,
13692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13694 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'
13695 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'
13698 case $cc_basename in
13701 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'
13703 # Archives containing C++ object files must be created using
13704 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13705 # necessary to make sure instantiated templates are included
13707 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13710 if test "$GXX" = yes; then
13711 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13714 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'
13717 link_all_deplibs_CXX=yes
13720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13721 hardcode_libdir_separator_CXX=:
13722 inherit_rpath_CXX=yes
13725 linux* | k*bsd*-gnu)
13726 case $cc_basename in
13728 # Kuck and Associates, Inc. (KAI) C++ Compiler
13730 # KCC will only create a shared library if the output file
13731 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13732 # to its proper name (with version) after linking.
13733 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'
13734 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'
13735 # Commands to make compiler produce verbose output that lists
13736 # what "hidden" libraries, object files and flags are used when
13737 # linking a shared library.
13739 # There doesn't appear to be a way to prevent this compiler from
13740 # explicitly linking system object files so we need to strip them
13741 # from the output so that they don't get included in the library
13743 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'
13745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13748 # Archives containing C++ object files must be created using
13749 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13750 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13755 # version 8.0 and above of icpc choke on multiply defined symbols
13756 # if we add $predep_objects and $postdep_objects, however 7.1 and
13757 # earlier do not add the objects themselves.
13758 case `$CC -V 2>&1` in
13760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13761 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'
13763 *) # Version 8.0 or newer
13766 ia64*) tmp_idyn=' -i_dynamic';;
13768 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13769 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'
13772 archive_cmds_need_lc_CXX=no
13773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13775 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13778 # Portland Group C++ compiler
13780 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13781 prelink_cmds_CXX='tpldir=Template.dir~
13783 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13784 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13785 old_archive_cmds_CXX='tpldir=Template.dir~
13787 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13788 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13790 archive_cmds_CXX='tpldir=Template.dir~
13792 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13793 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13794 archive_expsym_cmds_CXX='tpldir=Template.dir~
13796 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13797 $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'
13799 *) # Version 6 will use weak symbols
13800 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13801 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'
13805 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13807 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'
13811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812 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'
13814 runpath_var=LD_RUN_PATH
13815 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13816 hardcode_libdir_separator_CXX=:
13818 # Commands to make compiler produce verbose output that lists
13819 # what "hidden" libraries, object files and flags are used when
13820 # linking a shared library.
13822 # There doesn't appear to be a way to prevent this compiler from
13823 # explicitly linking system object files so we need to strip them
13824 # from the output so that they don't get included in the library
13826 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'
13829 # IBM XL 8.0 on PPC, with GNU ld
13830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13832 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13833 if test "x$supports_anon_versioning" = xyes; then
13834 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13836 echo "local: *; };" >> $output_objdir/$libname.ver~
13837 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13841 case `$CC -V 2>&1 | sed 5q` in
13844 no_undefined_flag_CXX=' -zdefs'
13845 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13846 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'
13847 hardcode_libdir_flag_spec_CXX='-R$libdir'
13848 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'
13849 compiler_needs_object_CXX=yes
13851 # Not sure whether something based on
13852 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13854 output_verbose_link_cmd='echo'
13856 # Archives containing C++ object files must be created using
13857 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13858 # necessary to make sure instantiated templates are included
13860 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13868 # FIXME: insert proper C++ library support
13873 # FIXME: insert proper C++ library support
13878 case $cc_basename in
13880 # FIXME: insert proper C++ library support
13884 # FIXME: insert proper C++ library support
13891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13892 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13894 hardcode_libdir_flag_spec_CXX='-R$libdir'
13895 hardcode_direct_CXX=yes
13896 hardcode_shlibpath_var_CXX=no
13898 # Workaround some broken pre-1.5 toolchains
13899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13907 # C++ shared libraries are fairly broken
13912 if test -f /usr/libexec/ld.so; then
13913 hardcode_direct_CXX=yes
13914 hardcode_shlibpath_var_CXX=no
13915 hardcode_direct_absolute_CXX=yes
13916 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13919 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13920 export_dynamic_flag_spec_CXX='${wl}-E'
13921 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13923 output_verbose_link_cmd=echo
13929 osf3* | osf4* | osf5*)
13930 case $cc_basename in
13932 # Kuck and Associates, Inc. (KAI) C++ Compiler
13934 # KCC will only create a shared library if the output file
13935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13936 # to its proper name (with version) after linking.
13937 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'
13939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13940 hardcode_libdir_separator_CXX=:
13942 # Archives containing C++ object files must be created using
13943 # the KAI C++ compiler.
13945 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13946 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13950 # Rational C++ 2.4.1
13951 # FIXME: insert proper C++ library support
13957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13958 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'
13959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13962 allow_undefined_flag_CXX=' -expect_unresolved \*'
13963 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'
13964 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13965 echo "-hidden">> $lib.exp~
13966 $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~
13968 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13972 hardcode_libdir_separator_CXX=:
13974 # Commands to make compiler produce verbose output that lists
13975 # what "hidden" libraries, object files and flags are used when
13976 # linking a shared library.
13978 # There doesn't appear to be a way to prevent this compiler from
13979 # explicitly linking system object files so we need to strip them
13980 # from the output so that they don't get included in the library
13982 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'
13985 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13986 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13989 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'
13992 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'
13996 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13997 hardcode_libdir_separator_CXX=:
13999 # Commands to make compiler produce verbose output that lists
14000 # what "hidden" libraries, object files and flags are used when
14001 # linking a shared library.
14002 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14005 # FIXME: insert proper C++ library support
14013 # FIXME: insert proper C++ library support
14018 case $cc_basename in
14021 # FIXME: insert proper C++ library support
14026 # FIXME: insert proper C++ library support
14030 # FIXME: insert proper C++ library support
14037 case $cc_basename in
14039 # Sun C++ 4.2, 5.x and Centerline C++
14040 archive_cmds_need_lc_CXX=yes
14041 no_undefined_flag_CXX=' -zdefs'
14042 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14043 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14044 $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'
14046 hardcode_libdir_flag_spec_CXX='-R$libdir'
14047 hardcode_shlibpath_var_CXX=no
14049 solaris2.[0-5] | solaris2.[0-5].*) ;;
14051 # The compiler driver will combine and reorder linker options,
14052 # but understands `-z linker_flag'.
14053 # Supported since Solaris 2.6 (maybe 2.5.1?)
14054 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14057 link_all_deplibs_CXX=yes
14059 output_verbose_link_cmd='echo'
14061 # Archives containing C++ object files must be created using
14062 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14063 # necessary to make sure instantiated templates are included
14065 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14068 # Green Hills C++ Compiler
14069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14071 # The C++ compiler must be used to create the archive.
14072 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14075 # GNU C++ compiler with Solaris linker
14076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14077 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14078 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14079 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14080 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14081 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14083 # Commands to make compiler produce verbose output that lists
14084 # what "hidden" libraries, object files and flags are used when
14085 # linking a shared library.
14086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14088 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14090 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14091 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14092 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14094 # Commands to make compiler produce verbose output that lists
14095 # what "hidden" libraries, object files and flags are used when
14096 # linking a shared library.
14097 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14100 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14102 solaris2.[0-5] | solaris2.[0-5].*) ;;
14104 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14112 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14113 no_undefined_flag_CXX='${wl}-z,text'
14114 archive_cmds_need_lc_CXX=no
14115 hardcode_shlibpath_var_CXX=no
14116 runpath_var='LD_RUN_PATH'
14118 case $cc_basename in
14120 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14121 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14125 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14130 sysv5* | sco3.2v5* | sco5v6*)
14131 # Note: We can NOT use -z defs as we might desire, because we do not
14132 # link with -lc, and that would cause any symbols used from libc to
14133 # always be unresolved, which means just about no library would
14134 # ever link correctly. If we're not using GNU ld we use -z text
14135 # though, which does catch some bad symbols but isn't as heavy-handed
14137 no_undefined_flag_CXX='${wl}-z,text'
14138 allow_undefined_flag_CXX='${wl}-z,nodefs'
14139 archive_cmds_need_lc_CXX=no
14140 hardcode_shlibpath_var_CXX=no
14141 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14142 hardcode_libdir_separator_CXX=':'
14143 link_all_deplibs_CXX=yes
14144 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14145 runpath_var='LD_RUN_PATH'
14147 case $cc_basename in
14149 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14150 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14154 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14160 case $cc_basename in
14162 # NonStop-UX NCC 3.20
14163 # FIXME: insert proper C++ library support
14167 # FIXME: insert proper C++ library support
14174 # FIXME: insert proper C++ library support
14179 # FIXME: insert proper C++ library support
14184 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14185 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14186 test "$ld_shlibs_CXX" = no && can_build_shared=no
14192 ## There is no encapsulation within the following macros, do not change
14193 ## the running order or otherwise move them around unless you know exactly
14194 ## what you are doing...
14195 # Dependencies to place before and after the object being linked:
14196 predep_objects_CXX=
14197 postdep_objects_CXX=
14200 compiler_lib_search_path_CXX=
14202 cat > conftest.$ac_ext <<_LT_EOF
14206 Foo (void) { a = 0; }
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213 (eval $ac_compile) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; then
14217 # Parse the compiler output and extract the necessary
14218 # objects, libraries and library flags.
14220 # Sentinel used to keep track of whether or not we are before
14221 # the conftest object file.
14222 pre_test_object_deps_done=no
14224 for p in `eval "$output_verbose_link_cmd"`; do
14228 # Some compilers place space between "-{L,R}" and the path.
14229 # Remove the space.
14230 if test $p = "-L" ||
14231 test $p = "-R"; then
14238 if test "$pre_test_object_deps_done" = no; then
14241 # Internal compiler library paths should come after those
14242 # provided the user. The postdeps already come after the
14243 # user supplied libs so there is no need to process them.
14244 if test -z "$compiler_lib_search_path_CXX"; then
14245 compiler_lib_search_path_CXX="${prev}${p}"
14247 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14250 # The "-l" case would never come before the object being
14251 # linked, so don't bother handling this case.
14254 if test -z "$postdeps_CXX"; then
14255 postdeps_CXX="${prev}${p}"
14257 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14263 # This assumes that the test object file only shows up
14264 # once in the compiler output.
14265 if test "$p" = "conftest.$objext"; then
14266 pre_test_object_deps_done=yes
14270 if test "$pre_test_object_deps_done" = no; then
14271 if test -z "$predep_objects_CXX"; then
14272 predep_objects_CXX="$p"
14274 predep_objects_CXX="$predep_objects_CXX $p"
14277 if test -z "$postdep_objects_CXX"; then
14278 postdep_objects_CXX="$p"
14280 postdep_objects_CXX="$postdep_objects_CXX $p"
14285 *) ;; # Ignore the rest.
14293 echo "libtool.m4: error: problem compiling CXX test program"
14296 $RM -f confest.$objext
14298 # PORTME: override above test on systems where it is broken
14301 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14302 # hack all around it, let's just trust "g++" to DTRT.
14303 predep_objects_CXX=
14304 postdep_objects_CXX=
14309 case `$CC -V 2>&1 | sed 5q` in
14313 # The more standards-conforming stlport4 library is
14314 # incompatible with the Cstd library. Avoid specifying
14315 # it if it's in CXXFLAGS. Ignore libCrun as
14316 # -library=stlport4 depends on it.
14317 case " $CXX $CXXFLAGS " in
14318 *" -library=stlport4 "*)
14319 solaris_use_stlport4=yes
14323 if test "$solaris_use_stlport4" != yes; then
14324 postdeps_CXX='-library=Cstd -library=Crun'
14331 case $cc_basename in
14333 # The more standards-conforming stlport4 library is
14334 # incompatible with the Cstd library. Avoid specifying
14335 # it if it's in CXXFLAGS. Ignore libCrun as
14336 # -library=stlport4 depends on it.
14337 case " $CXX $CXXFLAGS " in
14338 *" -library=stlport4 "*)
14339 solaris_use_stlport4=yes
14343 # Adding this requires a known-good setup of shared libraries for
14344 # Sun compiler versions before 5.6, else PIC objects from an old
14345 # archive will be linked into the output, leading to subtle bugs.
14346 if test "$solaris_use_stlport4" != yes; then
14347 postdeps_CXX='-library=Cstd -library=Crun'
14355 case " $postdeps_CXX " in
14356 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14358 compiler_lib_search_dirs_CXX=
14359 if test -n "${compiler_lib_search_path_CXX}"; then
14360 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14393 lt_prog_compiler_wl_CXX=
14394 lt_prog_compiler_pic_CXX=
14395 lt_prog_compiler_static_CXX=
14397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14400 # C++ specific cases for pic, static, wl, etc.
14401 if test "$GXX" = yes; then
14402 lt_prog_compiler_wl_CXX='-Wl,'
14403 lt_prog_compiler_static_CXX='-static'
14407 # All AIX code is PIC.
14408 if test "$host_cpu" = ia64; then
14409 # AIX 5 now supports IA64 processor
14410 lt_prog_compiler_static_CXX='-Bstatic'
14417 # see comment about AmigaOS4 .so support
14418 lt_prog_compiler_pic_CXX='-fPIC'
14421 # FIXME: we need at least 68020 code to build shared libraries, but
14422 # adding the `-m68020' flag to GCC prevents building anything better,
14424 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14430 # PIC is the default for these OSes.
14432 mingw* | cygwin* | os2* | pw32* | cegcc*)
14433 # This hack is so that the source file can tell whether it is being
14434 # built for inclusion in a dll (and should export symbols for example).
14435 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14436 # (--disable-auto-import) libraries
14437 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14439 darwin* | rhapsody*)
14440 # PIC is the default on this platform
14441 # Common symbols not allowed in MH_DYLIB files
14442 lt_prog_compiler_pic_CXX='-fno-common'
14445 # DJGPP does not support shared libraries at all
14446 lt_prog_compiler_pic_CXX=
14449 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14450 # Instead, we relocate shared libraries at runtime.
14453 if test -d /usr/nec; then
14454 lt_prog_compiler_pic_CXX=-Kconform_pic
14458 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14459 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14460 # sets the default TLS model and affects inlining.
14465 lt_prog_compiler_pic_CXX='-fPIC'
14470 # QNX uses GNU C++, but need to define -shared option too, otherwise
14471 # it will coredump.
14472 lt_prog_compiler_pic_CXX='-fPIC -shared'
14475 lt_prog_compiler_pic_CXX='-fPIC'
14481 # All AIX code is PIC.
14482 if test "$host_cpu" = ia64; then
14483 # AIX 5 now supports IA64 processor
14484 lt_prog_compiler_static_CXX='-Bstatic'
14486 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14490 case $cc_basename in
14492 # Green Hills C++ Compiler
14493 # _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"
14498 case $cc_basename in
14500 lt_prog_compiler_pic_CXX='-KPIC'
14503 # Green Hills C++ Compiler
14504 lt_prog_compiler_pic_CXX='-pic'
14510 freebsd* | dragonfly*)
14511 # FreeBSD uses GNU C++
14513 hpux9* | hpux10* | hpux11*)
14514 case $cc_basename in
14516 lt_prog_compiler_wl_CXX='-Wl,'
14517 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14518 if test "$host_cpu" != ia64; then
14519 lt_prog_compiler_pic_CXX='+Z'
14523 lt_prog_compiler_wl_CXX='-Wl,'
14524 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14530 lt_prog_compiler_pic_CXX='+Z'
14539 # This is c89, which is MS Visual C++ (no shared libs)
14540 # Anyone wants to do a port?
14542 irix5* | irix6* | nonstopux*)
14543 case $cc_basename in
14545 lt_prog_compiler_wl_CXX='-Wl,'
14546 lt_prog_compiler_static_CXX='-non_shared'
14547 # CC pic flag -KPIC is the default.
14553 linux* | k*bsd*-gnu)
14554 case $cc_basename in
14557 lt_prog_compiler_wl_CXX='--backend -Wl,'
14558 lt_prog_compiler_pic_CXX='-fPIC'
14561 # old Intel C++ for x86_64 which still supported -KPIC.
14562 lt_prog_compiler_wl_CXX='-Wl,'
14563 lt_prog_compiler_pic_CXX='-KPIC'
14564 lt_prog_compiler_static_CXX='-static'
14567 # Intel C++, used to be incompatible with GCC.
14568 # ICC 10 doesn't accept -KPIC any more.
14569 lt_prog_compiler_wl_CXX='-Wl,'
14570 lt_prog_compiler_pic_CXX='-fPIC'
14571 lt_prog_compiler_static_CXX='-static'
14574 # Portland Group C++ compiler
14575 lt_prog_compiler_wl_CXX='-Wl,'
14576 lt_prog_compiler_pic_CXX='-fpic'
14577 lt_prog_compiler_static_CXX='-Bstatic'
14581 # Make sure the PIC flag is empty. It appears that all Alpha
14582 # Linux and Compaq Tru64 Unix objects are PIC.
14583 lt_prog_compiler_pic_CXX=
14584 lt_prog_compiler_static_CXX='-non_shared'
14587 # IBM XL 8.0 on PPC
14588 lt_prog_compiler_wl_CXX='-Wl,'
14589 lt_prog_compiler_pic_CXX='-qpic'
14590 lt_prog_compiler_static_CXX='-qstaticlink'
14593 case `$CC -V 2>&1 | sed 5q` in
14596 lt_prog_compiler_pic_CXX='-KPIC'
14597 lt_prog_compiler_static_CXX='-Bstatic'
14598 lt_prog_compiler_wl_CXX='-Qoption ld '
14609 case $cc_basename in
14611 lt_prog_compiler_pic_CXX='-W c,exportall'
14620 # QNX uses GNU C++, but need to define -shared option too, otherwise
14621 # it will coredump.
14622 lt_prog_compiler_pic_CXX='-fPIC -shared'
14624 osf3* | osf4* | osf5*)
14625 case $cc_basename in
14627 lt_prog_compiler_wl_CXX='--backend -Wl,'
14630 # Rational C++ 2.4.1
14631 lt_prog_compiler_pic_CXX='-pic'
14634 # Digital/Compaq C++
14635 lt_prog_compiler_wl_CXX='-Wl,'
14636 # Make sure the PIC flag is empty. It appears that all Alpha
14637 # Linux and Compaq Tru64 Unix objects are PIC.
14638 lt_prog_compiler_pic_CXX=
14639 lt_prog_compiler_static_CXX='-non_shared'
14648 case $cc_basename in
14650 # Sun C++ 4.2, 5.x and Centerline C++
14651 lt_prog_compiler_pic_CXX='-KPIC'
14652 lt_prog_compiler_static_CXX='-Bstatic'
14653 lt_prog_compiler_wl_CXX='-Qoption ld '
14656 # Green Hills C++ Compiler
14657 lt_prog_compiler_pic_CXX='-PIC'
14664 case $cc_basename in
14667 lt_prog_compiler_pic_CXX='-pic'
14668 lt_prog_compiler_static_CXX='-Bstatic'
14672 lt_prog_compiler_pic_CXX='-pic'
14678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14679 case $cc_basename in
14681 lt_prog_compiler_wl_CXX='-Wl,'
14682 lt_prog_compiler_pic_CXX='-KPIC'
14683 lt_prog_compiler_static_CXX='-Bstatic'
14688 case $cc_basename in
14690 # NonStop-UX NCC 3.20
14691 lt_prog_compiler_pic_CXX='-KPIC'
14700 lt_prog_compiler_can_build_shared_CXX=no
14706 # For platforms which do not support PIC, -DPIC is meaningless:
14708 lt_prog_compiler_pic_CXX=
14711 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14714 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14715 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14720 # Check to make sure the PIC flag actually works.
14722 if test -n "$lt_prog_compiler_pic_CXX"; then
14723 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14724 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14725 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 lt_cv_prog_compiler_pic_works_CXX=no
14729 ac_outfile=conftest.$ac_objext
14730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14731 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14732 # Insert the option either (1) after the last *FLAGS variable, or
14733 # (2) before a word containing "conftest.", or (3) at the end.
14734 # Note that $ac_compile itself does not contain backslashes and begins
14735 # with a dollar sign (not a hyphen), so the echo should work correctly.
14736 # The option is referenced via a variable to avoid confusing sed.
14737 lt_compile=`echo "$ac_compile" | $SED \
14738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14740 -e 's:$: $lt_compiler_flag:'`
14741 (eval echo "\"\$as_me:14741: $lt_compile\"" >&5)
14742 (eval "$lt_compile" 2>conftest.err)
14744 cat conftest.err >&5
14745 echo "$as_me:14745: \$? = $ac_status" >&5
14746 if (exit $ac_status) && test -s "$ac_outfile"; then
14747 # The compiler can only warn and ignore the option if not recognized
14748 # So say no if there are warnings other than the usual output.
14749 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14752 lt_cv_prog_compiler_pic_works_CXX=yes
14758 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14759 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14761 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14762 case $lt_prog_compiler_pic_CXX in
14764 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14767 lt_prog_compiler_pic_CXX=
14768 lt_prog_compiler_can_build_shared_CXX=no
14776 # Check to make sure the static flag actually works.
14778 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14781 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 lt_cv_prog_compiler_static_works_CXX=no
14785 save_LDFLAGS="$LDFLAGS"
14786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14789 # The linker can only warn and ignore the option if not recognized
14790 # So say no if there are warnings
14791 if test -s conftest.err; then
14792 # Append any errors to the config.log.
14793 cat conftest.err 1>&5
14794 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14796 if diff conftest.exp conftest.er2 >/dev/null; then
14797 lt_cv_prog_compiler_static_works_CXX=yes
14800 lt_cv_prog_compiler_static_works_CXX=yes
14804 LDFLAGS="$save_LDFLAGS"
14807 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14808 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14810 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14813 lt_prog_compiler_static_CXX=
14819 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14821 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 lt_cv_prog_compiler_c_o_CXX=no
14825 $RM -r conftest 2>/dev/null
14829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14831 lt_compiler_flag="-o out/conftest2.$ac_objext"
14832 # Insert the option either (1) after the last *FLAGS variable, or
14833 # (2) before a word containing "conftest.", or (3) at the end.
14834 # Note that $ac_compile itself does not contain backslashes and begins
14835 # with a dollar sign (not a hyphen), so the echo should work correctly.
14836 lt_compile=`echo "$ac_compile" | $SED \
14837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14839 -e 's:$: $lt_compiler_flag:'`
14840 (eval echo "\"\$as_me:14840: $lt_compile\"" >&5)
14841 (eval "$lt_compile" 2>out/conftest.err)
14843 cat out/conftest.err >&5
14844 echo "$as_me:14844: \$? = $ac_status" >&5
14845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14847 # The compiler can only warn and ignore the option if not recognized
14848 # So say no if there are warnings
14849 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14852 lt_cv_prog_compiler_c_o_CXX=yes
14857 # SGI C++ compiler will create directory out/ii_files/ for
14858 # template instantiation
14859 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14860 $RM out/* && rmdir out
14866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14871 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14873 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 lt_cv_prog_compiler_c_o_CXX=no
14877 $RM -r conftest 2>/dev/null
14881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14883 lt_compiler_flag="-o out/conftest2.$ac_objext"
14884 # Insert the option either (1) after the last *FLAGS variable, or
14885 # (2) before a word containing "conftest.", or (3) at the end.
14886 # Note that $ac_compile itself does not contain backslashes and begins
14887 # with a dollar sign (not a hyphen), so the echo should work correctly.
14888 lt_compile=`echo "$ac_compile" | $SED \
14889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14891 -e 's:$: $lt_compiler_flag:'`
14892 (eval echo "\"\$as_me:14892: $lt_compile\"" >&5)
14893 (eval "$lt_compile" 2>out/conftest.err)
14895 cat out/conftest.err >&5
14896 echo "$as_me:14896: \$? = $ac_status" >&5
14897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14899 # The compiler can only warn and ignore the option if not recognized
14900 # So say no if there are warnings
14901 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14904 lt_cv_prog_compiler_c_o_CXX=yes
14909 # SGI C++ compiler will create directory out/ii_files/ for
14910 # template instantiation
14911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14912 $RM out/* && rmdir out
14918 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14919 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14924 hard_links="nottested"
14925 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14926 # do not overwrite the value of need_locks provided by the user
14927 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14933 ln conftest.a conftest.b 2>&5 || hard_links=no
14934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14935 { echo "$as_me:$LINENO: result: $hard_links" >&5
14936 echo "${ECHO_T}$hard_links" >&6; }
14937 if test "$hard_links" = no; then
14938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14948 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14949 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14951 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954 # If we're using GNU nm, then we don't want the "-C" option.
14955 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14956 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14957 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'
14959 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'
14963 export_symbols_cmds_CXX="$ltdll_cmds"
14965 cygwin* | mingw* | cegcc*)
14966 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'
14969 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14972 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14974 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14975 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14976 test "$ld_shlibs_CXX" = no && can_build_shared=no
14978 with_gnu_ld_CXX=$with_gnu_ld
14986 # Do we need to explicitly link libc?
14988 case "x$archive_cmds_need_lc_CXX" in
14990 # Assume -lc should be added
14991 archive_cmds_need_lc_CXX=yes
14993 if test "$enable_shared" = yes && test "$GCC" = yes; then
14994 case $archive_cmds_CXX in
14996 # FIXME: we may have to deal with multi-command sequences.
14999 # Test whether the compiler implicitly links with -lc since on some
15000 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15001 # to ld, don't add -lc before -lgcc.
15002 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15003 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15008 (eval $ac_compile) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } 2>conftest.err; then
15014 libobjs=conftest.$ac_objext
15016 wl=$lt_prog_compiler_wl_CXX
15017 pic_flag=$lt_prog_compiler_pic_CXX
15023 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15024 allow_undefined_flag_CXX=
15025 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15026 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }
15031 archive_cmds_need_lc_CXX=no
15033 archive_cmds_need_lc_CXX=yes
15035 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15037 cat conftest.err 1>&5
15040 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15041 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15111 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15112 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15114 library_names_spec=
15115 libname_spec='lib$name'
15119 postuninstall_cmds=
15123 shlibpath_overrides_runpath=unknown
15125 dynamic_linker="$host_os ld.so"
15126 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15127 need_lib_prefix=unknown
15128 hardcode_into_libs=no
15130 # when you set need_version to no, make sure it does not cause -set_version
15131 # flags to be left without arguments
15132 need_version=unknown
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15138 shlibpath_var=LIBPATH
15140 # AIX 3 has no versioning support, so we append a major version to the name.
15141 soname_spec='${libname}${release}${shared_ext}$major'
15148 hardcode_into_libs=yes
15149 if test "$host_cpu" = ia64; then
15150 # AIX 5 supports IA64
15151 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15152 shlibpath_var=LD_LIBRARY_PATH
15154 # With GCC up to 2.95.x, collect2 would create an import file
15155 # for dependence libraries. The import file would start with
15156 # the line `#! .'. This would cause the generated library to
15157 # depend on `.', always an invalid library. This was fixed in
15158 # development snapshots of GCC prior to 3.0.
15160 aix4 | aix4.[01] | aix4.[01].*)
15161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15163 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15166 can_build_shared=no
15170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15171 # soname into executable. Probably we can add versioning support to
15172 # collect2, so additional links can be useful in future.
15173 if test "$aix_use_runtimelinking" = yes; then
15174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15175 # instead of lib<name>.a to let people know that these are not
15176 # typical AIX shared libraries.
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 # We preserve .a as extension for shared libraries through AIX4.2
15180 # and later when we are not doing run time linking.
15181 library_names_spec='${libname}${release}.a $libname.a'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15184 shlibpath_var=LIBPATH
15191 # Since July 2007 AmigaOS4 officially supports .so libraries.
15192 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 library_names_spec='$libname.ixlibrary $libname.a'
15197 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15198 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'
15204 library_names_spec='${libname}${shared_ext}'
15205 dynamic_linker="$host_os ld.so"
15206 shlibpath_var=LIBRARY_PATH
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15218 # the default ld.so.conf also contains /usr/contrib/lib and
15219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15220 # libtool to hard-code these into programs
15223 cygwin* | mingw* | pw32* | cegcc*)
15224 version_type=windows
15229 case $GCC,$host_os in
15230 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15231 library_names_spec='$libname.dll.a'
15232 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15233 postinstall_cmds='base_file=`basename \${file}`~
15234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15235 dldir=$destdir/`dirname \$dlpath`~
15236 test -d \$dldir || mkdir -p \$dldir~
15237 $install_prog $dir/$dlname \$dldir/$dlname~
15238 chmod a+x \$dldir/$dlname~
15239 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15240 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15242 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15243 dlpath=$dir/\$dldll~
15245 shlibpath_overrides_runpath=yes
15249 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15250 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15251 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15254 # MinGW DLLs use traditional 'lib' prefix
15255 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15256 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15257 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15258 # It is most probably a Windows format PATH printed by
15259 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15260 # path with ; separators, and with drive letters. We can handle the
15261 # drive letters (cygwin fileutils understands them), so leave them,
15262 # especially as we might pass files found there to a mingw objdump,
15263 # which wouldn't understand a cygwinified path. Ahh.
15264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15270 # pw32 DLLs use 'pw' prefix rather than 'lib'
15271 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15277 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15280 dynamic_linker='Win32 ld.exe'
15281 # FIXME: first we should search . and the directory the executable is in
15285 darwin* | rhapsody*)
15286 dynamic_linker="$host_os dyld"
15287 version_type=darwin
15290 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15291 soname_spec='${libname}${release}${major}$shared_ext'
15292 shlibpath_overrides_runpath=yes
15293 shlibpath_var=DYLD_LIBRARY_PATH
15294 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15296 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 shlibpath_var=LD_LIBRARY_PATH
15312 freebsd* | dragonfly*)
15313 # DragonFly does not have aout. When/if they implement a new
15314 # versioning mechanism, adjust this.
15315 if test -x /usr/bin/objformat; then
15316 objformat=`/usr/bin/objformat`
15319 freebsd[123]*) objformat=aout ;;
15320 *) objformat=elf ;;
15323 version_type=freebsd-$objformat
15324 case $version_type in
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15335 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes
15340 freebsd3.[01]* | freebsdelf3.[01]*)
15341 shlibpath_overrides_runpath=yes
15342 hardcode_into_libs=yes
15344 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15345 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15346 shlibpath_overrides_runpath=no
15347 hardcode_into_libs=yes
15349 *) # from 4.6 on, and DragonFly
15350 shlibpath_overrides_runpath=yes
15351 hardcode_into_libs=yes
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 hardcode_into_libs=yes
15366 hpux9* | hpux10* | hpux11*)
15367 # Give a soname corresponding to the major version so that dld.sl refuses to
15368 # link against other versions.
15375 hardcode_into_libs=yes
15376 dynamic_linker="$host_os dld.so"
15377 shlibpath_var=LD_LIBRARY_PATH
15378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 if test "X$HPUX_IA64_MODE" = X32; then
15382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15390 hardcode_into_libs=yes
15391 dynamic_linker="$host_os dld.sl"
15392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15401 dynamic_linker="$host_os dld.sl"
15402 shlibpath_var=SHLIB_PATH
15403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15408 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15409 postinstall_cmds='chmod 555 $lib'
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 shlibpath_overrides_runpath=no
15421 hardcode_into_libs=yes
15424 irix5* | irix6* | nonstopux*)
15426 nonstopux*) version_type=nonstopux ;;
15428 if test "$lt_cv_prog_gnu_ld" = yes; then
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15439 irix5* | nonstopux*)
15440 libsuff= shlibsuff=
15443 case $LD in # libtool.m4 will add one of these switches to LD
15444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15445 libsuff= shlibsuff= libmagic=32-bit;;
15446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15447 libsuff=32 shlibsuff=N32 libmagic=N32;;
15448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15450 *) libsuff= shlibsuff= libmagic=never-match;;
15454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15455 shlibpath_overrides_runpath=no
15456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15458 hardcode_into_libs=yes
15461 # No shared lib support for Linux oldld, aout, or coff.
15462 linux*oldld* | linux*aout* | linux*coff*)
15466 # This must be Linux ELF.
15467 linux* | k*bsd*-gnu)
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=no
15476 # Some binutils ld are patched to set DT_RUNPATH
15477 save_LDFLAGS=$LDFLAGS
15478 save_libdir=$libdir
15479 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15480 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15481 cat >conftest.$ac_ext <<_ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h. */
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503 (eval "$ac_link") 2>conftest.er1
15505 grep -v '^ *+' conftest.er1 >conftest.err
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && {
15510 test -z "$ac_cxx_werror_flag" ||
15511 test ! -s conftest.err
15512 } && test -s conftest$ac_exeext &&
15513 $as_test_x conftest$ac_exeext; then
15514 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15515 shlibpath_overrides_runpath=yes
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15526 conftest$ac_exeext conftest.$ac_ext
15527 LDFLAGS=$save_LDFLAGS
15528 libdir=$save_libdir
15530 # This implies no fast_install, which is unacceptable.
15531 # Some rework will be needed to allow for fast_install
15532 # before this can be enabled.
15533 hardcode_into_libs=yes
15535 # Append ld.so.conf contents to the search path
15536 if test -f /etc/ld.so.conf; then
15537 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' ' '`
15538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15541 # We used to test for /lib/ld.so.1 and disable shared libraries on
15542 # powerpc, because MkLinux only supported shared libraries with the
15543 # GNU dynamic linker. Since this was broken with cross compilers,
15544 # most powerpc-linux boxes support dynamic linking these days and
15545 # people can always --disable-shared, the test was removed, and we
15546 # assume the GNU/Linux dynamic linker is in use.
15547 dynamic_linker='GNU/Linux ld.so'
15554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15557 dynamic_linker='NetBSD (a.out) ld.so'
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 dynamic_linker='NetBSD ld.elf_so'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=yes
15565 hardcode_into_libs=yes
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=yes
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 shlibpath_var=LD_LIBRARY_PATH
15582 shlibpath_overrides_runpath=no
15583 hardcode_into_libs=yes
15584 dynamic_linker='ldqnx.so'
15589 sys_lib_dlsearch_path_spec="/usr/lib"
15591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15593 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15594 *) need_version=no ;;
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15601 openbsd2.[89] | openbsd2.[89].*)
15602 shlibpath_overrides_runpath=no
15605 shlibpath_overrides_runpath=yes
15609 shlibpath_overrides_runpath=yes
15614 libname_spec='$name'
15617 library_names_spec='$libname${shared_ext} $libname.a'
15618 dynamic_linker='OS/2 ld.exe'
15619 shlibpath_var=LIBPATH
15622 osf3* | osf4* | osf5*)
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15630 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath=yes
15645 hardcode_into_libs=yes
15646 # ldd complains unless libraries are executable
15647 postinstall_cmds='chmod +x $lib'
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15654 shlibpath_var=LD_LIBRARY_PATH
15655 shlibpath_overrides_runpath=yes
15656 if test "$with_gnu_ld" = yes; then
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 soname_spec='${libname}${release}${shared_ext}$major'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 case $host_vendor in
15669 shlibpath_overrides_runpath=no
15671 runpath_var=LD_RUN_PATH
15679 shlibpath_overrides_runpath=no
15680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15686 if test -d /usr/nec ;then
15688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15689 soname_spec='$libname${shared_ext}.$major'
15690 shlibpath_var=LD_LIBRARY_PATH
15694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15695 version_type=freebsd-elf
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15699 soname_spec='${libname}${release}${shared_ext}$major'
15700 shlibpath_var=LD_LIBRARY_PATH
15701 shlibpath_overrides_runpath=yes
15702 hardcode_into_libs=yes
15703 if test "$with_gnu_ld" = yes; then
15704 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15713 sys_lib_dlsearch_path_spec='/usr/lib'
15717 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 shlibpath_overrides_runpath=no
15724 hardcode_into_libs=yes
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730 soname_spec='${libname}${release}${shared_ext}$major'
15731 shlibpath_var=LD_LIBRARY_PATH
15738 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15739 echo "${ECHO_T}$dynamic_linker" >&6; }
15740 test "$dynamic_linker" = no && can_build_shared=no
15742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15743 if test "$GCC" = yes; then
15744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15747 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15748 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15750 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15751 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15789 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15790 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15791 hardcode_action_CXX=
15792 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15793 test -n "$runpath_var_CXX" ||
15794 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15796 # We can hardcode non-existent directories.
15797 if test "$hardcode_direct_CXX" != no &&
15798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15799 # have to relink, otherwise we might link with an installed library
15800 # when we should be linking with a yet-to-be-installed one
15801 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15802 test "$hardcode_minus_L_CXX" != no; then
15803 # Linking always hardcodes the temporary library directory.
15804 hardcode_action_CXX=relink
15806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15807 hardcode_action_CXX=immediate
15810 # We cannot hardcode anything, or else we can only hardcode existing
15812 hardcode_action_CXX=unsupported
15814 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15815 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15817 if test "$hardcode_action_CXX" = relink ||
15818 test "$inherit_rpath_CXX" = yes; then
15819 # Fast installation is not supported
15820 enable_fast_install=no
15821 elif test "$shlibpath_overrides_runpath" = yes ||
15822 test "$enable_shared" = no; then
15823 # Fast installation is not necessary
15824 enable_fast_install=needless
15833 fi # test -n "$compiler"
15839 with_gnu_ld=$lt_save_with_gnu_ld
15840 lt_cv_path_LDCXX=$lt_cv_path_LD
15841 lt_cv_path_LD=$lt_save_path_LD
15842 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15843 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15844 fi # test "$_lt_caught_CXX_error" != yes
15847 ac_cpp='$CPP $CPPFLAGS'
15848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15864 ac_config_commands="$ac_config_commands libtool"
15869 # Only expand once:
15874 if test x$use_libtool != xno; then
15875 DEFAULT_OBJECT_TYPE=".lo"
15876 DEFAULT_ARCHIVE_TYPE=".la"
15877 DEFAULT_SHARED_OBJECT_TYPE=".la"
15878 LIBTOOL="\$(LIBTOOL)"
15879 LIBTOOL_INSTALL_TARGET="libtool-install"
15880 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15881 LIBTOOL_CLEAN_TARGET="libtool-clean"
15882 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15884 DEFAULT_OBJECT_TYPE=".o"
15885 DEFAULT_ARCHIVE_TYPE=".a"
15886 DEFAULT_SHARED_OBJECT_TYPE=".so"
15887 LIBTOOL="# \$(LIBTOOL)"
15888 LIBTOOL_INSTALL_TARGET=""
15889 LIBTOOL_UNINSTALL_TARGET=""
15890 LIBTOOL_CLEAN_TARGET=""
15891 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15903 # Check whether --enable-includes was given.
15904 if test "${enable_includes+set}" = set; then
15905 enableval=$enable_includes;
15906 if test x$enableval = xyes; then
15907 install_includes=yes
15915 if test x$use_libtool != xno -a x$install_includes = xyes; then
15916 INCLUDE_INSTALL_TARGET="install-includes"
15917 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15919 INCLUDE_INSTALL_TARGET=""
15920 INCLUDE_UNINSTALL_TARGET=""
15926 { echo "$as_me:$LINENO: checking host system type" >&5
15927 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15928 if test "${ac_cv_host+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 if test "x$host_alias" = x; then
15932 ac_cv_host=$ac_cv_build
15934 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15935 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15936 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15937 { (exit 1); exit 1; }; }
15941 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15942 echo "${ECHO_T}$ac_cv_host" >&6; }
15943 case $ac_cv_host in
15945 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15946 echo "$as_me: error: invalid value of canonical host" >&2;}
15947 { (exit 1); exit 1; }; };;
15950 ac_save_IFS=$IFS; IFS='-'
15956 # Remember, the first character of IFS is used to create $*,
15957 # except with old shells:
15960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15964 *cygwin* ) CYGWIN=yes;;
15968 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15974 HAVE_SUN_OS_FALSE='#'
15976 HAVE_SUN_OS_TRUE='#'
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_SUN_OS 1
15988 HAVE_SUN_OS_FALSE='#'
15990 HAVE_SUN_OS_TRUE='#'
15995 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16001 HAVE_OSF1_OS_FALSE='#'
16003 HAVE_OSF1_OS_TRUE='#'
16004 HAVE_OSF1_OS_FALSE=
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_OSF1_OS 1
16015 HAVE_OSF1_OS_FALSE='#'
16017 HAVE_OSF1_OS_TRUE='#'
16018 HAVE_OSF1_OS_FALSE=
16022 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16028 HAVE_AIX_OS_FALSE='#'
16030 HAVE_AIX_OS_TRUE='#'
16033 cat >>confdefs.h <<\_ACEOF
16034 #define HAVE_AIX_OS 1
16042 HAVE_AIX_OS_FALSE='#'
16044 HAVE_AIX_OS_TRUE='#'
16049 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16055 HAVE_HPUX_OS_FALSE='#'
16057 HAVE_HPUX_OS_TRUE='#'
16058 HAVE_HPUX_OS_FALSE=
16060 cat >>confdefs.h <<\_ACEOF
16061 #define HAVE_HPUX_OS 1
16069 HAVE_HPUX_OS_FALSE='#'
16071 HAVE_HPUX_OS_TRUE='#'
16072 HAVE_HPUX_OS_FALSE=
16076 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16081 HAVE_LINUX_OS_TRUE=
16082 HAVE_LINUX_OS_FALSE='#'
16084 HAVE_LINUX_OS_TRUE='#'
16085 HAVE_LINUX_OS_FALSE=
16087 cat >>confdefs.h <<\_ACEOF
16088 #define HAVE_LINUX_OS 1
16095 HAVE_LINUX_OS_TRUE=
16096 HAVE_LINUX_OS_FALSE='#'
16098 HAVE_LINUX_OS_TRUE='#'
16099 HAVE_LINUX_OS_FALSE=
16103 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16108 HAVE_FREEBSD_OS_TRUE=
16109 HAVE_FREEBSD_OS_FALSE='#'
16111 HAVE_FREEBSD_OS_TRUE='#'
16112 HAVE_FREEBSD_OS_FALSE=
16114 cat >>confdefs.h <<\_ACEOF
16115 #define HAVE_FREEBSD_OS 1
16122 HAVE_FREEBSD_OS_TRUE=
16123 HAVE_FREEBSD_OS_FALSE='#'
16125 HAVE_FREEBSD_OS_TRUE='#'
16126 HAVE_FREEBSD_OS_FALSE=
16130 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16135 HAVE_NETBSD_OS_TRUE=
16136 HAVE_NETBSD_OS_FALSE='#'
16138 HAVE_NETBSD_OS_TRUE='#'
16139 HAVE_NETBSD_OS_FALSE=
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_NETBSD_OS 1
16149 HAVE_NETBSD_OS_TRUE=
16150 HAVE_NETBSD_OS_FALSE='#'
16152 HAVE_NETBSD_OS_TRUE='#'
16153 HAVE_NETBSD_OS_FALSE=
16157 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16162 HAVE_OPENBSD_OS_TRUE=
16163 HAVE_OPENBSD_OS_FALSE='#'
16165 HAVE_OPENBSD_OS_TRUE='#'
16166 HAVE_OPENBSD_OS_FALSE=
16168 cat >>confdefs.h <<\_ACEOF
16169 #define HAVE_OPENBSD_OS 1
16176 HAVE_OPENBSD_OS_TRUE=
16177 HAVE_OPENBSD_OS_FALSE='#'
16179 HAVE_OPENBSD_OS_TRUE='#'
16180 HAVE_OPENBSD_OS_FALSE=
16184 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16190 HAVE_BSDI_OS_FALSE='#'
16192 HAVE_BSDI_OS_TRUE='#'
16193 HAVE_BSDI_OS_FALSE=
16195 cat >>confdefs.h <<\_ACEOF
16196 #define HAVE_BSDI_OS 1
16204 HAVE_BSDI_OS_FALSE='#'
16206 HAVE_BSDI_OS_TRUE='#'
16207 HAVE_BSDI_OS_FALSE=
16211 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16217 HAVE_SGI_OS_FALSE='#'
16219 HAVE_SGI_OS_TRUE='#'
16222 cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_SGI_OS 1
16231 HAVE_SGI_OS_FALSE='#'
16233 HAVE_SGI_OS_TRUE='#'
16238 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16244 HAVE_IRIX_OS_FALSE='#'
16246 HAVE_IRIX_OS_TRUE='#'
16247 HAVE_IRIX_OS_FALSE=
16249 cat >>confdefs.h <<\_ACEOF
16250 #define HAVE_IRIX_OS 1
16258 HAVE_IRIX_OS_FALSE='#'
16260 HAVE_IRIX_OS_TRUE='#'
16261 HAVE_IRIX_OS_FALSE=
16265 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16270 HAVE_DARWIN_OS_TRUE=
16271 HAVE_DARWIN_OS_FALSE='#'
16273 HAVE_DARWIN_OS_TRUE='#'
16274 HAVE_DARWIN_OS_FALSE=
16276 cat >>confdefs.h <<\_ACEOF
16277 #define HAVE_DARWIN_OS 1
16284 HAVE_DARWIN_OS_TRUE=
16285 HAVE_DARWIN_OS_FALSE='#'
16287 HAVE_DARWIN_OS_TRUE='#'
16288 HAVE_DARWIN_OS_FALSE=
16293 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16294 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16295 if test "x$DISTNAME" != "x"
16297 echo "distname set to $DISTNAME"
16298 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16301 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16304 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16307 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16310 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16313 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16316 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16319 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16322 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16325 elif test -f /etc/SuSE-release
16328 elif test -d /etc/SuSEconfig
16331 elif test -f /etc/mandrake-release
16334 elif test -f /etc/whitebox-release
16337 elif test -f /etc/redhat-release
16340 elif test -f /etc/gentoo-release
16343 elif test -f /etc/debian_version
16346 elif test -f /etc/slackware-version
16349 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16352 elif test -f /etc/engarde-version
16355 elif test "$CYGWIN" = yes
16358 cat >>confdefs.h <<\_ACEOF
16359 #define HAVE_CYGWIN 1
16365 { echo "$as_me:$LINENO: result: done" >&5
16366 echo "${ECHO_T}done" >&6; }
16369 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16370 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16371 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16372 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 cat >conftest.make <<\_ACEOF
16378 @echo '@@@%%%=$(MAKE)=@@@%%%'
16380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16381 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16382 *@@@%%%=?*=@@@%%%*)
16383 eval ac_cv_prog_make_${ac_make}_set=yes;;
16385 eval ac_cv_prog_make_${ac_make}_set=no;;
16387 rm -f conftest.make
16389 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16390 { echo "$as_me:$LINENO: result: yes" >&5
16391 echo "${ECHO_T}yes" >&6; }
16394 { echo "$as_me:$LINENO: result: no" >&5
16395 echo "${ECHO_T}no" >&6; }
16396 SET_MAKE="MAKE=${MAKE-make}"
16402 if test -n "$ac_aux_dir"; then
16403 case "$ac_aux_dir" in
16404 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16405 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16408 if test -z "$MKINSTALLDIRS"; then
16409 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16414 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16415 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16416 # Check whether --enable-nls was given.
16417 if test "${enable_nls+set}" = set; then
16418 enableval=$enable_nls; USE_NLS=$enableval
16423 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16424 echo "${ECHO_T}$USE_NLS" >&6; }
16431 # Prepare PATH_SEPARATOR.
16432 # The user is always right.
16433 if test "${PATH_SEPARATOR+set}" != set; then
16434 echo "#! /bin/sh" >conf$$.sh
16435 echo "exit 0" >>conf$$.sh
16437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16445 # Find out how to test for executable files. Don't use a zero-byte file,
16446 # as systems may use methods other than mode bits to determine executability.
16447 cat >conf$$.file <<_ASEOF
16451 chmod +x conf$$.file
16452 if test -x conf$$.file >/dev/null 2>&1; then
16453 ac_executable_p="test -x"
16455 ac_executable_p="test -f"
16459 # Extract the first word of "msgfmt", so it can be a program name with args.
16460 set dummy msgfmt; ac_word=$2
16461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16463 if test "${ac_cv_path_MSGFMT+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16471 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16472 for ac_dir in $PATH; do
16474 test -z "$ac_dir" && ac_dir=.
16475 for ac_exec_ext in '' $ac_executable_extensions; do
16476 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16477 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16478 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16479 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16480 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16487 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16491 MSGFMT="$ac_cv_path_MSGFMT"
16492 if test "$MSGFMT" != ":"; then
16493 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16494 echo "${ECHO_T}$MSGFMT" >&6; }
16496 { echo "$as_me:$LINENO: result: no" >&5
16497 echo "${ECHO_T}no" >&6; }
16500 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16501 set dummy gmsgfmt; ac_word=$2
16502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16504 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16513 for as_dir in $PATH
16516 test -z "$as_dir" && as_dir=.
16517 for ac_exec_ext in '' $ac_executable_extensions; do
16518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16519 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16527 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16531 GMSGFMT=$ac_cv_path_GMSGFMT
16532 if test -n "$GMSGFMT"; then
16533 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16534 echo "${ECHO_T}$GMSGFMT" >&6; }
16536 { echo "$as_me:$LINENO: result: no" >&5
16537 echo "${ECHO_T}no" >&6; }
16543 # Prepare PATH_SEPARATOR.
16544 # The user is always right.
16545 if test "${PATH_SEPARATOR+set}" != set; then
16546 echo "#! /bin/sh" >conf$$.sh
16547 echo "exit 0" >>conf$$.sh
16549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16557 # Find out how to test for executable files. Don't use a zero-byte file,
16558 # as systems may use methods other than mode bits to determine executability.
16559 cat >conf$$.file <<_ASEOF
16563 chmod +x conf$$.file
16564 if test -x conf$$.file >/dev/null 2>&1; then
16565 ac_executable_p="test -x"
16567 ac_executable_p="test -f"
16571 # Extract the first word of "xgettext", so it can be a program name with args.
16572 set dummy xgettext; ac_word=$2
16573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16575 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 case "$XGETTEXT" in
16580 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16583 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16584 for ac_dir in $PATH; do
16586 test -z "$ac_dir" && ac_dir=.
16587 for ac_exec_ext in '' $ac_executable_extensions; do
16588 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16589 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16590 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16591 (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
16592 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16599 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16603 XGETTEXT="$ac_cv_path_XGETTEXT"
16604 if test "$XGETTEXT" != ":"; then
16605 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16606 echo "${ECHO_T}$XGETTEXT" >&6; }
16608 { echo "$as_me:$LINENO: result: no" >&5
16609 echo "${ECHO_T}no" >&6; }
16615 # Prepare PATH_SEPARATOR.
16616 # The user is always right.
16617 if test "${PATH_SEPARATOR+set}" != set; then
16618 echo "#! /bin/sh" >conf$$.sh
16619 echo "exit 0" >>conf$$.sh
16621 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16629 # Find out how to test for executable files. Don't use a zero-byte file,
16630 # as systems may use methods other than mode bits to determine executability.
16631 cat >conf$$.file <<_ASEOF
16635 chmod +x conf$$.file
16636 if test -x conf$$.file >/dev/null 2>&1; then
16637 ac_executable_p="test -x"
16639 ac_executable_p="test -f"
16643 # Extract the first word of "msgmerge", so it can be a program name with args.
16644 set dummy msgmerge; ac_word=$2
16645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16647 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 case "$MSGMERGE" in
16652 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16655 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16656 for ac_dir in $PATH; do
16658 test -z "$ac_dir" && ac_dir=.
16659 for ac_exec_ext in '' $ac_executable_extensions; do
16660 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16661 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16662 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16663 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16670 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16674 MSGMERGE="$ac_cv_path_MSGMERGE"
16675 if test "$MSGMERGE" != ":"; then
16676 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16677 echo "${ECHO_T}$MSGMERGE" >&6; }
16679 { echo "$as_me:$LINENO: result: no" >&5
16680 echo "${ECHO_T}no" >&6; }
16684 if test "$GMSGFMT" != ":"; then
16685 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16686 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16689 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16690 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16691 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16696 if test "$XGETTEXT" != ":"; then
16697 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16698 (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
16701 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16702 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16708 ac_config_commands="$ac_config_commands default-1"
16712 if test "X$prefix" = "XNONE"; then
16713 acl_final_prefix="$ac_default_prefix"
16715 acl_final_prefix="$prefix"
16717 if test "X$exec_prefix" = "XNONE"; then
16718 acl_final_exec_prefix='${prefix}'
16720 acl_final_exec_prefix="$exec_prefix"
16722 acl_save_prefix="$prefix"
16723 prefix="$acl_final_prefix"
16724 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16725 prefix="$acl_save_prefix"
16728 # Check whether --with-gnu-ld was given.
16729 if test "${with_gnu_ld+set}" = set; then
16730 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16735 # Prepare PATH_SEPARATOR.
16736 # The user is always right.
16737 if test "${PATH_SEPARATOR+set}" != set; then
16738 echo "#! /bin/sh" >conf$$.sh
16739 echo "exit 0" >>conf$$.sh
16741 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16749 if test "$GCC" = yes; then
16750 # Check if gcc -print-prog-name=ld gives a path.
16751 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16752 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16755 # gcc leaves a trailing carriage return which upsets mingw
16756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16761 # Accept absolute paths.
16762 [\\/]* | [A-Za-z]:[\\/]*)
16763 re_direlt='/[^/][^/]*/\.\./'
16764 # Canonicalize the path of ld
16765 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16766 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16767 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16769 test -z "$LD" && LD="$ac_prog"
16772 # If it fails, then pretend we aren't using GCC.
16776 # If it is relative, then search for the first ld in PATH.
16777 with_gnu_ld=unknown
16780 elif test "$with_gnu_ld" = yes; then
16781 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16782 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16784 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16785 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16787 if test "${acl_cv_path_LD+set}" = set; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16790 if test -z "$LD"; then
16791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16792 for ac_dir in $PATH; do
16793 test -z "$ac_dir" && ac_dir=.
16794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16795 acl_cv_path_LD="$ac_dir/$ac_prog"
16796 # Check to see if the program is GNU ld. I'd rather use --version,
16797 # but apparently some GNU ld's only accept -v.
16798 # Break only if it was the GNU/non-GNU ld that we prefer.
16799 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16800 *GNU* | *'with BFD'*)
16801 test "$with_gnu_ld" != no && break ;;
16803 test "$with_gnu_ld" != yes && break ;;
16809 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16813 LD="$acl_cv_path_LD"
16814 if test -n "$LD"; then
16815 { echo "$as_me:$LINENO: result: $LD" >&5
16816 echo "${ECHO_T}$LD" >&6; }
16818 { echo "$as_me:$LINENO: result: no" >&5
16819 echo "${ECHO_T}no" >&6; }
16821 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16822 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16823 { (exit 1); exit 1; }; }
16824 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16825 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16826 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16830 case `$LD -v 2>&1 </dev/null` in
16831 *GNU* | *'with BFD'*)
16832 acl_cv_prog_gnu_ld=yes ;;
16834 acl_cv_prog_gnu_ld=no ;;
16837 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16838 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16839 with_gnu_ld=$acl_cv_prog_gnu_ld
16844 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16845 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16846 if test "${acl_cv_rpath+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16851 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16853 rm -f ./conftest.sh
16857 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16858 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16860 libext="$acl_cv_libext"
16861 shlibext="$acl_cv_shlibext"
16862 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16863 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16864 hardcode_direct="$acl_cv_hardcode_direct"
16865 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16866 # Check whether --enable-rpath was given.
16867 if test "${enable_rpath+set}" = set; then
16868 enableval=$enable_rpath; :
16882 acl_save_prefix="$prefix"
16883 prefix="$acl_final_prefix"
16884 acl_save_exec_prefix="$exec_prefix"
16885 exec_prefix="$acl_final_exec_prefix"
16887 eval additional_includedir=\"$includedir\"
16888 eval additional_libdir=\"$libdir\"
16890 exec_prefix="$acl_save_exec_prefix"
16891 prefix="$acl_save_prefix"
16894 # Check whether --with-libiconv-prefix was given.
16895 if test "${with_libiconv_prefix+set}" = set; then
16896 withval=$with_libiconv_prefix;
16897 if test "X$withval" = "Xno"; then
16900 if test "X$withval" = "X"; then
16902 acl_save_prefix="$prefix"
16903 prefix="$acl_final_prefix"
16904 acl_save_exec_prefix="$exec_prefix"
16905 exec_prefix="$acl_final_exec_prefix"
16907 eval additional_includedir=\"$includedir\"
16908 eval additional_libdir=\"$libdir\"
16910 exec_prefix="$acl_save_exec_prefix"
16911 prefix="$acl_save_prefix"
16914 additional_includedir="$withval/include"
16915 additional_libdir="$withval/lib"
16926 names_already_handled=
16927 names_next_round='iconv '
16928 while test -n "$names_next_round"; do
16929 names_this_round="$names_next_round"
16931 for name in $names_this_round; do
16933 for n in $names_already_handled; do
16934 if test "$n" = "$name"; then
16935 already_handled=yes
16939 if test -z "$already_handled"; then
16940 names_already_handled="$names_already_handled $name"
16941 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16942 eval value=\"\$HAVE_LIB$uppername\"
16943 if test -n "$value"; then
16944 if test "$value" = yes; then
16945 eval value=\"\$LIB$uppername\"
16946 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16947 eval value=\"\$LTLIB$uppername\"
16948 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16957 if test $use_additional = yes; then
16958 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16959 found_dir="$additional_libdir"
16960 found_so="$additional_libdir/lib$name.$shlibext"
16961 if test -f "$additional_libdir/lib$name.la"; then
16962 found_la="$additional_libdir/lib$name.la"
16965 if test -f "$additional_libdir/lib$name.$libext"; then
16966 found_dir="$additional_libdir"
16967 found_a="$additional_libdir/lib$name.$libext"
16968 if test -f "$additional_libdir/lib$name.la"; then
16969 found_la="$additional_libdir/lib$name.la"
16974 if test "X$found_dir" = "X"; then
16975 for x in $LDFLAGS $LTLIBICONV; do
16977 acl_save_prefix="$prefix"
16978 prefix="$acl_final_prefix"
16979 acl_save_exec_prefix="$exec_prefix"
16980 exec_prefix="$acl_final_exec_prefix"
16982 exec_prefix="$acl_save_exec_prefix"
16983 prefix="$acl_save_prefix"
16987 dir=`echo "X$x" | sed -e 's/^X-L//'`
16988 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16990 found_so="$dir/lib$name.$shlibext"
16991 if test -f "$dir/lib$name.la"; then
16992 found_la="$dir/lib$name.la"
16995 if test -f "$dir/lib$name.$libext"; then
16997 found_a="$dir/lib$name.$libext"
16998 if test -f "$dir/lib$name.la"; then
16999 found_la="$dir/lib$name.la"
17005 if test "X$found_dir" != "X"; then
17010 if test "X$found_dir" != "X"; then
17011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17012 if test "X$found_so" != "X"; then
17013 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17017 for x in $ltrpathdirs; do
17018 if test "X$x" = "X$found_dir"; then
17023 if test -z "$haveit"; then
17024 ltrpathdirs="$ltrpathdirs $found_dir"
17026 if test "$hardcode_direct" = yes; then
17027 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17029 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17030 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17032 for x in $rpathdirs; do
17033 if test "X$x" = "X$found_dir"; then
17038 if test -z "$haveit"; then
17039 rpathdirs="$rpathdirs $found_dir"
17043 for x in $LDFLAGS $LIBICONV; do
17045 acl_save_prefix="$prefix"
17046 prefix="$acl_final_prefix"
17047 acl_save_exec_prefix="$exec_prefix"
17048 exec_prefix="$acl_final_exec_prefix"
17050 exec_prefix="$acl_save_exec_prefix"
17051 prefix="$acl_save_prefix"
17053 if test "X$x" = "X-L$found_dir"; then
17058 if test -z "$haveit"; then
17059 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17061 if test "$hardcode_minus_L" != no; then
17062 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17064 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17070 if test "X$found_a" != "X"; then
17071 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17073 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17076 additional_includedir=
17077 case "$found_dir" in
17079 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17080 additional_includedir="$basedir/include"
17083 if test "X$additional_includedir" != "X"; then
17084 if test "X$additional_includedir" != "X/usr/include"; then
17086 if test "X$additional_includedir" = "X/usr/local/include"; then
17087 if test -n "$GCC"; then
17089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17093 if test -z "$haveit"; then
17094 for x in $CPPFLAGS $INCICONV; do
17096 acl_save_prefix="$prefix"
17097 prefix="$acl_final_prefix"
17098 acl_save_exec_prefix="$exec_prefix"
17099 exec_prefix="$acl_final_exec_prefix"
17101 exec_prefix="$acl_save_exec_prefix"
17102 prefix="$acl_save_prefix"
17104 if test "X$x" = "X-I$additional_includedir"; then
17109 if test -z "$haveit"; then
17110 if test -d "$additional_includedir"; then
17111 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17117 if test -n "$found_la"; then
17118 save_libdir="$libdir"
17119 case "$found_la" in
17120 */* | *\\*) . "$found_la" ;;
17121 *) . "./$found_la" ;;
17123 libdir="$save_libdir"
17124 for dep in $dependency_libs; do
17127 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17128 if test "X$additional_libdir" != "X/usr/lib"; then
17130 if test "X$additional_libdir" = "X/usr/local/lib"; then
17131 if test -n "$GCC"; then
17133 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17137 if test -z "$haveit"; then
17139 for x in $LDFLAGS $LIBICONV; do
17141 acl_save_prefix="$prefix"
17142 prefix="$acl_final_prefix"
17143 acl_save_exec_prefix="$exec_prefix"
17144 exec_prefix="$acl_final_exec_prefix"
17146 exec_prefix="$acl_save_exec_prefix"
17147 prefix="$acl_save_prefix"
17149 if test "X$x" = "X-L$additional_libdir"; then
17154 if test -z "$haveit"; then
17155 if test -d "$additional_libdir"; then
17156 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17160 for x in $LDFLAGS $LTLIBICONV; do
17162 acl_save_prefix="$prefix"
17163 prefix="$acl_final_prefix"
17164 acl_save_exec_prefix="$exec_prefix"
17165 exec_prefix="$acl_final_exec_prefix"
17167 exec_prefix="$acl_save_exec_prefix"
17168 prefix="$acl_save_prefix"
17170 if test "X$x" = "X-L$additional_libdir"; then
17175 if test -z "$haveit"; then
17176 if test -d "$additional_libdir"; then
17177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17184 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17185 if test "$enable_rpath" != no; then
17187 for x in $rpathdirs; do
17188 if test "X$x" = "X$dir"; then
17193 if test -z "$haveit"; then
17194 rpathdirs="$rpathdirs $dir"
17197 for x in $ltrpathdirs; do
17198 if test "X$x" = "X$dir"; then
17203 if test -z "$haveit"; then
17204 ltrpathdirs="$ltrpathdirs $dir"
17209 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17212 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17215 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17222 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17223 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17229 if test "X$rpathdirs" != "X"; then
17230 if test -n "$hardcode_libdir_separator"; then
17232 for found_dir in $rpathdirs; do
17233 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17235 acl_save_libdir="$libdir"
17237 eval flag=\"$hardcode_libdir_flag_spec\"
17238 libdir="$acl_save_libdir"
17239 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17241 for found_dir in $rpathdirs; do
17242 acl_save_libdir="$libdir"
17243 libdir="$found_dir"
17244 eval flag=\"$hardcode_libdir_flag_spec\"
17245 libdir="$acl_save_libdir"
17246 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17250 if test "X$ltrpathdirs" != "X"; then
17251 for found_dir in $ltrpathdirs; do
17252 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17273 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17274 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17275 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 gt_save_CPPFLAGS="$CPPFLAGS"
17279 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17280 gt_save_LIBS="$LIBS"
17281 LIBS="$LIBS -framework CoreFoundation"
17282 cat >conftest.$ac_ext <<_ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 #include <CFPreferences.h>
17292 CFPreferencesCopyAppValue(NULL, NULL)
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest$ac_exeext &&
17314 $as_test_x conftest$ac_exeext; then
17315 gt_cv_func_CFPreferencesCopyAppValue=yes
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17320 gt_cv_func_CFPreferencesCopyAppValue=no
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324 conftest$ac_exeext conftest.$ac_ext
17325 CPPFLAGS="$gt_save_CPPFLAGS"
17326 LIBS="$gt_save_LIBS"
17328 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17329 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17330 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17332 cat >>confdefs.h <<\_ACEOF
17333 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17337 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17338 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17339 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 gt_save_CPPFLAGS="$CPPFLAGS"
17343 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17344 gt_save_LIBS="$LIBS"
17345 LIBS="$LIBS -framework CoreFoundation"
17346 cat >conftest.$ac_ext <<_ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17352 #include <CFLocale.h>
17356 CFLocaleCopyCurrent();
17361 rm -f conftest.$ac_objext conftest$ac_exeext
17362 if { (ac_try="$ac_link"
17363 case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_link") 2>conftest.er1
17370 grep -v '^ *+' conftest.er1 >conftest.err
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } && {
17375 test -z "$ac_c_werror_flag" ||
17376 test ! -s conftest.err
17377 } && test -s conftest$ac_exeext &&
17378 $as_test_x conftest$ac_exeext; then
17379 gt_cv_func_CFLocaleCopyCurrent=yes
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 gt_cv_func_CFLocaleCopyCurrent=no
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388 conftest$ac_exeext conftest.$ac_ext
17389 CPPFLAGS="$gt_save_CPPFLAGS"
17390 LIBS="$gt_save_LIBS"
17392 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17393 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17394 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_CFLOCALECOPYCURRENT 1
17402 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17403 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17409 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17410 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17411 # Check whether --enable-nls was given.
17412 if test "${enable_nls+set}" = set; then
17413 enableval=$enable_nls; USE_NLS=$enableval
17418 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17419 echo "${ECHO_T}$USE_NLS" >&6; }
17428 if test "$USE_NLS" = "yes"; then
17429 gt_use_preinstalled_gnugettext=no
17436 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17437 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17438 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 cat >conftest.$ac_ext <<_ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447 #include <libintl.h>
17448 extern int _nl_msg_cat_cntr;
17449 extern int *_nl_domain_bindings;
17453 bindtextdomain ("", "");
17454 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (ac_try="$ac_link"
17461 case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_link") 2>conftest.er1
17468 grep -v '^ *+' conftest.er1 >conftest.err
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && {
17473 test -z "$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 } && test -s conftest$ac_exeext &&
17476 $as_test_x conftest$ac_exeext; then
17477 gt_cv_func_gnugettext1_libc=yes
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17482 gt_cv_func_gnugettext1_libc=no
17485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17486 conftest$ac_exeext conftest.$ac_ext
17488 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17489 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17491 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17497 am_save_CPPFLAGS="$CPPFLAGS"
17499 for element in $INCICONV; do
17501 for x in $CPPFLAGS; do
17503 acl_save_prefix="$prefix"
17504 prefix="$acl_final_prefix"
17505 acl_save_exec_prefix="$exec_prefix"
17506 exec_prefix="$acl_final_exec_prefix"
17508 exec_prefix="$acl_save_exec_prefix"
17509 prefix="$acl_save_prefix"
17511 if test "X$x" = "X$element"; then
17516 if test -z "$haveit"; then
17517 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17522 { echo "$as_me:$LINENO: checking for iconv" >&5
17523 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17524 if test "${am_cv_func_iconv+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 am_cv_func_iconv="no, consider installing GNU libiconv"
17530 cat >conftest.$ac_ext <<_ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 #include <stdlib.h>
17541 iconv_t cd = iconv_open("","");
17542 iconv(cd,NULL,NULL,NULL,NULL);
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_link") 2>conftest.er1
17557 grep -v '^ *+' conftest.er1 >conftest.err
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest$ac_exeext &&
17565 $as_test_x conftest$ac_exeext; then
17566 am_cv_func_iconv=yes
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17575 conftest$ac_exeext conftest.$ac_ext
17576 if test "$am_cv_func_iconv" != yes; then
17577 am_save_LIBS="$LIBS"
17578 LIBS="$LIBS $LIBICONV"
17579 cat >conftest.$ac_ext <<_ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17585 #include <stdlib.h>
17590 iconv_t cd = iconv_open("","");
17591 iconv(cd,NULL,NULL,NULL,NULL);
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (ac_try="$ac_link"
17599 case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_link") 2>conftest.er1
17606 grep -v '^ *+' conftest.er1 >conftest.err
17608 cat conftest.err >&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } && {
17611 test -z "$ac_c_werror_flag" ||
17612 test ! -s conftest.err
17613 } && test -s conftest$ac_exeext &&
17614 $as_test_x conftest$ac_exeext; then
17615 am_cv_lib_iconv=yes
17616 am_cv_func_iconv=yes
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17625 conftest$ac_exeext conftest.$ac_ext
17626 LIBS="$am_save_LIBS"
17630 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17631 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17632 if test "$am_cv_func_iconv" = yes; then
17634 cat >>confdefs.h <<\_ACEOF
17635 #define HAVE_ICONV 1
17639 if test "$am_cv_lib_iconv" = yes; then
17640 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17641 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17642 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17643 echo "${ECHO_T}$LIBICONV" >&6; }
17645 CPPFLAGS="$am_save_CPPFLAGS"
17657 acl_save_prefix="$prefix"
17658 prefix="$acl_final_prefix"
17659 acl_save_exec_prefix="$exec_prefix"
17660 exec_prefix="$acl_final_exec_prefix"
17662 eval additional_includedir=\"$includedir\"
17663 eval additional_libdir=\"$libdir\"
17665 exec_prefix="$acl_save_exec_prefix"
17666 prefix="$acl_save_prefix"
17669 # Check whether --with-libintl-prefix was given.
17670 if test "${with_libintl_prefix+set}" = set; then
17671 withval=$with_libintl_prefix;
17672 if test "X$withval" = "Xno"; then
17675 if test "X$withval" = "X"; then
17677 acl_save_prefix="$prefix"
17678 prefix="$acl_final_prefix"
17679 acl_save_exec_prefix="$exec_prefix"
17680 exec_prefix="$acl_final_exec_prefix"
17682 eval additional_includedir=\"$includedir\"
17683 eval additional_libdir=\"$libdir\"
17685 exec_prefix="$acl_save_exec_prefix"
17686 prefix="$acl_save_prefix"
17689 additional_includedir="$withval/include"
17690 additional_libdir="$withval/lib"
17701 names_already_handled=
17702 names_next_round='intl '
17703 while test -n "$names_next_round"; do
17704 names_this_round="$names_next_round"
17706 for name in $names_this_round; do
17708 for n in $names_already_handled; do
17709 if test "$n" = "$name"; then
17710 already_handled=yes
17714 if test -z "$already_handled"; then
17715 names_already_handled="$names_already_handled $name"
17716 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17717 eval value=\"\$HAVE_LIB$uppername\"
17718 if test -n "$value"; then
17719 if test "$value" = yes; then
17720 eval value=\"\$LIB$uppername\"
17721 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17722 eval value=\"\$LTLIB$uppername\"
17723 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17732 if test $use_additional = yes; then
17733 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17734 found_dir="$additional_libdir"
17735 found_so="$additional_libdir/lib$name.$shlibext"
17736 if test -f "$additional_libdir/lib$name.la"; then
17737 found_la="$additional_libdir/lib$name.la"
17740 if test -f "$additional_libdir/lib$name.$libext"; then
17741 found_dir="$additional_libdir"
17742 found_a="$additional_libdir/lib$name.$libext"
17743 if test -f "$additional_libdir/lib$name.la"; then
17744 found_la="$additional_libdir/lib$name.la"
17749 if test "X$found_dir" = "X"; then
17750 for x in $LDFLAGS $LTLIBINTL; do
17752 acl_save_prefix="$prefix"
17753 prefix="$acl_final_prefix"
17754 acl_save_exec_prefix="$exec_prefix"
17755 exec_prefix="$acl_final_exec_prefix"
17757 exec_prefix="$acl_save_exec_prefix"
17758 prefix="$acl_save_prefix"
17762 dir=`echo "X$x" | sed -e 's/^X-L//'`
17763 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17765 found_so="$dir/lib$name.$shlibext"
17766 if test -f "$dir/lib$name.la"; then
17767 found_la="$dir/lib$name.la"
17770 if test -f "$dir/lib$name.$libext"; then
17772 found_a="$dir/lib$name.$libext"
17773 if test -f "$dir/lib$name.la"; then
17774 found_la="$dir/lib$name.la"
17780 if test "X$found_dir" != "X"; then
17785 if test "X$found_dir" != "X"; then
17786 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17787 if test "X$found_so" != "X"; then
17788 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17789 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17792 for x in $ltrpathdirs; do
17793 if test "X$x" = "X$found_dir"; then
17798 if test -z "$haveit"; then
17799 ltrpathdirs="$ltrpathdirs $found_dir"
17801 if test "$hardcode_direct" = yes; then
17802 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17804 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17805 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17807 for x in $rpathdirs; do
17808 if test "X$x" = "X$found_dir"; then
17813 if test -z "$haveit"; then
17814 rpathdirs="$rpathdirs $found_dir"
17818 for x in $LDFLAGS $LIBINTL; do
17820 acl_save_prefix="$prefix"
17821 prefix="$acl_final_prefix"
17822 acl_save_exec_prefix="$exec_prefix"
17823 exec_prefix="$acl_final_exec_prefix"
17825 exec_prefix="$acl_save_exec_prefix"
17826 prefix="$acl_save_prefix"
17828 if test "X$x" = "X-L$found_dir"; then
17833 if test -z "$haveit"; then
17834 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17836 if test "$hardcode_minus_L" != no; then
17837 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17839 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17845 if test "X$found_a" != "X"; then
17846 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17848 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17851 additional_includedir=
17852 case "$found_dir" in
17854 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17855 additional_includedir="$basedir/include"
17858 if test "X$additional_includedir" != "X"; then
17859 if test "X$additional_includedir" != "X/usr/include"; then
17861 if test "X$additional_includedir" = "X/usr/local/include"; then
17862 if test -n "$GCC"; then
17864 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17868 if test -z "$haveit"; then
17869 for x in $CPPFLAGS $INCINTL; do
17871 acl_save_prefix="$prefix"
17872 prefix="$acl_final_prefix"
17873 acl_save_exec_prefix="$exec_prefix"
17874 exec_prefix="$acl_final_exec_prefix"
17876 exec_prefix="$acl_save_exec_prefix"
17877 prefix="$acl_save_prefix"
17879 if test "X$x" = "X-I$additional_includedir"; then
17884 if test -z "$haveit"; then
17885 if test -d "$additional_includedir"; then
17886 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17892 if test -n "$found_la"; then
17893 save_libdir="$libdir"
17894 case "$found_la" in
17895 */* | *\\*) . "$found_la" ;;
17896 *) . "./$found_la" ;;
17898 libdir="$save_libdir"
17899 for dep in $dependency_libs; do
17902 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17903 if test "X$additional_libdir" != "X/usr/lib"; then
17905 if test "X$additional_libdir" = "X/usr/local/lib"; then
17906 if test -n "$GCC"; then
17908 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17912 if test -z "$haveit"; then
17914 for x in $LDFLAGS $LIBINTL; do
17916 acl_save_prefix="$prefix"
17917 prefix="$acl_final_prefix"
17918 acl_save_exec_prefix="$exec_prefix"
17919 exec_prefix="$acl_final_exec_prefix"
17921 exec_prefix="$acl_save_exec_prefix"
17922 prefix="$acl_save_prefix"
17924 if test "X$x" = "X-L$additional_libdir"; then
17929 if test -z "$haveit"; then
17930 if test -d "$additional_libdir"; then
17931 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17935 for x in $LDFLAGS $LTLIBINTL; do
17937 acl_save_prefix="$prefix"
17938 prefix="$acl_final_prefix"
17939 acl_save_exec_prefix="$exec_prefix"
17940 exec_prefix="$acl_final_exec_prefix"
17942 exec_prefix="$acl_save_exec_prefix"
17943 prefix="$acl_save_prefix"
17945 if test "X$x" = "X-L$additional_libdir"; then
17950 if test -z "$haveit"; then
17951 if test -d "$additional_libdir"; then
17952 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17959 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17960 if test "$enable_rpath" != no; then
17962 for x in $rpathdirs; do
17963 if test "X$x" = "X$dir"; then
17968 if test -z "$haveit"; then
17969 rpathdirs="$rpathdirs $dir"
17972 for x in $ltrpathdirs; do
17973 if test "X$x" = "X$dir"; then
17978 if test -z "$haveit"; then
17979 ltrpathdirs="$ltrpathdirs $dir"
17984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17987 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17990 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17991 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17997 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17998 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18004 if test "X$rpathdirs" != "X"; then
18005 if test -n "$hardcode_libdir_separator"; then
18007 for found_dir in $rpathdirs; do
18008 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18010 acl_save_libdir="$libdir"
18012 eval flag=\"$hardcode_libdir_flag_spec\"
18013 libdir="$acl_save_libdir"
18014 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18016 for found_dir in $rpathdirs; do
18017 acl_save_libdir="$libdir"
18018 libdir="$found_dir"
18019 eval flag=\"$hardcode_libdir_flag_spec\"
18020 libdir="$acl_save_libdir"
18021 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18025 if test "X$ltrpathdirs" != "X"; then
18026 for found_dir in $ltrpathdirs; do
18027 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18031 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18032 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18033 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 gt_save_CPPFLAGS="$CPPFLAGS"
18037 CPPFLAGS="$CPPFLAGS $INCINTL"
18038 gt_save_LIBS="$LIBS"
18039 LIBS="$LIBS $LIBINTL"
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 #include <libintl.h>
18047 extern int _nl_msg_cat_cntr;
18052 const char *_nl_expand_alias (const char *);
18056 bindtextdomain ("", "");
18057 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18062 rm -f conftest.$ac_objext conftest$ac_exeext
18063 if { (ac_try="$ac_link"
18064 case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_link") 2>conftest.er1
18071 grep -v '^ *+' conftest.er1 >conftest.err
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest$ac_exeext &&
18079 $as_test_x conftest$ac_exeext; then
18080 gt_cv_func_gnugettext1_libintl=yes
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 gt_cv_func_gnugettext1_libintl=no
18088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18089 conftest$ac_exeext conftest.$ac_ext
18090 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18091 LIBS="$LIBS $LIBICONV"
18092 cat >conftest.$ac_ext <<_ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18098 #include <libintl.h>
18099 extern int _nl_msg_cat_cntr;
18104 const char *_nl_expand_alias (const char *);
18108 bindtextdomain ("", "");
18109 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18114 rm -f conftest.$ac_objext conftest$ac_exeext
18115 if { (ac_try="$ac_link"
18116 case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_link") 2>conftest.er1
18123 grep -v '^ *+' conftest.er1 >conftest.err
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } && {
18128 test -z "$ac_c_werror_flag" ||
18129 test ! -s conftest.err
18130 } && test -s conftest$ac_exeext &&
18131 $as_test_x conftest$ac_exeext; then
18132 LIBINTL="$LIBINTL $LIBICONV"
18133 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18134 gt_cv_func_gnugettext1_libintl=yes
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18144 conftest$ac_exeext conftest.$ac_ext
18146 CPPFLAGS="$gt_save_CPPFLAGS"
18147 LIBS="$gt_save_LIBS"
18149 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18150 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18153 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18154 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18155 && test "$PACKAGE" != gettext-runtime \
18156 && test "$PACKAGE" != gettext-tools; }; then
18157 gt_use_preinstalled_gnugettext=yes
18166 if test -n "$INTL_MACOSX_LIBS"; then
18167 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18168 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18169 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18170 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18174 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18175 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18177 cat >>confdefs.h <<\_ACEOF
18178 #define ENABLE_NLS 1
18186 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18187 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18188 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18189 echo "${ECHO_T}$USE_NLS" >&6; }
18190 if test "$USE_NLS" = "yes"; then
18191 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18192 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18193 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18194 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18195 gt_source="external libintl"
18200 gt_source="included intl directory"
18202 { echo "$as_me:$LINENO: result: $gt_source" >&5
18203 echo "${ECHO_T}$gt_source" >&6; }
18206 if test "$USE_NLS" = "yes"; then
18208 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18209 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18210 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18211 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18212 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18213 echo "${ECHO_T}$LIBINTL" >&6; }
18215 for element in $INCINTL; do
18217 for x in $CPPFLAGS; do
18219 acl_save_prefix="$prefix"
18220 prefix="$acl_final_prefix"
18221 acl_save_exec_prefix="$exec_prefix"
18222 exec_prefix="$acl_final_exec_prefix"
18224 exec_prefix="$acl_save_exec_prefix"
18225 prefix="$acl_save_prefix"
18227 if test "X$x" = "X$element"; then
18232 if test -z "$haveit"; then
18233 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE_GETTEXT 1
18245 cat >>confdefs.h <<\_ACEOF
18246 #define HAVE_DCGETTEXT 1
18256 INTLLIBS="$LIBINTL"
18263 if test x${prefix} = xNONE ; then
18264 if test `eval echo ${datarootdir}` = NONE/share ; then
18265 datarootdir=/usr/share
18269 if test x${prefix} = xNONE ; then
18270 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18271 sysconfdir=/etc/bacula
18274 if test `eval echo ${libdir}` = NONE/lib ; then
18278 if test `eval echo ${includedir}` = NONE/include ; then
18279 includedir=/usr/include
18285 if test x${exec_prefix} = xNONE ; then
18286 exec_prefix=${prefix}
18289 sysconfdir=`eval echo ${sysconfdir}`
18290 datarootdir=`eval echo ${datarootdir}`
18291 libdir=`eval echo ${libdir}`
18292 includedir=`eval echo ${includedir}`
18293 localedir=`eval echo ${datarootdir}/locale`
18294 cat >>confdefs.h <<_ACEOF
18295 #define SYSCONFDIR "$sysconfdir"
18298 cat >>confdefs.h <<_ACEOF
18299 #define LOCALEDIR "$localedir"
18303 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18304 sbindir=${exec_prefix}/sbin
18306 sbindir=`eval echo ${sbindir}`
18308 if test x$mandir = x'${prefix}/man' ; then
18309 mandir=/usr/share/man
18312 for ac_prog in msgfmt
18314 # Extract the first word of "$ac_prog", so it can be a program name with args.
18315 set dummy $ac_prog; ac_word=$2
18316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18318 if test "${ac_cv_path_MSGFMT+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18327 for as_dir in $PATH
18330 test -z "$as_dir" && as_dir=.
18331 for ac_exec_ext in '' $ac_executable_extensions; do
18332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18333 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18344 MSGFMT=$ac_cv_path_MSGFMT
18345 if test -n "$MSGFMT"; then
18346 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18347 echo "${ECHO_T}$MSGFMT" >&6; }
18349 { echo "$as_me:$LINENO: result: no" >&5
18350 echo "${ECHO_T}no" >&6; }
18354 test -n "$MSGFMT" && break
18356 test -n "$MSGFMT" || MSGFMT="no"
18358 if test "$MSGFMT" = "no"
18360 echo 'msgfmt program not found, disabling NLS !'
18362 USE_INCLUDED_LIBINTL=no
18365 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18366 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18367 if test "${ac_cv_gnu_library_2+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18377 #include <features.h>
18378 #ifdef __GNU_LIBRARY__
18379 #if (__GLIBC__ >= 2)
18385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18386 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18387 ac_cv_gnu_library_2=yes
18389 ac_cv_gnu_library_2=no
18396 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18397 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18399 GLIBC2="$ac_cv_gnu_library_2"
18402 if test -n "$ac_tool_prefix"; then
18403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18407 if test "${ac_cv_prog_RANLIB+set}" = set; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 if test -n "$RANLIB"; then
18411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18414 for as_dir in $PATH
18417 test -z "$as_dir" && as_dir=.
18418 for ac_exec_ext in '' $ac_executable_extensions; do
18419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18430 RANLIB=$ac_cv_prog_RANLIB
18431 if test -n "$RANLIB"; then
18432 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18433 echo "${ECHO_T}$RANLIB" >&6; }
18435 { echo "$as_me:$LINENO: result: no" >&5
18436 echo "${ECHO_T}no" >&6; }
18441 if test -z "$ac_cv_prog_RANLIB"; then
18442 ac_ct_RANLIB=$RANLIB
18443 # Extract the first word of "ranlib", so it can be a program name with args.
18444 set dummy ranlib; ac_word=$2
18445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 if test -n "$ac_ct_RANLIB"; then
18451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18454 for as_dir in $PATH
18457 test -z "$as_dir" && as_dir=.
18458 for ac_exec_ext in '' $ac_executable_extensions; do
18459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18460 ac_cv_prog_ac_ct_RANLIB="ranlib"
18461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18471 if test -n "$ac_ct_RANLIB"; then
18472 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18473 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18475 { echo "$as_me:$LINENO: result: no" >&5
18476 echo "${ECHO_T}no" >&6; }
18479 if test "x$ac_ct_RANLIB" = x; then
18482 case $cross_compiling:$ac_tool_warned in
18484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18485 whose name does not start with the host triplet. If you think this
18486 configuration is useful to you, please write to autoconf@gnu.org." >&5
18487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18488 whose name does not start with the host triplet. If you think this
18489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18490 ac_tool_warned=yes ;;
18492 RANLIB=$ac_ct_RANLIB
18495 RANLIB="$ac_cv_prog_RANLIB"
18499 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18500 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18501 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 ac_check_lib_save_LIBS=$LIBS
18505 LIBS="-lcposix $LIBS"
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18523 return strerror ();
18528 rm -f conftest.$ac_objext conftest$ac_exeext
18529 if { (ac_try="$ac_link"
18530 case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_link") 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } && {
18542 test -z "$ac_c_werror_flag" ||
18543 test ! -s conftest.err
18544 } && test -s conftest$ac_exeext &&
18545 $as_test_x conftest$ac_exeext; then
18546 ac_cv_lib_cposix_strerror=yes
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_lib_cposix_strerror=no
18554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18555 conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18559 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18560 if test $ac_cv_lib_cposix_strerror = yes; then
18561 LIBS="$LIBS -lcposix"
18566 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18568 if test "${ac_cv_c_const+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 cat >conftest.$ac_ext <<_ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18581 /* FIXME: Include the comments suggested by Paul. */
18582 #ifndef __cplusplus
18583 /* Ultrix mips cc rejects this. */
18584 typedef int charset[2];
18586 /* SunOS 4.1.1 cc rejects this. */
18587 char const *const *pcpcc;
18589 /* NEC SVR4.0.2 mips cc rejects this. */
18590 struct point {int x, y;};
18591 static struct point const zero = {0,0};
18592 /* AIX XL C 1.02.0.0 rejects this.
18593 It does not let you subtract one const X* pointer from another in
18594 an arm of an if-expression whose if-part is not a constant
18596 const char *g = "string";
18597 pcpcc = &g + (g ? g-g : 0);
18598 /* HPUX 7.0 cc rejects these. */
18600 ppc = (char**) pcpcc;
18601 pcpcc = (char const *const *) ppc;
18602 { /* SCO 3.2v4 cc rejects this. */
18604 char const *s = 0 ? (char *) 0 : (char const *) 0;
18609 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18610 int x[] = {25, 17};
18611 const int *foo = &x[0];
18614 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18615 typedef const int *iptr;
18619 { /* AIX XL C 1.02.0.0 rejects this saying
18620 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18621 struct s { int j; const int *ap[3]; };
18622 struct s *b; b->j = 5;
18624 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18625 const int foo = 10;
18626 if (!foo) return 0;
18628 return !cs[0] && !zero.x;
18635 rm -f conftest.$ac_objext
18636 if { (ac_try="$ac_compile"
18637 case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_compile") 2>conftest.er1
18644 grep -v '^ *+' conftest.er1 >conftest.err
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && {
18649 test -z "$ac_c_werror_flag" ||
18650 test ! -s conftest.err
18651 } && test -s conftest.$ac_objext; then
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18662 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18663 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18664 if test $ac_cv_c_const = no; then
18666 cat >>confdefs.h <<\_ACEOF
18673 { echo "$as_me:$LINENO: checking for signed" >&5
18674 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18675 if test "${bh_cv_c_signed+set}" = set; then
18676 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 cat >conftest.$ac_ext <<_ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_compile") 2>conftest.er1
18702 grep -v '^ *+' conftest.er1 >conftest.err
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest.$ac_objext; then
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18720 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18721 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18722 if test $bh_cv_c_signed = no; then
18724 cat >>confdefs.h <<\_ACEOF
18730 { echo "$as_me:$LINENO: checking for inline" >&5
18731 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18732 if test "${ac_cv_c_inline+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 for ac_kw in inline __inline__ __inline; do
18737 cat >conftest.$ac_ext <<_ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 #ifndef __cplusplus
18745 static $ac_kw foo_t static_foo () {return 0; }
18746 $ac_kw foo_t foo () {return 0; }
18750 rm -f conftest.$ac_objext
18751 if { (ac_try="$ac_compile"
18752 case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_compile") 2>conftest.er1
18759 grep -v '^ *+' conftest.er1 >conftest.err
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } && {
18764 test -z "$ac_c_werror_flag" ||
18765 test ! -s conftest.err
18766 } && test -s conftest.$ac_objext; then
18767 ac_cv_c_inline=$ac_kw
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18776 test "$ac_cv_c_inline" != no && break
18780 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18781 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18784 case $ac_cv_c_inline in
18787 case $ac_cv_c_inline in
18789 *) ac_val=$ac_cv_c_inline;;
18791 cat >>confdefs.h <<_ACEOF
18792 #ifndef __cplusplus
18793 #define inline $ac_val
18799 { echo "$as_me:$LINENO: checking for off_t" >&5
18800 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18801 if test "${ac_cv_type_off_t+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 $ac_includes_default
18811 typedef off_t ac__type_new_;
18815 if ((ac__type_new_ *) 0)
18817 if (sizeof (ac__type_new_))
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_compile") 2>conftest.er1
18832 grep -v '^ *+' conftest.er1 >conftest.err
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && {
18837 test -z "$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 } && test -s conftest.$ac_objext; then
18840 ac_cv_type_off_t=yes
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 ac_cv_type_off_t=no
18848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18850 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18851 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18852 if test $ac_cv_type_off_t = yes; then
18856 cat >>confdefs.h <<_ACEOF
18857 #define off_t long int
18862 { echo "$as_me:$LINENO: checking for size_t" >&5
18863 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18864 if test "${ac_cv_type_size_t+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 cat >conftest.$ac_ext <<_ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873 $ac_includes_default
18874 typedef size_t ac__type_new_;
18878 if ((ac__type_new_ *) 0)
18880 if (sizeof (ac__type_new_))
18886 rm -f conftest.$ac_objext
18887 if { (ac_try="$ac_compile"
18888 case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_compile") 2>conftest.er1
18895 grep -v '^ *+' conftest.er1 >conftest.err
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } && {
18900 test -z "$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18902 } && test -s conftest.$ac_objext; then
18903 ac_cv_type_size_t=yes
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_cv_type_size_t=no
18911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18913 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18914 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18915 if test $ac_cv_type_size_t = yes; then
18919 cat >>confdefs.h <<_ACEOF
18920 #define size_t unsigned int
18926 { echo "$as_me:$LINENO: checking for long long" >&5
18927 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18928 if test "${ac_cv_type_long_long+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 long long ll = 1LL; int i = 63;
18941 long long llmax = (long long) -1;
18942 return ll << i | ll >> i | llmax / ll | llmax % ll;
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && {
18961 test -z "$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18963 } && test -s conftest$ac_exeext &&
18964 $as_test_x conftest$ac_exeext; then
18965 ac_cv_type_long_long=yes
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_cv_type_long_long=no
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974 conftest$ac_exeext conftest.$ac_ext
18976 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18977 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18978 if test $ac_cv_type_long_long = yes; then
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE_LONG_LONG 1
18987 { echo "$as_me:$LINENO: checking for long double" >&5
18988 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18989 if test "${gt_cv_c_long_double+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 if test "$GCC" = yes; then
18993 gt_cv_c_long_double=yes
18995 cat >conftest.$ac_ext <<_ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19002 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19003 long double foo = 0.0;
19004 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19005 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_compile") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest.$ac_objext; then
19032 gt_cv_c_long_double=yes
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 gt_cv_c_long_double=no
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19044 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19045 if test $gt_cv_c_long_double = yes; then
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_LONG_DOUBLE 1
19054 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19055 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19056 if test "${gt_cv_c_wchar_t+set}" = set; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19065 #include <stddef.h>
19066 wchar_t foo = (wchar_t)'\0';
19075 rm -f conftest.$ac_objext
19076 if { (ac_try="$ac_compile"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_compile") 2>conftest.er1
19084 grep -v '^ *+' conftest.er1 >conftest.err
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest.$ac_objext; then
19092 gt_cv_c_wchar_t=yes
19094 echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19102 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19103 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19104 if test $gt_cv_c_wchar_t = yes; then
19106 cat >>confdefs.h <<\_ACEOF
19107 #define HAVE_WCHAR_T 1
19113 { echo "$as_me:$LINENO: checking for wint_t" >&5
19114 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19115 if test "${gt_cv_c_wint_t+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19118 cat >conftest.$ac_ext <<_ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19125 wint_t foo = (wchar_t)'\0';
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_compile") 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } && {
19148 test -z "$ac_c_werror_flag" ||
19149 test ! -s conftest.err
19150 } && test -s conftest.$ac_objext; then
19153 echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19162 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19163 if test $gt_cv_c_wint_t = yes; then
19165 cat >>confdefs.h <<\_ACEOF
19166 #define HAVE_WINT_T 1
19172 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19173 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19174 if test "${gl_cv_header_inttypes_h+set}" = set; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 cat >conftest.$ac_ext <<_ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 #include <sys/types.h>
19184 #include <inttypes.h>
19188 uintmax_t i = (uintmax_t) -1;
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_compile") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } && {
19207 test -z "$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 } && test -s conftest.$ac_objext; then
19210 gl_cv_header_inttypes_h=yes
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 gl_cv_header_inttypes_h=no
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19221 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19222 if test $gl_cv_header_inttypes_h = yes; then
19224 cat >>confdefs.h <<_ACEOF
19225 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19231 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19232 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19233 if test "${gl_cv_header_stdint_h+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <sys/types.h>
19243 #include <stdint.h>
19247 uintmax_t i = (uintmax_t) -1;
19252 rm -f conftest.$ac_objext
19253 if { (ac_try="$ac_compile"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_compile") 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } && {
19266 test -z "$ac_c_werror_flag" ||
19267 test ! -s conftest.err
19268 } && test -s conftest.$ac_objext; then
19269 gl_cv_header_stdint_h=yes
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 gl_cv_header_stdint_h=no
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19280 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19281 if test $gl_cv_header_stdint_h = yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_STDINT_H_WITH_UINTMAX 1
19292 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19293 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19294 if test "${gt_cv_c_intmax_t+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 cat >conftest.$ac_ext <<_ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19304 #include <stddef.h>
19305 #include <stdlib.h>
19306 #if HAVE_STDINT_H_WITH_UINTMAX
19307 #include <stdint.h>
19309 #if HAVE_INTTYPES_H_WITH_UINTMAX
19310 #include <inttypes.h>
19321 rm -f conftest.$ac_objext
19322 if { (ac_try="$ac_compile"
19323 case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_compile") 2>conftest.er1
19330 grep -v '^ *+' conftest.er1 >conftest.err
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } && {
19335 test -z "$ac_c_werror_flag" ||
19336 test ! -s conftest.err
19337 } && test -s conftest.$ac_objext; then
19338 gt_cv_c_intmax_t=yes
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19343 gt_cv_c_intmax_t=no
19346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19349 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19350 if test $gt_cv_c_intmax_t = yes; then
19352 cat >>confdefs.h <<\_ACEOF
19353 #define HAVE_INTMAX_T 1
19360 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19361 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19362 if test "${gt_cv_func_printf_posix+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 if test "$cross_compiling" = yes; then
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19375 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19381 $EGREP "notposix" >/dev/null 2>&1; then
19382 gt_cv_func_printf_posix="guessing no"
19384 gt_cv_func_printf_posix="guessing yes"
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19398 #include <string.h>
19399 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19400 dollar expansion (possibly an autoconf bug). */
19401 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19402 static char buf[100];
19405 sprintf (buf, format, 33, 55);
19406 return (strcmp (buf, "55 33") != 0);
19409 rm -f conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 gt_cv_func_printf_posix=yes
19431 echo "$as_me: program exited with status $ac_status" >&5
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ( exit $ac_status )
19436 gt_cv_func_printf_posix=no
19438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19444 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19445 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19446 case $gt_cv_func_printf_posix in
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_POSIX_PRINTF 1
19456 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19457 # for constant arguments. Useless!
19458 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19459 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19460 if test "${ac_cv_working_alloca_h+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 #include <alloca.h>
19473 char *p = (char *) alloca (2 * sizeof (int));
19479 rm -f conftest.$ac_objext conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_link") 2>conftest.er1
19488 grep -v '^ *+' conftest.er1 >conftest.err
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && {
19493 test -z "$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 } && test -s conftest$ac_exeext &&
19496 $as_test_x conftest$ac_exeext; then
19497 ac_cv_working_alloca_h=yes
19499 echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 ac_cv_working_alloca_h=no
19505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19506 conftest$ac_exeext conftest.$ac_ext
19508 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19509 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19510 if test $ac_cv_working_alloca_h = yes; then
19512 cat >>confdefs.h <<\_ACEOF
19513 #define HAVE_ALLOCA_H 1
19518 { echo "$as_me:$LINENO: checking for alloca" >&5
19519 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19520 if test "${ac_cv_func_alloca_works+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19530 # define alloca __builtin_alloca
19533 # include <malloc.h>
19534 # define alloca _alloca
19536 # ifdef HAVE_ALLOCA_H
19537 # include <alloca.h>
19542 # ifndef alloca /* predefined by HP cc +Olibcalls */
19553 char *p = (char *) alloca (1);
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_link") 2>conftest.er1
19568 grep -v '^ *+' conftest.er1 >conftest.err
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } && {
19573 test -z "$ac_c_werror_flag" ||
19574 test ! -s conftest.err
19575 } && test -s conftest$ac_exeext &&
19576 $as_test_x conftest$ac_exeext; then
19577 ac_cv_func_alloca_works=yes
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_cv_func_alloca_works=no
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19588 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19589 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19591 if test $ac_cv_func_alloca_works = yes; then
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_ALLOCA 1
19598 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19599 # that cause trouble. Some versions do not even contain alloca or
19600 # contain a buggy version. If you still want to use their alloca,
19601 # use ar to extract alloca.o from them instead of compiling alloca.c.
19603 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19605 cat >>confdefs.h <<\_ACEOF
19610 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19611 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19612 if test "${ac_cv_os_cray+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #if defined CRAY && ! defined CRAY2
19628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19629 $EGREP "webecray" >/dev/null 2>&1; then
19637 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19638 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19639 if test $ac_cv_os_cray = yes; then
19640 for ac_func in _getb67 GETB67 getb67; do
19641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 cat >conftest.$ac_ext <<_ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19655 #define $ac_func innocuous_$ac_func
19657 /* System header to define __stub macros and hopefully few prototypes,
19658 which can conflict with char $ac_func (); below.
19659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19660 <limits.h> exists even on freestanding compilers. */
19663 # include <limits.h>
19665 # include <assert.h>
19670 /* Override any GCC internal prototype to avoid an error.
19671 Use char because int might match the return type of a GCC
19672 builtin and then its argument prototype would still apply. */
19677 /* The GNU C library defines this for functions which it implements
19678 to always fail with ENOSYS. Some functions are actually named
19679 something starting with __ and the normal name is an alias. */
19680 #if defined __stub_$ac_func || defined __stub___$ac_func
19687 return $ac_func ();
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (ac_try="$ac_link"
19694 case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_link") 2>conftest.er1
19701 grep -v '^ *+' conftest.er1 >conftest.err
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } && {
19706 test -z "$ac_c_werror_flag" ||
19707 test ! -s conftest.err
19708 } && test -s conftest$ac_exeext &&
19709 $as_test_x conftest$ac_exeext; then
19710 eval "$as_ac_var=yes"
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 eval "$as_ac_var=no"
19718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19719 conftest$ac_exeext conftest.$ac_ext
19721 ac_res=`eval echo '${'$as_ac_var'}'`
19722 { echo "$as_me:$LINENO: result: $ac_res" >&5
19723 echo "${ECHO_T}$ac_res" >&6; }
19724 if test `eval echo '${'$as_ac_var'}'` = yes; then
19726 cat >>confdefs.h <<_ACEOF
19727 #define CRAY_STACKSEG_END $ac_func
19736 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19737 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19738 if test "${ac_cv_c_stack_direction+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 if test "$cross_compiling" = yes; then
19742 ac_cv_c_stack_direction=0
19744 cat >conftest.$ac_ext <<_ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19750 $ac_includes_default
19752 find_stack_direction ()
19754 static char *addr = 0;
19759 return find_stack_direction ();
19762 return (&dummy > addr) ? 1 : -1;
19768 return find_stack_direction () < 0;
19771 rm -f conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_link") 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 ac_cv_c_stack_direction=1
19793 echo "$as_me: program exited with status $ac_status" >&5
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 ( exit $ac_status )
19798 ac_cv_c_stack_direction=-1
19800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19805 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19806 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19808 cat >>confdefs.h <<_ACEOF
19809 #define STACK_DIRECTION $ac_cv_c_stack_direction
19817 for ac_header in stdlib.h unistd.h
19819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 ac_res=`eval echo '${'$as_ac_Header'}'`
19827 { echo "$as_me:$LINENO: result: $ac_res" >&5
19828 echo "${ECHO_T}$ac_res" >&6; }
19830 # Is the header compilable?
19831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 $ac_includes_default
19840 #include <$ac_header>
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19851 grep -v '^ *+' conftest.er1 >conftest.err
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.$ac_objext; then
19859 ac_header_compiler=yes
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_header_compiler=no
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19869 echo "${ECHO_T}$ac_header_compiler" >&6; }
19871 # Is the header present?
19872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19880 #include <$ac_header>
19882 if { (ac_try="$ac_cpp conftest.$ac_ext"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } >/dev/null && {
19895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19898 ac_header_preproc=yes
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_header_preproc=no
19906 rm -f conftest.err conftest.$ac_ext
19907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19908 echo "${ECHO_T}$ac_header_preproc" >&6; }
19910 # So? What about this header?
19911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19917 ac_header_preproc=yes
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 eval "$as_ac_Header=\$ac_header_preproc"
19942 ac_res=`eval echo '${'$as_ac_Header'}'`
19943 { echo "$as_me:$LINENO: result: $ac_res" >&5
19944 echo "${ECHO_T}$ac_res" >&6; }
19947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19948 cat >>confdefs.h <<_ACEOF
19949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19957 for ac_func in getpagesize
19959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 cat >conftest.$ac_ext <<_ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19973 #define $ac_func innocuous_$ac_func
19975 /* System header to define __stub macros and hopefully few prototypes,
19976 which can conflict with char $ac_func (); below.
19977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19978 <limits.h> exists even on freestanding compilers. */
19981 # include <limits.h>
19983 # include <assert.h>
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19995 /* The GNU C library defines this for functions which it implements
19996 to always fail with ENOSYS. Some functions are actually named
19997 something starting with __ and the normal name is an alias. */
19998 #if defined __stub_$ac_func || defined __stub___$ac_func
20005 return $ac_func ();
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (ac_try="$ac_link"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_link") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest$ac_exeext &&
20027 $as_test_x conftest$ac_exeext; then
20028 eval "$as_ac_var=yes"
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 eval "$as_ac_var=no"
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20039 ac_res=`eval echo '${'$as_ac_var'}'`
20040 { echo "$as_me:$LINENO: result: $ac_res" >&5
20041 echo "${ECHO_T}$ac_res" >&6; }
20042 if test `eval echo '${'$as_ac_var'}'` = yes; then
20043 cat >>confdefs.h <<_ACEOF
20044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20050 { echo "$as_me:$LINENO: checking for working mmap" >&5
20051 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20052 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 if test "$cross_compiling" = yes; then
20056 ac_cv_func_mmap_fixed_mapped=no
20058 cat >conftest.$ac_ext <<_ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 $ac_includes_default
20065 /* malloc might have been renamed as rpl_malloc. */
20068 /* Thanks to Mike Haertel and Jim Avera for this test.
20069 Here is a matrix of mmap possibilities:
20070 mmap private not fixed
20071 mmap private fixed at somewhere currently unmapped
20072 mmap private fixed at somewhere already mapped
20073 mmap shared not fixed
20074 mmap shared fixed at somewhere currently unmapped
20075 mmap shared fixed at somewhere already mapped
20076 For private mappings, we should verify that changes cannot be read()
20077 back from the file, nor mmap's back from the file at a different
20078 address. (There have been systems where private was not correctly
20079 implemented like the infamous i386 svr4.0, and systems where the
20080 VM page cache was not coherent with the file system buffer cache
20081 like early versions of FreeBSD and possibly contemporary NetBSD.)
20082 For shared mappings, we should conversely verify that changes get
20083 propagated back to all the places they're supposed to be.
20085 Grep wants private fixed already mapped.
20086 The main things grep needs to know about mmap are:
20087 * does it exist and is it safe to write into the mmap'd area
20088 * how to use it (BSD variants) */
20091 #include <sys/mman.h>
20093 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20097 /* This mess was copied from the GNU getpagesize.h. */
20098 #ifndef HAVE_GETPAGESIZE
20099 /* Assume that all systems that can run configure have sys/param.h. */
20100 # ifndef HAVE_SYS_PARAM_H
20101 # define HAVE_SYS_PARAM_H 1
20104 # ifdef _SC_PAGESIZE
20105 # define getpagesize() sysconf(_SC_PAGESIZE)
20106 # else /* no _SC_PAGESIZE */
20107 # ifdef HAVE_SYS_PARAM_H
20108 # include <sys/param.h>
20109 # ifdef EXEC_PAGESIZE
20110 # define getpagesize() EXEC_PAGESIZE
20111 # else /* no EXEC_PAGESIZE */
20113 # define getpagesize() NBPG * CLSIZE
20116 # endif /* no CLSIZE */
20117 # else /* no NBPG */
20119 # define getpagesize() NBPC
20120 # else /* no NBPC */
20122 # define getpagesize() PAGESIZE
20123 # endif /* PAGESIZE */
20124 # endif /* no NBPC */
20125 # endif /* no NBPG */
20126 # endif /* no EXEC_PAGESIZE */
20127 # else /* no HAVE_SYS_PARAM_H */
20128 # define getpagesize() 8192 /* punt totally */
20129 # endif /* no HAVE_SYS_PARAM_H */
20130 # endif /* no _SC_PAGESIZE */
20132 #endif /* no HAVE_GETPAGESIZE */
20137 char *data, *data2, *data3;
20141 pagesize = getpagesize ();
20143 /* First, make a file with some known garbage in it. */
20144 data = (char *) malloc (pagesize);
20147 for (i = 0; i < pagesize; ++i)
20148 *(data + i) = rand ();
20150 fd = creat ("conftest.mmap", 0600);
20153 if (write (fd, data, pagesize) != pagesize)
20157 /* Next, try to mmap the file at a fixed address which already has
20158 something else allocated at it. If we can, also make sure that
20159 we see the same garbage. */
20160 fd = open ("conftest.mmap", O_RDWR);
20163 data2 = (char *) malloc (2 * pagesize);
20166 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20167 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20168 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20170 for (i = 0; i < pagesize; ++i)
20171 if (*(data + i) != *(data2 + i))
20174 /* Finally, make sure that changes to the mapped area do not
20175 percolate back to the file as seen by read(). (This is a bug on
20176 some variants of i386 svr4.0.) */
20177 for (i = 0; i < pagesize; ++i)
20178 *(data2 + i) = *(data2 + i) + 1;
20179 data3 = (char *) malloc (pagesize);
20182 if (read (fd, data3, pagesize) != pagesize)
20184 for (i = 0; i < pagesize; ++i)
20185 if (*(data + i) != *(data3 + i))
20191 rm -f conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_link") 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20202 { (case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_try") 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20211 ac_cv_func_mmap_fixed_mapped=yes
20213 echo "$as_me: program exited with status $ac_status" >&5
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20217 ( exit $ac_status )
20218 ac_cv_func_mmap_fixed_mapped=no
20220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20225 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20226 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20227 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20229 cat >>confdefs.h <<\_ACEOF
20230 #define HAVE_MMAP 1
20234 rm -f conftest.mmap
20237 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20238 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20239 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20249 #include <features.h>
20250 #ifdef __GNU_LIBRARY__
20251 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20258 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20259 ac_cv_gnu_library_2_1=yes
20261 ac_cv_gnu_library_2_1=no
20268 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20269 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20271 GLIBC21="$ac_cv_gnu_library_2_1"
20276 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20277 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20278 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20282 if test "$cross_compiling" = yes; then
20284 # Guess based on the CPU.
20285 case "$host_cpu" in
20286 alpha* | i3456786 | m68k | s390*)
20287 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20289 gt_cv_int_divbyzero_sigfpe="guessing no";;
20293 cat >conftest.$ac_ext <<_ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20300 #include <stdlib.h>
20301 #include <signal.h>
20305 sigfpe_handler (int sig)
20307 sigfpe_handler (sig) int sig;
20310 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20311 exit (sig != SIGFPE);
20321 signal (SIGFPE, sigfpe_handler);
20322 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20323 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20324 signal (SIGTRAP, sigfpe_handler);
20326 /* Linux/SPARC yields signal SIGILL. */
20327 #if defined (__sparc__) && defined (__linux__)
20328 signal (SIGILL, sigfpe_handler);
20337 rm -f conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20348 { (case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_try") 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 gt_cv_int_divbyzero_sigfpe=yes
20359 echo "$as_me: program exited with status $ac_status" >&5
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 ( exit $ac_status )
20364 gt_cv_int_divbyzero_sigfpe=no
20366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20372 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20373 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20374 case "$gt_cv_int_divbyzero_sigfpe" in
20379 cat >>confdefs.h <<_ACEOF
20380 #define INTDIV0_RAISES_SIGFPE $value
20385 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20386 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20387 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 unsigned long long ull = 1ULL; int i = 63;
20400 unsigned long long ullmax = (unsigned long long) -1;
20401 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20406 rm -f conftest.$ac_objext conftest$ac_exeext
20407 if { (ac_try="$ac_link"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_link") 2>conftest.er1
20415 grep -v '^ *+' conftest.er1 >conftest.err
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && {
20420 test -z "$ac_c_werror_flag" ||
20421 test ! -s conftest.err
20422 } && test -s conftest$ac_exeext &&
20423 $as_test_x conftest$ac_exeext; then
20424 ac_cv_type_unsigned_long_long=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_type_unsigned_long_long=no
20432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20433 conftest$ac_exeext conftest.$ac_ext
20435 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20436 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20437 if test $ac_cv_type_unsigned_long_long = yes; then
20439 cat >>confdefs.h <<\_ACEOF
20440 #define HAVE_UNSIGNED_LONG_LONG 1
20448 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20450 test $ac_cv_type_unsigned_long_long = yes \
20451 && ac_type='unsigned long long' \
20452 || ac_type='unsigned long'
20454 cat >>confdefs.h <<_ACEOF
20455 #define uintmax_t $ac_type
20460 cat >>confdefs.h <<\_ACEOF
20461 #define HAVE_UINTMAX_T 1
20467 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20468 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20469 if test "${gt_cv_header_inttypes_h+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 #include <sys/types.h>
20480 #include <inttypes.h>
20489 rm -f conftest.$ac_objext
20490 if { (ac_try="$ac_compile"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest.$ac_objext; then
20506 gt_cv_header_inttypes_h=yes
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 gt_cv_header_inttypes_h=no
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20518 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20519 if test $gt_cv_header_inttypes_h = yes; then
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_INTTYPES_H 1
20529 if test $gt_cv_header_inttypes_h = yes; then
20530 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20531 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20532 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 #include <inttypes.h>
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_compile") 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && {
20569 test -z "$ac_c_werror_flag" ||
20570 test ! -s conftest.err
20571 } && test -s conftest.$ac_objext; then
20572 gt_cv_inttypes_pri_broken=no
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 gt_cv_inttypes_pri_broken=yes
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20584 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20586 if test "$gt_cv_inttypes_pri_broken" = yes; then
20588 cat >>confdefs.h <<_ACEOF
20589 #define PRI_MACROS_BROKEN 1
20596 for ac_header in stdint.h
20598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20605 ac_res=`eval echo '${'$as_ac_Header'}'`
20606 { echo "$as_me:$LINENO: result: $ac_res" >&5
20607 echo "${ECHO_T}$ac_res" >&6; }
20609 # Is the header compilable?
20610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20612 cat >conftest.$ac_ext <<_ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h. */
20618 $ac_includes_default
20619 #include <$ac_header>
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_compile") 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } && {
20635 test -z "$ac_c_werror_flag" ||
20636 test ! -s conftest.err
20637 } && test -s conftest.$ac_objext; then
20638 ac_header_compiler=yes
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ac_header_compiler=no
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20648 echo "${ECHO_T}$ac_header_compiler" >&6; }
20650 # Is the header present?
20651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20659 #include <$ac_header>
20661 if { (ac_try="$ac_cpp conftest.$ac_ext"
20662 case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20669 grep -v '^ *+' conftest.er1 >conftest.err
20671 cat conftest.err >&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } >/dev/null && {
20674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20675 test ! -s conftest.err
20677 ac_header_preproc=yes
20679 echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20682 ac_header_preproc=no
20685 rm -f conftest.err conftest.$ac_ext
20686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20687 echo "${ECHO_T}$ac_header_preproc" >&6; }
20689 # So? What about this header?
20690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20696 ac_header_preproc=yes
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 eval "$as_ac_Header=\$ac_header_preproc"
20721 ac_res=`eval echo '${'$as_ac_Header'}'`
20722 { echo "$as_me:$LINENO: result: $ac_res" >&5
20723 echo "${ECHO_T}$ac_res" >&6; }
20726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20727 cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20735 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20736 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 #include <limits.h>
20747 #include <stdint.h>
20754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20755 $EGREP "Found it" >/dev/null 2>&1; then
20760 if test -z "$result"; then
20761 if test "$cross_compiling" = yes; then
20762 # Depending upon the size, compute the lo and hi bounds.
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 #include <stddef.h>
20773 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest.$ac_objext; then
20799 cat >conftest.$ac_ext <<_ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20805 #include <stddef.h>
20809 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && {
20830 test -z "$ac_c_werror_flag" ||
20831 test ! -s conftest.err
20832 } && test -s conftest.$ac_objext; then
20833 ac_hi=$ac_mid; break
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838 ac_lo=`expr $ac_mid + 1`
20839 if test $ac_lo -le $ac_mid; then
20843 ac_mid=`expr 2 '*' $ac_mid + 1`
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <stddef.h>
20862 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20878 grep -v '^ *+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } && {
20883 test -z "$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 } && test -s conftest.$ac_objext; then
20888 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 #include <stddef.h>
20898 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_compile") 2>conftest.er1
20914 grep -v '^ *+' conftest.er1 >conftest.err
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } && {
20919 test -z "$ac_c_werror_flag" ||
20920 test ! -s conftest.err
20921 } && test -s conftest.$ac_objext; then
20922 ac_lo=$ac_mid; break
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_hi=`expr '(' $ac_mid ')' - 1`
20928 if test $ac_mid -le $ac_hi; then
20932 ac_mid=`expr 2 '*' $ac_mid`
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 # Binary search between lo and hi bounds.
20949 while test "x$ac_lo" != "x$ac_hi"; do
20950 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 #include <stddef.h>
20961 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_compile") 2>conftest.er1
20977 grep -v '^ *+' conftest.er1 >conftest.err
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && {
20982 test -z "$ac_c_werror_flag" ||
20983 test ! -s conftest.err
20984 } && test -s conftest.$ac_objext; then
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 ac_lo=`expr '(' $ac_mid ')' + 1`
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 ?*) res_hi=$ac_lo;;
21000 cat >conftest.$ac_ext <<_ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <stddef.h>
21007 static long int longval () { return ~(size_t)0 / 10; }
21008 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21010 #include <stdlib.h>
21015 FILE *f = fopen ("conftest.val", "w");
21018 if ((~(size_t)0 / 10) < 0)
21020 long int i = longval ();
21021 if (i != (~(size_t)0 / 10))
21023 fprintf (f, "%ld\n", i);
21027 unsigned long int i = ulongval ();
21028 if (i != (~(size_t)0 / 10))
21030 fprintf (f, "%lu\n", i);
21032 return ferror (f) || fclose (f) != 0;
21038 rm -f conftest$ac_exeext
21039 if { (ac_try="$ac_link"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_link") 2>&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21049 { (case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_try") 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 res_hi=`cat conftest.val`
21060 echo "$as_me: program exited with status $ac_status" >&5
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 ( exit $ac_status )
21067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21071 if test "$cross_compiling" = yes; then
21072 # Depending upon the size, compute the lo and hi bounds.
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 #include <stddef.h>
21083 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21090 rm -f conftest.$ac_objext
21091 if { (ac_try="$ac_compile"
21092 case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_compile") 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } && {
21104 test -z "$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21106 } && test -s conftest.$ac_objext; then
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #include <stddef.h>
21119 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21126 rm -f conftest.$ac_objext
21127 if { (ac_try="$ac_compile"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_compile") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest.$ac_objext; then
21143 ac_hi=$ac_mid; break
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 ac_lo=`expr $ac_mid + 1`
21149 if test $ac_lo -le $ac_mid; then
21153 ac_mid=`expr 2 '*' $ac_mid + 1`
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 cat >conftest.$ac_ext <<_ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 #include <stddef.h>
21172 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21179 rm -f conftest.$ac_objext
21180 if { (ac_try="$ac_compile"
21181 case "(($ac_try" in
21182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183 *) ac_try_echo=$ac_try;;
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186 (eval "$ac_compile") 2>conftest.er1
21188 grep -v '^ *+' conftest.er1 >conftest.err
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } && {
21193 test -z "$ac_c_werror_flag" ||
21194 test ! -s conftest.err
21195 } && test -s conftest.$ac_objext; then
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 #include <stddef.h>
21208 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21215 rm -f conftest.$ac_objext
21216 if { (ac_try="$ac_compile"
21217 case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222 (eval "$ac_compile") 2>conftest.er1
21224 grep -v '^ *+' conftest.er1 >conftest.err
21226 cat conftest.err >&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } && {
21229 test -z "$ac_c_werror_flag" ||
21230 test ! -s conftest.err
21231 } && test -s conftest.$ac_objext; then
21232 ac_lo=$ac_mid; break
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21237 ac_hi=`expr '(' $ac_mid ')' - 1`
21238 if test $ac_mid -le $ac_hi; then
21242 ac_mid=`expr 2 '*' $ac_mid`
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 # Binary search between lo and hi bounds.
21259 while test "x$ac_lo" != "x$ac_hi"; do
21260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21261 cat >conftest.$ac_ext <<_ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 #include <stddef.h>
21271 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_compile") 2>conftest.er1
21287 grep -v '^ *+' conftest.er1 >conftest.err
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } && {
21292 test -z "$ac_c_werror_flag" ||
21293 test ! -s conftest.err
21294 } && test -s conftest.$ac_objext; then
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ac_lo=`expr '(' $ac_mid ')' + 1`
21303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 ?*) res_lo=$ac_lo;;
21310 cat >conftest.$ac_ext <<_ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 #include <stddef.h>
21317 static long int longval () { return ~(size_t)0 % 10; }
21318 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21320 #include <stdlib.h>
21325 FILE *f = fopen ("conftest.val", "w");
21328 if ((~(size_t)0 % 10) < 0)
21330 long int i = longval ();
21331 if (i != (~(size_t)0 % 10))
21333 fprintf (f, "%ld\n", i);
21337 unsigned long int i = ulongval ();
21338 if (i != (~(size_t)0 % 10))
21340 fprintf (f, "%lu\n", i);
21342 return ferror (f) || fclose (f) != 0;
21348 rm -f conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_link") 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21359 { (case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_try") 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 res_lo=`cat conftest.val`
21370 echo "$as_me: program exited with status $ac_status" >&5
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ( exit $ac_status )
21377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21381 if test "$cross_compiling" = yes; then
21382 # Depending upon the size, compute the lo and hi bounds.
21383 cat >conftest.$ac_ext <<_ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21389 #include <stddef.h>
21393 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_compile") 2>conftest.er1
21409 grep -v '^ *+' conftest.er1 >conftest.err
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest.$ac_objext; then
21419 cat >conftest.$ac_ext <<_ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 #include <stddef.h>
21429 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21445 grep -v '^ *+' conftest.er1 >conftest.err
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21453 ac_hi=$ac_mid; break
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_lo=`expr $ac_mid + 1`
21459 if test $ac_lo -le $ac_mid; then
21463 ac_mid=`expr 2 '*' $ac_mid + 1`
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21472 cat >conftest.$ac_ext <<_ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 #include <stddef.h>
21482 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21489 rm -f conftest.$ac_objext
21490 if { (ac_try="$ac_compile"
21491 case "(($ac_try" in
21492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493 *) ac_try_echo=$ac_try;;
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496 (eval "$ac_compile") 2>conftest.er1
21498 grep -v '^ *+' conftest.er1 >conftest.err
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest.$ac_objext; then
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 #include <stddef.h>
21518 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_compile") 2>conftest.er1
21534 grep -v '^ *+' conftest.er1 >conftest.err
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } && {
21539 test -z "$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21541 } && test -s conftest.$ac_objext; then
21542 ac_lo=$ac_mid; break
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ac_hi=`expr '(' $ac_mid ')' - 1`
21548 if test $ac_mid -le $ac_hi; then
21552 ac_mid=`expr 2 '*' $ac_mid`
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 # Binary search between lo and hi bounds.
21569 while test "x$ac_lo" != "x$ac_hi"; do
21570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 #include <stddef.h>
21581 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_compile") 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } && {
21602 test -z "$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21604 } && test -s conftest.$ac_objext; then
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_lo=`expr '(' $ac_mid ')' + 1`
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 ?*) fits_in_uint=$ac_lo;;
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626 #include <stddef.h>
21627 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21628 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21630 #include <stdlib.h>
21635 FILE *f = fopen ("conftest.val", "w");
21638 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21640 long int i = longval ();
21641 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21643 fprintf (f, "%ld\n", i);
21647 unsigned long int i = ulongval ();
21648 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21650 fprintf (f, "%lu\n", i);
21652 return ferror (f) || fclose (f) != 0;
21658 rm -f conftest$ac_exeext
21659 if { (ac_try="$ac_link"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_link") 2>&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21669 { (case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21674 (eval "$ac_try") 2>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678 fits_in_uint=`cat conftest.val`
21680 echo "$as_me: program exited with status $ac_status" >&5
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 ( exit $ac_status )
21687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21691 if test "$fits_in_uint" = 1; then
21692 cat >conftest.$ac_ext <<_ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 #include <stddef.h>
21700 extern unsigned long foo;
21710 rm -f conftest.$ac_objext
21711 if { (ac_try="$ac_compile"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_compile") 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest.$ac_objext; then
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737 if test -z "$result"; then
21738 if test "$fits_in_uint" = 1; then
21739 result="$res_hi$res_lo"U
21741 result="$res_hi$res_lo"UL
21744 result='~(size_t)0'
21747 { echo "$as_me:$LINENO: result: $result" >&5
21748 echo "${ECHO_T}$result" >&6; }
21749 if test "$result" != yes; then
21751 cat >>confdefs.h <<_ACEOF
21752 #define SIZE_MAX $result
21761 for ac_header in stdint.h
21763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21768 echo $ECHO_N "(cached) $ECHO_C" >&6
21770 ac_res=`eval echo '${'$as_ac_Header'}'`
21771 { echo "$as_me:$LINENO: result: $ac_res" >&5
21772 echo "${ECHO_T}$ac_res" >&6; }
21774 # Is the header compilable?
21775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21777 cat >conftest.$ac_ext <<_ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 $ac_includes_default
21784 #include <$ac_header>
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_compile") 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest.$ac_objext; then
21803 ac_header_compiler=yes
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ac_header_compiler=no
21811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21813 echo "${ECHO_T}$ac_header_compiler" >&6; }
21815 # Is the header present?
21816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 #include <$ac_header>
21826 if { (ac_try="$ac_cpp conftest.$ac_ext"
21827 case "(($ac_try" in
21828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829 *) ac_try_echo=$ac_try;;
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21834 grep -v '^ *+' conftest.er1 >conftest.err
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } >/dev/null && {
21839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21840 test ! -s conftest.err
21842 ac_header_preproc=yes
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21847 ac_header_preproc=no
21850 rm -f conftest.err conftest.$ac_ext
21851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21852 echo "${ECHO_T}$ac_header_preproc" >&6; }
21854 # So? What about this header?
21855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21861 ac_header_preproc=yes
21864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 eval "$as_ac_Header=\$ac_header_preproc"
21886 ac_res=`eval echo '${'$as_ac_Header'}'`
21887 { echo "$as_me:$LINENO: result: $ac_res" >&5
21888 echo "${ECHO_T}$ac_res" >&6; }
21891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21892 cat >>confdefs.h <<_ACEOF
21893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21907 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21908 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21909 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 $ac_includes_default
21919 typedef ptrdiff_t ac__type_new_;
21923 if ((ac__type_new_ *) 0)
21925 if (sizeof (ac__type_new_))
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_compile") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest.$ac_objext; then
21948 ac_cv_type_ptrdiff_t=yes
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_cv_type_ptrdiff_t=no
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21959 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21960 if test $ac_cv_type_ptrdiff_t = yes; then
21964 cat >>confdefs.h <<\_ACEOF
21965 #define ptrdiff_t long
21981 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21982 stdlib.h string.h unistd.h sys/param.h
21984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21991 ac_res=`eval echo '${'$as_ac_Header'}'`
21992 { echo "$as_me:$LINENO: result: $ac_res" >&5
21993 echo "${ECHO_T}$ac_res" >&6; }
21995 # Is the header compilable?
21996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21998 cat >conftest.$ac_ext <<_ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22004 $ac_includes_default
22005 #include <$ac_header>
22007 rm -f conftest.$ac_objext
22008 if { (ac_try="$ac_compile"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_compile") 2>conftest.er1
22016 grep -v '^ *+' conftest.er1 >conftest.err
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest.$ac_objext; then
22024 ac_header_compiler=yes
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ac_header_compiler=no
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22034 echo "${ECHO_T}$ac_header_compiler" >&6; }
22036 # Is the header present?
22037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22039 cat >conftest.$ac_ext <<_ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 #include <$ac_header>
22047 if { (ac_try="$ac_cpp conftest.$ac_ext"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22055 grep -v '^ *+' conftest.er1 >conftest.err
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } >/dev/null && {
22060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22061 test ! -s conftest.err
22063 ac_header_preproc=yes
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_header_preproc=no
22071 rm -f conftest.err conftest.$ac_ext
22072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22073 echo "${ECHO_T}$ac_header_preproc" >&6; }
22075 # So? What about this header?
22076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22082 ac_header_preproc=yes
22085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 eval "$as_ac_Header=\$ac_header_preproc"
22107 ac_res=`eval echo '${'$as_ac_Header'}'`
22108 { echo "$as_me:$LINENO: result: $ac_res" >&5
22109 echo "${ECHO_T}$ac_res" >&6; }
22112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22113 cat >>confdefs.h <<_ACEOF
22114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22144 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22145 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22146 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 cat >conftest.$ac_ext <<_ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22163 #define $ac_func innocuous_$ac_func
22165 /* System header to define __stub macros and hopefully few prototypes,
22166 which can conflict with char $ac_func (); below.
22167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22168 <limits.h> exists even on freestanding compilers. */
22171 # include <limits.h>
22173 # include <assert.h>
22178 /* Override any GCC internal prototype to avoid an error.
22179 Use char because int might match the return type of a GCC
22180 builtin and then its argument prototype would still apply. */
22185 /* The GNU C library defines this for functions which it implements
22186 to always fail with ENOSYS. Some functions are actually named
22187 something starting with __ and the normal name is an alias. */
22188 #if defined __stub_$ac_func || defined __stub___$ac_func
22195 return $ac_func ();
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (ac_try="$ac_link"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_link") 2>conftest.er1
22209 grep -v '^ *+' conftest.er1 >conftest.err
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && {
22214 test -z "$ac_c_werror_flag" ||
22215 test ! -s conftest.err
22216 } && test -s conftest$ac_exeext &&
22217 $as_test_x conftest$ac_exeext; then
22218 eval "$as_ac_var=yes"
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 eval "$as_ac_var=no"
22226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22227 conftest$ac_exeext conftest.$ac_ext
22229 ac_res=`eval echo '${'$as_ac_var'}'`
22230 { echo "$as_me:$LINENO: result: $ac_res" >&5
22231 echo "${ECHO_T}$ac_res" >&6; }
22232 if test `eval echo '${'$as_ac_var'}'` = yes; then
22233 cat >>confdefs.h <<_ACEOF
22234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22242 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22243 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22244 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 cat >conftest.$ac_ext <<_ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22259 char *p = (char *) _snprintf;
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_compile") 2>conftest.er1
22275 grep -v '^ *+' conftest.er1 >conftest.err
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest.$ac_objext; then
22283 ac_cv_have_decl__snprintf=yes
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22288 ac_cv_have_decl__snprintf=no
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22294 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22295 if test $ac_cv_have_decl__snprintf = yes; then
22301 cat >>confdefs.h <<_ACEOF
22302 #define HAVE_DECL__SNPRINTF $gt_value
22307 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22308 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22309 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 cat >conftest.$ac_ext <<_ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22324 char *p = (char *) _snwprintf;
22331 rm -f conftest.$ac_objext
22332 if { (ac_try="$ac_compile"
22333 case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_compile") 2>conftest.er1
22340 grep -v '^ *+' conftest.er1 >conftest.err
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest.$ac_objext; then
22348 ac_cv_have_decl__snwprintf=yes
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_have_decl__snwprintf=no
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22359 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22360 if test $ac_cv_have_decl__snwprintf = yes; then
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_DECL__SNWPRINTF $gt_value
22373 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22374 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22375 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 cat >conftest.$ac_ext <<_ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22389 #ifndef feof_unlocked
22390 char *p = (char *) feof_unlocked;
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401 *) ac_try_echo=$ac_try;;
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404 (eval "$ac_compile") 2>conftest.er1
22406 grep -v '^ *+' conftest.er1 >conftest.err
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } && {
22411 test -z "$ac_c_werror_flag" ||
22412 test ! -s conftest.err
22413 } && test -s conftest.$ac_objext; then
22414 ac_cv_have_decl_feof_unlocked=yes
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 ac_cv_have_decl_feof_unlocked=no
22422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22424 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22425 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22426 if test $ac_cv_have_decl_feof_unlocked = yes; then
22432 cat >>confdefs.h <<_ACEOF
22433 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22438 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22439 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22440 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22443 cat >conftest.$ac_ext <<_ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22454 #ifndef fgets_unlocked
22455 char *p = (char *) fgets_unlocked;
22462 rm -f conftest.$ac_objext
22463 if { (ac_try="$ac_compile"
22464 case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469 (eval "$ac_compile") 2>conftest.er1
22471 grep -v '^ *+' conftest.er1 >conftest.err
22473 cat conftest.err >&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); } && {
22476 test -z "$ac_c_werror_flag" ||
22477 test ! -s conftest.err
22478 } && test -s conftest.$ac_objext; then
22479 ac_cv_have_decl_fgets_unlocked=yes
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_cv_have_decl_fgets_unlocked=no
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22490 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22491 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22503 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22504 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22505 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22508 cat >conftest.$ac_ext <<_ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h. */
22519 #ifndef getc_unlocked
22520 char *p = (char *) getc_unlocked;
22527 rm -f conftest.$ac_objext
22528 if { (ac_try="$ac_compile"
22529 case "(($ac_try" in
22530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531 *) ac_try_echo=$ac_try;;
22533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22534 (eval "$ac_compile") 2>conftest.er1
22536 grep -v '^ *+' conftest.er1 >conftest.err
22538 cat conftest.err >&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } && {
22541 test -z "$ac_c_werror_flag" ||
22542 test ! -s conftest.err
22543 } && test -s conftest.$ac_objext; then
22544 ac_cv_have_decl_getc_unlocked=yes
22546 echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22549 ac_cv_have_decl_getc_unlocked=no
22552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22555 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22556 if test $ac_cv_have_decl_getc_unlocked = yes; then
22562 cat >>confdefs.h <<_ACEOF
22563 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22568 case $gt_cv_func_printf_posix in
22569 *yes) HAVE_POSIX_PRINTF=1 ;;
22570 *) HAVE_POSIX_PRINTF=0 ;;
22573 if test "$ac_cv_func_asprintf" = yes; then
22579 if test "$ac_cv_func_snprintf" = yes; then
22585 if test "$ac_cv_func_wprintf" = yes; then
22597 am_save_CPPFLAGS="$CPPFLAGS"
22599 for element in $INCICONV; do
22601 for x in $CPPFLAGS; do
22603 acl_save_prefix="$prefix"
22604 prefix="$acl_final_prefix"
22605 acl_save_exec_prefix="$exec_prefix"
22606 exec_prefix="$acl_final_exec_prefix"
22608 exec_prefix="$acl_save_exec_prefix"
22609 prefix="$acl_save_prefix"
22611 if test "X$x" = "X$element"; then
22616 if test -z "$haveit"; then
22617 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22622 { echo "$as_me:$LINENO: checking for iconv" >&5
22623 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22624 if test "${am_cv_func_iconv+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22628 am_cv_func_iconv="no, consider installing GNU libiconv"
22630 cat >conftest.$ac_ext <<_ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 #include <stdlib.h>
22641 iconv_t cd = iconv_open("","");
22642 iconv(cd,NULL,NULL,NULL,NULL);
22648 rm -f conftest.$ac_objext conftest$ac_exeext
22649 if { (ac_try="$ac_link"
22650 case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_link") 2>conftest.er1
22657 grep -v '^ *+' conftest.er1 >conftest.err
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } && {
22662 test -z "$ac_c_werror_flag" ||
22663 test ! -s conftest.err
22664 } && test -s conftest$ac_exeext &&
22665 $as_test_x conftest$ac_exeext; then
22666 am_cv_func_iconv=yes
22668 echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22675 conftest$ac_exeext conftest.$ac_ext
22676 if test "$am_cv_func_iconv" != yes; then
22677 am_save_LIBS="$LIBS"
22678 LIBS="$LIBS $LIBICONV"
22679 cat >conftest.$ac_ext <<_ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 #include <stdlib.h>
22690 iconv_t cd = iconv_open("","");
22691 iconv(cd,NULL,NULL,NULL,NULL);
22697 rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (ac_try="$ac_link"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_link") 2>conftest.er1
22706 grep -v '^ *+' conftest.er1 >conftest.err
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest$ac_exeext &&
22714 $as_test_x conftest$ac_exeext; then
22715 am_cv_lib_iconv=yes
22716 am_cv_func_iconv=yes
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725 conftest$ac_exeext conftest.$ac_ext
22726 LIBS="$am_save_LIBS"
22730 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22731 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22732 if test "$am_cv_func_iconv" = yes; then
22734 cat >>confdefs.h <<\_ACEOF
22735 #define HAVE_ICONV 1
22739 if test "$am_cv_lib_iconv" = yes; then
22740 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22741 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22742 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22743 echo "${ECHO_T}$LIBICONV" >&6; }
22745 CPPFLAGS="$am_save_CPPFLAGS"
22752 if test "$am_cv_func_iconv" = yes; then
22753 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22754 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22755 if test "${am_cv_proto_iconv+set}" = set; then
22756 echo $ECHO_N "(cached) $ECHO_C" >&6
22759 cat >conftest.$ac_ext <<_ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22766 #include <stdlib.h>
22772 #if defined(__STDC__) || defined(__cplusplus)
22773 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790 *) ac_try_echo=$ac_try;;
22792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793 (eval "$ac_compile") 2>conftest.er1
22795 grep -v '^ *+' conftest.er1 >conftest.err
22797 cat conftest.err >&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); } && {
22800 test -z "$ac_c_werror_flag" ||
22801 test ! -s conftest.err
22802 } && test -s conftest.$ac_objext; then
22803 am_cv_proto_iconv_arg1=""
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22808 am_cv_proto_iconv_arg1="const"
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22812 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);"
22815 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22816 { echo "$as_me:$LINENO: result: ${ac_t:-
22817 }$am_cv_proto_iconv" >&5
22818 echo "${ECHO_T}${ac_t:-
22819 }$am_cv_proto_iconv" >&6; }
22821 cat >>confdefs.h <<_ACEOF
22822 #define ICONV_CONST $am_cv_proto_iconv_arg1
22828 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22829 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22830 if test "${am_cv_langinfo_codeset+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22833 cat >conftest.$ac_ext <<_ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 #include <langinfo.h>
22843 char* cs = nl_langinfo(CODESET);
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_link") 2>conftest.er1
22857 grep -v '^ *+' conftest.er1 >conftest.err
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } && {
22862 test -z "$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22864 } && test -s conftest$ac_exeext &&
22865 $as_test_x conftest$ac_exeext; then
22866 am_cv_langinfo_codeset=yes
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 am_cv_langinfo_codeset=no
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875 conftest$ac_exeext conftest.$ac_ext
22878 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22879 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22880 if test $am_cv_langinfo_codeset = yes; then
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_LANGINFO_CODESET 1
22888 if test $ac_cv_header_locale_h = yes; then
22890 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22891 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22892 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 cat >conftest.$ac_ext <<_ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h. */
22901 #include <locale.h>
22910 rm -f conftest.$ac_objext conftest$ac_exeext
22911 if { (ac_try="$ac_link"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_link") 2>conftest.er1
22919 grep -v '^ *+' conftest.er1 >conftest.err
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && {
22924 test -z "$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 } && test -s conftest$ac_exeext &&
22927 $as_test_x conftest$ac_exeext; then
22928 gt_cv_val_LC_MESSAGES=yes
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22933 gt_cv_val_LC_MESSAGES=no
22936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22937 conftest$ac_exeext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22940 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22941 if test $gt_cv_val_LC_MESSAGES = yes; then
22943 cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_LC_MESSAGES 1
22951 if test -n "$INTL_MACOSX_LIBS"; then
22952 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22955 for ac_prog in bison
22957 # Extract the first word of "$ac_prog", so it can be a program name with args.
22958 set dummy $ac_prog; ac_word=$2
22959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22961 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22962 echo $ECHO_N "(cached) $ECHO_C" >&6
22964 if test -n "$INTLBISON"; then
22965 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968 for as_dir in $PATH
22971 test -z "$as_dir" && as_dir=.
22972 for ac_exec_ext in '' $ac_executable_extensions; do
22973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22974 ac_cv_prog_INTLBISON="$ac_prog"
22975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22984 INTLBISON=$ac_cv_prog_INTLBISON
22985 if test -n "$INTLBISON"; then
22986 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22987 echo "${ECHO_T}$INTLBISON" >&6; }
22989 { echo "$as_me:$LINENO: result: no" >&5
22990 echo "${ECHO_T}no" >&6; }
22994 test -n "$INTLBISON" && break
22997 if test -z "$INTLBISON"; then
23000 { echo "$as_me:$LINENO: checking version of bison" >&5
23001 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23002 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23003 case $ac_prog_version in
23004 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23005 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23006 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23007 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23009 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23010 echo "${ECHO_T}$ac_prog_version" >&6; }
23012 if test $ac_verc_fail = yes; then
23031 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23032 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23033 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 gt_save_CPPFLAGS="$CPPFLAGS"
23037 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23038 gt_save_LIBS="$LIBS"
23039 LIBS="$LIBS -framework CoreFoundation"
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 #include <CFPreferences.h>
23050 CFPreferencesCopyAppValue(NULL, NULL)
23055 rm -f conftest.$ac_objext conftest$ac_exeext
23056 if { (ac_try="$ac_link"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_link") 2>conftest.er1
23064 grep -v '^ *+' conftest.er1 >conftest.err
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest$ac_exeext &&
23072 $as_test_x conftest$ac_exeext; then
23073 gt_cv_func_CFPreferencesCopyAppValue=yes
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 gt_cv_func_CFPreferencesCopyAppValue=no
23081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23082 conftest$ac_exeext conftest.$ac_ext
23083 CPPFLAGS="$gt_save_CPPFLAGS"
23084 LIBS="$gt_save_LIBS"
23086 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23087 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23088 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23090 cat >>confdefs.h <<\_ACEOF
23091 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23095 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23096 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23097 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 gt_save_CPPFLAGS="$CPPFLAGS"
23101 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23102 gt_save_LIBS="$LIBS"
23103 LIBS="$LIBS -framework CoreFoundation"
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 #include <CFLocale.h>
23114 CFLocaleCopyCurrent();
23119 rm -f conftest.$ac_objext conftest$ac_exeext
23120 if { (ac_try="$ac_link"
23121 case "(($ac_try" in
23122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123 *) ac_try_echo=$ac_try;;
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126 (eval "$ac_link") 2>conftest.er1
23128 grep -v '^ *+' conftest.er1 >conftest.err
23130 cat conftest.err >&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } && {
23133 test -z "$ac_c_werror_flag" ||
23134 test ! -s conftest.err
23135 } && test -s conftest$ac_exeext &&
23136 $as_test_x conftest$ac_exeext; then
23137 gt_cv_func_CFLocaleCopyCurrent=yes
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23142 gt_cv_func_CFLocaleCopyCurrent=no
23145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23146 conftest$ac_exeext conftest.$ac_ext
23147 CPPFLAGS="$gt_save_CPPFLAGS"
23148 LIBS="$gt_save_LIBS"
23150 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23151 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23152 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_CFLOCALECOPYCURRENT 1
23160 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23161 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23167 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23168 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23169 # Check whether --enable-nls was given.
23170 if test "${enable_nls+set}" = set; then
23171 enableval=$enable_nls; USE_NLS=$enableval
23176 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23177 echo "${ECHO_T}$USE_NLS" >&6; }
23182 BUILD_INCLUDED_LIBINTL=no
23183 USE_INCLUDED_LIBINTL=no
23189 if test "$USE_NLS" = "yes"; then
23190 gt_use_preinstalled_gnugettext=no
23192 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23193 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23195 # Check whether --with-included-gettext was given.
23196 if test "${with_included_gettext+set}" = set; then
23197 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23199 nls_cv_force_use_gnu_gettext=no
23202 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23203 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23205 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23206 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23213 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23214 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23215 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 cat >conftest.$ac_ext <<_ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h. */
23224 #include <libintl.h>
23225 extern int _nl_msg_cat_cntr;
23226 extern int *_nl_domain_bindings;
23230 bindtextdomain ("", "");
23231 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23236 rm -f conftest.$ac_objext conftest$ac_exeext
23237 if { (ac_try="$ac_link"
23238 case "(($ac_try" in
23239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23240 *) ac_try_echo=$ac_try;;
23242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23243 (eval "$ac_link") 2>conftest.er1
23245 grep -v '^ *+' conftest.er1 >conftest.err
23247 cat conftest.err >&5
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); } && {
23250 test -z "$ac_c_werror_flag" ||
23251 test ! -s conftest.err
23252 } && test -s conftest$ac_exeext &&
23253 $as_test_x conftest$ac_exeext; then
23254 gt_cv_func_gnugettext1_libc=yes
23256 echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23259 gt_cv_func_gnugettext1_libc=no
23262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23263 conftest$ac_exeext conftest.$ac_ext
23265 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23266 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23268 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23274 acl_save_prefix="$prefix"
23275 prefix="$acl_final_prefix"
23276 acl_save_exec_prefix="$exec_prefix"
23277 exec_prefix="$acl_final_exec_prefix"
23279 eval additional_includedir=\"$includedir\"
23280 eval additional_libdir=\"$libdir\"
23282 exec_prefix="$acl_save_exec_prefix"
23283 prefix="$acl_save_prefix"
23286 # Check whether --with-libintl-prefix was given.
23287 if test "${with_libintl_prefix+set}" = set; then
23288 withval=$with_libintl_prefix;
23289 if test "X$withval" = "Xno"; then
23292 if test "X$withval" = "X"; then
23294 acl_save_prefix="$prefix"
23295 prefix="$acl_final_prefix"
23296 acl_save_exec_prefix="$exec_prefix"
23297 exec_prefix="$acl_final_exec_prefix"
23299 eval additional_includedir=\"$includedir\"
23300 eval additional_libdir=\"$libdir\"
23302 exec_prefix="$acl_save_exec_prefix"
23303 prefix="$acl_save_prefix"
23306 additional_includedir="$withval/include"
23307 additional_libdir="$withval/lib"
23318 names_already_handled=
23319 names_next_round='intl '
23320 while test -n "$names_next_round"; do
23321 names_this_round="$names_next_round"
23323 for name in $names_this_round; do
23325 for n in $names_already_handled; do
23326 if test "$n" = "$name"; then
23327 already_handled=yes
23331 if test -z "$already_handled"; then
23332 names_already_handled="$names_already_handled $name"
23333 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23334 eval value=\"\$HAVE_LIB$uppername\"
23335 if test -n "$value"; then
23336 if test "$value" = yes; then
23337 eval value=\"\$LIB$uppername\"
23338 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23339 eval value=\"\$LTLIB$uppername\"
23340 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23349 if test $use_additional = yes; then
23350 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23351 found_dir="$additional_libdir"
23352 found_so="$additional_libdir/lib$name.$shlibext"
23353 if test -f "$additional_libdir/lib$name.la"; then
23354 found_la="$additional_libdir/lib$name.la"
23357 if test -f "$additional_libdir/lib$name.$libext"; then
23358 found_dir="$additional_libdir"
23359 found_a="$additional_libdir/lib$name.$libext"
23360 if test -f "$additional_libdir/lib$name.la"; then
23361 found_la="$additional_libdir/lib$name.la"
23366 if test "X$found_dir" = "X"; then
23367 for x in $LDFLAGS $LTLIBINTL; do
23369 acl_save_prefix="$prefix"
23370 prefix="$acl_final_prefix"
23371 acl_save_exec_prefix="$exec_prefix"
23372 exec_prefix="$acl_final_exec_prefix"
23374 exec_prefix="$acl_save_exec_prefix"
23375 prefix="$acl_save_prefix"
23379 dir=`echo "X$x" | sed -e 's/^X-L//'`
23380 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23382 found_so="$dir/lib$name.$shlibext"
23383 if test -f "$dir/lib$name.la"; then
23384 found_la="$dir/lib$name.la"
23387 if test -f "$dir/lib$name.$libext"; then
23389 found_a="$dir/lib$name.$libext"
23390 if test -f "$dir/lib$name.la"; then
23391 found_la="$dir/lib$name.la"
23397 if test "X$found_dir" != "X"; then
23402 if test "X$found_dir" != "X"; then
23403 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23404 if test "X$found_so" != "X"; then
23405 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23406 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23409 for x in $ltrpathdirs; do
23410 if test "X$x" = "X$found_dir"; then
23415 if test -z "$haveit"; then
23416 ltrpathdirs="$ltrpathdirs $found_dir"
23418 if test "$hardcode_direct" = yes; then
23419 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23421 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23422 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23424 for x in $rpathdirs; do
23425 if test "X$x" = "X$found_dir"; then
23430 if test -z "$haveit"; then
23431 rpathdirs="$rpathdirs $found_dir"
23435 for x in $LDFLAGS $LIBINTL; do
23437 acl_save_prefix="$prefix"
23438 prefix="$acl_final_prefix"
23439 acl_save_exec_prefix="$exec_prefix"
23440 exec_prefix="$acl_final_exec_prefix"
23442 exec_prefix="$acl_save_exec_prefix"
23443 prefix="$acl_save_prefix"
23445 if test "X$x" = "X-L$found_dir"; then
23450 if test -z "$haveit"; then
23451 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23453 if test "$hardcode_minus_L" != no; then
23454 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23456 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23462 if test "X$found_a" != "X"; then
23463 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23465 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23468 additional_includedir=
23469 case "$found_dir" in
23471 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23472 additional_includedir="$basedir/include"
23475 if test "X$additional_includedir" != "X"; then
23476 if test "X$additional_includedir" != "X/usr/include"; then
23478 if test "X$additional_includedir" = "X/usr/local/include"; then
23479 if test -n "$GCC"; then
23481 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23485 if test -z "$haveit"; then
23486 for x in $CPPFLAGS $INCINTL; do
23488 acl_save_prefix="$prefix"
23489 prefix="$acl_final_prefix"
23490 acl_save_exec_prefix="$exec_prefix"
23491 exec_prefix="$acl_final_exec_prefix"
23493 exec_prefix="$acl_save_exec_prefix"
23494 prefix="$acl_save_prefix"
23496 if test "X$x" = "X-I$additional_includedir"; then
23501 if test -z "$haveit"; then
23502 if test -d "$additional_includedir"; then
23503 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23509 if test -n "$found_la"; then
23510 save_libdir="$libdir"
23511 case "$found_la" in
23512 */* | *\\*) . "$found_la" ;;
23513 *) . "./$found_la" ;;
23515 libdir="$save_libdir"
23516 for dep in $dependency_libs; do
23519 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23520 if test "X$additional_libdir" != "X/usr/lib"; then
23522 if test "X$additional_libdir" = "X/usr/local/lib"; then
23523 if test -n "$GCC"; then
23525 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23529 if test -z "$haveit"; then
23531 for x in $LDFLAGS $LIBINTL; do
23533 acl_save_prefix="$prefix"
23534 prefix="$acl_final_prefix"
23535 acl_save_exec_prefix="$exec_prefix"
23536 exec_prefix="$acl_final_exec_prefix"
23538 exec_prefix="$acl_save_exec_prefix"
23539 prefix="$acl_save_prefix"
23541 if test "X$x" = "X-L$additional_libdir"; then
23546 if test -z "$haveit"; then
23547 if test -d "$additional_libdir"; then
23548 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23552 for x in $LDFLAGS $LTLIBINTL; do
23554 acl_save_prefix="$prefix"
23555 prefix="$acl_final_prefix"
23556 acl_save_exec_prefix="$exec_prefix"
23557 exec_prefix="$acl_final_exec_prefix"
23559 exec_prefix="$acl_save_exec_prefix"
23560 prefix="$acl_save_prefix"
23562 if test "X$x" = "X-L$additional_libdir"; then
23567 if test -z "$haveit"; then
23568 if test -d "$additional_libdir"; then
23569 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23576 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23577 if test "$enable_rpath" != no; then
23579 for x in $rpathdirs; do
23580 if test "X$x" = "X$dir"; then
23585 if test -z "$haveit"; then
23586 rpathdirs="$rpathdirs $dir"
23589 for x in $ltrpathdirs; do
23590 if test "X$x" = "X$dir"; then
23595 if test -z "$haveit"; then
23596 ltrpathdirs="$ltrpathdirs $dir"
23601 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23604 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23607 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23608 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23614 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23615 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23621 if test "X$rpathdirs" != "X"; then
23622 if test -n "$hardcode_libdir_separator"; then
23624 for found_dir in $rpathdirs; do
23625 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23627 acl_save_libdir="$libdir"
23629 eval flag=\"$hardcode_libdir_flag_spec\"
23630 libdir="$acl_save_libdir"
23631 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23633 for found_dir in $rpathdirs; do
23634 acl_save_libdir="$libdir"
23635 libdir="$found_dir"
23636 eval flag=\"$hardcode_libdir_flag_spec\"
23637 libdir="$acl_save_libdir"
23638 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23642 if test "X$ltrpathdirs" != "X"; then
23643 for found_dir in $ltrpathdirs; do
23644 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23648 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23649 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23650 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23653 gt_save_CPPFLAGS="$CPPFLAGS"
23654 CPPFLAGS="$CPPFLAGS $INCINTL"
23655 gt_save_LIBS="$LIBS"
23656 LIBS="$LIBS $LIBINTL"
23657 cat >conftest.$ac_ext <<_ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663 #include <libintl.h>
23664 extern int _nl_msg_cat_cntr;
23669 const char *_nl_expand_alias (const char *);
23673 bindtextdomain ("", "");
23674 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (ac_try="$ac_link"
23681 case "(($ac_try" in
23682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23683 *) ac_try_echo=$ac_try;;
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686 (eval "$ac_link") 2>conftest.er1
23688 grep -v '^ *+' conftest.er1 >conftest.err
23690 cat conftest.err >&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); } && {
23693 test -z "$ac_c_werror_flag" ||
23694 test ! -s conftest.err
23695 } && test -s conftest$ac_exeext &&
23696 $as_test_x conftest$ac_exeext; then
23697 gt_cv_func_gnugettext1_libintl=yes
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 gt_cv_func_gnugettext1_libintl=no
23705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23706 conftest$ac_exeext conftest.$ac_ext
23707 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23708 LIBS="$LIBS $LIBICONV"
23709 cat >conftest.$ac_ext <<_ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h. */
23715 #include <libintl.h>
23716 extern int _nl_msg_cat_cntr;
23721 const char *_nl_expand_alias (const char *);
23725 bindtextdomain ("", "");
23726 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23731 rm -f conftest.$ac_objext conftest$ac_exeext
23732 if { (ac_try="$ac_link"
23733 case "(($ac_try" in
23734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735 *) ac_try_echo=$ac_try;;
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738 (eval "$ac_link") 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } && {
23745 test -z "$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 } && test -s conftest$ac_exeext &&
23748 $as_test_x conftest$ac_exeext; then
23749 LIBINTL="$LIBINTL $LIBICONV"
23750 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23751 gt_cv_func_gnugettext1_libintl=yes
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761 conftest$ac_exeext conftest.$ac_ext
23763 CPPFLAGS="$gt_save_CPPFLAGS"
23764 LIBS="$gt_save_LIBS"
23766 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23767 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23770 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23771 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23772 && test "$PACKAGE" != gettext-runtime \
23773 && test "$PACKAGE" != gettext-tools; }; then
23774 gt_use_preinstalled_gnugettext=yes
23782 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23783 nls_cv_use_gnu_gettext=yes
23787 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23788 BUILD_INCLUDED_LIBINTL=yes
23789 USE_INCLUDED_LIBINTL=yes
23790 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23791 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23792 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23796 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23797 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23802 if test -n "$INTL_MACOSX_LIBS"; then
23803 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23804 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23805 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23806 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23810 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23811 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23813 cat >>confdefs.h <<\_ACEOF
23814 #define ENABLE_NLS 1
23822 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23823 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23824 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23825 echo "${ECHO_T}$USE_NLS" >&6; }
23826 if test "$USE_NLS" = "yes"; then
23827 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23828 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23829 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23830 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23831 gt_source="external libintl"
23836 gt_source="included intl directory"
23838 { echo "$as_me:$LINENO: result: $gt_source" >&5
23839 echo "${ECHO_T}$gt_source" >&6; }
23842 if test "$USE_NLS" = "yes"; then
23844 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23845 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23846 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23847 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23848 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23849 echo "${ECHO_T}$LIBINTL" >&6; }
23851 for element in $INCINTL; do
23853 for x in $CPPFLAGS; do
23855 acl_save_prefix="$prefix"
23856 prefix="$acl_final_prefix"
23857 acl_save_exec_prefix="$exec_prefix"
23858 exec_prefix="$acl_final_exec_prefix"
23860 exec_prefix="$acl_save_exec_prefix"
23861 prefix="$acl_save_prefix"
23863 if test "X$x" = "X$element"; then
23868 if test -z "$haveit"; then
23869 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23876 cat >>confdefs.h <<\_ACEOF
23877 #define HAVE_GETTEXT 1
23881 cat >>confdefs.h <<\_ACEOF
23882 #define HAVE_DCGETTEXT 1
23891 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23892 BUILD_INCLUDED_LIBINTL=yes
23899 nls_cv_header_intl=
23900 nls_cv_header_libgt=
23912 if test "$USE_INCLUDED_LIBINTL" = yes; then
23913 INTLOBJS="\$(GETTOBJS)"
23917 INTL_LIBTOOL_SUFFIX_PREFIX=
23921 INTLLIBS="$LIBINTL"
23933 support_postgresql=no
23935 support_smartalloc=yes
23936 support_readline=yes
23940 support_wx_console=no
23941 support_tray_monitor=no
23946 support_static_tools=no
23947 support_static_fd=no
23948 support_static_sd=no
23949 support_static_dir=no
23950 support_static_cons=no
23952 build_client_only=no
23960 # Check whether --enable-gnome was given.
23961 if test "${enable_gnome+set}" = set; then
23962 enableval=$enable_gnome;
23963 if test x$enableval = xyes; then
23972 if test x$support_gnome = xyes; then
23973 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23975 if test $pkg = 0; then
23976 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23977 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23978 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23979 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23984 GNOME_DIR=src/gnome2-console
23985 gnome_version="Version 2.x"
23987 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23988 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23989 { (exit 1); exit 1; }; }
23994 # Check whether --enable-bat was given.
23995 if test "${enable_bat+set}" = set; then
23996 enableval=$enable_bat;
23997 if test x$enableval = xyes; then
23999 cat >>confdefs.h <<\_ACEOF
24011 if test x$support_bat = xyes; then
24012 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24014 if test $pkg = 0; then
24015 BAT_DIR=src/qt-console
24017 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24018 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24019 { (exit 1); exit 1; }; }
24029 if test x$support_bat = xyes; then
24030 { echo "$as_me:$LINENO: checking for qwt support" >&5
24031 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24033 # Check whether --with-qwt was given.
24034 if test "${with_qwt+set}" = set; then
24036 case "$with_qwt" in
24041 if test -f ${with_qwt}/include/qwt.h; then
24042 QWT_INC="${with_qwt}/include"
24043 QWT_LDFLAGS="-L${with_qwt}/lib"
24054 if test $no_qwt = no; then
24055 if test x$QWT_INC = x; then
24056 for root in /usr /usr/local; do
24057 for ver in qwt qwt5 qwt-qt4; do
24058 if test -f ${root}/include/${ver}/qwt.h; then
24059 QWT_INC="${root}/include/${ver}"
24060 if test -d ${root}/lib64/; then
24061 QWT_LDFLAGS="-L${root}/lib64"
24062 elif test -d ${root}/lib/64/; then
24063 QWT_LDFLAGS="-L${root}/64"
24065 QWT_LDFLAGS="-L${root}/lib"
24076 if test x$QWT_INC = x; then
24077 { echo "$as_me:$LINENO: result: no" >&5
24078 echo "${ECHO_T}no" >&6; }
24081 cat >>confdefs.h <<\_ACEOF
24085 { echo "$as_me:$LINENO: result: yes" >&5
24086 echo "${ECHO_T}yes" >&6; }
24096 # Check whether --enable-bwx-console was given.
24097 if test "${enable_bwx_console+set}" = set; then
24098 enableval=$enable_bwx_console;
24099 if test x$enableval = xyes; then
24100 support_wx_console=yes
24108 if test x$support_wx_console = xyes; then
24109 abc=`$WXCONFIG $WXFLAGS --cppflags`
24111 if test $pkg = 0; then
24112 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24113 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24114 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24118 WX_DIR=src/wx-console
24121 echo "wx-config program not found. bwx-console disabled."
24123 support_wx_console=no
24128 # Check whether --enable-tray-monitor was given.
24129 if test "${enable_tray_monitor+set}" = set; then
24130 enableval=$enable_tray_monitor;
24131 if test x$enableval = xyes; then
24132 support_tray_monitor=yes
24140 if test x$support_tray_monitor = xyes; then
24141 abc=`$PKGCONFIG --exists gtk+-2.0`
24143 if test $pkg = 0; then
24144 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24145 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24148 TRAY_MONITOR_DIR=src/tray-monitor
24149 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24151 if test $pkg = 0; then
24153 cat >>confdefs.h <<\_ACEOF
24154 #define HAVE_GTK_2_4 1
24162 # Check whether --enable-smartalloc was given.
24163 if test "${enable_smartalloc+set}" = set; then
24164 enableval=$enable_smartalloc;
24165 if test x$enableval = xno; then
24166 support_smartalloc=no
24173 if test x$support_smartalloc = xyes; then
24175 cat >>confdefs.h <<\_ACEOF
24176 #define SMARTALLOC 1
24181 # Check whether --enable-static-tools was given.
24182 if test "${enable_static_tools+set}" = set; then
24183 enableval=$enable_static_tools;
24184 if test x$enableval = xyes; then
24185 support_static_tools=yes
24193 if test x$support_static_tools = xyes; then
24194 TTOOL_LDFLAGS="-static"
24198 # Check whether --enable-static-fd was given.
24199 if test "${enable_static_fd+set}" = set; then
24200 enableval=$enable_static_fd;
24201 if test x$enableval = xyes; then
24202 support_static_fd=yes
24210 if test x$support_static_fd = xyes; then
24211 STATIC_FD="static-bacula-fd"
24215 # Check whether --enable-static-sd was given.
24216 if test "${enable_static_sd+set}" = set; then
24217 enableval=$enable_static_sd;
24218 if test x$enableval = xyes; then
24219 support_static_sd=yes
24227 if test x$support_static_sd = xyes; then
24228 STATIC_SD="static-bacula-sd"
24232 # Check whether --enable-static-dir was given.
24233 if test "${enable_static_dir+set}" = set; then
24234 enableval=$enable_static_dir;
24235 if test x$enableval = xyes; then
24236 support_static_dir=yes
24244 if test x$support_static_dir = xyes; then
24245 STATIC_DIR="static-bacula-dir"
24249 # Check whether --enable-static-cons was given.
24250 if test "${enable_static_cons+set}" = set; then
24251 enableval=$enable_static_cons;
24252 if test x$enableval = xyes; then
24253 support_static_cons=yes
24263 if test x$support_static_cons = xyes; then
24264 STATIC_CONS="static-bconsole"
24265 STATIC_GNOME_CONS="static-bgnome-console"
24266 STATIC_WX_CONS="static-bwx-console"
24272 # Check whether --enable-client-only was given.
24273 if test "${enable_client_only+set}" = set; then
24274 enableval=$enable_client_only;
24275 if test x$enableval = xyes; then
24276 build_client_only=yes
24284 if test x$build_client_only = xno; then
24291 # Check whether --enable-build-dird was given.
24292 if test "${enable_build_dird+set}" = set; then
24293 enableval=$enable_build_dird;
24294 if test x$enableval = xno; then
24301 if test x$build_dird = xyes; then
24302 DIRD_DIR="src/dird"
24303 DIR_TOOLS="DIRTOOLS"
24306 DIR_TOOLS="NODIRTOOLS"
24311 # Check whether --enable-build-stored was given.
24312 if test "${enable_build_stored+set}" = set; then
24313 enableval=$enable_build_stored;
24314 if test x$enableval = xno; then
24321 if test x$build_stored = xyes; then
24322 STORED_DIR="src/stored"
24328 # Check whether --enable-conio was given.
24329 if test "${enable_conio+set}" = set; then
24330 enableval=$enable_conio;
24331 if test x$enableval = xno; then
24341 # Check whether --enable-ipv6 was given.
24342 if test "${enable_ipv6+set}" = set; then
24343 enableval=$enable_ipv6;
24344 if test x$enableval = xno; then
24352 if test x$support_ipv6 = xyes; then
24353 cat >conftest.$ac_ext <<_ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h. */
24359 #include <sys/types.h>
24360 #include <sys/socket.h>
24361 #include <netinet/in.h>
24365 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (ac_try="$ac_link"
24372 case "(($ac_try" in
24373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24374 *) ac_try_echo=$ac_try;;
24376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24377 (eval "$ac_link") 2>conftest.er1
24379 grep -v '^ *+' conftest.er1 >conftest.err
24381 cat conftest.err >&5
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); } && {
24384 test -z "$ac_c_werror_flag" ||
24385 test ! -s conftest.err
24386 } && test -s conftest$ac_exeext &&
24387 $as_test_x conftest$ac_exeext; then
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24397 conftest$ac_exeext conftest.$ac_ext
24400 if test x$support_ipv6 = xyes; then
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_IPV6 1
24409 if test x$support_conio = xyes; then
24410 if test "${ac_cv_header_termcap_h+set}" = set; then
24411 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24412 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24413 if test "${ac_cv_header_termcap_h+set}" = set; then
24414 echo $ECHO_N "(cached) $ECHO_C" >&6
24416 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24417 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24419 # Is the header compilable?
24420 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24421 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24422 cat >conftest.$ac_ext <<_ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 $ac_includes_default
24429 #include <termcap.h>
24431 rm -f conftest.$ac_objext
24432 if { (ac_try="$ac_compile"
24433 case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438 (eval "$ac_compile") 2>conftest.er1
24440 grep -v '^ *+' conftest.er1 >conftest.err
24442 cat conftest.err >&5
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); } && {
24445 test -z "$ac_c_werror_flag" ||
24446 test ! -s conftest.err
24447 } && test -s conftest.$ac_objext; then
24448 ac_header_compiler=yes
24450 echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 ac_header_compiler=no
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24458 echo "${ECHO_T}$ac_header_compiler" >&6; }
24460 # Is the header present?
24461 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24462 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24463 cat >conftest.$ac_ext <<_ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 #include <termcap.h>
24471 if { (ac_try="$ac_cpp conftest.$ac_ext"
24472 case "(($ac_try" in
24473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474 *) ac_try_echo=$ac_try;;
24476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24479 grep -v '^ *+' conftest.er1 >conftest.err
24481 cat conftest.err >&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } >/dev/null && {
24484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24485 test ! -s conftest.err
24487 ac_header_preproc=yes
24489 echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24492 ac_header_preproc=no
24495 rm -f conftest.err conftest.$ac_ext
24496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24497 echo "${ECHO_T}$ac_header_preproc" >&6; }
24499 # So? What about this header?
24500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24502 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24503 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24504 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24505 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24506 ac_header_preproc=yes
24509 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24510 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24511 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24512 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24513 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24514 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24515 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24516 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24518 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24519 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24520 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24524 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24525 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24526 if test "${ac_cv_header_termcap_h+set}" = set; then
24527 echo $ECHO_N "(cached) $ECHO_C" >&6
24529 ac_cv_header_termcap_h=$ac_header_preproc
24531 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24532 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24535 if test $ac_cv_header_termcap_h = yes; then
24536 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24537 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24538 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24539 echo $ECHO_N "(cached) $ECHO_C" >&6
24541 ac_check_lib_save_LIBS=$LIBS
24542 LIBS="-ltermcap $LIBS"
24543 cat >conftest.$ac_ext <<_ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h. */
24550 /* Override any GCC internal prototype to avoid an error.
24551 Use char because int might match the return type of a GCC
24552 builtin and then its argument prototype would still apply. */
24565 rm -f conftest.$ac_objext conftest$ac_exeext
24566 if { (ac_try="$ac_link"
24567 case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_link") 2>conftest.er1
24574 grep -v '^ *+' conftest.er1 >conftest.err
24576 cat conftest.err >&5
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); } && {
24579 test -z "$ac_c_werror_flag" ||
24580 test ! -s conftest.err
24581 } && test -s conftest$ac_exeext &&
24582 $as_test_x conftest$ac_exeext; then
24583 ac_cv_lib_termcap_tgetent=yes
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24588 ac_cv_lib_termcap_tgetent=no
24591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24592 conftest$ac_exeext conftest.$ac_ext
24593 LIBS=$ac_check_lib_save_LIBS
24595 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24596 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24597 if test $ac_cv_lib_termcap_tgetent = yes; then
24598 CONS_LIBS="-ltermcap"
24602 support_readline=no
24604 cat >>confdefs.h <<\_ACEOF
24605 #define HAVE_CONIO 1
24610 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24611 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24612 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 ac_check_lib_save_LIBS=$LIBS
24616 LIBS="-lncurses $LIBS"
24617 cat >conftest.$ac_ext <<_ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h. */
24624 /* Override any GCC internal prototype to avoid an error.
24625 Use char because int might match the return type of a GCC
24626 builtin and then its argument prototype would still apply. */
24639 rm -f conftest.$ac_objext conftest$ac_exeext
24640 if { (ac_try="$ac_link"
24641 case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646 (eval "$ac_link") 2>conftest.er1
24648 grep -v '^ *+' conftest.er1 >conftest.err
24650 cat conftest.err >&5
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); } && {
24653 test -z "$ac_c_werror_flag" ||
24654 test ! -s conftest.err
24655 } && test -s conftest$ac_exeext &&
24656 $as_test_x conftest$ac_exeext; then
24657 ac_cv_lib_ncurses_tgetent=yes
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24662 ac_cv_lib_ncurses_tgetent=no
24665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24666 conftest$ac_exeext conftest.$ac_ext
24667 LIBS=$ac_check_lib_save_LIBS
24669 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24670 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24671 if test $ac_cv_lib_ncurses_tgetent = yes; then
24672 CONS_LIBS="-lncurses"
24676 support_readline=no
24678 cat >>confdefs.h <<\_ACEOF
24679 #define HAVE_CONIO 1
24692 for ac_header in curses.h
24694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24699 echo $ECHO_N "(cached) $ECHO_C" >&6
24701 ac_res=`eval echo '${'$as_ac_Header'}'`
24702 { echo "$as_me:$LINENO: result: $ac_res" >&5
24703 echo "${ECHO_T}$ac_res" >&6; }
24705 # Is the header compilable?
24706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24708 cat >conftest.$ac_ext <<_ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h. */
24714 $ac_includes_default
24715 #include <$ac_header>
24717 rm -f conftest.$ac_objext
24718 if { (ac_try="$ac_compile"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_compile") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest.$ac_objext; then
24734 ac_header_compiler=yes
24736 echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24739 ac_header_compiler=no
24742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24744 echo "${ECHO_T}$ac_header_compiler" >&6; }
24746 # Is the header present?
24747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24749 cat >conftest.$ac_ext <<_ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 #include <$ac_header>
24757 if { (ac_try="$ac_cpp conftest.$ac_ext"
24758 case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24765 grep -v '^ *+' conftest.er1 >conftest.err
24767 cat conftest.err >&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } >/dev/null && {
24770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24771 test ! -s conftest.err
24773 ac_header_preproc=yes
24775 echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24778 ac_header_preproc=no
24781 rm -f conftest.err conftest.$ac_ext
24782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24783 echo "${ECHO_T}$ac_header_preproc" >&6; }
24785 # So? What about this header?
24786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24792 ac_header_preproc=yes
24795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24813 echo $ECHO_N "(cached) $ECHO_C" >&6
24815 eval "$as_ac_Header=\$ac_header_preproc"
24817 ac_res=`eval echo '${'$as_ac_Header'}'`
24818 { echo "$as_me:$LINENO: result: $ac_res" >&5
24819 echo "${ECHO_T}$ac_res" >&6; }
24822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24823 cat >>confdefs.h <<_ACEOF
24824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24831 { echo "$as_me:$LINENO: checking for term.h" >&5
24832 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24833 if test "${ac_cv_header_term_h+set}" = set; then
24834 echo $ECHO_N "(cached) $ECHO_C" >&6
24836 cat >conftest.$ac_ext <<_ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24843 #include <curses.h>
24849 rm -f conftest.$ac_objext
24850 if { (ac_try="$ac_compile"
24851 case "(($ac_try" in
24852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853 *) ac_try_echo=$ac_try;;
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856 (eval "$ac_compile") 2>conftest.er1
24858 grep -v '^ *+' conftest.er1 >conftest.err
24860 cat conftest.err >&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } && {
24863 test -z "$ac_c_werror_flag" ||
24864 test ! -s conftest.err
24865 } && test -s conftest.$ac_objext; then
24866 ac_cv_header_term_h=yes
24868 echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24871 ac_cv_header_term_h=no
24874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24877 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24878 if test $ac_cv_header_term_h = yes; then
24879 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24880 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24881 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24884 ac_check_lib_save_LIBS=$LIBS
24885 LIBS="-lcurses $LIBS"
24886 cat >conftest.$ac_ext <<_ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24893 /* Override any GCC internal prototype to avoid an error.
24894 Use char because int might match the return type of a GCC
24895 builtin and then its argument prototype would still apply. */
24908 rm -f conftest.$ac_objext conftest$ac_exeext
24909 if { (ac_try="$ac_link"
24910 case "(($ac_try" in
24911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912 *) ac_try_echo=$ac_try;;
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915 (eval "$ac_link") 2>conftest.er1
24917 grep -v '^ *+' conftest.er1 >conftest.err
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } && {
24922 test -z "$ac_c_werror_flag" ||
24923 test ! -s conftest.err
24924 } && test -s conftest$ac_exeext &&
24925 $as_test_x conftest$ac_exeext; then
24926 ac_cv_lib_curses_tgetent=yes
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24931 ac_cv_lib_curses_tgetent=no
24934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24935 conftest$ac_exeext conftest.$ac_ext
24936 LIBS=$ac_check_lib_save_LIBS
24938 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24939 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24940 if test $ac_cv_lib_curses_tgetent = yes; then
24941 CONS_LIBS="-lcurses"
24945 support_readline=no
24947 cat >>confdefs.h <<\_ACEOF
24948 #define HAVE_CONIO 1
24956 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24967 # Check whether --enable-readline was given.
24968 if test "${enable_readline+set}" = set; then
24969 enableval=$enable_readline;
24970 if test x$enableval = xno; then
24971 support_readline=no
24980 if test x$support_readline = xyes; then
24982 # Check whether --with-readline was given.
24983 if test "${with_readline+set}" = set; then
24984 withval=$with_readline;
24985 case "$with_readline" in
24990 if test -f ${with_readline}/readline.h; then
24991 CONS_INC="-I${with_readline}"
24992 CONS_LDFLAGS="-L$with_readline"
24993 elif test -f ${with_readline}/include/readline/readline.h; then
24994 CONS_INC="-I${with_readline}/include/readline"
24995 CONS_LDFLAGS="-L${with_readline}/lib"
24996 with_readline="${with_readline}/include/readline"
24998 with_readline="/usr/include/readline"
25001 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25003 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25004 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25006 echo $ECHO_N "(cached) $ECHO_C" >&6
25008 ac_res=`eval echo '${'$as_ac_Header'}'`
25009 { echo "$as_me:$LINENO: result: $ac_res" >&5
25010 echo "${ECHO_T}$ac_res" >&6; }
25012 # Is the header compilable?
25013 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25014 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 $ac_includes_default
25022 #include <${with_readline}/readline.h>
25024 rm -f conftest.$ac_objext
25025 if { (ac_try="$ac_compile"
25026 case "(($ac_try" in
25027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028 *) ac_try_echo=$ac_try;;
25030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25031 (eval "$ac_compile") 2>conftest.er1
25033 grep -v '^ *+' conftest.er1 >conftest.err
25035 cat conftest.err >&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } && {
25038 test -z "$ac_c_werror_flag" ||
25039 test ! -s conftest.err
25040 } && test -s conftest.$ac_objext; then
25041 ac_header_compiler=yes
25043 echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25046 ac_header_compiler=no
25049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25051 echo "${ECHO_T}$ac_header_compiler" >&6; }
25053 # Is the header present?
25054 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25055 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 #include <${with_readline}/readline.h>
25064 if { (ac_try="$ac_cpp conftest.$ac_ext"
25065 case "(($ac_try" in
25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067 *) ac_try_echo=$ac_try;;
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25072 grep -v '^ *+' conftest.er1 >conftest.err
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } >/dev/null && {
25077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25080 ac_header_preproc=yes
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25085 ac_header_preproc=no
25088 rm -f conftest.err conftest.$ac_ext
25089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25090 echo "${ECHO_T}$ac_header_preproc" >&6; }
25092 # So? What about this header?
25093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25095 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25096 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25097 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25098 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25099 ac_header_preproc=yes
25102 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25103 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25104 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25105 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25106 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25107 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25108 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25109 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25110 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25111 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25112 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25113 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25117 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25118 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 eval "$as_ac_Header=\$ac_header_preproc"
25124 ac_res=`eval echo '${'$as_ac_Header'}'`
25125 { echo "$as_me:$LINENO: result: $ac_res" >&5
25126 echo "${ECHO_T}$ac_res" >&6; }
25129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25132 cat >>confdefs.h <<\_ACEOF
25133 #define HAVE_READLINE 1
25136 CONS_LIBS="-lreadline -lhistory -ltermcap"
25142 echo "readline.h not found. readline turned off ..."
25154 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25155 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25156 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25157 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25160 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25161 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25163 # Is the header compilable?
25164 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25165 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25166 cat >conftest.$ac_ext <<_ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 $ac_includes_default
25173 #include </usr/include/readline/readline.h>
25175 rm -f conftest.$ac_objext
25176 if { (ac_try="$ac_compile"
25177 case "(($ac_try" in
25178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179 *) ac_try_echo=$ac_try;;
25181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182 (eval "$ac_compile") 2>conftest.er1
25184 grep -v '^ *+' conftest.er1 >conftest.err
25186 cat conftest.err >&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); } && {
25189 test -z "$ac_c_werror_flag" ||
25190 test ! -s conftest.err
25191 } && test -s conftest.$ac_objext; then
25192 ac_header_compiler=yes
25194 echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25197 ac_header_compiler=no
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25202 echo "${ECHO_T}$ac_header_compiler" >&6; }
25204 # Is the header present?
25205 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25206 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25207 cat >conftest.$ac_ext <<_ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h. */
25213 #include </usr/include/readline/readline.h>
25215 if { (ac_try="$ac_cpp conftest.$ac_ext"
25216 case "(($ac_try" in
25217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218 *) ac_try_echo=$ac_try;;
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25223 grep -v '^ *+' conftest.er1 >conftest.err
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } >/dev/null && {
25228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25229 test ! -s conftest.err
25231 ac_header_preproc=yes
25233 echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25236 ac_header_preproc=no
25239 rm -f conftest.err conftest.$ac_ext
25240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25241 echo "${ECHO_T}$ac_header_preproc" >&6; }
25243 # So? What about this header?
25244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25246 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25247 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25248 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25249 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25250 ac_header_preproc=yes
25253 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25254 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25256 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25258 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25259 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25260 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25261 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25262 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25263 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25264 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25268 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25269 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25270 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25275 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25276 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25279 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25282 cat >>confdefs.h <<\_ACEOF
25283 #define HAVE_READLINE 1
25287 CONS_INC="-I/usr/include/readline"
25288 CONS_LIBS="-lreadline -ltermcap"
25292 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25294 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25295 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25297 echo $ECHO_N "(cached) $ECHO_C" >&6
25299 ac_res=`eval echo '${'$as_ac_Header'}'`
25300 { echo "$as_me:$LINENO: result: $ac_res" >&5
25301 echo "${ECHO_T}$ac_res" >&6; }
25303 # Is the header compilable?
25304 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25305 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25306 cat >conftest.$ac_ext <<_ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25312 $ac_includes_default
25313 #include <${TOP_DIR}/depkgs/readline/readline.h>
25315 rm -f conftest.$ac_objext
25316 if { (ac_try="$ac_compile"
25317 case "(($ac_try" in
25318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319 *) ac_try_echo=$ac_try;;
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322 (eval "$ac_compile") 2>conftest.er1
25324 grep -v '^ *+' conftest.er1 >conftest.err
25326 cat conftest.err >&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } && {
25329 test -z "$ac_c_werror_flag" ||
25330 test ! -s conftest.err
25331 } && test -s conftest.$ac_objext; then
25332 ac_header_compiler=yes
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25337 ac_header_compiler=no
25340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25342 echo "${ECHO_T}$ac_header_compiler" >&6; }
25344 # Is the header present?
25345 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25346 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25347 cat >conftest.$ac_ext <<_ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h. */
25353 #include <${TOP_DIR}/depkgs/readline/readline.h>
25355 if { (ac_try="$ac_cpp conftest.$ac_ext"
25356 case "(($ac_try" in
25357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358 *) ac_try_echo=$ac_try;;
25360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25363 grep -v '^ *+' conftest.er1 >conftest.err
25365 cat conftest.err >&5
25366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 (exit $ac_status); } >/dev/null && {
25368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25369 test ! -s conftest.err
25371 ac_header_preproc=yes
25373 echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25376 ac_header_preproc=no
25379 rm -f conftest.err conftest.$ac_ext
25380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25381 echo "${ECHO_T}$ac_header_preproc" >&6; }
25383 # So? What about this header?
25384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25386 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25387 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25388 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25389 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25390 ac_header_preproc=yes
25393 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25394 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25398 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25399 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25400 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25401 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25402 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25403 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25404 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25408 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25409 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25411 echo $ECHO_N "(cached) $ECHO_C" >&6
25413 eval "$as_ac_Header=\$ac_header_preproc"
25415 ac_res=`eval echo '${'$as_ac_Header'}'`
25416 { echo "$as_me:$LINENO: result: $ac_res" >&5
25417 echo "${ECHO_T}$ac_res" >&6; }
25420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25423 cat >>confdefs.h <<\_ACEOF
25424 #define HAVE_READLINE 1
25428 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25429 CONS_LIBS="-lreadline -lhistory -ltermcap"
25430 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25431 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25436 echo "readline.h not found. readline turned off ..."
25463 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25464 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25465 if test "${ac_cv_header_stat_broken+set}" = set; then
25466 echo $ECHO_N "(cached) $ECHO_C" >&6
25468 cat >conftest.$ac_ext <<_ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25474 #include <sys/types.h>
25475 #include <sys/stat.h>
25477 #if defined S_ISBLK && defined S_IFDIR
25478 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25481 #if defined S_ISBLK && defined S_IFCHR
25482 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25485 #if defined S_ISLNK && defined S_IFREG
25486 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25489 #if defined S_ISSOCK && defined S_IFREG
25490 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25494 rm -f conftest.$ac_objext
25495 if { (ac_try="$ac_compile"
25496 case "(($ac_try" in
25497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498 *) ac_try_echo=$ac_try;;
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501 (eval "$ac_compile") 2>conftest.er1
25503 grep -v '^ *+' conftest.er1 >conftest.err
25505 cat conftest.err >&5
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); } && {
25508 test -z "$ac_c_werror_flag" ||
25509 test ! -s conftest.err
25510 } && test -s conftest.$ac_objext; then
25511 ac_cv_header_stat_broken=no
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25516 ac_cv_header_stat_broken=yes
25519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25521 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25522 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25523 if test $ac_cv_header_stat_broken = yes; then
25525 cat >>confdefs.h <<\_ACEOF
25526 #define STAT_MACROS_BROKEN 1
25536 ac_header_dirent=no
25537 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25538 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25539 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25540 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 cat >conftest.$ac_ext <<_ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h. */
25550 #include <sys/types.h>
25562 rm -f conftest.$ac_objext
25563 if { (ac_try="$ac_compile"
25564 case "(($ac_try" in
25565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566 *) ac_try_echo=$ac_try;;
25568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25569 (eval "$ac_compile") 2>conftest.er1
25571 grep -v '^ *+' conftest.er1 >conftest.err
25573 cat conftest.err >&5
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); } && {
25576 test -z "$ac_c_werror_flag" ||
25577 test ! -s conftest.err
25578 } && test -s conftest.$ac_objext; then
25579 eval "$as_ac_Header=yes"
25581 echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25584 eval "$as_ac_Header=no"
25587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25589 ac_res=`eval echo '${'$as_ac_Header'}'`
25590 { echo "$as_me:$LINENO: result: $ac_res" >&5
25591 echo "${ECHO_T}$ac_res" >&6; }
25592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25593 cat >>confdefs.h <<_ACEOF
25594 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25597 ac_header_dirent=$ac_hdr; break
25601 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25602 if test $ac_header_dirent = dirent.h; then
25603 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25605 if test "${ac_cv_search_opendir+set}" = set; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25608 ac_func_search_save_LIBS=$LIBS
25609 cat >conftest.$ac_ext <<_ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h. */
25616 /* Override any GCC internal prototype to avoid an error.
25617 Use char because int might match the return type of a GCC
25618 builtin and then its argument prototype would still apply. */
25631 for ac_lib in '' dir; do
25632 if test -z "$ac_lib"; then
25633 ac_res="none required"
25636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25638 rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (ac_try="$ac_link"
25640 case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645 (eval "$ac_link") 2>conftest.er1
25647 grep -v '^ *+' conftest.er1 >conftest.err
25649 cat conftest.err >&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest$ac_exeext &&
25655 $as_test_x conftest$ac_exeext; then
25656 ac_cv_search_opendir=$ac_res
25658 echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25666 if test "${ac_cv_search_opendir+set}" = set; then
25670 if test "${ac_cv_search_opendir+set}" = set; then
25673 ac_cv_search_opendir=no
25675 rm conftest.$ac_ext
25676 LIBS=$ac_func_search_save_LIBS
25678 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25679 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25680 ac_res=$ac_cv_search_opendir
25681 if test "$ac_res" != no; then
25682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25687 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25688 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25689 if test "${ac_cv_search_opendir+set}" = set; then
25690 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 ac_func_search_save_LIBS=$LIBS
25693 cat >conftest.$ac_ext <<_ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25700 /* Override any GCC internal prototype to avoid an error.
25701 Use char because int might match the return type of a GCC
25702 builtin and then its argument prototype would still apply. */
25715 for ac_lib in '' x; do
25716 if test -z "$ac_lib"; then
25717 ac_res="none required"
25720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25722 rm -f conftest.$ac_objext conftest$ac_exeext
25723 if { (ac_try="$ac_link"
25724 case "(($ac_try" in
25725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25726 *) ac_try_echo=$ac_try;;
25728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25729 (eval "$ac_link") 2>conftest.er1
25731 grep -v '^ *+' conftest.er1 >conftest.err
25733 cat conftest.err >&5
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } && {
25736 test -z "$ac_c_werror_flag" ||
25737 test ! -s conftest.err
25738 } && test -s conftest$ac_exeext &&
25739 $as_test_x conftest$ac_exeext; then
25740 ac_cv_search_opendir=$ac_res
25742 echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25750 if test "${ac_cv_search_opendir+set}" = set; then
25754 if test "${ac_cv_search_opendir+set}" = set; then
25757 ac_cv_search_opendir=no
25759 rm conftest.$ac_ext
25760 LIBS=$ac_func_search_save_LIBS
25762 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25763 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25764 ac_res=$ac_cv_search_opendir
25765 if test "$ac_res" != no; then
25766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25779 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25785 echo $ECHO_N "(cached) $ECHO_C" >&6
25787 cat >conftest.$ac_ext <<_ACEOF
25790 cat confdefs.h >>conftest.$ac_ext
25791 cat >>conftest.$ac_ext <<_ACEOF
25792 /* end confdefs.h. */
25793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25795 #define $ac_func innocuous_$ac_func
25797 /* System header to define __stub macros and hopefully few prototypes,
25798 which can conflict with char $ac_func (); below.
25799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25800 <limits.h> exists even on freestanding compilers. */
25803 # include <limits.h>
25805 # include <assert.h>
25810 /* Override any GCC internal prototype to avoid an error.
25811 Use char because int might match the return type of a GCC
25812 builtin and then its argument prototype would still apply. */
25817 /* The GNU C library defines this for functions which it implements
25818 to always fail with ENOSYS. Some functions are actually named
25819 something starting with __ and the normal name is an alias. */
25820 #if defined __stub_$ac_func || defined __stub___$ac_func
25827 return $ac_func ();
25832 rm -f conftest.$ac_objext conftest$ac_exeext
25833 if { (ac_try="$ac_link"
25834 case "(($ac_try" in
25835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25836 *) ac_try_echo=$ac_try;;
25838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25839 (eval "$ac_link") 2>conftest.er1
25841 grep -v '^ *+' conftest.er1 >conftest.err
25843 cat conftest.err >&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } && {
25846 test -z "$ac_c_werror_flag" ||
25847 test ! -s conftest.err
25848 } && test -s conftest$ac_exeext &&
25849 $as_test_x conftest$ac_exeext; then
25850 eval "$as_ac_var=yes"
25852 echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25855 eval "$as_ac_var=no"
25858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25859 conftest$ac_exeext conftest.$ac_ext
25861 ac_res=`eval echo '${'$as_ac_var'}'`
25862 { echo "$as_me:$LINENO: result: $ac_res" >&5
25863 echo "${ECHO_T}$ac_res" >&6; }
25864 if test `eval echo '${'$as_ac_var'}'` = yes; then
25865 cat >>confdefs.h <<_ACEOF
25866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25874 for ac_func in nanosleep nl_langinfo
25876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25882 cat >conftest.$ac_ext <<_ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h. */
25888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25890 #define $ac_func innocuous_$ac_func
25892 /* System header to define __stub macros and hopefully few prototypes,
25893 which can conflict with char $ac_func (); below.
25894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25895 <limits.h> exists even on freestanding compilers. */
25898 # include <limits.h>
25900 # include <assert.h>
25905 /* Override any GCC internal prototype to avoid an error.
25906 Use char because int might match the return type of a GCC
25907 builtin and then its argument prototype would still apply. */
25912 /* The GNU C library defines this for functions which it implements
25913 to always fail with ENOSYS. Some functions are actually named
25914 something starting with __ and the normal name is an alias. */
25915 #if defined __stub_$ac_func || defined __stub___$ac_func
25922 return $ac_func ();
25927 rm -f conftest.$ac_objext conftest$ac_exeext
25928 if { (ac_try="$ac_link"
25929 case "(($ac_try" in
25930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931 *) ac_try_echo=$ac_try;;
25933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25934 (eval "$ac_link") 2>conftest.er1
25936 grep -v '^ *+' conftest.er1 >conftest.err
25938 cat conftest.err >&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } && {
25941 test -z "$ac_c_werror_flag" ||
25942 test ! -s conftest.err
25943 } && test -s conftest$ac_exeext &&
25944 $as_test_x conftest$ac_exeext; then
25945 eval "$as_ac_var=yes"
25947 echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.$ac_ext >&5
25950 eval "$as_ac_var=no"
25953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25954 conftest$ac_exeext conftest.$ac_ext
25956 ac_res=`eval echo '${'$as_ac_var'}'`
25957 { echo "$as_me:$LINENO: result: $ac_res" >&5
25958 echo "${ECHO_T}$ac_res" >&6; }
25959 if test `eval echo '${'$as_ac_var'}'` = yes; then
25960 cat >>confdefs.h <<_ACEOF
25961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25968 for ac_header in varargs.h
25970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25975 echo $ECHO_N "(cached) $ECHO_C" >&6
25977 ac_res=`eval echo '${'$as_ac_Header'}'`
25978 { echo "$as_me:$LINENO: result: $ac_res" >&5
25979 echo "${ECHO_T}$ac_res" >&6; }
25981 # Is the header compilable?
25982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25984 cat >conftest.$ac_ext <<_ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h. */
25990 $ac_includes_default
25991 #include <$ac_header>
25993 rm -f conftest.$ac_objext
25994 if { (ac_try="$ac_compile"
25995 case "(($ac_try" in
25996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997 *) ac_try_echo=$ac_try;;
25999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26000 (eval "$ac_compile") 2>conftest.er1
26002 grep -v '^ *+' conftest.er1 >conftest.err
26004 cat conftest.err >&5
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); } && {
26007 test -z "$ac_c_werror_flag" ||
26008 test ! -s conftest.err
26009 } && test -s conftest.$ac_objext; then
26010 ac_header_compiler=yes
26012 echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26015 ac_header_compiler=no
26018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26020 echo "${ECHO_T}$ac_header_compiler" >&6; }
26022 # Is the header present?
26023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26025 cat >conftest.$ac_ext <<_ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h. */
26031 #include <$ac_header>
26033 if { (ac_try="$ac_cpp conftest.$ac_ext"
26034 case "(($ac_try" in
26035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036 *) ac_try_echo=$ac_try;;
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26041 grep -v '^ *+' conftest.er1 >conftest.err
26043 cat conftest.err >&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } >/dev/null && {
26046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26047 test ! -s conftest.err
26049 ac_header_preproc=yes
26051 echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26054 ac_header_preproc=no
26057 rm -f conftest.err conftest.$ac_ext
26058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26059 echo "${ECHO_T}$ac_header_preproc" >&6; }
26061 # So? What about this header?
26062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26068 ac_header_preproc=yes
26071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 eval "$as_ac_Header=\$ac_header_preproc"
26093 ac_res=`eval echo '${'$as_ac_Header'}'`
26094 { echo "$as_me:$LINENO: result: $ac_res" >&5
26095 echo "${ECHO_T}$ac_res" >&6; }
26098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26099 cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26109 { echo "$as_me:$LINENO: checking for Python support" >&5
26110 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26112 # Check whether --with-python was given.
26113 if test "${with_python+set}" = set; then
26114 withval=$with_python;
26117 if test "$withval" != "no"; then
26118 if test "$withval" = "yes"; then
26119 for python_root in /usr /usr/local /usr/sfw; do
26120 for ver in python2.2 python2.3 python2.4 python2.5; do
26121 if test -f $python_root/include/${ver}/Python.h; then
26122 PYTHON_INCDIR=-I$python_root/include/${ver}
26123 if test -d $python_root/lib64/${ver}/config; then
26124 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26126 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26133 if test x$PYTHON_INCDIR = x; then
26134 if test -f $prefix/include/Python.h; then
26135 PYTHON_INCDIR=-I$prefix/include
26136 if test -d $prefix/lib64/config; then
26137 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26139 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26142 { echo "$as_me:$LINENO: result: no" >&5
26143 echo "${ECHO_T}no" >&6; }
26144 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26145 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26146 { (exit 1); exit 1; }; }
26150 if test -f $withval/Python.h; then
26151 PYTHON_INCDIR=-I$withval
26152 PYTHON_LIBS="-L$withval/config -lpython"
26153 elif test -f $withval/include/Python.h; then
26154 PYTHON_INCDIR=-I$withval/include
26155 if test -d $withval/lib64/config; then
26156 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26158 PYTHON_LIBS="-L$withval/lib/config -lpython"
26160 elif test -f $withval/include/python/Python.h; then
26161 PYTHON_INCDIR=-I$withval/include/python
26162 if test -d $withval/lib64/python/config; then
26163 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26165 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26168 { echo "$as_me:$LINENO: result: no" >&5
26169 echo "${ECHO_T}no" >&6; }
26170 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26171 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26172 { (exit 1); exit 1; }; }
26176 cat >>confdefs.h <<\_ACEOF
26177 #define HAVE_PYTHON 1
26180 { echo "$as_me:$LINENO: result: yes" >&5
26181 echo "${ECHO_T}yes" >&6; }
26183 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26184 echo "$as_me: checking for more Python libs" >&6;}
26185 saved_LIBS="$LIBS"; LIBS=
26186 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26187 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26188 if test "${ac_cv_search_shm_open+set}" = set; then
26189 echo $ECHO_N "(cached) $ECHO_C" >&6
26191 ac_func_search_save_LIBS=$LIBS
26192 cat >conftest.$ac_ext <<_ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26199 /* Override any GCC internal prototype to avoid an error.
26200 Use char because int might match the return type of a GCC
26201 builtin and then its argument prototype would still apply. */
26209 return shm_open ();
26214 for ac_lib in '' rt; do
26215 if test -z "$ac_lib"; then
26216 ac_res="none required"
26219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26221 rm -f conftest.$ac_objext conftest$ac_exeext
26222 if { (ac_try="$ac_link"
26223 case "(($ac_try" in
26224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225 *) ac_try_echo=$ac_try;;
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228 (eval "$ac_link") 2>conftest.er1
26230 grep -v '^ *+' conftest.er1 >conftest.err
26232 cat conftest.err >&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); } && {
26235 test -z "$ac_c_werror_flag" ||
26236 test ! -s conftest.err
26237 } && test -s conftest$ac_exeext &&
26238 $as_test_x conftest$ac_exeext; then
26239 ac_cv_search_shm_open=$ac_res
26241 echo "$as_me: failed program was:" >&5
26242 sed 's/^/| /' conftest.$ac_ext >&5
26247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26249 if test "${ac_cv_search_shm_open+set}" = set; then
26253 if test "${ac_cv_search_shm_open+set}" = set; then
26256 ac_cv_search_shm_open=no
26258 rm conftest.$ac_ext
26259 LIBS=$ac_func_search_save_LIBS
26261 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26262 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26263 ac_res=$ac_cv_search_shm_open
26264 if test "$ac_res" != no; then
26265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26270 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26271 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26272 if test "${ac_cv_lib_util_openpty+set}" = set; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26275 ac_check_lib_save_LIBS=$LIBS
26276 LIBS="-lutil $LIBS"
26277 cat >conftest.$ac_ext <<_ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26284 /* Override any GCC internal prototype to avoid an error.
26285 Use char because int might match the return type of a GCC
26286 builtin and then its argument prototype would still apply. */
26299 rm -f conftest.$ac_objext conftest$ac_exeext
26300 if { (ac_try="$ac_link"
26301 case "(($ac_try" in
26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303 *) ac_try_echo=$ac_try;;
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306 (eval "$ac_link") 2>conftest.er1
26308 grep -v '^ *+' conftest.er1 >conftest.err
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } && {
26313 test -z "$ac_c_werror_flag" ||
26314 test ! -s conftest.err
26315 } && test -s conftest$ac_exeext &&
26316 $as_test_x conftest$ac_exeext; then
26317 ac_cv_lib_util_openpty=yes
26319 echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26322 ac_cv_lib_util_openpty=no
26325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26326 conftest$ac_exeext conftest.$ac_ext
26327 LIBS=$ac_check_lib_save_LIBS
26329 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26330 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26331 if test $ac_cv_lib_util_openpty = yes; then
26332 cat >>confdefs.h <<_ACEOF
26333 #define HAVE_LIBUTIL 1
26336 LIBS="-lutil $LIBS"
26340 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26343 { echo "$as_me:$LINENO: result: no" >&5
26344 echo "${ECHO_T}no" >&6; }
26349 { echo "$as_me:$LINENO: result: no" >&5
26350 echo "${ECHO_T}no" >&6; }
26358 { echo "$as_me:$LINENO: checking for socket" >&5
26359 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26360 if test "${ac_cv_func_socket+set}" = set; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 cat >conftest.$ac_ext <<_ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h. */
26369 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26371 #define socket innocuous_socket
26373 /* System header to define __stub macros and hopefully few prototypes,
26374 which can conflict with char socket (); below.
26375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26376 <limits.h> exists even on freestanding compilers. */
26379 # include <limits.h>
26381 # include <assert.h>
26386 /* Override any GCC internal prototype to avoid an error.
26387 Use char because int might match the return type of a GCC
26388 builtin and then its argument prototype would still apply. */
26393 /* The GNU C library defines this for functions which it implements
26394 to always fail with ENOSYS. Some functions are actually named
26395 something starting with __ and the normal name is an alias. */
26396 #if defined __stub_socket || defined __stub___socket
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415 (eval "$ac_link") 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest$ac_exeext &&
26425 $as_test_x conftest$ac_exeext; then
26426 ac_cv_func_socket=yes
26428 echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26431 ac_cv_func_socket=no
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435 conftest$ac_exeext conftest.$ac_ext
26437 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26438 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26439 if test $ac_cv_func_socket = yes; then
26440 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26441 echo "${ECHO_T}using libc's socket" >&6; }
26444 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26445 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26446 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26449 ac_check_lib_save_LIBS=$LIBS
26450 LIBS="-lxnet $LIBS"
26451 cat >conftest.$ac_ext <<_ACEOF
26454 cat confdefs.h >>conftest.$ac_ext
26455 cat >>conftest.$ac_ext <<_ACEOF
26456 /* end confdefs.h. */
26458 /* Override any GCC internal prototype to avoid an error.
26459 Use char because int might match the return type of a GCC
26460 builtin and then its argument prototype would still apply. */
26473 rm -f conftest.$ac_objext conftest$ac_exeext
26474 if { (ac_try="$ac_link"
26475 case "(($ac_try" in
26476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26477 *) ac_try_echo=$ac_try;;
26479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26480 (eval "$ac_link") 2>conftest.er1
26482 grep -v '^ *+' conftest.er1 >conftest.err
26484 cat conftest.err >&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); } && {
26487 test -z "$ac_c_werror_flag" ||
26488 test ! -s conftest.err
26489 } && test -s conftest$ac_exeext &&
26490 $as_test_x conftest$ac_exeext; then
26491 ac_cv_lib_xnet_socket=yes
26493 echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26496 ac_cv_lib_xnet_socket=no
26499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26500 conftest$ac_exeext conftest.$ac_ext
26501 LIBS=$ac_check_lib_save_LIBS
26503 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26504 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26505 if test $ac_cv_lib_xnet_socket = yes; then
26506 cat >>confdefs.h <<_ACEOF
26507 #define HAVE_LIBXNET 1
26510 LIBS="-lxnet $LIBS"
26515 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26516 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26517 if test "${ac_cv_lib_socket_socket+set}" = set; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26520 ac_check_lib_save_LIBS=$LIBS
26521 LIBS="-lsocket $LIBS"
26522 cat >conftest.$ac_ext <<_ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h. */
26529 /* Override any GCC internal prototype to avoid an error.
26530 Use char because int might match the return type of a GCC
26531 builtin and then its argument prototype would still apply. */
26544 rm -f conftest.$ac_objext conftest$ac_exeext
26545 if { (ac_try="$ac_link"
26546 case "(($ac_try" in
26547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548 *) ac_try_echo=$ac_try;;
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551 (eval "$ac_link") 2>conftest.er1
26553 grep -v '^ *+' conftest.er1 >conftest.err
26555 cat conftest.err >&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); } && {
26558 test -z "$ac_c_werror_flag" ||
26559 test ! -s conftest.err
26560 } && test -s conftest$ac_exeext &&
26561 $as_test_x conftest$ac_exeext; then
26562 ac_cv_lib_socket_socket=yes
26564 echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26567 ac_cv_lib_socket_socket=no
26570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26571 conftest$ac_exeext conftest.$ac_ext
26572 LIBS=$ac_check_lib_save_LIBS
26574 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26575 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26576 if test $ac_cv_lib_socket_socket = yes; then
26577 cat >>confdefs.h <<_ACEOF
26578 #define HAVE_LIBSOCKET 1
26581 LIBS="-lsocket $LIBS"
26586 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26587 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26588 if test "${ac_cv_lib_inet_socket+set}" = set; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 ac_check_lib_save_LIBS=$LIBS
26592 LIBS="-linet $LIBS"
26593 cat >conftest.$ac_ext <<_ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h. */
26600 /* Override any GCC internal prototype to avoid an error.
26601 Use char because int might match the return type of a GCC
26602 builtin and then its argument prototype would still apply. */
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (ac_try="$ac_link"
26617 case "(($ac_try" in
26618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619 *) ac_try_echo=$ac_try;;
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622 (eval "$ac_link") 2>conftest.er1
26624 grep -v '^ *+' conftest.er1 >conftest.err
26626 cat conftest.err >&5
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); } && {
26629 test -z "$ac_c_werror_flag" ||
26630 test ! -s conftest.err
26631 } && test -s conftest$ac_exeext &&
26632 $as_test_x conftest$ac_exeext; then
26633 ac_cv_lib_inet_socket=yes
26635 echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26638 ac_cv_lib_inet_socket=no
26641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26642 conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26645 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26646 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26647 if test $ac_cv_lib_inet_socket = yes; then
26648 cat >>confdefs.h <<_ACEOF
26649 #define HAVE_LIBINET 1
26652 LIBS="-linet $LIBS"
26662 # Check whether --with-tcp-wrappers was given.
26663 if test "${with_tcp_wrappers+set}" = set; then
26664 withval=$with_tcp_wrappers;
26665 if test "x$withval" != "xno" ; then
26667 LIBS="$saved_LIBS -lwrap"
26668 { echo "$as_me:$LINENO: checking for libwrap" >&5
26669 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26670 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26671 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26672 if test "${ac_cv_search_nanosleep+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26675 ac_func_search_save_LIBS=$LIBS
26676 cat >conftest.$ac_ext <<_ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h. */
26683 /* Override any GCC internal prototype to avoid an error.
26684 Use char because int might match the return type of a GCC
26685 builtin and then its argument prototype would still apply. */
26693 return nanosleep ();
26698 for ac_lib in '' rt; do
26699 if test -z "$ac_lib"; then
26700 ac_res="none required"
26703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26705 rm -f conftest.$ac_objext conftest$ac_exeext
26706 if { (ac_try="$ac_link"
26707 case "(($ac_try" in
26708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709 *) ac_try_echo=$ac_try;;
26711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26712 (eval "$ac_link") 2>conftest.er1
26714 grep -v '^ *+' conftest.er1 >conftest.err
26716 cat conftest.err >&5
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); } && {
26719 test -z "$ac_c_werror_flag" ||
26720 test ! -s conftest.err
26721 } && test -s conftest$ac_exeext &&
26722 $as_test_x conftest$ac_exeext; then
26723 ac_cv_search_nanosleep=$ac_res
26725 echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26733 if test "${ac_cv_search_nanosleep+set}" = set; then
26737 if test "${ac_cv_search_nanosleep+set}" = set; then
26740 ac_cv_search_nanosleep=no
26742 rm conftest.$ac_ext
26743 LIBS=$ac_func_search_save_LIBS
26745 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26746 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26747 ac_res=$ac_cv_search_nanosleep
26748 if test "$ac_res" != no; then
26749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26753 cat >conftest.$ac_ext <<_ACEOF
26756 cat confdefs.h >>conftest.$ac_ext
26757 cat >>conftest.$ac_ext <<_ACEOF
26758 /* end confdefs.h. */
26760 #include <sys/types.h>
26762 int deny_severity = 0;
26763 int allow_severity = 0;
26764 struct request_info *req;
26776 rm -f conftest.$ac_objext conftest$ac_exeext
26777 if { (ac_try="$ac_link"
26778 case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_link") 2>conftest.er1
26785 grep -v '^ *+' conftest.er1 >conftest.err
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } && {
26790 test -z "$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 } && test -s conftest$ac_exeext &&
26793 $as_test_x conftest$ac_exeext; then
26795 { echo "$as_me:$LINENO: result: yes" >&5
26796 echo "${ECHO_T}yes" >&6; }
26798 cat >>confdefs.h <<\_ACEOF
26799 #define HAVE_LIBWRAP 1
26807 echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26811 LIBS="$saved_LIBS -lwrap -lnsl"
26812 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26813 cat >conftest.$ac_ext <<_ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h. */
26820 #include <sys/types.h>
26822 int deny_severity = 0;
26823 int allow_severity = 0;
26824 struct request_info *req;
26836 rm -f conftest.$ac_objext conftest$ac_exeext
26837 if { (ac_try="$ac_link"
26838 case "(($ac_try" in
26839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843 (eval "$ac_link") 2>conftest.er1
26845 grep -v '^ *+' conftest.er1 >conftest.err
26847 cat conftest.err >&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } && {
26850 test -z "$ac_c_werror_flag" ||
26851 test ! -s conftest.err
26852 } && test -s conftest$ac_exeext &&
26853 $as_test_x conftest$ac_exeext; then
26855 { echo "$as_me:$LINENO: result: yes" >&5
26856 echo "${ECHO_T}yes" >&6; }
26858 cat >>confdefs.h <<\_ACEOF
26859 #define HAVE_LIBWRAP 1
26867 echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26871 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26872 echo "$as_me: error: *** libwrap missing" >&2;}
26873 { (exit 1); exit 1; }; }
26878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26879 conftest$ac_exeext conftest.$ac_ext
26884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26885 conftest$ac_exeext conftest.$ac_ext
26892 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26893 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26895 # Check whether --with-openssl was given.
26896 if test "${with_openssl+set}" = set; then
26897 withval=$with_openssl;
26898 with_openssl_directory=${withval}
26904 if test "x$with_openssl_directory" != "xno"; then
26905 OPENSSL_LIBS="-lssl -lcrypto"
26908 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26910 # Make sure the $with_openssl_directory also makes sense
26912 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26913 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26914 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26918 saved_LIBS="${LIBS}"
26919 saved_CFLAGS="${CFLAGS}"
26920 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26921 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26930 #include <openssl/ssl.h>
26936 CRYPTO_set_id_callback(NULL);
26942 rm -f conftest.$ac_objext conftest$ac_exeext
26943 if { (ac_try="$ac_link"
26944 case "(($ac_try" in
26945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946 *) ac_try_echo=$ac_try;;
26948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949 (eval "$ac_link") 2>conftest.er1
26951 grep -v '^ *+' conftest.er1 >conftest.err
26953 cat conftest.err >&5
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } && {
26956 test -z "$ac_c_werror_flag" ||
26957 test ! -s conftest.err
26958 } && test -s conftest$ac_exeext &&
26959 $as_test_x conftest$ac_exeext; then
26962 support_crypto="yes"
26965 echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26975 conftest$ac_exeext conftest.$ac_ext
26977 cat >conftest.$ac_ext <<_ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h. */
26984 #include <openssl/evp.h>
26996 rm -f conftest.$ac_objext conftest$ac_exeext
26997 if { (ac_try="$ac_link"
26998 case "(($ac_try" in
26999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27000 *) ac_try_echo=$ac_try;;
27002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27003 (eval "$ac_link") 2>conftest.er1
27005 grep -v '^ *+' conftest.er1 >conftest.err
27007 cat conftest.err >&5
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); } && {
27010 test -z "$ac_c_werror_flag" ||
27011 test ! -s conftest.err
27012 } && test -s conftest$ac_exeext &&
27013 $as_test_x conftest$ac_exeext; then
27015 ac_cv_openssl_sha2="yes"
27018 echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.$ac_ext >&5
27022 ac_cv_openssl_sha2="no"
27027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27028 conftest$ac_exeext conftest.$ac_ext
27030 cat >conftest.$ac_ext <<_ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h. */
27037 #include <openssl/evp.h>
27049 rm -f conftest.$ac_objext conftest$ac_exeext
27050 if { (ac_try="$ac_link"
27051 case "(($ac_try" in
27052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056 (eval "$ac_link") 2>conftest.er1
27058 grep -v '^ *+' conftest.er1 >conftest.err
27060 cat conftest.err >&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } && {
27063 test -z "$ac_c_werror_flag" ||
27064 test ! -s conftest.err
27065 } && test -s conftest$ac_exeext &&
27066 $as_test_x conftest$ac_exeext; then
27068 ac_cv_openssl_export="no"
27071 echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27075 ac_cv_openssl_export="yes"
27080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27081 conftest$ac_exeext conftest.$ac_ext
27083 LIBS="${saved_LIBS}"
27084 CFLAGS="${saved_CFLAGS}"
27086 if test "$support_tls" = "yes"; then
27088 cat >>confdefs.h <<\_ACEOF
27089 #define HAVE_OPENSSL 1
27093 cat >>confdefs.h <<\_ACEOF
27098 cat >>confdefs.h <<\_ACEOF
27099 #define HAVE_CRYPTO 1
27104 if test "$ac_cv_openssl_sha2" = "yes"; then
27106 cat >>confdefs.h <<\_ACEOF
27107 #define HAVE_SHA2 1
27112 if test "$ac_cv_openssl_export" = "yes"; then
27114 cat >>confdefs.h <<\_ACEOF
27115 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27121 support_crypto="no"
27126 { echo "$as_me:$LINENO: result: $support_tls" >&5
27127 echo "${ECHO_T}$support_tls" >&6; }
27131 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27132 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27133 if test "${ac_cv_search_dlopen+set}" = set; then
27134 echo $ECHO_N "(cached) $ECHO_C" >&6
27136 ac_func_search_save_LIBS=$LIBS
27137 cat >conftest.$ac_ext <<_ACEOF
27140 cat confdefs.h >>conftest.$ac_ext
27141 cat >>conftest.$ac_ext <<_ACEOF
27142 /* end confdefs.h. */
27144 /* Override any GCC internal prototype to avoid an error.
27145 Use char because int might match the return type of a GCC
27146 builtin and then its argument prototype would still apply. */
27159 for ac_lib in '' dl; do
27160 if test -z "$ac_lib"; then
27161 ac_res="none required"
27164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27166 rm -f conftest.$ac_objext conftest$ac_exeext
27167 if { (ac_try="$ac_link"
27168 case "(($ac_try" in
27169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170 *) ac_try_echo=$ac_try;;
27172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173 (eval "$ac_link") 2>conftest.er1
27175 grep -v '^ *+' conftest.er1 >conftest.err
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } && {
27180 test -z "$ac_c_werror_flag" ||
27181 test ! -s conftest.err
27182 } && test -s conftest$ac_exeext &&
27183 $as_test_x conftest$ac_exeext; then
27184 ac_cv_search_dlopen=$ac_res
27186 echo "$as_me: failed program was:" >&5
27187 sed 's/^/| /' conftest.$ac_ext >&5
27192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27194 if test "${ac_cv_search_dlopen+set}" = set; then
27198 if test "${ac_cv_search_dlopen+set}" = set; then
27201 ac_cv_search_dlopen=no
27203 rm conftest.$ac_ext
27204 LIBS=$ac_func_search_save_LIBS
27206 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27207 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27208 ac_res=$ac_cv_search_dlopen
27209 if test "$ac_res" != no; then
27210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27215 working_dir=`eval echo ${prefix}/var/bacula/working`
27217 # Check whether --with-working-dir was given.
27218 if test "${with_working_dir+set}" = set; then
27219 withval=$with_working_dir;
27220 if test "x$withval" != "xno" ; then
27221 working_dir=$withval
27232 # Check whether --with-archivedir was given.
27233 if test "${with_archivedir+set}" = set; then
27234 withval=$with_archivedir;
27235 if test "x$withval" != "xno" ; then
27236 archivedir=$withval
27245 scriptdir=`eval echo ${sysconfdir}`
27247 # Check whether --with-scriptdir was given.
27248 if test "${with_scriptdir+set}" = set; then
27249 withval=$with_scriptdir;
27250 if test "x$withval" != "xno" ; then
27260 # ------------------------------------------
27261 # Where to place plugindir (script files)
27262 # ------------------------------------------
27263 plugindir=`eval echo ${sysconfdir}`
27265 # Check whether --with-plugindir was given.
27266 if test "${with_plugindir+set}" = set; then
27267 withval=$with_plugindir;
27268 if test "x$withval" != "xno" ; then
27278 dump_email=root@localhost
27280 # Check whether --with-dump-email was given.
27281 if test "${with_dump_email+set}" = set; then
27282 withval=$with_dump_email;
27283 if test "x$withval" != "xno" ; then
27284 dump_email=$withval
27293 job_email=root@localhost
27295 # Check whether --with-job-email was given.
27296 if test "${with_job_email+set}" = set; then
27297 withval=$with_job_email;
27298 if test "x$withval" != "xno" ; then
27308 smtp_host=localhost
27310 # Check whether --with-smtp_host was given.
27311 if test "${with_smtp_host+set}" = set; then
27312 withval=$with_smtp_host;
27313 if test "x$withval" != "xno" ; then
27325 # Check whether --with-pid-dir was given.
27326 if test "${with_pid_dir+set}" = set; then
27327 withval=$with_pid_dir;
27328 if test "x$withval" != "xno" ; then
27336 cat >>confdefs.h <<_ACEOF
27337 #define _PATH_BACULA_PIDDIR "$piddir"
27342 subsysdir=/var/run/subsys
27343 if test -d /var/run/subsys; then
27344 subsysdir=/var/run/subsys
27345 elif test -d /var/lock/subsys; then
27346 subsysdir=/var/lock/subsys
27348 subsysdir=/var/run/subsys
27351 # Check whether --with-subsys-dir was given.
27352 if test "${with_subsys_dir+set}" = set; then
27353 withval=$with_subsys_dir;
27354 if test "x$withval" != "xno" ; then
27366 # Check whether --with-baseport was given.
27367 if test "${with_baseport+set}" = set; then
27368 withval=$with_baseport;
27369 if test "x$withval" != "xno" ; then
27378 dir_port=`expr $baseport`
27379 fd_port=`expr $baseport + 1`
27380 sd_port=`expr $fd_port + 1`
27388 # Check whether --with-dir-password was given.
27389 if test "${with_dir_password+set}" = set; then
27390 withval=$with_dir_password;
27391 if test "x$withval" != "xno" ; then
27392 dir_password=$withval
27399 if test "x$dir_password" = "x" ; then
27400 if test "x$OPENSSL" = "xnone" ; then
27401 key=`autoconf/randpass 33`
27403 key=`openssl rand -base64 33`
27410 # Check whether --with-fd-password was given.
27411 if test "${with_fd_password+set}" = set; then
27412 withval=$with_fd_password;
27413 if test "x$withval" != "xno" ; then
27414 fd_password=$withval
27421 if test "x$fd_password" = "x" ; then
27422 if test "x$OPENSSL" = "xnone" ; then
27423 key=`autoconf/randpass 37`
27425 key=`openssl rand -base64 33`
27432 # Check whether --with-sd-password was given.
27433 if test "${with_sd_password+set}" = set; then
27434 withval=$with_sd_password;
27435 if test "x$withval" != "xno" ; then
27436 sd_password=$withval
27443 if test "x$sd_password" = "x" ; then
27444 if test "x$OPENSSL" = "xnone" ; then
27445 key=`autoconf/randpass 41`
27447 key=`openssl rand -base64 33`
27454 # Check whether --with-mon-dir-password was given.
27455 if test "${with_mon_dir_password+set}" = set; then
27456 withval=$with_mon_dir_password;
27457 if test "x$withval" != "xno" ; then
27458 mon_dir_password=$withval
27465 if test "x$mon_dir_password" = "x" ; then
27466 if test "x$OPENSSL" = "xnone" ; then
27467 key=`autoconf/randpass 33`
27469 key=`openssl rand -base64 33`
27471 mon_dir_password=$key
27476 # Check whether --with-mon-fd-password was given.
27477 if test "${with_mon_fd_password+set}" = set; then
27478 withval=$with_mon_fd_password;
27479 if test "x$withval" != "xno" ; then
27480 mon_fd_password=$withval
27487 if test "x$mon_fd_password" = "x" ; then
27488 if test "x$OPENSSL" = "xnone" ; then
27489 key=`autoconf/randpass 37`
27491 key=`openssl rand -base64 33`
27493 mon_fd_password=$key
27498 # Check whether --with-mon-sd-password was given.
27499 if test "${with_mon_sd_password+set}" = set; then
27500 withval=$with_mon_sd_password;
27501 if test "x$withval" != "xno" ; then
27502 mon_sd_password=$withval
27509 if test "x$mon_sd_password" = "x" ; then
27510 if test "x$OPENSSL" = "xnone" ; then
27511 key=`autoconf/randpass 41`
27513 key=`openssl rand -base64 33`
27515 mon_sd_password=$key
27527 # Check whether --with-db_name was given.
27528 if test "${with_db_name+set}" = set; then
27529 withval=$with_db_name;
27530 if test "x$withval" != "x" ; then
27541 # Check whether --with-db_user was given.
27542 if test "${with_db_user+set}" = set; then
27543 withval=$with_db_user;
27544 if test "x$withval" != "x" ; then
27555 # Check whether --with-db_password was given.
27556 if test "${with_db_password+set}" = set; then
27557 withval=$with_db_password;
27558 if test "x$withval" != "x" ; then
27559 db_password=$withval
27569 # Check whether --with-db_port was given.
27570 if test "${with_db_port+set}" = set; then
27571 withval=$with_db_port;
27572 if test "x$withval" != "x" ; then
27582 # Handle users and groups for each daemon
27586 # Check whether --with-dir_user was given.
27587 if test "${with_dir_user+set}" = set; then
27588 withval=$with_dir_user;
27589 if test "x$withval" != "x" ; then
27599 # Check whether --with-dir_group was given.
27600 if test "${with_dir_group+set}" = set; then
27601 withval=$with_dir_group;
27602 if test "x$withval" != "x" ; then
27612 # Check whether --with-sd_user was given.
27613 if test "${with_sd_user+set}" = set; then
27614 withval=$with_sd_user;
27615 if test "x$withval" != "x" ; then
27625 # Check whether --with-sd_group was given.
27626 if test "${with_sd_group+set}" = set; then
27627 withval=$with_sd_group;
27628 if test "x$withval" != "x" ; then
27638 # Check whether --with-fd_user was given.
27639 if test "${with_fd_user+set}" = set; then
27640 withval=$with_fd_user;
27641 if test "x$withval" != "x" ; then
27651 # Check whether --with-fd_group was given.
27652 if test "${with_fd_group+set}" = set; then
27653 withval=$with_fd_group;
27654 if test "x$withval" != "x" ; then
27671 # Check whether --with-sbin-perm was given.
27672 if test "${with_sbin_perm+set}" = set; then
27673 withval=$with_sbin_perm;
27674 if test "x$withval" != "x" ; then
27687 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27688 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27690 # Check whether --with-postgresql was given.
27691 if test "${with_postgresql+set}" = set; then
27692 withval=$with_postgresql;
27693 if test "$withval" != "no"; then
27694 if test "$db_found" = "yes"; then
27695 { echo "$as_me:$LINENO: result: error" >&5
27696 echo "${ECHO_T}error" >&6; }
27697 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27698 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27699 { (exit 1); exit 1; }; };
27701 if test "$withval" = "yes"; then
27702 PG_CONFIG=`which pg_config`
27703 if test -n "$PG_CONFIG";then
27704 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27705 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27706 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27707 elif test -f /usr/local/include/libpq-fe.h; then
27708 POSTGRESQL_INCDIR=/usr/local/include
27709 if test -d /usr/local/lib64; then
27710 POSTGRESQL_LIBDIR=/usr/local/lib64
27712 POSTGRESQL_LIBDIR=/usr/local/lib
27714 POSTGRESQL_BINDIR=/usr/local/bin
27715 elif test -f /usr/include/libpq-fe.h; then
27716 POSTGRESQL_INCDIR=/usr/include
27717 if test -d /usr/lib64; then
27718 POSTGRESQL_LIBDIR=/usr/lib64
27720 POSTGRESQL_LIBDIR=/usr/lib
27722 POSTGRESQL_BINDIR=/usr/bin
27723 elif test -f /usr/include/pgsql/libpq-fe.h; then
27724 POSTGRESQL_INCDIR=/usr/include/pgsql
27725 if test -d /usr/lib64/pgsql; then
27726 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27728 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27730 POSTGRESQL_BINDIR=/usr/bin
27731 elif test -f /usr/include/postgresql/libpq-fe.h; then
27732 POSTGRESQL_INCDIR=/usr/include/postgresql
27733 if test -d /usr/lib64/postgresql; then
27734 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27736 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27738 POSTGRESQL_BINDIR=/usr/bin
27740 { echo "$as_me:$LINENO: result: no" >&5
27741 echo "${ECHO_T}no" >&6; }
27742 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27743 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27744 { (exit 1); exit 1; }; }
27746 elif test -f $withval/include/libpq-fe.h; then
27747 POSTGRESQL_INCDIR=$withval/include
27748 POSTGRESQL_LIBDIR=$withval/lib
27749 POSTGRESQL_BINDIR=$withval/bin
27750 elif test -f $withval/include/postgresql/libpq-fe.h; then
27751 POSTGRESQL_INCDIR=$withval/include/postgresql
27752 if test -d $withval/lib64; then
27753 POSTGRESQL_LIBDIR=$withval/lib64
27755 POSTGRESQL_LIBDIR=$withval/lib
27757 POSTGRESQL_BINDIR=$withval/bin
27759 { echo "$as_me:$LINENO: result: no" >&5
27760 echo "${ECHO_T}no" >&6; }
27761 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27762 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27763 { (exit 1); exit 1; }; }
27765 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27766 { echo "$as_me:$LINENO: checking for crypt" >&5
27767 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27768 if test "${ac_cv_func_crypt+set}" = set; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27771 cat >conftest.$ac_ext <<_ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h. */
27777 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27779 #define crypt innocuous_crypt
27781 /* System header to define __stub macros and hopefully few prototypes,
27782 which can conflict with char crypt (); below.
27783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27784 <limits.h> exists even on freestanding compilers. */
27787 # include <limits.h>
27789 # include <assert.h>
27794 /* Override any GCC internal prototype to avoid an error.
27795 Use char because int might match the return type of a GCC
27796 builtin and then its argument prototype would still apply. */
27801 /* The GNU C library defines this for functions which it implements
27802 to always fail with ENOSYS. Some functions are actually named
27803 something starting with __ and the normal name is an alias. */
27804 #if defined __stub_crypt || defined __stub___crypt
27816 rm -f conftest.$ac_objext conftest$ac_exeext
27817 if { (ac_try="$ac_link"
27818 case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_link") 2>conftest.er1
27825 grep -v '^ *+' conftest.er1 >conftest.err
27827 cat conftest.err >&5
27828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829 (exit $ac_status); } && {
27830 test -z "$ac_c_werror_flag" ||
27831 test ! -s conftest.err
27832 } && test -s conftest$ac_exeext &&
27833 $as_test_x conftest$ac_exeext; then
27834 ac_cv_func_crypt=yes
27836 echo "$as_me: failed program was:" >&5
27837 sed 's/^/| /' conftest.$ac_ext >&5
27839 ac_cv_func_crypt=no
27842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27843 conftest$ac_exeext conftest.$ac_ext
27845 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27846 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27847 if test $ac_cv_func_crypt = yes; then
27850 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27851 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27852 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27853 echo $ECHO_N "(cached) $ECHO_C" >&6
27855 ac_check_lib_save_LIBS=$LIBS
27856 LIBS="-lcrypt $LIBS"
27857 cat >conftest.$ac_ext <<_ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h. */
27864 /* Override any GCC internal prototype to avoid an error.
27865 Use char because int might match the return type of a GCC
27866 builtin and then its argument prototype would still apply. */
27879 rm -f conftest.$ac_objext conftest$ac_exeext
27880 if { (ac_try="$ac_link"
27881 case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_link") 2>conftest.er1
27888 grep -v '^ *+' conftest.er1 >conftest.err
27890 cat conftest.err >&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); } && {
27893 test -z "$ac_c_werror_flag" ||
27894 test ! -s conftest.err
27895 } && test -s conftest$ac_exeext &&
27896 $as_test_x conftest$ac_exeext; then
27897 ac_cv_lib_crypt_crypt=yes
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27902 ac_cv_lib_crypt_crypt=no
27905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27906 conftest$ac_exeext conftest.$ac_ext
27907 LIBS=$ac_check_lib_save_LIBS
27909 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27910 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27911 if test $ac_cv_lib_crypt_crypt = yes; then
27912 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27917 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27918 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27919 SQL_BINDIR=$POSTGRESQL_BINDIR
27920 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27922 cat >>confdefs.h <<\_ACEOF
27923 #define HAVE_POSTGRESQL 1
27926 { echo "$as_me:$LINENO: result: yes" >&5
27927 echo "${ECHO_T}yes" >&6; }
27929 support_postgresql=yes
27933 { echo "$as_me:$LINENO: result: no" >&5
27934 echo "${ECHO_T}no" >&6; }
27939 { echo "$as_me:$LINENO: result: no" >&5
27940 echo "${ECHO_T}no" >&6; }
27952 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27953 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27955 # Check whether --with-mysql was given.
27956 if test "${with_mysql+set}" = set; then
27957 withval=$with_mysql;
27958 if test "$withval" != "no"; then
27959 if test "$withval" = "yes"; then
27960 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27961 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27962 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27963 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27964 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27966 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27968 MYSQL_BINDIR=/usr/local/mysql/bin
27969 elif test -f /usr/include/mysql/mysql.h; then
27970 MYSQL_INCDIR=/usr/include/mysql
27971 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27972 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27973 MYSQL_LIBDIR=/usr/lib64/mysql
27974 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27975 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27976 MYSQL_LIBDIR=/usr/lib/mysql
27978 MYSQL_LIBDIR=/usr/lib
27980 MYSQL_BINDIR=/usr/bin
27981 elif test -f /usr/include/mysql.h; then
27982 MYSQL_INCDIR=/usr/include
27983 if test -f /usr/lib64/libmysqlclient_r.a \
27984 -o -f /usr/lib64/libmysqlclient_r.so; then
27985 MYSQL_LIBDIR=/usr/lib64
27987 MYSQL_LIBDIR=/usr/lib
27989 MYSQL_BINDIR=/usr/bin
27990 elif test -f /usr/local/include/mysql/mysql.h; then
27991 MYSQL_INCDIR=/usr/local/include/mysql
27992 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27993 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27994 MYSQL_LIBDIR=/usr/local/lib64/mysql
27996 MYSQL_LIBDIR=/usr/local/lib/mysql
27998 MYSQL_BINDIR=/usr/local/bin
27999 elif test -f /usr/local/include/mysql.h; then
28000 MYSQL_INCDIR=/usr/local/include
28001 if test -f /usr/local/lib64/libmysqlclient_r.a \
28002 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28003 MYSQL_LIBDIR=/usr/local/lib64
28005 MYSQL_LIBDIR=/usr/local/lib
28007 MYSQL_BINDIR=/usr/local/bin
28009 { echo "$as_me:$LINENO: result: no" >&5
28010 echo "${ECHO_T}no" >&6; }
28011 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28012 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28013 { (exit 1); exit 1; }; }
28016 if test -f $withval/include/mysql/mysql.h; then
28017 MYSQL_INCDIR=$withval/include/mysql
28018 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28019 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28020 MYSQL_LIBDIR=$withval/lib64/mysql
28022 MYSQL_LIBDIR=$withval/lib/mysql
28024 if test -f $withval/lib/libmysqlclient_r.so; then
28025 MYSQL_LIBDIR=$withval/lib
28028 MYSQL_BINDIR=$withval/bin
28029 elif test -f $withval/include/mysql.h; then
28030 MYSQL_INCDIR=$withval/include
28031 if test -f $withval/lib64/libmysqlclient_r.a \
28032 -o -f $withval/lib64/libmysqlclient_r.so; then
28033 MYSQL_LIBDIR=$withval/lib64
28035 MYSQL_LIBDIR=$withval/lib
28037 MYSQL_BINDIR=$withval/bin
28039 { echo "$as_me:$LINENO: result: no" >&5
28040 echo "${ECHO_T}no" >&6; }
28041 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28042 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28043 { (exit 1); exit 1; }; }
28046 SQL_INCLUDE=-I$MYSQL_INCDIR
28047 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28048 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28049 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28050 cat >>confdefs.h <<\_ACEOF
28051 #define HAVE_THREAD_SAFE_MYSQL 1
28055 SQL_BINDIR=$MYSQL_BINDIR
28056 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28058 cat >>confdefs.h <<\_ACEOF
28059 #define HAVE_MYSQL 1
28062 { echo "$as_me:$LINENO: result: yes" >&5
28063 echo "${ECHO_T}yes" >&6; }
28070 { echo "$as_me:$LINENO: result: no" >&5
28071 echo "${ECHO_T}no" >&6; }
28079 # Check whether --with-embedded-mysql was given.
28080 if test "${with_embedded_mysql+set}" = set; then
28081 withval=$with_embedded_mysql;
28082 if test "$withval" != "no"; then
28083 if test "$withval" = "yes"; then
28084 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28085 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28086 if test -d /usr/local/mysql/lib64/mysql; then
28087 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28089 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28091 MYSQL_BINDIR=/usr/local/mysql/bin
28092 elif test -f /usr/include/mysql/mysql.h; then
28093 MYSQL_INCDIR=/usr/include/mysql
28094 if test -d /usr/lib64/mysql; then
28095 MYSQL_LIBDIR=/usr/lib64/mysql
28097 MYSQL_LIBDIR=/usr/lib/mysql
28099 MYSQL_BINDIR=/usr/bin
28100 elif test -f /usr/include/mysql.h; then
28101 MYSQL_INCDIR=/usr/include
28102 if test -d /usr/lib64; then
28103 MYSQL_LIBDIR=/usr/lib64
28105 MYSQL_LIBDIR=/usr/lib
28107 MYSQL_BINDIR=/usr/bin
28108 elif test -f /usr/local/include/mysql/mysql.h; then
28109 MYSQL_INCDIR=/usr/local/include/mysql
28110 if test -d /usr/local/lib64/mysql; then
28111 MYSQL_LIBDIR=/usr/local/lib64/mysql
28113 MYSQL_LIBDIR=/usr/local/lib/mysql
28115 MYSQL_BINDIR=/usr/local/bin
28116 elif test -f /usr/local/include/mysql.h; then
28117 MYSQL_INCDIR=/usr/local/include
28118 if test -d /usr/local/lib64; then
28119 MYSQL_LIBDIR=/usr/local/lib64
28121 MYSQL_LIBDIR=/usr/local/lib
28123 MYSQL_BINDIR=/usr/local/bin
28125 { echo "$as_me:$LINENO: result: no" >&5
28126 echo "${ECHO_T}no" >&6; }
28127 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28128 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28129 { (exit 1); exit 1; }; }
28132 if test -f $withval/include/mysql/mysql.h; then
28133 MYSQL_INCDIR=$withval/include/mysql
28134 if test -d $withval/lib64/mysql; then
28135 MYSQL_LIBDIR=$withval/lib64/mysql
28137 MYSQL_LIBDIR=$withval/lib/mysql
28139 MYSQL_BINDIR=$withval/bin
28140 elif test -f $withval/include/mysql.h; then
28141 MYSQL_INCDIR=$withval/include
28142 if test -d $withval/lib64; then
28143 MYSQL_LIBDIR=$withval/lib64
28145 MYSQL_LIBDIR=$withval/lib
28147 MYSQL_BINDIR=$withval/bin
28149 { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28151 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28152 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28153 { (exit 1); exit 1; }; }
28156 SQL_INCLUDE=-I$MYSQL_INCDIR
28157 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28158 SQL_BINDIR=$MYSQL_BINDIR
28159 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28161 cat >>confdefs.h <<\_ACEOF
28162 #define HAVE_MYSQL 1
28165 cat >>confdefs.h <<\_ACEOF
28166 #define HAVE_EMBEDDED_MYSQL 1
28169 { echo "$as_me:$LINENO: result: yes" >&5
28170 echo "${ECHO_T}yes" >&6; }
28177 { echo "$as_me:$LINENO: result: no" >&5
28178 echo "${ECHO_T}no" >&6; }
28194 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28195 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28197 # Check whether --with-sqlite3 was given.
28198 if test "${with_sqlite3+set}" = set; then
28199 withval=$with_sqlite3;
28200 if test "$withval" != "no"; then
28201 if test "$withval" = "yes"; then
28202 if test -f /usr/local/include/sqlite3.h; then
28203 SQLITE_INCDIR=/usr/local/include
28204 if test -d /usr/local/lib64; then
28205 SQLITE_LIBDIR=/usr/local/lib64
28207 SQLITE_LIBDIR=/usr/local/lib
28209 SQLITE_BINDIR=/usr/local/bin
28210 elif test -f /usr/include/sqlite3.h; then
28211 SQLITE_INCDIR=/usr/include
28212 if test -d /usr/lib64; then
28213 SQLITE_LIBDIR=/usr/lib64
28215 SQLITE_LIBDIR=/usr/lib
28217 SQLITE_BINDIR=/usr/bin
28218 elif test -f $prefix/include/sqlite3.h; then
28219 SQLITE_INCDIR=$prefix/include
28220 if test -d $prefix/lib64; then
28221 SQLITE_LIBDIR=$prefix/lib64
28223 SQLITE_LIBDIR=$prefix/lib
28225 SQLITE_BINDIR=$prefix/bin
28227 { echo "$as_me:$LINENO: result: no" >&5
28228 echo "${ECHO_T}no" >&6; }
28229 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28230 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28231 { (exit 1); exit 1; }; }
28234 if test -f $withval/sqlite3.h; then
28235 SQLITE_INCDIR=$withval
28236 SQLITE_LIBDIR=$withval
28237 SQLITE_BINDIR=$withval
28238 elif test -f $withval/include/sqlite3.h; then
28239 SQLITE_INCDIR=$withval/include
28240 if test -d $withval/lib64; then
28241 SQLITE_LIBDIR=$withval/lib64
28243 SQLITE_LIBDIR=$withval/lib
28245 SQLITE_BINDIR=$withval/bin
28247 { echo "$as_me:$LINENO: result: no" >&5
28248 echo "${ECHO_T}no" >&6; }
28249 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28250 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28251 { (exit 1); exit 1; }; }
28254 SQL_INCLUDE=-I$SQLITE_INCDIR
28255 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28256 SQL_BINDIR=$SQLITE_BINDIR
28257 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28259 cat >>confdefs.h <<\_ACEOF
28260 #define HAVE_SQLITE3 1
28263 { echo "$as_me:$LINENO: result: yes" >&5
28264 echo "${ECHO_T}yes" >&6; }
28266 support_sqlite3=yes
28271 { echo "$as_me:$LINENO: result: no" >&5
28272 echo "${ECHO_T}no" >&6; }
28277 { echo "$as_me:$LINENO: result: no" >&5
28278 echo "${ECHO_T}no" >&6; }
28290 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28291 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28293 # Check whether --with-sqlite was given.
28294 if test "${with_sqlite+set}" = set; then
28295 withval=$with_sqlite;
28296 if test "$withval" != "no"; then
28297 if test "$withval" = "yes"; then
28298 if test -f /usr/local/include/sqlite.h; then
28299 SQLITE_INCDIR=/usr/local/include
28300 if test -d /usr/local/lib64; then
28301 SQLITE_LIBDIR=/usr/local/lib64
28303 SQLITE_LIBDIR=/usr/local/lib
28305 SQLITE_BINDIR=/usr/local/bin
28306 elif test -f /usr/include/sqlite.h; then
28307 SQLITE_INCDIR=/usr/include
28308 if test -d /usr/lib64; then
28309 SQLITE_LIBDIR=/usr/lib64
28311 SQLITE_LIBDIR=/usr/lib
28313 SQLITE_BINDIR=/usr/bin
28314 elif test -f $prefix/include/sqlite.h; then
28315 SQLITE_INCDIR=$prefix/include
28316 if test -d $prefix/lib64; then
28317 SQLITE_LIBDIR=$prefix/lib64
28319 SQLITE_LIBDIR=$prefix/lib
28321 SQLITE_BINDIR=$prefix/bin
28323 { echo "$as_me:$LINENO: result: no" >&5
28324 echo "${ECHO_T}no" >&6; }
28325 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28326 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28327 { (exit 1); exit 1; }; }
28330 if test -f $withval/sqlite.h; then
28331 SQLITE_INCDIR=$withval
28332 SQLITE_LIBDIR=$withval
28333 SQLITE_BINDIR=$withval
28334 elif test -f $withval/include/sqlite.h; then
28335 SQLITE_INCDIR=$withval/include
28336 if test -d $withval/lib64; then
28337 SQLITE_LIBDIR=$withval/lib64
28339 SQLITE_LIBDIR=$withval/lib
28341 SQLITE_BINDIR=$withval/bin
28343 { echo "$as_me:$LINENO: result: no" >&5
28344 echo "${ECHO_T}no" >&6; }
28345 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28346 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28347 { (exit 1); exit 1; }; }
28350 SQL_INCLUDE=-I$SQLITE_INCDIR
28351 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28352 SQL_BINDIR=$SQLITE_BINDIR
28353 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28355 cat >>confdefs.h <<\_ACEOF
28356 #define HAVE_SQLITE 1
28359 { echo "$as_me:$LINENO: result: yes" >&5
28360 echo "${ECHO_T}yes" >&6; }
28367 { echo "$as_me:$LINENO: result: no" >&5
28368 echo "${ECHO_T}no" >&6; }
28373 { echo "$as_me:$LINENO: result: no" >&5
28374 echo "${ECHO_T}no" >&6; }
28386 { echo "$as_me:$LINENO: checking for DBI support" >&5
28387 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28389 # Check whether --with-dbi was given.
28390 if test "${with_dbi+set}" = set; then
28392 if test "$withval" != "no"; then
28393 if test "$withval" = "yes"; then
28394 if test -f /usr/local/include/dbi/dbi.h; then
28395 DBI_INCDIR=/usr/local/dbi/include
28396 if test -d /usr/local/lib64; then
28397 DBI_LIBDIR=/usr/local/lib64
28399 DBI_LIBDIR=/usr/local/lib
28401 DBI_BINDIR=/usr/local/bin
28402 elif test -f /usr/include/dbi/dbi.h; then
28403 DBI_INCDIR=/usr/include
28404 if test -d /usr/lib64; then
28405 DBI_LIBDIR=/usr/lib64
28407 DBI_LIBDIR=/usr/lib
28409 DBI_BINDIR=/usr/bin
28410 elif test -f $prefix/include/dbi/dbi.h; then
28411 DBI_INCDIR=$prefix/include
28412 if test -d $prefix/lib64; then
28413 DBI_LIBDIR=$prefix/lib64
28415 DBI_LIBDIR=$prefix/lib
28417 DBI_BINDIR=$prefix/bin
28419 { echo "$as_me:$LINENO: result: no" >&5
28420 echo "${ECHO_T}no" >&6; }
28421 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28422 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28423 { (exit 1); exit 1; }; }
28425 if test -d /usr/local/lib/dbd; then
28426 DRIVERDIR=/usr/local/lib/dbd
28427 if test -d /usr/local/lib64/dbd; then
28428 DRIVERDIR=/usr/local/lib64/dbd
28430 DRIVERDIR=/usr/local/lib/dbd
28432 elif test -d /usr/lib/dbd; then
28433 DRIVERDIR=/usr/lib/dbd
28434 if test -d /usr/lib64/dbd; then
28435 DRIVERDIR=/usr/lib64/dbd
28437 DRIVERDIR=/usr/lib/dbd
28439 elif test -d $prefix/lib/dbd; then
28440 if test -d $prefix/lib64/dbd; then
28441 DRIVERDIR=$prefix/lib64/dbd
28443 DRIVERDIR=$prefix/lib/dbd
28446 { echo "$as_me:$LINENO: result: no" >&5
28447 echo "${ECHO_T}no" >&6; }
28448 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28449 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28450 { (exit 1); exit 1; }; }
28453 if test -f $withval/dbi.h; then
28454 DBI_INCDIR=$withval
28455 DBI_LIBDIR=$withval
28456 DBI_BINDIR=$withval
28457 elif test -f $withval/include/dbi/dbi.h; then
28458 DBI_INCDIR=$withval/include
28459 if test -d $withval/lib64; then
28460 DBI_LIBDIR=$withval/lib64
28462 DBI_LIBDIR=$withval/lib
28464 DBI_BINDIR=$withval/bin
28466 { echo "$as_me:$LINENO: result: no" >&5
28467 echo "${ECHO_T}no" >&6; }
28468 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28469 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28470 { (exit 1); exit 1; }; }
28472 if test -d $withval/dbd; then
28473 DRIVERDIR=$withval/dbd
28474 elif test -d $withval/lib/; then
28475 if test -d $withval/lib64/dbd; then
28476 DRIVERDIR=$withval/lib64/dbd
28478 DRIVERDIR=$withval/lib/dbd
28481 { echo "$as_me:$LINENO: result: no" >&5
28482 echo "${ECHO_T}no" >&6; }
28483 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28484 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28485 { (exit 1); exit 1; }; }
28488 SQL_INCLUDE=-I$DBI_INCDIR
28489 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28490 SQL_BINDIR=$DBI_BINDIR
28491 SQL_LIB=$DBI_LIBDIR/libdbi.a
28492 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28495 cat >>confdefs.h <<\_ACEOF
28499 { echo "$as_me:$LINENO: result: yes" >&5
28500 echo "${ECHO_T}yes" >&6; }
28508 { echo "$as_me:$LINENO: result: no" >&5
28509 echo "${ECHO_T}no" >&6; }
28514 { echo "$as_me:$LINENO: result: no" >&5
28515 echo "${ECHO_T}no" >&6; }
28530 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28531 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28533 # Check whether --with-dbi-driver was given.
28534 if test "${with_dbi_driver+set}" = set; then
28535 withval=$with_dbi_driver;
28536 if test "$withval" != "no"; then
28540 if test -f /usr/local/mysql/bin/mysql; then
28541 SQL_BINDIR=/usr/local/mysql/bin
28542 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28543 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28544 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28546 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28548 elif test -f /usr/bin/mysql; then
28549 SQL_BINDIR=/usr/bin
28550 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28551 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28552 SQL_LIBDIR=/usr/lib64/mysql
28553 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28554 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28555 SQL_LIBDIR=/usr/lib/mysql
28557 SQL_LIBDIR=/usr/lib
28559 elif test -f /usr/local/bin/mysql; then
28560 SQL_BINDIR=/usr/local/bin
28561 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28562 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28563 SQL_LIBDIR=/usr/local/lib64/mysql
28564 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28565 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28566 SQL_LIBDIR=/usr/local/lib/mysql
28568 SQL_LIBDIR=/usr/local/lib
28570 elif test -f $withval/bin/mysql; then
28571 SQL_BINDIR=$withval/bin
28572 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28573 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28574 SQL_LIBDIR=$withval/lib64/mysql
28575 elif test -f $withval/lib64/libmysqlclient_r.a \
28576 -o -f $withval/lib64/libmysqlclient_r.so; then
28577 SQL_LIBDIR=$withval/lib64
28578 elif test -f $withval/lib/libmysqlclient_r.a \
28579 -o -f $withval/lib/libmysqlclient_r.so; then
28580 SQL_LIBDIR=$withval/lib/
28582 SQL_LIBDIR=$withval/lib/mysql
28585 { echo "$as_me:$LINENO: result: no" >&5
28586 echo "${ECHO_T}no" >&6; }
28587 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28588 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28589 { (exit 1); exit 1; }; }
28591 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28594 db_prog="postgresql"
28595 PG_CONFIG=`which pg_config`
28596 if test -n "$PG_CONFIG"; then
28597 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28598 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28599 elif test -f /usr/local/bin/psql; then
28600 SQL_BINDIR=/usr/local/bin
28601 if test -d /usr/local/lib64; then
28602 SQL_LIBDIR=/usr/local/lib64
28604 SQL_LIBDIR=/usr/local/lib
28606 elif test -f /usr/bin/psql; then
28607 SQL_BINDIR=/usr/local/bin
28608 if test -d /usr/lib64/postgresql; then
28609 SQL_LIBDIR=/usr/lib64/postgresql
28610 elif test -d /usr/lib/postgresql; then
28611 SQL_LIBDIR=/usr/lib/postgresql
28612 elif test -d /usr/lib64; then
28613 SQL_LIBDIR=/usr/lib64
28615 SQL_LIBDIR=/usr/lib
28617 elif test -f $withval/bin/psql; then
28618 SQL_BINDIR=$withval/bin
28619 if test -d $withval/lib64; then
28620 SQL_LIBDIR=$withval/lib64
28622 SQL_LIBDIR=$withval/lib
28625 { echo "$as_me:$LINENO: result: no" >&5
28626 echo "${ECHO_T}no" >&6; }
28627 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28628 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28629 { (exit 1); exit 1; }; }
28631 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28635 if test -f /usr/local/bin/sqlite; then
28636 SQL_BINDIR=/usr/local/bin
28637 if test -d /usr/local/lib64; then
28638 SQL_LIBDIR=/usr/local/lib64
28640 SQL_LIBDIR=/usr/local/lib
28642 elif test -f /usr/bin/sqlite; then
28643 SQL_BINDIR=/usr/bin
28644 if test -d /usr/lib64; then
28645 SQL_LIBDIR=/usr/lib64
28647 SQL_LIBDIR=/usr/lib
28649 elif test -f $withval/bin/sqlite; then
28650 SQL_BINDIR=$withval/bin
28651 if test -d $withval/lib64; then
28652 SQL_LIBDIR=$withval/lib64
28654 SQL_LIBDIR=$withval/lib
28657 { echo "$as_me:$LINENO: result: no" >&5
28658 echo "${ECHO_T}no" >&6; }
28659 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28660 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28661 { (exit 1); exit 1; }; }
28663 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28667 if test -f /usr/local/bin/sqlite3; then
28668 SQL_BINDIR=/usr/local/bin
28669 if test -d /usr/local/lib64; then
28670 SQL_LIBDIR=/usr/local/lib64
28672 SQL_LIBDIR=/usr/local/lib
28674 elif test -f /usr/bin/sqlite3; then
28675 SQL_BINDIR=/usr/bin
28676 if test -d /usr/lib64; then
28677 SQL_LIBDIR=/usr/lib64
28679 SQL_LIBDIR=/usr/lib
28681 elif test -f $withval/bin/sqlite3; then
28682 SQL_BINDIR=$withval/bin
28683 if test -d $withval/lib64; then
28684 SQL_LIBDIR=$withval/lib64
28686 SQL_LIBDIR=$withval/lib
28689 { echo "$as_me:$LINENO: result: no" >&5
28690 echo "${ECHO_T}no" >&6; }
28691 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28692 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28693 { (exit 1); exit 1; }; }
28695 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28698 { echo "$as_me:$LINENO: result: no" >&5
28699 echo "${ECHO_T}no" >&6; }
28700 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28701 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28702 { (exit 1); exit 1; }; }
28706 { echo "$as_me:$LINENO: result: yes" >&5
28707 echo "${ECHO_T}yes" >&6; }
28710 { echo "$as_me:$LINENO: result: no" >&5
28711 echo "${ECHO_T}no" >&6; }
28716 { echo "$as_me:$LINENO: result: no" >&5
28717 echo "${ECHO_T}no" >&6; }
28730 support_batch_insert=no
28731 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28733 if test $pkg = 0; then
28734 support_batch_insert=yes
28735 # Check whether --enable-batch-insert was given.
28736 if test "${enable_batch_insert+set}" = set; then
28737 enableval=$enable_batch_insert;
28738 if test x$enableval = xno; then
28739 support_batch_insert=no
28741 support_batch_insert=yes
28749 if test x$DB_TYPE = xpostgresql; then
28750 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28752 if test $pkg != 0; then
28753 support_batch_insert=no
28757 if test x$DB_TYPE = xdbi; then
28761 if test $DB_PROG = postgresql; then
28762 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28766 if test $DB_PROG = mysql; then
28767 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28771 if test $DB_PROG = sqlite3; then
28772 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28776 if test $pkg = 0; then
28777 # Check whether --enable-batch-insert was given.
28778 if test "${enable_batch_insert+set}" = set; then
28779 enableval=$enable_batch_insert;
28780 if test x$enableval = xno; then
28781 support_batch_insert=no
28783 support_batch_insert=yes
28796 if test $support_batch_insert = yes ; then
28798 cat >>confdefs.h <<\_ACEOF
28799 #define HAVE_BATCH_FILE_INSERT 1
28804 cat >>confdefs.h <<\_ACEOF
28805 #define PROTOTYPES 1
28809 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28810 if test -z "$CCOPTS"; then
28811 CCOPTS='-g -O2 -Wall'
28818 largefile_support="no"
28820 # Check whether --enable-largefile was given.
28821 if test "${enable_largefile+set}" = set; then
28822 enableval=$enable_largefile;
28825 if test "$enable_largefile" != no; then
28826 if test -n "$ac_tool_prefix"; then
28827 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28828 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28831 if test "${ac_cv_prog_GETCONF+set}" = set; then
28832 echo $ECHO_N "(cached) $ECHO_C" >&6
28834 if test -n "$GETCONF"; then
28835 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28838 for as_dir in $PATH
28841 test -z "$as_dir" && as_dir=.
28842 for ac_exec_ext in '' $ac_executable_extensions; do
28843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28844 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28854 GETCONF=$ac_cv_prog_GETCONF
28855 if test -n "$GETCONF"; then
28856 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28857 echo "${ECHO_T}$GETCONF" >&6; }
28859 { echo "$as_me:$LINENO: result: no" >&5
28860 echo "${ECHO_T}no" >&6; }
28865 if test -z "$ac_cv_prog_GETCONF"; then
28866 ac_ct_GETCONF=$GETCONF
28867 # Extract the first word of "getconf", so it can be a program name with args.
28868 set dummy getconf; ac_word=$2
28869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28871 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28872 echo $ECHO_N "(cached) $ECHO_C" >&6
28874 if test -n "$ac_ct_GETCONF"; then
28875 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28878 for as_dir in $PATH
28881 test -z "$as_dir" && as_dir=.
28882 for ac_exec_ext in '' $ac_executable_extensions; do
28883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28884 ac_cv_prog_ac_ct_GETCONF="getconf"
28885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28894 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28895 if test -n "$ac_ct_GETCONF"; then
28896 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28897 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28899 { echo "$as_me:$LINENO: result: no" >&5
28900 echo "${ECHO_T}no" >&6; }
28903 if test "x$ac_ct_GETCONF" = x; then
28906 case $cross_compiling:$ac_tool_warned in
28908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28909 whose name does not start with the host triplet. If you think this
28910 configuration is useful to you, please write to autoconf@gnu.org." >&5
28911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28912 whose name does not start with the host triplet. If you think this
28913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28914 ac_tool_warned=yes ;;
28916 GETCONF=$ac_ct_GETCONF
28919 GETCONF="$ac_cv_prog_GETCONF"
28922 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28923 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28924 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28925 echo $ECHO_N "(cached) $ECHO_C" >&6
28927 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28928 ac_cv_sys_largefile_CFLAGS=no
28930 # IRIX 6.2 and later require cc -n32.
28931 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28932 if test "$GCC" != yes; then
28933 ac_cv_sys_largefile_CFLAGS=-n32
28936 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28937 cat >conftest.$ac_ext <<_ACEOF
28940 cat confdefs.h >>conftest.$ac_ext
28941 cat >>conftest.$ac_ext <<_ACEOF
28942 /* end confdefs.h. */
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956 *) ac_try_echo=$ac_try;;
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_link") 2>conftest.er1
28961 grep -v '^ *+' conftest.er1 >conftest.err
28963 cat conftest.err >&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } && {
28966 test -z "$ac_c_werror_flag" ||
28967 test ! -s conftest.err
28968 } && test -s conftest$ac_exeext &&
28969 $as_test_x conftest$ac_exeext; then
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28975 ac_cv_sys_largefile_CFLAGS=no
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28979 conftest$ac_exeext conftest.$ac_ext
28984 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28985 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28986 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28987 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28988 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28989 echo $ECHO_N "(cached) $ECHO_C" >&6
28991 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28992 ac_cv_sys_largefile_LDFLAGS=no
28996 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28997 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28998 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28999 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29000 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29001 echo $ECHO_N "(cached) $ECHO_C" >&6
29003 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29004 ac_cv_sys_largefile_LIBS=no
29008 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29009 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29011 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29014 -D_FILE_OFFSET_BITS=*) ;;
29015 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29016 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29021 case "$CPPFLAGS" in
29022 '') CPPFLAGS="$ac_flag" ;;
29023 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29031 '') CFLAGS="$ac_flag" ;;
29032 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29037 case "$ac_cv_sys_largefile_LDFLAGS" in
29041 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29042 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29045 case "$ac_cv_sys_largefile_LIBS" in
29049 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29050 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29053 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29054 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29055 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29058 ac_cv_sys_file_offset_bits=no
29059 ac_cv_sys_file_offset_bits=64
29060 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29062 -D_FILE_OFFSET_BITS)
29063 ac_cv_sys_file_offset_bits=1 ;;
29064 -D_FILE_OFFSET_BITS=*)
29065 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29070 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29071 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29072 if test "$ac_cv_sys_file_offset_bits" != no; then
29074 cat >>confdefs.h <<_ACEOF
29075 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29079 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29080 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29081 if test "${ac_cv_sys_largefile_source+set}" = set; then
29082 echo $ECHO_N "(cached) $ECHO_C" >&6
29084 ac_cv_sys_largefile_source=no
29085 ac_cv_sys_largefile_source=1
29086 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29088 -D_LARGEFILE_SOURCE)
29089 ac_cv_sys_largefile_source=1 ;;
29090 -D_LARGEFILE_SOURCE=*)
29091 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29096 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29097 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29098 if test "$ac_cv_sys_largefile_source" != no; then
29100 cat >>confdefs.h <<_ACEOF
29101 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29105 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29106 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29107 if test "${ac_cv_sys_large_files+set}" = set; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29110 ac_cv_sys_large_files=no
29111 ac_cv_sys_large_files=1
29112 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29115 ac_cv_sys_large_files=1 ;;
29117 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29122 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29123 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29124 if test "$ac_cv_sys_large_files" != no; then
29126 cat >>confdefs.h <<_ACEOF
29127 #define _LARGE_FILES $ac_cv_sys_large_files
29134 { echo "$as_me:$LINENO: checking for X" >&5
29135 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29138 # Check whether --with-x was given.
29139 if test "${with_x+set}" = set; then
29143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29144 if test "x$with_x" = xno; then
29145 # The user explicitly disabled X.
29148 case $x_includes,$x_libraries in #(
29149 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29150 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29151 { (exit 1); exit 1; }; };; #(
29152 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29153 echo $ECHO_N "(cached) $ECHO_C" >&6
29155 # One or both of the vars are not set, and there is no cached value.
29156 ac_x_includes=no ac_x_libraries=no
29157 rm -f -r conftest.dir
29158 if mkdir conftest.dir; then
29160 cat >Imakefile <<'_ACEOF'
29162 @echo incroot='${INCROOT}'
29164 @echo usrlibdir='${USRLIBDIR}'
29166 @echo libdir='${LIBDIR}'
29168 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29169 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29170 for ac_var in incroot usrlibdir libdir; do
29171 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29173 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29174 for ac_extension in a so sl; do
29175 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29176 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29177 ac_im_usrlibdir=$ac_im_libdir; break
29180 # Screen out bogus values from the imake configuration. They are
29181 # bogus both because they are the default anyway, and because
29182 # using them would break gcc on systems where it needs fixed includes.
29183 case $ac_im_incroot in
29184 /usr/include) ac_x_includes= ;;
29185 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29187 case $ac_im_usrlibdir in
29188 /usr/lib | /lib) ;;
29189 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29193 rm -f -r conftest.dir
29196 # Standard set of common directories for X headers.
29197 # Check X11 before X11Rn because it is often a symlink to the current release.
29209 /usr/local/X11/include
29210 /usr/local/X11R6/include
29211 /usr/local/X11R5/include
29212 /usr/local/X11R4/include
29214 /usr/local/include/X11
29215 /usr/local/include/X11R6
29216 /usr/local/include/X11R5
29217 /usr/local/include/X11R4
29221 /usr/XFree86/include/X11
29225 /usr/unsupported/include
29226 /usr/athena/include
29227 /usr/local/x11r5/include
29228 /usr/lpp/Xamples/include
29230 /usr/openwin/include
29231 /usr/openwin/share/include'
29233 if test "$ac_x_includes" = no; then
29234 # Guess where to find include files, by looking for Xlib.h.
29235 # First, try using that file with no special directory specified.
29236 cat >conftest.$ac_ext <<_ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h. */
29242 #include <X11/Xlib.h>
29244 if { (ac_try="$ac_cpp conftest.$ac_ext"
29245 case "(($ac_try" in
29246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29247 *) ac_try_echo=$ac_try;;
29249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29252 grep -v '^ *+' conftest.er1 >conftest.err
29254 cat conftest.err >&5
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); } >/dev/null && {
29257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29258 test ! -s conftest.err
29260 # We can compile using X headers with no special include directory.
29263 echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29266 for ac_dir in $ac_x_header_dirs; do
29267 if test -r "$ac_dir/X11/Xlib.h"; then
29268 ac_x_includes=$ac_dir
29274 rm -f conftest.err conftest.$ac_ext
29275 fi # $ac_x_includes = no
29277 if test "$ac_x_libraries" = no; then
29278 # Check for the libraries.
29279 # See if we find them without any special options.
29280 # Don't add to $LIBS permanently.
29283 cat >conftest.$ac_ext <<_ACEOF
29286 cat confdefs.h >>conftest.$ac_ext
29287 cat >>conftest.$ac_ext <<_ACEOF
29288 /* end confdefs.h. */
29289 #include <X11/Xlib.h>
29298 rm -f conftest.$ac_objext conftest$ac_exeext
29299 if { (ac_try="$ac_link"
29300 case "(($ac_try" in
29301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302 *) ac_try_echo=$ac_try;;
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305 (eval "$ac_link") 2>conftest.er1
29307 grep -v '^ *+' conftest.er1 >conftest.err
29309 cat conftest.err >&5
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); } && {
29312 test -z "$ac_c_werror_flag" ||
29313 test ! -s conftest.err
29314 } && test -s conftest$ac_exeext &&
29315 $as_test_x conftest$ac_exeext; then
29317 # We can link X programs with no special library path.
29320 echo "$as_me: failed program was:" >&5
29321 sed 's/^/| /' conftest.$ac_ext >&5
29324 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29326 # Don't even attempt the hair of trying to link an X program!
29327 for ac_extension in a so sl; do
29328 if test -r "$ac_dir/libX11.$ac_extension"; then
29329 ac_x_libraries=$ac_dir
29336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29337 conftest$ac_exeext conftest.$ac_ext
29338 fi # $ac_x_libraries = no
29340 case $ac_x_includes,$ac_x_libraries in #(
29341 no,* | *,no | *\'*)
29342 # Didn't find X, or a directory has "'" in its name.
29343 ac_cv_have_x="have_x=no";; #(
29345 # Record where we found X for the cache.
29346 ac_cv_have_x="have_x=yes\
29347 ac_x_includes='$ac_x_includes'\
29348 ac_x_libraries='$ac_x_libraries'"
29354 eval "$ac_cv_have_x"
29357 if test "$have_x" != yes; then
29358 { echo "$as_me:$LINENO: result: $have_x" >&5
29359 echo "${ECHO_T}$have_x" >&6; }
29362 # If each of the values was on the command line, it overrides each guess.
29363 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29364 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29365 # Update the cache value to reflect the command line values.
29366 ac_cv_have_x="have_x=yes\
29367 ac_x_includes='$x_includes'\
29368 ac_x_libraries='$x_libraries'"
29369 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29370 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29373 if test "$no_x" = yes; then
29374 # Not all programs may use this symbol, but it does not hurt to define it.
29376 cat >>confdefs.h <<\_ACEOF
29377 #define X_DISPLAY_MISSING 1
29380 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29382 if test -n "$x_includes"; then
29383 X_CFLAGS="$X_CFLAGS -I$x_includes"
29386 # It would also be nice to do this for all -L options, not just this one.
29387 if test -n "$x_libraries"; then
29388 X_LIBS="$X_LIBS -L$x_libraries"
29389 # For Solaris; some versions of Sun CC require a space after -R and
29390 # others require no space. Words are not sufficient . . . .
29391 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29392 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29393 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29394 ac_xsave_c_werror_flag=$ac_c_werror_flag
29395 ac_c_werror_flag=yes
29396 cat >conftest.$ac_ext <<_ACEOF
29399 cat confdefs.h >>conftest.$ac_ext
29400 cat >>conftest.$ac_ext <<_ACEOF
29401 /* end confdefs.h. */
29411 rm -f conftest.$ac_objext conftest$ac_exeext
29412 if { (ac_try="$ac_link"
29413 case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_link") 2>conftest.er1
29420 grep -v '^ *+' conftest.er1 >conftest.err
29422 cat conftest.err >&5
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); } && {
29425 test -z "$ac_c_werror_flag" ||
29426 test ! -s conftest.err
29427 } && test -s conftest$ac_exeext &&
29428 $as_test_x conftest$ac_exeext; then
29429 { echo "$as_me:$LINENO: result: no" >&5
29430 echo "${ECHO_T}no" >&6; }
29431 X_LIBS="$X_LIBS -R$x_libraries"
29433 echo "$as_me: failed program was:" >&5
29434 sed 's/^/| /' conftest.$ac_ext >&5
29436 LIBS="$ac_xsave_LIBS -R $x_libraries"
29437 cat >conftest.$ac_ext <<_ACEOF
29440 cat confdefs.h >>conftest.$ac_ext
29441 cat >>conftest.$ac_ext <<_ACEOF
29442 /* end confdefs.h. */
29452 rm -f conftest.$ac_objext conftest$ac_exeext
29453 if { (ac_try="$ac_link"
29454 case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_link") 2>conftest.er1
29461 grep -v '^ *+' conftest.er1 >conftest.err
29463 cat conftest.err >&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } && {
29466 test -z "$ac_c_werror_flag" ||
29467 test ! -s conftest.err
29468 } && test -s conftest$ac_exeext &&
29469 $as_test_x conftest$ac_exeext; then
29470 { echo "$as_me:$LINENO: result: yes" >&5
29471 echo "${ECHO_T}yes" >&6; }
29472 X_LIBS="$X_LIBS -R $x_libraries"
29474 echo "$as_me: failed program was:" >&5
29475 sed 's/^/| /' conftest.$ac_ext >&5
29477 { echo "$as_me:$LINENO: result: neither works" >&5
29478 echo "${ECHO_T}neither works" >&6; }
29481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29482 conftest$ac_exeext conftest.$ac_ext
29485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29486 conftest$ac_exeext conftest.$ac_ext
29487 ac_c_werror_flag=$ac_xsave_c_werror_flag
29488 LIBS=$ac_xsave_LIBS
29491 # Check for system-dependent libraries X programs must link with.
29492 # Do this before checking for the system-independent R6 libraries
29493 # (-lICE), since we may need -lsocket or whatever for X linking.
29495 if test "$ISC" = yes; then
29496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29498 # Martyn Johnson says this is needed for Ultrix, if the X
29499 # libraries were built with DECnet support. And Karl Berry says
29500 # the Alpha needs dnet_stub (dnet does not exist).
29501 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29509 /* Override any GCC internal prototype to avoid an error.
29510 Use char because int might match the return type of a GCC
29511 builtin and then its argument prototype would still apply. */
29515 char XOpenDisplay ();
29519 return XOpenDisplay ();
29524 rm -f conftest.$ac_objext conftest$ac_exeext
29525 if { (ac_try="$ac_link"
29526 case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_link") 2>conftest.er1
29533 grep -v '^ *+' conftest.er1 >conftest.err
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } && {
29538 test -z "$ac_c_werror_flag" ||
29539 test ! -s conftest.err
29540 } && test -s conftest$ac_exeext &&
29541 $as_test_x conftest$ac_exeext; then
29544 echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29547 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29548 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29549 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29550 echo $ECHO_N "(cached) $ECHO_C" >&6
29552 ac_check_lib_save_LIBS=$LIBS
29553 LIBS="-ldnet $LIBS"
29554 cat >conftest.$ac_ext <<_ACEOF
29557 cat confdefs.h >>conftest.$ac_ext
29558 cat >>conftest.$ac_ext <<_ACEOF
29559 /* end confdefs.h. */
29561 /* Override any GCC internal prototype to avoid an error.
29562 Use char because int might match the return type of a GCC
29563 builtin and then its argument prototype would still apply. */
29571 return dnet_ntoa ();
29576 rm -f conftest.$ac_objext conftest$ac_exeext
29577 if { (ac_try="$ac_link"
29578 case "(($ac_try" in
29579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580 *) ac_try_echo=$ac_try;;
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583 (eval "$ac_link") 2>conftest.er1
29585 grep -v '^ *+' conftest.er1 >conftest.err
29587 cat conftest.err >&5
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); } && {
29590 test -z "$ac_c_werror_flag" ||
29591 test ! -s conftest.err
29592 } && test -s conftest$ac_exeext &&
29593 $as_test_x conftest$ac_exeext; then
29594 ac_cv_lib_dnet_dnet_ntoa=yes
29596 echo "$as_me: failed program was:" >&5
29597 sed 's/^/| /' conftest.$ac_ext >&5
29599 ac_cv_lib_dnet_dnet_ntoa=no
29602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29603 conftest$ac_exeext conftest.$ac_ext
29604 LIBS=$ac_check_lib_save_LIBS
29606 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29607 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29608 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29609 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29612 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29613 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29614 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29615 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29616 echo $ECHO_N "(cached) $ECHO_C" >&6
29618 ac_check_lib_save_LIBS=$LIBS
29619 LIBS="-ldnet_stub $LIBS"
29620 cat >conftest.$ac_ext <<_ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h. */
29627 /* Override any GCC internal prototype to avoid an error.
29628 Use char because int might match the return type of a GCC
29629 builtin and then its argument prototype would still apply. */
29637 return dnet_ntoa ();
29642 rm -f conftest.$ac_objext conftest$ac_exeext
29643 if { (ac_try="$ac_link"
29644 case "(($ac_try" in
29645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646 *) ac_try_echo=$ac_try;;
29648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649 (eval "$ac_link") 2>conftest.er1
29651 grep -v '^ *+' conftest.er1 >conftest.err
29653 cat conftest.err >&5
29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655 (exit $ac_status); } && {
29656 test -z "$ac_c_werror_flag" ||
29657 test ! -s conftest.err
29658 } && test -s conftest$ac_exeext &&
29659 $as_test_x conftest$ac_exeext; then
29660 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29662 echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29665 ac_cv_lib_dnet_stub_dnet_ntoa=no
29668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29669 conftest$ac_exeext conftest.$ac_ext
29670 LIBS=$ac_check_lib_save_LIBS
29672 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29673 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29674 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29675 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29682 conftest$ac_exeext conftest.$ac_ext
29683 LIBS="$ac_xsave_LIBS"
29685 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29686 # to get the SysV transport functions.
29687 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29689 # The nsl library prevents programs from opening the X display
29690 # on Irix 5.2, according to T.E. Dickey.
29691 # The functions gethostbyname, getservbyname, and inet_addr are
29692 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29693 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29694 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29695 if test "${ac_cv_func_gethostbyname+set}" = set; then
29696 echo $ECHO_N "(cached) $ECHO_C" >&6
29698 cat >conftest.$ac_ext <<_ACEOF
29701 cat confdefs.h >>conftest.$ac_ext
29702 cat >>conftest.$ac_ext <<_ACEOF
29703 /* end confdefs.h. */
29704 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29706 #define gethostbyname innocuous_gethostbyname
29708 /* System header to define __stub macros and hopefully few prototypes,
29709 which can conflict with char gethostbyname (); below.
29710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29711 <limits.h> exists even on freestanding compilers. */
29714 # include <limits.h>
29716 # include <assert.h>
29719 #undef gethostbyname
29721 /* Override any GCC internal prototype to avoid an error.
29722 Use char because int might match the return type of a GCC
29723 builtin and then its argument prototype would still apply. */
29727 char gethostbyname ();
29728 /* The GNU C library defines this for functions which it implements
29729 to always fail with ENOSYS. Some functions are actually named
29730 something starting with __ and the normal name is an alias. */
29731 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29738 return gethostbyname ();
29743 rm -f conftest.$ac_objext conftest$ac_exeext
29744 if { (ac_try="$ac_link"
29745 case "(($ac_try" in
29746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747 *) ac_try_echo=$ac_try;;
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750 (eval "$ac_link") 2>conftest.er1
29752 grep -v '^ *+' conftest.er1 >conftest.err
29754 cat conftest.err >&5
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); } && {
29757 test -z "$ac_c_werror_flag" ||
29758 test ! -s conftest.err
29759 } && test -s conftest$ac_exeext &&
29760 $as_test_x conftest$ac_exeext; then
29761 ac_cv_func_gethostbyname=yes
29763 echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29766 ac_cv_func_gethostbyname=no
29769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29770 conftest$ac_exeext conftest.$ac_ext
29772 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29773 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29775 if test $ac_cv_func_gethostbyname = no; then
29776 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29777 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29778 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29779 echo $ECHO_N "(cached) $ECHO_C" >&6
29781 ac_check_lib_save_LIBS=$LIBS
29783 cat >conftest.$ac_ext <<_ACEOF
29786 cat confdefs.h >>conftest.$ac_ext
29787 cat >>conftest.$ac_ext <<_ACEOF
29788 /* end confdefs.h. */
29790 /* Override any GCC internal prototype to avoid an error.
29791 Use char because int might match the return type of a GCC
29792 builtin and then its argument prototype would still apply. */
29796 char gethostbyname ();
29800 return gethostbyname ();
29805 rm -f conftest.$ac_objext conftest$ac_exeext
29806 if { (ac_try="$ac_link"
29807 case "(($ac_try" in
29808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29809 *) ac_try_echo=$ac_try;;
29811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29812 (eval "$ac_link") 2>conftest.er1
29814 grep -v '^ *+' conftest.er1 >conftest.err
29816 cat conftest.err >&5
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); } && {
29819 test -z "$ac_c_werror_flag" ||
29820 test ! -s conftest.err
29821 } && test -s conftest$ac_exeext &&
29822 $as_test_x conftest$ac_exeext; then
29823 ac_cv_lib_nsl_gethostbyname=yes
29825 echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29828 ac_cv_lib_nsl_gethostbyname=no
29831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29832 conftest$ac_exeext conftest.$ac_ext
29833 LIBS=$ac_check_lib_save_LIBS
29835 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29836 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29837 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29841 if test $ac_cv_lib_nsl_gethostbyname = no; then
29842 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29843 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29844 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29845 echo $ECHO_N "(cached) $ECHO_C" >&6
29847 ac_check_lib_save_LIBS=$LIBS
29849 cat >conftest.$ac_ext <<_ACEOF
29852 cat confdefs.h >>conftest.$ac_ext
29853 cat >>conftest.$ac_ext <<_ACEOF
29854 /* end confdefs.h. */
29856 /* Override any GCC internal prototype to avoid an error.
29857 Use char because int might match the return type of a GCC
29858 builtin and then its argument prototype would still apply. */
29862 char gethostbyname ();
29866 return gethostbyname ();
29871 rm -f conftest.$ac_objext conftest$ac_exeext
29872 if { (ac_try="$ac_link"
29873 case "(($ac_try" in
29874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29875 *) ac_try_echo=$ac_try;;
29877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29878 (eval "$ac_link") 2>conftest.er1
29880 grep -v '^ *+' conftest.er1 >conftest.err
29882 cat conftest.err >&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } && {
29885 test -z "$ac_c_werror_flag" ||
29886 test ! -s conftest.err
29887 } && test -s conftest$ac_exeext &&
29888 $as_test_x conftest$ac_exeext; then
29889 ac_cv_lib_bsd_gethostbyname=yes
29891 echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29894 ac_cv_lib_bsd_gethostbyname=no
29897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29898 conftest$ac_exeext conftest.$ac_ext
29899 LIBS=$ac_check_lib_save_LIBS
29901 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29902 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29903 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29910 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29911 # socket/setsockopt and other routines are undefined under SCO ODT
29912 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29913 # on later versions), says Simon Leinen: it contains gethostby*
29914 # variants that don't use the name server (or something). -lsocket
29915 # must be given before -lnsl if both are needed. We assume that
29916 # if connect needs -lnsl, so does gethostbyname.
29917 { echo "$as_me:$LINENO: checking for connect" >&5
29918 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29919 if test "${ac_cv_func_connect+set}" = set; then
29920 echo $ECHO_N "(cached) $ECHO_C" >&6
29922 cat >conftest.$ac_ext <<_ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h. */
29928 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29930 #define connect innocuous_connect
29932 /* System header to define __stub macros and hopefully few prototypes,
29933 which can conflict with char connect (); below.
29934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29935 <limits.h> exists even on freestanding compilers. */
29938 # include <limits.h>
29940 # include <assert.h>
29945 /* Override any GCC internal prototype to avoid an error.
29946 Use char because int might match the return type of a GCC
29947 builtin and then its argument prototype would still apply. */
29952 /* The GNU C library defines this for functions which it implements
29953 to always fail with ENOSYS. Some functions are actually named
29954 something starting with __ and the normal name is an alias. */
29955 #if defined __stub_connect || defined __stub___connect
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (ac_try="$ac_link"
29969 case "(($ac_try" in
29970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971 *) ac_try_echo=$ac_try;;
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974 (eval "$ac_link") 2>conftest.er1
29976 grep -v '^ *+' conftest.er1 >conftest.err
29978 cat conftest.err >&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } && {
29981 test -z "$ac_c_werror_flag" ||
29982 test ! -s conftest.err
29983 } && test -s conftest$ac_exeext &&
29984 $as_test_x conftest$ac_exeext; then
29985 ac_cv_func_connect=yes
29987 echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29990 ac_cv_func_connect=no
29993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29994 conftest$ac_exeext conftest.$ac_ext
29996 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29997 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29999 if test $ac_cv_func_connect = no; then
30000 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30001 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30002 if test "${ac_cv_lib_socket_connect+set}" = set; then
30003 echo $ECHO_N "(cached) $ECHO_C" >&6
30005 ac_check_lib_save_LIBS=$LIBS
30006 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30007 cat >conftest.$ac_ext <<_ACEOF
30010 cat confdefs.h >>conftest.$ac_ext
30011 cat >>conftest.$ac_ext <<_ACEOF
30012 /* end confdefs.h. */
30014 /* Override any GCC internal prototype to avoid an error.
30015 Use char because int might match the return type of a GCC
30016 builtin and then its argument prototype would still apply. */
30029 rm -f conftest.$ac_objext conftest$ac_exeext
30030 if { (ac_try="$ac_link"
30031 case "(($ac_try" in
30032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30033 *) ac_try_echo=$ac_try;;
30035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30036 (eval "$ac_link") 2>conftest.er1
30038 grep -v '^ *+' conftest.er1 >conftest.err
30040 cat conftest.err >&5
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); } && {
30043 test -z "$ac_c_werror_flag" ||
30044 test ! -s conftest.err
30045 } && test -s conftest$ac_exeext &&
30046 $as_test_x conftest$ac_exeext; then
30047 ac_cv_lib_socket_connect=yes
30049 echo "$as_me: failed program was:" >&5
30050 sed 's/^/| /' conftest.$ac_ext >&5
30052 ac_cv_lib_socket_connect=no
30055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30056 conftest$ac_exeext conftest.$ac_ext
30057 LIBS=$ac_check_lib_save_LIBS
30059 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30060 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30061 if test $ac_cv_lib_socket_connect = yes; then
30062 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30067 # Guillermo Gomez says -lposix is necessary on A/UX.
30068 { echo "$as_me:$LINENO: checking for remove" >&5
30069 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30070 if test "${ac_cv_func_remove+set}" = set; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 cat >conftest.$ac_ext <<_ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h. */
30079 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30081 #define remove innocuous_remove
30083 /* System header to define __stub macros and hopefully few prototypes,
30084 which can conflict with char remove (); below.
30085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30086 <limits.h> exists even on freestanding compilers. */
30089 # include <limits.h>
30091 # include <assert.h>
30096 /* Override any GCC internal prototype to avoid an error.
30097 Use char because int might match the return type of a GCC
30098 builtin and then its argument prototype would still apply. */
30103 /* The GNU C library defines this for functions which it implements
30104 to always fail with ENOSYS. Some functions are actually named
30105 something starting with __ and the normal name is an alias. */
30106 #if defined __stub_remove || defined __stub___remove
30118 rm -f conftest.$ac_objext conftest$ac_exeext
30119 if { (ac_try="$ac_link"
30120 case "(($ac_try" in
30121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122 *) ac_try_echo=$ac_try;;
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125 (eval "$ac_link") 2>conftest.er1
30127 grep -v '^ *+' conftest.er1 >conftest.err
30129 cat conftest.err >&5
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); } && {
30132 test -z "$ac_c_werror_flag" ||
30133 test ! -s conftest.err
30134 } && test -s conftest$ac_exeext &&
30135 $as_test_x conftest$ac_exeext; then
30136 ac_cv_func_remove=yes
30138 echo "$as_me: failed program was:" >&5
30139 sed 's/^/| /' conftest.$ac_ext >&5
30141 ac_cv_func_remove=no
30144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30145 conftest$ac_exeext conftest.$ac_ext
30147 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30148 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30150 if test $ac_cv_func_remove = no; then
30151 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30152 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30153 if test "${ac_cv_lib_posix_remove+set}" = set; then
30154 echo $ECHO_N "(cached) $ECHO_C" >&6
30156 ac_check_lib_save_LIBS=$LIBS
30157 LIBS="-lposix $LIBS"
30158 cat >conftest.$ac_ext <<_ACEOF
30161 cat confdefs.h >>conftest.$ac_ext
30162 cat >>conftest.$ac_ext <<_ACEOF
30163 /* end confdefs.h. */
30165 /* Override any GCC internal prototype to avoid an error.
30166 Use char because int might match the return type of a GCC
30167 builtin and then its argument prototype would still apply. */
30180 rm -f conftest.$ac_objext conftest$ac_exeext
30181 if { (ac_try="$ac_link"
30182 case "(($ac_try" in
30183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30184 *) ac_try_echo=$ac_try;;
30186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30187 (eval "$ac_link") 2>conftest.er1
30189 grep -v '^ *+' conftest.er1 >conftest.err
30191 cat conftest.err >&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } && {
30194 test -z "$ac_c_werror_flag" ||
30195 test ! -s conftest.err
30196 } && test -s conftest$ac_exeext &&
30197 $as_test_x conftest$ac_exeext; then
30198 ac_cv_lib_posix_remove=yes
30200 echo "$as_me: failed program was:" >&5
30201 sed 's/^/| /' conftest.$ac_ext >&5
30203 ac_cv_lib_posix_remove=no
30206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30207 conftest$ac_exeext conftest.$ac_ext
30208 LIBS=$ac_check_lib_save_LIBS
30210 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30211 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30212 if test $ac_cv_lib_posix_remove = yes; then
30213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30218 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30219 { echo "$as_me:$LINENO: checking for shmat" >&5
30220 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30221 if test "${ac_cv_func_shmat+set}" = set; then
30222 echo $ECHO_N "(cached) $ECHO_C" >&6
30224 cat >conftest.$ac_ext <<_ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h. */
30230 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30232 #define shmat innocuous_shmat
30234 /* System header to define __stub macros and hopefully few prototypes,
30235 which can conflict with char shmat (); below.
30236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30237 <limits.h> exists even on freestanding compilers. */
30240 # include <limits.h>
30242 # include <assert.h>
30247 /* Override any GCC internal prototype to avoid an error.
30248 Use char because int might match the return type of a GCC
30249 builtin and then its argument prototype would still apply. */
30254 /* The GNU C library defines this for functions which it implements
30255 to always fail with ENOSYS. Some functions are actually named
30256 something starting with __ and the normal name is an alias. */
30257 #if defined __stub_shmat || defined __stub___shmat
30269 rm -f conftest.$ac_objext conftest$ac_exeext
30270 if { (ac_try="$ac_link"
30271 case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_link") 2>conftest.er1
30278 grep -v '^ *+' conftest.er1 >conftest.err
30280 cat conftest.err >&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); } && {
30283 test -z "$ac_c_werror_flag" ||
30284 test ! -s conftest.err
30285 } && test -s conftest$ac_exeext &&
30286 $as_test_x conftest$ac_exeext; then
30287 ac_cv_func_shmat=yes
30289 echo "$as_me: failed program was:" >&5
30290 sed 's/^/| /' conftest.$ac_ext >&5
30292 ac_cv_func_shmat=no
30295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30296 conftest$ac_exeext conftest.$ac_ext
30298 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30299 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30301 if test $ac_cv_func_shmat = no; then
30302 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30303 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30304 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30305 echo $ECHO_N "(cached) $ECHO_C" >&6
30307 ac_check_lib_save_LIBS=$LIBS
30309 cat >conftest.$ac_ext <<_ACEOF
30312 cat confdefs.h >>conftest.$ac_ext
30313 cat >>conftest.$ac_ext <<_ACEOF
30314 /* end confdefs.h. */
30316 /* Override any GCC internal prototype to avoid an error.
30317 Use char because int might match the return type of a GCC
30318 builtin and then its argument prototype would still apply. */
30331 rm -f conftest.$ac_objext conftest$ac_exeext
30332 if { (ac_try="$ac_link"
30333 case "(($ac_try" in
30334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335 *) ac_try_echo=$ac_try;;
30337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338 (eval "$ac_link") 2>conftest.er1
30340 grep -v '^ *+' conftest.er1 >conftest.err
30342 cat conftest.err >&5
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); } && {
30345 test -z "$ac_c_werror_flag" ||
30346 test ! -s conftest.err
30347 } && test -s conftest$ac_exeext &&
30348 $as_test_x conftest$ac_exeext; then
30349 ac_cv_lib_ipc_shmat=yes
30351 echo "$as_me: failed program was:" >&5
30352 sed 's/^/| /' conftest.$ac_ext >&5
30354 ac_cv_lib_ipc_shmat=no
30357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30358 conftest$ac_exeext conftest.$ac_ext
30359 LIBS=$ac_check_lib_save_LIBS
30361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30362 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30363 if test $ac_cv_lib_ipc_shmat = yes; then
30364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30370 # Check for libraries that X11R6 Xt/Xaw programs need.
30371 ac_save_LDFLAGS=$LDFLAGS
30372 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30373 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30374 # check for ICE first), but we must link in the order -lSM -lICE or
30375 # we get undefined symbols. So assume we have SM if we have ICE.
30376 # These have to be linked with before -lX11, unlike the other
30377 # libraries we check for below, so use a different variable.
30378 # John Interrante, Karl Berry
30379 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30380 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30381 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30382 echo $ECHO_N "(cached) $ECHO_C" >&6
30384 ac_check_lib_save_LIBS=$LIBS
30385 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30386 cat >conftest.$ac_ext <<_ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h. */
30393 /* Override any GCC internal prototype to avoid an error.
30394 Use char because int might match the return type of a GCC
30395 builtin and then its argument prototype would still apply. */
30399 char IceConnectionNumber ();
30403 return IceConnectionNumber ();
30408 rm -f conftest.$ac_objext conftest$ac_exeext
30409 if { (ac_try="$ac_link"
30410 case "(($ac_try" in
30411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412 *) ac_try_echo=$ac_try;;
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415 (eval "$ac_link") 2>conftest.er1
30417 grep -v '^ *+' conftest.er1 >conftest.err
30419 cat conftest.err >&5
30420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); } && {
30422 test -z "$ac_c_werror_flag" ||
30423 test ! -s conftest.err
30424 } && test -s conftest$ac_exeext &&
30425 $as_test_x conftest$ac_exeext; then
30426 ac_cv_lib_ICE_IceConnectionNumber=yes
30428 echo "$as_me: failed program was:" >&5
30429 sed 's/^/| /' conftest.$ac_ext >&5
30431 ac_cv_lib_ICE_IceConnectionNumber=no
30434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30435 conftest$ac_exeext conftest.$ac_ext
30436 LIBS=$ac_check_lib_save_LIBS
30438 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30439 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30440 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30441 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30444 LDFLAGS=$ac_save_LDFLAGS
30512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30517 echo $ECHO_N "(cached) $ECHO_C" >&6
30519 ac_res=`eval echo '${'$as_ac_Header'}'`
30520 { echo "$as_me:$LINENO: result: $ac_res" >&5
30521 echo "${ECHO_T}$ac_res" >&6; }
30523 # Is the header compilable?
30524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30526 cat >conftest.$ac_ext <<_ACEOF
30529 cat confdefs.h >>conftest.$ac_ext
30530 cat >>conftest.$ac_ext <<_ACEOF
30531 /* end confdefs.h. */
30532 $ac_includes_default
30533 #include <$ac_header>
30535 rm -f conftest.$ac_objext
30536 if { (ac_try="$ac_compile"
30537 case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_compile") 2>conftest.er1
30544 grep -v '^ *+' conftest.er1 >conftest.err
30546 cat conftest.err >&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); } && {
30549 test -z "$ac_c_werror_flag" ||
30550 test ! -s conftest.err
30551 } && test -s conftest.$ac_objext; then
30552 ac_header_compiler=yes
30554 echo "$as_me: failed program was:" >&5
30555 sed 's/^/| /' conftest.$ac_ext >&5
30557 ac_header_compiler=no
30560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30562 echo "${ECHO_T}$ac_header_compiler" >&6; }
30564 # Is the header present?
30565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30567 cat >conftest.$ac_ext <<_ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h. */
30573 #include <$ac_header>
30575 if { (ac_try="$ac_cpp conftest.$ac_ext"
30576 case "(($ac_try" in
30577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578 *) ac_try_echo=$ac_try;;
30580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30583 grep -v '^ *+' conftest.er1 >conftest.err
30585 cat conftest.err >&5
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); } >/dev/null && {
30588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30589 test ! -s conftest.err
30591 ac_header_preproc=yes
30593 echo "$as_me: failed program was:" >&5
30594 sed 's/^/| /' conftest.$ac_ext >&5
30596 ac_header_preproc=no
30599 rm -f conftest.err conftest.$ac_ext
30600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30601 echo "${ECHO_T}$ac_header_preproc" >&6; }
30603 # So? What about this header?
30604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30610 ac_header_preproc=yes
30613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30631 echo $ECHO_N "(cached) $ECHO_C" >&6
30633 eval "$as_ac_Header=\$ac_header_preproc"
30635 ac_res=`eval echo '${'$as_ac_Header'}'`
30636 { echo "$as_me:$LINENO: result: $ac_res" >&5
30637 echo "${ECHO_T}$ac_res" >&6; }
30640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30641 cat >>confdefs.h <<_ACEOF
30642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30649 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30650 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30651 if test "${ac_cv_header_stdc+set}" = set; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30654 cat >conftest.$ac_ext <<_ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h. */
30660 #include <stdlib.h>
30661 #include <stdarg.h>
30662 #include <string.h>
30673 rm -f conftest.$ac_objext
30674 if { (ac_try="$ac_compile"
30675 case "(($ac_try" in
30676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30677 *) ac_try_echo=$ac_try;;
30679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30680 (eval "$ac_compile") 2>conftest.er1
30682 grep -v '^ *+' conftest.er1 >conftest.err
30684 cat conftest.err >&5
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); } && {
30687 test -z "$ac_c_werror_flag" ||
30688 test ! -s conftest.err
30689 } && test -s conftest.$ac_objext; then
30690 ac_cv_header_stdc=yes
30692 echo "$as_me: failed program was:" >&5
30693 sed 's/^/| /' conftest.$ac_ext >&5
30695 ac_cv_header_stdc=no
30698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30700 if test $ac_cv_header_stdc = yes; then
30701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30702 cat >conftest.$ac_ext <<_ACEOF
30705 cat confdefs.h >>conftest.$ac_ext
30706 cat >>conftest.$ac_ext <<_ACEOF
30707 /* end confdefs.h. */
30708 #include <string.h>
30711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30712 $EGREP "memchr" >/dev/null 2>&1; then
30715 ac_cv_header_stdc=no
30721 if test $ac_cv_header_stdc = yes; then
30722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30723 cat >conftest.$ac_ext <<_ACEOF
30726 cat confdefs.h >>conftest.$ac_ext
30727 cat >>conftest.$ac_ext <<_ACEOF
30728 /* end confdefs.h. */
30729 #include <stdlib.h>
30732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30733 $EGREP "free" >/dev/null 2>&1; then
30736 ac_cv_header_stdc=no
30742 if test $ac_cv_header_stdc = yes; then
30743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30744 if test "$cross_compiling" = yes; then
30747 cat >conftest.$ac_ext <<_ACEOF
30750 cat confdefs.h >>conftest.$ac_ext
30751 cat >>conftest.$ac_ext <<_ACEOF
30752 /* end confdefs.h. */
30754 #include <stdlib.h>
30755 #if ((' ' & 0x0FF) == 0x020)
30756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30759 # define ISLOWER(c) \
30760 (('a' <= (c) && (c) <= 'i') \
30761 || ('j' <= (c) && (c) <= 'r') \
30762 || ('s' <= (c) && (c) <= 'z'))
30763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30771 for (i = 0; i < 256; i++)
30772 if (XOR (islower (i), ISLOWER (i))
30773 || toupper (i) != TOUPPER (i))
30778 rm -f conftest$ac_exeext
30779 if { (ac_try="$ac_link"
30780 case "(($ac_try" in
30781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782 *) ac_try_echo=$ac_try;;
30784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785 (eval "$ac_link") 2>&5
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30789 { (case "(($ac_try" in
30790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30791 *) ac_try_echo=$ac_try;;
30793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30794 (eval "$ac_try") 2>&5
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); }; }; then
30800 echo "$as_me: program exited with status $ac_status" >&5
30801 echo "$as_me: failed program was:" >&5
30802 sed 's/^/| /' conftest.$ac_ext >&5
30804 ( exit $ac_status )
30805 ac_cv_header_stdc=no
30807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30813 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30814 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30815 if test $ac_cv_header_stdc = yes; then
30817 cat >>confdefs.h <<\_ACEOF
30818 #define STDC_HEADERS 1
30823 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30824 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30825 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30826 echo $ECHO_N "(cached) $ECHO_C" >&6
30828 cat >conftest.$ac_ext <<_ACEOF
30831 cat confdefs.h >>conftest.$ac_ext
30832 cat >>conftest.$ac_ext <<_ACEOF
30833 /* end confdefs.h. */
30834 #include <sys/types.h>
30838 return makedev(0, 0);
30843 rm -f conftest.$ac_objext conftest$ac_exeext
30844 if { (ac_try="$ac_link"
30845 case "(($ac_try" in
30846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847 *) ac_try_echo=$ac_try;;
30849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850 (eval "$ac_link") 2>conftest.er1
30852 grep -v '^ *+' conftest.er1 >conftest.err
30854 cat conftest.err >&5
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); } && {
30857 test -z "$ac_c_werror_flag" ||
30858 test ! -s conftest.err
30859 } && test -s conftest$ac_exeext &&
30860 $as_test_x conftest$ac_exeext; then
30861 ac_cv_header_sys_types_h_makedev=yes
30863 echo "$as_me: failed program was:" >&5
30864 sed 's/^/| /' conftest.$ac_ext >&5
30866 ac_cv_header_sys_types_h_makedev=no
30869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30870 conftest$ac_exeext conftest.$ac_ext
30873 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30874 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30876 if test $ac_cv_header_sys_types_h_makedev = no; then
30877 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30878 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30879 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30880 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30881 echo $ECHO_N "(cached) $ECHO_C" >&6
30883 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30884 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30886 # Is the header compilable?
30887 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30888 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30889 cat >conftest.$ac_ext <<_ACEOF
30892 cat confdefs.h >>conftest.$ac_ext
30893 cat >>conftest.$ac_ext <<_ACEOF
30894 /* end confdefs.h. */
30895 $ac_includes_default
30896 #include <sys/mkdev.h>
30898 rm -f conftest.$ac_objext
30899 if { (ac_try="$ac_compile"
30900 case "(($ac_try" in
30901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30902 *) ac_try_echo=$ac_try;;
30904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30905 (eval "$ac_compile") 2>conftest.er1
30907 grep -v '^ *+' conftest.er1 >conftest.err
30909 cat conftest.err >&5
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); } && {
30912 test -z "$ac_c_werror_flag" ||
30913 test ! -s conftest.err
30914 } && test -s conftest.$ac_objext; then
30915 ac_header_compiler=yes
30917 echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.$ac_ext >&5
30920 ac_header_compiler=no
30923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30925 echo "${ECHO_T}$ac_header_compiler" >&6; }
30927 # Is the header present?
30928 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30929 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30930 cat >conftest.$ac_ext <<_ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h. */
30936 #include <sys/mkdev.h>
30938 if { (ac_try="$ac_cpp conftest.$ac_ext"
30939 case "(($ac_try" in
30940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30941 *) ac_try_echo=$ac_try;;
30943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30946 grep -v '^ *+' conftest.er1 >conftest.err
30948 cat conftest.err >&5
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); } >/dev/null && {
30951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30952 test ! -s conftest.err
30954 ac_header_preproc=yes
30956 echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30959 ac_header_preproc=no
30962 rm -f conftest.err conftest.$ac_ext
30963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30964 echo "${ECHO_T}$ac_header_preproc" >&6; }
30966 # So? What about this header?
30967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30969 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30970 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30971 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30972 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30973 ac_header_preproc=yes
30976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
30979 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
30980 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30981 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30982 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
30983 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30984 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30985 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30986 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30987 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30991 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30992 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30993 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30994 echo $ECHO_N "(cached) $ECHO_C" >&6
30996 ac_cv_header_sys_mkdev_h=$ac_header_preproc
30998 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30999 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31002 if test $ac_cv_header_sys_mkdev_h = yes; then
31004 cat >>confdefs.h <<\_ACEOF
31005 #define MAJOR_IN_MKDEV 1
31012 if test $ac_cv_header_sys_mkdev_h = no; then
31013 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31014 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31015 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31016 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31017 echo $ECHO_N "(cached) $ECHO_C" >&6
31019 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31020 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31022 # Is the header compilable?
31023 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31024 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31025 cat >conftest.$ac_ext <<_ACEOF
31028 cat confdefs.h >>conftest.$ac_ext
31029 cat >>conftest.$ac_ext <<_ACEOF
31030 /* end confdefs.h. */
31031 $ac_includes_default
31032 #include <sys/sysmacros.h>
31034 rm -f conftest.$ac_objext
31035 if { (ac_try="$ac_compile"
31036 case "(($ac_try" in
31037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038 *) ac_try_echo=$ac_try;;
31040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041 (eval "$ac_compile") 2>conftest.er1
31043 grep -v '^ *+' conftest.er1 >conftest.err
31045 cat conftest.err >&5
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); } && {
31048 test -z "$ac_c_werror_flag" ||
31049 test ! -s conftest.err
31050 } && test -s conftest.$ac_objext; then
31051 ac_header_compiler=yes
31053 echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31056 ac_header_compiler=no
31059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31061 echo "${ECHO_T}$ac_header_compiler" >&6; }
31063 # Is the header present?
31064 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31065 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31066 cat >conftest.$ac_ext <<_ACEOF
31069 cat confdefs.h >>conftest.$ac_ext
31070 cat >>conftest.$ac_ext <<_ACEOF
31071 /* end confdefs.h. */
31072 #include <sys/sysmacros.h>
31074 if { (ac_try="$ac_cpp conftest.$ac_ext"
31075 case "(($ac_try" in
31076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31077 *) ac_try_echo=$ac_try;;
31079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31082 grep -v '^ *+' conftest.er1 >conftest.err
31084 cat conftest.err >&5
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); } >/dev/null && {
31087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31088 test ! -s conftest.err
31090 ac_header_preproc=yes
31092 echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31095 ac_header_preproc=no
31098 rm -f conftest.err conftest.$ac_ext
31099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31100 echo "${ECHO_T}$ac_header_preproc" >&6; }
31102 # So? What about this header?
31103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31105 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31106 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31107 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31108 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31109 ac_header_preproc=yes
31112 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31114 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31115 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31116 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31117 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31118 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31119 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31120 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31121 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31122 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31123 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31127 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31128 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31129 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31130 echo $ECHO_N "(cached) $ECHO_C" >&6
31132 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31134 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31135 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31138 if test $ac_cv_header_sys_sysmacros_h = yes; then
31140 cat >>confdefs.h <<\_ACEOF
31141 #define MAJOR_IN_SYSMACROS 1
31155 ac_header_dirent=no
31156 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31157 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31158 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31159 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31163 cat >conftest.$ac_ext <<_ACEOF
31166 cat confdefs.h >>conftest.$ac_ext
31167 cat >>conftest.$ac_ext <<_ACEOF
31168 /* end confdefs.h. */
31169 #include <sys/types.h>
31181 rm -f conftest.$ac_objext
31182 if { (ac_try="$ac_compile"
31183 case "(($ac_try" in
31184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31185 *) ac_try_echo=$ac_try;;
31187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31188 (eval "$ac_compile") 2>conftest.er1
31190 grep -v '^ *+' conftest.er1 >conftest.err
31192 cat conftest.err >&5
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); } && {
31195 test -z "$ac_c_werror_flag" ||
31196 test ! -s conftest.err
31197 } && test -s conftest.$ac_objext; then
31198 eval "$as_ac_Header=yes"
31200 echo "$as_me: failed program was:" >&5
31201 sed 's/^/| /' conftest.$ac_ext >&5
31203 eval "$as_ac_Header=no"
31206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31208 ac_res=`eval echo '${'$as_ac_Header'}'`
31209 { echo "$as_me:$LINENO: result: $ac_res" >&5
31210 echo "${ECHO_T}$ac_res" >&6; }
31211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31212 cat >>confdefs.h <<_ACEOF
31213 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31216 ac_header_dirent=$ac_hdr; break
31220 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31221 if test $ac_header_dirent = dirent.h; then
31222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31224 if test "${ac_cv_search_opendir+set}" = set; then
31225 echo $ECHO_N "(cached) $ECHO_C" >&6
31227 ac_func_search_save_LIBS=$LIBS
31228 cat >conftest.$ac_ext <<_ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h. */
31235 /* Override any GCC internal prototype to avoid an error.
31236 Use char because int might match the return type of a GCC
31237 builtin and then its argument prototype would still apply. */
31250 for ac_lib in '' dir; do
31251 if test -z "$ac_lib"; then
31252 ac_res="none required"
31255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31257 rm -f conftest.$ac_objext conftest$ac_exeext
31258 if { (ac_try="$ac_link"
31259 case "(($ac_try" in
31260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31261 *) ac_try_echo=$ac_try;;
31263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31264 (eval "$ac_link") 2>conftest.er1
31266 grep -v '^ *+' conftest.er1 >conftest.err
31268 cat conftest.err >&5
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); } && {
31271 test -z "$ac_c_werror_flag" ||
31272 test ! -s conftest.err
31273 } && test -s conftest$ac_exeext &&
31274 $as_test_x conftest$ac_exeext; then
31275 ac_cv_search_opendir=$ac_res
31277 echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31285 if test "${ac_cv_search_opendir+set}" = set; then
31289 if test "${ac_cv_search_opendir+set}" = set; then
31292 ac_cv_search_opendir=no
31294 rm conftest.$ac_ext
31295 LIBS=$ac_func_search_save_LIBS
31297 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31298 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31299 ac_res=$ac_cv_search_opendir
31300 if test "$ac_res" != no; then
31301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31306 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31307 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31308 if test "${ac_cv_search_opendir+set}" = set; then
31309 echo $ECHO_N "(cached) $ECHO_C" >&6
31311 ac_func_search_save_LIBS=$LIBS
31312 cat >conftest.$ac_ext <<_ACEOF
31315 cat confdefs.h >>conftest.$ac_ext
31316 cat >>conftest.$ac_ext <<_ACEOF
31317 /* end confdefs.h. */
31319 /* Override any GCC internal prototype to avoid an error.
31320 Use char because int might match the return type of a GCC
31321 builtin and then its argument prototype would still apply. */
31334 for ac_lib in '' x; do
31335 if test -z "$ac_lib"; then
31336 ac_res="none required"
31339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31341 rm -f conftest.$ac_objext conftest$ac_exeext
31342 if { (ac_try="$ac_link"
31343 case "(($ac_try" in
31344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345 *) ac_try_echo=$ac_try;;
31347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348 (eval "$ac_link") 2>conftest.er1
31350 grep -v '^ *+' conftest.er1 >conftest.err
31352 cat conftest.err >&5
31353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); } && {
31355 test -z "$ac_c_werror_flag" ||
31356 test ! -s conftest.err
31357 } && test -s conftest$ac_exeext &&
31358 $as_test_x conftest$ac_exeext; then
31359 ac_cv_search_opendir=$ac_res
31361 echo "$as_me: failed program was:" >&5
31362 sed 's/^/| /' conftest.$ac_ext >&5
31367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31369 if test "${ac_cv_search_opendir+set}" = set; then
31373 if test "${ac_cv_search_opendir+set}" = set; then
31376 ac_cv_search_opendir=no
31378 rm conftest.$ac_ext
31379 LIBS=$ac_func_search_save_LIBS
31381 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31382 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31383 ac_res=$ac_cv_search_opendir
31384 if test "$ac_res" != no; then
31385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31391 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31392 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31393 if test "${ac_cv_header_stat_broken+set}" = set; then
31394 echo $ECHO_N "(cached) $ECHO_C" >&6
31396 cat >conftest.$ac_ext <<_ACEOF
31399 cat confdefs.h >>conftest.$ac_ext
31400 cat >>conftest.$ac_ext <<_ACEOF
31401 /* end confdefs.h. */
31402 #include <sys/types.h>
31403 #include <sys/stat.h>
31405 #if defined S_ISBLK && defined S_IFDIR
31406 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31409 #if defined S_ISBLK && defined S_IFCHR
31410 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31413 #if defined S_ISLNK && defined S_IFREG
31414 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31417 #if defined S_ISSOCK && defined S_IFREG
31418 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31422 rm -f conftest.$ac_objext
31423 if { (ac_try="$ac_compile"
31424 case "(($ac_try" in
31425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426 *) ac_try_echo=$ac_try;;
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_compile") 2>conftest.er1
31431 grep -v '^ *+' conftest.er1 >conftest.err
31433 cat conftest.err >&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } && {
31436 test -z "$ac_c_werror_flag" ||
31437 test ! -s conftest.err
31438 } && test -s conftest.$ac_objext; then
31439 ac_cv_header_stat_broken=no
31441 echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31444 ac_cv_header_stat_broken=yes
31447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31449 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31450 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31451 if test $ac_cv_header_stat_broken = yes; then
31453 cat >>confdefs.h <<\_ACEOF
31454 #define STAT_MACROS_BROKEN 1
31459 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31460 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31461 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31462 echo $ECHO_N "(cached) $ECHO_C" >&6
31464 cat >conftest.$ac_ext <<_ACEOF
31467 cat confdefs.h >>conftest.$ac_ext
31468 cat >>conftest.$ac_ext <<_ACEOF
31469 /* end confdefs.h. */
31470 #include <sys/types.h>
31471 #include <sys/wait.h>
31472 #ifndef WEXITSTATUS
31473 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31476 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31484 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31489 rm -f conftest.$ac_objext
31490 if { (ac_try="$ac_compile"
31491 case "(($ac_try" in
31492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31493 *) ac_try_echo=$ac_try;;
31495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31496 (eval "$ac_compile") 2>conftest.er1
31498 grep -v '^ *+' conftest.er1 >conftest.err
31500 cat conftest.err >&5
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); } && {
31503 test -z "$ac_c_werror_flag" ||
31504 test ! -s conftest.err
31505 } && test -s conftest.$ac_objext; then
31506 ac_cv_header_sys_wait_h=yes
31508 echo "$as_me: failed program was:" >&5
31509 sed 's/^/| /' conftest.$ac_ext >&5
31511 ac_cv_header_sys_wait_h=no
31514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31516 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31517 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31518 if test $ac_cv_header_sys_wait_h = yes; then
31520 cat >>confdefs.h <<\_ACEOF
31521 #define HAVE_SYS_WAIT_H 1
31526 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31527 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31528 if test "${ac_cv_header_time+set}" = set; then
31529 echo $ECHO_N "(cached) $ECHO_C" >&6
31531 cat >conftest.$ac_ext <<_ACEOF
31534 cat confdefs.h >>conftest.$ac_ext
31535 cat >>conftest.$ac_ext <<_ACEOF
31536 /* end confdefs.h. */
31537 #include <sys/types.h>
31538 #include <sys/time.h>
31544 if ((struct tm *) 0)
31550 rm -f conftest.$ac_objext
31551 if { (ac_try="$ac_compile"
31552 case "(($ac_try" in
31553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554 *) ac_try_echo=$ac_try;;
31556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557 (eval "$ac_compile") 2>conftest.er1
31559 grep -v '^ *+' conftest.er1 >conftest.err
31561 cat conftest.err >&5
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); } && {
31564 test -z "$ac_c_werror_flag" ||
31565 test ! -s conftest.err
31566 } && test -s conftest.$ac_objext; then
31567 ac_cv_header_time=yes
31569 echo "$as_me: failed program was:" >&5
31570 sed 's/^/| /' conftest.$ac_ext >&5
31572 ac_cv_header_time=no
31575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31578 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31579 if test $ac_cv_header_time = yes; then
31581 cat >>confdefs.h <<\_ACEOF
31582 #define TIME_WITH_SYS_TIME 1
31587 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31588 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31589 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31590 echo $ECHO_N "(cached) $ECHO_C" >&6
31592 cat >conftest.$ac_ext <<_ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h. */
31598 $ac_includes_default
31602 static struct stat ac_aggr;
31603 if (ac_aggr.st_blksize)
31609 rm -f conftest.$ac_objext
31610 if { (ac_try="$ac_compile"
31611 case "(($ac_try" in
31612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613 *) ac_try_echo=$ac_try;;
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616 (eval "$ac_compile") 2>conftest.er1
31618 grep -v '^ *+' conftest.er1 >conftest.err
31620 cat conftest.err >&5
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); } && {
31623 test -z "$ac_c_werror_flag" ||
31624 test ! -s conftest.err
31625 } && test -s conftest.$ac_objext; then
31626 ac_cv_member_struct_stat_st_blksize=yes
31628 echo "$as_me: failed program was:" >&5
31629 sed 's/^/| /' conftest.$ac_ext >&5
31631 cat >conftest.$ac_ext <<_ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h. */
31637 $ac_includes_default
31641 static struct stat ac_aggr;
31642 if (sizeof ac_aggr.st_blksize)
31648 rm -f conftest.$ac_objext
31649 if { (ac_try="$ac_compile"
31650 case "(($ac_try" in
31651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31652 *) ac_try_echo=$ac_try;;
31654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31655 (eval "$ac_compile") 2>conftest.er1
31657 grep -v '^ *+' conftest.er1 >conftest.err
31659 cat conftest.err >&5
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); } && {
31662 test -z "$ac_c_werror_flag" ||
31663 test ! -s conftest.err
31664 } && test -s conftest.$ac_objext; then
31665 ac_cv_member_struct_stat_st_blksize=yes
31667 echo "$as_me: failed program was:" >&5
31668 sed 's/^/| /' conftest.$ac_ext >&5
31670 ac_cv_member_struct_stat_st_blksize=no
31673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31678 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31679 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31680 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31682 cat >>confdefs.h <<_ACEOF
31683 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31687 cat >>confdefs.h <<\_ACEOF
31688 #define HAVE_ST_BLKSIZE 1
31694 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31695 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31696 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31697 echo $ECHO_N "(cached) $ECHO_C" >&6
31699 cat >conftest.$ac_ext <<_ACEOF
31702 cat confdefs.h >>conftest.$ac_ext
31703 cat >>conftest.$ac_ext <<_ACEOF
31704 /* end confdefs.h. */
31705 $ac_includes_default
31709 static struct stat ac_aggr;
31710 if (ac_aggr.st_blocks)
31716 rm -f conftest.$ac_objext
31717 if { (ac_try="$ac_compile"
31718 case "(($ac_try" in
31719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31720 *) ac_try_echo=$ac_try;;
31722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31723 (eval "$ac_compile") 2>conftest.er1
31725 grep -v '^ *+' conftest.er1 >conftest.err
31727 cat conftest.err >&5
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); } && {
31730 test -z "$ac_c_werror_flag" ||
31731 test ! -s conftest.err
31732 } && test -s conftest.$ac_objext; then
31733 ac_cv_member_struct_stat_st_blocks=yes
31735 echo "$as_me: failed program was:" >&5
31736 sed 's/^/| /' conftest.$ac_ext >&5
31738 cat >conftest.$ac_ext <<_ACEOF
31741 cat confdefs.h >>conftest.$ac_ext
31742 cat >>conftest.$ac_ext <<_ACEOF
31743 /* end confdefs.h. */
31744 $ac_includes_default
31748 static struct stat ac_aggr;
31749 if (sizeof ac_aggr.st_blocks)
31755 rm -f conftest.$ac_objext
31756 if { (ac_try="$ac_compile"
31757 case "(($ac_try" in
31758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31759 *) ac_try_echo=$ac_try;;
31761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31762 (eval "$ac_compile") 2>conftest.er1
31764 grep -v '^ *+' conftest.er1 >conftest.err
31766 cat conftest.err >&5
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); } && {
31769 test -z "$ac_c_werror_flag" ||
31770 test ! -s conftest.err
31771 } && test -s conftest.$ac_objext; then
31772 ac_cv_member_struct_stat_st_blocks=yes
31774 echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31777 ac_cv_member_struct_stat_st_blocks=no
31780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31785 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31786 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31787 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31789 cat >>confdefs.h <<_ACEOF
31790 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31794 cat >>confdefs.h <<\_ACEOF
31795 #define HAVE_ST_BLOCKS 1
31799 case " $LIBOBJS " in
31800 *" fileblocks.$ac_objext "* ) ;;
31801 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31808 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31809 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31810 if test "${ac_cv_struct_tm+set}" = set; then
31811 echo $ECHO_N "(cached) $ECHO_C" >&6
31813 cat >conftest.$ac_ext <<_ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h. */
31819 #include <sys/types.h>
31826 int *p = &tm.tm_sec;
31832 rm -f conftest.$ac_objext
31833 if { (ac_try="$ac_compile"
31834 case "(($ac_try" in
31835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_compile") 2>conftest.er1
31841 grep -v '^ *+' conftest.er1 >conftest.err
31843 cat conftest.err >&5
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); } && {
31846 test -z "$ac_c_werror_flag" ||
31847 test ! -s conftest.err
31848 } && test -s conftest.$ac_objext; then
31849 ac_cv_struct_tm=time.h
31851 echo "$as_me: failed program was:" >&5
31852 sed 's/^/| /' conftest.$ac_ext >&5
31854 ac_cv_struct_tm=sys/time.h
31857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31859 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31860 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31861 if test $ac_cv_struct_tm = sys/time.h; then
31863 cat >>confdefs.h <<\_ACEOF
31864 #define TM_IN_SYS_TIME 1
31869 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31870 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31871 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31872 echo $ECHO_N "(cached) $ECHO_C" >&6
31874 cat >conftest.$ac_ext <<_ACEOF
31877 cat confdefs.h >>conftest.$ac_ext
31878 cat >>conftest.$ac_ext <<_ACEOF
31879 /* end confdefs.h. */
31880 #include <sys/types.h>
31881 #include <$ac_cv_struct_tm>
31887 static struct tm ac_aggr;
31888 if (ac_aggr.tm_zone)
31894 rm -f conftest.$ac_objext
31895 if { (ac_try="$ac_compile"
31896 case "(($ac_try" in
31897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898 *) ac_try_echo=$ac_try;;
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901 (eval "$ac_compile") 2>conftest.er1
31903 grep -v '^ *+' conftest.er1 >conftest.err
31905 cat conftest.err >&5
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); } && {
31908 test -z "$ac_c_werror_flag" ||
31909 test ! -s conftest.err
31910 } && test -s conftest.$ac_objext; then
31911 ac_cv_member_struct_tm_tm_zone=yes
31913 echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31916 cat >conftest.$ac_ext <<_ACEOF
31919 cat confdefs.h >>conftest.$ac_ext
31920 cat >>conftest.$ac_ext <<_ACEOF
31921 /* end confdefs.h. */
31922 #include <sys/types.h>
31923 #include <$ac_cv_struct_tm>
31929 static struct tm ac_aggr;
31930 if (sizeof ac_aggr.tm_zone)
31936 rm -f conftest.$ac_objext
31937 if { (ac_try="$ac_compile"
31938 case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_compile") 2>conftest.er1
31945 grep -v '^ *+' conftest.er1 >conftest.err
31947 cat conftest.err >&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); } && {
31950 test -z "$ac_c_werror_flag" ||
31951 test ! -s conftest.err
31952 } && test -s conftest.$ac_objext; then
31953 ac_cv_member_struct_tm_tm_zone=yes
31955 echo "$as_me: failed program was:" >&5
31956 sed 's/^/| /' conftest.$ac_ext >&5
31958 ac_cv_member_struct_tm_tm_zone=no
31961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31966 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31967 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31968 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31970 cat >>confdefs.h <<_ACEOF
31971 #define HAVE_STRUCT_TM_TM_ZONE 1
31977 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31979 cat >>confdefs.h <<\_ACEOF
31980 #define HAVE_TM_ZONE 1
31984 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31985 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31986 if test "${ac_cv_have_decl_tzname+set}" = set; then
31987 echo $ECHO_N "(cached) $ECHO_C" >&6
31989 cat >conftest.$ac_ext <<_ACEOF
31992 cat confdefs.h >>conftest.$ac_ext
31993 cat >>conftest.$ac_ext <<_ACEOF
31994 /* end confdefs.h. */
32008 rm -f conftest.$ac_objext
32009 if { (ac_try="$ac_compile"
32010 case "(($ac_try" in
32011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32012 *) ac_try_echo=$ac_try;;
32014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32015 (eval "$ac_compile") 2>conftest.er1
32017 grep -v '^ *+' conftest.er1 >conftest.err
32019 cat conftest.err >&5
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); } && {
32022 test -z "$ac_c_werror_flag" ||
32023 test ! -s conftest.err
32024 } && test -s conftest.$ac_objext; then
32025 ac_cv_have_decl_tzname=yes
32027 echo "$as_me: failed program was:" >&5
32028 sed 's/^/| /' conftest.$ac_ext >&5
32030 ac_cv_have_decl_tzname=no
32033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32035 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32036 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32037 if test $ac_cv_have_decl_tzname = yes; then
32039 cat >>confdefs.h <<_ACEOF
32040 #define HAVE_DECL_TZNAME 1
32045 cat >>confdefs.h <<_ACEOF
32046 #define HAVE_DECL_TZNAME 0
32053 { echo "$as_me:$LINENO: checking for tzname" >&5
32054 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32055 if test "${ac_cv_var_tzname+set}" = set; then
32056 echo $ECHO_N "(cached) $ECHO_C" >&6
32058 cat >conftest.$ac_ext <<_ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h. */
32065 #if !HAVE_DECL_TZNAME
32066 extern char *tzname[];
32072 return tzname[0][0];
32077 rm -f conftest.$ac_objext conftest$ac_exeext
32078 if { (ac_try="$ac_link"
32079 case "(($ac_try" in
32080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081 *) ac_try_echo=$ac_try;;
32083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084 (eval "$ac_link") 2>conftest.er1
32086 grep -v '^ *+' conftest.er1 >conftest.err
32088 cat conftest.err >&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); } && {
32091 test -z "$ac_c_werror_flag" ||
32092 test ! -s conftest.err
32093 } && test -s conftest$ac_exeext &&
32094 $as_test_x conftest$ac_exeext; then
32095 ac_cv_var_tzname=yes
32097 echo "$as_me: failed program was:" >&5
32098 sed 's/^/| /' conftest.$ac_ext >&5
32100 ac_cv_var_tzname=no
32103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32104 conftest$ac_exeext conftest.$ac_ext
32106 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32107 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32108 if test $ac_cv_var_tzname = yes; then
32110 cat >>confdefs.h <<\_ACEOF
32111 #define HAVE_TZNAME 1
32118 { echo "$as_me:$LINENO: checking for utime.h" >&5
32119 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32120 if test "${ba_cv_header_utime_h+set}" = set; then
32121 echo $ECHO_N "(cached) $ECHO_C" >&6
32124 cat >conftest.$ac_ext <<_ACEOF
32127 cat confdefs.h >>conftest.$ac_ext
32128 cat >>conftest.$ac_ext <<_ACEOF
32129 /* end confdefs.h. */
32131 #include <sys/types.h>
32144 rm -f conftest.$ac_objext
32145 if { (ac_try="$ac_compile"
32146 case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151 (eval "$ac_compile") 2>conftest.er1
32153 grep -v '^ *+' conftest.er1 >conftest.err
32155 cat conftest.err >&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } && {
32158 test -z "$ac_c_werror_flag" ||
32159 test ! -s conftest.err
32160 } && test -s conftest.$ac_objext; then
32162 ba_cv_header_utime_h=yes
32165 echo "$as_me: failed program was:" >&5
32166 sed 's/^/| /' conftest.$ac_ext >&5
32169 ba_cv_header_utime_h=no
32174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32179 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32180 test $ba_cv_header_utime_h = yes &&
32181 cat >>confdefs.h <<\_ACEOF
32182 #define HAVE_UTIME_H 1
32186 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32187 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32188 if test "${ba_cv_header_socklen_t+set}" = set; then
32189 echo $ECHO_N "(cached) $ECHO_C" >&6
32192 cat >conftest.$ac_ext <<_ACEOF
32195 cat confdefs.h >>conftest.$ac_ext
32196 cat >>conftest.$ac_ext <<_ACEOF
32197 /* end confdefs.h. */
32199 #include <sys/types.h>
32200 #include <sys/socket.h>
32212 rm -f conftest.$ac_objext
32213 if { (ac_try="$ac_compile"
32214 case "(($ac_try" in
32215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216 *) ac_try_echo=$ac_try;;
32218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219 (eval "$ac_compile") 2>conftest.er1
32221 grep -v '^ *+' conftest.er1 >conftest.err
32223 cat conftest.err >&5
32224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225 (exit $ac_status); } && {
32226 test -z "$ac_c_werror_flag" ||
32227 test ! -s conftest.err
32228 } && test -s conftest.$ac_objext; then
32230 ba_cv_header_socklen_t=yes
32233 echo "$as_me: failed program was:" >&5
32234 sed 's/^/| /' conftest.$ac_ext >&5
32237 ba_cv_header_socklen_t=no
32242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32246 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32247 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32248 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_SOCKLEN_T 1
32253 { echo "$as_me:$LINENO: checking for bigendian" >&5
32254 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32255 if test "${ba_cv_bigendian+set}" = set; then
32256 echo $ECHO_N "(cached) $ECHO_C" >&6
32259 if test "$cross_compiling" = yes; then
32265 cat >conftest.$ac_ext <<_ACEOF
32268 cat confdefs.h >>conftest.$ac_ext
32269 cat >>conftest.$ac_ext <<_ACEOF
32270 /* end confdefs.h. */
32272 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32275 rm -f conftest$ac_exeext
32276 if { (ac_try="$ac_link"
32277 case "(($ac_try" in
32278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279 *) ac_try_echo=$ac_try;;
32281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32282 (eval "$ac_link") 2>&5
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32286 { (case "(($ac_try" in
32287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288 *) ac_try_echo=$ac_try;;
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291 (eval "$ac_try") 2>&5
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; }; then
32296 ba_cv_bigendian=yes
32299 echo "$as_me: program exited with status $ac_status" >&5
32300 echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32303 ( exit $ac_status )
32308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32315 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32316 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32317 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32318 #define HAVE_BIGENDIAN 1
32323 ac_cpp='$CXXCPP $CPPFLAGS'
32324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32328 { echo "$as_me:$LINENO: checking for typeof" >&5
32329 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32330 if test "${ba_cv_have_typeof+set}" = set; then
32331 echo $ECHO_N "(cached) $ECHO_C" >&6
32334 if test "$cross_compiling" = yes; then
32336 ba_cv_have_typeof=no
32340 cat >conftest.$ac_ext <<_ACEOF
32343 cat confdefs.h >>conftest.$ac_ext
32344 cat >>conftest.$ac_ext <<_ACEOF
32345 /* end confdefs.h. */
32347 main(){char *a = 0; a = (typeof a)a;}
32350 rm -f conftest$ac_exeext
32351 if { (ac_try="$ac_link"
32352 case "(($ac_try" in
32353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32354 *) ac_try_echo=$ac_try;;
32356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32357 (eval "$ac_link") 2>&5
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32361 { (case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_try") 2>&5
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); }; }; then
32371 ba_cv_have_typeof=yes
32374 echo "$as_me: program exited with status $ac_status" >&5
32375 echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32378 ( exit $ac_status )
32380 ba_cv_have_typeof=no
32383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32390 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32391 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32392 test $ba_cv_have_typeof = yes &&
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_TYPEOF 1
32398 ac_cpp='$CPP $CPPFLAGS'
32399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32404 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32405 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32406 if test "${ac_cv_c_const+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32409 cat >conftest.$ac_ext <<_ACEOF
32412 cat confdefs.h >>conftest.$ac_ext
32413 cat >>conftest.$ac_ext <<_ACEOF
32414 /* end confdefs.h. */
32419 /* FIXME: Include the comments suggested by Paul. */
32420 #ifndef __cplusplus
32421 /* Ultrix mips cc rejects this. */
32422 typedef int charset[2];
32424 /* SunOS 4.1.1 cc rejects this. */
32425 char const *const *pcpcc;
32427 /* NEC SVR4.0.2 mips cc rejects this. */
32428 struct point {int x, y;};
32429 static struct point const zero = {0,0};
32430 /* AIX XL C 1.02.0.0 rejects this.
32431 It does not let you subtract one const X* pointer from another in
32432 an arm of an if-expression whose if-part is not a constant
32434 const char *g = "string";
32435 pcpcc = &g + (g ? g-g : 0);
32436 /* HPUX 7.0 cc rejects these. */
32438 ppc = (char**) pcpcc;
32439 pcpcc = (char const *const *) ppc;
32440 { /* SCO 3.2v4 cc rejects this. */
32442 char const *s = 0 ? (char *) 0 : (char const *) 0;
32447 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32448 int x[] = {25, 17};
32449 const int *foo = &x[0];
32452 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32453 typedef const int *iptr;
32457 { /* AIX XL C 1.02.0.0 rejects this saying
32458 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32459 struct s { int j; const int *ap[3]; };
32460 struct s *b; b->j = 5;
32462 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32463 const int foo = 10;
32464 if (!foo) return 0;
32466 return !cs[0] && !zero.x;
32473 rm -f conftest.$ac_objext
32474 if { (ac_try="$ac_compile"
32475 case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480 (eval "$ac_compile") 2>conftest.er1
32482 grep -v '^ *+' conftest.er1 >conftest.err
32484 cat conftest.err >&5
32485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486 (exit $ac_status); } && {
32487 test -z "$ac_c_werror_flag" ||
32488 test ! -s conftest.err
32489 } && test -s conftest.$ac_objext; then
32492 echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32500 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32501 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32502 if test $ac_cv_c_const = no; then
32504 cat >>confdefs.h <<\_ACEOF
32511 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32512 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32514 # The order of these tests is important.
32515 cat >conftest.$ac_ext <<_ACEOF
32518 cat confdefs.h >>conftest.$ac_ext
32519 cat >>conftest.$ac_ext <<_ACEOF
32520 /* end confdefs.h. */
32522 #include <sys/statvfs.h>
32523 #include <sys/fstyp.h>
32526 if { (ac_try="$ac_cpp conftest.$ac_ext"
32527 case "(($ac_try" in
32528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529 *) ac_try_echo=$ac_try;;
32531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32534 grep -v '^ *+' conftest.er1 >conftest.err
32536 cat conftest.err >&5
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); } >/dev/null && {
32539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32540 test ! -s conftest.err
32542 cat >>confdefs.h <<\_ACEOF
32543 #define FSTYPE_STATVFS 1
32548 echo "$as_me: failed program was:" >&5
32549 sed 's/^/| /' conftest.$ac_ext >&5
32554 rm -f conftest.err conftest.$ac_ext
32555 if test $fstype = no; then
32556 cat >conftest.$ac_ext <<_ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h. */
32563 #include <sys/statfs.h>
32564 #include <sys/fstyp.h>
32567 if { (ac_try="$ac_cpp conftest.$ac_ext"
32568 case "(($ac_try" in
32569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32570 *) ac_try_echo=$ac_try;;
32572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32575 grep -v '^ *+' conftest.er1 >conftest.err
32577 cat conftest.err >&5
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); } >/dev/null && {
32580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32581 test ! -s conftest.err
32583 cat >>confdefs.h <<\_ACEOF
32584 #define FSTYPE_USG_STATFS 1
32589 echo "$as_me: failed program was:" >&5
32590 sed 's/^/| /' conftest.$ac_ext >&5
32595 rm -f conftest.err conftest.$ac_ext
32597 if test $fstype = no; then
32598 cat >conftest.$ac_ext <<_ACEOF
32601 cat confdefs.h >>conftest.$ac_ext
32602 cat >>conftest.$ac_ext <<_ACEOF
32603 /* end confdefs.h. */
32605 #include <sys/statfs.h>
32606 #include <sys/vmount.h>
32609 if { (ac_try="$ac_cpp conftest.$ac_ext"
32610 case "(($ac_try" in
32611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612 *) ac_try_echo=$ac_try;;
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32617 grep -v '^ *+' conftest.er1 >conftest.err
32619 cat conftest.err >&5
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); } >/dev/null && {
32622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32623 test ! -s conftest.err
32625 cat >>confdefs.h <<\_ACEOF
32626 #define FSTYPE_AIX_STATFS 1
32631 echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32637 rm -f conftest.err conftest.$ac_ext
32639 if test $fstype = no; then
32640 cat >conftest.$ac_ext <<_ACEOF
32643 cat confdefs.h >>conftest.$ac_ext
32644 cat >>conftest.$ac_ext <<_ACEOF
32645 /* end confdefs.h. */
32647 #include <mntent.h>
32650 if { (ac_try="$ac_cpp conftest.$ac_ext"
32651 case "(($ac_try" in
32652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32653 *) ac_try_echo=$ac_try;;
32655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32658 grep -v '^ *+' conftest.er1 >conftest.err
32660 cat conftest.err >&5
32661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662 (exit $ac_status); } >/dev/null && {
32663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32664 test ! -s conftest.err
32666 cat >>confdefs.h <<\_ACEOF
32667 #define FSTYPE_MNTENT 1
32672 echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32678 rm -f conftest.err conftest.$ac_ext
32680 if test $fstype = no; then
32681 cat >conftest.$ac_ext <<_ACEOF
32684 cat confdefs.h >>conftest.$ac_ext
32685 cat >>conftest.$ac_ext <<_ACEOF
32686 /* end confdefs.h. */
32687 #include <sys/mount.h>
32690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32691 $EGREP "f_type;" >/dev/null 2>&1; then
32692 cat >>confdefs.h <<\_ACEOF
32693 #define FSTYPE_STATFS 1
32700 if test $fstype = no; then
32701 cat >conftest.$ac_ext <<_ACEOF
32704 cat confdefs.h >>conftest.$ac_ext
32705 cat >>conftest.$ac_ext <<_ACEOF
32706 /* end confdefs.h. */
32708 #include <sys/mount.h>
32709 #include <sys/fs_types.h>
32712 if { (ac_try="$ac_cpp conftest.$ac_ext"
32713 case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32720 grep -v '^ *+' conftest.er1 >conftest.err
32722 cat conftest.err >&5
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); } >/dev/null && {
32725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32726 test ! -s conftest.err
32728 cat >>confdefs.h <<\_ACEOF
32729 #define FSTYPE_GETMNT 1
32734 echo "$as_me: failed program was:" >&5
32735 sed 's/^/| /' conftest.$ac_ext >&5
32740 rm -f conftest.err conftest.$ac_ext
32742 { echo "$as_me:$LINENO: result: $fstype" >&5
32743 echo "${ECHO_T}$fstype" >&6; }
32745 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32746 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32747 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32748 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32749 echo $ECHO_N "(cached) $ECHO_C" >&6
32751 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32752 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32754 # Is the header compilable?
32755 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32756 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32757 cat >conftest.$ac_ext <<_ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h. */
32763 $ac_includes_default
32764 #include <sys/statvfs.h>
32766 rm -f conftest.$ac_objext
32767 if { (ac_try="$ac_compile"
32768 case "(($ac_try" in
32769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770 *) ac_try_echo=$ac_try;;
32772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773 (eval "$ac_compile") 2>conftest.er1
32775 grep -v '^ *+' conftest.er1 >conftest.err
32777 cat conftest.err >&5
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); } && {
32780 test -z "$ac_c_werror_flag" ||
32781 test ! -s conftest.err
32782 } && test -s conftest.$ac_objext; then
32783 ac_header_compiler=yes
32785 echo "$as_me: failed program was:" >&5
32786 sed 's/^/| /' conftest.$ac_ext >&5
32788 ac_header_compiler=no
32791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32793 echo "${ECHO_T}$ac_header_compiler" >&6; }
32795 # Is the header present?
32796 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32797 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32798 cat >conftest.$ac_ext <<_ACEOF
32801 cat confdefs.h >>conftest.$ac_ext
32802 cat >>conftest.$ac_ext <<_ACEOF
32803 /* end confdefs.h. */
32804 #include <sys/statvfs.h>
32806 if { (ac_try="$ac_cpp conftest.$ac_ext"
32807 case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32814 grep -v '^ *+' conftest.er1 >conftest.err
32816 cat conftest.err >&5
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); } >/dev/null && {
32819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32820 test ! -s conftest.err
32822 ac_header_preproc=yes
32824 echo "$as_me: failed program was:" >&5
32825 sed 's/^/| /' conftest.$ac_ext >&5
32827 ac_header_preproc=no
32830 rm -f conftest.err conftest.$ac_ext
32831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32832 echo "${ECHO_T}$ac_header_preproc" >&6; }
32834 # So? What about this header?
32835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32837 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32838 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32839 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32840 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32841 ac_header_preproc=yes
32844 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32846 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32847 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32848 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32849 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32850 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32851 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32852 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32853 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32854 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32855 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32859 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32860 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32861 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32862 echo $ECHO_N "(cached) $ECHO_C" >&6
32864 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32866 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32867 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32870 if test $ac_cv_header_sys_statvfs_h = yes; then
32872 cat >>confdefs.h <<\_ACEOF
32873 #define HAVE_SYS_STATVFS_H 1
32880 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32881 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32882 if test "${ac_cv_type_signal+set}" = set; then
32883 echo $ECHO_N "(cached) $ECHO_C" >&6
32885 cat >conftest.$ac_ext <<_ACEOF
32888 cat confdefs.h >>conftest.$ac_ext
32889 cat >>conftest.$ac_ext <<_ACEOF
32890 /* end confdefs.h. */
32891 #include <sys/types.h>
32892 #include <signal.h>
32897 return *(signal (0, 0)) (0) == 1;
32902 rm -f conftest.$ac_objext
32903 if { (ac_try="$ac_compile"
32904 case "(($ac_try" in
32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906 *) ac_try_echo=$ac_try;;
32908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909 (eval "$ac_compile") 2>conftest.er1
32911 grep -v '^ *+' conftest.er1 >conftest.err
32913 cat conftest.err >&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); } && {
32916 test -z "$ac_c_werror_flag" ||
32917 test ! -s conftest.err
32918 } && test -s conftest.$ac_objext; then
32919 ac_cv_type_signal=int
32921 echo "$as_me: failed program was:" >&5
32922 sed 's/^/| /' conftest.$ac_ext >&5
32924 ac_cv_type_signal=void
32927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32929 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32930 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32932 cat >>confdefs.h <<_ACEOF
32933 #define RETSIGTYPE $ac_cv_type_signal
32938 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32939 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32940 if test "${bash_cv_signal_vintage+set}" = set; then
32941 echo $ECHO_N "(cached) $ECHO_C" >&6
32944 cat >conftest.$ac_ext <<_ACEOF
32947 cat confdefs.h >>conftest.$ac_ext
32948 cat >>conftest.$ac_ext <<_ACEOF
32949 /* end confdefs.h. */
32950 #include <signal.h>
32956 struct sigaction sa;
32957 sigemptyset(&ss); sigsuspend(&ss);
32958 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32959 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32965 rm -f conftest.$ac_objext conftest$ac_exeext
32966 if { (ac_try="$ac_link"
32967 case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_link") 2>conftest.er1
32974 grep -v '^ *+' conftest.er1 >conftest.err
32976 cat conftest.err >&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } && {
32979 test -z "$ac_c_werror_flag" ||
32980 test ! -s conftest.err
32981 } && test -s conftest$ac_exeext &&
32982 $as_test_x conftest$ac_exeext; then
32983 bash_cv_signal_vintage="posix"
32985 echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32989 cat >conftest.$ac_ext <<_ACEOF
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h. */
32995 #include <signal.h>
33000 int mask = sigmask(SIGINT);
33001 sigsetmask(mask); sigblock(mask); sigpause(mask);
33007 rm -f conftest.$ac_objext conftest$ac_exeext
33008 if { (ac_try="$ac_link"
33009 case "(($ac_try" in
33010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33011 *) ac_try_echo=$ac_try;;
33013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33014 (eval "$ac_link") 2>conftest.er1
33016 grep -v '^ *+' conftest.er1 >conftest.err
33018 cat conftest.err >&5
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); } && {
33021 test -z "$ac_c_werror_flag" ||
33022 test ! -s conftest.err
33023 } && test -s conftest$ac_exeext &&
33024 $as_test_x conftest$ac_exeext; then
33025 bash_cv_signal_vintage="4.2bsd"
33027 echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33031 cat >conftest.$ac_ext <<_ACEOF
33034 cat confdefs.h >>conftest.$ac_ext
33035 cat >>conftest.$ac_ext <<_ACEOF
33036 /* end confdefs.h. */
33038 #include <signal.h>
33039 RETSIGTYPE foo() { }
33044 int mask = sigmask(SIGINT);
33045 sigset(SIGINT, foo); sigrelse(SIGINT);
33046 sighold(SIGINT); sigpause(SIGINT);
33052 rm -f conftest.$ac_objext conftest$ac_exeext
33053 if { (ac_try="$ac_link"
33054 case "(($ac_try" in
33055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056 *) ac_try_echo=$ac_try;;
33058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059 (eval "$ac_link") 2>conftest.er1
33061 grep -v '^ *+' conftest.er1 >conftest.err
33063 cat conftest.err >&5
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); } && {
33066 test -z "$ac_c_werror_flag" ||
33067 test ! -s conftest.err
33068 } && test -s conftest$ac_exeext &&
33069 $as_test_x conftest$ac_exeext; then
33070 bash_cv_signal_vintage="svr3"
33072 echo "$as_me: failed program was:" >&5
33073 sed 's/^/| /' conftest.$ac_ext >&5
33075 bash_cv_signal_vintage="v7"
33079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33080 conftest$ac_exeext conftest.$ac_ext
33084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33085 conftest$ac_exeext conftest.$ac_ext
33089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33090 conftest$ac_exeext conftest.$ac_ext
33094 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33095 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33096 if test "$bash_cv_signal_vintage" = "posix"; then
33097 cat >>confdefs.h <<\_ACEOF
33098 #define HAVE_POSIX_SIGNALS 1
33101 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33102 cat >>confdefs.h <<\_ACEOF
33103 #define HAVE_BSD_SIGNALS 1
33106 elif test "$bash_cv_signal_vintage" = "svr3"; then
33107 cat >>confdefs.h <<\_ACEOF
33108 #define HAVE_USG_SIGHOLD 1
33113 { echo "$as_me:$LINENO: checking for mode_t" >&5
33114 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33115 if test "${ac_cv_type_mode_t+set}" = set; then
33116 echo $ECHO_N "(cached) $ECHO_C" >&6
33118 cat >conftest.$ac_ext <<_ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h. */
33124 $ac_includes_default
33125 typedef mode_t ac__type_new_;
33129 if ((ac__type_new_ *) 0)
33131 if (sizeof (ac__type_new_))
33137 rm -f conftest.$ac_objext
33138 if { (ac_try="$ac_compile"
33139 case "(($ac_try" in
33140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_compile") 2>conftest.er1
33146 grep -v '^ *+' conftest.er1 >conftest.err
33148 cat conftest.err >&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); } && {
33151 test -z "$ac_c_werror_flag" ||
33152 test ! -s conftest.err
33153 } && test -s conftest.$ac_objext; then
33154 ac_cv_type_mode_t=yes
33156 echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33159 ac_cv_type_mode_t=no
33162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33164 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33165 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33166 if test $ac_cv_type_mode_t = yes; then
33170 cat >>confdefs.h <<_ACEOF
33176 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33177 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33178 if test "${ac_cv_type_uid_t+set}" = set; then
33179 echo $ECHO_N "(cached) $ECHO_C" >&6
33181 cat >conftest.$ac_ext <<_ACEOF
33184 cat confdefs.h >>conftest.$ac_ext
33185 cat >>conftest.$ac_ext <<_ACEOF
33186 /* end confdefs.h. */
33187 #include <sys/types.h>
33190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33191 $EGREP "uid_t" >/dev/null 2>&1; then
33192 ac_cv_type_uid_t=yes
33194 ac_cv_type_uid_t=no
33199 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33200 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33201 if test $ac_cv_type_uid_t = no; then
33203 cat >>confdefs.h <<\_ACEOF
33208 cat >>confdefs.h <<\_ACEOF
33214 { echo "$as_me:$LINENO: checking for size_t" >&5
33215 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33216 if test "${ac_cv_type_size_t+set}" = set; then
33217 echo $ECHO_N "(cached) $ECHO_C" >&6
33219 cat >conftest.$ac_ext <<_ACEOF
33222 cat confdefs.h >>conftest.$ac_ext
33223 cat >>conftest.$ac_ext <<_ACEOF
33224 /* end confdefs.h. */
33225 $ac_includes_default
33226 typedef size_t ac__type_new_;
33230 if ((ac__type_new_ *) 0)
33232 if (sizeof (ac__type_new_))
33238 rm -f conftest.$ac_objext
33239 if { (ac_try="$ac_compile"
33240 case "(($ac_try" in
33241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33242 *) ac_try_echo=$ac_try;;
33244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33245 (eval "$ac_compile") 2>conftest.er1
33247 grep -v '^ *+' conftest.er1 >conftest.err
33249 cat conftest.err >&5
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); } && {
33252 test -z "$ac_c_werror_flag" ||
33253 test ! -s conftest.err
33254 } && test -s conftest.$ac_objext; then
33255 ac_cv_type_size_t=yes
33257 echo "$as_me: failed program was:" >&5
33258 sed 's/^/| /' conftest.$ac_ext >&5
33260 ac_cv_type_size_t=no
33263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33265 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33266 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33267 if test $ac_cv_type_size_t = yes; then
33271 cat >>confdefs.h <<_ACEOF
33272 #define size_t unsigned int
33277 { echo "$as_me:$LINENO: checking for pid_t" >&5
33278 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33279 if test "${ac_cv_type_pid_t+set}" = set; then
33280 echo $ECHO_N "(cached) $ECHO_C" >&6
33282 cat >conftest.$ac_ext <<_ACEOF
33285 cat confdefs.h >>conftest.$ac_ext
33286 cat >>conftest.$ac_ext <<_ACEOF
33287 /* end confdefs.h. */
33288 $ac_includes_default
33289 typedef pid_t ac__type_new_;
33293 if ((ac__type_new_ *) 0)
33295 if (sizeof (ac__type_new_))
33301 rm -f conftest.$ac_objext
33302 if { (ac_try="$ac_compile"
33303 case "(($ac_try" in
33304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305 *) ac_try_echo=$ac_try;;
33307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33308 (eval "$ac_compile") 2>conftest.er1
33310 grep -v '^ *+' conftest.er1 >conftest.err
33312 cat conftest.err >&5
33313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314 (exit $ac_status); } && {
33315 test -z "$ac_c_werror_flag" ||
33316 test ! -s conftest.err
33317 } && test -s conftest.$ac_objext; then
33318 ac_cv_type_pid_t=yes
33320 echo "$as_me: failed program was:" >&5
33321 sed 's/^/| /' conftest.$ac_ext >&5
33323 ac_cv_type_pid_t=no
33326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33328 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33329 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33330 if test $ac_cv_type_pid_t = yes; then
33334 cat >>confdefs.h <<_ACEOF
33340 { echo "$as_me:$LINENO: checking for off_t" >&5
33341 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33342 if test "${ac_cv_type_off_t+set}" = set; then
33343 echo $ECHO_N "(cached) $ECHO_C" >&6
33345 cat >conftest.$ac_ext <<_ACEOF
33348 cat confdefs.h >>conftest.$ac_ext
33349 cat >>conftest.$ac_ext <<_ACEOF
33350 /* end confdefs.h. */
33351 $ac_includes_default
33352 typedef off_t ac__type_new_;
33356 if ((ac__type_new_ *) 0)
33358 if (sizeof (ac__type_new_))
33364 rm -f conftest.$ac_objext
33365 if { (ac_try="$ac_compile"
33366 case "(($ac_try" in
33367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33368 *) ac_try_echo=$ac_try;;
33370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33371 (eval "$ac_compile") 2>conftest.er1
33373 grep -v '^ *+' conftest.er1 >conftest.err
33375 cat conftest.err >&5
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); } && {
33378 test -z "$ac_c_werror_flag" ||
33379 test ! -s conftest.err
33380 } && test -s conftest.$ac_objext; then
33381 ac_cv_type_off_t=yes
33383 echo "$as_me: failed program was:" >&5
33384 sed 's/^/| /' conftest.$ac_ext >&5
33386 ac_cv_type_off_t=no
33389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33391 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33392 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33393 if test $ac_cv_type_off_t = yes; then
33397 cat >>confdefs.h <<_ACEOF
33398 #define off_t long int
33403 { echo "$as_me:$LINENO: checking for ino_t" >&5
33404 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33405 if test "${ac_cv_type_ino_t+set}" = set; then
33406 echo $ECHO_N "(cached) $ECHO_C" >&6
33408 cat >conftest.$ac_ext <<_ACEOF
33411 cat confdefs.h >>conftest.$ac_ext
33412 cat >>conftest.$ac_ext <<_ACEOF
33413 /* end confdefs.h. */
33414 $ac_includes_default
33415 typedef ino_t ac__type_new_;
33419 if ((ac__type_new_ *) 0)
33421 if (sizeof (ac__type_new_))
33427 rm -f conftest.$ac_objext
33428 if { (ac_try="$ac_compile"
33429 case "(($ac_try" in
33430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33431 *) ac_try_echo=$ac_try;;
33433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33434 (eval "$ac_compile") 2>conftest.er1
33436 grep -v '^ *+' conftest.er1 >conftest.err
33438 cat conftest.err >&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); } && {
33441 test -z "$ac_c_werror_flag" ||
33442 test ! -s conftest.err
33443 } && test -s conftest.$ac_objext; then
33444 ac_cv_type_ino_t=yes
33446 echo "$as_me: failed program was:" >&5
33447 sed 's/^/| /' conftest.$ac_ext >&5
33449 ac_cv_type_ino_t=no
33452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33454 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33455 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33456 if test $ac_cv_type_ino_t = yes; then
33460 cat >>confdefs.h <<_ACEOF
33461 #define ino_t unsigned long
33466 { echo "$as_me:$LINENO: checking for dev_t" >&5
33467 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33468 if test "${ac_cv_type_dev_t+set}" = set; then
33469 echo $ECHO_N "(cached) $ECHO_C" >&6
33471 cat >conftest.$ac_ext <<_ACEOF
33474 cat confdefs.h >>conftest.$ac_ext
33475 cat >>conftest.$ac_ext <<_ACEOF
33476 /* end confdefs.h. */
33477 $ac_includes_default
33478 typedef dev_t ac__type_new_;
33482 if ((ac__type_new_ *) 0)
33484 if (sizeof (ac__type_new_))
33490 rm -f conftest.$ac_objext
33491 if { (ac_try="$ac_compile"
33492 case "(($ac_try" in
33493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494 *) ac_try_echo=$ac_try;;
33496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33497 (eval "$ac_compile") 2>conftest.er1
33499 grep -v '^ *+' conftest.er1 >conftest.err
33501 cat conftest.err >&5
33502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503 (exit $ac_status); } && {
33504 test -z "$ac_c_werror_flag" ||
33505 test ! -s conftest.err
33506 } && test -s conftest.$ac_objext; then
33507 ac_cv_type_dev_t=yes
33509 echo "$as_me: failed program was:" >&5
33510 sed 's/^/| /' conftest.$ac_ext >&5
33512 ac_cv_type_dev_t=no
33515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33517 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33518 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33519 if test $ac_cv_type_dev_t = yes; then
33523 cat >>confdefs.h <<_ACEOF
33524 #define dev_t unsigned long
33529 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33530 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33531 if test "${ac_cv_type_daddr_t+set}" = set; then
33532 echo $ECHO_N "(cached) $ECHO_C" >&6
33534 cat >conftest.$ac_ext <<_ACEOF
33537 cat confdefs.h >>conftest.$ac_ext
33538 cat >>conftest.$ac_ext <<_ACEOF
33539 /* end confdefs.h. */
33540 $ac_includes_default
33541 typedef daddr_t ac__type_new_;
33545 if ((ac__type_new_ *) 0)
33547 if (sizeof (ac__type_new_))
33553 rm -f conftest.$ac_objext
33554 if { (ac_try="$ac_compile"
33555 case "(($ac_try" in
33556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33557 *) ac_try_echo=$ac_try;;
33559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33560 (eval "$ac_compile") 2>conftest.er1
33562 grep -v '^ *+' conftest.er1 >conftest.err
33564 cat conftest.err >&5
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); } && {
33567 test -z "$ac_c_werror_flag" ||
33568 test ! -s conftest.err
33569 } && test -s conftest.$ac_objext; then
33570 ac_cv_type_daddr_t=yes
33572 echo "$as_me: failed program was:" >&5
33573 sed 's/^/| /' conftest.$ac_ext >&5
33575 ac_cv_type_daddr_t=no
33578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33580 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33581 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33582 if test $ac_cv_type_daddr_t = yes; then
33586 cat >>confdefs.h <<_ACEOF
33587 #define daddr_t long
33592 { echo "$as_me:$LINENO: checking for major_t" >&5
33593 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33594 if test "${ac_cv_type_major_t+set}" = set; then
33595 echo $ECHO_N "(cached) $ECHO_C" >&6
33597 cat >conftest.$ac_ext <<_ACEOF
33600 cat confdefs.h >>conftest.$ac_ext
33601 cat >>conftest.$ac_ext <<_ACEOF
33602 /* end confdefs.h. */
33603 $ac_includes_default
33604 typedef major_t ac__type_new_;
33608 if ((ac__type_new_ *) 0)
33610 if (sizeof (ac__type_new_))
33616 rm -f conftest.$ac_objext
33617 if { (ac_try="$ac_compile"
33618 case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_compile") 2>conftest.er1
33625 grep -v '^ *+' conftest.er1 >conftest.err
33627 cat conftest.err >&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); } && {
33630 test -z "$ac_c_werror_flag" ||
33631 test ! -s conftest.err
33632 } && test -s conftest.$ac_objext; then
33633 ac_cv_type_major_t=yes
33635 echo "$as_me: failed program was:" >&5
33636 sed 's/^/| /' conftest.$ac_ext >&5
33638 ac_cv_type_major_t=no
33641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33643 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33644 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33645 if test $ac_cv_type_major_t = yes; then
33649 cat >>confdefs.h <<_ACEOF
33650 #define major_t int
33655 { echo "$as_me:$LINENO: checking for minor_t" >&5
33656 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33657 if test "${ac_cv_type_minor_t+set}" = set; then
33658 echo $ECHO_N "(cached) $ECHO_C" >&6
33660 cat >conftest.$ac_ext <<_ACEOF
33663 cat confdefs.h >>conftest.$ac_ext
33664 cat >>conftest.$ac_ext <<_ACEOF
33665 /* end confdefs.h. */
33666 $ac_includes_default
33667 typedef minor_t ac__type_new_;
33671 if ((ac__type_new_ *) 0)
33673 if (sizeof (ac__type_new_))
33679 rm -f conftest.$ac_objext
33680 if { (ac_try="$ac_compile"
33681 case "(($ac_try" in
33682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33683 *) ac_try_echo=$ac_try;;
33685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33686 (eval "$ac_compile") 2>conftest.er1
33688 grep -v '^ *+' conftest.er1 >conftest.err
33690 cat conftest.err >&5
33691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692 (exit $ac_status); } && {
33693 test -z "$ac_c_werror_flag" ||
33694 test ! -s conftest.err
33695 } && test -s conftest.$ac_objext; then
33696 ac_cv_type_minor_t=yes
33698 echo "$as_me: failed program was:" >&5
33699 sed 's/^/| /' conftest.$ac_ext >&5
33701 ac_cv_type_minor_t=no
33704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33706 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33707 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33708 if test $ac_cv_type_minor_t = yes; then
33712 cat >>confdefs.h <<_ACEOF
33713 #define minor_t int
33718 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33719 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33720 if test "${ac_cv_type_ssize_t+set}" = set; then
33721 echo $ECHO_N "(cached) $ECHO_C" >&6
33723 cat >conftest.$ac_ext <<_ACEOF
33726 cat confdefs.h >>conftest.$ac_ext
33727 cat >>conftest.$ac_ext <<_ACEOF
33728 /* end confdefs.h. */
33729 $ac_includes_default
33730 typedef ssize_t ac__type_new_;
33734 if ((ac__type_new_ *) 0)
33736 if (sizeof (ac__type_new_))
33742 rm -f conftest.$ac_objext
33743 if { (ac_try="$ac_compile"
33744 case "(($ac_try" in
33745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33746 *) ac_try_echo=$ac_try;;
33748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33749 (eval "$ac_compile") 2>conftest.er1
33751 grep -v '^ *+' conftest.er1 >conftest.err
33753 cat conftest.err >&5
33754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755 (exit $ac_status); } && {
33756 test -z "$ac_c_werror_flag" ||
33757 test ! -s conftest.err
33758 } && test -s conftest.$ac_objext; then
33759 ac_cv_type_ssize_t=yes
33761 echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33764 ac_cv_type_ssize_t=no
33767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33769 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33770 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33771 if test $ac_cv_type_ssize_t = yes; then
33775 cat >>confdefs.h <<_ACEOF
33776 #define ssize_t int
33781 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33782 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33783 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33784 echo $ECHO_N "(cached) $ECHO_C" >&6
33786 cat >conftest.$ac_ext <<_ACEOF
33789 cat confdefs.h >>conftest.$ac_ext
33790 cat >>conftest.$ac_ext <<_ACEOF
33791 /* end confdefs.h. */
33792 $ac_includes_default
33796 static struct stat ac_aggr;
33797 if (ac_aggr.st_blocks)
33803 rm -f conftest.$ac_objext
33804 if { (ac_try="$ac_compile"
33805 case "(($ac_try" in
33806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33807 *) ac_try_echo=$ac_try;;
33809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33810 (eval "$ac_compile") 2>conftest.er1
33812 grep -v '^ *+' conftest.er1 >conftest.err
33814 cat conftest.err >&5
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); } && {
33817 test -z "$ac_c_werror_flag" ||
33818 test ! -s conftest.err
33819 } && test -s conftest.$ac_objext; then
33820 ac_cv_member_struct_stat_st_blocks=yes
33822 echo "$as_me: failed program was:" >&5
33823 sed 's/^/| /' conftest.$ac_ext >&5
33825 cat >conftest.$ac_ext <<_ACEOF
33828 cat confdefs.h >>conftest.$ac_ext
33829 cat >>conftest.$ac_ext <<_ACEOF
33830 /* end confdefs.h. */
33831 $ac_includes_default
33835 static struct stat ac_aggr;
33836 if (sizeof ac_aggr.st_blocks)
33842 rm -f conftest.$ac_objext
33843 if { (ac_try="$ac_compile"
33844 case "(($ac_try" in
33845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33846 *) ac_try_echo=$ac_try;;
33848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33849 (eval "$ac_compile") 2>conftest.er1
33851 grep -v '^ *+' conftest.er1 >conftest.err
33853 cat conftest.err >&5
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); } && {
33856 test -z "$ac_c_werror_flag" ||
33857 test ! -s conftest.err
33858 } && test -s conftest.$ac_objext; then
33859 ac_cv_member_struct_stat_st_blocks=yes
33861 echo "$as_me: failed program was:" >&5
33862 sed 's/^/| /' conftest.$ac_ext >&5
33864 ac_cv_member_struct_stat_st_blocks=no
33867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33872 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33873 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33874 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33876 cat >>confdefs.h <<_ACEOF
33877 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33881 cat >>confdefs.h <<\_ACEOF
33882 #define HAVE_ST_BLOCKS 1
33886 case " $LIBOBJS " in
33887 *" fileblocks.$ac_objext "* ) ;;
33888 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33895 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33896 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33897 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33898 echo $ECHO_N "(cached) $ECHO_C" >&6
33900 cat >conftest.$ac_ext <<_ACEOF
33903 cat confdefs.h >>conftest.$ac_ext
33904 cat >>conftest.$ac_ext <<_ACEOF
33905 /* end confdefs.h. */
33906 $ac_includes_default
33910 static struct stat ac_aggr;
33911 if (ac_aggr.st_rdev)
33917 rm -f conftest.$ac_objext
33918 if { (ac_try="$ac_compile"
33919 case "(($ac_try" in
33920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33921 *) ac_try_echo=$ac_try;;
33923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33924 (eval "$ac_compile") 2>conftest.er1
33926 grep -v '^ *+' conftest.er1 >conftest.err
33928 cat conftest.err >&5
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } && {
33931 test -z "$ac_c_werror_flag" ||
33932 test ! -s conftest.err
33933 } && test -s conftest.$ac_objext; then
33934 ac_cv_member_struct_stat_st_rdev=yes
33936 echo "$as_me: failed program was:" >&5
33937 sed 's/^/| /' conftest.$ac_ext >&5
33939 cat >conftest.$ac_ext <<_ACEOF
33942 cat confdefs.h >>conftest.$ac_ext
33943 cat >>conftest.$ac_ext <<_ACEOF
33944 /* end confdefs.h. */
33945 $ac_includes_default
33949 static struct stat ac_aggr;
33950 if (sizeof ac_aggr.st_rdev)
33956 rm -f conftest.$ac_objext
33957 if { (ac_try="$ac_compile"
33958 case "(($ac_try" in
33959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960 *) ac_try_echo=$ac_try;;
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963 (eval "$ac_compile") 2>conftest.er1
33965 grep -v '^ *+' conftest.er1 >conftest.err
33967 cat conftest.err >&5
33968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969 (exit $ac_status); } && {
33970 test -z "$ac_c_werror_flag" ||
33971 test ! -s conftest.err
33972 } && test -s conftest.$ac_objext; then
33973 ac_cv_member_struct_stat_st_rdev=yes
33975 echo "$as_me: failed program was:" >&5
33976 sed 's/^/| /' conftest.$ac_ext >&5
33978 ac_cv_member_struct_stat_st_rdev=no
33981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33986 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33987 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33988 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33990 cat >>confdefs.h <<_ACEOF
33991 #define HAVE_STRUCT_STAT_ST_RDEV 1
33995 cat >>confdefs.h <<\_ACEOF
33996 #define HAVE_ST_RDEV 1
34002 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34003 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34004 if test "${ac_cv_struct_tm+set}" = set; then
34005 echo $ECHO_N "(cached) $ECHO_C" >&6
34007 cat >conftest.$ac_ext <<_ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h. */
34013 #include <sys/types.h>
34020 int *p = &tm.tm_sec;
34026 rm -f conftest.$ac_objext
34027 if { (ac_try="$ac_compile"
34028 case "(($ac_try" in
34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030 *) ac_try_echo=$ac_try;;
34032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033 (eval "$ac_compile") 2>conftest.er1
34035 grep -v '^ *+' conftest.er1 >conftest.err
34037 cat conftest.err >&5
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); } && {
34040 test -z "$ac_c_werror_flag" ||
34041 test ! -s conftest.err
34042 } && test -s conftest.$ac_objext; then
34043 ac_cv_struct_tm=time.h
34045 echo "$as_me: failed program was:" >&5
34046 sed 's/^/| /' conftest.$ac_ext >&5
34048 ac_cv_struct_tm=sys/time.h
34051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34053 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34054 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34055 if test $ac_cv_struct_tm = sys/time.h; then
34057 cat >>confdefs.h <<\_ACEOF
34058 #define TM_IN_SYS_TIME 1
34063 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34064 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34065 if test "${ac_cv_c_const+set}" = set; then
34066 echo $ECHO_N "(cached) $ECHO_C" >&6
34068 cat >conftest.$ac_ext <<_ACEOF
34071 cat confdefs.h >>conftest.$ac_ext
34072 cat >>conftest.$ac_ext <<_ACEOF
34073 /* end confdefs.h. */
34078 /* FIXME: Include the comments suggested by Paul. */
34079 #ifndef __cplusplus
34080 /* Ultrix mips cc rejects this. */
34081 typedef int charset[2];
34083 /* SunOS 4.1.1 cc rejects this. */
34084 char const *const *pcpcc;
34086 /* NEC SVR4.0.2 mips cc rejects this. */
34087 struct point {int x, y;};
34088 static struct point const zero = {0,0};
34089 /* AIX XL C 1.02.0.0 rejects this.
34090 It does not let you subtract one const X* pointer from another in
34091 an arm of an if-expression whose if-part is not a constant
34093 const char *g = "string";
34094 pcpcc = &g + (g ? g-g : 0);
34095 /* HPUX 7.0 cc rejects these. */
34097 ppc = (char**) pcpcc;
34098 pcpcc = (char const *const *) ppc;
34099 { /* SCO 3.2v4 cc rejects this. */
34101 char const *s = 0 ? (char *) 0 : (char const *) 0;
34106 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34107 int x[] = {25, 17};
34108 const int *foo = &x[0];
34111 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34112 typedef const int *iptr;
34116 { /* AIX XL C 1.02.0.0 rejects this saying
34117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34118 struct s { int j; const int *ap[3]; };
34119 struct s *b; b->j = 5;
34121 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34122 const int foo = 10;
34123 if (!foo) return 0;
34125 return !cs[0] && !zero.x;
34132 rm -f conftest.$ac_objext
34133 if { (ac_try="$ac_compile"
34134 case "(($ac_try" in
34135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136 *) ac_try_echo=$ac_try;;
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139 (eval "$ac_compile") 2>conftest.er1
34141 grep -v '^ *+' conftest.er1 >conftest.err
34143 cat conftest.err >&5
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); } && {
34146 test -z "$ac_c_werror_flag" ||
34147 test ! -s conftest.err
34148 } && test -s conftest.$ac_objext; then
34151 echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34159 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34160 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34161 if test $ac_cv_c_const = no; then
34163 cat >>confdefs.h <<\_ACEOF
34170 { echo "$as_me:$LINENO: checking for char" >&5
34171 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34172 if test "${ac_cv_type_char+set}" = set; then
34173 echo $ECHO_N "(cached) $ECHO_C" >&6
34175 cat >conftest.$ac_ext <<_ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h. */
34181 $ac_includes_default
34182 typedef char ac__type_new_;
34186 if ((ac__type_new_ *) 0)
34188 if (sizeof (ac__type_new_))
34194 rm -f conftest.$ac_objext
34195 if { (ac_try="$ac_compile"
34196 case "(($ac_try" in
34197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34198 *) ac_try_echo=$ac_try;;
34200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201 (eval "$ac_compile") 2>conftest.er1
34203 grep -v '^ *+' conftest.er1 >conftest.err
34205 cat conftest.err >&5
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); } && {
34208 test -z "$ac_c_werror_flag" ||
34209 test ! -s conftest.err
34210 } && test -s conftest.$ac_objext; then
34211 ac_cv_type_char=yes
34213 echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34221 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34222 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34224 # The cast to long int works around a bug in the HP C Compiler
34225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34227 # This bug is HP SR number 8606223364.
34228 { echo "$as_me:$LINENO: checking size of char" >&5
34229 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34230 if test "${ac_cv_sizeof_char+set}" = set; then
34231 echo $ECHO_N "(cached) $ECHO_C" >&6
34233 if test "$cross_compiling" = yes; then
34234 # Depending upon the size, compute the lo and hi bounds.
34235 cat >conftest.$ac_ext <<_ACEOF
34238 cat confdefs.h >>conftest.$ac_ext
34239 cat >>conftest.$ac_ext <<_ACEOF
34240 /* end confdefs.h. */
34241 $ac_includes_default
34242 typedef char ac__type_sizeof_;
34246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34253 rm -f conftest.$ac_objext
34254 if { (ac_try="$ac_compile"
34255 case "(($ac_try" in
34256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34257 *) ac_try_echo=$ac_try;;
34259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34260 (eval "$ac_compile") 2>conftest.er1
34262 grep -v '^ *+' conftest.er1 >conftest.err
34264 cat conftest.err >&5
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); } && {
34267 test -z "$ac_c_werror_flag" ||
34268 test ! -s conftest.err
34269 } && test -s conftest.$ac_objext; then
34272 cat >conftest.$ac_ext <<_ACEOF
34275 cat confdefs.h >>conftest.$ac_ext
34276 cat >>conftest.$ac_ext <<_ACEOF
34277 /* end confdefs.h. */
34278 $ac_includes_default
34279 typedef char ac__type_sizeof_;
34283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34290 rm -f conftest.$ac_objext
34291 if { (ac_try="$ac_compile"
34292 case "(($ac_try" in
34293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34294 *) ac_try_echo=$ac_try;;
34296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34297 (eval "$ac_compile") 2>conftest.er1
34299 grep -v '^ *+' conftest.er1 >conftest.err
34301 cat conftest.err >&5
34302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303 (exit $ac_status); } && {
34304 test -z "$ac_c_werror_flag" ||
34305 test ! -s conftest.err
34306 } && test -s conftest.$ac_objext; then
34307 ac_hi=$ac_mid; break
34309 echo "$as_me: failed program was:" >&5
34310 sed 's/^/| /' conftest.$ac_ext >&5
34312 ac_lo=`expr $ac_mid + 1`
34313 if test $ac_lo -le $ac_mid; then
34317 ac_mid=`expr 2 '*' $ac_mid + 1`
34320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34323 echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.$ac_ext >&5
34326 cat >conftest.$ac_ext <<_ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h. */
34332 $ac_includes_default
34333 typedef char ac__type_sizeof_;
34337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34344 rm -f conftest.$ac_objext
34345 if { (ac_try="$ac_compile"
34346 case "(($ac_try" in
34347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34348 *) ac_try_echo=$ac_try;;
34350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34351 (eval "$ac_compile") 2>conftest.er1
34353 grep -v '^ *+' conftest.er1 >conftest.err
34355 cat conftest.err >&5
34356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357 (exit $ac_status); } && {
34358 test -z "$ac_c_werror_flag" ||
34359 test ! -s conftest.err
34360 } && test -s conftest.$ac_objext; then
34363 cat >conftest.$ac_ext <<_ACEOF
34366 cat confdefs.h >>conftest.$ac_ext
34367 cat >>conftest.$ac_ext <<_ACEOF
34368 /* end confdefs.h. */
34369 $ac_includes_default
34370 typedef char ac__type_sizeof_;
34374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34381 rm -f conftest.$ac_objext
34382 if { (ac_try="$ac_compile"
34383 case "(($ac_try" in
34384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34385 *) ac_try_echo=$ac_try;;
34387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34388 (eval "$ac_compile") 2>conftest.er1
34390 grep -v '^ *+' conftest.er1 >conftest.err
34392 cat conftest.err >&5
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); } && {
34395 test -z "$ac_c_werror_flag" ||
34396 test ! -s conftest.err
34397 } && test -s conftest.$ac_objext; then
34398 ac_lo=$ac_mid; break
34400 echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34403 ac_hi=`expr '(' $ac_mid ')' - 1`
34404 if test $ac_mid -le $ac_hi; then
34408 ac_mid=`expr 2 '*' $ac_mid`
34411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34414 echo "$as_me: failed program was:" >&5
34415 sed 's/^/| /' conftest.$ac_ext >&5
34420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34424 # Binary search between lo and hi bounds.
34425 while test "x$ac_lo" != "x$ac_hi"; do
34426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34427 cat >conftest.$ac_ext <<_ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h. */
34433 $ac_includes_default
34434 typedef char ac__type_sizeof_;
34438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34445 rm -f conftest.$ac_objext
34446 if { (ac_try="$ac_compile"
34447 case "(($ac_try" in
34448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34449 *) ac_try_echo=$ac_try;;
34451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34452 (eval "$ac_compile") 2>conftest.er1
34454 grep -v '^ *+' conftest.er1 >conftest.err
34456 cat conftest.err >&5
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); } && {
34459 test -z "$ac_c_werror_flag" ||
34460 test ! -s conftest.err
34461 } && test -s conftest.$ac_objext; then
34464 echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34467 ac_lo=`expr '(' $ac_mid ')' + 1`
34470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34473 ?*) ac_cv_sizeof_char=$ac_lo;;
34474 '') if test "$ac_cv_type_char" = yes; then
34475 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34476 See \`config.log' for more details." >&5
34477 echo "$as_me: error: cannot compute sizeof (char)
34478 See \`config.log' for more details." >&2;}
34479 { (exit 77); exit 77; }; }
34481 ac_cv_sizeof_char=0
34485 cat >conftest.$ac_ext <<_ACEOF
34488 cat confdefs.h >>conftest.$ac_ext
34489 cat >>conftest.$ac_ext <<_ACEOF
34490 /* end confdefs.h. */
34491 $ac_includes_default
34492 typedef char ac__type_sizeof_;
34493 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34494 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34496 #include <stdlib.h>
34501 FILE *f = fopen ("conftest.val", "w");
34504 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34506 long int i = longval ();
34507 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34509 fprintf (f, "%ld\n", i);
34513 unsigned long int i = ulongval ();
34514 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34516 fprintf (f, "%lu\n", i);
34518 return ferror (f) || fclose (f) != 0;
34524 rm -f conftest$ac_exeext
34525 if { (ac_try="$ac_link"
34526 case "(($ac_try" in
34527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34528 *) ac_try_echo=$ac_try;;
34530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34531 (eval "$ac_link") 2>&5
34533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34535 { (case "(($ac_try" in
34536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34537 *) ac_try_echo=$ac_try;;
34539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34540 (eval "$ac_try") 2>&5
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); }; }; then
34544 ac_cv_sizeof_char=`cat conftest.val`
34546 echo "$as_me: program exited with status $ac_status" >&5
34547 echo "$as_me: failed program was:" >&5
34548 sed 's/^/| /' conftest.$ac_ext >&5
34550 ( exit $ac_status )
34551 if test "$ac_cv_type_char" = yes; then
34552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34553 See \`config.log' for more details." >&5
34554 echo "$as_me: error: cannot compute sizeof (char)
34555 See \`config.log' for more details." >&2;}
34556 { (exit 77); exit 77; }; }
34558 ac_cv_sizeof_char=0
34561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34565 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34566 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34570 cat >>confdefs.h <<_ACEOF
34571 #define SIZEOF_CHAR $ac_cv_sizeof_char
34575 { echo "$as_me:$LINENO: checking for short int" >&5
34576 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34577 if test "${ac_cv_type_short_int+set}" = set; then
34578 echo $ECHO_N "(cached) $ECHO_C" >&6
34580 cat >conftest.$ac_ext <<_ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h. */
34586 $ac_includes_default
34587 typedef short int ac__type_new_;
34591 if ((ac__type_new_ *) 0)
34593 if (sizeof (ac__type_new_))
34599 rm -f conftest.$ac_objext
34600 if { (ac_try="$ac_compile"
34601 case "(($ac_try" in
34602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34603 *) ac_try_echo=$ac_try;;
34605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34606 (eval "$ac_compile") 2>conftest.er1
34608 grep -v '^ *+' conftest.er1 >conftest.err
34610 cat conftest.err >&5
34611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612 (exit $ac_status); } && {
34613 test -z "$ac_c_werror_flag" ||
34614 test ! -s conftest.err
34615 } && test -s conftest.$ac_objext; then
34616 ac_cv_type_short_int=yes
34618 echo "$as_me: failed program was:" >&5
34619 sed 's/^/| /' conftest.$ac_ext >&5
34621 ac_cv_type_short_int=no
34624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34626 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34627 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34629 # The cast to long int works around a bug in the HP C Compiler
34630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34632 # This bug is HP SR number 8606223364.
34633 { echo "$as_me:$LINENO: checking size of short int" >&5
34634 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34635 if test "${ac_cv_sizeof_short_int+set}" = set; then
34636 echo $ECHO_N "(cached) $ECHO_C" >&6
34638 if test "$cross_compiling" = yes; then
34639 # Depending upon the size, compute the lo and hi bounds.
34640 cat >conftest.$ac_ext <<_ACEOF
34643 cat confdefs.h >>conftest.$ac_ext
34644 cat >>conftest.$ac_ext <<_ACEOF
34645 /* end confdefs.h. */
34646 $ac_includes_default
34647 typedef short int ac__type_sizeof_;
34651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34658 rm -f conftest.$ac_objext
34659 if { (ac_try="$ac_compile"
34660 case "(($ac_try" in
34661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34662 *) ac_try_echo=$ac_try;;
34664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665 (eval "$ac_compile") 2>conftest.er1
34667 grep -v '^ *+' conftest.er1 >conftest.err
34669 cat conftest.err >&5
34670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671 (exit $ac_status); } && {
34672 test -z "$ac_c_werror_flag" ||
34673 test ! -s conftest.err
34674 } && test -s conftest.$ac_objext; then
34677 cat >conftest.$ac_ext <<_ACEOF
34680 cat confdefs.h >>conftest.$ac_ext
34681 cat >>conftest.$ac_ext <<_ACEOF
34682 /* end confdefs.h. */
34683 $ac_includes_default
34684 typedef short int ac__type_sizeof_;
34688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34695 rm -f conftest.$ac_objext
34696 if { (ac_try="$ac_compile"
34697 case "(($ac_try" in
34698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34699 *) ac_try_echo=$ac_try;;
34701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34702 (eval "$ac_compile") 2>conftest.er1
34704 grep -v '^ *+' conftest.er1 >conftest.err
34706 cat conftest.err >&5
34707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708 (exit $ac_status); } && {
34709 test -z "$ac_c_werror_flag" ||
34710 test ! -s conftest.err
34711 } && test -s conftest.$ac_objext; then
34712 ac_hi=$ac_mid; break
34714 echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34717 ac_lo=`expr $ac_mid + 1`
34718 if test $ac_lo -le $ac_mid; then
34722 ac_mid=`expr 2 '*' $ac_mid + 1`
34725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34728 echo "$as_me: failed program was:" >&5
34729 sed 's/^/| /' conftest.$ac_ext >&5
34731 cat >conftest.$ac_ext <<_ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h. */
34737 $ac_includes_default
34738 typedef short int ac__type_sizeof_;
34742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34749 rm -f conftest.$ac_objext
34750 if { (ac_try="$ac_compile"
34751 case "(($ac_try" in
34752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34753 *) ac_try_echo=$ac_try;;
34755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34756 (eval "$ac_compile") 2>conftest.er1
34758 grep -v '^ *+' conftest.er1 >conftest.err
34760 cat conftest.err >&5
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); } && {
34763 test -z "$ac_c_werror_flag" ||
34764 test ! -s conftest.err
34765 } && test -s conftest.$ac_objext; then
34768 cat >conftest.$ac_ext <<_ACEOF
34771 cat confdefs.h >>conftest.$ac_ext
34772 cat >>conftest.$ac_ext <<_ACEOF
34773 /* end confdefs.h. */
34774 $ac_includes_default
34775 typedef short int ac__type_sizeof_;
34779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34786 rm -f conftest.$ac_objext
34787 if { (ac_try="$ac_compile"
34788 case "(($ac_try" in
34789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34790 *) ac_try_echo=$ac_try;;
34792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34793 (eval "$ac_compile") 2>conftest.er1
34795 grep -v '^ *+' conftest.er1 >conftest.err
34797 cat conftest.err >&5
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); } && {
34800 test -z "$ac_c_werror_flag" ||
34801 test ! -s conftest.err
34802 } && test -s conftest.$ac_objext; then
34803 ac_lo=$ac_mid; break
34805 echo "$as_me: failed program was:" >&5
34806 sed 's/^/| /' conftest.$ac_ext >&5
34808 ac_hi=`expr '(' $ac_mid ')' - 1`
34809 if test $ac_mid -le $ac_hi; then
34813 ac_mid=`expr 2 '*' $ac_mid`
34816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34819 echo "$as_me: failed program was:" >&5
34820 sed 's/^/| /' conftest.$ac_ext >&5
34825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34829 # Binary search between lo and hi bounds.
34830 while test "x$ac_lo" != "x$ac_hi"; do
34831 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34832 cat >conftest.$ac_ext <<_ACEOF
34835 cat confdefs.h >>conftest.$ac_ext
34836 cat >>conftest.$ac_ext <<_ACEOF
34837 /* end confdefs.h. */
34838 $ac_includes_default
34839 typedef short int ac__type_sizeof_;
34843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34850 rm -f conftest.$ac_objext
34851 if { (ac_try="$ac_compile"
34852 case "(($ac_try" in
34853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854 *) ac_try_echo=$ac_try;;
34856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_compile") 2>conftest.er1
34859 grep -v '^ *+' conftest.er1 >conftest.err
34861 cat conftest.err >&5
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); } && {
34864 test -z "$ac_c_werror_flag" ||
34865 test ! -s conftest.err
34866 } && test -s conftest.$ac_objext; then
34869 echo "$as_me: failed program was:" >&5
34870 sed 's/^/| /' conftest.$ac_ext >&5
34872 ac_lo=`expr '(' $ac_mid ')' + 1`
34875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34878 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34879 '') if test "$ac_cv_type_short_int" = yes; then
34880 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34881 See \`config.log' for more details." >&5
34882 echo "$as_me: error: cannot compute sizeof (short int)
34883 See \`config.log' for more details." >&2;}
34884 { (exit 77); exit 77; }; }
34886 ac_cv_sizeof_short_int=0
34890 cat >conftest.$ac_ext <<_ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h. */
34896 $ac_includes_default
34897 typedef short int ac__type_sizeof_;
34898 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34899 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34901 #include <stdlib.h>
34906 FILE *f = fopen ("conftest.val", "w");
34909 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34911 long int i = longval ();
34912 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34914 fprintf (f, "%ld\n", i);
34918 unsigned long int i = ulongval ();
34919 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34921 fprintf (f, "%lu\n", i);
34923 return ferror (f) || fclose (f) != 0;
34929 rm -f conftest$ac_exeext
34930 if { (ac_try="$ac_link"
34931 case "(($ac_try" in
34932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34933 *) ac_try_echo=$ac_try;;
34935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34936 (eval "$ac_link") 2>&5
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34940 { (case "(($ac_try" in
34941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34942 *) ac_try_echo=$ac_try;;
34944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34945 (eval "$ac_try") 2>&5
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); }; }; then
34949 ac_cv_sizeof_short_int=`cat conftest.val`
34951 echo "$as_me: program exited with status $ac_status" >&5
34952 echo "$as_me: failed program was:" >&5
34953 sed 's/^/| /' conftest.$ac_ext >&5
34955 ( exit $ac_status )
34956 if test "$ac_cv_type_short_int" = yes; then
34957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34958 See \`config.log' for more details." >&5
34959 echo "$as_me: error: cannot compute sizeof (short int)
34960 See \`config.log' for more details." >&2;}
34961 { (exit 77); exit 77; }; }
34963 ac_cv_sizeof_short_int=0
34966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34971 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34975 cat >>confdefs.h <<_ACEOF
34976 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34980 { echo "$as_me:$LINENO: checking for int" >&5
34981 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34982 if test "${ac_cv_type_int+set}" = set; then
34983 echo $ECHO_N "(cached) $ECHO_C" >&6
34985 cat >conftest.$ac_ext <<_ACEOF
34988 cat confdefs.h >>conftest.$ac_ext
34989 cat >>conftest.$ac_ext <<_ACEOF
34990 /* end confdefs.h. */
34991 $ac_includes_default
34992 typedef int ac__type_new_;
34996 if ((ac__type_new_ *) 0)
34998 if (sizeof (ac__type_new_))
35004 rm -f conftest.$ac_objext
35005 if { (ac_try="$ac_compile"
35006 case "(($ac_try" in
35007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35008 *) ac_try_echo=$ac_try;;
35010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35011 (eval "$ac_compile") 2>conftest.er1
35013 grep -v '^ *+' conftest.er1 >conftest.err
35015 cat conftest.err >&5
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); } && {
35018 test -z "$ac_c_werror_flag" ||
35019 test ! -s conftest.err
35020 } && test -s conftest.$ac_objext; then
35023 echo "$as_me: failed program was:" >&5
35024 sed 's/^/| /' conftest.$ac_ext >&5
35029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35031 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35032 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35034 # The cast to long int works around a bug in the HP C Compiler
35035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35037 # This bug is HP SR number 8606223364.
35038 { echo "$as_me:$LINENO: checking size of int" >&5
35039 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35040 if test "${ac_cv_sizeof_int+set}" = set; then
35041 echo $ECHO_N "(cached) $ECHO_C" >&6
35043 if test "$cross_compiling" = yes; then
35044 # Depending upon the size, compute the lo and hi bounds.
35045 cat >conftest.$ac_ext <<_ACEOF
35048 cat confdefs.h >>conftest.$ac_ext
35049 cat >>conftest.$ac_ext <<_ACEOF
35050 /* end confdefs.h. */
35051 $ac_includes_default
35052 typedef int ac__type_sizeof_;
35056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35063 rm -f conftest.$ac_objext
35064 if { (ac_try="$ac_compile"
35065 case "(($ac_try" in
35066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35067 *) ac_try_echo=$ac_try;;
35069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35070 (eval "$ac_compile") 2>conftest.er1
35072 grep -v '^ *+' conftest.er1 >conftest.err
35074 cat conftest.err >&5
35075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076 (exit $ac_status); } && {
35077 test -z "$ac_c_werror_flag" ||
35078 test ! -s conftest.err
35079 } && test -s conftest.$ac_objext; then
35082 cat >conftest.$ac_ext <<_ACEOF
35085 cat confdefs.h >>conftest.$ac_ext
35086 cat >>conftest.$ac_ext <<_ACEOF
35087 /* end confdefs.h. */
35088 $ac_includes_default
35089 typedef int ac__type_sizeof_;
35093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35100 rm -f conftest.$ac_objext
35101 if { (ac_try="$ac_compile"
35102 case "(($ac_try" in
35103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35104 *) ac_try_echo=$ac_try;;
35106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35107 (eval "$ac_compile") 2>conftest.er1
35109 grep -v '^ *+' conftest.er1 >conftest.err
35111 cat conftest.err >&5
35112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113 (exit $ac_status); } && {
35114 test -z "$ac_c_werror_flag" ||
35115 test ! -s conftest.err
35116 } && test -s conftest.$ac_objext; then
35117 ac_hi=$ac_mid; break
35119 echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35122 ac_lo=`expr $ac_mid + 1`
35123 if test $ac_lo -le $ac_mid; then
35127 ac_mid=`expr 2 '*' $ac_mid + 1`
35130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35133 echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35136 cat >conftest.$ac_ext <<_ACEOF
35139 cat confdefs.h >>conftest.$ac_ext
35140 cat >>conftest.$ac_ext <<_ACEOF
35141 /* end confdefs.h. */
35142 $ac_includes_default
35143 typedef int ac__type_sizeof_;
35147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35154 rm -f conftest.$ac_objext
35155 if { (ac_try="$ac_compile"
35156 case "(($ac_try" in
35157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158 *) ac_try_echo=$ac_try;;
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161 (eval "$ac_compile") 2>conftest.er1
35163 grep -v '^ *+' conftest.er1 >conftest.err
35165 cat conftest.err >&5
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); } && {
35168 test -z "$ac_c_werror_flag" ||
35169 test ! -s conftest.err
35170 } && test -s conftest.$ac_objext; then
35173 cat >conftest.$ac_ext <<_ACEOF
35176 cat confdefs.h >>conftest.$ac_ext
35177 cat >>conftest.$ac_ext <<_ACEOF
35178 /* end confdefs.h. */
35179 $ac_includes_default
35180 typedef int ac__type_sizeof_;
35184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35191 rm -f conftest.$ac_objext
35192 if { (ac_try="$ac_compile"
35193 case "(($ac_try" in
35194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35195 *) ac_try_echo=$ac_try;;
35197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35198 (eval "$ac_compile") 2>conftest.er1
35200 grep -v '^ *+' conftest.er1 >conftest.err
35202 cat conftest.err >&5
35203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204 (exit $ac_status); } && {
35205 test -z "$ac_c_werror_flag" ||
35206 test ! -s conftest.err
35207 } && test -s conftest.$ac_objext; then
35208 ac_lo=$ac_mid; break
35210 echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35213 ac_hi=`expr '(' $ac_mid ')' - 1`
35214 if test $ac_mid -le $ac_hi; then
35218 ac_mid=`expr 2 '*' $ac_mid`
35221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35224 echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35234 # Binary search between lo and hi bounds.
35235 while test "x$ac_lo" != "x$ac_hi"; do
35236 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35237 cat >conftest.$ac_ext <<_ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h. */
35243 $ac_includes_default
35244 typedef int ac__type_sizeof_;
35248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35255 rm -f conftest.$ac_objext
35256 if { (ac_try="$ac_compile"
35257 case "(($ac_try" in
35258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35259 *) ac_try_echo=$ac_try;;
35261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35262 (eval "$ac_compile") 2>conftest.er1
35264 grep -v '^ *+' conftest.er1 >conftest.err
35266 cat conftest.err >&5
35267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268 (exit $ac_status); } && {
35269 test -z "$ac_c_werror_flag" ||
35270 test ! -s conftest.err
35271 } && test -s conftest.$ac_objext; then
35274 echo "$as_me: failed program was:" >&5
35275 sed 's/^/| /' conftest.$ac_ext >&5
35277 ac_lo=`expr '(' $ac_mid ')' + 1`
35280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35283 ?*) ac_cv_sizeof_int=$ac_lo;;
35284 '') if test "$ac_cv_type_int" = yes; then
35285 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35286 See \`config.log' for more details." >&5
35287 echo "$as_me: error: cannot compute sizeof (int)
35288 See \`config.log' for more details." >&2;}
35289 { (exit 77); exit 77; }; }
35295 cat >conftest.$ac_ext <<_ACEOF
35298 cat confdefs.h >>conftest.$ac_ext
35299 cat >>conftest.$ac_ext <<_ACEOF
35300 /* end confdefs.h. */
35301 $ac_includes_default
35302 typedef int ac__type_sizeof_;
35303 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35304 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35306 #include <stdlib.h>
35311 FILE *f = fopen ("conftest.val", "w");
35314 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35316 long int i = longval ();
35317 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35319 fprintf (f, "%ld\n", i);
35323 unsigned long int i = ulongval ();
35324 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35326 fprintf (f, "%lu\n", i);
35328 return ferror (f) || fclose (f) != 0;
35334 rm -f conftest$ac_exeext
35335 if { (ac_try="$ac_link"
35336 case "(($ac_try" in
35337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35338 *) ac_try_echo=$ac_try;;
35340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35341 (eval "$ac_link") 2>&5
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35345 { (case "(($ac_try" in
35346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35347 *) ac_try_echo=$ac_try;;
35349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35350 (eval "$ac_try") 2>&5
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); }; }; then
35354 ac_cv_sizeof_int=`cat conftest.val`
35356 echo "$as_me: program exited with status $ac_status" >&5
35357 echo "$as_me: failed program was:" >&5
35358 sed 's/^/| /' conftest.$ac_ext >&5
35360 ( exit $ac_status )
35361 if test "$ac_cv_type_int" = yes; then
35362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35363 See \`config.log' for more details." >&5
35364 echo "$as_me: error: cannot compute sizeof (int)
35365 See \`config.log' for more details." >&2;}
35366 { (exit 77); exit 77; }; }
35371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35375 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35376 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35380 cat >>confdefs.h <<_ACEOF
35381 #define SIZEOF_INT $ac_cv_sizeof_int
35385 { echo "$as_me:$LINENO: checking for long int" >&5
35386 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35387 if test "${ac_cv_type_long_int+set}" = set; then
35388 echo $ECHO_N "(cached) $ECHO_C" >&6
35390 cat >conftest.$ac_ext <<_ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h. */
35396 $ac_includes_default
35397 typedef long int ac__type_new_;
35401 if ((ac__type_new_ *) 0)
35403 if (sizeof (ac__type_new_))
35409 rm -f conftest.$ac_objext
35410 if { (ac_try="$ac_compile"
35411 case "(($ac_try" in
35412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35413 *) ac_try_echo=$ac_try;;
35415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35416 (eval "$ac_compile") 2>conftest.er1
35418 grep -v '^ *+' conftest.er1 >conftest.err
35420 cat conftest.err >&5
35421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422 (exit $ac_status); } && {
35423 test -z "$ac_c_werror_flag" ||
35424 test ! -s conftest.err
35425 } && test -s conftest.$ac_objext; then
35426 ac_cv_type_long_int=yes
35428 echo "$as_me: failed program was:" >&5
35429 sed 's/^/| /' conftest.$ac_ext >&5
35431 ac_cv_type_long_int=no
35434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35436 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35437 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35439 # The cast to long int works around a bug in the HP C Compiler
35440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35442 # This bug is HP SR number 8606223364.
35443 { echo "$as_me:$LINENO: checking size of long int" >&5
35444 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35445 if test "${ac_cv_sizeof_long_int+set}" = set; then
35446 echo $ECHO_N "(cached) $ECHO_C" >&6
35448 if test "$cross_compiling" = yes; then
35449 # Depending upon the size, compute the lo and hi bounds.
35450 cat >conftest.$ac_ext <<_ACEOF
35453 cat confdefs.h >>conftest.$ac_ext
35454 cat >>conftest.$ac_ext <<_ACEOF
35455 /* end confdefs.h. */
35456 $ac_includes_default
35457 typedef long int ac__type_sizeof_;
35461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35468 rm -f conftest.$ac_objext
35469 if { (ac_try="$ac_compile"
35470 case "(($ac_try" in
35471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35472 *) ac_try_echo=$ac_try;;
35474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35475 (eval "$ac_compile") 2>conftest.er1
35477 grep -v '^ *+' conftest.er1 >conftest.err
35479 cat conftest.err >&5
35480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); } && {
35482 test -z "$ac_c_werror_flag" ||
35483 test ! -s conftest.err
35484 } && test -s conftest.$ac_objext; then
35487 cat >conftest.$ac_ext <<_ACEOF
35490 cat confdefs.h >>conftest.$ac_ext
35491 cat >>conftest.$ac_ext <<_ACEOF
35492 /* end confdefs.h. */
35493 $ac_includes_default
35494 typedef long int ac__type_sizeof_;
35498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35505 rm -f conftest.$ac_objext
35506 if { (ac_try="$ac_compile"
35507 case "(($ac_try" in
35508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35509 *) ac_try_echo=$ac_try;;
35511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35512 (eval "$ac_compile") 2>conftest.er1
35514 grep -v '^ *+' conftest.er1 >conftest.err
35516 cat conftest.err >&5
35517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518 (exit $ac_status); } && {
35519 test -z "$ac_c_werror_flag" ||
35520 test ! -s conftest.err
35521 } && test -s conftest.$ac_objext; then
35522 ac_hi=$ac_mid; break
35524 echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35527 ac_lo=`expr $ac_mid + 1`
35528 if test $ac_lo -le $ac_mid; then
35532 ac_mid=`expr 2 '*' $ac_mid + 1`
35535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35538 echo "$as_me: failed program was:" >&5
35539 sed 's/^/| /' conftest.$ac_ext >&5
35541 cat >conftest.$ac_ext <<_ACEOF
35544 cat confdefs.h >>conftest.$ac_ext
35545 cat >>conftest.$ac_ext <<_ACEOF
35546 /* end confdefs.h. */
35547 $ac_includes_default
35548 typedef long int ac__type_sizeof_;
35552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35559 rm -f conftest.$ac_objext
35560 if { (ac_try="$ac_compile"
35561 case "(($ac_try" in
35562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35563 *) ac_try_echo=$ac_try;;
35565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35566 (eval "$ac_compile") 2>conftest.er1
35568 grep -v '^ *+' conftest.er1 >conftest.err
35570 cat conftest.err >&5
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); } && {
35573 test -z "$ac_c_werror_flag" ||
35574 test ! -s conftest.err
35575 } && test -s conftest.$ac_objext; then
35578 cat >conftest.$ac_ext <<_ACEOF
35581 cat confdefs.h >>conftest.$ac_ext
35582 cat >>conftest.$ac_ext <<_ACEOF
35583 /* end confdefs.h. */
35584 $ac_includes_default
35585 typedef long int ac__type_sizeof_;
35589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35596 rm -f conftest.$ac_objext
35597 if { (ac_try="$ac_compile"
35598 case "(($ac_try" in
35599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35600 *) ac_try_echo=$ac_try;;
35602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35603 (eval "$ac_compile") 2>conftest.er1
35605 grep -v '^ *+' conftest.er1 >conftest.err
35607 cat conftest.err >&5
35608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609 (exit $ac_status); } && {
35610 test -z "$ac_c_werror_flag" ||
35611 test ! -s conftest.err
35612 } && test -s conftest.$ac_objext; then
35613 ac_lo=$ac_mid; break
35615 echo "$as_me: failed program was:" >&5
35616 sed 's/^/| /' conftest.$ac_ext >&5
35618 ac_hi=`expr '(' $ac_mid ')' - 1`
35619 if test $ac_mid -le $ac_hi; then
35623 ac_mid=`expr 2 '*' $ac_mid`
35626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35629 echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35639 # Binary search between lo and hi bounds.
35640 while test "x$ac_lo" != "x$ac_hi"; do
35641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35642 cat >conftest.$ac_ext <<_ACEOF
35645 cat confdefs.h >>conftest.$ac_ext
35646 cat >>conftest.$ac_ext <<_ACEOF
35647 /* end confdefs.h. */
35648 $ac_includes_default
35649 typedef long int ac__type_sizeof_;
35653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35660 rm -f conftest.$ac_objext
35661 if { (ac_try="$ac_compile"
35662 case "(($ac_try" in
35663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35664 *) ac_try_echo=$ac_try;;
35666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35667 (eval "$ac_compile") 2>conftest.er1
35669 grep -v '^ *+' conftest.er1 >conftest.err
35671 cat conftest.err >&5
35672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35673 (exit $ac_status); } && {
35674 test -z "$ac_c_werror_flag" ||
35675 test ! -s conftest.err
35676 } && test -s conftest.$ac_objext; then
35679 echo "$as_me: failed program was:" >&5
35680 sed 's/^/| /' conftest.$ac_ext >&5
35682 ac_lo=`expr '(' $ac_mid ')' + 1`
35685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35688 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35689 '') if test "$ac_cv_type_long_int" = yes; then
35690 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35691 See \`config.log' for more details." >&5
35692 echo "$as_me: error: cannot compute sizeof (long int)
35693 See \`config.log' for more details." >&2;}
35694 { (exit 77); exit 77; }; }
35696 ac_cv_sizeof_long_int=0
35700 cat >conftest.$ac_ext <<_ACEOF
35703 cat confdefs.h >>conftest.$ac_ext
35704 cat >>conftest.$ac_ext <<_ACEOF
35705 /* end confdefs.h. */
35706 $ac_includes_default
35707 typedef long int ac__type_sizeof_;
35708 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35709 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35711 #include <stdlib.h>
35716 FILE *f = fopen ("conftest.val", "w");
35719 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35721 long int i = longval ();
35722 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35724 fprintf (f, "%ld\n", i);
35728 unsigned long int i = ulongval ();
35729 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35731 fprintf (f, "%lu\n", i);
35733 return ferror (f) || fclose (f) != 0;
35739 rm -f conftest$ac_exeext
35740 if { (ac_try="$ac_link"
35741 case "(($ac_try" in
35742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35743 *) ac_try_echo=$ac_try;;
35745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35746 (eval "$ac_link") 2>&5
35748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35750 { (case "(($ac_try" in
35751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35752 *) ac_try_echo=$ac_try;;
35754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35755 (eval "$ac_try") 2>&5
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; }; then
35759 ac_cv_sizeof_long_int=`cat conftest.val`
35761 echo "$as_me: program exited with status $ac_status" >&5
35762 echo "$as_me: failed program was:" >&5
35763 sed 's/^/| /' conftest.$ac_ext >&5
35765 ( exit $ac_status )
35766 if test "$ac_cv_type_long_int" = yes; then
35767 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35768 See \`config.log' for more details." >&5
35769 echo "$as_me: error: cannot compute sizeof (long int)
35770 See \`config.log' for more details." >&2;}
35771 { (exit 77); exit 77; }; }
35773 ac_cv_sizeof_long_int=0
35776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35780 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35781 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35785 cat >>confdefs.h <<_ACEOF
35786 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35790 { echo "$as_me:$LINENO: checking for long long int" >&5
35791 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35792 if test "${ac_cv_type_long_long_int+set}" = set; then
35793 echo $ECHO_N "(cached) $ECHO_C" >&6
35795 cat >conftest.$ac_ext <<_ACEOF
35798 cat confdefs.h >>conftest.$ac_ext
35799 cat >>conftest.$ac_ext <<_ACEOF
35800 /* end confdefs.h. */
35801 $ac_includes_default
35802 typedef long long int ac__type_new_;
35806 if ((ac__type_new_ *) 0)
35808 if (sizeof (ac__type_new_))
35814 rm -f conftest.$ac_objext
35815 if { (ac_try="$ac_compile"
35816 case "(($ac_try" in
35817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35818 *) ac_try_echo=$ac_try;;
35820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35821 (eval "$ac_compile") 2>conftest.er1
35823 grep -v '^ *+' conftest.er1 >conftest.err
35825 cat conftest.err >&5
35826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827 (exit $ac_status); } && {
35828 test -z "$ac_c_werror_flag" ||
35829 test ! -s conftest.err
35830 } && test -s conftest.$ac_objext; then
35831 ac_cv_type_long_long_int=yes
35833 echo "$as_me: failed program was:" >&5
35834 sed 's/^/| /' conftest.$ac_ext >&5
35836 ac_cv_type_long_long_int=no
35839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35841 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35842 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35844 # The cast to long int works around a bug in the HP C Compiler
35845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35847 # This bug is HP SR number 8606223364.
35848 { echo "$as_me:$LINENO: checking size of long long int" >&5
35849 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35850 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35851 echo $ECHO_N "(cached) $ECHO_C" >&6
35853 if test "$cross_compiling" = yes; then
35854 # Depending upon the size, compute the lo and hi bounds.
35855 cat >conftest.$ac_ext <<_ACEOF
35858 cat confdefs.h >>conftest.$ac_ext
35859 cat >>conftest.$ac_ext <<_ACEOF
35860 /* end confdefs.h. */
35861 $ac_includes_default
35862 typedef long long int ac__type_sizeof_;
35866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35873 rm -f conftest.$ac_objext
35874 if { (ac_try="$ac_compile"
35875 case "(($ac_try" in
35876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35877 *) ac_try_echo=$ac_try;;
35879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35880 (eval "$ac_compile") 2>conftest.er1
35882 grep -v '^ *+' conftest.er1 >conftest.err
35884 cat conftest.err >&5
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); } && {
35887 test -z "$ac_c_werror_flag" ||
35888 test ! -s conftest.err
35889 } && test -s conftest.$ac_objext; then
35892 cat >conftest.$ac_ext <<_ACEOF
35895 cat confdefs.h >>conftest.$ac_ext
35896 cat >>conftest.$ac_ext <<_ACEOF
35897 /* end confdefs.h. */
35898 $ac_includes_default
35899 typedef long long int ac__type_sizeof_;
35903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35910 rm -f conftest.$ac_objext
35911 if { (ac_try="$ac_compile"
35912 case "(($ac_try" in
35913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35914 *) ac_try_echo=$ac_try;;
35916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35917 (eval "$ac_compile") 2>conftest.er1
35919 grep -v '^ *+' conftest.er1 >conftest.err
35921 cat conftest.err >&5
35922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35923 (exit $ac_status); } && {
35924 test -z "$ac_c_werror_flag" ||
35925 test ! -s conftest.err
35926 } && test -s conftest.$ac_objext; then
35927 ac_hi=$ac_mid; break
35929 echo "$as_me: failed program was:" >&5
35930 sed 's/^/| /' conftest.$ac_ext >&5
35932 ac_lo=`expr $ac_mid + 1`
35933 if test $ac_lo -le $ac_mid; then
35937 ac_mid=`expr 2 '*' $ac_mid + 1`
35940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35943 echo "$as_me: failed program was:" >&5
35944 sed 's/^/| /' conftest.$ac_ext >&5
35946 cat >conftest.$ac_ext <<_ACEOF
35949 cat confdefs.h >>conftest.$ac_ext
35950 cat >>conftest.$ac_ext <<_ACEOF
35951 /* end confdefs.h. */
35952 $ac_includes_default
35953 typedef long long int ac__type_sizeof_;
35957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35964 rm -f conftest.$ac_objext
35965 if { (ac_try="$ac_compile"
35966 case "(($ac_try" in
35967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35968 *) ac_try_echo=$ac_try;;
35970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35971 (eval "$ac_compile") 2>conftest.er1
35973 grep -v '^ *+' conftest.er1 >conftest.err
35975 cat conftest.err >&5
35976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977 (exit $ac_status); } && {
35978 test -z "$ac_c_werror_flag" ||
35979 test ! -s conftest.err
35980 } && test -s conftest.$ac_objext; then
35983 cat >conftest.$ac_ext <<_ACEOF
35986 cat confdefs.h >>conftest.$ac_ext
35987 cat >>conftest.$ac_ext <<_ACEOF
35988 /* end confdefs.h. */
35989 $ac_includes_default
35990 typedef long long int ac__type_sizeof_;
35994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36001 rm -f conftest.$ac_objext
36002 if { (ac_try="$ac_compile"
36003 case "(($ac_try" in
36004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36005 *) ac_try_echo=$ac_try;;
36007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36008 (eval "$ac_compile") 2>conftest.er1
36010 grep -v '^ *+' conftest.er1 >conftest.err
36012 cat conftest.err >&5
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); } && {
36015 test -z "$ac_c_werror_flag" ||
36016 test ! -s conftest.err
36017 } && test -s conftest.$ac_objext; then
36018 ac_lo=$ac_mid; break
36020 echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36023 ac_hi=`expr '(' $ac_mid ')' - 1`
36024 if test $ac_mid -le $ac_hi; then
36028 ac_mid=`expr 2 '*' $ac_mid`
36031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36034 echo "$as_me: failed program was:" >&5
36035 sed 's/^/| /' conftest.$ac_ext >&5
36040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36044 # Binary search between lo and hi bounds.
36045 while test "x$ac_lo" != "x$ac_hi"; do
36046 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36047 cat >conftest.$ac_ext <<_ACEOF
36050 cat confdefs.h >>conftest.$ac_ext
36051 cat >>conftest.$ac_ext <<_ACEOF
36052 /* end confdefs.h. */
36053 $ac_includes_default
36054 typedef long long int ac__type_sizeof_;
36058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36065 rm -f conftest.$ac_objext
36066 if { (ac_try="$ac_compile"
36067 case "(($ac_try" in
36068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36069 *) ac_try_echo=$ac_try;;
36071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36072 (eval "$ac_compile") 2>conftest.er1
36074 grep -v '^ *+' conftest.er1 >conftest.err
36076 cat conftest.err >&5
36077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); } && {
36079 test -z "$ac_c_werror_flag" ||
36080 test ! -s conftest.err
36081 } && test -s conftest.$ac_objext; then
36084 echo "$as_me: failed program was:" >&5
36085 sed 's/^/| /' conftest.$ac_ext >&5
36087 ac_lo=`expr '(' $ac_mid ')' + 1`
36090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36093 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36094 '') if test "$ac_cv_type_long_long_int" = yes; then
36095 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36096 See \`config.log' for more details." >&5
36097 echo "$as_me: error: cannot compute sizeof (long long int)
36098 See \`config.log' for more details." >&2;}
36099 { (exit 77); exit 77; }; }
36101 ac_cv_sizeof_long_long_int=0
36105 cat >conftest.$ac_ext <<_ACEOF
36108 cat confdefs.h >>conftest.$ac_ext
36109 cat >>conftest.$ac_ext <<_ACEOF
36110 /* end confdefs.h. */
36111 $ac_includes_default
36112 typedef long long int ac__type_sizeof_;
36113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36116 #include <stdlib.h>
36121 FILE *f = fopen ("conftest.val", "w");
36124 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36126 long int i = longval ();
36127 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36129 fprintf (f, "%ld\n", i);
36133 unsigned long int i = ulongval ();
36134 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36136 fprintf (f, "%lu\n", i);
36138 return ferror (f) || fclose (f) != 0;
36144 rm -f conftest$ac_exeext
36145 if { (ac_try="$ac_link"
36146 case "(($ac_try" in
36147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36148 *) ac_try_echo=$ac_try;;
36150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36151 (eval "$ac_link") 2>&5
36153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36155 { (case "(($ac_try" in
36156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36157 *) ac_try_echo=$ac_try;;
36159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36160 (eval "$ac_try") 2>&5
36162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163 (exit $ac_status); }; }; then
36164 ac_cv_sizeof_long_long_int=`cat conftest.val`
36166 echo "$as_me: program exited with status $ac_status" >&5
36167 echo "$as_me: failed program was:" >&5
36168 sed 's/^/| /' conftest.$ac_ext >&5
36170 ( exit $ac_status )
36171 if test "$ac_cv_type_long_long_int" = yes; then
36172 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36173 See \`config.log' for more details." >&5
36174 echo "$as_me: error: cannot compute sizeof (long long int)
36175 See \`config.log' for more details." >&2;}
36176 { (exit 77); exit 77; }; }
36178 ac_cv_sizeof_long_long_int=0
36181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36185 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36186 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36190 cat >>confdefs.h <<_ACEOF
36191 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36195 { echo "$as_me:$LINENO: checking for int *" >&5
36196 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36197 if test "${ac_cv_type_int_p+set}" = set; then
36198 echo $ECHO_N "(cached) $ECHO_C" >&6
36200 cat >conftest.$ac_ext <<_ACEOF
36203 cat confdefs.h >>conftest.$ac_ext
36204 cat >>conftest.$ac_ext <<_ACEOF
36205 /* end confdefs.h. */
36206 $ac_includes_default
36207 typedef int * ac__type_new_;
36211 if ((ac__type_new_ *) 0)
36213 if (sizeof (ac__type_new_))
36219 rm -f conftest.$ac_objext
36220 if { (ac_try="$ac_compile"
36221 case "(($ac_try" in
36222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36223 *) ac_try_echo=$ac_try;;
36225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36226 (eval "$ac_compile") 2>conftest.er1
36228 grep -v '^ *+' conftest.er1 >conftest.err
36230 cat conftest.err >&5
36231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232 (exit $ac_status); } && {
36233 test -z "$ac_c_werror_flag" ||
36234 test ! -s conftest.err
36235 } && test -s conftest.$ac_objext; then
36236 ac_cv_type_int_p=yes
36238 echo "$as_me: failed program was:" >&5
36239 sed 's/^/| /' conftest.$ac_ext >&5
36241 ac_cv_type_int_p=no
36244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36246 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36247 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36249 # The cast to long int works around a bug in the HP C Compiler
36250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36252 # This bug is HP SR number 8606223364.
36253 { echo "$as_me:$LINENO: checking size of int *" >&5
36254 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36255 if test "${ac_cv_sizeof_int_p+set}" = set; then
36256 echo $ECHO_N "(cached) $ECHO_C" >&6
36258 if test "$cross_compiling" = yes; then
36259 # Depending upon the size, compute the lo and hi bounds.
36260 cat >conftest.$ac_ext <<_ACEOF
36263 cat confdefs.h >>conftest.$ac_ext
36264 cat >>conftest.$ac_ext <<_ACEOF
36265 /* end confdefs.h. */
36266 $ac_includes_default
36267 typedef int * ac__type_sizeof_;
36271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36278 rm -f conftest.$ac_objext
36279 if { (ac_try="$ac_compile"
36280 case "(($ac_try" in
36281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36282 *) ac_try_echo=$ac_try;;
36284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36285 (eval "$ac_compile") 2>conftest.er1
36287 grep -v '^ *+' conftest.er1 >conftest.err
36289 cat conftest.err >&5
36290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291 (exit $ac_status); } && {
36292 test -z "$ac_c_werror_flag" ||
36293 test ! -s conftest.err
36294 } && test -s conftest.$ac_objext; then
36297 cat >conftest.$ac_ext <<_ACEOF
36300 cat confdefs.h >>conftest.$ac_ext
36301 cat >>conftest.$ac_ext <<_ACEOF
36302 /* end confdefs.h. */
36303 $ac_includes_default
36304 typedef int * ac__type_sizeof_;
36308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36315 rm -f conftest.$ac_objext
36316 if { (ac_try="$ac_compile"
36317 case "(($ac_try" in
36318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36319 *) ac_try_echo=$ac_try;;
36321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36322 (eval "$ac_compile") 2>conftest.er1
36324 grep -v '^ *+' conftest.er1 >conftest.err
36326 cat conftest.err >&5
36327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328 (exit $ac_status); } && {
36329 test -z "$ac_c_werror_flag" ||
36330 test ! -s conftest.err
36331 } && test -s conftest.$ac_objext; then
36332 ac_hi=$ac_mid; break
36334 echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36337 ac_lo=`expr $ac_mid + 1`
36338 if test $ac_lo -le $ac_mid; then
36342 ac_mid=`expr 2 '*' $ac_mid + 1`
36345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36348 echo "$as_me: failed program was:" >&5
36349 sed 's/^/| /' conftest.$ac_ext >&5
36351 cat >conftest.$ac_ext <<_ACEOF
36354 cat confdefs.h >>conftest.$ac_ext
36355 cat >>conftest.$ac_ext <<_ACEOF
36356 /* end confdefs.h. */
36357 $ac_includes_default
36358 typedef int * ac__type_sizeof_;
36362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36369 rm -f conftest.$ac_objext
36370 if { (ac_try="$ac_compile"
36371 case "(($ac_try" in
36372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36373 *) ac_try_echo=$ac_try;;
36375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36376 (eval "$ac_compile") 2>conftest.er1
36378 grep -v '^ *+' conftest.er1 >conftest.err
36380 cat conftest.err >&5
36381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382 (exit $ac_status); } && {
36383 test -z "$ac_c_werror_flag" ||
36384 test ! -s conftest.err
36385 } && test -s conftest.$ac_objext; then
36388 cat >conftest.$ac_ext <<_ACEOF
36391 cat confdefs.h >>conftest.$ac_ext
36392 cat >>conftest.$ac_ext <<_ACEOF
36393 /* end confdefs.h. */
36394 $ac_includes_default
36395 typedef int * ac__type_sizeof_;
36399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36406 rm -f conftest.$ac_objext
36407 if { (ac_try="$ac_compile"
36408 case "(($ac_try" in
36409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36410 *) ac_try_echo=$ac_try;;
36412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36413 (eval "$ac_compile") 2>conftest.er1
36415 grep -v '^ *+' conftest.er1 >conftest.err
36417 cat conftest.err >&5
36418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419 (exit $ac_status); } && {
36420 test -z "$ac_c_werror_flag" ||
36421 test ! -s conftest.err
36422 } && test -s conftest.$ac_objext; then
36423 ac_lo=$ac_mid; break
36425 echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36428 ac_hi=`expr '(' $ac_mid ')' - 1`
36429 if test $ac_mid -le $ac_hi; then
36433 ac_mid=`expr 2 '*' $ac_mid`
36436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36439 echo "$as_me: failed program was:" >&5
36440 sed 's/^/| /' conftest.$ac_ext >&5
36445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36449 # Binary search between lo and hi bounds.
36450 while test "x$ac_lo" != "x$ac_hi"; do
36451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36452 cat >conftest.$ac_ext <<_ACEOF
36455 cat confdefs.h >>conftest.$ac_ext
36456 cat >>conftest.$ac_ext <<_ACEOF
36457 /* end confdefs.h. */
36458 $ac_includes_default
36459 typedef int * ac__type_sizeof_;
36463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36470 rm -f conftest.$ac_objext
36471 if { (ac_try="$ac_compile"
36472 case "(($ac_try" in
36473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36474 *) ac_try_echo=$ac_try;;
36476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36477 (eval "$ac_compile") 2>conftest.er1
36479 grep -v '^ *+' conftest.er1 >conftest.err
36481 cat conftest.err >&5
36482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483 (exit $ac_status); } && {
36484 test -z "$ac_c_werror_flag" ||
36485 test ! -s conftest.err
36486 } && test -s conftest.$ac_objext; then
36489 echo "$as_me: failed program was:" >&5
36490 sed 's/^/| /' conftest.$ac_ext >&5
36492 ac_lo=`expr '(' $ac_mid ')' + 1`
36495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36498 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36499 '') if test "$ac_cv_type_int_p" = yes; then
36500 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36501 See \`config.log' for more details." >&5
36502 echo "$as_me: error: cannot compute sizeof (int *)
36503 See \`config.log' for more details." >&2;}
36504 { (exit 77); exit 77; }; }
36506 ac_cv_sizeof_int_p=0
36510 cat >conftest.$ac_ext <<_ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h. */
36516 $ac_includes_default
36517 typedef int * ac__type_sizeof_;
36518 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36519 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36521 #include <stdlib.h>
36526 FILE *f = fopen ("conftest.val", "w");
36529 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36531 long int i = longval ();
36532 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36534 fprintf (f, "%ld\n", i);
36538 unsigned long int i = ulongval ();
36539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36541 fprintf (f, "%lu\n", i);
36543 return ferror (f) || fclose (f) != 0;
36549 rm -f conftest$ac_exeext
36550 if { (ac_try="$ac_link"
36551 case "(($ac_try" in
36552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36553 *) ac_try_echo=$ac_try;;
36555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36556 (eval "$ac_link") 2>&5
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36560 { (case "(($ac_try" in
36561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36562 *) ac_try_echo=$ac_try;;
36564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36565 (eval "$ac_try") 2>&5
36567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568 (exit $ac_status); }; }; then
36569 ac_cv_sizeof_int_p=`cat conftest.val`
36571 echo "$as_me: program exited with status $ac_status" >&5
36572 echo "$as_me: failed program was:" >&5
36573 sed 's/^/| /' conftest.$ac_ext >&5
36575 ( exit $ac_status )
36576 if test "$ac_cv_type_int_p" = yes; then
36577 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36578 See \`config.log' for more details." >&5
36579 echo "$as_me: error: cannot compute sizeof (int *)
36580 See \`config.log' for more details." >&2;}
36581 { (exit 77); exit 77; }; }
36583 ac_cv_sizeof_int_p=0
36586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36590 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36591 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36595 cat >>confdefs.h <<_ACEOF
36596 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36601 { echo "$as_me:$LINENO: checking for u_int type" >&5
36602 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36603 if test "${ac_cv_have_u_int+set}" = set; then
36604 echo $ECHO_N "(cached) $ECHO_C" >&6
36607 cat >conftest.$ac_ext <<_ACEOF
36610 cat confdefs.h >>conftest.$ac_ext
36611 cat >>conftest.$ac_ext <<_ACEOF
36612 /* end confdefs.h. */
36614 #include <sys/types.h>
36626 rm -f conftest.$ac_objext
36627 if { (ac_try="$ac_compile"
36628 case "(($ac_try" in
36629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36630 *) ac_try_echo=$ac_try;;
36632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36633 (eval "$ac_compile") 2>conftest.er1
36635 grep -v '^ *+' conftest.er1 >conftest.err
36637 cat conftest.err >&5
36638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639 (exit $ac_status); } && {
36640 test -z "$ac_c_werror_flag" ||
36641 test ! -s conftest.err
36642 } && test -s conftest.$ac_objext; then
36644 ac_cv_have_u_int="yes"
36647 echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36651 ac_cv_have_u_int="no"
36656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36660 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36661 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36662 if test "x$ac_cv_have_u_int" = "xyes" ; then
36663 cat >>confdefs.h <<\_ACEOF
36664 #define HAVE_U_INT 1
36670 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36671 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36672 if test "${ac_cv_have_intmax_t+set}" = set; then
36673 echo $ECHO_N "(cached) $ECHO_C" >&6
36676 cat >conftest.$ac_ext <<_ACEOF
36679 cat confdefs.h >>conftest.$ac_ext
36680 cat >>conftest.$ac_ext <<_ACEOF
36681 /* end confdefs.h. */
36683 #include <sys/types.h>
36695 rm -f conftest.$ac_objext
36696 if { (ac_try="$ac_compile"
36697 case "(($ac_try" in
36698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36699 *) ac_try_echo=$ac_try;;
36701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36702 (eval "$ac_compile") 2>conftest.er1
36704 grep -v '^ *+' conftest.er1 >conftest.err
36706 cat conftest.err >&5
36707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708 (exit $ac_status); } && {
36709 test -z "$ac_c_werror_flag" ||
36710 test ! -s conftest.err
36711 } && test -s conftest.$ac_objext; then
36713 ac_cv_have_intmax_t="yes"
36716 echo "$as_me: failed program was:" >&5
36717 sed 's/^/| /' conftest.$ac_ext >&5
36720 cat >conftest.$ac_ext <<_ACEOF
36723 cat confdefs.h >>conftest.$ac_ext
36724 cat >>conftest.$ac_ext <<_ACEOF
36725 /* end confdefs.h. */
36727 #include <stdint.h>
36739 rm -f conftest.$ac_objext
36740 if { (ac_try="$ac_compile"
36741 case "(($ac_try" in
36742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36743 *) ac_try_echo=$ac_try;;
36745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36746 (eval "$ac_compile") 2>conftest.er1
36748 grep -v '^ *+' conftest.er1 >conftest.err
36750 cat conftest.err >&5
36751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752 (exit $ac_status); } && {
36753 test -z "$ac_c_werror_flag" ||
36754 test ! -s conftest.err
36755 } && test -s conftest.$ac_objext; then
36757 ac_cv_have_intmax_t="yes"
36760 echo "$as_me: failed program was:" >&5
36761 sed 's/^/| /' conftest.$ac_ext >&5
36764 ac_cv_have_intmax_t="no"
36769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36778 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36779 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36780 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36781 cat >>confdefs.h <<\_ACEOF
36782 #define HAVE_INTMAX_T 1
36788 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36789 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36790 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36791 echo $ECHO_N "(cached) $ECHO_C" >&6
36794 cat >conftest.$ac_ext <<_ACEOF
36797 cat confdefs.h >>conftest.$ac_ext
36798 cat >>conftest.$ac_ext <<_ACEOF
36799 /* end confdefs.h. */
36801 #include <sys/types.h>
36807 u_intmax_t a; a = 1;
36813 rm -f conftest.$ac_objext
36814 if { (ac_try="$ac_compile"
36815 case "(($ac_try" in
36816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36817 *) ac_try_echo=$ac_try;;
36819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36820 (eval "$ac_compile") 2>conftest.er1
36822 grep -v '^ *+' conftest.er1 >conftest.err
36824 cat conftest.err >&5
36825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826 (exit $ac_status); } && {
36827 test -z "$ac_c_werror_flag" ||
36828 test ! -s conftest.err
36829 } && test -s conftest.$ac_objext; then
36831 ac_cv_have_u_intmax_t="yes"
36834 echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36838 cat >conftest.$ac_ext <<_ACEOF
36841 cat confdefs.h >>conftest.$ac_ext
36842 cat >>conftest.$ac_ext <<_ACEOF
36843 /* end confdefs.h. */
36845 #include <stdint.h>
36851 u_intmax_t a; a = 1;
36857 rm -f conftest.$ac_objext
36858 if { (ac_try="$ac_compile"
36859 case "(($ac_try" in
36860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36861 *) ac_try_echo=$ac_try;;
36863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36864 (eval "$ac_compile") 2>conftest.er1
36866 grep -v '^ *+' conftest.er1 >conftest.err
36868 cat conftest.err >&5
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); } && {
36871 test -z "$ac_c_werror_flag" ||
36872 test ! -s conftest.err
36873 } && test -s conftest.$ac_objext; then
36875 ac_cv_have_u_intmax_t="yes"
36878 echo "$as_me: failed program was:" >&5
36879 sed 's/^/| /' conftest.$ac_ext >&5
36882 ac_cv_have_u_intmax_t="no"
36887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36896 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36897 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36898 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36899 cat >>confdefs.h <<\_ACEOF
36900 #define HAVE_U_INTMAX_T 1
36906 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36907 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36908 if test "${ac_cv_have_intxx_t+set}" = set; then
36909 echo $ECHO_N "(cached) $ECHO_C" >&6
36912 cat >conftest.$ac_ext <<_ACEOF
36915 cat confdefs.h >>conftest.$ac_ext
36916 cat >>conftest.$ac_ext <<_ACEOF
36917 /* end confdefs.h. */
36919 #include <sys/types.h>
36925 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36931 rm -f conftest.$ac_objext
36932 if { (ac_try="$ac_compile"
36933 case "(($ac_try" in
36934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36935 *) ac_try_echo=$ac_try;;
36937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36938 (eval "$ac_compile") 2>conftest.er1
36940 grep -v '^ *+' conftest.er1 >conftest.err
36942 cat conftest.err >&5
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); } && {
36945 test -z "$ac_c_werror_flag" ||
36946 test ! -s conftest.err
36947 } && test -s conftest.$ac_objext; then
36949 ac_cv_have_intxx_t="yes"
36952 echo "$as_me: failed program was:" >&5
36953 sed 's/^/| /' conftest.$ac_ext >&5
36956 ac_cv_have_intxx_t="no"
36961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36965 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36966 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36967 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36968 cat >>confdefs.h <<\_ACEOF
36969 #define HAVE_INTXX_T 1
36975 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36976 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36977 if test "${ac_cv_have_int64_t+set}" = set; then
36978 echo $ECHO_N "(cached) $ECHO_C" >&6
36981 cat >conftest.$ac_ext <<_ACEOF
36984 cat confdefs.h >>conftest.$ac_ext
36985 cat >>conftest.$ac_ext <<_ACEOF
36986 /* end confdefs.h. */
36988 #include <sys/types.h>
37000 rm -f conftest.$ac_objext
37001 if { (ac_try="$ac_compile"
37002 case "(($ac_try" in
37003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37004 *) ac_try_echo=$ac_try;;
37006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37007 (eval "$ac_compile") 2>conftest.er1
37009 grep -v '^ *+' conftest.er1 >conftest.err
37011 cat conftest.err >&5
37012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013 (exit $ac_status); } && {
37014 test -z "$ac_c_werror_flag" ||
37015 test ! -s conftest.err
37016 } && test -s conftest.$ac_objext; then
37018 ac_cv_have_int64_t="yes"
37021 echo "$as_me: failed program was:" >&5
37022 sed 's/^/| /' conftest.$ac_ext >&5
37025 ac_cv_have_int64_t="no"
37030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37034 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37035 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37036 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37037 cat >>confdefs.h <<\_ACEOF
37038 #define HAVE_INT64_T 1
37044 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37045 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37046 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37047 echo $ECHO_N "(cached) $ECHO_C" >&6
37050 cat >conftest.$ac_ext <<_ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h. */
37057 #include <sys/types.h>
37063 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37069 rm -f conftest.$ac_objext
37070 if { (ac_try="$ac_compile"
37071 case "(($ac_try" in
37072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073 *) ac_try_echo=$ac_try;;
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076 (eval "$ac_compile") 2>conftest.er1
37078 grep -v '^ *+' conftest.er1 >conftest.err
37080 cat conftest.err >&5
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); } && {
37083 test -z "$ac_c_werror_flag" ||
37084 test ! -s conftest.err
37085 } && test -s conftest.$ac_objext; then
37087 ac_cv_have_u_intxx_t="yes"
37090 echo "$as_me: failed program was:" >&5
37091 sed 's/^/| /' conftest.$ac_ext >&5
37094 ac_cv_have_u_intxx_t="no"
37099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37103 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37104 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37105 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37106 cat >>confdefs.h <<\_ACEOF
37107 #define HAVE_U_INTXX_T 1
37113 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37114 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37115 if test "${ac_cv_have_u_int64_t+set}" = set; then
37116 echo $ECHO_N "(cached) $ECHO_C" >&6
37119 cat >conftest.$ac_ext <<_ACEOF
37122 cat confdefs.h >>conftest.$ac_ext
37123 cat >>conftest.$ac_ext <<_ACEOF
37124 /* end confdefs.h. */
37126 #include <sys/types.h>
37132 u_int64_t a; a = 1;
37138 rm -f conftest.$ac_objext
37139 if { (ac_try="$ac_compile"
37140 case "(($ac_try" in
37141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37142 *) ac_try_echo=$ac_try;;
37144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37145 (eval "$ac_compile") 2>conftest.er1
37147 grep -v '^ *+' conftest.er1 >conftest.err
37149 cat conftest.err >&5
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); } && {
37152 test -z "$ac_c_werror_flag" ||
37153 test ! -s conftest.err
37154 } && test -s conftest.$ac_objext; then
37156 ac_cv_have_u_int64_t="yes"
37159 echo "$as_me: failed program was:" >&5
37160 sed 's/^/| /' conftest.$ac_ext >&5
37163 ac_cv_have_u_int64_t="no"
37168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37172 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37173 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37174 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37175 cat >>confdefs.h <<\_ACEOF
37176 #define HAVE_U_INT64_T 1
37182 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37183 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37185 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37186 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37187 cat >conftest.$ac_ext <<_ACEOF
37190 cat confdefs.h >>conftest.$ac_ext
37191 cat >>conftest.$ac_ext <<_ACEOF
37192 /* end confdefs.h. */
37194 #include <sys/bitypes.h>
37200 int8_t a; int16_t b; int32_t c;
37201 u_int8_t e; u_int16_t f; u_int32_t g;
37202 a = b = c = e = f = g = 1;
37208 rm -f conftest.$ac_objext
37209 if { (ac_try="$ac_compile"
37210 case "(($ac_try" in
37211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37212 *) ac_try_echo=$ac_try;;
37214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37215 (eval "$ac_compile") 2>conftest.er1
37217 grep -v '^ *+' conftest.er1 >conftest.err
37219 cat conftest.err >&5
37220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221 (exit $ac_status); } && {
37222 test -z "$ac_c_werror_flag" ||
37223 test ! -s conftest.err
37224 } && test -s conftest.$ac_objext; then
37226 cat >>confdefs.h <<\_ACEOF
37227 #define HAVE_U_INTXX_T 1
37230 cat >>confdefs.h <<\_ACEOF
37231 #define HAVE_INTXX_T 1
37234 cat >>confdefs.h <<\_ACEOF
37235 #define HAVE_SYS_BITYPES_H 1
37238 { echo "$as_me:$LINENO: result: yes" >&5
37239 echo "${ECHO_T}yes" >&6; }
37242 echo "$as_me: failed program was:" >&5
37243 sed 's/^/| /' conftest.$ac_ext >&5
37246 { echo "$as_me:$LINENO: result: no" >&5
37247 echo "${ECHO_T}no" >&6; }
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37255 if test -z "$have_u_intxx_t" ; then
37256 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37257 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37258 if test "${ac_cv_have_uintxx_t+set}" = set; then
37259 echo $ECHO_N "(cached) $ECHO_C" >&6
37262 cat >conftest.$ac_ext <<_ACEOF
37265 cat confdefs.h >>conftest.$ac_ext
37266 cat >>conftest.$ac_ext <<_ACEOF
37267 /* end confdefs.h. */
37269 #include <sys/types.h>
37275 uint8_t a; uint16_t b;
37276 uint32_t c; a = b = c = 1;
37282 rm -f conftest.$ac_objext
37283 if { (ac_try="$ac_compile"
37284 case "(($ac_try" in
37285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37286 *) ac_try_echo=$ac_try;;
37288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37289 (eval "$ac_compile") 2>conftest.er1
37291 grep -v '^ *+' conftest.er1 >conftest.err
37293 cat conftest.err >&5
37294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37295 (exit $ac_status); } && {
37296 test -z "$ac_c_werror_flag" ||
37297 test ! -s conftest.err
37298 } && test -s conftest.$ac_objext; then
37300 ac_cv_have_uintxx_t="yes"
37303 echo "$as_me: failed program was:" >&5
37304 sed 's/^/| /' conftest.$ac_ext >&5
37307 ac_cv_have_uintxx_t="no"
37312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37316 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37317 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37318 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37319 cat >>confdefs.h <<\_ACEOF
37320 #define HAVE_UINTXX_T 1
37326 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37327 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37329 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37330 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37331 cat >conftest.$ac_ext <<_ACEOF
37334 cat confdefs.h >>conftest.$ac_ext
37335 cat >>conftest.$ac_ext <<_ACEOF
37336 /* end confdefs.h. */
37338 #include <sys/bitypes.h>
37344 int64_t a; u_int64_t b;
37351 rm -f conftest.$ac_objext
37352 if { (ac_try="$ac_compile"
37353 case "(($ac_try" in
37354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37355 *) ac_try_echo=$ac_try;;
37357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37358 (eval "$ac_compile") 2>conftest.er1
37360 grep -v '^ *+' conftest.er1 >conftest.err
37362 cat conftest.err >&5
37363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364 (exit $ac_status); } && {
37365 test -z "$ac_c_werror_flag" ||
37366 test ! -s conftest.err
37367 } && test -s conftest.$ac_objext; then
37369 cat >>confdefs.h <<\_ACEOF
37370 #define HAVE_U_INT64_T 1
37373 cat >>confdefs.h <<\_ACEOF
37374 #define HAVE_INT64_T 1
37377 { echo "$as_me:$LINENO: result: yes" >&5
37378 echo "${ECHO_T}yes" >&6; }
37381 echo "$as_me: failed program was:" >&5
37382 sed 's/^/| /' conftest.$ac_ext >&5
37385 { echo "$as_me:$LINENO: result: no" >&5
37386 echo "${ECHO_T}no" >&6; }
37391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37394 if (test -z "$have_uintxx_t" && \
37395 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37397 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37398 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37399 cat >conftest.$ac_ext <<_ACEOF
37402 cat confdefs.h >>conftest.$ac_ext
37403 cat >>conftest.$ac_ext <<_ACEOF
37404 /* end confdefs.h. */
37406 #include <sys/bitypes.h>
37412 uint8_t a; uint16_t b;
37413 uint32_t c; a = b = c = 1;
37419 rm -f conftest.$ac_objext
37420 if { (ac_try="$ac_compile"
37421 case "(($ac_try" in
37422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37423 *) ac_try_echo=$ac_try;;
37425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37426 (eval "$ac_compile") 2>conftest.er1
37428 grep -v '^ *+' conftest.er1 >conftest.err
37430 cat conftest.err >&5
37431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432 (exit $ac_status); } && {
37433 test -z "$ac_c_werror_flag" ||
37434 test ! -s conftest.err
37435 } && test -s conftest.$ac_objext; then
37437 cat >>confdefs.h <<\_ACEOF
37438 #define HAVE_UINTXX_T 1
37441 { echo "$as_me:$LINENO: result: yes" >&5
37442 echo "${ECHO_T}yes" >&6; }
37445 echo "$as_me: failed program was:" >&5
37446 sed 's/^/| /' conftest.$ac_ext >&5
37449 { echo "$as_me:$LINENO: result: no" >&5
37450 echo "${ECHO_T}no" >&6; }
37455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37491 echo $ECHO_N "(cached) $ECHO_C" >&6
37493 cat >conftest.$ac_ext <<_ACEOF
37496 cat confdefs.h >>conftest.$ac_ext
37497 cat >>conftest.$ac_ext <<_ACEOF
37498 /* end confdefs.h. */
37499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37501 #define $ac_func innocuous_$ac_func
37503 /* System header to define __stub macros and hopefully few prototypes,
37504 which can conflict with char $ac_func (); below.
37505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37506 <limits.h> exists even on freestanding compilers. */
37509 # include <limits.h>
37511 # include <assert.h>
37516 /* Override any GCC internal prototype to avoid an error.
37517 Use char because int might match the return type of a GCC
37518 builtin and then its argument prototype would still apply. */
37523 /* The GNU C library defines this for functions which it implements
37524 to always fail with ENOSYS. Some functions are actually named
37525 something starting with __ and the normal name is an alias. */
37526 #if defined __stub_$ac_func || defined __stub___$ac_func
37533 return $ac_func ();
37538 rm -f conftest.$ac_objext conftest$ac_exeext
37539 if { (ac_try="$ac_link"
37540 case "(($ac_try" in
37541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37542 *) ac_try_echo=$ac_try;;
37544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37545 (eval "$ac_link") 2>conftest.er1
37547 grep -v '^ *+' conftest.er1 >conftest.err
37549 cat conftest.err >&5
37550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551 (exit $ac_status); } && {
37552 test -z "$ac_c_werror_flag" ||
37553 test ! -s conftest.err
37554 } && test -s conftest$ac_exeext &&
37555 $as_test_x conftest$ac_exeext; then
37556 eval "$as_ac_var=yes"
37558 echo "$as_me: failed program was:" >&5
37559 sed 's/^/| /' conftest.$ac_ext >&5
37561 eval "$as_ac_var=no"
37564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37565 conftest$ac_exeext conftest.$ac_ext
37567 ac_res=`eval echo '${'$as_ac_var'}'`
37568 { echo "$as_me:$LINENO: result: $ac_res" >&5
37569 echo "${ECHO_T}$ac_res" >&6; }
37570 if test `eval echo '${'$as_ac_var'}'` = yes; then
37571 cat >>confdefs.h <<_ACEOF
37572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37576 echo 'configure: cannot find needed function.'; exit 1
37583 for ac_func in fchdir
37585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37589 echo $ECHO_N "(cached) $ECHO_C" >&6
37591 cat >conftest.$ac_ext <<_ACEOF
37594 cat confdefs.h >>conftest.$ac_ext
37595 cat >>conftest.$ac_ext <<_ACEOF
37596 /* end confdefs.h. */
37597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37599 #define $ac_func innocuous_$ac_func
37601 /* System header to define __stub macros and hopefully few prototypes,
37602 which can conflict with char $ac_func (); below.
37603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37604 <limits.h> exists even on freestanding compilers. */
37607 # include <limits.h>
37609 # include <assert.h>
37614 /* Override any GCC internal prototype to avoid an error.
37615 Use char because int might match the return type of a GCC
37616 builtin and then its argument prototype would still apply. */
37621 /* The GNU C library defines this for functions which it implements
37622 to always fail with ENOSYS. Some functions are actually named
37623 something starting with __ and the normal name is an alias. */
37624 #if defined __stub_$ac_func || defined __stub___$ac_func
37631 return $ac_func ();
37636 rm -f conftest.$ac_objext conftest$ac_exeext
37637 if { (ac_try="$ac_link"
37638 case "(($ac_try" in
37639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37640 *) ac_try_echo=$ac_try;;
37642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37643 (eval "$ac_link") 2>conftest.er1
37645 grep -v '^ *+' conftest.er1 >conftest.err
37647 cat conftest.err >&5
37648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649 (exit $ac_status); } && {
37650 test -z "$ac_c_werror_flag" ||
37651 test ! -s conftest.err
37652 } && test -s conftest$ac_exeext &&
37653 $as_test_x conftest$ac_exeext; then
37654 eval "$as_ac_var=yes"
37656 echo "$as_me: failed program was:" >&5
37657 sed 's/^/| /' conftest.$ac_ext >&5
37659 eval "$as_ac_var=no"
37662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37663 conftest$ac_exeext conftest.$ac_ext
37665 ac_res=`eval echo '${'$as_ac_var'}'`
37666 { echo "$as_me:$LINENO: result: $ac_res" >&5
37667 echo "${ECHO_T}$ac_res" >&6; }
37668 if test `eval echo '${'$as_ac_var'}'` = yes; then
37669 cat >>confdefs.h <<_ACEOF
37670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37672 cat >>confdefs.h <<\_ACEOF
37673 #define HAVE_FCHDIR 1
37680 for ac_func in strtoll
37682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37686 echo $ECHO_N "(cached) $ECHO_C" >&6
37688 cat >conftest.$ac_ext <<_ACEOF
37691 cat confdefs.h >>conftest.$ac_ext
37692 cat >>conftest.$ac_ext <<_ACEOF
37693 /* end confdefs.h. */
37694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37696 #define $ac_func innocuous_$ac_func
37698 /* System header to define __stub macros and hopefully few prototypes,
37699 which can conflict with char $ac_func (); below.
37700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37701 <limits.h> exists even on freestanding compilers. */
37704 # include <limits.h>
37706 # include <assert.h>
37711 /* Override any GCC internal prototype to avoid an error.
37712 Use char because int might match the return type of a GCC
37713 builtin and then its argument prototype would still apply. */
37718 /* The GNU C library defines this for functions which it implements
37719 to always fail with ENOSYS. Some functions are actually named
37720 something starting with __ and the normal name is an alias. */
37721 #if defined __stub_$ac_func || defined __stub___$ac_func
37728 return $ac_func ();
37733 rm -f conftest.$ac_objext conftest$ac_exeext
37734 if { (ac_try="$ac_link"
37735 case "(($ac_try" in
37736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37737 *) ac_try_echo=$ac_try;;
37739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37740 (eval "$ac_link") 2>conftest.er1
37742 grep -v '^ *+' conftest.er1 >conftest.err
37744 cat conftest.err >&5
37745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37746 (exit $ac_status); } && {
37747 test -z "$ac_c_werror_flag" ||
37748 test ! -s conftest.err
37749 } && test -s conftest$ac_exeext &&
37750 $as_test_x conftest$ac_exeext; then
37751 eval "$as_ac_var=yes"
37753 echo "$as_me: failed program was:" >&5
37754 sed 's/^/| /' conftest.$ac_ext >&5
37756 eval "$as_ac_var=no"
37759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37760 conftest$ac_exeext conftest.$ac_ext
37762 ac_res=`eval echo '${'$as_ac_var'}'`
37763 { echo "$as_me:$LINENO: result: $ac_res" >&5
37764 echo "${ECHO_T}$ac_res" >&6; }
37765 if test `eval echo '${'$as_ac_var'}'` = yes; then
37766 cat >>confdefs.h <<_ACEOF
37767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37769 cat >>confdefs.h <<\_ACEOF
37770 #define HAVE_STRTOLL 1
37777 for ac_func in posix_fadvise
37779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37783 echo $ECHO_N "(cached) $ECHO_C" >&6
37785 cat >conftest.$ac_ext <<_ACEOF
37788 cat confdefs.h >>conftest.$ac_ext
37789 cat >>conftest.$ac_ext <<_ACEOF
37790 /* end confdefs.h. */
37791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37793 #define $ac_func innocuous_$ac_func
37795 /* System header to define __stub macros and hopefully few prototypes,
37796 which can conflict with char $ac_func (); below.
37797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37798 <limits.h> exists even on freestanding compilers. */
37801 # include <limits.h>
37803 # include <assert.h>
37808 /* Override any GCC internal prototype to avoid an error.
37809 Use char because int might match the return type of a GCC
37810 builtin and then its argument prototype would still apply. */
37815 /* The GNU C library defines this for functions which it implements
37816 to always fail with ENOSYS. Some functions are actually named
37817 something starting with __ and the normal name is an alias. */
37818 #if defined __stub_$ac_func || defined __stub___$ac_func
37825 return $ac_func ();
37830 rm -f conftest.$ac_objext conftest$ac_exeext
37831 if { (ac_try="$ac_link"
37832 case "(($ac_try" in
37833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37834 *) ac_try_echo=$ac_try;;
37836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37837 (eval "$ac_link") 2>conftest.er1
37839 grep -v '^ *+' conftest.er1 >conftest.err
37841 cat conftest.err >&5
37842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843 (exit $ac_status); } && {
37844 test -z "$ac_c_werror_flag" ||
37845 test ! -s conftest.err
37846 } && test -s conftest$ac_exeext &&
37847 $as_test_x conftest$ac_exeext; then
37848 eval "$as_ac_var=yes"
37850 echo "$as_me: failed program was:" >&5
37851 sed 's/^/| /' conftest.$ac_ext >&5
37853 eval "$as_ac_var=no"
37856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37857 conftest$ac_exeext conftest.$ac_ext
37859 ac_res=`eval echo '${'$as_ac_var'}'`
37860 { echo "$as_me:$LINENO: result: $ac_res" >&5
37861 echo "${ECHO_T}$ac_res" >&6; }
37862 if test `eval echo '${'$as_ac_var'}'` = yes; then
37863 cat >>confdefs.h <<_ACEOF
37864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37871 for ac_func in fdatasync
37873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37877 echo $ECHO_N "(cached) $ECHO_C" >&6
37879 cat >conftest.$ac_ext <<_ACEOF
37882 cat confdefs.h >>conftest.$ac_ext
37883 cat >>conftest.$ac_ext <<_ACEOF
37884 /* end confdefs.h. */
37885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37887 #define $ac_func innocuous_$ac_func
37889 /* System header to define __stub macros and hopefully few prototypes,
37890 which can conflict with char $ac_func (); below.
37891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37892 <limits.h> exists even on freestanding compilers. */
37895 # include <limits.h>
37897 # include <assert.h>
37902 /* Override any GCC internal prototype to avoid an error.
37903 Use char because int might match the return type of a GCC
37904 builtin and then its argument prototype would still apply. */
37909 /* The GNU C library defines this for functions which it implements
37910 to always fail with ENOSYS. Some functions are actually named
37911 something starting with __ and the normal name is an alias. */
37912 #if defined __stub_$ac_func || defined __stub___$ac_func
37919 return $ac_func ();
37924 rm -f conftest.$ac_objext conftest$ac_exeext
37925 if { (ac_try="$ac_link"
37926 case "(($ac_try" in
37927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37928 *) ac_try_echo=$ac_try;;
37930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37931 (eval "$ac_link") 2>conftest.er1
37933 grep -v '^ *+' conftest.er1 >conftest.err
37935 cat conftest.err >&5
37936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); } && {
37938 test -z "$ac_c_werror_flag" ||
37939 test ! -s conftest.err
37940 } && test -s conftest$ac_exeext &&
37941 $as_test_x conftest$ac_exeext; then
37942 eval "$as_ac_var=yes"
37944 echo "$as_me: failed program was:" >&5
37945 sed 's/^/| /' conftest.$ac_ext >&5
37947 eval "$as_ac_var=no"
37950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37951 conftest$ac_exeext conftest.$ac_ext
37953 ac_res=`eval echo '${'$as_ac_var'}'`
37954 { echo "$as_me:$LINENO: result: $ac_res" >&5
37955 echo "${ECHO_T}$ac_res" >&6; }
37956 if test `eval echo '${'$as_ac_var'}'` = yes; then
37957 cat >>confdefs.h <<_ACEOF
37958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37966 for ac_func in chflags
37968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37972 echo $ECHO_N "(cached) $ECHO_C" >&6
37974 cat >conftest.$ac_ext <<_ACEOF
37977 cat confdefs.h >>conftest.$ac_ext
37978 cat >>conftest.$ac_ext <<_ACEOF
37979 /* end confdefs.h. */
37980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37982 #define $ac_func innocuous_$ac_func
37984 /* System header to define __stub macros and hopefully few prototypes,
37985 which can conflict with char $ac_func (); below.
37986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37987 <limits.h> exists even on freestanding compilers. */
37990 # include <limits.h>
37992 # include <assert.h>
37997 /* Override any GCC internal prototype to avoid an error.
37998 Use char because int might match the return type of a GCC
37999 builtin and then its argument prototype would still apply. */
38004 /* The GNU C library defines this for functions which it implements
38005 to always fail with ENOSYS. Some functions are actually named
38006 something starting with __ and the normal name is an alias. */
38007 #if defined __stub_$ac_func || defined __stub___$ac_func
38014 return $ac_func ();
38019 rm -f conftest.$ac_objext conftest$ac_exeext
38020 if { (ac_try="$ac_link"
38021 case "(($ac_try" in
38022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38023 *) ac_try_echo=$ac_try;;
38025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38026 (eval "$ac_link") 2>conftest.er1
38028 grep -v '^ *+' conftest.er1 >conftest.err
38030 cat conftest.err >&5
38031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032 (exit $ac_status); } && {
38033 test -z "$ac_c_werror_flag" ||
38034 test ! -s conftest.err
38035 } && test -s conftest$ac_exeext &&
38036 $as_test_x conftest$ac_exeext; then
38037 eval "$as_ac_var=yes"
38039 echo "$as_me: failed program was:" >&5
38040 sed 's/^/| /' conftest.$ac_ext >&5
38042 eval "$as_ac_var=no"
38045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38046 conftest$ac_exeext conftest.$ac_ext
38048 ac_res=`eval echo '${'$as_ac_var'}'`
38049 { echo "$as_me:$LINENO: result: $ac_res" >&5
38050 echo "${ECHO_T}$ac_res" >&6; }
38051 if test `eval echo '${'$as_ac_var'}'` = yes; then
38052 cat >>confdefs.h <<_ACEOF
38053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38064 for ac_func in snprintf vsnprintf gethostid fseeko
38066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38070 echo $ECHO_N "(cached) $ECHO_C" >&6
38072 cat >conftest.$ac_ext <<_ACEOF
38075 cat confdefs.h >>conftest.$ac_ext
38076 cat >>conftest.$ac_ext <<_ACEOF
38077 /* end confdefs.h. */
38078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38080 #define $ac_func innocuous_$ac_func
38082 /* System header to define __stub macros and hopefully few prototypes,
38083 which can conflict with char $ac_func (); below.
38084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38085 <limits.h> exists even on freestanding compilers. */
38088 # include <limits.h>
38090 # include <assert.h>
38095 /* Override any GCC internal prototype to avoid an error.
38096 Use char because int might match the return type of a GCC
38097 builtin and then its argument prototype would still apply. */
38102 /* The GNU C library defines this for functions which it implements
38103 to always fail with ENOSYS. Some functions are actually named
38104 something starting with __ and the normal name is an alias. */
38105 #if defined __stub_$ac_func || defined __stub___$ac_func
38112 return $ac_func ();
38117 rm -f conftest.$ac_objext conftest$ac_exeext
38118 if { (ac_try="$ac_link"
38119 case "(($ac_try" in
38120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38121 *) ac_try_echo=$ac_try;;
38123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38124 (eval "$ac_link") 2>conftest.er1
38126 grep -v '^ *+' conftest.er1 >conftest.err
38128 cat conftest.err >&5
38129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130 (exit $ac_status); } && {
38131 test -z "$ac_c_werror_flag" ||
38132 test ! -s conftest.err
38133 } && test -s conftest$ac_exeext &&
38134 $as_test_x conftest$ac_exeext; then
38135 eval "$as_ac_var=yes"
38137 echo "$as_me: failed program was:" >&5
38138 sed 's/^/| /' conftest.$ac_ext >&5
38140 eval "$as_ac_var=no"
38143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38144 conftest$ac_exeext conftest.$ac_ext
38146 ac_res=`eval echo '${'$as_ac_var'}'`
38147 { echo "$as_me:$LINENO: result: $ac_res" >&5
38148 echo "${ECHO_T}$ac_res" >&6; }
38149 if test `eval echo '${'$as_ac_var'}'` = yes; then
38150 cat >>confdefs.h <<_ACEOF
38151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38158 { echo "$as_me:$LINENO: checking for va_copy" >&5
38159 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38160 if test "${ba_cv_va_copy+set}" = set; then
38161 echo $ECHO_N "(cached) $ECHO_C" >&6
38164 cat >conftest.$ac_ext <<_ACEOF
38167 cat confdefs.h >>conftest.$ac_ext
38168 cat >>conftest.$ac_ext <<_ACEOF
38169 /* end confdefs.h. */
38171 #include <stdarg.h>
38172 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38173 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38179 call_use_va_copy(1,2,3)
38185 rm -f conftest.$ac_objext conftest$ac_exeext
38186 if { (ac_try="$ac_link"
38187 case "(($ac_try" in
38188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38189 *) ac_try_echo=$ac_try;;
38191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38192 (eval "$ac_link") 2>conftest.er1
38194 grep -v '^ *+' conftest.er1 >conftest.err
38196 cat conftest.err >&5
38197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198 (exit $ac_status); } && {
38199 test -z "$ac_c_werror_flag" ||
38200 test ! -s conftest.err
38201 } && test -s conftest$ac_exeext &&
38202 $as_test_x conftest$ac_exeext; then
38207 echo "$as_me: failed program was:" >&5
38208 sed 's/^/| /' conftest.$ac_ext >&5
38216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38217 conftest$ac_exeext conftest.$ac_ext
38221 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38222 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38223 test $ba_cv_va_copy = yes &&
38224 cat >>confdefs.h <<\_ACEOF
38225 #define HAVE_VA_COPY 1
38233 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38239 echo $ECHO_N "(cached) $ECHO_C" >&6
38241 cat >conftest.$ac_ext <<_ACEOF
38244 cat confdefs.h >>conftest.$ac_ext
38245 cat >>conftest.$ac_ext <<_ACEOF
38246 /* end confdefs.h. */
38247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38249 #define $ac_func innocuous_$ac_func
38251 /* System header to define __stub macros and hopefully few prototypes,
38252 which can conflict with char $ac_func (); below.
38253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38254 <limits.h> exists even on freestanding compilers. */
38257 # include <limits.h>
38259 # include <assert.h>
38264 /* Override any GCC internal prototype to avoid an error.
38265 Use char because int might match the return type of a GCC
38266 builtin and then its argument prototype would still apply. */
38271 /* The GNU C library defines this for functions which it implements
38272 to always fail with ENOSYS. Some functions are actually named
38273 something starting with __ and the normal name is an alias. */
38274 #if defined __stub_$ac_func || defined __stub___$ac_func
38281 return $ac_func ();
38286 rm -f conftest.$ac_objext conftest$ac_exeext
38287 if { (ac_try="$ac_link"
38288 case "(($ac_try" in
38289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38290 *) ac_try_echo=$ac_try;;
38292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38293 (eval "$ac_link") 2>conftest.er1
38295 grep -v '^ *+' conftest.er1 >conftest.err
38297 cat conftest.err >&5
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); } && {
38300 test -z "$ac_c_werror_flag" ||
38301 test ! -s conftest.err
38302 } && test -s conftest$ac_exeext &&
38303 $as_test_x conftest$ac_exeext; then
38304 eval "$as_ac_var=yes"
38306 echo "$as_me: failed program was:" >&5
38307 sed 's/^/| /' conftest.$ac_ext >&5
38309 eval "$as_ac_var=no"
38312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38313 conftest$ac_exeext conftest.$ac_ext
38315 ac_res=`eval echo '${'$as_ac_var'}'`
38316 { echo "$as_me:$LINENO: result: $ac_res" >&5
38317 echo "${ECHO_T}$ac_res" >&6; }
38318 if test `eval echo '${'$as_ac_var'}'` = yes; then
38319 cat >>confdefs.h <<_ACEOF
38320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38327 # If resolver functions are not in libc check for -lnsl or -lresolv.
38328 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38329 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38330 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38331 echo $ECHO_N "(cached) $ECHO_C" >&6
38333 cat >conftest.$ac_ext <<_ACEOF
38336 cat confdefs.h >>conftest.$ac_ext
38337 cat >>conftest.$ac_ext <<_ACEOF
38338 /* end confdefs.h. */
38339 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38341 #define gethostbyname_r innocuous_gethostbyname_r
38343 /* System header to define __stub macros and hopefully few prototypes,
38344 which can conflict with char gethostbyname_r (); below.
38345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38346 <limits.h> exists even on freestanding compilers. */
38349 # include <limits.h>
38351 # include <assert.h>
38354 #undef gethostbyname_r
38356 /* Override any GCC internal prototype to avoid an error.
38357 Use char because int might match the return type of a GCC
38358 builtin and then its argument prototype would still apply. */
38362 char gethostbyname_r ();
38363 /* The GNU C library defines this for functions which it implements
38364 to always fail with ENOSYS. Some functions are actually named
38365 something starting with __ and the normal name is an alias. */
38366 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38373 return gethostbyname_r ();
38378 rm -f conftest.$ac_objext conftest$ac_exeext
38379 if { (ac_try="$ac_link"
38380 case "(($ac_try" in
38381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38382 *) ac_try_echo=$ac_try;;
38384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38385 (eval "$ac_link") 2>conftest.er1
38387 grep -v '^ *+' conftest.er1 >conftest.err
38389 cat conftest.err >&5
38390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391 (exit $ac_status); } && {
38392 test -z "$ac_c_werror_flag" ||
38393 test ! -s conftest.err
38394 } && test -s conftest$ac_exeext &&
38395 $as_test_x conftest$ac_exeext; then
38396 ac_cv_func_gethostbyname_r=yes
38398 echo "$as_me: failed program was:" >&5
38399 sed 's/^/| /' conftest.$ac_ext >&5
38401 ac_cv_func_gethostbyname_r=no
38404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38405 conftest$ac_exeext conftest.$ac_ext
38407 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38408 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38409 if test $ac_cv_func_gethostbyname_r = yes; then
38410 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38411 echo "${ECHO_T}using libc's resolver" >&6; }
38414 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38415 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38416 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38417 echo $ECHO_N "(cached) $ECHO_C" >&6
38419 ac_check_lib_save_LIBS=$LIBS
38421 cat >conftest.$ac_ext <<_ACEOF
38424 cat confdefs.h >>conftest.$ac_ext
38425 cat >>conftest.$ac_ext <<_ACEOF
38426 /* end confdefs.h. */
38428 /* Override any GCC internal prototype to avoid an error.
38429 Use char because int might match the return type of a GCC
38430 builtin and then its argument prototype would still apply. */
38434 char gethostbyname_r ();
38438 return gethostbyname_r ();
38443 rm -f conftest.$ac_objext conftest$ac_exeext
38444 if { (ac_try="$ac_link"
38445 case "(($ac_try" in
38446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38447 *) ac_try_echo=$ac_try;;
38449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38450 (eval "$ac_link") 2>conftest.er1
38452 grep -v '^ *+' conftest.er1 >conftest.err
38454 cat conftest.err >&5
38455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38456 (exit $ac_status); } && {
38457 test -z "$ac_c_werror_flag" ||
38458 test ! -s conftest.err
38459 } && test -s conftest$ac_exeext &&
38460 $as_test_x conftest$ac_exeext; then
38461 ac_cv_lib_nsl_gethostbyname_r=yes
38463 echo "$as_me: failed program was:" >&5
38464 sed 's/^/| /' conftest.$ac_ext >&5
38466 ac_cv_lib_nsl_gethostbyname_r=no
38469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38470 conftest$ac_exeext conftest.$ac_ext
38471 LIBS=$ac_check_lib_save_LIBS
38473 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38474 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38475 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38476 cat >>confdefs.h <<_ACEOF
38477 #define HAVE_LIBNSL 1
38485 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38486 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38487 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38488 echo $ECHO_N "(cached) $ECHO_C" >&6
38490 ac_check_lib_save_LIBS=$LIBS
38491 LIBS="-lresolv $LIBS"
38492 cat >conftest.$ac_ext <<_ACEOF
38495 cat confdefs.h >>conftest.$ac_ext
38496 cat >>conftest.$ac_ext <<_ACEOF
38497 /* end confdefs.h. */
38499 /* Override any GCC internal prototype to avoid an error.
38500 Use char because int might match the return type of a GCC
38501 builtin and then its argument prototype would still apply. */
38505 char gethostbyname_r ();
38509 return gethostbyname_r ();
38514 rm -f conftest.$ac_objext conftest$ac_exeext
38515 if { (ac_try="$ac_link"
38516 case "(($ac_try" in
38517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38518 *) ac_try_echo=$ac_try;;
38520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38521 (eval "$ac_link") 2>conftest.er1
38523 grep -v '^ *+' conftest.er1 >conftest.err
38525 cat conftest.err >&5
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); } && {
38528 test -z "$ac_c_werror_flag" ||
38529 test ! -s conftest.err
38530 } && test -s conftest$ac_exeext &&
38531 $as_test_x conftest$ac_exeext; then
38532 ac_cv_lib_resolv_gethostbyname_r=yes
38534 echo "$as_me: failed program was:" >&5
38535 sed 's/^/| /' conftest.$ac_ext >&5
38537 ac_cv_lib_resolv_gethostbyname_r=no
38540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38541 conftest$ac_exeext conftest.$ac_ext
38542 LIBS=$ac_check_lib_save_LIBS
38544 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38545 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38546 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38547 cat >>confdefs.h <<_ACEOF
38548 #define HAVE_LIBRESOLV 1
38551 LIBS="-lresolv $LIBS"
38559 for ac_func in inet_pton
38561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38565 echo $ECHO_N "(cached) $ECHO_C" >&6
38567 cat >conftest.$ac_ext <<_ACEOF
38570 cat confdefs.h >>conftest.$ac_ext
38571 cat >>conftest.$ac_ext <<_ACEOF
38572 /* end confdefs.h. */
38573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38575 #define $ac_func innocuous_$ac_func
38577 /* System header to define __stub macros and hopefully few prototypes,
38578 which can conflict with char $ac_func (); below.
38579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38580 <limits.h> exists even on freestanding compilers. */
38583 # include <limits.h>
38585 # include <assert.h>
38590 /* Override any GCC internal prototype to avoid an error.
38591 Use char because int might match the return type of a GCC
38592 builtin and then its argument prototype would still apply. */
38597 /* The GNU C library defines this for functions which it implements
38598 to always fail with ENOSYS. Some functions are actually named
38599 something starting with __ and the normal name is an alias. */
38600 #if defined __stub_$ac_func || defined __stub___$ac_func
38607 return $ac_func ();
38612 rm -f conftest.$ac_objext conftest$ac_exeext
38613 if { (ac_try="$ac_link"
38614 case "(($ac_try" in
38615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38616 *) ac_try_echo=$ac_try;;
38618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38619 (eval "$ac_link") 2>conftest.er1
38621 grep -v '^ *+' conftest.er1 >conftest.err
38623 cat conftest.err >&5
38624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625 (exit $ac_status); } && {
38626 test -z "$ac_c_werror_flag" ||
38627 test ! -s conftest.err
38628 } && test -s conftest$ac_exeext &&
38629 $as_test_x conftest$ac_exeext; then
38630 eval "$as_ac_var=yes"
38632 echo "$as_me: failed program was:" >&5
38633 sed 's/^/| /' conftest.$ac_ext >&5
38635 eval "$as_ac_var=no"
38638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38639 conftest$ac_exeext conftest.$ac_ext
38641 ac_res=`eval echo '${'$as_ac_var'}'`
38642 { echo "$as_me:$LINENO: result: $ac_res" >&5
38643 echo "${ECHO_T}$ac_res" >&6; }
38644 if test `eval echo '${'$as_ac_var'}'` = yes; then
38645 cat >>confdefs.h <<_ACEOF
38646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38648 cat >>confdefs.h <<\_ACEOF
38649 #define HAVE_INET_PTON 1
38656 for ac_func in inet_ntop
38658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38662 echo $ECHO_N "(cached) $ECHO_C" >&6
38664 cat >conftest.$ac_ext <<_ACEOF
38667 cat confdefs.h >>conftest.$ac_ext
38668 cat >>conftest.$ac_ext <<_ACEOF
38669 /* end confdefs.h. */
38670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38672 #define $ac_func innocuous_$ac_func
38674 /* System header to define __stub macros and hopefully few prototypes,
38675 which can conflict with char $ac_func (); below.
38676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38677 <limits.h> exists even on freestanding compilers. */
38680 # include <limits.h>
38682 # include <assert.h>
38687 /* Override any GCC internal prototype to avoid an error.
38688 Use char because int might match the return type of a GCC
38689 builtin and then its argument prototype would still apply. */
38694 /* The GNU C library defines this for functions which it implements
38695 to always fail with ENOSYS. Some functions are actually named
38696 something starting with __ and the normal name is an alias. */
38697 #if defined __stub_$ac_func || defined __stub___$ac_func
38704 return $ac_func ();
38709 rm -f conftest.$ac_objext conftest$ac_exeext
38710 if { (ac_try="$ac_link"
38711 case "(($ac_try" in
38712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38713 *) ac_try_echo=$ac_try;;
38715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38716 (eval "$ac_link") 2>conftest.er1
38718 grep -v '^ *+' conftest.er1 >conftest.err
38720 cat conftest.err >&5
38721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38722 (exit $ac_status); } && {
38723 test -z "$ac_c_werror_flag" ||
38724 test ! -s conftest.err
38725 } && test -s conftest$ac_exeext &&
38726 $as_test_x conftest$ac_exeext; then
38727 eval "$as_ac_var=yes"
38729 echo "$as_me: failed program was:" >&5
38730 sed 's/^/| /' conftest.$ac_ext >&5
38732 eval "$as_ac_var=no"
38735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38736 conftest$ac_exeext conftest.$ac_ext
38738 ac_res=`eval echo '${'$as_ac_var'}'`
38739 { echo "$as_me:$LINENO: result: $ac_res" >&5
38740 echo "${ECHO_T}$ac_res" >&6; }
38741 if test `eval echo '${'$as_ac_var'}'` = yes; then
38742 cat >>confdefs.h <<_ACEOF
38743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38745 cat >>confdefs.h <<\_ACEOF
38746 #define HAVE_INET_NTOP 1
38753 for ac_func in gethostbyname2
38755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38759 echo $ECHO_N "(cached) $ECHO_C" >&6
38761 cat >conftest.$ac_ext <<_ACEOF
38764 cat confdefs.h >>conftest.$ac_ext
38765 cat >>conftest.$ac_ext <<_ACEOF
38766 /* end confdefs.h. */
38767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38769 #define $ac_func innocuous_$ac_func
38771 /* System header to define __stub macros and hopefully few prototypes,
38772 which can conflict with char $ac_func (); below.
38773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38774 <limits.h> exists even on freestanding compilers. */
38777 # include <limits.h>
38779 # include <assert.h>
38784 /* Override any GCC internal prototype to avoid an error.
38785 Use char because int might match the return type of a GCC
38786 builtin and then its argument prototype would still apply. */
38791 /* The GNU C library defines this for functions which it implements
38792 to always fail with ENOSYS. Some functions are actually named
38793 something starting with __ and the normal name is an alias. */
38794 #if defined __stub_$ac_func || defined __stub___$ac_func
38801 return $ac_func ();
38806 rm -f conftest.$ac_objext conftest$ac_exeext
38807 if { (ac_try="$ac_link"
38808 case "(($ac_try" in
38809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38810 *) ac_try_echo=$ac_try;;
38812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38813 (eval "$ac_link") 2>conftest.er1
38815 grep -v '^ *+' conftest.er1 >conftest.err
38817 cat conftest.err >&5
38818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819 (exit $ac_status); } && {
38820 test -z "$ac_c_werror_flag" ||
38821 test ! -s conftest.err
38822 } && test -s conftest$ac_exeext &&
38823 $as_test_x conftest$ac_exeext; then
38824 eval "$as_ac_var=yes"
38826 echo "$as_me: failed program was:" >&5
38827 sed 's/^/| /' conftest.$ac_ext >&5
38829 eval "$as_ac_var=no"
38832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38833 conftest$ac_exeext conftest.$ac_ext
38835 ac_res=`eval echo '${'$as_ac_var'}'`
38836 { echo "$as_me:$LINENO: result: $ac_res" >&5
38837 echo "${ECHO_T}$ac_res" >&6; }
38838 if test `eval echo '${'$as_ac_var'}'` = yes; then
38839 cat >>confdefs.h <<_ACEOF
38840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38842 cat >>confdefs.h <<\_ACEOF
38843 #define HAVE_GETHOSTBYNAME2 1
38850 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38851 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38852 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38853 echo $ECHO_N "(cached) $ECHO_C" >&6
38856 cat >conftest.$ac_ext <<_ACEOF
38859 cat confdefs.h >>conftest.$ac_ext
38860 cat >>conftest.$ac_ext <<_ACEOF
38861 /* end confdefs.h. */
38863 #include <sys/socket.h>
38869 struct sockaddr s; s.sa_len;
38875 rm -f conftest.$ac_objext
38876 if { (ac_try="$ac_compile"
38877 case "(($ac_try" in
38878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38879 *) ac_try_echo=$ac_try;;
38881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38882 (eval "$ac_compile") 2>conftest.er1
38884 grep -v '^ *+' conftest.er1 >conftest.err
38886 cat conftest.err >&5
38887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38888 (exit $ac_status); } && {
38889 test -z "$ac_c_werror_flag" ||
38890 test ! -s conftest.err
38891 } && test -s conftest.$ac_objext; then
38893 ac_cv_struct_sockaddr_sa_len=yes
38896 echo "$as_me: failed program was:" >&5
38897 sed 's/^/| /' conftest.$ac_ext >&5
38899 ac_cv_struct_sockaddr_sa_len=no
38904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38908 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38909 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38911 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38913 cat >>confdefs.h <<\_ACEOF
38914 #define HAVE_SA_LEN 1
38920 for ac_func in strftime
38922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38926 echo $ECHO_N "(cached) $ECHO_C" >&6
38928 cat >conftest.$ac_ext <<_ACEOF
38931 cat confdefs.h >>conftest.$ac_ext
38932 cat >>conftest.$ac_ext <<_ACEOF
38933 /* end confdefs.h. */
38934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38936 #define $ac_func innocuous_$ac_func
38938 /* System header to define __stub macros and hopefully few prototypes,
38939 which can conflict with char $ac_func (); below.
38940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38941 <limits.h> exists even on freestanding compilers. */
38944 # include <limits.h>
38946 # include <assert.h>
38951 /* Override any GCC internal prototype to avoid an error.
38952 Use char because int might match the return type of a GCC
38953 builtin and then its argument prototype would still apply. */
38958 /* The GNU C library defines this for functions which it implements
38959 to always fail with ENOSYS. Some functions are actually named
38960 something starting with __ and the normal name is an alias. */
38961 #if defined __stub_$ac_func || defined __stub___$ac_func
38968 return $ac_func ();
38973 rm -f conftest.$ac_objext conftest$ac_exeext
38974 if { (ac_try="$ac_link"
38975 case "(($ac_try" in
38976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38977 *) ac_try_echo=$ac_try;;
38979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38980 (eval "$ac_link") 2>conftest.er1
38982 grep -v '^ *+' conftest.er1 >conftest.err
38984 cat conftest.err >&5
38985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38986 (exit $ac_status); } && {
38987 test -z "$ac_c_werror_flag" ||
38988 test ! -s conftest.err
38989 } && test -s conftest$ac_exeext &&
38990 $as_test_x conftest$ac_exeext; then
38991 eval "$as_ac_var=yes"
38993 echo "$as_me: failed program was:" >&5
38994 sed 's/^/| /' conftest.$ac_ext >&5
38996 eval "$as_ac_var=no"
38999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39000 conftest$ac_exeext conftest.$ac_ext
39002 ac_res=`eval echo '${'$as_ac_var'}'`
39003 { echo "$as_me:$LINENO: result: $ac_res" >&5
39004 echo "${ECHO_T}$ac_res" >&6; }
39005 if test `eval echo '${'$as_ac_var'}'` = yes; then
39006 cat >>confdefs.h <<_ACEOF
39007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39011 # strftime is in -lintl on SCO UNIX.
39012 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39013 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39014 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39015 echo $ECHO_N "(cached) $ECHO_C" >&6
39017 ac_check_lib_save_LIBS=$LIBS
39018 LIBS="-lintl $LIBS"
39019 cat >conftest.$ac_ext <<_ACEOF
39022 cat confdefs.h >>conftest.$ac_ext
39023 cat >>conftest.$ac_ext <<_ACEOF
39024 /* end confdefs.h. */
39026 /* Override any GCC internal prototype to avoid an error.
39027 Use char because int might match the return type of a GCC
39028 builtin and then its argument prototype would still apply. */
39036 return strftime ();
39041 rm -f conftest.$ac_objext conftest$ac_exeext
39042 if { (ac_try="$ac_link"
39043 case "(($ac_try" in
39044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39045 *) ac_try_echo=$ac_try;;
39047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39048 (eval "$ac_link") 2>conftest.er1
39050 grep -v '^ *+' conftest.er1 >conftest.err
39052 cat conftest.err >&5
39053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); } && {
39055 test -z "$ac_c_werror_flag" ||
39056 test ! -s conftest.err
39057 } && test -s conftest$ac_exeext &&
39058 $as_test_x conftest$ac_exeext; then
39059 ac_cv_lib_intl_strftime=yes
39061 echo "$as_me: failed program was:" >&5
39062 sed 's/^/| /' conftest.$ac_ext >&5
39064 ac_cv_lib_intl_strftime=no
39067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39068 conftest$ac_exeext conftest.$ac_ext
39069 LIBS=$ac_check_lib_save_LIBS
39071 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39072 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39073 if test $ac_cv_lib_intl_strftime = yes; then
39074 cat >>confdefs.h <<\_ACEOF
39075 #define HAVE_STRFTIME 1
39078 LIBS="-lintl $LIBS"
39085 for ac_func in vprintf
39087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39091 echo $ECHO_N "(cached) $ECHO_C" >&6
39093 cat >conftest.$ac_ext <<_ACEOF
39096 cat confdefs.h >>conftest.$ac_ext
39097 cat >>conftest.$ac_ext <<_ACEOF
39098 /* end confdefs.h. */
39099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39101 #define $ac_func innocuous_$ac_func
39103 /* System header to define __stub macros and hopefully few prototypes,
39104 which can conflict with char $ac_func (); below.
39105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39106 <limits.h> exists even on freestanding compilers. */
39109 # include <limits.h>
39111 # include <assert.h>
39116 /* Override any GCC internal prototype to avoid an error.
39117 Use char because int might match the return type of a GCC
39118 builtin and then its argument prototype would still apply. */
39123 /* The GNU C library defines this for functions which it implements
39124 to always fail with ENOSYS. Some functions are actually named
39125 something starting with __ and the normal name is an alias. */
39126 #if defined __stub_$ac_func || defined __stub___$ac_func
39133 return $ac_func ();
39138 rm -f conftest.$ac_objext conftest$ac_exeext
39139 if { (ac_try="$ac_link"
39140 case "(($ac_try" in
39141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39142 *) ac_try_echo=$ac_try;;
39144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39145 (eval "$ac_link") 2>conftest.er1
39147 grep -v '^ *+' conftest.er1 >conftest.err
39149 cat conftest.err >&5
39150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151 (exit $ac_status); } && {
39152 test -z "$ac_c_werror_flag" ||
39153 test ! -s conftest.err
39154 } && test -s conftest$ac_exeext &&
39155 $as_test_x conftest$ac_exeext; then
39156 eval "$as_ac_var=yes"
39158 echo "$as_me: failed program was:" >&5
39159 sed 's/^/| /' conftest.$ac_ext >&5
39161 eval "$as_ac_var=no"
39164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39165 conftest$ac_exeext conftest.$ac_ext
39167 ac_res=`eval echo '${'$as_ac_var'}'`
39168 { echo "$as_me:$LINENO: result: $ac_res" >&5
39169 echo "${ECHO_T}$ac_res" >&6; }
39170 if test `eval echo '${'$as_ac_var'}'` = yes; then
39171 cat >>confdefs.h <<_ACEOF
39172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39175 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39176 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39177 if test "${ac_cv_func__doprnt+set}" = set; then
39178 echo $ECHO_N "(cached) $ECHO_C" >&6
39180 cat >conftest.$ac_ext <<_ACEOF
39183 cat confdefs.h >>conftest.$ac_ext
39184 cat >>conftest.$ac_ext <<_ACEOF
39185 /* end confdefs.h. */
39186 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39188 #define _doprnt innocuous__doprnt
39190 /* System header to define __stub macros and hopefully few prototypes,
39191 which can conflict with char _doprnt (); below.
39192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39193 <limits.h> exists even on freestanding compilers. */
39196 # include <limits.h>
39198 # include <assert.h>
39203 /* Override any GCC internal prototype to avoid an error.
39204 Use char because int might match the return type of a GCC
39205 builtin and then its argument prototype would still apply. */
39210 /* The GNU C library defines this for functions which it implements
39211 to always fail with ENOSYS. Some functions are actually named
39212 something starting with __ and the normal name is an alias. */
39213 #if defined __stub__doprnt || defined __stub____doprnt
39225 rm -f conftest.$ac_objext conftest$ac_exeext
39226 if { (ac_try="$ac_link"
39227 case "(($ac_try" in
39228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39229 *) ac_try_echo=$ac_try;;
39231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39232 (eval "$ac_link") 2>conftest.er1
39234 grep -v '^ *+' conftest.er1 >conftest.err
39236 cat conftest.err >&5
39237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39238 (exit $ac_status); } && {
39239 test -z "$ac_c_werror_flag" ||
39240 test ! -s conftest.err
39241 } && test -s conftest$ac_exeext &&
39242 $as_test_x conftest$ac_exeext; then
39243 ac_cv_func__doprnt=yes
39245 echo "$as_me: failed program was:" >&5
39246 sed 's/^/| /' conftest.$ac_ext >&5
39248 ac_cv_func__doprnt=no
39251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39252 conftest$ac_exeext conftest.$ac_ext
39254 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39255 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39256 if test $ac_cv_func__doprnt = yes; then
39258 cat >>confdefs.h <<\_ACEOF
39259 #define HAVE_DOPRNT 1
39268 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39269 # for constant arguments. Useless!
39270 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39271 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39272 if test "${ac_cv_working_alloca_h+set}" = set; then
39273 echo $ECHO_N "(cached) $ECHO_C" >&6
39275 cat >conftest.$ac_ext <<_ACEOF
39278 cat confdefs.h >>conftest.$ac_ext
39279 cat >>conftest.$ac_ext <<_ACEOF
39280 /* end confdefs.h. */
39281 #include <alloca.h>
39285 char *p = (char *) alloca (2 * sizeof (int));
39291 rm -f conftest.$ac_objext conftest$ac_exeext
39292 if { (ac_try="$ac_link"
39293 case "(($ac_try" in
39294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39295 *) ac_try_echo=$ac_try;;
39297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39298 (eval "$ac_link") 2>conftest.er1
39300 grep -v '^ *+' conftest.er1 >conftest.err
39302 cat conftest.err >&5
39303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304 (exit $ac_status); } && {
39305 test -z "$ac_c_werror_flag" ||
39306 test ! -s conftest.err
39307 } && test -s conftest$ac_exeext &&
39308 $as_test_x conftest$ac_exeext; then
39309 ac_cv_working_alloca_h=yes
39311 echo "$as_me: failed program was:" >&5
39312 sed 's/^/| /' conftest.$ac_ext >&5
39314 ac_cv_working_alloca_h=no
39317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39318 conftest$ac_exeext conftest.$ac_ext
39320 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39321 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39322 if test $ac_cv_working_alloca_h = yes; then
39324 cat >>confdefs.h <<\_ACEOF
39325 #define HAVE_ALLOCA_H 1
39330 { echo "$as_me:$LINENO: checking for alloca" >&5
39331 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39332 if test "${ac_cv_func_alloca_works+set}" = set; then
39333 echo $ECHO_N "(cached) $ECHO_C" >&6
39335 cat >conftest.$ac_ext <<_ACEOF
39338 cat confdefs.h >>conftest.$ac_ext
39339 cat >>conftest.$ac_ext <<_ACEOF
39340 /* end confdefs.h. */
39342 # define alloca __builtin_alloca
39345 # include <malloc.h>
39346 # define alloca _alloca
39348 # ifdef HAVE_ALLOCA_H
39349 # include <alloca.h>
39354 # ifndef alloca /* predefined by HP cc +Olibcalls */
39365 char *p = (char *) alloca (1);
39371 rm -f conftest.$ac_objext conftest$ac_exeext
39372 if { (ac_try="$ac_link"
39373 case "(($ac_try" in
39374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39375 *) ac_try_echo=$ac_try;;
39377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39378 (eval "$ac_link") 2>conftest.er1
39380 grep -v '^ *+' conftest.er1 >conftest.err
39382 cat conftest.err >&5
39383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384 (exit $ac_status); } && {
39385 test -z "$ac_c_werror_flag" ||
39386 test ! -s conftest.err
39387 } && test -s conftest$ac_exeext &&
39388 $as_test_x conftest$ac_exeext; then
39389 ac_cv_func_alloca_works=yes
39391 echo "$as_me: failed program was:" >&5
39392 sed 's/^/| /' conftest.$ac_ext >&5
39394 ac_cv_func_alloca_works=no
39397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39398 conftest$ac_exeext conftest.$ac_ext
39400 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39401 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39403 if test $ac_cv_func_alloca_works = yes; then
39405 cat >>confdefs.h <<\_ACEOF
39406 #define HAVE_ALLOCA 1
39410 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39411 # that cause trouble. Some versions do not even contain alloca or
39412 # contain a buggy version. If you still want to use their alloca,
39413 # use ar to extract alloca.o from them instead of compiling alloca.c.
39415 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39417 cat >>confdefs.h <<\_ACEOF
39422 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39423 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39424 if test "${ac_cv_os_cray+set}" = set; then
39425 echo $ECHO_N "(cached) $ECHO_C" >&6
39427 cat >conftest.$ac_ext <<_ACEOF
39430 cat confdefs.h >>conftest.$ac_ext
39431 cat >>conftest.$ac_ext <<_ACEOF
39432 /* end confdefs.h. */
39433 #if defined CRAY && ! defined CRAY2
39440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39441 $EGREP "webecray" >/dev/null 2>&1; then
39449 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39450 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39451 if test $ac_cv_os_cray = yes; then
39452 for ac_func in _getb67 GETB67 getb67; do
39453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39457 echo $ECHO_N "(cached) $ECHO_C" >&6
39459 cat >conftest.$ac_ext <<_ACEOF
39462 cat confdefs.h >>conftest.$ac_ext
39463 cat >>conftest.$ac_ext <<_ACEOF
39464 /* end confdefs.h. */
39465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39467 #define $ac_func innocuous_$ac_func
39469 /* System header to define __stub macros and hopefully few prototypes,
39470 which can conflict with char $ac_func (); below.
39471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39472 <limits.h> exists even on freestanding compilers. */
39475 # include <limits.h>
39477 # include <assert.h>
39482 /* Override any GCC internal prototype to avoid an error.
39483 Use char because int might match the return type of a GCC
39484 builtin and then its argument prototype would still apply. */
39489 /* The GNU C library defines this for functions which it implements
39490 to always fail with ENOSYS. Some functions are actually named
39491 something starting with __ and the normal name is an alias. */
39492 #if defined __stub_$ac_func || defined __stub___$ac_func
39499 return $ac_func ();
39504 rm -f conftest.$ac_objext conftest$ac_exeext
39505 if { (ac_try="$ac_link"
39506 case "(($ac_try" in
39507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39508 *) ac_try_echo=$ac_try;;
39510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39511 (eval "$ac_link") 2>conftest.er1
39513 grep -v '^ *+' conftest.er1 >conftest.err
39515 cat conftest.err >&5
39516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39517 (exit $ac_status); } && {
39518 test -z "$ac_c_werror_flag" ||
39519 test ! -s conftest.err
39520 } && test -s conftest$ac_exeext &&
39521 $as_test_x conftest$ac_exeext; then
39522 eval "$as_ac_var=yes"
39524 echo "$as_me: failed program was:" >&5
39525 sed 's/^/| /' conftest.$ac_ext >&5
39527 eval "$as_ac_var=no"
39530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39531 conftest$ac_exeext conftest.$ac_ext
39533 ac_res=`eval echo '${'$as_ac_var'}'`
39534 { echo "$as_me:$LINENO: result: $ac_res" >&5
39535 echo "${ECHO_T}$ac_res" >&6; }
39536 if test `eval echo '${'$as_ac_var'}'` = yes; then
39538 cat >>confdefs.h <<_ACEOF
39539 #define CRAY_STACKSEG_END $ac_func
39548 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39549 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39550 if test "${ac_cv_c_stack_direction+set}" = set; then
39551 echo $ECHO_N "(cached) $ECHO_C" >&6
39553 if test "$cross_compiling" = yes; then
39554 ac_cv_c_stack_direction=0
39556 cat >conftest.$ac_ext <<_ACEOF
39559 cat confdefs.h >>conftest.$ac_ext
39560 cat >>conftest.$ac_ext <<_ACEOF
39561 /* end confdefs.h. */
39562 $ac_includes_default
39564 find_stack_direction ()
39566 static char *addr = 0;
39571 return find_stack_direction ();
39574 return (&dummy > addr) ? 1 : -1;
39580 return find_stack_direction () < 0;
39583 rm -f conftest$ac_exeext
39584 if { (ac_try="$ac_link"
39585 case "(($ac_try" in
39586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39587 *) ac_try_echo=$ac_try;;
39589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39590 (eval "$ac_link") 2>&5
39592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39594 { (case "(($ac_try" in
39595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39596 *) ac_try_echo=$ac_try;;
39598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39599 (eval "$ac_try") 2>&5
39601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602 (exit $ac_status); }; }; then
39603 ac_cv_c_stack_direction=1
39605 echo "$as_me: program exited with status $ac_status" >&5
39606 echo "$as_me: failed program was:" >&5
39607 sed 's/^/| /' conftest.$ac_ext >&5
39609 ( exit $ac_status )
39610 ac_cv_c_stack_direction=-1
39612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39617 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39618 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39620 cat >>confdefs.h <<_ACEOF
39621 #define STACK_DIRECTION $ac_cv_c_stack_direction
39627 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39628 # -lseq on Dynix/PTX, -lgen on Unixware.
39629 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39630 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39631 if test "${ac_cv_search_getmntent+set}" = set; then
39632 echo $ECHO_N "(cached) $ECHO_C" >&6
39634 ac_func_search_save_LIBS=$LIBS
39635 cat >conftest.$ac_ext <<_ACEOF
39638 cat confdefs.h >>conftest.$ac_ext
39639 cat >>conftest.$ac_ext <<_ACEOF
39640 /* end confdefs.h. */
39642 /* Override any GCC internal prototype to avoid an error.
39643 Use char because int might match the return type of a GCC
39644 builtin and then its argument prototype would still apply. */
39652 return getmntent ();
39657 for ac_lib in '' sun seq gen; do
39658 if test -z "$ac_lib"; then
39659 ac_res="none required"
39662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39664 rm -f conftest.$ac_objext conftest$ac_exeext
39665 if { (ac_try="$ac_link"
39666 case "(($ac_try" in
39667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39668 *) ac_try_echo=$ac_try;;
39670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39671 (eval "$ac_link") 2>conftest.er1
39673 grep -v '^ *+' conftest.er1 >conftest.err
39675 cat conftest.err >&5
39676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677 (exit $ac_status); } && {
39678 test -z "$ac_c_werror_flag" ||
39679 test ! -s conftest.err
39680 } && test -s conftest$ac_exeext &&
39681 $as_test_x conftest$ac_exeext; then
39682 ac_cv_search_getmntent=$ac_res
39684 echo "$as_me: failed program was:" >&5
39685 sed 's/^/| /' conftest.$ac_ext >&5
39690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39692 if test "${ac_cv_search_getmntent+set}" = set; then
39696 if test "${ac_cv_search_getmntent+set}" = set; then
39699 ac_cv_search_getmntent=no
39701 rm conftest.$ac_ext
39702 LIBS=$ac_func_search_save_LIBS
39704 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39705 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39706 ac_res=$ac_cv_search_getmntent
39707 if test "$ac_res" != no; then
39708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39709 ac_cv_func_getmntent=yes
39711 cat >>confdefs.h <<\_ACEOF
39712 #define HAVE_GETMNTENT 1
39716 ac_cv_func_getmntent=no
39720 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39721 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39722 if test "${ac_cv_func_closedir_void+set}" = set; then
39723 echo $ECHO_N "(cached) $ECHO_C" >&6
39725 if test "$cross_compiling" = yes; then
39726 ac_cv_func_closedir_void=yes
39728 cat >conftest.$ac_ext <<_ACEOF
39731 cat confdefs.h >>conftest.$ac_ext
39732 cat >>conftest.$ac_ext <<_ACEOF
39733 /* end confdefs.h. */
39734 $ac_includes_default
39735 #include <$ac_header_dirent>
39736 #ifndef __cplusplus
39743 return closedir (opendir (".")) != 0;
39748 rm -f conftest$ac_exeext
39749 if { (ac_try="$ac_link"
39750 case "(($ac_try" in
39751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39752 *) ac_try_echo=$ac_try;;
39754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39755 (eval "$ac_link") 2>&5
39757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39759 { (case "(($ac_try" in
39760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39761 *) ac_try_echo=$ac_try;;
39763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39764 (eval "$ac_try") 2>&5
39766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39767 (exit $ac_status); }; }; then
39768 ac_cv_func_closedir_void=no
39770 echo "$as_me: program exited with status $ac_status" >&5
39771 echo "$as_me: failed program was:" >&5
39772 sed 's/^/| /' conftest.$ac_ext >&5
39774 ( exit $ac_status )
39775 ac_cv_func_closedir_void=yes
39777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39782 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39783 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39784 if test $ac_cv_func_closedir_void = yes; then
39786 cat >>confdefs.h <<\_ACEOF
39787 #define CLOSEDIR_VOID 1
39792 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39793 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39794 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39795 echo $ECHO_N "(cached) $ECHO_C" >&6
39797 if test "$cross_compiling" = yes; then
39798 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39799 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39800 { (exit 1); exit 1; }; }
39802 cat >conftest.$ac_ext <<_ACEOF
39805 cat confdefs.h >>conftest.$ac_ext
39806 cat >>conftest.$ac_ext <<_ACEOF
39807 /* end confdefs.h. */
39808 $ac_includes_default
39812 /* If this system has a BSD-style setpgrp which takes arguments,
39813 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39814 exit successfully. */
39815 return setpgrp (1,1) != -1;
39820 rm -f conftest$ac_exeext
39821 if { (ac_try="$ac_link"
39822 case "(($ac_try" in
39823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39824 *) ac_try_echo=$ac_try;;
39826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39827 (eval "$ac_link") 2>&5
39829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39831 { (case "(($ac_try" in
39832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39833 *) ac_try_echo=$ac_try;;
39835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39836 (eval "$ac_try") 2>&5
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; }; then
39840 ac_cv_func_setpgrp_void=no
39842 echo "$as_me: program exited with status $ac_status" >&5
39843 echo "$as_me: failed program was:" >&5
39844 sed 's/^/| /' conftest.$ac_ext >&5
39846 ( exit $ac_status )
39847 ac_cv_func_setpgrp_void=yes
39849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39854 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39855 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39856 if test $ac_cv_func_setpgrp_void = yes; then
39858 cat >>confdefs.h <<\_ACEOF
39859 #define SETPGRP_VOID 1
39863 # AC_FUNC_FNMATCH dnl use local version
39865 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39866 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39867 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39868 echo $ECHO_N "(cached) $ECHO_C" >&6
39870 ac_check_lib_save_LIBS=$LIBS
39871 LIBS="-lintl $LIBS"
39872 cat >conftest.$ac_ext <<_ACEOF
39875 cat confdefs.h >>conftest.$ac_ext
39876 cat >>conftest.$ac_ext <<_ACEOF
39877 /* end confdefs.h. */
39879 /* Override any GCC internal prototype to avoid an error.
39880 Use char because int might match the return type of a GCC
39881 builtin and then its argument prototype would still apply. */
39894 rm -f conftest.$ac_objext conftest$ac_exeext
39895 if { (ac_try="$ac_link"
39896 case "(($ac_try" in
39897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39898 *) ac_try_echo=$ac_try;;
39900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39901 (eval "$ac_link") 2>conftest.er1
39903 grep -v '^ *+' conftest.er1 >conftest.err
39905 cat conftest.err >&5
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); } && {
39908 test -z "$ac_c_werror_flag" ||
39909 test ! -s conftest.err
39910 } && test -s conftest$ac_exeext &&
39911 $as_test_x conftest$ac_exeext; then
39912 ac_cv_lib_intl_gettext=yes
39914 echo "$as_me: failed program was:" >&5
39915 sed 's/^/| /' conftest.$ac_ext >&5
39917 ac_cv_lib_intl_gettext=no
39920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39921 conftest$ac_exeext conftest.$ac_ext
39922 LIBS=$ac_check_lib_save_LIBS
39924 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39925 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39926 if test $ac_cv_lib_intl_gettext = yes; then
39927 LIBS="$LIBS -lintl"
39932 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39933 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39934 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39935 echo $ECHO_N "(cached) $ECHO_C" >&6
39937 ac_check_lib_save_LIBS=$LIBS
39939 cat >conftest.$ac_ext <<_ACEOF
39942 cat confdefs.h >>conftest.$ac_ext
39943 cat >>conftest.$ac_ext <<_ACEOF
39944 /* end confdefs.h. */
39946 /* Override any GCC internal prototype to avoid an error.
39947 Use char because int might match the return type of a GCC
39948 builtin and then its argument prototype would still apply. */
39956 return getpwnam ();
39961 rm -f conftest.$ac_objext conftest$ac_exeext
39962 if { (ac_try="$ac_link"
39963 case "(($ac_try" in
39964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39965 *) ac_try_echo=$ac_try;;
39967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39968 (eval "$ac_link") 2>conftest.er1
39970 grep -v '^ *+' conftest.er1 >conftest.err
39972 cat conftest.err >&5
39973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39974 (exit $ac_status); } && {
39975 test -z "$ac_c_werror_flag" ||
39976 test ! -s conftest.err
39977 } && test -s conftest$ac_exeext &&
39978 $as_test_x conftest$ac_exeext; then
39979 ac_cv_lib_sun_getpwnam=yes
39981 echo "$as_me: failed program was:" >&5
39982 sed 's/^/| /' conftest.$ac_ext >&5
39984 ac_cv_lib_sun_getpwnam=no
39987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39988 conftest$ac_exeext conftest.$ac_ext
39989 LIBS=$ac_check_lib_save_LIBS
39991 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39992 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39993 if test $ac_cv_lib_sun_getpwnam = yes; then
39994 cat >>confdefs.h <<_ACEOF
39995 #define HAVE_LIBSUN 1
40004 for ac_header in zlib.h
40006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40011 echo $ECHO_N "(cached) $ECHO_C" >&6
40013 ac_res=`eval echo '${'$as_ac_Header'}'`
40014 { echo "$as_me:$LINENO: result: $ac_res" >&5
40015 echo "${ECHO_T}$ac_res" >&6; }
40017 # Is the header compilable?
40018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40020 cat >conftest.$ac_ext <<_ACEOF
40023 cat confdefs.h >>conftest.$ac_ext
40024 cat >>conftest.$ac_ext <<_ACEOF
40025 /* end confdefs.h. */
40026 $ac_includes_default
40027 #include <$ac_header>
40029 rm -f conftest.$ac_objext
40030 if { (ac_try="$ac_compile"
40031 case "(($ac_try" in
40032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40033 *) ac_try_echo=$ac_try;;
40035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40036 (eval "$ac_compile") 2>conftest.er1
40038 grep -v '^ *+' conftest.er1 >conftest.err
40040 cat conftest.err >&5
40041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042 (exit $ac_status); } && {
40043 test -z "$ac_c_werror_flag" ||
40044 test ! -s conftest.err
40045 } && test -s conftest.$ac_objext; then
40046 ac_header_compiler=yes
40048 echo "$as_me: failed program was:" >&5
40049 sed 's/^/| /' conftest.$ac_ext >&5
40051 ac_header_compiler=no
40054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40056 echo "${ECHO_T}$ac_header_compiler" >&6; }
40058 # Is the header present?
40059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40061 cat >conftest.$ac_ext <<_ACEOF
40064 cat confdefs.h >>conftest.$ac_ext
40065 cat >>conftest.$ac_ext <<_ACEOF
40066 /* end confdefs.h. */
40067 #include <$ac_header>
40069 if { (ac_try="$ac_cpp conftest.$ac_ext"
40070 case "(($ac_try" in
40071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40072 *) ac_try_echo=$ac_try;;
40074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40077 grep -v '^ *+' conftest.er1 >conftest.err
40079 cat conftest.err >&5
40080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40081 (exit $ac_status); } >/dev/null && {
40082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40083 test ! -s conftest.err
40085 ac_header_preproc=yes
40087 echo "$as_me: failed program was:" >&5
40088 sed 's/^/| /' conftest.$ac_ext >&5
40090 ac_header_preproc=no
40093 rm -f conftest.err conftest.$ac_ext
40094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40095 echo "${ECHO_T}$ac_header_preproc" >&6; }
40097 # So? What about this header?
40098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40104 ac_header_preproc=yes
40107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40125 echo $ECHO_N "(cached) $ECHO_C" >&6
40127 eval "$as_ac_Header=\$ac_header_preproc"
40129 ac_res=`eval echo '${'$as_ac_Header'}'`
40130 { echo "$as_me:$LINENO: result: $ac_res" >&5
40131 echo "${ECHO_T}$ac_res" >&6; }
40134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40135 cat >>confdefs.h <<_ACEOF
40136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40143 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40144 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40145 if test "${ac_cv_lib_z_deflate+set}" = set; then
40146 echo $ECHO_N "(cached) $ECHO_C" >&6
40148 ac_check_lib_save_LIBS=$LIBS
40150 cat >conftest.$ac_ext <<_ACEOF
40153 cat confdefs.h >>conftest.$ac_ext
40154 cat >>conftest.$ac_ext <<_ACEOF
40155 /* end confdefs.h. */
40157 /* Override any GCC internal prototype to avoid an error.
40158 Use char because int might match the return type of a GCC
40159 builtin and then its argument prototype would still apply. */
40172 rm -f conftest.$ac_objext conftest$ac_exeext
40173 if { (ac_try="$ac_link"
40174 case "(($ac_try" in
40175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40176 *) ac_try_echo=$ac_try;;
40178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40179 (eval "$ac_link") 2>conftest.er1
40181 grep -v '^ *+' conftest.er1 >conftest.err
40183 cat conftest.err >&5
40184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185 (exit $ac_status); } && {
40186 test -z "$ac_c_werror_flag" ||
40187 test ! -s conftest.err
40188 } && test -s conftest$ac_exeext &&
40189 $as_test_x conftest$ac_exeext; then
40190 ac_cv_lib_z_deflate=yes
40192 echo "$as_me: failed program was:" >&5
40193 sed 's/^/| /' conftest.$ac_ext >&5
40195 ac_cv_lib_z_deflate=no
40198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40199 conftest$ac_exeext conftest.$ac_ext
40200 LIBS=$ac_check_lib_save_LIBS
40202 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40203 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40204 if test $ac_cv_lib_z_deflate = yes; then
40209 if test x$FDLIBS = x-lz; then
40210 cat >>confdefs.h <<\_ACEOF
40211 #define HAVE_LIBZ 1
40218 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40219 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40220 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40221 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40222 echo $ECHO_N "(cached) $ECHO_C" >&6
40224 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40225 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40227 # Is the header compilable?
40228 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40229 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40230 cat >conftest.$ac_ext <<_ACEOF
40233 cat confdefs.h >>conftest.$ac_ext
40234 cat >>conftest.$ac_ext <<_ACEOF
40235 /* end confdefs.h. */
40236 $ac_includes_default
40237 #include <sys/acl.h>
40239 rm -f conftest.$ac_objext
40240 if { (ac_try="$ac_compile"
40241 case "(($ac_try" in
40242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40243 *) ac_try_echo=$ac_try;;
40245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40246 (eval "$ac_compile") 2>conftest.er1
40248 grep -v '^ *+' conftest.er1 >conftest.err
40250 cat conftest.err >&5
40251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40252 (exit $ac_status); } && {
40253 test -z "$ac_c_werror_flag" ||
40254 test ! -s conftest.err
40255 } && test -s conftest.$ac_objext; then
40256 ac_header_compiler=yes
40258 echo "$as_me: failed program was:" >&5
40259 sed 's/^/| /' conftest.$ac_ext >&5
40261 ac_header_compiler=no
40264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40266 echo "${ECHO_T}$ac_header_compiler" >&6; }
40268 # Is the header present?
40269 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40270 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40271 cat >conftest.$ac_ext <<_ACEOF
40274 cat confdefs.h >>conftest.$ac_ext
40275 cat >>conftest.$ac_ext <<_ACEOF
40276 /* end confdefs.h. */
40277 #include <sys/acl.h>
40279 if { (ac_try="$ac_cpp conftest.$ac_ext"
40280 case "(($ac_try" in
40281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40282 *) ac_try_echo=$ac_try;;
40284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40287 grep -v '^ *+' conftest.er1 >conftest.err
40289 cat conftest.err >&5
40290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40291 (exit $ac_status); } >/dev/null && {
40292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40293 test ! -s conftest.err
40295 ac_header_preproc=yes
40297 echo "$as_me: failed program was:" >&5
40298 sed 's/^/| /' conftest.$ac_ext >&5
40300 ac_header_preproc=no
40303 rm -f conftest.err conftest.$ac_ext
40304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40305 echo "${ECHO_T}$ac_header_preproc" >&6; }
40307 # So? What about this header?
40308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40310 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40311 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40312 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40313 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40314 ac_header_preproc=yes
40317 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40318 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40319 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40320 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40321 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40322 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40323 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40324 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40325 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40326 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40327 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40328 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40332 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40333 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40334 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40335 echo $ECHO_N "(cached) $ECHO_C" >&6
40337 ac_cv_header_sys_acl_h=$ac_header_preproc
40339 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40340 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40345 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40346 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40347 if test "${ac_cv_func_acl_get_file+set}" = set; then
40348 echo $ECHO_N "(cached) $ECHO_C" >&6
40350 cat >conftest.$ac_ext <<_ACEOF
40353 cat confdefs.h >>conftest.$ac_ext
40354 cat >>conftest.$ac_ext <<_ACEOF
40355 /* end confdefs.h. */
40356 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40358 #define acl_get_file innocuous_acl_get_file
40360 /* System header to define __stub macros and hopefully few prototypes,
40361 which can conflict with char acl_get_file (); below.
40362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40363 <limits.h> exists even on freestanding compilers. */
40366 # include <limits.h>
40368 # include <assert.h>
40371 #undef acl_get_file
40373 /* Override any GCC internal prototype to avoid an error.
40374 Use char because int might match the return type of a GCC
40375 builtin and then its argument prototype would still apply. */
40379 char acl_get_file ();
40380 /* The GNU C library defines this for functions which it implements
40381 to always fail with ENOSYS. Some functions are actually named
40382 something starting with __ and the normal name is an alias. */
40383 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40390 return acl_get_file ();
40395 rm -f conftest.$ac_objext conftest$ac_exeext
40396 if { (ac_try="$ac_link"
40397 case "(($ac_try" in
40398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40399 *) ac_try_echo=$ac_try;;
40401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40402 (eval "$ac_link") 2>conftest.er1
40404 grep -v '^ *+' conftest.er1 >conftest.err
40406 cat conftest.err >&5
40407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408 (exit $ac_status); } && {
40409 test -z "$ac_c_werror_flag" ||
40410 test ! -s conftest.err
40411 } && test -s conftest$ac_exeext &&
40412 $as_test_x conftest$ac_exeext; then
40413 ac_cv_func_acl_get_file=yes
40415 echo "$as_me: failed program was:" >&5
40416 sed 's/^/| /' conftest.$ac_ext >&5
40418 ac_cv_func_acl_get_file=no
40421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40422 conftest$ac_exeext conftest.$ac_ext
40424 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40425 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40426 if test $ac_cv_func_acl_get_file = yes; then
40430 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40431 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40432 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40433 echo $ECHO_N "(cached) $ECHO_C" >&6
40435 ac_check_lib_save_LIBS=$LIBS
40437 cat >conftest.$ac_ext <<_ACEOF
40440 cat confdefs.h >>conftest.$ac_ext
40441 cat >>conftest.$ac_ext <<_ACEOF
40442 /* end confdefs.h. */
40444 /* Override any GCC internal prototype to avoid an error.
40445 Use char because int might match the return type of a GCC
40446 builtin and then its argument prototype would still apply. */
40450 char acl_get_file ();
40454 return acl_get_file ();
40459 rm -f conftest.$ac_objext conftest$ac_exeext
40460 if { (ac_try="$ac_link"
40461 case "(($ac_try" in
40462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40463 *) ac_try_echo=$ac_try;;
40465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40466 (eval "$ac_link") 2>conftest.er1
40468 grep -v '^ *+' conftest.er1 >conftest.err
40470 cat conftest.err >&5
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); } && {
40473 test -z "$ac_c_werror_flag" ||
40474 test ! -s conftest.err
40475 } && test -s conftest$ac_exeext &&
40476 $as_test_x conftest$ac_exeext; then
40477 ac_cv_lib_acl_acl_get_file=yes
40479 echo "$as_me: failed program was:" >&5
40480 sed 's/^/| /' conftest.$ac_ext >&5
40482 ac_cv_lib_acl_acl_get_file=no
40485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40486 conftest$ac_exeext conftest.$ac_ext
40487 LIBS=$ac_check_lib_save_LIBS
40489 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40490 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40491 if test $ac_cv_lib_acl_acl_get_file = yes; then
40494 FDLIBS="-lacl $FDLIBS"
40498 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40499 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40500 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40501 echo $ECHO_N "(cached) $ECHO_C" >&6
40503 ac_check_lib_save_LIBS=$LIBS
40505 cat >conftest.$ac_ext <<_ACEOF
40508 cat confdefs.h >>conftest.$ac_ext
40509 cat >>conftest.$ac_ext <<_ACEOF
40510 /* end confdefs.h. */
40512 /* Override any GCC internal prototype to avoid an error.
40513 Use char because int might match the return type of a GCC
40514 builtin and then its argument prototype would still apply. */
40522 return acltotext ();
40527 rm -f conftest.$ac_objext conftest$ac_exeext
40528 if { (ac_try="$ac_link"
40529 case "(($ac_try" in
40530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40531 *) ac_try_echo=$ac_try;;
40533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40534 (eval "$ac_link") 2>conftest.er1
40536 grep -v '^ *+' conftest.er1 >conftest.err
40538 cat conftest.err >&5
40539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40540 (exit $ac_status); } && {
40541 test -z "$ac_c_werror_flag" ||
40542 test ! -s conftest.err
40543 } && test -s conftest$ac_exeext &&
40544 $as_test_x conftest$ac_exeext; then
40545 ac_cv_lib_sec_acltotext=yes
40547 echo "$as_me: failed program was:" >&5
40548 sed 's/^/| /' conftest.$ac_ext >&5
40550 ac_cv_lib_sec_acltotext=no
40553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40554 conftest$ac_exeext conftest.$ac_ext
40555 LIBS=$ac_check_lib_save_LIBS
40557 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40558 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40559 if test $ac_cv_lib_sec_acltotext = yes; then
40562 FDLIBS="-lsec $FDLIBS"
40575 if test $have_acl = yes; then
40576 cat >>confdefs.h <<\_ACEOF
40583 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40584 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40585 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40586 echo $ECHO_N "(cached) $ECHO_C" >&6
40588 ac_check_lib_save_LIBS=$LIBS
40589 LIBS="-lpthread $LIBS"
40590 cat >conftest.$ac_ext <<_ACEOF
40593 cat confdefs.h >>conftest.$ac_ext
40594 cat >>conftest.$ac_ext <<_ACEOF
40595 /* end confdefs.h. */
40597 /* Override any GCC internal prototype to avoid an error.
40598 Use char because int might match the return type of a GCC
40599 builtin and then its argument prototype would still apply. */
40603 char pthread_create ();
40607 return pthread_create ();
40612 rm -f conftest.$ac_objext conftest$ac_exeext
40613 if { (ac_try="$ac_link"
40614 case "(($ac_try" in
40615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40616 *) ac_try_echo=$ac_try;;
40618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40619 (eval "$ac_link") 2>conftest.er1
40621 grep -v '^ *+' conftest.er1 >conftest.err
40623 cat conftest.err >&5
40624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40625 (exit $ac_status); } && {
40626 test -z "$ac_c_werror_flag" ||
40627 test ! -s conftest.err
40628 } && test -s conftest$ac_exeext &&
40629 $as_test_x conftest$ac_exeext; then
40630 ac_cv_lib_pthread_pthread_create=yes
40632 echo "$as_me: failed program was:" >&5
40633 sed 's/^/| /' conftest.$ac_ext >&5
40635 ac_cv_lib_pthread_pthread_create=no
40638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40639 conftest$ac_exeext conftest.$ac_ext
40640 LIBS=$ac_check_lib_save_LIBS
40642 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40643 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40644 if test $ac_cv_lib_pthread_pthread_create = yes; then
40645 PTHREAD_LIB="-lpthread"
40648 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40649 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40650 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40651 echo $ECHO_N "(cached) $ECHO_C" >&6
40653 ac_check_lib_save_LIBS=$LIBS
40654 LIBS="-lpthreads $LIBS"
40655 cat >conftest.$ac_ext <<_ACEOF
40658 cat confdefs.h >>conftest.$ac_ext
40659 cat >>conftest.$ac_ext <<_ACEOF
40660 /* end confdefs.h. */
40662 /* Override any GCC internal prototype to avoid an error.
40663 Use char because int might match the return type of a GCC
40664 builtin and then its argument prototype would still apply. */
40668 char pthread_create ();
40672 return pthread_create ();
40677 rm -f conftest.$ac_objext conftest$ac_exeext
40678 if { (ac_try="$ac_link"
40679 case "(($ac_try" in
40680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40681 *) ac_try_echo=$ac_try;;
40683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40684 (eval "$ac_link") 2>conftest.er1
40686 grep -v '^ *+' conftest.er1 >conftest.err
40688 cat conftest.err >&5
40689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40690 (exit $ac_status); } && {
40691 test -z "$ac_c_werror_flag" ||
40692 test ! -s conftest.err
40693 } && test -s conftest$ac_exeext &&
40694 $as_test_x conftest$ac_exeext; then
40695 ac_cv_lib_pthreads_pthread_create=yes
40697 echo "$as_me: failed program was:" >&5
40698 sed 's/^/| /' conftest.$ac_ext >&5
40700 ac_cv_lib_pthreads_pthread_create=no
40703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40704 conftest$ac_exeext conftest.$ac_ext
40705 LIBS=$ac_check_lib_save_LIBS
40707 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40708 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40709 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40710 PTHREAD_LIB="-lpthreads"
40713 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40714 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40715 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40716 echo $ECHO_N "(cached) $ECHO_C" >&6
40718 ac_check_lib_save_LIBS=$LIBS
40720 cat >conftest.$ac_ext <<_ACEOF
40723 cat confdefs.h >>conftest.$ac_ext
40724 cat >>conftest.$ac_ext <<_ACEOF
40725 /* end confdefs.h. */
40727 /* Override any GCC internal prototype to avoid an error.
40728 Use char because int might match the return type of a GCC
40729 builtin and then its argument prototype would still apply. */
40733 char pthread_create ();
40737 return pthread_create ();
40742 rm -f conftest.$ac_objext conftest$ac_exeext
40743 if { (ac_try="$ac_link"
40744 case "(($ac_try" in
40745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40746 *) ac_try_echo=$ac_try;;
40748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40749 (eval "$ac_link") 2>conftest.er1
40751 grep -v '^ *+' conftest.er1 >conftest.err
40753 cat conftest.err >&5
40754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755 (exit $ac_status); } && {
40756 test -z "$ac_c_werror_flag" ||
40757 test ! -s conftest.err
40758 } && test -s conftest$ac_exeext &&
40759 $as_test_x conftest$ac_exeext; then
40760 ac_cv_lib_c_r_pthread_create=yes
40762 echo "$as_me: failed program was:" >&5
40763 sed 's/^/| /' conftest.$ac_ext >&5
40765 ac_cv_lib_c_r_pthread_create=no
40768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40769 conftest$ac_exeext conftest.$ac_ext
40770 LIBS=$ac_check_lib_save_LIBS
40772 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40773 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40774 if test $ac_cv_lib_c_r_pthread_create = yes; then
40775 PTHREAD_LIB="-lc_r"
40778 { echo "$as_me:$LINENO: checking for pthread_create" >&5
40779 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40780 if test "${ac_cv_func_pthread_create+set}" = set; then
40781 echo $ECHO_N "(cached) $ECHO_C" >&6
40783 cat >conftest.$ac_ext <<_ACEOF
40786 cat confdefs.h >>conftest.$ac_ext
40787 cat >>conftest.$ac_ext <<_ACEOF
40788 /* end confdefs.h. */
40789 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40791 #define pthread_create innocuous_pthread_create
40793 /* System header to define __stub macros and hopefully few prototypes,
40794 which can conflict with char pthread_create (); below.
40795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40796 <limits.h> exists even on freestanding compilers. */
40799 # include <limits.h>
40801 # include <assert.h>
40804 #undef pthread_create
40806 /* Override any GCC internal prototype to avoid an error.
40807 Use char because int might match the return type of a GCC
40808 builtin and then its argument prototype would still apply. */
40812 char pthread_create ();
40813 /* The GNU C library defines this for functions which it implements
40814 to always fail with ENOSYS. Some functions are actually named
40815 something starting with __ and the normal name is an alias. */
40816 #if defined __stub_pthread_create || defined __stub___pthread_create
40823 return pthread_create ();
40828 rm -f conftest.$ac_objext conftest$ac_exeext
40829 if { (ac_try="$ac_link"
40830 case "(($ac_try" in
40831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40832 *) ac_try_echo=$ac_try;;
40834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40835 (eval "$ac_link") 2>conftest.er1
40837 grep -v '^ *+' conftest.er1 >conftest.err
40839 cat conftest.err >&5
40840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40841 (exit $ac_status); } && {
40842 test -z "$ac_c_werror_flag" ||
40843 test ! -s conftest.err
40844 } && test -s conftest$ac_exeext &&
40845 $as_test_x conftest$ac_exeext; then
40846 ac_cv_func_pthread_create=yes
40848 echo "$as_me: failed program was:" >&5
40849 sed 's/^/| /' conftest.$ac_ext >&5
40851 ac_cv_func_pthread_create=no
40854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40855 conftest$ac_exeext conftest.$ac_ext
40857 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40858 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40874 cat >>confdefs.h <<\_ACEOF
40879 CFLAGS=${CFLAGS--O}
40881 if test x$have_gcc = xyes ; then
40882 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40883 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40885 LDFLAGS=${LDFLAGS--O}
40886 DB_LIBS="${SQL_LFLAGS}"
40887 CPPFLAGS="$CPPFLAGS"
40914 PFILES="platforms/Makefile"
40918 hostname=`uname -n | cut -d '.' -f 1`
40919 if test x${hostname} = x ; then
40920 hostname="localhost"
40922 case "$DISTNAME" in
40925 PSCMD="ps -e -o pid,comm"
40926 PFILES="${PFILES} \
40927 platforms/aix/Makefile"
40928 TAPEDRIVE="/dev/rmt0.1"
40932 PTHREAD_LIB="-lpthread -lexc"
40933 if test "${CC}" = "gcc" ; then
40940 TAPEDRIVE="/dev/nrmt0"
40943 DISTVER=`uname -a |awk '{print $3}'`
40944 TAPEDRIVE="/dev/nrmt0"
40945 PTHREAD_LIB="-pthread"
40946 CFLAGS="${CFLAGS} -pthread"
40947 PSCMD="ps -ax -o pid,command"
40950 PFILES="${PFILES} \
40951 platforms/bsdi/Makefile \
40952 platforms/bsdi/bacula-fd \
40953 platforms/bsdi/bacula-sd \
40954 platforms/bsdi/bacula-dir"
40955 largefile_support="yes"
40958 DISTVER=`uname -a |awk '{print $3}'`
40959 TAPEDRIVE="/dev/nrst0"
40961 WCFLAGS="-mwindows"
40962 WLDFLAGS="-mwindows"
40966 TAPEDRIVE="/dev/nst0"
40967 PSCMD="ps -e -o pid,command"
40969 PFILES="${PFILES} \
40970 platforms/darwin/Makefile"
40973 ping -c 1 $hostname 2>&1 1>/dev/null
40974 if test ! $? = 0; then
40975 hostname="localhost"
40977 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40980 DISTVER=`cat /etc/debian_version`
40981 if test -f /etc/lsb-release ; then
40983 if test "x$DISTRIB_ID" != "x" ; then
40984 DISTNAME=$DISTRIB_ID
40986 if test "x$DISTRIB_RELEASE" != "x" ; then
40987 DISTVER=$DISTRIB_RELEASE
40990 if test "$DISTNAME" = "Ubuntu" ; then
40993 TAPEDRIVE="/dev/nst0"
40994 PSCMD="ps -e -o pid,command"
40995 if test "$DISTNAME" = "ubuntu" ; then
40996 PFILES="${PFILES} \
40997 platforms/ubuntu/Makefile \
40998 platforms/ubuntu/bacula-fd \
40999 platforms/ubuntu/bacula-sd \
41000 platforms/ubuntu/bacula-dir"
41002 PFILES="${PFILES} \
41003 platforms/debian/Makefile \
41004 platforms/debian/bacula-fd \
41005 platforms/debian/bacula-sd \
41006 platforms/debian/bacula-dir"
41010 ping -c 1 $hostname 2>&1 1>/dev/null
41011 if test ! $? = 0; then
41012 hostname="localhost"
41014 DISTVER=`uname -a |awk '{print $3}'`
41015 VER=`echo $DISTVER | cut -c 1`
41016 if test x$VER = x4 ; then
41017 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41018 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41022 TAPEDRIVE="/dev/nrsa0"
41023 PSCMD="ps -ax -o pid,command"
41024 PFILES="${PFILES} \
41025 platforms/freebsd/Makefile \
41026 platforms/freebsd/bacula-fd \
41027 platforms/freebsd/bacula-sd \
41028 platforms/freebsd/bacula-dir"
41029 largefile_support="yes"
41032 PSCMD="UNIX95=1; ps -e -o pid,comm"
41033 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41035 TAPEDRIVE="/dev/rmt/0hnb"
41036 PTHREAD_LIB="-lpthread"
41037 cat >>confdefs.h <<\_ACEOF
41038 #define _INCLUDE_LONGLONG 1
41044 TAPEDRIVE="/dev/rmt/0cbn"
41045 PSCMD="ps -e -o pid,comm"
41046 PFILES="${PFILES} \
41047 platforms/irix/Makefile \
41048 platforms/irix/bacula-fd \
41049 platforms/irix/bacula-sd \
41050 platforms/irix/bacula-dir"
41053 DISTVER=`uname -a |awk '{print $3}'`
41056 TAPEDRIVE="/dev/nrst0"
41057 PSCMD="ps -ax -o pid,command"
41058 PTHREAD_LIB="-pthread"
41059 CFLAGS="${CFLAGS} -pthread"
41062 DISTVER=`uname -a |awk '{print $3}'`
41065 TAPEDRIVE="/dev/nrst0"
41066 PSCMD="ps -ax -o pid,command"
41067 PTHREAD_LIB="-pthread"
41068 CFLAGS="${CFLAGS} -pthread"
41069 PFILES="${PFILES} \
41070 platforms/openbsd/Makefile \
41071 platforms/openbsd/bacula-fd \
41072 platforms/openbsd/bacula-sd \
41073 platforms/openbsd/bacula-dir"
41076 ping -c 1 $hostname 2>&1 1>/dev/null
41077 if test ! $? = 0; then
41078 hostname="localhost"
41080 if test -f /etc/whitebox-release ; then
41081 f=/etc/whitebox-release
41083 f=/etc/redhat-release
41085 if test `cat $f | grep release |\
41086 cut -f 3 -d ' '`x = "Enterprise"x ; then
41087 DISTVER="Enterprise "`cat $f | grep release |\
41090 DISTVER=`cat /etc/redhat-release | grep release |\
41093 TAPEDRIVE="/dev/nst0"
41094 PSCMD="ps -e -o pid,command"
41095 PFILES="${PFILES} \
41096 platforms/redhat/Makefile \
41097 platforms/redhat/bacula-fd \
41098 platforms/redhat/bacula-sd \
41099 platforms/redhat/bacula-dir \
41100 platforms/redhat/bacula.spec \
41104 ping -c 1 $hostname 2>&1 1>/dev/null
41105 if test ! $? = 0; then
41106 hostname="localhost"
41108 DISTVER=`cat /etc/mandrake-release | grep release |\
41110 TAPEDRIVE="/dev/nst0"
41111 PSCMD="ps -e -o pid,command"
41112 PFILES="${PFILES} \
41113 platforms/mandrake/Makefile \
41114 platforms/mandrake/bacula-fd \
41115 platforms/mandrake/bacula-sd \
41116 platforms/mandrake/bacula-dir \
41117 platforms/mandrake/bacula.spec \
41121 ping -c 1 $hostname 2>&1 1>/dev/null
41122 if test ! $? = 0; then
41123 hostname="localhost"
41125 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41126 TAPEDRIVE="/dev/nst0"
41127 PSCMD="ps -e -o pid,command"
41128 PFILES="${PFILES} \
41129 platforms/gentoo/Makefile \
41130 platforms/gentoo/bacula-init \
41131 platforms/gentoo/bacula-fd \
41132 platforms/gentoo/bacula-sd \
41133 platforms/gentoo/bacula-dir"
41136 ping -c 1 $hostname 2>&1 1>/dev/null
41137 if test ! $? = 0; then
41138 hostname="localhost"
41140 DISTVER=`cat /etc/slackware-version`
41141 TAPEDRIVE="/dev/nst0"
41142 PSCMD="ps -e -o pid,command"
41143 PFILES="${PFILES} \
41144 platforms/slackware/Makefile \
41145 platforms/slackware/rc.bacula-fd \
41146 platforms/slackware/rc.bacula-sd \
41147 platforms/slackware/rc.bacula-dir\
41148 platforms/slackware/functions.bacula"
41152 TAPEDRIVE="/dev/rmt/0cbn"
41153 PSCMD="ps -e -o pid,comm"
41154 PFILES="${PFILES} \
41155 platforms/solaris/Makefile \
41156 platforms/solaris/bacula-fd \
41157 platforms/solaris/bacula-sd \
41158 platforms/solaris/bacula-dir"
41159 if test x$DISTVER = x5.6 ; then
41160 cat >>confdefs.h <<\_ACEOF
41161 #define HAVE_OLD_SOCKOPT 1
41165 LIBS="$LIBS -lresolv"
41168 ping -c 1 $hostname 2>&1 1>/dev/null
41169 if test ! $? = 0; then
41170 hostname="localhost"
41172 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41174 TAPEDRIVE="/dev/nst0"
41175 PSCMD="ps -e -o pid,command"
41176 PFILES="${PFILES} \
41177 platforms/suse/Makefile \
41178 platforms/suse/bacula-fd \
41179 platforms/suse/bacula-sd \
41180 platforms/suse/bacula-dir \
41181 platforms/suse/bacula \
41182 platforms/suse/bacula.spec"
41185 ping -c 1 $hostname 2>&1 1>/dev/null
41186 if test ! $? = 0; then
41187 hostname="localhost"
41191 TAPEDRIVE="/dev/nst0"
41192 PSCMD="ps -e -o pid,command"
41193 PFILES="${PFILES} \
41194 platforms/suse/Makefile \
41195 platforms/suse/bacula-fd \
41196 platforms/suse/bacula-sd \
41197 platforms/suse/bacula-dir"
41201 TAPEDRIVE="/dev/nst0"
41204 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41210 LIBS="$PTHREAD_LIB $LIBS"
41212 cat >>confdefs.h <<_ACEOF
41216 cat >>confdefs.h <<_ACEOF
41227 MCOMMON=./autoconf/Make.common
41230 if test "x${subsysdir}" = "x${sbindir}" ; then
41233 echo "You have set both --sbindir and --with-subsys-dir"
41234 echo " equal to: ${subsysdir} "
41235 echo "This is not permitted. Please reconfigure."
41237 echo "Aborting configuration ..."
41243 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"
41245 ac_config_commands="$ac_config_commands default"
41247 cat >confcache <<\_ACEOF
41248 # This file is a shell script that caches the results of configure
41249 # tests run on this system so they can be shared between configure
41250 # scripts and configure runs, see configure's option --config-cache.
41251 # It is not useful on other systems. If it contains results you don't
41252 # want to keep, you may remove or edit it.
41254 # config.status only pays attention to the cache file if you give it
41255 # the --recheck option to rerun configure.
41257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41259 # following values.
41263 # The following way of writing the cache mishandles newlines in values,
41264 # but we know of no workaround that is simple, portable, and efficient.
41265 # So, we kill variables containing newlines.
41266 # Ultrix sh set writes to stderr and can't be redirected directly,
41267 # and sets the high bit in the cache file unless we assign to the vars.
41269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41270 eval ac_val=\$$ac_var
41274 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41275 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41278 _ | IFS | as_nl) ;; #(
41279 *) $as_unset $ac_var ;;
41285 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41286 *${as_nl}ac_space=\ *)
41287 # `set' does not quote correctly, so add quotes (double-quote
41288 # substitution turns \\\\ into \\, and sed turns \\ into \).
41291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41294 # `set' quotes correctly as required by POSIX, so do not add quotes.
41295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41304 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41306 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41308 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41309 if test -w "$cache_file"; then
41310 test "x$cache_file" != "x/dev/null" &&
41311 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41312 echo "$as_me: updating cache $cache_file" >&6;}
41313 cat confcache >$cache_file
41315 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41316 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41322 # Let make expand exec_prefix.
41323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41325 DEFS=-DHAVE_CONFIG_H
41329 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41330 # 1. Remove the extension, and $U if already installed.
41331 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41332 ac_i=`echo "$ac_i" | sed "$ac_script"`
41333 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41334 # will be set to the directory where LIBOBJS objects are built.
41335 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41336 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41338 LIBOBJS=$ac_libobjs
41340 LTLIBOBJS=$ac_ltlibobjs
41344 : ${CONFIG_STATUS=./config.status}
41345 ac_clean_files_save=$ac_clean_files
41346 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41347 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41348 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41349 cat >$CONFIG_STATUS <<_ACEOF
41351 # Generated by $as_me.
41352 # Run this file to recreate the current configuration.
41353 # Compiler output produced by configure, useful for debugging
41354 # configure, is in config.log if it exists.
41357 ac_cs_recheck=false
41359 SHELL=\${CONFIG_SHELL-$SHELL}
41362 cat >>$CONFIG_STATUS <<\_ACEOF
41363 ## --------------------- ##
41364 ## M4sh Initialization. ##
41365 ## --------------------- ##
41367 # Be more Bourne compatible
41368 DUALCASE=1; export DUALCASE # for MKS sh
41369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41372 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41373 # is contrary to our usage. Disable this feature.
41374 alias -g '${1+"$@"}'='"$@"'
41375 setopt NO_GLOB_SUBST
41377 case `(set -o) 2>/dev/null` in
41378 *posix*) set -o posix ;;
41387 # Avoid depending upon Character Ranges.
41388 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41389 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41390 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41391 as_cr_digits='0123456789'
41392 as_cr_alnum=$as_cr_Letters$as_cr_digits
41394 # The user is always right.
41395 if test "${PATH_SEPARATOR+set}" != set; then
41396 echo "#! /bin/sh" >conf$$.sh
41397 echo "exit 0" >>conf$$.sh
41399 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41407 # Support unset when possible.
41408 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41416 # We need space, tab and new line, in precisely that order. Quoting is
41417 # there to prevent editors from complaining about space-tab.
41418 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41419 # splitting by setting IFS to empty value.)
41424 # Find who we are. Look in the path if we contain no directory separator.
41426 *[\\/]* ) as_myself=$0 ;;
41427 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41428 for as_dir in $PATH
41431 test -z "$as_dir" && as_dir=.
41432 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41438 # We did not find ourselves, most probably we were run as `sh COMMAND'
41439 # in which case we are not to be found in the path.
41440 if test "x$as_myself" = x; then
41443 if test ! -f "$as_myself"; then
41444 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41445 { (exit 1); exit 1; }
41448 # Work around bugs in pre-3.0 UWIN ksh.
41449 for as_var in ENV MAIL MAILPATH
41450 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41458 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41459 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41460 LC_TELEPHONE LC_TIME
41462 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41463 eval $as_var=C; export $as_var
41465 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41469 # Required to use basename.
41470 if expr a : '\(a\)' >/dev/null 2>&1 &&
41471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41477 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41478 as_basename=basename
41484 # Name of the executable.
41485 as_me=`$as_basename -- "$0" ||
41486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41487 X"$0" : 'X\(//\)$' \| \
41488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41490 sed '/^.*\/\([^/][^/]*\)\/*$/{
41509 as_lineno_1=$LINENO
41510 as_lineno_2=$LINENO
41511 test "x$as_lineno_1" != "x$as_lineno_2" &&
41512 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41515 # uniformly replaced by the line number. The first 'sed' inserts a
41516 # line-number line after each line using $LINENO; the second 'sed'
41517 # does the real work. The second script uses 'N' to pair each
41518 # line-number line with the line containing $LINENO, and appends
41519 # trailing '-' during substitution so that $LINENO is not a special
41520 # case at line end.
41521 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41522 # scripts with optimization help from Paolo Bonzini. Blame Lee
41523 # E. McMahon (1931-1989) for sed's syntax. :-)
41535 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41538 ' >$as_me.lineno &&
41539 chmod +x "$as_me.lineno" ||
41540 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41541 { (exit 1); exit 1; }; }
41543 # Don't try to exec as it changes $[0], causing all sort of problems
41544 # (the dirname of $[0] is not the place where we might find the
41545 # original and so on. Autoconf is especially sensitive to this).
41546 . "./$as_me.lineno"
41547 # Exit status is that of the last command.
41552 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41558 ECHO_C= ECHO_N= ECHO_T=
41559 case `echo -n x` in
41561 case `echo 'x\c'` in
41562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41569 if expr a : '\(a\)' >/dev/null 2>&1 &&
41570 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41576 rm -f conf$$ conf$$.exe conf$$.file
41577 if test -d conf$$.dir; then
41578 rm -f conf$$.dir/conf$$.file
41584 if ln -s conf$$.file conf$$ 2>/dev/null; then
41586 # ... but there are two gotchas:
41587 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41588 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41589 # In both cases, we have to default to `cp -p'.
41590 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41592 elif ln conf$$.file conf$$ 2>/dev/null; then
41597 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41598 rmdir conf$$.dir 2>/dev/null
41600 if mkdir -p . 2>/dev/null; then
41603 test -d ./-p && rmdir ./-p
41607 if test -x / >/dev/null 2>&1; then
41608 as_test_x='test -x'
41610 if ls -dL / >/dev/null 2>&1; then
41617 if test -d "$1"; then
41623 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41624 ???[sx]*):;;*)false;;esac;fi
41628 as_executable_p=$as_test_x
41630 # Sed expression to map a string onto a valid CPP name.
41631 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41633 # Sed expression to map a string onto a valid variable name.
41634 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41639 # Save the log message, to keep $[0] and so on meaningful, and to
41640 # report actual input values of CONFIG_FILES etc. instead of their
41641 # values after options handling.
41643 This file was extended by $as_me, which was
41644 generated by GNU Autoconf 2.61. Invocation command line was
41646 CONFIG_FILES = $CONFIG_FILES
41647 CONFIG_HEADERS = $CONFIG_HEADERS
41648 CONFIG_LINKS = $CONFIG_LINKS
41649 CONFIG_COMMANDS = $CONFIG_COMMANDS
41652 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41657 cat >>$CONFIG_STATUS <<_ACEOF
41658 # Files that config.status was made for.
41659 config_files="$ac_config_files"
41660 config_headers="$ac_config_headers"
41661 config_commands="$ac_config_commands"
41665 cat >>$CONFIG_STATUS <<\_ACEOF
41667 \`$as_me' instantiates files from templates according to the
41668 current configuration.
41670 Usage: $0 [OPTIONS] [FILE]...
41672 -h, --help print this help, then exit
41673 -V, --version print version number and configuration settings, then exit
41674 -q, --quiet do not print progress messages
41675 -d, --debug don't remove temporary files
41676 --recheck update $as_me by reconfiguring in the same conditions
41677 --file=FILE[:TEMPLATE]
41678 instantiate the configuration file FILE
41679 --header=FILE[:TEMPLATE]
41680 instantiate the configuration header FILE
41682 Configuration files:
41685 Configuration headers:
41688 Configuration commands:
41691 Report bugs to <bug-autoconf@gnu.org>."
41694 cat >>$CONFIG_STATUS <<_ACEOF
41697 configured by $0, generated by GNU Autoconf 2.61,
41698 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41700 Copyright (C) 2006 Free Software Foundation, Inc.
41701 This config.status script is free software; the Free Software Foundation
41702 gives unlimited permission to copy, distribute and modify it."
41709 cat >>$CONFIG_STATUS <<\_ACEOF
41710 # If no file are specified by the user, then we need to provide default
41711 # value. By we need to know if files were specified by the user.
41717 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41718 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41729 # Handling of the options.
41730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41732 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41733 echo "$ac_cs_version"; exit ;;
41734 --debug | --debu | --deb | --de | --d | -d )
41736 --file | --fil | --fi | --f )
41738 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41739 ac_need_defaults=false;;
41740 --header | --heade | --head | --hea )
41742 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41743 ac_need_defaults=false;;
41745 # Conflict between --help and --header
41746 { echo "$as_me: error: ambiguous option: $1
41747 Try \`$0 --help' for more information." >&2
41748 { (exit 1); exit 1; }; };;
41749 --help | --hel | -h )
41750 echo "$ac_cs_usage"; exit ;;
41751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41752 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41755 # This is an error.
41756 -*) { echo "$as_me: error: unrecognized option: $1
41757 Try \`$0 --help' for more information." >&2
41758 { (exit 1); exit 1; }; } ;;
41760 *) ac_config_targets="$ac_config_targets $1"
41761 ac_need_defaults=false ;;
41767 ac_configure_extra_args=
41769 if $ac_cs_silent; then
41771 ac_configure_extra_args="$ac_configure_extra_args --silent"
41775 cat >>$CONFIG_STATUS <<_ACEOF
41776 if \$ac_cs_recheck; then
41777 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41778 CONFIG_SHELL=$SHELL
41779 export CONFIG_SHELL
41780 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41784 cat >>$CONFIG_STATUS <<\_ACEOF
41788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41789 ## Running $as_me. ##
41795 cat >>$CONFIG_STATUS <<_ACEOF
41801 # The HP-UX ksh and POSIX shell print the target directory to stdout
41802 # if CDPATH is set.
41803 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41805 sed_quote_subst='$sed_quote_subst'
41806 double_quote_subst='$double_quote_subst'
41807 delay_variable_subst='$delay_variable_subst'
41808 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41809 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41810 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41811 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41812 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41813 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41814 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41815 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41816 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41817 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41818 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41819 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41820 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41821 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41822 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41823 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41824 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41825 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41826 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41827 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41828 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41829 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41830 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41831 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41832 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41833 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41834 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41835 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41836 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41837 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41838 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41839 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41840 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41841 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41842 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41843 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41844 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41845 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41846 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41847 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41848 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41849 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41850 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41851 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41852 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"`'
41853 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"`'
41854 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41855 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41856 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41857 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41858 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41859 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41860 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41861 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41862 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41863 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41864 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41865 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41866 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41867 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41868 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41869 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41870 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41871 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41872 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41873 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41874 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41875 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41876 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41877 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41878 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41879 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41880 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41881 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41882 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41883 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41884 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41885 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41886 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41887 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41888 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41889 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41890 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41891 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41892 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41893 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41894 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41895 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41896 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41897 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41898 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41899 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41900 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41901 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41902 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41903 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41904 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41905 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41906 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41907 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41908 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41909 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41910 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41911 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41912 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41913 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41914 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41915 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41916 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41917 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41918 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41919 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41920 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41921 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41922 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41923 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41924 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41925 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41926 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41927 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41928 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41929 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41930 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41931 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41932 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41959 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41961 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41962 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41963 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41964 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41965 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41966 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41967 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41968 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41969 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41970 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41971 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41972 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41973 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41974 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41975 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41976 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41977 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41978 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41981 LTCFLAGS='$LTCFLAGS'
41982 compiler='$compiler_DEFAULT'
41984 # Quote evaled strings.
41996 deplibs_check_method \
42005 lt_cv_sys_global_symbol_pipe \
42006 lt_cv_sys_global_symbol_to_cdecl \
42007 lt_cv_sys_global_symbol_to_c_name_address \
42008 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42011 lt_prog_compiler_no_builtin_flag \
42012 lt_prog_compiler_wl \
42013 lt_prog_compiler_pic \
42014 lt_prog_compiler_static \
42015 lt_cv_prog_compiler_c_o \
42023 export_dynamic_flag_spec \
42024 whole_archive_flag_spec \
42025 compiler_needs_object \
42027 allow_undefined_flag \
42028 no_undefined_flag \
42029 hardcode_libdir_flag_spec \
42030 hardcode_libdir_flag_spec_ld \
42031 hardcode_libdir_separator \
42036 variables_saved_for_relink \
42038 library_names_spec \
42043 compiler_lib_search_dirs \
42048 compiler_lib_search_path \
42051 lt_prog_compiler_no_builtin_flag_CXX \
42052 lt_prog_compiler_wl_CXX \
42053 lt_prog_compiler_pic_CXX \
42054 lt_prog_compiler_static_CXX \
42055 lt_cv_prog_compiler_c_o_CXX \
42056 export_dynamic_flag_spec_CXX \
42057 whole_archive_flag_spec_CXX \
42058 compiler_needs_object_CXX \
42060 allow_undefined_flag_CXX \
42061 no_undefined_flag_CXX \
42062 hardcode_libdir_flag_spec_CXX \
42063 hardcode_libdir_flag_spec_ld_CXX \
42064 hardcode_libdir_separator_CXX \
42065 fix_srcfile_path_CXX \
42066 exclude_expsyms_CXX \
42067 include_expsyms_CXX \
42068 file_list_spec_CXX \
42069 compiler_lib_search_dirs_CXX \
42070 predep_objects_CXX \
42071 postdep_objects_CXX \
42074 compiler_lib_search_path_CXX; do
42075 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42076 *[\\\\\\\`\\"\\\$]*)
42077 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42080 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42085 # Double-quote double-evaled strings.
42086 for var in reload_cmds \
42087 old_postinstall_cmds \
42088 old_postuninstall_cmds \
42090 extract_expsyms_cmds \
42091 old_archive_from_new_cmds \
42092 old_archive_from_expsyms_cmds \
42094 archive_expsym_cmds \
42096 module_expsym_cmds \
42097 export_symbols_cmds \
42100 postuninstall_cmds \
42102 sys_lib_search_path_spec \
42103 sys_lib_dlsearch_path_spec \
42104 old_archive_cmds_CXX \
42105 old_archive_from_new_cmds_CXX \
42106 old_archive_from_expsyms_cmds_CXX \
42108 archive_expsym_cmds_CXX \
42110 module_expsym_cmds_CXX \
42111 export_symbols_cmds_CXX \
42112 prelink_cmds_CXX; do
42113 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42114 *[\\\\\\\`\\"\\\$]*)
42115 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42118 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42123 # Fix-up fallback echo if it was mangled by the above quoting rules.
42125 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42129 ac_aux_dir='$ac_aux_dir'
42130 xsi_shell='$xsi_shell'
42131 lt_shell_append='$lt_shell_append'
42133 # See if we are running on zsh, and set the options which allow our
42134 # commands through without removal of \ escapes INIT.
42135 if test -n "\${ZSH_VERSION+set}" ; then
42136 setopt NO_GLOB_SUBST
42142 TIMESTAMP='$TIMESTAMP'
42150 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42151 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42153 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42154 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42155 LINGUAS="${LINGUAS-%UNSET%}"
42160 cat >>$CONFIG_STATUS <<\_ACEOF
42162 # Handling of arguments.
42163 for ac_config_target in $ac_config_targets
42165 case $ac_config_target in
42166 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42167 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42168 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42169 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42170 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42171 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42172 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42173 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42174 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42175 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42176 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42177 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42178 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42179 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42180 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42181 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42182 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42183 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42184 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42185 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42186 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42187 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42188 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42189 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42190 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42191 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42192 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42193 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42194 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42195 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42196 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42197 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42198 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42199 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42200 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42201 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42202 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42203 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42204 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42205 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42206 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42207 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42208 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42209 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42210 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42211 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42212 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42213 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42214 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42215 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42216 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42217 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42218 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42219 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42220 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42221 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42222 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42223 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42224 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42225 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42226 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42227 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42228 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42229 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42230 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42231 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42232 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42233 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42234 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42235 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42236 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42237 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42238 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42239 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42240 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42241 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42242 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42243 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42244 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42245 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42246 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42247 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42248 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42249 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42250 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42251 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42252 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42253 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42254 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42255 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42256 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42257 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42258 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42259 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42260 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42261 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42262 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42263 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42264 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42265 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42266 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42267 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42268 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42269 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42270 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42271 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42272 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42273 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42274 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42275 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42276 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42277 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42278 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42280 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42281 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42282 { (exit 1); exit 1; }; };;
42287 # If the user did not use the arguments to specify the items to instantiate,
42288 # then the envvar interface is used. Set only those that are not.
42289 # We use the long form for the default assignment because of an extremely
42290 # bizarre bug on SunOS 4.1.3.
42291 if $ac_need_defaults; then
42292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42294 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42297 # Have a temporary directory for convenience. Make it in the build tree
42298 # simply because there is no reason against having it here, and in addition,
42299 # creating and moving files from /tmp can sometimes cause problems.
42300 # Hook for its removal unless debugging.
42301 # Note that there is a small window in which the directory will not be cleaned:
42302 # after its creation but before its name has been assigned to `$tmp'.
42306 trap 'exit_status=$?
42307 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42309 trap '{ (exit 1); exit 1; }' 1 2 13 15
42311 # Create a (secure) tmp directory for tmp files.
42314 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42315 test -n "$tmp" && test -d "$tmp"
42318 tmp=./conf$$-$RANDOM
42319 (umask 077 && mkdir "$tmp")
42322 echo "$me: cannot create a temporary directory in ." >&2
42323 { (exit 1); exit 1; }
42327 # Set up the sed scripts for CONFIG_FILES section.
42330 # No need to generate the scripts if there are no CONFIG_FILES.
42331 # This happens for instance when ./config.status config.h
42332 if test -n "$CONFIG_FILES"; then
42336 # Create sed commands to just substitute file output variables.
42338 # Remaining file output variables are in a fragment that also has non-file
42344 for ac_last_try in false false false false false :; do
42345 cat >conf$$subs.sed <<_ACEOF
42346 SHELL!$SHELL$ac_delim
42347 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42348 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42349 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42350 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42351 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42352 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42353 exec_prefix!$exec_prefix$ac_delim
42354 prefix!$prefix$ac_delim
42355 program_transform_name!$program_transform_name$ac_delim
42356 bindir!$bindir$ac_delim
42357 sbindir!$sbindir$ac_delim
42358 libexecdir!$libexecdir$ac_delim
42359 datarootdir!$datarootdir$ac_delim
42360 datadir!$datadir$ac_delim
42361 sysconfdir!$sysconfdir$ac_delim
42362 sharedstatedir!$sharedstatedir$ac_delim
42363 localstatedir!$localstatedir$ac_delim
42364 includedir!$includedir$ac_delim
42365 oldincludedir!$oldincludedir$ac_delim
42366 docdir!$docdir$ac_delim
42367 infodir!$infodir$ac_delim
42368 htmldir!$htmldir$ac_delim
42369 dvidir!$dvidir$ac_delim
42370 pdfdir!$pdfdir$ac_delim
42371 psdir!$psdir$ac_delim
42372 libdir!$libdir$ac_delim
42373 localedir!$localedir$ac_delim
42374 mandir!$mandir$ac_delim
42375 DEFS!$DEFS$ac_delim
42376 ECHO_C!$ECHO_C$ac_delim
42377 ECHO_N!$ECHO_N$ac_delim
42378 ECHO_T!$ECHO_T$ac_delim
42379 LIBS!$LIBS$ac_delim
42380 build_alias!$build_alias$ac_delim
42381 host_alias!$host_alias$ac_delim
42382 target_alias!$target_alias$ac_delim
42383 BUILD_DIR!$BUILD_DIR$ac_delim
42384 TOP_DIR!$TOP_DIR$ac_delim
42385 TRUEPRG!$TRUEPRG$ac_delim
42386 FALSEPRG!$FALSEPRG$ac_delim
42387 VERSION!$VERSION$ac_delim
42388 DATE!$DATE$ac_delim
42389 LSMDATE!$LSMDATE$ac_delim
42390 BACULA!$BACULA$ac_delim
42391 post_host!$post_host$ac_delim
42393 CFLAGS!$CFLAGS$ac_delim
42394 LDFLAGS!$LDFLAGS$ac_delim
42395 CPPFLAGS!$CPPFLAGS$ac_delim
42396 ac_ct_CC!$ac_ct_CC$ac_delim
42397 EXEEXT!$EXEEXT$ac_delim
42398 OBJEXT!$OBJEXT$ac_delim
42400 CXXFLAGS!$CXXFLAGS$ac_delim
42401 ac_ct_CXX!$ac_ct_CXX$ac_delim
42403 GREP!$GREP$ac_delim
42404 EGREP!$EGREP$ac_delim
42405 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42406 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42407 INSTALL_DATA!$INSTALL_DATA$ac_delim
42409 REMOVE!$REMOVE$ac_delim
42412 ECHO!$ECHO$ac_delim
42416 OPENSSL!$OPENSSL$ac_delim
42419 MKISOFS!$MKISOFS$ac_delim
42420 PYTHON!$PYTHON$ac_delim
42421 GROWISOFS!$GROWISOFS$ac_delim
42422 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42423 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42424 PKGCONFIG!$PKGCONFIG$ac_delim
42425 QMAKE!$QMAKE$ac_delim
42426 QMAKEQT4!$QMAKEQT4$ac_delim
42427 WXCONFIG!$WXCONFIG$ac_delim
42428 WXFLAGS!$WXFLAGS$ac_delim
42429 CDRECORD!$CDRECORD$ac_delim
42430 PIDOF!$PIDOF$ac_delim
42432 ARFLAGS!$ARFLAGS$ac_delim
42433 MAKE_SHELL!$MAKE_SHELL$ac_delim
42434 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42435 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42436 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42437 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42438 LIBTOOL!$LIBTOOL$ac_delim
42439 build!$build$ac_delim
42442 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42444 elif $ac_last_try; then
42445 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42446 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42447 { (exit 1); exit 1; }; }
42449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42453 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42454 if test -n "$ac_eof"; then
42455 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42456 ac_eof=`expr $ac_eof + 1`
42459 cat >>$CONFIG_STATUS <<_ACEOF
42460 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42461 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42462 /^[ ]*@MCOMMON@[ ]*$/{
42468 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42469 s/^/s,@/; s/!/@,|#_!!_#|/
42472 s/'"$ac_delim"'$/,g/; t
42474 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42475 ' >>$CONFIG_STATUS <conf$$subs.sed
42476 rm -f conf$$subs.sed
42477 cat >>$CONFIG_STATUS <<_ACEOF
42483 for ac_last_try in false false false false false :; do
42484 cat >conf$$subs.sed <<_ACEOF
42485 build_cpu!$build_cpu$ac_delim
42486 build_vendor!$build_vendor$ac_delim
42487 build_os!$build_os$ac_delim
42488 host!$host$ac_delim
42489 host_cpu!$host_cpu$ac_delim
42490 host_vendor!$host_vendor$ac_delim
42491 host_os!$host_os$ac_delim
42492 FGREP!$FGREP$ac_delim
42494 DUMPBIN!$DUMPBIN$ac_delim
42495 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42497 LN_S!$LN_S$ac_delim
42498 OBJDUMP!$OBJDUMP$ac_delim
42499 STRIP!$STRIP$ac_delim
42500 RANLIB!$RANLIB$ac_delim
42501 lt_ECHO!$lt_ECHO$ac_delim
42502 DSYMUTIL!$DSYMUTIL$ac_delim
42503 NMEDIT!$NMEDIT$ac_delim
42504 LIPO!$LIPO$ac_delim
42505 OTOOL!$OTOOL$ac_delim
42506 OTOOL64!$OTOOL64$ac_delim
42507 CXXCPP!$CXXCPP$ac_delim
42508 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42509 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42510 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42511 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42512 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42513 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42514 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42515 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42516 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42517 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42518 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42519 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42520 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42521 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42522 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42523 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42524 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42525 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42526 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42527 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42528 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42529 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42530 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42531 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42532 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42533 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42534 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42535 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42536 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42537 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42538 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42539 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42540 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42541 SET_MAKE!$SET_MAKE$ac_delim
42542 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42543 USE_NLS!$USE_NLS$ac_delim
42544 MSGFMT!$MSGFMT$ac_delim
42545 GMSGFMT!$GMSGFMT$ac_delim
42546 XGETTEXT!$XGETTEXT$ac_delim
42547 MSGMERGE!$MSGMERGE$ac_delim
42548 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42549 LIBICONV!$LIBICONV$ac_delim
42550 LTLIBICONV!$LTLIBICONV$ac_delim
42551 INTLLIBS!$INTLLIBS$ac_delim
42552 LIBINTL!$LIBINTL$ac_delim
42553 LTLIBINTL!$LTLIBINTL$ac_delim
42554 POSUB!$POSUB$ac_delim
42555 GLIBC2!$GLIBC2$ac_delim
42556 ALLOCA!$ALLOCA$ac_delim
42557 GLIBC21!$GLIBC21$ac_delim
42558 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42559 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42560 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42561 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42562 INTLBISON!$INTLBISON$ac_delim
42563 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42564 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42565 CATOBJEXT!$CATOBJEXT$ac_delim
42566 DATADIRNAME!$DATADIRNAME$ac_delim
42567 INSTOBJEXT!$INSTOBJEXT$ac_delim
42568 GENCAT!$GENCAT$ac_delim
42569 INTLOBJS!$INTLOBJS$ac_delim
42570 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42571 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42572 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42573 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42574 GNOME_LIBS!$GNOME_LIBS$ac_delim
42575 GNOME_DIR!$GNOME_DIR$ac_delim
42576 BAT_DIR!$BAT_DIR$ac_delim
42577 QWT_INC!$QWT_INC$ac_delim
42578 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42579 QWT_LIB!$QWT_LIB$ac_delim
42581 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42584 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42586 elif $ac_last_try; then
42587 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42588 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42589 { (exit 1); exit 1; }; }
42591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42595 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42596 if test -n "$ac_eof"; then
42597 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42598 ac_eof=`expr $ac_eof + 1`
42601 cat >>$CONFIG_STATUS <<_ACEOF
42602 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42606 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42607 s/^/s,@/; s/!/@,|#_!!_#|/
42610 s/'"$ac_delim"'$/,g/; t
42612 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42613 ' >>$CONFIG_STATUS <conf$$subs.sed
42614 rm -f conf$$subs.sed
42615 cat >>$CONFIG_STATUS <<_ACEOF
42621 for ac_last_try in false false false false false :; do
42622 cat >conf$$subs.sed <<_ACEOF
42623 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42624 WX_DIR!$WX_DIR$ac_delim
42625 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42626 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42627 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42628 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42629 STATIC_FD!$STATIC_FD$ac_delim
42630 STATIC_SD!$STATIC_SD$ac_delim
42631 STATIC_DIR!$STATIC_DIR$ac_delim
42632 STATIC_CONS!$STATIC_CONS$ac_delim
42633 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42634 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42635 ALL_DIRS!$ALL_DIRS$ac_delim
42636 DIRD_DIR!$DIRD_DIR$ac_delim
42637 DIR_TOOLS!$DIR_TOOLS$ac_delim
42638 STORED_DIR!$STORED_DIR$ac_delim
42639 CONS_INC!$CONS_INC$ac_delim
42640 CONS_OBJ!$CONS_OBJ$ac_delim
42641 CONS_SRC!$CONS_SRC$ac_delim
42642 CONS_LIBS!$CONS_LIBS$ac_delim
42643 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42644 READLINE_SRC!$READLINE_SRC$ac_delim
42645 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42646 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42647 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42648 OPENSSL_INC!$OPENSSL_INC$ac_delim
42649 working_dir!$working_dir$ac_delim
42650 archivedir!$archivedir$ac_delim
42651 scriptdir!$scriptdir$ac_delim
42652 plugindir!$plugindir$ac_delim
42653 dump_email!$dump_email$ac_delim
42654 job_email!$job_email$ac_delim
42655 smtp_host!$smtp_host$ac_delim
42656 piddir!$piddir$ac_delim
42657 subsysdir!$subsysdir$ac_delim
42658 baseport!$baseport$ac_delim
42659 dir_port!$dir_port$ac_delim
42660 fd_port!$fd_port$ac_delim
42661 sd_port!$sd_port$ac_delim
42662 dir_password!$dir_password$ac_delim
42663 fd_password!$fd_password$ac_delim
42664 sd_password!$sd_password$ac_delim
42665 mon_dir_password!$mon_dir_password$ac_delim
42666 mon_fd_password!$mon_fd_password$ac_delim
42667 mon_sd_password!$mon_sd_password$ac_delim
42668 db_name!$db_name$ac_delim
42669 db_user!$db_user$ac_delim
42670 db_password!$db_password$ac_delim
42671 db_port!$db_port$ac_delim
42672 dir_user!$dir_user$ac_delim
42673 dir_group!$dir_group$ac_delim
42674 sd_user!$sd_user$ac_delim
42675 sd_group!$sd_group$ac_delim
42676 fd_user!$fd_user$ac_delim
42677 fd_group!$fd_group$ac_delim
42678 SBINPERM!$SBINPERM$ac_delim
42679 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42680 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42681 SQL_BINDIR!$SQL_BINDIR$ac_delim
42682 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42683 uncomment_dbi!$uncomment_dbi$ac_delim
42684 DB_PROG!$DB_PROG$ac_delim
42685 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42686 cats!$cats$ac_delim
42687 DB_TYPE!$DB_TYPE$ac_delim
42688 GETCONF!$GETCONF$ac_delim
42689 XMKMF!$XMKMF$ac_delim
42690 X_CFLAGS!$X_CFLAGS$ac_delim
42691 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42692 X_LIBS!$X_LIBS$ac_delim
42693 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42694 LIBOBJS!$LIBOBJS$ac_delim
42695 FDLIBS!$FDLIBS$ac_delim
42696 DEBUG!$DEBUG$ac_delim
42697 DINCLUDE!$DINCLUDE$ac_delim
42698 DLIB!$DLIB$ac_delim
42699 DB_LIBS!$DB_LIBS$ac_delim
42700 WCFLAGS!$WCFLAGS$ac_delim
42701 WLDFLAGS!$WLDFLAGS$ac_delim
42702 WRAPLIBS!$WRAPLIBS$ac_delim
42703 OBJLIST!$OBJLIST$ac_delim
42704 hostname!$hostname$ac_delim
42705 TAPEDRIVE!$TAPEDRIVE$ac_delim
42706 PSCMD!$PSCMD$ac_delim
42707 WIN32!$WIN32$ac_delim
42708 MACOSX!$MACOSX$ac_delim
42709 DISTNAME!$DISTNAME$ac_delim
42710 DISTVER!$DISTVER$ac_delim
42711 LTLIBOBJS!$LTLIBOBJS$ac_delim
42714 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42716 elif $ac_last_try; then
42717 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42718 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42719 { (exit 1); exit 1; }; }
42721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42725 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42726 if test -n "$ac_eof"; then
42727 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42728 ac_eof=`expr $ac_eof + 1`
42731 cat >>$CONFIG_STATUS <<_ACEOF
42732 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42736 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42737 s/^/s,@/; s/!/@,|#_!!_#|/
42740 s/'"$ac_delim"'$/,g/; t
42742 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42743 ' >>$CONFIG_STATUS <conf$$subs.sed
42744 rm -f conf$$subs.sed
42745 cat >>$CONFIG_STATUS <<_ACEOF
42752 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42753 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42754 # trailing colons and then remove the whole line if VPATH becomes empty
42755 # (actually we leave an empty line to preserve line numbers).
42756 if test "x$srcdir" = x.; then
42757 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42758 s/:*\$(srcdir):*/:/
42759 s/:*\${srcdir}:*/:/
42761 s/^\([^=]*=[ ]*\):*/\1/
42767 cat >>$CONFIG_STATUS <<\_ACEOF
42768 fi # test -n "$CONFIG_FILES"
42771 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
42774 :[FHLC]) ac_mode=$ac_tag; continue;;
42776 case $ac_mode$ac_tag in
42778 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42779 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42780 { (exit 1); exit 1; }; };;
42781 :[FH]-) ac_tag=-:-;;
42782 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42799 -) ac_f="$tmp/stdin";;
42800 *) # Look for the file first in the build tree, then in the source tree
42801 # (if the path is not absolute). The absolute path cannot be DOS-style,
42802 # because $ac_f cannot contain `:'.
42806 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42808 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42809 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42810 { (exit 1); exit 1; }; };;
42812 ac_file_inputs="$ac_file_inputs $ac_f"
42815 # Let's still pretend it is `configure' which instantiates (i.e., don't
42816 # use $as_me), people would be surprised to read:
42817 # /* config.h. Generated by config.status. */
42818 configure_input="Generated from "`IFS=:
42819 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42820 if test x"$ac_file" != x-; then
42821 configure_input="$ac_file. $configure_input"
42822 { echo "$as_me:$LINENO: creating $ac_file" >&5
42823 echo "$as_me: creating $ac_file" >&6;}
42827 *:-:* | *:-) cat >"$tmp/stdin";;
42832 ac_dir=`$as_dirname -- "$ac_file" ||
42833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42834 X"$ac_file" : 'X\(//\)[^/]' \| \
42835 X"$ac_file" : 'X\(//\)$' \| \
42836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42842 /^X\(\/\/\)[^/].*/{
42857 -*) as_dir=./$as_dir;;
42859 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42863 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42864 *) as_qdir=$as_dir;;
42866 as_dirs="'$as_qdir' $as_dirs"
42867 as_dir=`$as_dirname -- "$as_dir" ||
42868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42869 X"$as_dir" : 'X\(//\)[^/]' \| \
42870 X"$as_dir" : 'X\(//\)$' \| \
42871 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42877 /^X\(\/\/\)[^/].*/{
42890 test -d "$as_dir" && break
42892 test -z "$as_dirs" || eval "mkdir $as_dirs"
42893 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42894 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42895 { (exit 1); exit 1; }; }; }
42899 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42902 # A ".." for each directory in $ac_dir_suffix.
42903 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42904 case $ac_top_builddir_sub in
42905 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42906 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42909 ac_abs_top_builddir=$ac_pwd
42910 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42911 # for backward compatibility:
42912 ac_top_builddir=$ac_top_build_prefix
42915 .) # We are building in place.
42917 ac_top_srcdir=$ac_top_builddir_sub
42918 ac_abs_top_srcdir=$ac_pwd ;;
42919 [\\/]* | ?:[\\/]* ) # Absolute name.
42920 ac_srcdir=$srcdir$ac_dir_suffix;
42921 ac_top_srcdir=$srcdir
42922 ac_abs_top_srcdir=$srcdir ;;
42923 *) # Relative name.
42924 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42925 ac_top_srcdir=$ac_top_build_prefix$srcdir
42926 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42928 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42938 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42939 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42943 cat >>$CONFIG_STATUS <<\_ACEOF
42944 # If the template does not know about datarootdir, expand it.
42945 # FIXME: This hack should be removed a few years after 2.60.
42946 ac_datarootdir_hack=; ac_datarootdir_seen=
42948 case `sed -n '/datarootdir/ {
42957 ' $ac_file_inputs` in
42958 *datarootdir*) ac_datarootdir_seen=yes;;
42959 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42960 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42961 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42963 cat >>$CONFIG_STATUS <<_ACEOF
42964 ac_datarootdir_hack='
42965 s&@datadir@&$datadir&g
42966 s&@docdir@&$docdir&g
42967 s&@infodir@&$infodir&g
42968 s&@localedir@&$localedir&g
42969 s&@mandir@&$mandir&g
42970 s&\\\${datarootdir}&$datarootdir&g' ;;
42974 # Neutralize VPATH when `$srcdir' = `.'.
42975 # Shell code in configure.ac might set extrasub.
42976 # FIXME: do we really want to maintain this feature?
42977 cat >>$CONFIG_STATUS <<_ACEOF
42981 cat >>$CONFIG_STATUS <<\_ACEOF
42983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42984 s&@configure_input@&$configure_input&;t t
42985 s&@top_builddir@&$ac_top_builddir_sub&;t t
42986 s&@srcdir@&$ac_srcdir&;t t
42987 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42988 s&@top_srcdir@&$ac_top_srcdir&;t t
42989 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42990 s&@builddir@&$ac_builddir&;t t
42991 s&@abs_builddir@&$ac_abs_builddir&;t t
42992 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42993 s&@INSTALL@&$ac_INSTALL&;t t
42994 $ac_datarootdir_hack
42995 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42997 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42998 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42999 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43000 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43001 which seems to be undefined. Please make sure it is defined." >&5
43002 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43003 which seems to be undefined. Please make sure it is defined." >&2;}
43007 -) cat "$tmp/out"; rm -f "$tmp/out";;
43008 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43017 # Transform confdefs.h into a sed script `conftest.defines', that
43018 # substitutes the proper values into config.h.in to produce config.h.
43019 rm -f conftest.defines conftest.tail
43020 # First, append a space to every undef/define line, to ease matching.
43021 echo 's/$/ /' >conftest.defines
43022 # Then, protect against being on the right side of a sed subst, or in
43023 # an unquoted here document, in config.status. If some macros were
43024 # called several times there might be several #defines for the same
43025 # symbol, which is useless. But do not sort them, since the last
43026 # AC_DEFINE must be honored.
43027 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43028 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43029 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43030 # PARAMS is the parameter list in the macro definition--in most cases, it's
43031 # just an empty string.
43032 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43033 ac_dB='\\)[ (].*,\\1define\\2'
43041 s/^[ ]*#[ ]*define[ ][ ]*//
43046 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43047 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43048 ' >>conftest.defines
43050 # Remove the space that was appended to ease matching.
43051 # Then replace #undef with comments. This is necessary, for
43052 # example, in the case of _POSIX_SOURCE, which is predefined and required
43053 # on some systems where configure will not decide to define it.
43054 # (The regexp can be short, since the line contains either #define or #undef.)
43056 s,^[ #]*u.*,/* & */,' >>conftest.defines
43058 # Break up conftest.defines:
43059 ac_max_sed_lines=50
43061 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43062 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43063 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43065 ac_in='$ac_file_inputs'
43066 ac_out='"$tmp/out1"'
43067 ac_nxt='"$tmp/out2"'
43071 # Write a here document:
43072 cat >>$CONFIG_STATUS <<_ACEOF
43073 # First, check the format of the line:
43074 cat >"\$tmp/defines.sed" <<\\CEOF
43075 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43076 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43080 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43082 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43083 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43084 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43085 grep . conftest.tail >/dev/null || break
43086 rm -f conftest.defines
43087 mv conftest.tail conftest.defines
43089 rm -f conftest.defines conftest.tail
43091 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43092 cat >>$CONFIG_STATUS <<\_ACEOF
43093 if test x"$ac_file" != x-; then
43094 echo "/* $configure_input */" >"$tmp/config.h"
43095 cat "$ac_result" >>"$tmp/config.h"
43096 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43097 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43098 echo "$as_me: $ac_file is unchanged" >&6;}
43101 mv "$tmp/config.h" $ac_file
43104 echo "/* $configure_input */"
43110 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43111 echo "$as_me: executing $ac_file commands" >&6;}
43116 case $ac_file$ac_mode in
43119 # See if we are running on zsh, and set the options which allow our
43120 # commands through without removal of \ escapes.
43121 if test -n "${ZSH_VERSION+set}" ; then
43122 setopt NO_GLOB_SUBST
43125 cfgfile="${ofile}T"
43126 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43129 cat <<_LT_EOF >> "$cfgfile"
43132 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43133 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43135 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43137 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43138 # 2006, 2007, 2008 Free Software Foundation, Inc.
43139 # Written by Gordon Matzigkeit, 1996
43141 # This file is part of GNU Libtool.
43143 # GNU Libtool is free software; you can redistribute it and/or
43144 # modify it under the terms of the GNU General Public License as
43145 # published by the Free Software Foundation; either version 2 of
43146 # the License, or (at your option) any later version.
43148 # As a special exception to the GNU General Public License,
43149 # if you distribute this file as part of a program or library that
43150 # is built using GNU Libtool, you may include this file under the
43151 # same distribution terms that you use for the rest of that program.
43153 # GNU Libtool is distributed in the hope that it will be useful,
43154 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43155 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43156 # GNU General Public License for more details.
43158 # You should have received a copy of the GNU General Public License
43159 # along with GNU Libtool; see the file COPYING. If not, a copy
43160 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43161 # obtained by writing to the Free Software Foundation, Inc.,
43162 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43165 # The names of the tagged configurations supported by this script.
43166 available_tags="CXX "
43168 # ### BEGIN LIBTOOL CONFIG
43170 # Which release of libtool.m4 was used?
43171 macro_version=$macro_version
43172 macro_revision=$macro_revision
43174 # Whether or not to build shared libraries.
43175 build_libtool_libs=$enable_shared
43177 # Whether or not to build static libraries.
43178 build_old_libs=$enable_static
43180 # What type of objects to build.
43183 # Whether or not to optimize for fast installation.
43184 fast_install=$enable_fast_install
43187 host_alias=$host_alias
43191 # The build system.
43192 build_alias=$build_alias
43196 # A sed program that does not truncate output.
43199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43200 Xsed="\$SED -e 1s/^X//"
43202 # A grep program that handles long lines.
43208 # A literal string matcher.
43211 # A BSD- or MS-compatible name lister.
43214 # Whether we need soft or hard links.
43217 # What is the maximum length of a command?
43218 max_cmd_len=$max_cmd_len
43220 # Object file suffix (normally "o").
43223 # Executable file suffix (normally "").
43226 # whether the shell understands "unset".
43229 # turn spaces into newlines.
43232 # turn newlines into spaces.
43235 # How to create reloadable object files.
43236 reload_flag=$lt_reload_flag
43237 reload_cmds=$lt_reload_cmds
43239 # An object symbol dumper.
43240 OBJDUMP=$lt_OBJDUMP
43242 # Method to check whether dependent libraries are shared objects.
43243 deplibs_check_method=$lt_deplibs_check_method
43245 # Command to use when deplibs_check_method == "file_magic".
43246 file_magic_cmd=$lt_file_magic_cmd
43250 AR_FLAGS=$lt_AR_FLAGS
43252 # A symbol stripping program.
43255 # Commands used to install an old-style archive.
43257 old_postinstall_cmds=$lt_old_postinstall_cmds
43258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43263 # LTCC compiler flags.
43264 LTCFLAGS=$lt_CFLAGS
43266 # Take the output of nm and produce a listing of raw symbols and C names.
43267 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43269 # Transform the output of nm in a proper C declaration.
43270 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43272 # Transform the output of nm in a C name address pair.
43273 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43275 # Transform the output of nm in a C name address pair when lib prefix is needed.
43276 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43278 # The name of the directory that contains temporary libtool files.
43281 # Shell to use when invoking shell scripts.
43284 # An echo program that does not interpret backslashes.
43287 # Used to examine libraries when file_magic_cmd begins with "file".
43288 MAGIC_CMD=$MAGIC_CMD
43290 # Must we lock files when doing compilation?
43291 need_locks=$lt_need_locks
43293 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43294 DSYMUTIL=$lt_DSYMUTIL
43296 # Tool to change global to local symbols on Mac OS X.
43299 # Tool to manipulate fat objects and archives on Mac OS X.
43302 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43305 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43306 OTOOL64=$lt_OTOOL64
43308 # Old archive suffix (normally "a").
43311 # Shared library suffix (normally ".so").
43312 shrext_cmds=$lt_shrext_cmds
43314 # The commands to extract the exported symbol list from a shared archive.
43315 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43317 # Variables whose values should be saved in libtool wrapper scripts and
43318 # restored at link time.
43319 variables_saved_for_relink=$lt_variables_saved_for_relink
43321 # Do we need the "lib" prefix for modules?
43322 need_lib_prefix=$need_lib_prefix
43324 # Do we need a version for libraries?
43325 need_version=$need_version
43327 # Library versioning type.
43328 version_type=$version_type
43330 # Shared library runtime path variable.
43331 runpath_var=$runpath_var
43333 # Shared library path variable.
43334 shlibpath_var=$shlibpath_var
43336 # Is shlibpath searched before the hard-coded library search path?
43337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43339 # Format of library name prefix.
43340 libname_spec=$lt_libname_spec
43342 # List of archive names. First name is the real one, the rest are links.
43343 # The last name is the one that the linker finds with -lNAME
43344 library_names_spec=$lt_library_names_spec
43346 # The coded name of the library, if different from the real name.
43347 soname_spec=$lt_soname_spec
43349 # Command to use after installation of a shared archive.
43350 postinstall_cmds=$lt_postinstall_cmds
43352 # Command to use after uninstallation of a shared archive.
43353 postuninstall_cmds=$lt_postuninstall_cmds
43355 # Commands used to finish a libtool library installation in a directory.
43356 finish_cmds=$lt_finish_cmds
43358 # As "finish_cmds", except a single script fragment to be evaled but
43360 finish_eval=$lt_finish_eval
43362 # Whether we should hardcode library paths into libraries.
43363 hardcode_into_libs=$hardcode_into_libs
43365 # Compile-time system search path for libraries.
43366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43368 # Run-time system search path for libraries.
43369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43371 # Whether dlopen is supported.
43372 dlopen_support=$enable_dlopen
43374 # Whether dlopen of programs is supported.
43375 dlopen_self=$enable_dlopen_self
43377 # Whether dlopen of statically linked programs is supported.
43378 dlopen_self_static=$enable_dlopen_self_static
43380 # Commands to strip libraries.
43381 old_striplib=$lt_old_striplib
43382 striplib=$lt_striplib
43385 # The linker used to build libraries.
43388 # Commands used to build an old-style archive.
43389 old_archive_cmds=$lt_old_archive_cmds
43391 # A language specific compiler.
43394 # Is the compiler the GNU compiler?
43397 # Compiler flag to turn off builtin functions.
43398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43400 # How to pass a linker flag through the compiler.
43401 wl=$lt_lt_prog_compiler_wl
43403 # Additional compiler flags for building library objects.
43404 pic_flag=$lt_lt_prog_compiler_pic
43406 # Compiler flag to prevent dynamic linking.
43407 link_static_flag=$lt_lt_prog_compiler_static
43409 # Does compiler simultaneously support -c and -o options?
43410 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43412 # Whether or not to add -lc for building shared libraries.
43413 build_libtool_need_lc=$archive_cmds_need_lc
43415 # Whether or not to disallow shared libs when runtime libs are static.
43416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43418 # Compiler flag to allow reflexive dlopens.
43419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43421 # Compiler flag to generate shared objects directly from archives.
43422 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43424 # Whether the compiler copes with passing no objects directly.
43425 compiler_needs_object=$lt_compiler_needs_object
43427 # Create an old-style archive from a shared archive.
43428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43430 # Create a temporary old-style archive to link instead of a shared archive.
43431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43433 # Commands used to build a shared archive.
43434 archive_cmds=$lt_archive_cmds
43435 archive_expsym_cmds=$lt_archive_expsym_cmds
43437 # Commands used to build a loadable module if different from building
43438 # a shared archive.
43439 module_cmds=$lt_module_cmds
43440 module_expsym_cmds=$lt_module_expsym_cmds
43442 # Whether we are building with GNU ld or not.
43443 with_gnu_ld=$lt_with_gnu_ld
43445 # Flag that allows shared libraries with undefined symbols to be built.
43446 allow_undefined_flag=$lt_allow_undefined_flag
43448 # Flag that enforces no undefined symbols.
43449 no_undefined_flag=$lt_no_undefined_flag
43451 # Flag to hardcode \$libdir into a binary during linking.
43452 # This must work even if \$libdir does not exist
43453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43455 # If ld is used when linking, flag to hardcode \$libdir into a binary
43456 # during linking. This must work even if \$libdir does not exist.
43457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43459 # Whether we need a single "-rpath" flag with a separated argument.
43460 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43462 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43463 # DIR into the resulting binary.
43464 hardcode_direct=$hardcode_direct
43466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43467 # DIR into the resulting binary and the resulting library dependency is
43468 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43469 # library is relocated.
43470 hardcode_direct_absolute=$hardcode_direct_absolute
43472 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43473 # into the resulting binary.
43474 hardcode_minus_L=$hardcode_minus_L
43476 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43477 # into the resulting binary.
43478 hardcode_shlibpath_var=$hardcode_shlibpath_var
43480 # Set to "yes" if building a shared library automatically hardcodes DIR
43481 # into the library and all subsequent libraries and executables linked
43483 hardcode_automatic=$hardcode_automatic
43485 # Set to yes if linker adds runtime paths of dependent libraries
43486 # to runtime path list.
43487 inherit_rpath=$inherit_rpath
43489 # Whether libtool must link a program against all its dependency libraries.
43490 link_all_deplibs=$link_all_deplibs
43492 # Fix the shell variable \$srcfile for the compiler.
43493 fix_srcfile_path=$lt_fix_srcfile_path
43495 # Set to "yes" if exported symbols are required.
43496 always_export_symbols=$always_export_symbols
43498 # The commands to list exported symbols.
43499 export_symbols_cmds=$lt_export_symbols_cmds
43501 # Symbols that should not be listed in the preloaded symbols.
43502 exclude_expsyms=$lt_exclude_expsyms
43504 # Symbols that must always be exported.
43505 include_expsyms=$lt_include_expsyms
43507 # Commands necessary for linking programs (against libraries) with templates.
43508 prelink_cmds=$lt_prelink_cmds
43510 # Specify filename containing input files.
43511 file_list_spec=$lt_file_list_spec
43513 # How to hardcode a shared library path into an executable.
43514 hardcode_action=$hardcode_action
43516 # The directories searched by this compiler when creating a shared library.
43517 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43519 # Dependencies to place before and after the objects being linked to
43520 # create a shared library.
43521 predep_objects=$lt_predep_objects
43522 postdep_objects=$lt_postdep_objects
43523 predeps=$lt_predeps
43524 postdeps=$lt_postdeps
43526 # The library search path used internally by the compiler when linking
43527 # a shared library.
43528 compiler_lib_search_path=$lt_compiler_lib_search_path
43530 # ### END LIBTOOL CONFIG
43536 cat <<\_LT_EOF >> "$cfgfile"
43537 # AIX sometimes has problems with the GCC collect2 program. For some
43538 # reason, if we set the COLLECT_NAMES environment variable, the problems
43539 # vanish in a puff of smoke.
43540 if test "X${COLLECT_NAMES+set}" != Xset; then
43542 export COLLECT_NAMES
43549 ltmain="$ac_aux_dir/ltmain.sh"
43552 # We use sed instead of cat because bash on DJGPP gets confused if
43553 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43554 # text mode, it properly converts lines to CR/LF. This bash problem
43555 # is reportedly fixed, but why not run on old versions too?
43556 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43557 || (rm -f "$cfgfile"; exit 1)
43561 cat << \_LT_EOF >> "$cfgfile"
43563 # func_dirname file append nondir_replacement
43564 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43565 # otherwise set result to NONDIR_REPLACEMENT.
43569 */*) func_dirname_result="${1%/*}${2}" ;;
43570 * ) func_dirname_result="${3}" ;;
43574 # func_basename file
43577 func_basename_result="${1##*/}"
43580 # func_dirname_and_basename file append nondir_replacement
43581 # perform func_basename and func_dirname in a single function
43583 # dirname: Compute the dirname of FILE. If nonempty,
43584 # add APPEND to the result, otherwise set result
43585 # to NONDIR_REPLACEMENT.
43586 # value returned in "$func_dirname_result"
43587 # basename: Compute filename of FILE.
43588 # value retuned in "$func_basename_result"
43589 # Implementation must be kept synchronized with func_dirname
43590 # and func_basename. For efficiency, we do not delegate to
43591 # those functions but instead duplicate the functionality here.
43592 func_dirname_and_basename ()
43595 */*) func_dirname_result="${1%/*}${2}" ;;
43596 * ) func_dirname_result="${3}" ;;
43598 func_basename_result="${1##*/}"
43601 # func_stripname prefix suffix name
43602 # strip PREFIX and SUFFIX off of NAME.
43603 # PREFIX and SUFFIX must not contain globbing or regex special
43604 # characters, hashes, percent signs, but SUFFIX may contain a leading
43605 # dot (in which case that matches only a dot).
43608 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43609 # positional parameters, so assign one to ordinary parameter first.
43610 func_stripname_result=${3}
43611 func_stripname_result=${func_stripname_result#"${1}"}
43612 func_stripname_result=${func_stripname_result%"${2}"}
43618 func_opt_split_opt=${1%%=*}
43619 func_opt_split_arg=${1#*=}
43626 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43627 *) func_lo2o_result=${1} ;;
43631 # func_xform libobj-or-source
43634 func_xform_result=${1%.*}.lo
43637 # func_arith arithmetic-term...
43640 func_arith_result=$(( $* ))
43644 # STRING may not start with a hyphen.
43647 func_len_result=${#1}
43652 *) # Bourne compatible functions.
43653 cat << \_LT_EOF >> "$cfgfile"
43655 # func_dirname file append nondir_replacement
43656 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43657 # otherwise set result to NONDIR_REPLACEMENT.
43660 # Extract subdirectory from the argument.
43661 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43662 if test "X$func_dirname_result" = "X${1}"; then
43663 func_dirname_result="${3}"
43665 func_dirname_result="$func_dirname_result${2}"
43669 # func_basename file
43672 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43676 # func_stripname prefix suffix name
43677 # strip PREFIX and SUFFIX off of NAME.
43678 # PREFIX and SUFFIX must not contain globbing or regex special
43679 # characters, hashes, percent signs, but SUFFIX may contain a leading
43680 # dot (in which case that matches only a dot).
43681 # func_strip_suffix prefix name
43685 .*) func_stripname_result=`$ECHO "X${3}" \
43686 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43687 *) func_stripname_result=`$ECHO "X${3}" \
43688 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43693 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43694 my_sed_long_arg='1s/^-[^=]*=//'
43699 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43700 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43706 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43709 # func_xform libobj-or-source
43712 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43715 # func_arith arithmetic-term...
43718 func_arith_result=`expr "$@"`
43722 # STRING may not start with a hyphen.
43725 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43731 case $lt_shell_append in
43733 cat << \_LT_EOF >> "$cfgfile"
43735 # func_append var value
43736 # Append VALUE to the end of shell variable VAR.
43744 cat << \_LT_EOF >> "$cfgfile"
43746 # func_append var value
43747 # Append VALUE to the end of shell variable VAR.
43758 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43759 || (rm -f "$cfgfile"; exit 1)
43761 mv -f "$cfgfile" "$ofile" ||
43762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43766 cat <<_LT_EOF >> "$ofile"
43768 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43770 # The linker used to build libraries.
43773 # Commands used to build an old-style archive.
43774 old_archive_cmds=$lt_old_archive_cmds_CXX
43776 # A language specific compiler.
43777 CC=$lt_compiler_CXX
43779 # Is the compiler the GNU compiler?
43782 # Compiler flag to turn off builtin functions.
43783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43785 # How to pass a linker flag through the compiler.
43786 wl=$lt_lt_prog_compiler_wl_CXX
43788 # Additional compiler flags for building library objects.
43789 pic_flag=$lt_lt_prog_compiler_pic_CXX
43791 # Compiler flag to prevent dynamic linking.
43792 link_static_flag=$lt_lt_prog_compiler_static_CXX
43794 # Does compiler simultaneously support -c and -o options?
43795 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43797 # Whether or not to add -lc for building shared libraries.
43798 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43800 # Whether or not to disallow shared libs when runtime libs are static.
43801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43803 # Compiler flag to allow reflexive dlopens.
43804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43806 # Compiler flag to generate shared objects directly from archives.
43807 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43809 # Whether the compiler copes with passing no objects directly.
43810 compiler_needs_object=$lt_compiler_needs_object_CXX
43812 # Create an old-style archive from a shared archive.
43813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43815 # Create a temporary old-style archive to link instead of a shared archive.
43816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43818 # Commands used to build a shared archive.
43819 archive_cmds=$lt_archive_cmds_CXX
43820 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43822 # Commands used to build a loadable module if different from building
43823 # a shared archive.
43824 module_cmds=$lt_module_cmds_CXX
43825 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43827 # Whether we are building with GNU ld or not.
43828 with_gnu_ld=$lt_with_gnu_ld_CXX
43830 # Flag that allows shared libraries with undefined symbols to be built.
43831 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43833 # Flag that enforces no undefined symbols.
43834 no_undefined_flag=$lt_no_undefined_flag_CXX
43836 # Flag to hardcode \$libdir into a binary during linking.
43837 # This must work even if \$libdir does not exist
43838 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43840 # If ld is used when linking, flag to hardcode \$libdir into a binary
43841 # during linking. This must work even if \$libdir does not exist.
43842 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43844 # Whether we need a single "-rpath" flag with a separated argument.
43845 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43847 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43848 # DIR into the resulting binary.
43849 hardcode_direct=$hardcode_direct_CXX
43851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43852 # DIR into the resulting binary and the resulting library dependency is
43853 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43854 # library is relocated.
43855 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43857 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43858 # into the resulting binary.
43859 hardcode_minus_L=$hardcode_minus_L_CXX
43861 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43862 # into the resulting binary.
43863 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43865 # Set to "yes" if building a shared library automatically hardcodes DIR
43866 # into the library and all subsequent libraries and executables linked
43868 hardcode_automatic=$hardcode_automatic_CXX
43870 # Set to yes if linker adds runtime paths of dependent libraries
43871 # to runtime path list.
43872 inherit_rpath=$inherit_rpath_CXX
43874 # Whether libtool must link a program against all its dependency libraries.
43875 link_all_deplibs=$link_all_deplibs_CXX
43877 # Fix the shell variable \$srcfile for the compiler.
43878 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43880 # Set to "yes" if exported symbols are required.
43881 always_export_symbols=$always_export_symbols_CXX
43883 # The commands to list exported symbols.
43884 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43886 # Symbols that should not be listed in the preloaded symbols.
43887 exclude_expsyms=$lt_exclude_expsyms_CXX
43889 # Symbols that must always be exported.
43890 include_expsyms=$lt_include_expsyms_CXX
43892 # Commands necessary for linking programs (against libraries) with templates.
43893 prelink_cmds=$lt_prelink_cmds_CXX
43895 # Specify filename containing input files.
43896 file_list_spec=$lt_file_list_spec_CXX
43898 # How to hardcode a shared library path into an executable.
43899 hardcode_action=$hardcode_action_CXX
43901 # The directories searched by this compiler when creating a shared library.
43902 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43904 # Dependencies to place before and after the objects being linked to
43905 # create a shared library.
43906 predep_objects=$lt_predep_objects_CXX
43907 postdep_objects=$lt_postdep_objects_CXX
43908 predeps=$lt_predeps_CXX
43909 postdeps=$lt_postdeps_CXX
43911 # The library search path used internally by the compiler when linking
43912 # a shared library.
43913 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43915 # ### END LIBTOOL TAG CONFIG: CXX
43920 for ac_file in $CONFIG_FILES; do
43921 # Support "outfile[:infile[:infile...]]"
43923 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43925 # PO directories have a Makefile.in generated from Makefile.in.in.
43926 case "$ac_file" in */Makefile.in)
43927 # Adjust a relative srcdir.
43928 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43929 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43930 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43931 # In autoconf-2.13 it is called $ac_given_srcdir.
43932 # In autoconf-2.50 it is called $srcdir.
43933 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43934 case "$ac_given_srcdir" in
43935 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43936 /*) top_srcdir="$ac_given_srcdir" ;;
43937 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
43939 # Treat a directory as a PO directory if and only if it has a
43940 # POTFILES.in file. This allows packages to have multiple PO
43941 # directories under different names or in different locations.
43942 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43943 rm -f "$ac_dir/POTFILES"
43944 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43945 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43946 POMAKEFILEDEPS="POTFILES.in"
43947 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43948 # on $ac_dir but don't depend on user-specified configuration
43950 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43951 # The LINGUAS file contains the set of available languages.
43952 if test -n "$OBSOLETE_ALL_LINGUAS"; then
43953 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43955 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43956 # Hide the ALL_LINGUAS assigment from automake.
43957 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43958 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43960 # The set of available languages was given in configure.in.
43961 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43964 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43965 # Compute UPDATEPOFILES
43966 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43967 # Compute DUMMYPOFILES
43968 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43970 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43971 case "$ac_given_srcdir" in
43973 *) srcdirpre='$(srcdir)/' ;;
43979 for lang in $ALL_LINGUAS; do
43980 POFILES="$POFILES $srcdirpre$lang.po"
43981 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43982 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43983 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43985 # CATALOGS depends on both $ac_dir and the user's LINGUAS
43986 # environment variable.
43988 if test -n "$ALL_LINGUAS"; then
43989 for presentlang in $ALL_LINGUAS; do
43991 if test "%UNSET%" != "$LINGUAS"; then
43992 desiredlanguages="$LINGUAS"
43994 desiredlanguages="$ALL_LINGUAS"
43996 for desiredlang in $desiredlanguages; do
43997 # Use the presentlang catalog if desiredlang is
43998 # a. equal to presentlang, or
43999 # b. a variant of presentlang (because in this case,
44000 # presentlang can be used as a fallback for messages
44001 # which are not translated in the desiredlang catalog).
44002 case "$desiredlang" in
44003 "$presentlang"*) useit=yes;;
44006 if test $useit = yes; then
44007 INST_LINGUAS="$INST_LINGUAS $presentlang"
44012 if test -n "$INST_LINGUAS"; then
44013 for lang in $INST_LINGUAS; do
44014 CATALOGS="$CATALOGS $lang.gmo"
44017 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44018 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"
44019 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44020 if test -f "$f"; then
44022 *.orig | *.bak | *~) ;;
44023 *) cat "$f" >> "$ac_dir/Makefile" ;;
44038 { (exit 0); exit 0; }
44040 chmod +x $CONFIG_STATUS
44041 ac_clean_files=$ac_clean_files_save
44044 # configure is writing to config.log, and then calls config.status.
44045 # config.status does its own redirection, appending to config.log.
44046 # Unfortunately, on DOS this fails, as config.log is still kept open
44047 # by configure, so config.status won't be able to write to it; its
44048 # output is simply discarded. So we exec the FD to /dev/null,
44049 # effectively closing config.log, so it can be properly (re)opened and
44050 # appended to by config.status. When coming back to configure, we
44051 # need to make the FD available again.
44052 if test "$no_create" != yes; then
44054 ac_config_status_args=
44055 test "$silent" = yes &&
44056 ac_config_status_args="$ac_config_status_args --quiet"
44058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44061 # would make configure fail if this is the last instruction.
44062 $ac_cs_success || { (exit 1); exit 1; }
44066 if test "${support_bat}" = "yes" ; then
44067 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44068 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44074 if test "x$QMAKEQT4" != "xnone"; then
44079 chmod 755 install_conf_file build-depkgs-qt-console
44080 echo "Creating bat Makefile"
44086 if test X"$GCC" = "Xyes" ; then
44087 echo "Doing make of dependencies"
44088 ${MAKE:-make} depend
44092 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44093 chmod 755 dvd-handler dvd-simulator
44094 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44098 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44099 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44103 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44104 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44106 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44107 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44109 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44110 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44112 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44113 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44115 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44116 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44118 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44119 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44121 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44122 chmod 755 $c/sqlite
44125 chmod 755 src/win32/build-depkgs-mingw32
44127 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44128 largefile_support="yes"
44131 if test X"$GCC" = "Xyes" ; then
44132 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44133 if test "x${CCVERSION}" = "x" ; then
44134 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44136 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44137 if test x"${CXXVERSION}" = x ; then
44138 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44142 # clean up any old junk
44148 if test "x${db_type}" = "xInternal" ; then
44151 echo "You have not specified either --enable-client-only or one of the"
44152 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44153 echo " This is not permitted. Please reconfigure."
44155 echo "Aborting the configuration ..."
44162 Configuration on `date`:
44164 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44165 Bacula version: ${BACULA} ${VERSION} (${DATE})
44166 Source code location: ${srcdir}
44167 Install binaries: ${sbindir}
44168 Install libraries: ${libdir}
44169 Install config files: ${sysconfdir}
44170 Scripts directory: ${scriptdir}
44171 Archive directory: ${archivedir}
44172 Working directory: ${working_dir}
44173 PID directory: ${piddir}
44174 Subsys directory: ${subsysdir}
44175 Man directory: ${mandir}
44176 Data directory: ${datarootdir}
44177 C Compiler: ${CC} ${CCVERSION}
44178 C++ Compiler: ${CXX} ${CXXVERSION}
44179 Compiler flags: ${WCFLAGS} ${CFLAGS}
44180 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44182 Statically Linked Tools: ${support_static_tools}
44183 Statically Linked FD: ${support_static_fd}
44184 Statically Linked SD: ${support_static_sd}
44185 Statically Linked DIR: ${support_static_dir}
44186 Statically Linked CONS: ${support_static_cons}
44187 Database type: ${db_type}
44188 Database port: ${db_port}
44189 Database lib: ${DB_LIBS}
44190 Database name: ${db_name}
44191 Database user: ${db_user}
44193 Job Output Email: ${job_email}
44194 Traceback Email: ${dump_email}
44195 SMTP Host Address: ${smtp_host}
44197 Director Port: ${dir_port}
44198 File daemon Port: ${fd_port}
44199 Storage daemon Port: ${sd_port}
44201 Director User: ${dir_user}
44202 Director Group: ${dir_group}
44203 Storage Daemon User: ${sd_user}
44204 Storage DaemonGroup: ${sd_group}
44205 File Daemon User: ${fd_user}
44206 File Daemon Group: ${fd_group}
44208 SQL binaries Directory ${SQL_BINDIR}
44210 Large file support: $largefile_support
44211 Bacula conio support: ${got_conio} ${CONS_LIBS}
44212 readline support: ${got_readline} ${PRTREADLINE_SRC}
44213 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44214 TLS support: ${support_tls}
44215 Encryption support: ${support_crypto}
44216 ZLIB support: ${have_zlib}
44217 enable-smartalloc: ${support_smartalloc}
44218 bat support: ${support_bat} ${QWT_LDFLAGS}
44219 enable-gnome: ${support_gnome} ${gnome_version}
44220 enable-bwx-console: ${support_wx_console} ${wx_version}
44221 enable-tray-monitor: ${support_tray_monitor}
44222 client-only: ${build_client_only}
44223 build-dird: ${build_dird}
44224 build-stored: ${build_stored}
44225 ACL support: ${have_acl}
44226 Python support: ${support_python} ${PYTHON_LIBS}
44227 Batch insert enabled: ${support_batch_insert}