2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
902 HAVE_FREEBSD_OS_FALSE
906 HAVE_OPENBSD_OS_FALSE
937 BUILD_INCLUDED_LIBINTL
944 INTL_LIBTOOL_SUFFIX_PREFIX
958 TRAY_MONITOR_CPPFLAGS
1045 ac_subst_files='MCOMMON'
1046 ac_precious_vars='build_alias
1064 # Initialize some variables set by options.
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1076 program_transform_name=s,x,x,
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1114 # If the previous option needs an argument, assign it.
1115 if test -n "$ac_prev"; then
1116 eval $ac_prev=\$ac_option
1122 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126 # Accept the important Cygnus configure options, so we can diagnose typos.
1128 case $ac_dashdash$ac_option in
1132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135 bindir=$ac_optarg ;;
1137 -build | --build | --buil | --bui | --bu)
1138 ac_prev=build_alias ;;
1139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140 build_alias=$ac_optarg ;;
1142 -cache-file | --cache-file | --cache-fil | --cache-fi \
1143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144 ac_prev=cache_file ;;
1145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147 cache_file=$ac_optarg ;;
1149 --config-cache | -C)
1150 cache_file=config.cache ;;
1152 -datadir | --datadir | --datadi | --datad)
1154 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155 datadir=$ac_optarg ;;
1157 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158 | --dataroo | --dataro | --datar)
1159 ac_prev=datarootdir ;;
1160 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162 datarootdir=$ac_optarg ;;
1164 -disable-* | --disable-*)
1165 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169 { (exit 1); exit 1; }; }
1170 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171 eval enable_$ac_feature=no ;;
1173 -docdir | --docdir | --docdi | --doc | --do)
1175 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176 docdir=$ac_optarg ;;
1178 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181 dvidir=$ac_optarg ;;
1183 -enable-* | --enable-*)
1184 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190 eval enable_$ac_feature=\$ac_optarg ;;
1192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194 | --exec | --exe | --ex)
1195 ac_prev=exec_prefix ;;
1196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198 | --exec=* | --exe=* | --ex=*)
1199 exec_prefix=$ac_optarg ;;
1201 -gas | --gas | --ga | --g)
1202 # Obsolete; use --with-gas.
1205 -help | --help | --hel | --he | -h)
1206 ac_init_help=long ;;
1207 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208 ac_init_help=recursive ;;
1209 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210 ac_init_help=short ;;
1212 -host | --host | --hos | --ho)
1213 ac_prev=host_alias ;;
1214 -host=* | --host=* | --hos=* | --ho=*)
1215 host_alias=$ac_optarg ;;
1217 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1219 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1221 htmldir=$ac_optarg ;;
1223 -includedir | --includedir | --includedi | --included | --include \
1224 | --includ | --inclu | --incl | --inc)
1225 ac_prev=includedir ;;
1226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227 | --includ=* | --inclu=* | --incl=* | --inc=*)
1228 includedir=$ac_optarg ;;
1230 -infodir | --infodir | --infodi | --infod | --info | --inf)
1232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233 infodir=$ac_optarg ;;
1235 -libdir | --libdir | --libdi | --libd)
1237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238 libdir=$ac_optarg ;;
1240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241 | --libexe | --libex | --libe)
1242 ac_prev=libexecdir ;;
1243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244 | --libexe=* | --libex=* | --libe=*)
1245 libexecdir=$ac_optarg ;;
1247 -localedir | --localedir | --localedi | --localed | --locale)
1248 ac_prev=localedir ;;
1249 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250 localedir=$ac_optarg ;;
1252 -localstatedir | --localstatedir | --localstatedi | --localstated \
1253 | --localstate | --localstat | --localsta | --localst | --locals)
1254 ac_prev=localstatedir ;;
1255 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257 localstatedir=$ac_optarg ;;
1259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262 mandir=$ac_optarg ;;
1264 -nfp | --nfp | --nf)
1265 # Obsolete; use --without-fp.
1268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269 | --no-cr | --no-c | -n)
1272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278 | --oldin | --oldi | --old | --ol | --o)
1279 ac_prev=oldincludedir ;;
1280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283 oldincludedir=$ac_optarg ;;
1285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288 prefix=$ac_optarg ;;
1290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291 | --program-pre | --program-pr | --program-p)
1292 ac_prev=program_prefix ;;
1293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295 program_prefix=$ac_optarg ;;
1297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298 | --program-suf | --program-su | --program-s)
1299 ac_prev=program_suffix ;;
1300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302 program_suffix=$ac_optarg ;;
1304 -program-transform-name | --program-transform-name \
1305 | --program-transform-nam | --program-transform-na \
1306 | --program-transform-n | --program-transform- \
1307 | --program-transform | --program-transfor \
1308 | --program-transfo | --program-transf \
1309 | --program-trans | --program-tran \
1310 | --progr-tra | --program-tr | --program-t)
1311 ac_prev=program_transform_name ;;
1312 -program-transform-name=* | --program-transform-name=* \
1313 | --program-transform-nam=* | --program-transform-na=* \
1314 | --program-transform-n=* | --program-transform-=* \
1315 | --program-transform=* | --program-transfor=* \
1316 | --program-transfo=* | --program-transf=* \
1317 | --program-trans=* | --program-tran=* \
1318 | --progr-tra=* | --program-tr=* | --program-t=*)
1319 program_transform_name=$ac_optarg ;;
1321 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1323 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324 pdfdir=$ac_optarg ;;
1326 -psdir | --psdir | --psdi | --psd | --ps)
1328 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332 | -silent | --silent | --silen | --sile | --sil)
1335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1339 sbindir=$ac_optarg ;;
1341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343 | --sharedst | --shareds | --shared | --share | --shar \
1345 ac_prev=sharedstatedir ;;
1346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1350 sharedstatedir=$ac_optarg ;;
1352 -site | --site | --sit)
1354 -site=* | --site=* | --sit=*)
1357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360 srcdir=$ac_optarg ;;
1362 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363 | --syscon | --sysco | --sysc | --sys | --sy)
1364 ac_prev=sysconfdir ;;
1365 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367 sysconfdir=$ac_optarg ;;
1369 -target | --target | --targe | --targ | --tar | --ta | --t)
1370 ac_prev=target_alias ;;
1371 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372 target_alias=$ac_optarg ;;
1374 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1377 -version | --version | --versio | --versi | --vers | -V)
1378 ac_init_version=: ;;
1381 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 { echo "$as_me: error: invalid package name: $ac_package" >&2
1385 { (exit 1); exit 1; }; }
1386 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387 eval with_$ac_package=\$ac_optarg ;;
1389 -without-* | --without-*)
1390 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393 { echo "$as_me: error: invalid package name: $ac_package" >&2
1394 { (exit 1); exit 1; }; }
1395 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396 eval with_$ac_package=no ;;
1399 # Obsolete; use --with-x.
1402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403 | --x-incl | --x-inc | --x-in | --x-i)
1404 ac_prev=x_includes ;;
1405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407 x_includes=$ac_optarg ;;
1409 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411 ac_prev=x_libraries ;;
1412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414 x_libraries=$ac_optarg ;;
1416 -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418 { (exit 1); exit 1; }; }
1422 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423 # Reject names that are not valid shell variable names.
1424 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426 { (exit 1); exit 1; }; }
1427 eval $ac_envvar=\$ac_optarg
1428 export $ac_envvar ;;
1431 # FIXME: should be removed in autoconf 3.0.
1432 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1441 if test -n "$ac_prev"; then
1442 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443 { echo "$as_me: error: missing argument to $ac_option" >&2
1444 { (exit 1); exit 1; }; }
1447 # Be sure to have absolute directory names.
1448 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449 datadir sysconfdir sharedstatedir localstatedir includedir \
1450 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451 libdir localedir mandir
1453 eval ac_val=\$$ac_var
1455 [\\/$]* | ?:[\\/]* ) continue;;
1456 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1458 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459 { (exit 1); exit 1; }; }
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1467 target=$target_alias
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471 if test "x$build_alias" = x; then
1472 cross_compiling=maybe
1473 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474 If a cross compiler is detected then cross compile mode will be used." >&2
1475 elif test "x$build_alias" != "x$host_alias"; then
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483 test "$silent" = yes && exec 6>/dev/null
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489 { echo "$as_me: error: Working directory cannot be determined" >&2
1490 { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492 { echo "$as_me: error: pwd does not report name of working directory" >&2
1493 { (exit 1); exit 1; }; }
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$0" : 'X\(//\)[^/]' \| \
1503 X"$0" : 'X\(//\)$' \| \
1504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533 { (exit 1); exit 1; }; }
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1537 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538 { (exit 1); exit 1; }; }
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 for ac_var in $ac_precious_vars; do
1551 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_env_${ac_var}_value=\$${ac_var}
1553 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 # Report the --help message.
1560 if test "$ac_init_help" = "long"; then
1561 # Omit some internal or obsolete options to make the list less imposing.
1562 # This message is too long to be a string in the A/UX 3.1 sh.
1564 \`configure' configures this package to adapt to many kinds of systems.
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE. See below for descriptions of some of the useful variables.
1571 Defaults for the options are specified in brackets.
1574 -h, --help display this help and exit
1575 --help=short display options specific to this package
1576 --help=recursive display the short help of all the included packages
1577 -V, --version display version information and exit
1578 -q, --quiet, --silent do not print \`checking...' messages
1579 --cache-file=FILE cache test results in FILE [disabled]
1580 -C, --config-cache alias for \`--cache-file=config.cache'
1581 -n, --no-create do not create output files
1582 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1584 Installation directories:
1585 --prefix=PREFIX install architecture-independent files in PREFIX
1586 [$ac_default_prefix]
1587 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1595 For better control, use the options below.
1597 Fine tuning of the installation directories:
1598 --bindir=DIR user executables [EPREFIX/bin]
1599 --sbindir=DIR system admin executables [EPREFIX/sbin]
1600 --libexecdir=DIR program executables [EPREFIX/libexec]
1601 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1602 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1603 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1604 --libdir=DIR object code libraries [EPREFIX/lib]
1605 --includedir=DIR C header files [PREFIX/include]
1606 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1607 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1608 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1609 --infodir=DIR info documentation [DATAROOTDIR/info]
1610 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1611 --mandir=DIR man documentation [DATAROOTDIR/man]
1612 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1613 --htmldir=DIR html documentation [DOCDIR]
1614 --dvidir=DIR dvi documentation [DOCDIR]
1615 --pdfdir=DIR pdf documentation [DOCDIR]
1616 --psdir=DIR ps documentation [DOCDIR]
1622 --x-includes=DIR X include files are in DIR
1623 --x-libraries=DIR X library files are in DIR
1626 --build=BUILD configure for building on BUILD [guessed]
1627 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631 if test -n "$ac_init_help"; then
1636 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1637 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1638 --enable-libtool enable building using GNU libtool [default=yes]
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=no]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --enable-includes enable installing of include files [default=yes]
1645 --disable-nls do not use Native Language Support
1646 --disable-rpath do not hardcode runtime library paths
1647 --enable-gnome enable build of bgnome-console GUI [default=no]
1648 --enable-bat enable build of bat Qt4 GUI [default=no]
1649 --enable-bwx-console enable build of wxWidgets console [default=no]
1650 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1652 --enable-smartalloc enable smartalloc debugging support [default=no]
1653 --enable-static-tools enable static tape tools [default=no]
1654 --enable-static-fd enable static File daemon [default=no]
1655 --enable-static-sd enable static Storage daemon [default=no]
1656 --enable-static-dir enable static Director [default=no]
1657 --enable-static-cons enable static Console [default=no]
1658 --enable-client-only build client (File daemon) only [default=no]
1659 --enable-build-dird enable building of dird (Director) [default=yes]
1660 --enable-build-stored enable building of stored (Storage daemon)
1662 --disable-conio disable conio support [default=no]
1663 --enable-ipv6 enable ipv6 support [default=yes]
1664 --disable-readline disable readline support [default=yes]
1665 --enable-batch-insert enable the DB batch insert code [default=no]
1666 --disable-largefile omit support for large files
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1677 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1678 --without-libintl-prefix don't search for libintl in includedir and libdir
1679 --with-included-gettext use the GNU gettext library included here
1680 --with-qwt[=DIR] specify qwt library directory
1681 --with-readline[=DIR] specify readline library directory
1682 --with-python[=DIR] Include Python support. DIR is the Python base
1683 install directory, default is to search through a
1684 number of common places for the Python files.
1685 --with-tcp-wrappers[=DIR]
1686 enable tcpwrappers support
1687 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1688 --with-working-dir=PATH specify path of Bacula working directory
1689 --with-archivedir=PATH specify path of SD archive directory
1690 --with-scriptdir=PATH specify path of Bacula scripts directory
1691 --with-plugindir=PATH specify path of Bacula plugins directory
1692 --with-dump-email=EMAIL dump email address
1693 --with-job-email=EMAIL job output email address
1694 --with-smtp-host=HOST SMTP mail host address
1695 --with-pid-dir=PATH specify location of Bacula pid files
1696 --with-subsys-dir=PATH specify location of Bacula subsys file
1697 --with-baseport=PORT specify base port address for daemons
1698 --with-dir-password=PASSWORD
1699 specify Director's password
1700 --with-fd-password=PASSWORD
1701 specify Client's password
1702 --with-sd-password=PASSWORD
1703 specify Storage daemon's password
1704 --with-mon-dir-password=PASSWORD
1705 specify Director's password used by the monitor
1706 --with-mon-fd-password=PASSWORD
1707 specify Client's password used by the monitor
1708 --with-mon-sd-password=PASSWORD
1709 specify Storage daemon's password used by the
1711 --with-db-name=DBNAME specify database name [default=bacula]
1712 --with-db-user=UNAME specify database user [default=bacula]
1713 --with-db-password=PWD specify database password [default=*none*]
1714 --with-db-port=DBPORT specify a database port [default=null]
1715 --with-dir-user=USER specify user for Director daemon
1716 --with-dir-group=GROUP specify group for Director daemon
1717 --with-sd-user=USER specify user for Storage daemon
1718 --with-sd-group=GROUP specify group for Storage daemon
1719 --with-fd-user=USER specify user for File daemon
1720 --with-fd-group=GROUP specify group for File daemon
1721 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1722 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1723 base install directory, [default=/usr/local/pgsql]
1724 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1725 directory, default is to search through a number of
1726 common places for the MySQL files.
1727 --with-embedded-mysql[=DIR]
1728 Include MySQL support. DIR is the MySQL base install
1729 directory, default is to search through a number of
1730 common places for the MySQL files.
1731 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1732 install directory, default is to search through a
1733 number of common places for the SQLite3 files.
1734 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1735 install directory, default is to search through a
1736 number of common places for the SQLite files.
1737 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1738 directory, default is to search through a number of
1739 common places for the DBI files.
1740 --with-dbi-driver[=DRIVER]
1741 Suport for DBI driver. DRIVER is the one DBI driver
1742 like Mysql, Postgresql, others. Default is to not
1743 configure any driver.
1744 --with-x use the X Window System
1746 Some influential environment variables:
1747 CC C compiler command
1748 CFLAGS C compiler flags
1749 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1750 nonstandard directory <lib dir>
1751 LIBS libraries to pass to the linker, e.g. -l<library>
1752 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753 you have headers in a nonstandard directory <include dir>
1754 CXX C++ compiler command
1755 CXXFLAGS C++ compiler flags
1757 WXCONFIG wx-config command. On some systems, you must set it to
1758 wx-config-2.6 to use wxWidgets 2.6.
1759 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1760 CXXCPP C++ preprocessor
1761 XMKMF Path to xmkmf, Makefile generator for X Window System
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1770 if test "$ac_init_help" = "recursive"; then
1771 # If there are subdirs, report their specific --help.
1772 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773 test -d "$ac_dir" || continue
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1793 .) # We are building in place.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1817 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1827 generated by GNU Autoconf 2.61
1829 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1830 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1840 It was created by $as_me, which was
1841 generated by GNU Autoconf 2.61. Invocation command line was
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1862 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1863 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1866 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1867 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1868 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 echo "PATH: $as_dir"
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1901 ac_must_keep_next=false
1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909 | -silent | --silent | --silen | --sile | --sil)
1912 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1917 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1918 if test $ac_must_keep_next = true; then
1919 ac_must_keep_next=false # Got value, back to normal.
1922 *=* | --config-cache | -C | -disable-* | --disable-* \
1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925 | -with-* | --with-* | -without-* | --without-* | --x)
1926 case "$ac_configure_args0 " in
1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930 -* ) ac_must_keep_next=true ;;
1933 ac_configure_args="$ac_configure_args '$ac_arg'"
1938 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1939 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log. We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947 # Save into config.log some information that might help in debugging.
1952 ## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##
1957 # The following way of writing the cache mishandles newlines in values,
1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960 eval ac_val=\$$ac_var
1964 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1968 _ | IFS | as_nl) ;; #(
1969 *) $as_unset $ac_var ;;
1974 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975 *${as_nl}ac_space=\ *)
1977 "s/'\''/'\''\\\\'\'''\''/g;
1978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989 ## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##
1994 for ac_var in $ac_subst_vars
1996 eval ac_val=\$$ac_var
1998 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 echo "$ac_var='\''$ac_val'\''"
2004 if test -n "$ac_subst_files"; then
2006 ## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##
2011 for ac_var in $ac_subst_files
2013 eval ac_val=\$$ac_var
2015 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017 echo "$ac_var='\''$ac_val'\''"
2022 if test -s confdefs.h; then
2032 test "$ac_signal" != 0 &&
2033 echo "$as_me: caught signal $ac_signal"
2034 echo "$as_me: exit $exit_status"
2036 rm -f core *.core core.conftest.* &&
2037 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040 for ac_signal in 1 2 13 15; do
2041 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2048 # Predefined preprocessor variables.
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078 set x "$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2082 set x "$ac_default_prefix/share/config.site" \
2083 "$ac_default_prefix/etc/config.site"
2088 if test -r "$ac_site_file"; then
2089 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2090 echo "$as_me: loading site script $ac_site_file" >&6;}
2091 sed 's/^/| /' "$ac_site_file" >&5
2096 if test -r "$cache_file"; then
2097 # Some versions of bash will fail to source /dev/null (special
2098 # files actually), so we avoid doing that.
2099 if test -f "$cache_file"; then
2100 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2101 echo "$as_me: loading cache $cache_file" >&6;}
2103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104 *) . "./$cache_file";;
2108 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2109 echo "$as_me: creating cache $cache_file" >&6;}
2113 # Check that the precious variables saved in the cache have kept the same
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118 eval ac_new_set=\$ac_env_${ac_var}_set
2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120 eval ac_new_val=\$ac_env_${ac_var}_value
2121 case $ac_old_set,$ac_new_set in
2123 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2127 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2132 if test "x$ac_old_val" != "x$ac_new_val"; then
2133 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2134 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2136 echo "$as_me: former value: $ac_old_val" >&2;}
2137 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2138 echo "$as_me: current value: $ac_new_val" >&2;}
2139 ac_cache_corrupted=:
2142 # Pass precious variables to config.status.
2143 if test "$ac_new_set" = set; then
2145 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146 *) ac_arg=$ac_var=$ac_new_val ;;
2148 case " $ac_configure_args " in
2149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2150 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2154 if $ac_cache_corrupted; then
2155 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2156 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2158 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2159 { (exit 1); exit 1; }; }
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2193 if test -f "$ac_dir/install-sh"; then
2195 ac_install_sh="$ac_aux_dir/install-sh -c"
2197 elif test -f "$ac_dir/install.sh"; then
2199 ac_install_sh="$ac_aux_dir/install.sh -c"
2201 elif test -f "$ac_dir/shtool"; then
2203 ac_install_sh="$ac_aux_dir/shtool install -c"
2207 if test -z "$ac_aux_dir"; then
2208 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2209 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2210 { (exit 1); exit 1; }; }
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2222 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2229 # Extract the first word of "$ac_prog", so it can be a program name with args.
2230 set dummy $ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 TRUEPRG=$ac_cv_path_TRUEPRG
2260 if test -n "$TRUEPRG"; then
2261 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2262 echo "${ECHO_T}$TRUEPRG" >&6; }
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2269 test -n "$TRUEPRG" && break
2271 test -n "$TRUEPRG" || TRUEPRG=":"
2273 for ac_prog in false
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 FALSEPRG=$ac_cv_path_FALSEPRG
2306 if test -n "$FALSEPRG"; then
2307 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2308 echo "${ECHO_T}$FALSEPRG" >&6; }
2310 { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2315 test -n "$FALSEPRG" && break
2317 test -n "$FALSEPRG" || FALSEPRG=":"
2321 if test "x$BACULA" != x; then
2322 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2324 BACULA=${BACULA-Bacula}
2325 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2326 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 echo "configuring for ${BACULA} $VERSION ($DATE)"
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2375 if test -z "$ac_cv_prog_CC"; then
2377 # Extract the first word of "gcc", so it can be a program name with args.
2378 set dummy gcc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_ac_ct_CC="gcc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6; }
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2413 if test "x$ac_ct_CC" = x; then
2416 case $cross_compiling:$ac_tool_warned in
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet. If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet. If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2432 if test -z "$CC"; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}cc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_CC="${ac_tool_prefix}cc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 if test -n "$CC"; then
2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2473 if test -z "$CC"; then
2474 # Extract the first word of "cc", so it can be a program name with args.
2475 set dummy cc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2493 ac_prog_rejected=yes
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 if test $ac_prog_rejected = yes; then
2505 # We found a bogon in the path, so make sure we never use it.
2506 set dummy $ac_cv_prog_CC
2508 if test $# != 0; then
2509 # We chose a different compiler from the bogus one.
2510 # However, it has the same basename, so the bogon will be chosen
2511 # first if we set CC to just the basename; use the full file name.
2513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2519 if test -n "$CC"; then
2520 { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 if test -n "$ac_tool_prefix"; then
2531 for ac_prog in cl.exe
2533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2570 test -n "$CC" && break
2573 if test -z "$CC"; then
2575 for ac_prog in cl.exe
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$ac_ct_CC"; then
2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_ac_ct_CC="$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6; }
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2614 test -n "$ac_ct_CC" && break
2617 if test "x$ac_ct_CC" = x; then
2620 case $cross_compiling:$ac_tool_warned in
2622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623 whose name does not start with the host triplet. If you think this
2624 configuration is useful to you, please write to autoconf@gnu.org." >&5
2625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628 ac_tool_warned=yes ;;
2637 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&2;}
2641 { (exit 1); exit 1; }; }
2643 # Provide some information about the compiler.
2644 echo "$as_me:$LINENO: checking for C compiler version" >&5
2645 ac_compiler=`set X $ac_compile; echo $2`
2646 { (ac_try="$ac_compiler --version >&5"
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compiler --version >&5") 2>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }
2656 { (ac_try="$ac_compiler -v >&5"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler -v >&5") 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (ac_try="$ac_compiler -V >&5"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -V >&5") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 ac_clean_files_save=$ac_clean_files
2693 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2694 # Try to create an executable without -o first, disregard a.out.
2695 # It will help us diagnose broken compilers, and finding out an intuition
2697 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2698 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2699 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2701 # List of possible output files, starting from the most likely.
2702 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2703 # only as a last resort. b.out is created by i960 compilers.
2704 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2706 # The IRIX 6 linker writes into existing files which may not be
2707 # executable, retaining their permissions. Remove them first so a
2708 # subsequent execution test works.
2710 for ac_file in $ac_files
2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2714 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2719 if { (ac_try="$ac_link_default"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_link_default") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; then
2729 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2730 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2731 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2732 # so that the user can short-circuit this test for compilers unknown to
2734 for ac_file in $ac_files ''
2736 test -f "$ac_file" || continue
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2741 # We found the default executable, but exeext='' is most
2745 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749 # We set ac_cv_exeext here because the later test for it is not
2750 # safe: cross compilers may not add the suffix if given an `-o'
2751 # argument, so we may need to know it at that point already.
2752 # Even if this section looks crufty: it has the advantage of
2759 test "$ac_cv_exeext" = no && ac_cv_exeext=
2765 { echo "$as_me:$LINENO: result: $ac_file" >&5
2766 echo "${ECHO_T}$ac_file" >&6; }
2767 if test -z "$ac_file"; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2772 See \`config.log' for more details." >&5
2773 echo "$as_me: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&2;}
2775 { (exit 77); exit 77; }; }
2778 ac_exeext=$ac_cv_exeext
2780 # Check that the compiler produces executables we can run. If not, either
2781 # the compiler is broken, or we cross compile.
2782 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2785 # If not cross compiling, check that we can run a simple program.
2786 if test "$cross_compiling" != yes; then
2787 if { ac_try='./$ac_file'
2788 { (case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_try") 2>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2799 if test "$cross_compiling" = maybe; then
2802 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2803 If you meant to cross compile, use \`--host'.
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: cannot run C compiled programs.
2806 If you meant to cross compile, use \`--host'.
2807 See \`config.log' for more details." >&2;}
2808 { (exit 1); exit 1; }; }
2812 { echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6; }
2815 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2816 ac_clean_files=$ac_clean_files_save
2817 # Check that the compiler produces executables we can run. If not, either
2818 # the compiler is broken, or we cross compile.
2819 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2820 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2822 echo "${ECHO_T}$cross_compiling" >&6; }
2824 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2825 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2826 if { (ac_try="$ac_link"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_link") 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; then
2836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2837 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2838 # work properly (i.e., refer to `conftest.exe'), while it won't with
2840 for ac_file in conftest.exe conftest conftest.*; do
2841 test -f "$ac_file" || continue
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2857 rm -f conftest$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2859 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2861 rm -f conftest.$ac_ext
2862 EXEEXT=$ac_cv_exeext
2864 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2866 if test "${ac_cv_objext+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2884 rm -f conftest.o conftest.obj
2885 if { (ac_try="$ac_compile"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compile") 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; then
2895 for ac_file in conftest.o conftest.obj conftest.*; do
2896 test -f "$ac_file" || continue;
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2899 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2916 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2917 echo "${ECHO_T}$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } && {
2957 test -z "$ac_c_werror_flag" ||
2958 test ! -s conftest.err
2959 } && test -s conftest.$ac_objext; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2972 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2974 GCC=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CFLAGS=${CFLAGS+set}
2976 ac_save_CFLAGS=$CFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2978 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cc_g+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 ac_save_c_werror_flag=$ac_c_werror_flag
2983 ac_c_werror_flag=yes
2986 cat >conftest.$ac_ext <<_ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 ac_c_werror_flag=$ac_save_c_werror_flag
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_c_werror_flag=$ac_save_c_werror_flag
3112 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3114 if test "$ac_test_CFLAGS" = set; then
3115 CFLAGS=$ac_save_CFLAGS
3116 elif test $ac_cv_prog_cc_g = yes; then
3117 if test "$GCC" = yes; then
3123 if test "$GCC" = yes; then
3129 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3130 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_cc_c89+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 ac_cv_prog_cc_c89=no
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3144 #include <sys/types.h>
3145 #include <sys/stat.h>
3146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3147 struct buf { int x; };
3148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149 static char *e (p, i)
3155 static char *f (char * (*g) (char **, int), char **p, ...)
3160 s = g (p, va_arg (v,int));
3165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3166 function prototypes and stuff, but not '\xHH' hex character constants.
3167 These don't provoke an error unfortunately, instead are silently treated
3168 as 'x'. The following induces an error, until -std is added to get
3169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3170 array size at least. It's necessary to write '\x00'==0 to get something
3171 that's true only with -std. */
3172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175 inside strings and character constants. */
3177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3179 int test (int i, double x);
3180 struct s1 {int (*f) (int a);};
3181 struct s2 {int (*f) (double a);};
3182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196 CC="$ac_save_CC $ac_arg"
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3206 grep -v '^ *+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
3214 ac_cv_prog_cc_c89=$ac_arg
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext
3223 test "x$ac_cv_prog_cc_c89" != "xno" && break
3225 rm -f conftest.$ac_ext
3230 case "x$ac_cv_prog_cc_c89" in
3232 { echo "$as_me:$LINENO: result: none needed" >&5
3233 echo "${ECHO_T}none needed" >&6; } ;;
3235 { echo "$as_me:$LINENO: result: unsupported" >&5
3236 echo "${ECHO_T}unsupported" >&6; } ;;
3238 CC="$CC $ac_cv_prog_cc_c89"
3239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 ac_cpp='$CXXCPP $CPPFLAGS'
3252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3255 if test -z "$CXX"; then
3256 if test -n "$CCC"; then
3259 if test -n "$ac_tool_prefix"; then
3260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3266 if test "${ac_cv_prog_CXX+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 if test -n "$CXX"; then
3270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 if test -n "$CXX"; then
3291 { echo "$as_me:$LINENO: result: $CXX" >&5
3292 echo "${ECHO_T}$CXX" >&6; }
3294 { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3299 test -n "$CXX" && break
3302 if test -z "$CXX"; then
3304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$ac_ct_CXX"; then
3314 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_ac_ct_CXX="$ac_prog"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3334 if test -n "$ac_ct_CXX"; then
3335 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3336 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3338 { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3343 test -n "$ac_ct_CXX" && break
3346 if test "x$ac_ct_CXX" = x; then
3349 case $cross_compiling:$ac_tool_warned in
3351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3352 whose name does not start with the host triplet. If you think this
3353 configuration is useful to you, please write to autoconf@gnu.org." >&5
3354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3357 ac_tool_warned=yes ;;
3365 # Provide some information about the compiler.
3366 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3367 ac_compiler=`set X $ac_compile; echo $2`
3368 { (ac_try="$ac_compiler --version >&5"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_compiler --version >&5") 2>&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }
3378 { (ac_try="$ac_compiler -v >&5"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compiler -v >&5") 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388 { (ac_try="$ac_compiler -V >&5"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compiler -V >&5") 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }
3399 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3400 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3401 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_compile") 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && {
3436 test -z "$ac_cxx_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3451 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3452 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3453 GXX=`test $ac_compiler_gnu = yes && echo yes`
3454 ac_test_CXXFLAGS=${CXXFLAGS+set}
3455 ac_save_CXXFLAGS=$CXXFLAGS
3456 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3457 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_cxx_g+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3462 ac_cxx_werror_flag=yes
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_cxx_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_prog_cxx_g=yes
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3503 cat >conftest.$ac_ext <<_ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_cxx_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compile") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } && {
3571 test -z "$ac_cxx_werror_flag" ||
3572 test ! -s conftest.err
3573 } && test -s conftest.$ac_objext; then
3574 ac_cv_prog_cxx_g=yes
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3593 if test "$ac_test_CXXFLAGS" = set; then
3594 CXXFLAGS=$ac_save_CXXFLAGS
3595 elif test $ac_cv_prog_cxx_g = yes; then
3596 if test "$GXX" = yes; then
3602 if test "$GXX" = yes; then
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 if test "x$CC" != xcc; then
3615 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3616 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3618 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3619 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3621 set dummy $CC; ac_cc=`echo $2 |
3622 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3623 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3641 # Make sure it works both with $CC and with simple cc.
3642 # We do the test twice because some compilers refuse to overwrite an
3643 # existing .o file with -o, though they will create one.
3644 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3646 if { (case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651 (eval "$ac_try") 2>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_try") 2>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); };
3665 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3666 if test "x$CC" != xcc; then
3667 # Test first that cc exists at all.
3668 if { ac_try='cc -c conftest.$ac_ext >&5'
3669 { (case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_try") 2>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3680 if { (case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_try") 2>&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_try") 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); };
3702 # cc exists but doesn't like -o.
3703 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3708 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3710 rm -f core conftest*
3713 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3714 { echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6; }
3717 { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3720 cat >>confdefs.h <<\_ACEOF
3721 #define NO_MINUS_C_MINUS_O 1
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3732 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3733 # On Suns, sometimes $CPP names a directory.
3734 if test -n "$CPP" && test -d "$CPP"; then
3737 if test -z "$CPP"; then
3738 if test "${ac_cv_prog_CPP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 # Double quotes because CPP needs to be expanded
3742 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3745 for ac_c_preproc_warn_flag in '' yes
3747 # Use a header file that comes with gcc, so configuring glibc
3748 # with a fresh cross-compiler works.
3749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3750 # <limits.h> exists even on freestanding compilers.
3751 # On the NeXT, cc -E runs the code through the compiler's parser,
3752 # not just through cpp. "Syntax error" is here to catch this case.
3753 cat >conftest.$ac_ext <<_ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3760 # include <limits.h>
3762 # include <assert.h>
3766 if { (ac_try="$ac_cpp conftest.$ac_ext"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } >/dev/null && {
3779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 # Broken: fails on valid input.
3791 rm -f conftest.err conftest.$ac_ext
3793 # OK, works on sane cases. Now check whether nonexistent headers
3794 # can be detected and how.
3795 cat >conftest.$ac_ext <<_ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 #include <ac_nonexistent.h>
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3819 # Broken: success on invalid input.
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 # Passes both tests.
3830 rm -f conftest.err conftest.$ac_ext
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.err conftest.$ac_ext
3835 if $ac_preproc_ok; then
3847 { echo "$as_me:$LINENO: result: $CPP" >&5
3848 echo "${ECHO_T}$CPP" >&6; }
3850 for ac_c_preproc_warn_flag in '' yes
3852 # Use a header file that comes with gcc, so configuring glibc
3853 # with a fresh cross-compiler works.
3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 # <limits.h> exists even on freestanding compilers.
3856 # On the NeXT, cc -E runs the code through the compiler's parser,
3857 # not just through cpp. "Syntax error" is here to catch this case.
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3865 # include <limits.h>
3867 # include <assert.h>
3871 if { (ac_try="$ac_cpp conftest.$ac_ext"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } >/dev/null && {
3884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 # Broken: fails on valid input.
3896 rm -f conftest.err conftest.$ac_ext
3898 # OK, works on sane cases. Now check whether nonexistent headers
3899 # can be detected and how.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #include <ac_nonexistent.h>
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null && {
3921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3924 # Broken: success on invalid input.
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 # Passes both tests.
3935 rm -f conftest.err conftest.$ac_ext
3938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3939 rm -f conftest.err conftest.$ac_ext
3940 if $ac_preproc_ok; then
3943 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3944 See \`config.log' for more details." >&5
3945 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&2;}
3947 { (exit 1); exit 1; }; }
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in grep ggrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3979 # Check for GNU ac_path_GREP and select it if it is found.
3980 # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 echo 'GREP' >> "conftest.nl"
3993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 ac_count=`expr $ac_count + 1`
3996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_GREP="$ac_path_GREP"
3999 ac_path_GREP_max=$ac_count
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 $ac_path_GREP_found && break 3
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022 { (exit 1); exit 1; }; }
4026 ac_cv_path_GREP=$GREP
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033 GREP="$ac_cv_path_GREP"
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042 then ac_cv_path_EGREP="$GREP -E"
4044 # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 test -z "$as_dir" && as_dir=.
4057 for ac_prog in egrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4061 # Check for GNU ac_path_EGREP and select it if it is found.
4062 # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 echo 'EGREP' >> "conftest.nl"
4075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077 ac_count=`expr $ac_count + 1`
4078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_EGREP="$ac_path_EGREP"
4081 ac_path_EGREP_max=$ac_count
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090 $ac_path_EGREP_found && break 3
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104 { (exit 1); exit 1; }; }
4108 ac_cv_path_EGREP=$EGREP
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116 EGREP="$ac_cv_path_EGREP"
4119 if test $ac_cv_c_compiler_gnu = yes; then
4120 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4121 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4122 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 ac_pattern="Autoconf.*'x'"
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4137 ac_cv_prog_gcc_traditional=yes
4139 ac_cv_prog_gcc_traditional=no
4144 if test $ac_cv_prog_gcc_traditional = no; then
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156 ac_cv_prog_gcc_traditional=yes
4162 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4163 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4164 if test $ac_cv_prog_gcc_traditional = yes; then
4165 CC="$CC -traditional"
4169 BASECC=`basename $CC`
4171 if test "x$BASECC" = xgcc; then
4172 cat >>confdefs.h <<\_ACEOF
4178 # Extract the first word of "$CXX", so it can be a program name with args.
4179 set dummy $CXX; ac_word=$2
4180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4182 if test "${ac_cv_path_CXX+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4210 if test -n "$CXX"; then
4211 { echo "$as_me:$LINENO: result: $CXX" >&5
4212 echo "${ECHO_T}$CXX" >&6; }
4214 { echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6; }
4219 if test ! -e $CXX; then
4220 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4221 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4222 { (exit 1); exit 1; }; }
4225 # Find a good install program. We prefer a C program (faster),
4226 # so one script is as good as another. But avoid the broken or
4227 # incompatible versions:
4228 # SysV /etc/install, /usr/sbin/install
4229 # SunOS /usr/etc/install
4230 # IRIX /sbin/install
4232 # AmigaOS /C/install, which installs bootblocks on floppy discs
4233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4236 # OS/2's system install, which has a completely different semantic
4237 # ./install, which can be erroneously created by make from ./install.sh.
4238 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4240 if test -z "$INSTALL"; then
4241 if test "${ac_cv_path_install+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 # Account for people who put trailing slashes in PATH elements.
4251 ./ | .// | /cC/* | \
4252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4253 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4256 # OSF1 and SCO ODT 3.0 have their own names for install.
4257 # Don't use installbsd from OSF since it installs stuff as root
4259 for ac_prog in ginstall scoinst install; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4262 if test $ac_prog = install &&
4263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4264 # AIX install. It has an incompatible calling convention.
4266 elif test $ac_prog = install &&
4267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268 # program-specific install script used by HP pwplus--don't use.
4271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4284 if test "${ac_cv_path_install+set}" = set; then
4285 INSTALL=$ac_cv_path_install
4287 # As a last resort, use the slow shell script. Don't cache a
4288 # value for INSTALL within a source directory, because that will
4289 # break other packages using the cache if that directory is
4290 # removed, or if the value is a relative name.
4291 INSTALL=$ac_install_sh
4294 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4295 echo "${ECHO_T}$INSTALL" >&6; }
4297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4298 # It thinks the first close brace ends the variable substitution.
4299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4305 # Extract the first word of "mv", so it can be a program name with args.
4306 set dummy mv; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_path_MV+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4337 if test -n "$MV"; then
4338 { echo "$as_me:$LINENO: result: $MV" >&5
4339 echo "${ECHO_T}$MV" >&6; }
4341 { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4346 # Extract the first word of "rm", so it can be a program name with args.
4347 set dummy rm; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_REMOVE+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4377 REMOVE=$ac_cv_path_REMOVE
4378 if test -n "$REMOVE"; then
4379 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4380 echo "${ECHO_T}$REMOVE" >&6; }
4382 { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4387 # Extract the first word of "cp", so it can be a program name with args.
4388 set dummy cp; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_CP+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4419 if test -n "$CP"; then
4420 { echo "$as_me:$LINENO: result: $CP" >&5
4421 echo "${ECHO_T}$CP" >&6; }
4423 { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4428 # Extract the first word of "sed", so it can be a program name with args.
4429 set dummy sed; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_SED+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4460 if test -n "$SED"; then
4461 { echo "$as_me:$LINENO: result: $SED" >&5
4462 echo "${ECHO_T}$SED" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 # Extract the first word of "echo", so it can be a program name with args.
4470 set dummy echo; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_ECHO+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4500 ECHO=$ac_cv_path_ECHO
4501 if test -n "$ECHO"; then
4502 { echo "$as_me:$LINENO: result: $ECHO" >&5
4503 echo "${ECHO_T}$ECHO" >&6; }
4505 { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4510 # Extract the first word of "cmp", so it can be a program name with args.
4511 set dummy cmp; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_CMP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4542 if test -n "$CMP"; then
4543 { echo "$as_me:$LINENO: result: $CMP" >&5
4544 echo "${ECHO_T}$CMP" >&6; }
4546 { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4551 # Extract the first word of "tbl", so it can be a program name with args.
4552 set dummy tbl; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_TBL+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4583 if test -n "$TBL"; then
4584 { echo "$as_me:$LINENO: result: $TBL" >&5
4585 echo "${ECHO_T}$TBL" >&6; }
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4592 # Extract the first word of "ar", so it can be a program name with args.
4593 set dummy ar; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_AR+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4624 if test -n "$AR"; then
4625 { echo "$as_me:$LINENO: result: $AR" >&5
4626 echo "${ECHO_T}$AR" >&6; }
4628 { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4633 # Extract the first word of "openssl", so it can be a program name with args.
4634 set dummy openssl; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_OPENSSL+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4664 OPENSSL=$ac_cv_path_OPENSSL
4665 if test -n "$OPENSSL"; then
4666 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4667 echo "${ECHO_T}$OPENSSL" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4674 # Extract the first word of "mtx", so it can be a program name with args.
4675 set dummy mtx; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_MTX+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4706 if test -n "$MTX"; then
4707 { echo "$as_me:$LINENO: result: $MTX" >&5
4708 echo "${ECHO_T}$MTX" >&6; }
4710 { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4715 # Extract the first word of "dd", so it can be a program name with args.
4716 set dummy dd; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_DD+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4747 if test -n "$DD"; then
4748 { echo "$as_me:$LINENO: result: $DD" >&5
4749 echo "${ECHO_T}$DD" >&6; }
4751 { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4756 # Extract the first word of "mkisofs", so it can be a program name with args.
4757 set dummy mkisofs; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_MKISOFS+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4787 MKISOFS=$ac_cv_path_MKISOFS
4788 if test -n "$MKISOFS"; then
4789 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4790 echo "${ECHO_T}$MKISOFS" >&6; }
4792 { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4797 # Extract the first word of "python", so it can be a program name with args.
4798 set dummy python; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_PYTHON+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4828 PYTHON=$ac_cv_path_PYTHON
4829 if test -n "$PYTHON"; then
4830 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4831 echo "${ECHO_T}$PYTHON" >&6; }
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4838 # Extract the first word of "growisofs", so it can be a program name with args.
4839 set dummy growisofs; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4869 GROWISOFS=$ac_cv_path_GROWISOFS
4870 if test -n "$GROWISOFS"; then
4871 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4872 echo "${ECHO_T}$GROWISOFS" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4880 set dummy dvd+rw-mediainfo; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 case $DVDRWMEDIAINFO in
4888 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4910 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4911 if test -n "$DVDRWMEDIAINFO"; then
4912 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4913 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4920 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4921 set dummy dvd+rw-format; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 case $DVDRWFORMAT in
4929 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4951 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4952 if test -n "$DVDRWFORMAT"; then
4953 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4954 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4961 # Extract the first word of "pkg-config", so it can be a program name with args.
4962 set dummy pkg-config; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4992 PKGCONFIG=$ac_cv_path_PKGCONFIG
4993 if test -n "$PKGCONFIG"; then
4994 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4995 echo "${ECHO_T}$PKGCONFIG" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5002 # Extract the first word of "qmake", so it can be a program name with args.
5003 set dummy qmake; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_QMAKE+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5033 QMAKE=$ac_cv_path_QMAKE
5034 if test -n "$QMAKE"; then
5035 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5036 echo "${ECHO_T}$QMAKE" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5043 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5044 set dummy qmake-qt4; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5074 QMAKEQT4=$ac_cv_path_QMAKEQT4
5075 if test -n "$QMAKEQT4"; then
5076 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5077 echo "${ECHO_T}$QMAKEQT4" >&6; }
5079 { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5085 if test "x$WXCONFIG" = x; then
5088 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5089 set dummy ${WXCONFIG}; ac_word=$2
5090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5092 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5119 WXCONFIG=$ac_cv_path_WXCONFIG
5120 if test -n "$WXCONFIG"; then
5121 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5122 echo "${ECHO_T}$WXCONFIG" >&6; }
5124 { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5130 # Extract the first word of "cdrecord", so it can be a program name with args.
5131 set dummy cdrecord; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_CDRECORD+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5161 CDRECORD=$ac_cv_path_CDRECORD
5162 if test -n "$CDRECORD"; then
5163 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5164 echo "${ECHO_T}$CDRECORD" >&6; }
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5171 # Extract the first word of "pidof", so it can be a program name with args.
5172 set dummy pidof; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_PIDOF+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5202 PIDOF=$ac_cv_path_PIDOF
5203 if test -n "$PIDOF"; then
5204 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5205 echo "${ECHO_T}$PIDOF" >&6; }
5207 { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5212 for ac_prog in gawk mawk nawk awk
5214 # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_prog_AWK+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 if test -n "$AWK"; then
5222 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_AWK="$ac_prog"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 if test -n "$AWK"; then
5243 { echo "$as_me:$LINENO: result: $AWK" >&5
5244 echo "${ECHO_T}$AWK" >&6; }
5246 { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5251 test -n "$AWK" && break
5254 # Some AWK programs fail, so test it and warn the user
5255 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5256 { if ((prog == $2) || (("(" prog ")") == $2) ||
5257 (("" prog "") == $2) ||
5258 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5260 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5261 The regex engine of $AWK is too broken to be used you
5262 might want to install GNU AWK.
5263 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5264 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265 The regex engine of $AWK is too broken to be used you
5266 might want to install GNU AWK.
5267 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5268 { (exit 1); exit 1; }; }
5271 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5272 set dummy $THE_AWK; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_path_AWK+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5303 if test -n "$AWK"; then
5304 { echo "$as_me:$LINENO: result: $AWK" >&5
5305 echo "${ECHO_T}$AWK" >&6; }
5307 { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5314 test -n "$ARFLAG" || ARFLAGS="cr"
5325 # Check whether --enable-libtool was given.
5326 if test "${enable_libtool+set}" = set; then
5327 enableval=$enable_libtool;
5328 if test x$enableval = xno; then
5337 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5338 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5343 macro_version='2.2.6'
5344 macro_revision='1.3012'
5358 ltmain="$ac_aux_dir/ltmain.sh"
5360 # Make sure we can run config.sub.
5361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5362 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5363 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5364 { (exit 1); exit 1; }; }
5366 { echo "$as_me:$LINENO: checking build system type" >&5
5367 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5368 if test "${ac_cv_build+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 ac_build_alias=$build_alias
5372 test "x$ac_build_alias" = x &&
5373 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5374 test "x$ac_build_alias" = x &&
5375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5377 { (exit 1); exit 1; }; }
5378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5379 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5380 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5381 { (exit 1); exit 1; }; }
5384 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5385 echo "${ECHO_T}$ac_cv_build" >&6; }
5386 case $ac_cv_build in
5388 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5389 echo "$as_me: error: invalid value of canonical build" >&2;}
5390 { (exit 1); exit 1; }; };;
5393 ac_save_IFS=$IFS; IFS='-'
5399 # Remember, the first character of IFS is used to create $*,
5400 # except with old shells:
5403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5406 { echo "$as_me:$LINENO: checking host system type" >&5
5407 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5408 if test "${ac_cv_host+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 if test "x$host_alias" = x; then
5412 ac_cv_host=$ac_cv_build
5414 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5415 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5416 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5417 { (exit 1); exit 1; }; }
5421 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5422 echo "${ECHO_T}$ac_cv_host" >&6; }
5425 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5426 echo "$as_me: error: invalid value of canonical host" >&2;}
5427 { (exit 1); exit 1; }; };;
5430 ac_save_IFS=$IFS; IFS='-'
5436 # Remember, the first character of IFS is used to create $*,
5437 # except with old shells:
5440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5443 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5444 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5445 if test "${ac_cv_path_SED+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5449 for ac_i in 1 2 3 4 5 6 7; do
5450 ac_script="$ac_script$as_nl$ac_script"
5452 echo "$ac_script" | sed 99q >conftest.sed
5453 $as_unset ac_script || ac_script=
5454 # Extract the first word of "sed gsed" to use in msg output
5455 if test -z "$SED"; then
5456 set dummy sed gsed; ac_prog_name=$2
5457 if test "${ac_cv_path_SED+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 ac_path_SED_found=false
5461 # Loop through the user's path and test for each of PROGNAME-LIST
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_prog in sed gsed; do
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5470 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5471 # Check for GNU ac_path_SED and select it if it is found.
5472 # Check for GNU $ac_path_SED
5473 case `"$ac_path_SED" --version 2>&1` in
5475 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5478 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5481 cat "conftest.in" "conftest.in" >"conftest.tmp"
5482 mv "conftest.tmp" "conftest.in"
5483 cp "conftest.in" "conftest.nl"
5484 echo '' >> "conftest.nl"
5485 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5487 ac_count=`expr $ac_count + 1`
5488 if test $ac_count -gt ${ac_path_SED_max-0}; then
5489 # Best one so far, save it but keep looking for a better one
5490 ac_cv_path_SED="$ac_path_SED"
5491 ac_path_SED_max=$ac_count
5493 # 10*(2^10) chars as input seems more than enough
5494 test $ac_count -gt 10 && break
5496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5500 $ac_path_SED_found && break 3
5510 SED="$ac_cv_path_SED"
5511 if test -z "$SED"; then
5512 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5513 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5514 { (exit 1); exit 1; }; }
5522 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5523 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5524 SED="$ac_cv_path_SED"
5527 test -z "$SED" && SED=sed
5528 Xsed="$SED -e 1s/^X//"
5540 { echo "$as_me:$LINENO: checking for fgrep" >&5
5541 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5542 if test "${ac_cv_path_FGREP+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5546 then ac_cv_path_FGREP="$GREP -F"
5548 # Extract the first word of "fgrep" to use in msg output
5549 if test -z "$FGREP"; then
5550 set dummy fgrep; ac_prog_name=$2
5551 if test "${ac_cv_path_FGREP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_path_FGREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 test -z "$as_dir" && as_dir=.
5561 for ac_prog in fgrep; do
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5564 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5565 # Check for GNU ac_path_FGREP and select it if it is found.
5566 # Check for GNU $ac_path_FGREP
5567 case `"$ac_path_FGREP" --version 2>&1` in
5569 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 echo 'FGREP' >> "conftest.nl"
5579 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581 ac_count=`expr $ac_count + 1`
5582 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_FGREP="$ac_path_FGREP"
5585 ac_path_FGREP_max=$ac_count
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5594 $ac_path_FGREP_found && break 3
5604 FGREP="$ac_cv_path_FGREP"
5605 if test -z "$FGREP"; then
5606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608 { (exit 1); exit 1; }; }
5612 ac_cv_path_FGREP=$FGREP
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5620 FGREP="$ac_cv_path_FGREP"
5623 test -z "$GREP" && GREP=grep
5643 # Check whether --with-gnu-ld was given.
5644 if test "${with_gnu_ld+set}" = set; then
5645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5651 if test "$GCC" = yes; then
5652 # Check if gcc -print-prog-name=ld gives a path.
5653 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5654 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5657 # gcc leaves a trailing carriage return which upsets mingw
5658 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5660 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5663 # Accept absolute paths.
5665 re_direlt='/[^/][^/]*/\.\./'
5666 # Canonicalize the pathname of ld
5667 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5668 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5669 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5671 test -z "$LD" && LD="$ac_prog"
5674 # If it fails, then pretend we aren't using GCC.
5678 # If it is relative, then search for the first ld in PATH.
5682 elif test "$with_gnu_ld" = yes; then
5683 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5684 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5686 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5687 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5689 if test "${lt_cv_path_LD+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test -z "$LD"; then
5693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5694 for ac_dir in $PATH; do
5696 test -z "$ac_dir" && ac_dir=.
5697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5698 lt_cv_path_LD="$ac_dir/$ac_prog"
5699 # Check to see if the program is GNU ld. I'd rather use --version,
5700 # but apparently some variants of GNU ld only accept -v.
5701 # Break only if it was the GNU/non-GNU ld that we prefer.
5702 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5703 *GNU* | *'with BFD'*)
5704 test "$with_gnu_ld" != no && break
5707 test "$with_gnu_ld" != yes && break
5714 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5719 if test -n "$LD"; then
5720 { echo "$as_me:$LINENO: result: $LD" >&5
5721 echo "${ECHO_T}$LD" >&6; }
5723 { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5726 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5727 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5728 { (exit 1); exit 1; }; }
5729 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5730 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5731 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5735 case `$LD -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737 lt_cv_prog_gnu_ld=yes
5740 lt_cv_prog_gnu_ld=no
5744 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5745 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5746 with_gnu_ld=$lt_cv_prog_gnu_ld
5756 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5757 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5758 if test "${lt_cv_path_NM+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if test -n "$NM"; then
5762 # Let the user override the test.
5765 lt_nm_to_check="${ac_tool_prefix}nm"
5766 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767 lt_nm_to_check="$lt_nm_to_check nm"
5769 for lt_tmp_nm in $lt_nm_to_check; do
5770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5773 test -z "$ac_dir" && ac_dir=.
5774 tmp_nm="$ac_dir/$lt_tmp_nm"
5775 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776 # Check to see if the nm accepts a BSD-compat flag.
5777 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778 # nm: unknown option "B" ignored
5779 # Tru64's nm complains that /dev/null is an invalid object file
5780 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781 */dev/null* | *'Invalid file or object type'*)
5782 lt_cv_path_NM="$tmp_nm -B"
5786 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5788 lt_cv_path_NM="$tmp_nm -p"
5792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793 continue # so that we can try to find one that supports BSD flags
5802 : ${lt_cv_path_NM=no}
5805 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5807 if test "$lt_cv_path_NM" != "no"; then
5810 # Didn't find any BSD compatible name lister, look for dumpbin.
5811 if test -n "$ac_tool_prefix"; then
5812 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 if test -n "$DUMPBIN"; then
5822 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 DUMPBIN=$ac_cv_prog_DUMPBIN
5842 if test -n "$DUMPBIN"; then
5843 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5844 echo "${ECHO_T}$DUMPBIN" >&6; }
5846 { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5851 test -n "$DUMPBIN" && break
5854 if test -z "$DUMPBIN"; then
5855 ac_ct_DUMPBIN=$DUMPBIN
5856 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 if test -n "$ac_ct_DUMPBIN"; then
5866 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5886 if test -n "$ac_ct_DUMPBIN"; then
5887 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5888 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5890 { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5895 test -n "$ac_ct_DUMPBIN" && break
5898 if test "x$ac_ct_DUMPBIN" = x; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet. If you think this
5905 configuration is useful to you, please write to autoconf@gnu.org." >&5
5906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet. If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned=yes ;;
5911 DUMPBIN=$ac_ct_DUMPBIN
5916 if test "$DUMPBIN" != ":"; then
5920 test -z "$NM" && NM=nm
5927 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5928 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5929 if test "${lt_cv_nm_interface+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 lt_cv_nm_interface="BSD nm"
5933 echo "int some_variable = 0;" > conftest.$ac_ext
5934 (eval echo "\"\$as_me:5934: $ac_compile\"" >&5)
5935 (eval "$ac_compile" 2>conftest.err)
5936 cat conftest.err >&5
5937 (eval echo "\"\$as_me:5937: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5938 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5939 cat conftest.err >&5
5940 (eval echo "\"\$as_me:5940: output\"" >&5)
5941 cat conftest.out >&5
5942 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5943 lt_cv_nm_interface="MS dumpbin"
5947 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5948 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5950 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5951 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5953 if test "$LN_S" = "ln -s"; then
5954 { echo "$as_me:$LINENO: result: yes" >&5
5955 echo "${ECHO_T}yes" >&6; }
5957 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5958 echo "${ECHO_T}no, using $LN_S" >&6; }
5961 # find the maximum length of command line arguments
5962 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5963 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5964 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 # On DJGPP, this test can blow up pretty badly due to problems in libc
5973 # (any single argument exceeding 2000 bytes causes a buffer overrun
5974 # during glob expansion). Even if it were fixed, the result of this
5975 # check would be larger than it should be.
5976 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5980 # Under GNU Hurd, this test is not required because there is
5981 # no limit to the length of command line arguments.
5982 # Libtool will interpret -1 as no limit whatsoever
5983 lt_cv_sys_max_cmd_len=-1;
5986 cygwin* | mingw* | cegcc*)
5987 # On Win9x/ME, this test blows up -- it succeeds, but takes
5988 # about 5 minutes as the teststring grows exponentially.
5989 # Worse, since 9x/ME are not pre-emptively multitasking,
5990 # you end up with a "frozen" computer, even though with patience
5991 # the test eventually succeeds (with a max line length of 256k).
5992 # Instead, let's just punt: use the minimum linelength reported by
5993 # all of the supported platforms: 8192 (on NT/2K/XP).
5994 lt_cv_sys_max_cmd_len=8192;
5998 # On AmigaOS with pdksh, this test takes hours, literally.
5999 # So we just punt and use a minimum line length of 8192.
6000 lt_cv_sys_max_cmd_len=8192;
6003 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6004 # This has been around since 386BSD, at least. Likely further.
6005 if test -x /sbin/sysctl; then
6006 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6007 elif test -x /usr/sbin/sysctl; then
6008 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6010 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6012 # And add a safety zone
6013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6018 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6019 lt_cv_sys_max_cmd_len=196608
6023 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6024 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6025 # nice to cause kernel panics so lets avoid the loop below.
6026 # First set a reasonable default.
6027 lt_cv_sys_max_cmd_len=16384
6029 if test -x /sbin/sysconfig; then
6030 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6031 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6036 lt_cv_sys_max_cmd_len=102400
6038 sysv5* | sco5v6* | sysv4.2uw2*)
6039 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6040 if test -n "$kargmax"; then
6041 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6043 lt_cv_sys_max_cmd_len=32768
6047 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6048 if test -n "$lt_cv_sys_max_cmd_len"; then
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6052 # Make teststring a little bigger before we do anything with it.
6053 # a 1K string should be a reasonable start.
6054 for i in 1 2 3 4 5 6 7 8 ; do
6055 teststring=$teststring$teststring
6057 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6058 # If test is not a shell built-in, we'll probably end up computing a
6059 # maximum length that is only half of the actual maximum length, but
6061 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6062 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6063 test $i != 17 # 1/2 MB should be enough
6066 teststring=$teststring$teststring
6068 # Only check the string length outside the loop.
6069 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6071 # Add a significant safety factor because C++ compilers can tack on
6072 # massive amounts of additional arguments before passing them to the
6073 # linker. It appears as though 1/2 is a usable value.
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6081 if test -n $lt_cv_sys_max_cmd_len ; then
6082 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6083 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6085 { echo "$as_me:$LINENO: result: none" >&5
6086 echo "${ECHO_T}none" >&6; }
6088 max_cmd_len=$lt_cv_sys_max_cmd_len
6099 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6100 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6101 # Try some XSI features
6104 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6106 && eval 'test $(( 1 + 1 )) -eq 2 \
6107 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6109 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6110 echo "${ECHO_T}$xsi_shell" >&6; }
6113 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6114 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6116 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6118 && lt_shell_append=yes
6119 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6120 echo "${ECHO_T}$lt_shell_append" >&6; }
6123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6133 # test EBCDIC or ASCII
6134 case `echo X|tr X '\101'` in
6135 A) # ASCII based system
6136 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6137 lt_SP2NL='tr \040 \012'
6138 lt_NL2SP='tr \015\012 \040\040'
6140 *) # EBCDIC based system
6141 lt_SP2NL='tr \100 \n'
6142 lt_NL2SP='tr \r\n \100\100'
6154 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6155 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6156 if test "${lt_cv_ld_reload_flag+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 lt_cv_ld_reload_flag='-r'
6161 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6162 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6163 reload_flag=$lt_cv_ld_reload_flag
6164 case $reload_flag in
6166 *) reload_flag=" $reload_flag" ;;
6168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6171 if test "$GCC" = yes; then
6172 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 if test -n "$OBJDUMP"; then
6196 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 OBJDUMP=$ac_cv_prog_OBJDUMP
6216 if test -n "$OBJDUMP"; then
6217 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6218 echo "${ECHO_T}$OBJDUMP" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6226 if test -z "$ac_cv_prog_OBJDUMP"; then
6227 ac_ct_OBJDUMP=$OBJDUMP
6228 # Extract the first word of "objdump", so it can be a program name with args.
6229 set dummy objdump; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 if test -n "$ac_ct_OBJDUMP"; then
6236 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6256 if test -n "$ac_ct_OBJDUMP"; then
6257 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6258 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6264 if test "x$ac_ct_OBJDUMP" = x; then
6267 case $cross_compiling:$ac_tool_warned in
6269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6270 whose name does not start with the host triplet. If you think this
6271 configuration is useful to you, please write to autoconf@gnu.org." >&5
6272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6273 whose name does not start with the host triplet. If you think this
6274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6275 ac_tool_warned=yes ;;
6277 OBJDUMP=$ac_ct_OBJDUMP
6280 OBJDUMP="$ac_cv_prog_OBJDUMP"
6283 test -z "$OBJDUMP" && OBJDUMP=objdump
6293 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6294 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6295 if test "${lt_cv_deplibs_check_method+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 lt_cv_file_magic_cmd='$MAGIC_CMD'
6299 lt_cv_file_magic_test_file=
6300 lt_cv_deplibs_check_method='unknown'
6301 # Need to set the preceding variable on all platforms that support
6302 # interlibrary dependencies.
6303 # 'none' -- dependencies not supported.
6304 # `unknown' -- same as none, but documents that we really don't know.
6305 # 'pass_all' -- all dependencies passed with no checks.
6306 # 'test_compile' -- check by making test program.
6307 # 'file_magic [[regex]]' -- check by looking for files in library path
6308 # which responds to the $file_magic_cmd with a given extended regex.
6309 # If you have `file' or equivalent on your system and you're not sure
6310 # whether `pass_all' will *always* work, you probably want this one.
6314 lt_cv_deplibs_check_method=pass_all
6318 lt_cv_deplibs_check_method=pass_all
6322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6323 lt_cv_file_magic_cmd='/usr/bin/file -L'
6324 lt_cv_file_magic_test_file=/shlib/libc.so
6328 # func_win32_libid is a shell function defined in ltmain.sh
6329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330 lt_cv_file_magic_cmd='func_win32_libid'
6334 # Base MSYS/MinGW do not provide the 'file' command needed by
6335 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6336 # unless we find 'file', for example because we are cross-compiling.
6337 if ( file / ) >/dev/null 2>&1; then
6338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6339 lt_cv_file_magic_cmd='func_win32_libid'
6341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6342 lt_cv_file_magic_cmd='$OBJDUMP -f'
6347 # use the weaker test based on 'objdump'. See mingw*.
6348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6349 lt_cv_file_magic_cmd='$OBJDUMP -f'
6352 darwin* | rhapsody*)
6353 lt_cv_deplibs_check_method=pass_all
6356 freebsd* | dragonfly*)
6357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6360 # Not sure whether the presence of OpenBSD here was a mistake.
6361 # Let's accept both of them until this is cleared up.
6362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6363 lt_cv_file_magic_cmd=/usr/bin/file
6364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6368 lt_cv_deplibs_check_method=pass_all
6373 lt_cv_deplibs_check_method=pass_all
6376 hpux10.20* | hpux11*)
6377 lt_cv_file_magic_cmd=/usr/bin/file
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6399 irix5* | irix6* | nonstopux*)
6401 *-32|*"-32 ") libmagic=32-bit;;
6402 *-n32|*"-n32 ") libmagic=N32;;
6403 *-64|*"-64 ") libmagic=64-bit;;
6404 *) libmagic=never-match;;
6406 lt_cv_deplibs_check_method=pass_all
6409 # This must be Linux ELF.
6410 linux* | k*bsd*-gnu)
6411 lt_cv_deplibs_check_method=pass_all
6415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6424 lt_cv_file_magic_cmd=/usr/bin/file
6425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6429 lt_cv_deplibs_check_method=pass_all
6433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6440 osf3* | osf4* | osf5*)
6441 lt_cv_deplibs_check_method=pass_all
6445 lt_cv_deplibs_check_method=pass_all
6449 lt_cv_deplibs_check_method=pass_all
6452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6453 lt_cv_deplibs_check_method=pass_all
6457 case $host_vendor in
6459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6463 lt_cv_deplibs_check_method=pass_all
6466 lt_cv_file_magic_cmd='/bin/file'
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6470 lt_cv_file_magic_cmd='/bin/file'
6471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6472 lt_cv_file_magic_test_file=/lib/libc.so
6475 lt_cv_deplibs_check_method=pass_all
6478 lt_cv_deplibs_check_method=pass_all
6484 lt_cv_deplibs_check_method=pass_all
6489 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6490 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6491 file_magic_cmd=$lt_cv_file_magic_cmd
6492 deplibs_check_method=$lt_cv_deplibs_check_method
6493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}ar; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_AR+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 if test -n "$AR"; then
6515 ac_cv_prog_AR="$AR" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_AR="${ac_tool_prefix}ar"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 if test -n "$AR"; then
6536 { echo "$as_me:$LINENO: result: $AR" >&5
6537 echo "${ECHO_T}$AR" >&6; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6545 if test -z "$ac_cv_prog_AR"; then
6547 # Extract the first word of "ar", so it can be a program name with args.
6548 set dummy ar; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 if test -n "$ac_ct_AR"; then
6555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_ac_ct_AR="ar"
6565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6575 if test -n "$ac_ct_AR"; then
6576 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6577 echo "${ECHO_T}$ac_ct_AR" >&6; }
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6583 if test "x$ac_ct_AR" = x; then
6586 case $cross_compiling:$ac_tool_warned in
6588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6589 whose name does not start with the host triplet. If you think this
6590 configuration is useful to you, please write to autoconf@gnu.org." >&5
6591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6592 whose name does not start with the host triplet. If you think this
6593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6594 ac_tool_warned=yes ;;
6602 test -z "$AR" && AR=ar
6603 test -z "$AR_FLAGS" && AR_FLAGS=cru
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}strip; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_prog_STRIP+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 if test -n "$STRIP"; then
6624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 STRIP=$ac_cv_prog_STRIP
6644 if test -n "$STRIP"; then
6645 { echo "$as_me:$LINENO: result: $STRIP" >&5
6646 echo "${ECHO_T}$STRIP" >&6; }
6648 { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6654 if test -z "$ac_cv_prog_STRIP"; then
6656 # Extract the first word of "strip", so it can be a program name with args.
6657 set dummy strip; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 if test -n "$ac_ct_STRIP"; then
6664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_ac_ct_STRIP="strip"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6684 if test -n "$ac_ct_STRIP"; then
6685 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6686 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6688 { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6692 if test "x$ac_ct_STRIP" = x; then
6695 case $cross_compiling:$ac_tool_warned in
6697 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6698 whose name does not start with the host triplet. If you think this
6699 configuration is useful to you, please write to autoconf@gnu.org." >&5
6700 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6701 whose name does not start with the host triplet. If you think this
6702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6703 ac_tool_warned=yes ;;
6708 STRIP="$ac_cv_prog_STRIP"
6711 test -z "$STRIP" && STRIP=:
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 if test -n "$RANLIB"; then
6727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758 ac_ct_RANLIB=$RANLIB
6759 # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test -n "$ac_ct_RANLIB"; then
6767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_RANLIB="ranlib"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6795 if test "x$ac_ct_RANLIB" = x; then
6798 case $cross_compiling:$ac_tool_warned in
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet. If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6808 RANLIB=$ac_ct_RANLIB
6811 RANLIB="$ac_cv_prog_RANLIB"
6814 test -z "$RANLIB" && RANLIB=:
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6826 if test -n "$RANLIB"; then
6829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6835 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6871 # If no C compiler was specified, use CC.
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877 # Allow CC to be a program name with arguments.
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6883 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897 # Define system-specific variables.
6902 cygwin* | mingw* | pw32* | cegcc*)
6903 symcode='[ABCDGISTW]'
6906 if test "$host_cpu" = ia64; then
6907 symcode='[ABCDEGRST]'
6911 symcode='[BCDEGRST]'
6914 symcode='[BCDEGQRST]'
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936 symcode='[ABCDGIRSTW]' ;;
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6948 # Handle CRLF in mingw tool chain
6952 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6959 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960 symxfrm="\\1 $ac_symprfx\\2 \\2"
6962 # Write the raw and C identifiers.
6963 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964 # Fake it for dumpbin and say T for any non-static function
6965 # and D for any global variable.
6966 # Also find C++ and __fastcall symbols from MSVC++,
6967 # which start with @ or ?.
6968 lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 " {last_section=section; section=\$ 3};"\
6970 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971 " \$ 0!~/External *\|/{next};"\
6972 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973 " {if(hide[section]) next};"\
6974 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978 " ' prfx=^$ac_symprfx"
6980 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6983 # Check to see that the pipe works correctly.
6987 cat > conftest.$ac_ext <<_LT_EOF
6992 void nm_test_func(void);
6993 void nm_test_func(void){}
6997 int main(){nm_test_var='a';nm_test_func();return(0);}
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001 (eval $ac_compile) 2>&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; then
7005 # Now try to grab the symbols.
7007 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7008 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && test -s "$nlist"; then
7012 # Try sorting and uniquifying the output.
7013 if sort "$nlist" | uniq > "$nlist"T; then
7014 mv -f "$nlist"T "$nlist"
7019 # Make sure that we snagged all the symbols we need.
7020 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022 cat <<_LT_EOF > conftest.$ac_ext
7028 # Now generate the symbol file.
7029 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7031 cat <<_LT_EOF >> conftest.$ac_ext
7033 /* The mapping between symbol names and symbols. */
7038 lt__PROGRAM__LTX_preloaded_symbols[] =
7040 { "@PROGRAM@", (void *) 0 },
7042 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043 cat <<\_LT_EOF >> conftest.$ac_ext
7047 /* This works around a problem in FreeBSD linker */
7048 #ifdef FREEBSD_WORKAROUND
7049 static const void *lt_preloaded_setup() {
7050 return lt__PROGRAM__LTX_preloaded_symbols;
7058 # Now try linking the two files.
7059 mv conftest.$ac_objext conftstm.$ac_objext
7060 lt_save_LIBS="$LIBS"
7061 lt_save_CFLAGS="$CFLAGS"
7062 LIBS="conftstm.$ac_objext"
7063 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7071 LIBS="$lt_save_LIBS"
7072 CFLAGS="$lt_save_CFLAGS"
7074 echo "cannot find nm_test_func in $nlist" >&5
7077 echo "cannot find nm_test_var in $nlist" >&5
7080 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7083 echo "$progname: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7086 rm -rf conftest* conftst*
7088 # Do not use the global_symbol_pipe unless it works.
7089 if test "$pipe_works" = yes; then
7092 lt_cv_sys_global_symbol_pipe=
7098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099 lt_cv_sys_global_symbol_to_cdecl=
7101 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7102 { echo "$as_me:$LINENO: result: failed" >&5
7103 echo "${ECHO_T}failed" >&6; }
7105 { echo "$as_me:$LINENO: result: ok" >&5
7106 echo "${ECHO_T}ok" >&6; }
7130 # Check whether --enable-libtool-lock was given.
7131 if test "${enable_libtool_lock+set}" = set; then
7132 enableval=$enable_libtool_lock;
7135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7137 # Some flags need to be propagated to the compiler or linker for good
7141 # Find out which ABI we are using.
7142 echo 'int i;' > conftest.$ac_ext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; then
7148 case `/usr/bin/file conftest.$ac_objext` in
7160 # Find out which ABI we are using.
7161 echo '#line 7161 "configure"' > conftest.$ac_ext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; then
7167 if test "$lt_cv_prog_gnu_ld" = yes; then
7168 case `/usr/bin/file conftest.$ac_objext` in
7170 LD="${LD-ld} -melf32bsmip"
7173 LD="${LD-ld} -melf32bmipn32"
7176 LD="${LD-ld} -melf64bmip"
7180 case `/usr/bin/file conftest.$ac_objext` in
7196 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; then
7205 case `/usr/bin/file conftest.o` in
7208 x86_64-*kfreebsd*-gnu)
7209 LD="${LD-ld} -m elf_i386_fbsd"
7212 LD="${LD-ld} -m elf_i386"
7214 ppc64-*linux*|powerpc64-*linux*)
7215 LD="${LD-ld} -m elf32ppclinux"
7218 LD="${LD-ld} -m elf_s390"
7221 LD="${LD-ld} -m elf32_sparc"
7227 x86_64-*kfreebsd*-gnu)
7228 LD="${LD-ld} -m elf_x86_64_fbsd"
7231 LD="${LD-ld} -m elf_x86_64"
7233 ppc*-*linux*|powerpc*-*linux*)
7234 LD="${LD-ld} -m elf64ppc"
7236 s390*-*linux*|s390*-*tpf*)
7237 LD="${LD-ld} -m elf64_s390"
7240 LD="${LD-ld} -m elf64_sparc"
7250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251 SAVE_CFLAGS="$CFLAGS"
7252 CFLAGS="$CFLAGS -belf"
7253 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7254 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (ac_try="$ac_link"
7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283 *) ac_try_echo=$ac_try;;
7285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286 (eval "$ac_link") 2>conftest.er1
7288 grep -v '^ *+' conftest.er1 >conftest.err
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest$ac_exeext &&
7296 $as_test_x conftest$ac_exeext; then
7297 lt_cv_cc_needs_belf=yes
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7302 lt_cv_cc_needs_belf=no
7305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7306 conftest$ac_exeext conftest.$ac_ext
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7315 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7316 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7317 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7318 CFLAGS="$SAVE_CFLAGS"
7322 # Find out which ABI we are using.
7323 echo 'int i;' > conftest.$ac_ext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; then
7329 case `/usr/bin/file conftest.o` in
7331 case $lt_cv_prog_gnu_ld in
7332 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7334 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7346 need_locks="$enable_libtool_lock"
7350 rhapsody* | darwin*)
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 if test -n "$DSYMUTIL"; then
7360 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7380 if test -n "$DSYMUTIL"; then
7381 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7382 echo "${ECHO_T}$DSYMUTIL" >&6; }
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7390 if test -z "$ac_cv_prog_DSYMUTIL"; then
7391 ac_ct_DSYMUTIL=$DSYMUTIL
7392 # Extract the first word of "dsymutil", so it can be a program name with args.
7393 set dummy dsymutil; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 if test -n "$ac_ct_DSYMUTIL"; then
7400 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7420 if test -n "$ac_ct_DSYMUTIL"; then
7421 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7422 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7428 if test "x$ac_ct_DSYMUTIL" = x; then
7431 case $cross_compiling:$ac_tool_warned in
7433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7434 whose name does not start with the host triplet. If you think this
7435 configuration is useful to you, please write to autoconf@gnu.org." >&5
7436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7437 whose name does not start with the host triplet. If you think this
7438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7439 ac_tool_warned=yes ;;
7441 DSYMUTIL=$ac_ct_DSYMUTIL
7444 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7447 if test -n "$ac_tool_prefix"; then
7448 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 if test -n "$NMEDIT"; then
7456 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 NMEDIT=$ac_cv_prog_NMEDIT
7476 if test -n "$NMEDIT"; then
7477 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7478 echo "${ECHO_T}$NMEDIT" >&6; }
7480 { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7486 if test -z "$ac_cv_prog_NMEDIT"; then
7487 ac_ct_NMEDIT=$NMEDIT
7488 # Extract the first word of "nmedit", so it can be a program name with args.
7489 set dummy nmedit; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 if test -n "$ac_ct_NMEDIT"; then
7496 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7516 if test -n "$ac_ct_NMEDIT"; then
7517 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7518 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7520 { echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6; }
7524 if test "x$ac_ct_NMEDIT" = x; then
7527 case $cross_compiling:$ac_tool_warned in
7529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7530 whose name does not start with the host triplet. If you think this
7531 configuration is useful to you, please write to autoconf@gnu.org." >&5
7532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7533 whose name does not start with the host triplet. If you think this
7534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7535 ac_tool_warned=yes ;;
7537 NMEDIT=$ac_ct_NMEDIT
7540 NMEDIT="$ac_cv_prog_NMEDIT"
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_prog_LIPO+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 if test -n "$LIPO"; then
7552 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 LIPO=$ac_cv_prog_LIPO
7572 if test -n "$LIPO"; then
7573 { echo "$as_me:$LINENO: result: $LIPO" >&5
7574 echo "${ECHO_T}$LIPO" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7582 if test -z "$ac_cv_prog_LIPO"; then
7584 # Extract the first word of "lipo", so it can be a program name with args.
7585 set dummy lipo; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 if test -n "$ac_ct_LIPO"; then
7592 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_prog_ac_ct_LIPO="lipo"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7612 if test -n "$ac_ct_LIPO"; then
7613 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7614 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7620 if test "x$ac_ct_LIPO" = x; then
7623 case $cross_compiling:$ac_tool_warned in
7625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7626 whose name does not start with the host triplet. If you think this
7627 configuration is useful to you, please write to autoconf@gnu.org." >&5
7628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7629 whose name does not start with the host triplet. If you think this
7630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7631 ac_tool_warned=yes ;;
7636 LIPO="$ac_cv_prog_LIPO"
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}otool; ac_word=$2
7642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7644 if test "${ac_cv_prog_OTOOL+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 if test -n "$OTOOL"; then
7648 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 OTOOL=$ac_cv_prog_OTOOL
7668 if test -n "$OTOOL"; then
7669 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7670 echo "${ECHO_T}$OTOOL" >&6; }
7672 { echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6; }
7678 if test -z "$ac_cv_prog_OTOOL"; then
7680 # Extract the first word of "otool", so it can be a program name with args.
7681 set dummy otool; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 if test -n "$ac_ct_OTOOL"; then
7688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_ac_ct_OTOOL="otool"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7708 if test -n "$ac_ct_OTOOL"; then
7709 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7710 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7712 { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7716 if test "x$ac_ct_OTOOL" = x; then
7719 case $cross_compiling:$ac_tool_warned in
7721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7722 whose name does not start with the host triplet. If you think this
7723 configuration is useful to you, please write to autoconf@gnu.org." >&5
7724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7725 whose name does not start with the host triplet. If you think this
7726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7727 ac_tool_warned=yes ;;
7732 OTOOL="$ac_cv_prog_OTOOL"
7735 if test -n "$ac_tool_prefix"; then
7736 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 if test -n "$OTOOL64"; then
7744 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 OTOOL64=$ac_cv_prog_OTOOL64
7764 if test -n "$OTOOL64"; then
7765 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7766 echo "${ECHO_T}$OTOOL64" >&6; }
7768 { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7774 if test -z "$ac_cv_prog_OTOOL64"; then
7775 ac_ct_OTOOL64=$OTOOL64
7776 # Extract the first word of "otool64", so it can be a program name with args.
7777 set dummy otool64; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 if test -n "$ac_ct_OTOOL64"; then
7784 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793 ac_cv_prog_ac_ct_OTOOL64="otool64"
7794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7804 if test -n "$ac_ct_OTOOL64"; then
7805 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7806 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7812 if test "x$ac_ct_OTOOL64" = x; then
7815 case $cross_compiling:$ac_tool_warned in
7817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7818 whose name does not start with the host triplet. If you think this
7819 configuration is useful to you, please write to autoconf@gnu.org." >&5
7820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7821 whose name does not start with the host triplet. If you think this
7822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7823 ac_tool_warned=yes ;;
7825 OTOOL64=$ac_ct_OTOOL64
7828 OTOOL64="$ac_cv_prog_OTOOL64"
7857 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7858 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7859 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 lt_cv_apple_cc_single_mod=no
7863 if test -z "${LT_MULTI_MODULE}"; then
7864 # By default we will add the -single_module flag. You can override
7865 # by either setting the environment variable LT_MULTI_MODULE
7866 # non-empty at configure time, or by adding -multi_module to the
7868 rm -rf libconftest.dylib*
7869 echo "int foo(void){return 1;}" > conftest.c
7870 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib -Wl,-single_module conftest.c" >&5
7872 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7875 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7876 lt_cv_apple_cc_single_mod=yes
7878 cat conftest.err >&5
7880 rm -rf libconftest.dylib*
7884 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7885 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7886 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7887 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7888 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 lt_cv_ld_exported_symbols_list=no
7892 save_LDFLAGS=$LDFLAGS
7893 echo "_main" > conftest.sym
7894 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7895 cat >conftest.$ac_ext <<_ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (ac_try="$ac_link"
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_link") 2>conftest.er1
7919 grep -v '^ *+' conftest.er1 >conftest.err
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && {
7924 test -z "$ac_c_werror_flag" ||
7925 test ! -s conftest.err
7926 } && test -s conftest$ac_exeext &&
7927 $as_test_x conftest$ac_exeext; then
7928 lt_cv_ld_exported_symbols_list=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 lt_cv_ld_exported_symbols_list=no
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937 conftest$ac_exeext conftest.$ac_ext
7938 LDFLAGS="$save_LDFLAGS"
7941 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7942 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7944 rhapsody* | darwin1.[012])
7945 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7948 darwin*) # darwin 5.x on
7949 # if running on 10.5 or later, the deployment target defaults
7950 # to the OS version, if on x86, and 10.4, the deployment
7951 # target defaults to 10.4. Don't you love it?
7952 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7953 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7954 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7956 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7958 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7962 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7963 _lt_dar_single_mod='$single_module'
7965 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7966 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7968 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7970 if test "$DSYMUTIL" != ":"; then
7971 _lt_dsymutil='~$DSYMUTIL $lib || :'
7978 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7979 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7980 if test "${ac_cv_header_stdc+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8019 ac_cv_header_stdc=yes
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_cv_header_stdc=no
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 if test $ac_cv_header_stdc = yes; then
8030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8041 $EGREP "memchr" >/dev/null 2>&1; then
8044 ac_cv_header_stdc=no
8050 if test $ac_cv_header_stdc = yes; then
8051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8052 cat >conftest.$ac_ext <<_ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062 $EGREP "free" >/dev/null 2>&1; then
8065 ac_cv_header_stdc=no
8071 if test $ac_cv_header_stdc = yes; then
8072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8073 if test "$cross_compiling" = yes; then
8076 cat >conftest.$ac_ext <<_ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8084 #if ((' ' & 0x0FF) == 0x020)
8085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8088 # define ISLOWER(c) \
8089 (('a' <= (c) && (c) <= 'i') \
8090 || ('j' <= (c) && (c) <= 'r') \
8091 || ('s' <= (c) && (c) <= 'z'))
8092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8100 for (i = 0; i < 256; i++)
8101 if (XOR (islower (i), ISLOWER (i))
8102 || toupper (i) != TOUPPER (i))
8107 rm -f conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_link") 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8129 echo "$as_me: program exited with status $ac_status" >&5
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_cv_header_stdc=no
8136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8143 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8144 if test $ac_cv_header_stdc = yes; then
8146 cat >>confdefs.h <<\_ACEOF
8147 #define STDC_HEADERS 1
8152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8163 inttypes.h stdint.h unistd.h
8165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8179 #include <$ac_header>
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 eval "$as_ac_Header=yes"
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 eval "$as_ac_Header=no"
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 ac_res=`eval echo '${'$as_ac_Header'}'`
8209 { echo "$as_me:$LINENO: result: $ac_res" >&5
8210 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212 cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8222 for ac_header in dlfcn.h
8224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8238 #include <$ac_header>
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_compile") 2>conftest.er1
8249 grep -v '^ *+' conftest.er1 >conftest.err
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && {
8254 test -z "$ac_c_werror_flag" ||
8255 test ! -s conftest.err
8256 } && test -s conftest.$ac_objext; then
8257 eval "$as_ac_Header=yes"
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8262 eval "$as_ac_Header=no"
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 ac_res=`eval echo '${'$as_ac_Header'}'`
8268 { echo "$as_me:$LINENO: result: $ac_res" >&5
8269 echo "${ECHO_T}$ac_res" >&6; }
8270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8271 cat >>confdefs.h <<_ACEOF
8272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282 ac_cpp='$CXXCPP $CPPFLAGS'
8283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8286 if test -z "$CXX"; then
8287 if test -n "$CCC"; then
8290 if test -n "$ac_tool_prefix"; then
8291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297 if test "${ac_cv_prog_CXX+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 if test -n "$CXX"; then
8301 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 if test -n "$CXX"; then
8322 { echo "$as_me:$LINENO: result: $CXX" >&5
8323 echo "${ECHO_T}$CXX" >&6; }
8325 { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8330 test -n "$CXX" && break
8333 if test -z "$CXX"; then
8335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8337 # Extract the first word of "$ac_prog", so it can be a program name with args.
8338 set dummy $ac_prog; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 if test -n "$ac_ct_CXX"; then
8345 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_ac_ct_CXX="$ac_prog"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8365 if test -n "$ac_ct_CXX"; then
8366 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8367 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8369 { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8374 test -n "$ac_ct_CXX" && break
8377 if test "x$ac_ct_CXX" = x; then
8380 case $cross_compiling:$ac_tool_warned in
8382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8383 whose name does not start with the host triplet. If you think this
8384 configuration is useful to you, please write to autoconf@gnu.org." >&5
8385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8386 whose name does not start with the host triplet. If you think this
8387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8388 ac_tool_warned=yes ;;
8396 # Provide some information about the compiler.
8397 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8398 ac_compiler=`set X $ac_compile; echo $2`
8399 { (ac_try="$ac_compiler --version >&5"
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compiler --version >&5") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }
8409 { (ac_try="$ac_compiler -v >&5"
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_compiler -v >&5") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }
8419 { (ac_try="$ac_compiler -V >&5"
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_compiler -V >&5") 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }
8430 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8431 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compile") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_cxx_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest.$ac_objext; then
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8482 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8483 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8484 GXX=`test $ac_compiler_gnu = yes && echo yes`
8485 ac_test_CXXFLAGS=${CXXFLAGS+set}
8486 ac_save_CXXFLAGS=$CXXFLAGS
8487 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8488 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8489 if test "${ac_cv_prog_cxx_g+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8493 ac_cxx_werror_flag=yes
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_compile") 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_cxx_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest.$ac_objext; then
8528 ac_cv_prog_cxx_g=yes
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8558 grep -v '^ *+' conftest.er1 >conftest.err
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_cxx_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_cxx_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8605 ac_cv_prog_cxx_g=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8624 if test "$ac_test_CXXFLAGS" = set; then
8625 CXXFLAGS=$ac_save_CXXFLAGS
8626 elif test $ac_cv_prog_cxx_g = yes; then
8627 if test "$GXX" = yes; then
8633 if test "$GXX" = yes; then
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8645 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8646 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8647 (test "X$CXX" != "Xg++"))) ; then
8649 ac_cpp='$CXXCPP $CPPFLAGS'
8650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8653 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8654 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8655 if test -z "$CXXCPP"; then
8656 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 # Double quotes because CXXCPP needs to be expanded
8660 for CXXCPP in "$CXX -E" "/lib/cpp"
8663 for ac_cxx_preproc_warn_flag in '' yes
8665 # Use a header file that comes with gcc, so configuring glibc
8666 # with a fresh cross-compiler works.
8667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668 # <limits.h> exists even on freestanding compilers.
8669 # On the NeXT, cc -E runs the code through the compiler's parser,
8670 # not just through cpp. "Syntax error" is here to catch this case.
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8678 # include <limits.h>
8680 # include <assert.h>
8684 if { (ac_try="$ac_cpp conftest.$ac_ext"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } >/dev/null && {
8697 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8698 test ! -s conftest.err
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 # Broken: fails on valid input.
8709 rm -f conftest.err conftest.$ac_ext
8711 # OK, works on sane cases. Now check whether nonexistent headers
8712 # can be detected and how.
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <ac_nonexistent.h>
8721 if { (ac_try="$ac_cpp conftest.$ac_ext"
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8729 grep -v '^ *+' conftest.er1 >conftest.err
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } >/dev/null && {
8734 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8735 test ! -s conftest.err
8737 # Broken: success on invalid input.
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 # Passes both tests.
8748 rm -f conftest.err conftest.$ac_ext
8751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8752 rm -f conftest.err conftest.$ac_ext
8753 if $ac_preproc_ok; then
8758 ac_cv_prog_CXXCPP=$CXXCPP
8761 CXXCPP=$ac_cv_prog_CXXCPP
8763 ac_cv_prog_CXXCPP=$CXXCPP
8765 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8766 echo "${ECHO_T}$CXXCPP" >&6; }
8768 for ac_cxx_preproc_warn_flag in '' yes
8770 # Use a header file that comes with gcc, so configuring glibc
8771 # with a fresh cross-compiler works.
8772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8773 # <limits.h> exists even on freestanding compilers.
8774 # On the NeXT, cc -E runs the code through the compiler's parser,
8775 # not just through cpp. "Syntax error" is here to catch this case.
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8783 # include <limits.h>
8785 # include <assert.h>
8789 if { (ac_try="$ac_cpp conftest.$ac_ext"
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } >/dev/null && {
8802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8803 test ! -s conftest.err
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 # Broken: fails on valid input.
8814 rm -f conftest.err conftest.$ac_ext
8816 # OK, works on sane cases. Now check whether nonexistent headers
8817 # can be detected and how.
8818 cat >conftest.$ac_ext <<_ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824 #include <ac_nonexistent.h>
8826 if { (ac_try="$ac_cpp conftest.$ac_ext"
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } >/dev/null && {
8839 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8840 test ! -s conftest.err
8842 # Broken: success on invalid input.
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 # Passes both tests.
8853 rm -f conftest.err conftest.$ac_ext
8856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8857 rm -f conftest.err conftest.$ac_ext
8858 if $ac_preproc_ok; then
8861 _lt_caught_CXX_error=yes
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871 _lt_caught_CXX_error=yes
8879 # Check whether --enable-shared was given.
8880 if test "${enable_shared+set}" = set; then
8881 enableval=$enable_shared; p=${PACKAGE-default}
8883 yes) enable_shared=yes ;;
8884 no) enable_shared=no ;;
8887 # Look at the argument we got. We use all the common list separators.
8888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889 for pkg in $enableval; do
8891 if test "X$pkg" = "X$p"; then
8908 # Check whether --enable-static was given.
8909 if test "${enable_static+set}" = set; then
8910 enableval=$enable_static; p=${PACKAGE-default}
8912 yes) enable_static=yes ;;
8913 no) enable_static=no ;;
8916 # Look at the argument we got. We use all the common list separators.
8917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8918 for pkg in $enableval; do
8920 if test "X$pkg" = "X$p"; then
8949 # Check whether --with-pic was given.
8950 if test "${with_pic+set}" = set; then
8951 withval=$with_pic; pic_mode="$withval"
8957 test -z "$pic_mode" && pic_mode=default
8965 # Check whether --enable-fast-install was given.
8966 if test "${enable_fast_install+set}" = set; then
8967 enableval=$enable_fast_install; p=${PACKAGE-default}
8969 yes) enable_fast_install=yes ;;
8970 no) enable_fast_install=no ;;
8972 enable_fast_install=no
8973 # Look at the argument we got. We use all the common list separators.
8974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975 for pkg in $enableval; do
8977 if test "X$pkg" = "X$p"; then
8978 enable_fast_install=yes
8985 enable_fast_install=yes
8998 # This can be used to rebuild libtool when needed
8999 LIBTOOL_DEPS="$ltmain"
9001 # Always use our own libtool.
9002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9028 test -z "$LN_S" && LN_S="ln -s"
9043 if test -n "${ZSH_VERSION+set}" ; then
9044 setopt NO_GLOB_SUBST
9047 { echo "$as_me:$LINENO: checking for objdir" >&5
9048 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9049 if test "${lt_cv_objdir+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 rm -f .libs 2>/dev/null
9053 mkdir .libs 2>/dev/null
9054 if test -d .libs; then
9057 # MS-DOS does not allow filenames that begin with a dot.
9060 rmdir .libs 2>/dev/null
9062 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9063 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9064 objdir=$lt_cv_objdir
9070 cat >>confdefs.h <<_ACEOF
9071 #define LT_OBJDIR "$lt_cv_objdir/"
9092 # AIX sometimes has problems with the GCC collect2 program. For some
9093 # reason, if we set the COLLECT_NAMES environment variable, the problems
9094 # vanish in a puff of smoke.
9095 if test "X${COLLECT_NAMES+set}" != Xset; then
9097 export COLLECT_NAMES
9102 # Sed substitution that helps us do robust quoting. It backslashifies
9103 # metacharacters that are still active within double-quoted strings.
9104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9106 # Same as above, but do not quote variable references.
9107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9109 # Sed substitution to delay expansion of an escaped shell variable in a
9110 # double_quote_subst'ed string.
9111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9113 # Sed substitution to delay expansion of an escaped single quote.
9114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9116 # Sed substitution to avoid accidental globbing in evaled expressions
9117 no_glob_subst='s/\*/\\\*/g'
9121 can_build_shared=yes
9123 # All known linkers require a `.a' archive for static linking (except MSVC,
9124 # which needs '.lib').
9127 with_gnu_ld="$lt_cv_prog_gnu_ld"
9130 old_CFLAGS="$CFLAGS"
9132 # Set sane defaults for various variables
9133 test -z "$CC" && CC=cc
9134 test -z "$LTCC" && LTCC=$CC
9135 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9136 test -z "$LD" && LD=ld
9137 test -z "$ac_objext" && ac_objext=o
9139 for cc_temp in $compiler""; do
9141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9147 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9150 # Only perform the check for file, if the check method requires it
9151 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9152 case $deplibs_check_method in
9154 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9155 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9156 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9157 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9165 lt_save_MAGIC_CMD="$MAGIC_CMD"
9166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9168 for ac_dir in $ac_dummy; do
9170 test -z "$ac_dir" && ac_dir=.
9171 if test -f $ac_dir/${ac_tool_prefix}file; then
9172 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9173 if test -n "$file_magic_test_file"; then
9174 case $deplibs_check_method in
9176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9179 $EGREP "$file_magic_regex" > /dev/null; then
9184 *** Warning: the command libtool uses to detect shared libraries,
9185 *** $file_magic_cmd, produces output that libtool cannot recognize.
9186 *** The result is that libtool may fail to recognize shared libraries
9187 *** as such. This will affect the creation of libtool libraries that
9188 *** depend on shared libraries, but programs linked with such libtool
9189 *** libraries will work regardless of this problem. Nevertheless, you
9190 *** may want to report the problem to your system manager and/or to
9191 *** bug-libtool@gnu.org
9201 MAGIC_CMD="$lt_save_MAGIC_CMD"
9206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9207 if test -n "$MAGIC_CMD"; then
9208 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9209 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9211 { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9219 if test -z "$lt_cv_path_MAGIC_CMD"; then
9220 if test -n "$ac_tool_prefix"; then
9221 { echo "$as_me:$LINENO: checking for file" >&5
9222 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9231 lt_save_MAGIC_CMD="$MAGIC_CMD"
9232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9234 for ac_dir in $ac_dummy; do
9236 test -z "$ac_dir" && ac_dir=.
9237 if test -f $ac_dir/file; then
9238 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9239 if test -n "$file_magic_test_file"; then
9240 case $deplibs_check_method in
9242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9245 $EGREP "$file_magic_regex" > /dev/null; then
9250 *** Warning: the command libtool uses to detect shared libraries,
9251 *** $file_magic_cmd, produces output that libtool cannot recognize.
9252 *** The result is that libtool may fail to recognize shared libraries
9253 *** as such. This will affect the creation of libtool libraries that
9254 *** depend on shared libraries, but programs linked with such libtool
9255 *** libraries will work regardless of this problem. Nevertheless, you
9256 *** may want to report the problem to your system manager and/or to
9257 *** bug-libtool@gnu.org
9267 MAGIC_CMD="$lt_save_MAGIC_CMD"
9272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9273 if test -n "$MAGIC_CMD"; then
9274 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9275 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9277 { echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6; }
9291 # Use C for the default configuration in the libtool script
9295 ac_cpp='$CPP $CPPFLAGS'
9296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9301 # Source file extension for C test sources.
9304 # Object file extension for compiled C test sources.
9308 # Code to be used in simple compile tests
9309 lt_simple_compile_test_code="int some_variable = 0;"
9311 # Code to be used in simple link tests
9312 lt_simple_link_test_code='int main(){return(0);}'
9320 # If no C compiler was specified, use CC.
9323 # If no C compiler flags were specified, use CFLAGS.
9324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9326 # Allow CC to be a program name with arguments.
9329 # Save the default compiler, since it gets overwritten when the other
9330 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9331 compiler_DEFAULT=$CC
9333 # save warnings/boilerplate of simple test code
9334 ac_outfile=conftest.$ac_objext
9335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9337 _lt_compiler_boilerplate=`cat conftest.err`
9340 ac_outfile=conftest.$ac_objext
9341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9343 _lt_linker_boilerplate=`cat conftest.err`
9348 ## There is no encapsulation within the following macros, do not change
9349 ## the running order or otherwise move them around unless you know exactly
9350 ## what you are doing...
9351 if test -n "$compiler"; then
9353 lt_prog_compiler_no_builtin_flag=
9355 if test "$GCC" = yes; then
9356 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9358 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9359 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9360 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 lt_cv_prog_compiler_rtti_exceptions=no
9364 ac_outfile=conftest.$ac_objext
9365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366 lt_compiler_flag="-fno-rtti -fno-exceptions"
9367 # Insert the option either (1) after the last *FLAGS variable, or
9368 # (2) before a word containing "conftest.", or (3) at the end.
9369 # Note that $ac_compile itself does not contain backslashes and begins
9370 # with a dollar sign (not a hyphen), so the echo should work correctly.
9371 # The option is referenced via a variable to avoid confusing sed.
9372 lt_compile=`echo "$ac_compile" | $SED \
9373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375 -e 's:$: $lt_compiler_flag:'`
9376 (eval echo "\"\$as_me:9376: $lt_compile\"" >&5)
9377 (eval "$lt_compile" 2>conftest.err)
9379 cat conftest.err >&5
9380 echo "$as_me:9380: \$? = $ac_status" >&5
9381 if (exit $ac_status) && test -s "$ac_outfile"; then
9382 # The compiler can only warn and ignore the option if not recognized
9383 # So say no if there are warnings other than the usual output.
9384 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9387 lt_cv_prog_compiler_rtti_exceptions=yes
9393 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9394 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9396 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9397 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9409 lt_prog_compiler_wl=
9410 lt_prog_compiler_pic=
9411 lt_prog_compiler_static=
9413 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9414 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9416 if test "$GCC" = yes; then
9417 lt_prog_compiler_wl='-Wl,'
9418 lt_prog_compiler_static='-static'
9422 # All AIX code is PIC.
9423 if test "$host_cpu" = ia64; then
9424 # AIX 5 now supports IA64 processor
9425 lt_prog_compiler_static='-Bstatic'
9432 # see comment about AmigaOS4 .so support
9433 lt_prog_compiler_pic='-fPIC'
9436 # FIXME: we need at least 68020 code to build shared libraries, but
9437 # adding the `-m68020' flag to GCC prevents building anything better,
9439 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9445 # PIC is the default for these OSes.
9448 mingw* | cygwin* | pw32* | os2* | cegcc*)
9449 # This hack is so that the source file can tell whether it is being
9450 # built for inclusion in a dll (and should export symbols for example).
9451 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9452 # (--disable-auto-import) libraries
9453 lt_prog_compiler_pic='-DDLL_EXPORT'
9456 darwin* | rhapsody*)
9457 # PIC is the default on this platform
9458 # Common symbols not allowed in MH_DYLIB files
9459 lt_prog_compiler_pic='-fno-common'
9463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9465 # sets the default TLS model and affects inlining.
9471 lt_prog_compiler_pic='-fPIC'
9477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9478 # Instead, we relocate shared libraries at runtime.
9482 # Just because we use GCC doesn't mean we suddenly get shared libraries
9483 # on systems that don't support them.
9484 lt_prog_compiler_can_build_shared=no
9489 # QNX uses GNU C++, but need to define -shared option too, otherwise
9491 lt_prog_compiler_pic='-fPIC -shared'
9495 if test -d /usr/nec; then
9496 lt_prog_compiler_pic=-Kconform_pic
9501 lt_prog_compiler_pic='-fPIC'
9505 # PORTME Check for flag to pass linker flags through the system compiler.
9508 lt_prog_compiler_wl='-Wl,'
9509 if test "$host_cpu" = ia64; then
9510 # AIX 5 now supports IA64 processor
9511 lt_prog_compiler_static='-Bstatic'
9513 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9517 mingw* | cygwin* | pw32* | os2* | cegcc*)
9518 # This hack is so that the source file can tell whether it is being
9519 # built for inclusion in a dll (and should export symbols for example).
9520 lt_prog_compiler_pic='-DDLL_EXPORT'
9523 hpux9* | hpux10* | hpux11*)
9524 lt_prog_compiler_wl='-Wl,'
9525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9532 lt_prog_compiler_pic='+Z'
9535 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9536 lt_prog_compiler_static='${wl}-a ${wl}archive'
9539 irix5* | irix6* | nonstopux*)
9540 lt_prog_compiler_wl='-Wl,'
9541 # PIC (with -KPIC) is the default.
9542 lt_prog_compiler_static='-non_shared'
9545 linux* | k*bsd*-gnu)
9546 case $cc_basename in
9547 # old Intel for x86_64 which still supported -KPIC.
9549 lt_prog_compiler_wl='-Wl,'
9550 lt_prog_compiler_pic='-KPIC'
9551 lt_prog_compiler_static='-static'
9553 # icc used to be incompatible with GCC.
9554 # ICC 10 doesn't accept -KPIC any more.
9556 lt_prog_compiler_wl='-Wl,'
9557 lt_prog_compiler_pic='-fPIC'
9558 lt_prog_compiler_static='-static'
9560 # Lahey Fortran 8.1.
9562 lt_prog_compiler_wl='-Wl,'
9563 lt_prog_compiler_pic='--shared'
9564 lt_prog_compiler_static='--static'
9566 pgcc* | pgf77* | pgf90* | pgf95*)
9567 # Portland Group compilers (*not* the Pentium gcc compiler,
9568 # which looks to be a dead project)
9569 lt_prog_compiler_wl='-Wl,'
9570 lt_prog_compiler_pic='-fpic'
9571 lt_prog_compiler_static='-Bstatic'
9574 lt_prog_compiler_wl='-Wl,'
9575 # All Alpha code is PIC.
9576 lt_prog_compiler_static='-non_shared'
9579 # IBM XL C 8.0/Fortran 10.1 on PPC
9580 lt_prog_compiler_wl='-Wl,'
9581 lt_prog_compiler_pic='-qpic'
9582 lt_prog_compiler_static='-qstaticlink'
9585 case `$CC -V 2>&1 | sed 5q` in
9588 lt_prog_compiler_pic='-KPIC'
9589 lt_prog_compiler_static='-Bstatic'
9590 lt_prog_compiler_wl='-Wl,'
9593 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9594 lt_prog_compiler_pic='-KPIC'
9595 lt_prog_compiler_static='-Bstatic'
9596 lt_prog_compiler_wl=''
9604 lt_prog_compiler_pic='-KPIC'
9605 lt_prog_compiler_static='-Bstatic'
9609 # QNX uses GNU C++, but need to define -shared option too, otherwise
9611 lt_prog_compiler_pic='-fPIC -shared'
9614 osf3* | osf4* | osf5*)
9615 lt_prog_compiler_wl='-Wl,'
9616 # All OSF/1 code is PIC.
9617 lt_prog_compiler_static='-non_shared'
9621 lt_prog_compiler_static='-non_shared'
9625 lt_prog_compiler_pic='-KPIC'
9626 lt_prog_compiler_static='-Bstatic'
9627 case $cc_basename in
9629 lt_prog_compiler_wl='-Qoption ld ';;
9631 lt_prog_compiler_wl='-Wl,';;
9636 lt_prog_compiler_wl='-Qoption ld '
9637 lt_prog_compiler_pic='-PIC'
9638 lt_prog_compiler_static='-Bstatic'
9641 sysv4 | sysv4.2uw2* | sysv4.3*)
9642 lt_prog_compiler_wl='-Wl,'
9643 lt_prog_compiler_pic='-KPIC'
9644 lt_prog_compiler_static='-Bstatic'
9648 if test -d /usr/nec ;then
9649 lt_prog_compiler_pic='-Kconform_pic'
9650 lt_prog_compiler_static='-Bstatic'
9654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9655 lt_prog_compiler_wl='-Wl,'
9656 lt_prog_compiler_pic='-KPIC'
9657 lt_prog_compiler_static='-Bstatic'
9661 lt_prog_compiler_wl='-Wl,'
9662 lt_prog_compiler_can_build_shared=no
9666 lt_prog_compiler_pic='-pic'
9667 lt_prog_compiler_static='-Bstatic'
9671 lt_prog_compiler_can_build_shared=no
9677 # For platforms which do not support PIC, -DPIC is meaningless:
9679 lt_prog_compiler_pic=
9682 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9694 # Check to make sure the PIC flag actually works.
9696 if test -n "$lt_prog_compiler_pic"; then
9697 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9699 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 lt_cv_prog_compiler_pic_works=no
9703 ac_outfile=conftest.$ac_objext
9704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9706 # Insert the option either (1) after the last *FLAGS variable, or
9707 # (2) before a word containing "conftest.", or (3) at the end.
9708 # Note that $ac_compile itself does not contain backslashes and begins
9709 # with a dollar sign (not a hyphen), so the echo should work correctly.
9710 # The option is referenced via a variable to avoid confusing sed.
9711 lt_compile=`echo "$ac_compile" | $SED \
9712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714 -e 's:$: $lt_compiler_flag:'`
9715 (eval echo "\"\$as_me:9715: $lt_compile\"" >&5)
9716 (eval "$lt_compile" 2>conftest.err)
9718 cat conftest.err >&5
9719 echo "$as_me:9719: \$? = $ac_status" >&5
9720 if (exit $ac_status) && test -s "$ac_outfile"; then
9721 # The compiler can only warn and ignore the option if not recognized
9722 # So say no if there are warnings other than the usual output.
9723 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9726 lt_cv_prog_compiler_pic_works=yes
9732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9733 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9735 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9736 case $lt_prog_compiler_pic in
9738 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9741 lt_prog_compiler_pic=
9742 lt_prog_compiler_can_build_shared=no
9753 # Check to make sure the static flag actually works.
9755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9758 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 lt_cv_prog_compiler_static_works=no
9762 save_LDFLAGS="$LDFLAGS"
9763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9764 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9766 # The linker can only warn and ignore the option if not recognized
9767 # So say no if there are warnings
9768 if test -s conftest.err; then
9769 # Append any errors to the config.log.
9770 cat conftest.err 1>&5
9771 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9773 if diff conftest.exp conftest.er2 >/dev/null; then
9774 lt_cv_prog_compiler_static_works=yes
9777 lt_cv_prog_compiler_static_works=yes
9781 LDFLAGS="$save_LDFLAGS"
9784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9787 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9790 lt_prog_compiler_static=
9799 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9800 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9801 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 lt_cv_prog_compiler_c_o=no
9805 $RM -r conftest 2>/dev/null
9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9811 lt_compiler_flag="-o out/conftest2.$ac_objext"
9812 # Insert the option either (1) after the last *FLAGS variable, or
9813 # (2) before a word containing "conftest.", or (3) at the end.
9814 # Note that $ac_compile itself does not contain backslashes and begins
9815 # with a dollar sign (not a hyphen), so the echo should work correctly.
9816 lt_compile=`echo "$ac_compile" | $SED \
9817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9819 -e 's:$: $lt_compiler_flag:'`
9820 (eval echo "\"\$as_me:9820: $lt_compile\"" >&5)
9821 (eval "$lt_compile" 2>out/conftest.err)
9823 cat out/conftest.err >&5
9824 echo "$as_me:9824: \$? = $ac_status" >&5
9825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9827 # The compiler can only warn and ignore the option if not recognized
9828 # So say no if there are warnings
9829 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9832 lt_cv_prog_compiler_c_o=yes
9837 # SGI C++ compiler will create directory out/ii_files/ for
9838 # template instantiation
9839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9840 $RM out/* && rmdir out
9846 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9854 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9856 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 lt_cv_prog_compiler_c_o=no
9860 $RM -r conftest 2>/dev/null
9864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9866 lt_compiler_flag="-o out/conftest2.$ac_objext"
9867 # Insert the option either (1) after the last *FLAGS variable, or
9868 # (2) before a word containing "conftest.", or (3) at the end.
9869 # Note that $ac_compile itself does not contain backslashes and begins
9870 # with a dollar sign (not a hyphen), so the echo should work correctly.
9871 lt_compile=`echo "$ac_compile" | $SED \
9872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9874 -e 's:$: $lt_compiler_flag:'`
9875 (eval echo "\"\$as_me:9875: $lt_compile\"" >&5)
9876 (eval "$lt_compile" 2>out/conftest.err)
9878 cat out/conftest.err >&5
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9882 # The compiler can only warn and ignore the option if not recognized
9883 # So say no if there are warnings
9884 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler_c_o=yes
9892 # SGI C++ compiler will create directory out/ii_files/ for
9893 # template instantiation
9894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9895 $RM out/* && rmdir out
9901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9907 hard_links="nottested"
9908 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9909 # do not overwrite the value of need_locks provided by the user
9910 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9916 ln conftest.a conftest.b 2>&5 || hard_links=no
9917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9918 { echo "$as_me:$LINENO: result: $hard_links" >&5
9919 echo "${ECHO_T}$hard_links" >&6; }
9920 if test "$hard_links" = no; then
9921 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9934 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9938 allow_undefined_flag=
9939 always_export_symbols=no
9941 archive_expsym_cmds=
9942 compiler_needs_object=no
9943 enable_shared_with_static_runtimes=no
9944 export_dynamic_flag_spec=
9945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9946 hardcode_automatic=no
9948 hardcode_direct_absolute=no
9949 hardcode_libdir_flag_spec=
9950 hardcode_libdir_flag_spec_ld=
9951 hardcode_libdir_separator=
9953 hardcode_shlibpath_var=unsupported
9955 link_all_deplibs=unknown
9958 old_archive_from_new_cmds=
9959 old_archive_from_expsyms_cmds=
9960 thread_safe_flag_spec=
9961 whole_archive_flag_spec=
9962 # include_expsyms should be a list of space-separated symbols to be *always*
9963 # included in the symbol list
9965 # exclude_expsyms can be an extended regexp of symbols to exclude
9966 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9967 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9968 # as well as any symbol that contains `d'.
9969 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9971 # platforms (ab)use it in PIC code, but their linkers get confused if
9972 # the symbol is explicitly referenced. Since portable code cannot
9973 # rely on this symbol name, it's probably fine to never include it in
9974 # preloaded symbol tables.
9975 # Exclude shared library initialization/finalization symbols.
9976 extract_expsyms_cmds=
9979 cygwin* | mingw* | pw32* | cegcc*)
9980 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9981 # When not using gcc, we currently assume that we are using
9982 # Microsoft Visual C++.
9983 if test "$GCC" != yes; then
9988 # we just hope/assume this is gcc and not c89 (= MSVC++)
9997 if test "$with_gnu_ld" = yes; then
9998 # If archive_cmds runs LD, not CC, wlarc should be empty
10001 # Set some defaults for GNU ld with shared library support. These
10002 # are reset later if shared libraries are not supported. Putting them
10003 # here allows them to be overridden if necessary.
10004 runpath_var=LD_RUN_PATH
10005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006 export_dynamic_flag_spec='${wl}--export-dynamic'
10007 # ancient GNU ld didn't support --whole-archive et. al.
10008 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10011 whole_archive_flag_spec=
10013 supports_anon_versioning=no
10014 case `$LD -v 2>&1` in
10015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10018 *\ 2.11.*) ;; # other 2.11 versions
10019 *) supports_anon_versioning=yes ;;
10022 # See if GNU ld supports shared libraries.
10025 # On AIX/PPC, the GNU linker is very broken
10026 if test "$host_cpu" != ia64; then
10030 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10031 *** to be unable to reliably create shared libraries on AIX.
10032 *** Therefore, libtool is disabling shared libraries support. If you
10033 *** really care for shared libraries, you may want to modify your PATH
10034 *** so that a non-GNU linker is found, and then restart.
10043 # see comment about AmigaOS4 .so support
10044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045 archive_expsym_cmds=''
10048 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_minus_L=yes
10056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057 allow_undefined_flag=unsupported
10058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10059 # support --undefined. This deserves some investigation. FIXME
10060 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066 cygwin* | mingw* | pw32* | cegcc*)
10067 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068 # as there is no search path for DLLs.
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 allow_undefined_flag=unsupported
10071 always_export_symbols=no
10072 enable_shared_with_static_runtimes=yes
10073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10075 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10077 # If the export-symbols file already is a .def file (1st line
10078 # is EXPORTS), use it as is; otherwise, prepend...
10079 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10080 cp $export_symbols $output_objdir/$soname.def;
10082 echo EXPORTS > $output_objdir/$soname.def;
10083 cat $export_symbols >> $output_objdir/$soname.def;
10085 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10093 hardcode_shlibpath_var=no
10094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10095 export_dynamic_flag_spec='${wl}-E'
10096 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10097 # Instead, shared libraries are loaded at an image base (0x10000000 by
10098 # default) and relocated if they conflict, which is a slow very memory
10099 # consuming and fragmenting process. To avoid this, we pick a random,
10100 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10101 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10103 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10106 gnu* | linux* | tpf* | k*bsd*-gnu)
10108 if test "$host_os" = linux-dietlibc; then
10109 case $cc_basename in
10110 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10113 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10114 && test "$tmp_diet" = no
10117 tmp_sharedflag='-shared'
10118 case $cc_basename,$host_cpu in
10119 pgcc*) # Portland Group C compiler
10120 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10121 tmp_addflag=' $pic_flag'
10123 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10124 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10125 tmp_addflag=' $pic_flag -Mnomain' ;;
10126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10127 tmp_addflag=' -i_dynamic' ;;
10128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10129 tmp_addflag=' -i_dynamic -nofor_main' ;;
10130 ifc* | ifort*) # Intel Fortran compiler
10131 tmp_addflag=' -nofor_main' ;;
10132 lf95*) # Lahey Fortran 8.1
10133 whole_archive_flag_spec=
10134 tmp_sharedflag='--shared' ;;
10135 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10136 tmp_sharedflag='-qmkshrobj'
10139 case `$CC -V 2>&1 | sed 5q` in
10140 *Sun\ C*) # Sun C 5.9
10141 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10142 compiler_needs_object=yes
10143 tmp_sharedflag='-G' ;;
10144 *Sun\ F*) # Sun Fortran 8.3
10145 tmp_sharedflag='-G' ;;
10147 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149 if test "x$supports_anon_versioning" = xyes; then
10150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10152 echo "local: *; };" >> $output_objdir/$libname.ver~
10153 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10156 case $cc_basename in
10158 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10159 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10160 hardcode_libdir_flag_spec=
10161 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10162 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10163 if test "x$supports_anon_versioning" = xyes; then
10164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10166 echo "local: *; };" >> $output_objdir/$libname.ver~
10167 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10178 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10187 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10192 *** create shared libraries on Solaris systems. Therefore, libtool
10193 *** is disabling shared libraries support. We urge you to upgrade GNU
10194 *** binutils to release 2.9.1 or newer. Another option is to modify
10195 *** your PATH or compiler configuration so that the native linker is
10196 *** used, and then restart.
10199 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10208 case `$LD -v 2>&1` in
10209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10214 *** reliably create shared libraries on SCO systems. Therefore, libtool
10215 *** is disabling shared libraries support. We urge you to upgrade GNU
10216 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10217 *** your PATH or compiler configuration so that the native linker is
10218 *** used, and then restart.
10223 # For security reasons, it is highly recommended that you always
10224 # use absolute paths for naming shared libraries, and exclude the
10225 # DT_RUNPATH tag from executables and libraries. But doing so
10226 # requires that you compile everything twice, which is a pain.
10227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10239 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10241 hardcode_direct=yes
10242 hardcode_shlibpath_var=no
10246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10255 if test "$ld_shlibs" = no; then
10257 hardcode_libdir_flag_spec=
10258 export_dynamic_flag_spec=
10259 whole_archive_flag_spec=
10262 # PORTME fill in a description of your system's linker (not GNU ld)
10265 allow_undefined_flag=unsupported
10266 always_export_symbols=yes
10267 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10268 # Note: this linker hardcodes the directories in LIBPATH if there
10269 # are no directories specified by -L.
10270 hardcode_minus_L=yes
10271 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10272 # Neither direct hardcoding nor static linking is supported with a
10274 hardcode_direct=unsupported
10279 if test "$host_cpu" = ia64; then
10280 # On IA64, the linker does run time linking by default, so we don't
10281 # have to do anything special.
10282 aix_use_runtimelinking=no
10283 exp_sym_flag='-Bexport'
10286 # If we're using GNU nm, then we don't want the "-C" option.
10287 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10288 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10289 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10291 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10293 aix_use_runtimelinking=no
10295 # Test if we are trying to use run time linking or normal
10296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10297 # need to do runtime linking.
10298 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10299 for ld_flag in $LDFLAGS; do
10300 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10301 aix_use_runtimelinking=yes
10308 exp_sym_flag='-bexport'
10309 no_entry_flag='-bnoentry'
10312 # When large executables or shared objects are built, AIX ld can
10313 # have problems creating the table of contents. If linking a library
10314 # or program results in "error TOC overflow" add -mminimal-toc to
10315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10319 hardcode_direct=yes
10320 hardcode_direct_absolute=yes
10321 hardcode_libdir_separator=':'
10322 link_all_deplibs=yes
10323 file_list_spec='${wl}-f,'
10325 if test "$GCC" = yes; then
10326 case $host_os in aix4.[012]|aix4.[012].*)
10327 # We only want to do this on AIX 4.2 and lower, the check
10328 # below for broken collect2 doesn't work under 4.3+
10329 collect2name=`${CC} -print-prog-name=collect2`
10330 if test -f "$collect2name" &&
10331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10333 # We have reworked collect2
10336 # We have old collect2
10337 hardcode_direct=unsupported
10338 # It fails to find uninstalled libraries when the uninstalled
10339 # path is not listed in the libpath. Setting hardcode_minus_L
10340 # to unsupported forces relinking
10341 hardcode_minus_L=yes
10342 hardcode_libdir_flag_spec='-L$libdir'
10343 hardcode_libdir_separator=
10347 shared_flag='-shared'
10348 if test "$aix_use_runtimelinking" = yes; then
10349 shared_flag="$shared_flag "'${wl}-G'
10353 if test "$host_cpu" = ia64; then
10354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355 # chokes on -Wl,-G. The following line is correct:
10358 if test "$aix_use_runtimelinking" = yes; then
10359 shared_flag='${wl}-G'
10361 shared_flag='${wl}-bM:SRE'
10366 export_dynamic_flag_spec='${wl}-bexpall'
10367 # It seems that -bexpall does not export symbols beginning with
10368 # underscore (_), so it is better to generate a list of symbols to export.
10369 always_export_symbols=yes
10370 if test "$aix_use_runtimelinking" = yes; then
10371 # Warning - without using the other runtime loading flags (-brtl),
10372 # -berok will link without error, but may produce a broken library.
10373 allow_undefined_flag='-berok'
10374 # Determine the default libpath from the value encoded in an
10375 # empty executable.
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest$ac_exeext &&
10408 $as_test_x conftest$ac_exeext; then
10410 lt_aix_libpath_sed='
10411 /Import File Strings/,/^$/ {
10417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10418 # Check for a 64-bit object if we didn't find anything.
10419 if test -z "$aix_libpath"; then
10420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10430 conftest$ac_exeext conftest.$ac_ext
10431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10433 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10434 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10436 if test "$host_cpu" = ia64; then
10437 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10438 allow_undefined_flag="-z nodefs"
10439 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10441 # Determine the default libpath from the value encoded in an
10442 # empty executable.
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_link") 2>conftest.er1
10467 grep -v '^ *+' conftest.er1 >conftest.err
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && {
10472 test -z "$ac_c_werror_flag" ||
10473 test ! -s conftest.err
10474 } && test -s conftest$ac_exeext &&
10475 $as_test_x conftest$ac_exeext; then
10477 lt_aix_libpath_sed='
10478 /Import File Strings/,/^$/ {
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 # Check for a 64-bit object if we didn't find anything.
10486 if test -z "$aix_libpath"; then
10487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497 conftest$ac_exeext conftest.$ac_ext
10498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10501 # Warning - without using the other run time loading flags,
10502 # -berok will link without error, but may produce a broken library.
10503 no_undefined_flag=' ${wl}-bernotok'
10504 allow_undefined_flag=' ${wl}-berok'
10505 # Exported symbols can be pulled into shared objects from archives
10506 whole_archive_flag_spec='$convenience'
10507 archive_cmds_need_lc=yes
10508 # This is similar to how AIX traditionally builds its shared libraries.
10509 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10517 # see comment about AmigaOS4 .so support
10518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10519 archive_expsym_cmds=''
10522 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10523 hardcode_libdir_flag_spec='-L$libdir'
10524 hardcode_minus_L=yes
10530 export_dynamic_flag_spec=-rdynamic
10533 cygwin* | mingw* | pw32* | cegcc*)
10534 # When not using gcc, we currently assume that we are using
10535 # Microsoft Visual C++.
10536 # hardcode_libdir_flag_spec is actually meaningless, as there is
10537 # no search path for DLLs.
10538 hardcode_libdir_flag_spec=' '
10539 allow_undefined_flag=unsupported
10540 # Tell ltmain to make .lib files, not .a files.
10542 # Tell ltmain to make .dll files, not .so files.
10544 # FIXME: Setting linknames here is a bad hack.
10545 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10546 # The linker will automatically build a .lib file if we build a DLL.
10547 old_archive_from_new_cmds='true'
10548 # FIXME: Should let the user specify the lib program.
10549 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10550 fix_srcfile_path='`cygpath -w "$srcfile"`'
10551 enable_shared_with_static_runtimes=yes
10554 darwin* | rhapsody*)
10557 archive_cmds_need_lc=no
10559 hardcode_automatic=yes
10560 hardcode_shlibpath_var=unsupported
10561 whole_archive_flag_spec=''
10562 link_all_deplibs=yes
10563 allow_undefined_flag="$_lt_dar_allow_undefined"
10564 case $cc_basename in
10565 ifort*) _lt_dar_can_shared=yes ;;
10566 *) _lt_dar_can_shared=$GCC ;;
10568 if test "$_lt_dar_can_shared" = "yes"; then
10569 output_verbose_link_cmd=echo
10570 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10571 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10572 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10573 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_libdir_flag_spec='-L$libdir'
10584 hardcode_shlibpath_var=no
10591 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10592 # support. Future versions do this automatically, but an explicit c++rt0.o
10593 # does not break anything, and helps significantly (at the cost of a little
10596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10597 hardcode_libdir_flag_spec='-R$libdir'
10598 hardcode_direct=yes
10599 hardcode_shlibpath_var=no
10602 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_direct=yes
10606 hardcode_minus_L=yes
10607 hardcode_shlibpath_var=no
10610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10611 freebsd* | dragonfly*)
10612 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10613 hardcode_libdir_flag_spec='-R$libdir'
10614 hardcode_direct=yes
10615 hardcode_shlibpath_var=no
10619 if test "$GCC" = yes; then
10620 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10622 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10624 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10625 hardcode_libdir_separator=:
10626 hardcode_direct=yes
10628 # hardcode_minus_L: Not really in the search PATH,
10629 # but as the default location of the library.
10630 hardcode_minus_L=yes
10631 export_dynamic_flag_spec='${wl}-E'
10635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10640 if test "$with_gnu_ld" = no; then
10641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10642 hardcode_libdir_flag_spec_ld='+b $libdir'
10643 hardcode_libdir_separator=:
10644 hardcode_direct=yes
10645 hardcode_direct_absolute=yes
10646 export_dynamic_flag_spec='${wl}-E'
10647 # hardcode_minus_L: Not really in the search PATH,
10648 # but as the default location of the library.
10649 hardcode_minus_L=yes
10654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10657 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10669 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10679 if test "$with_gnu_ld" = no; then
10680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10681 hardcode_libdir_separator=:
10686 hardcode_shlibpath_var=no
10689 hardcode_direct=yes
10690 hardcode_direct_absolute=yes
10691 export_dynamic_flag_spec='${wl}-E'
10693 # hardcode_minus_L: Not really in the search PATH,
10694 # but as the default location of the library.
10695 hardcode_minus_L=yes
10701 irix5* | irix6* | nonstopux*)
10702 if test "$GCC" = yes; then
10703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10704 # Try to use the -exported_symbol ld option, if it does not
10705 # work, assume that -exports_file does not work either and
10706 # implicitly export all symbols.
10707 save_LDFLAGS="$LDFLAGS"
10708 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10709 cat >conftest.$ac_ext <<_ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext &&
10729 $as_test_x conftest$ac_exeext; then
10730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LDFLAGS="$save_LDFLAGS"
10743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10746 archive_cmds_need_lc='no'
10747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10748 hardcode_libdir_separator=:
10750 link_all_deplibs=yes
10754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10759 hardcode_libdir_flag_spec='-R$libdir'
10760 hardcode_direct=yes
10761 hardcode_shlibpath_var=no
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_direct=yes
10767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10768 hardcode_libdir_separator=:
10769 hardcode_shlibpath_var=no
10776 if test -f /usr/libexec/ld.so; then
10777 hardcode_direct=yes
10778 hardcode_shlibpath_var=no
10779 hardcode_direct_absolute=yes
10780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10784 export_dynamic_flag_spec='${wl}-E'
10787 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789 hardcode_libdir_flag_spec='-R$libdir'
10792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10793 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10803 hardcode_libdir_flag_spec='-L$libdir'
10804 hardcode_minus_L=yes
10805 allow_undefined_flag=unsupported
10806 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10807 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10811 if test "$GCC" = yes; then
10812 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10813 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10815 allow_undefined_flag=' -expect_unresolved \*'
10816 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10818 archive_cmds_need_lc='no'
10819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820 hardcode_libdir_separator=:
10823 osf4* | osf5*) # as osf3* with the addition of -msym flag
10824 if test "$GCC" = yes; then
10825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10826 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10829 allow_undefined_flag=' -expect_unresolved \*'
10830 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10831 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10832 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10834 # Both c and cxx compiler support -rpath directly
10835 hardcode_libdir_flag_spec='-rpath $libdir'
10837 archive_cmds_need_lc='no'
10838 hardcode_libdir_separator=:
10842 no_undefined_flag=' -z defs'
10843 if test "$GCC" = yes; then
10845 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10847 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10849 case `$CC -V 2>&1` in
10852 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10858 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10860 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10864 hardcode_libdir_flag_spec='-R$libdir'
10865 hardcode_shlibpath_var=no
10867 solaris2.[0-5] | solaris2.[0-5].*) ;;
10869 # The compiler driver will combine and reorder linker options,
10870 # but understands `-z linker_flag'. GCC discards it without `$wl',
10871 # but is careful enough not to reorder.
10872 # Supported since Solaris 2.6 (maybe 2.5.1?)
10873 if test "$GCC" = yes; then
10874 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10876 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10880 link_all_deplibs=yes
10884 if test "x$host_vendor" = xsequent; then
10885 # Use $CC to link under sequent, because it throws in some extra .o
10886 # files that make .init and .fini sections work.
10887 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10889 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10891 hardcode_libdir_flag_spec='-L$libdir'
10892 hardcode_direct=yes
10893 hardcode_minus_L=yes
10894 hardcode_shlibpath_var=no
10898 case $host_vendor in
10900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_direct=yes # is this really true???
10904 ## LD is ld it makes a PLAMLIB
10905 ## CC just makes a GrossModule.
10906 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10907 reload_cmds='$CC -r -o $output$reload_objs'
10911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10915 runpath_var='LD_RUN_PATH'
10916 hardcode_shlibpath_var=no
10920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10921 hardcode_shlibpath_var=no
10922 export_dynamic_flag_spec='-Bexport'
10926 if test -d /usr/nec; then
10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_shlibpath_var=no
10929 runpath_var=LD_RUN_PATH
10930 hardcode_runpath_var=yes
10935 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10936 no_undefined_flag='${wl}-z,text'
10937 archive_cmds_need_lc=no
10938 hardcode_shlibpath_var=no
10939 runpath_var='LD_RUN_PATH'
10941 if test "$GCC" = yes; then
10942 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 sysv5* | sco3.2v5* | sco5v6*)
10951 # Note: We can NOT use -z defs as we might desire, because we do not
10952 # link with -lc, and that would cause any symbols used from libc to
10953 # always be unresolved, which means just about no library would
10954 # ever link correctly. If we're not using GNU ld we use -z text
10955 # though, which does catch some bad symbols but isn't as heavy-handed
10957 no_undefined_flag='${wl}-z,text'
10958 allow_undefined_flag='${wl}-z,nodefs'
10959 archive_cmds_need_lc=no
10960 hardcode_shlibpath_var=no
10961 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10962 hardcode_libdir_separator=':'
10963 link_all_deplibs=yes
10964 export_dynamic_flag_spec='${wl}-Bexport'
10965 runpath_var='LD_RUN_PATH'
10967 if test "$GCC" = yes; then
10968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978 hardcode_libdir_flag_spec='-L$libdir'
10979 hardcode_shlibpath_var=no
10987 if test x$host_vendor = xsni; then
10989 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10990 export_dynamic_flag_spec='${wl}-Blargedynsym'
10996 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10997 echo "${ECHO_T}$ld_shlibs" >&6; }
10998 test "$ld_shlibs" = no && can_build_shared=no
11000 with_gnu_ld=$with_gnu_ld
11017 # Do we need to explicitly link libc?
11019 case "x$archive_cmds_need_lc" in
11021 # Assume -lc should be added
11022 archive_cmds_need_lc=yes
11024 if test "$enable_shared" = yes && test "$GCC" = yes; then
11025 case $archive_cmds in
11027 # FIXME: we may have to deal with multi-command sequences.
11030 # Test whether the compiler implicitly links with -lc since on some
11031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11032 # to ld, don't add -lc before -lgcc.
11033 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039 (eval $ac_compile) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } 2>conftest.err; then
11045 libobjs=conftest.$ac_objext
11047 wl=$lt_prog_compiler_wl
11048 pic_flag=$lt_prog_compiler_pic
11054 lt_save_allow_undefined_flag=$allow_undefined_flag
11055 allow_undefined_flag=
11056 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11057 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }
11062 archive_cmds_need_lc=no
11064 archive_cmds_need_lc=yes
11066 allow_undefined_flag=$lt_save_allow_undefined_flag
11068 cat conftest.err 1>&5
11071 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11072 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11235 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11238 if test "$GCC" = yes; then
11240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11241 *) lt_awk_arg="/^libraries:/" ;;
11243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11244 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11245 # if the path contains ";" then we assume it to be the separator
11246 # otherwise default to the standard path separator (i.e. ":") - it is
11247 # assumed that no part of a normal pathname contains ";" but that should
11248 # okay in the real world where ";" in dirpaths is itself problematic.
11249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11251 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11253 # Ok, now we have the path, separated by spaces, we can step through it
11254 # and add multilib dir if necessary.
11255 lt_tmp_lt_search_path_spec=
11256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11257 for lt_sys_path in $lt_search_path_spec; do
11258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11261 test -d "$lt_sys_path" && \
11262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11265 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11266 BEGIN {RS=" "; FS="/|\n";} {
11269 for (lt_i = NF; lt_i > 0; lt_i--) {
11270 if ($lt_i != "" && $lt_i != ".") {
11271 if ($lt_i == "..") {
11274 if (lt_count == 0) {
11275 lt_foo="/" $lt_i lt_foo;
11282 if (lt_foo != "") { lt_freq[lt_foo]++; }
11283 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11285 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11289 library_names_spec=
11290 libname_spec='lib$name'
11294 postuninstall_cmds=
11298 shlibpath_overrides_runpath=unknown
11300 dynamic_linker="$host_os ld.so"
11301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302 need_lib_prefix=unknown
11303 hardcode_into_libs=no
11305 # when you set need_version to no, make sure it does not cause -set_version
11306 # flags to be left without arguments
11307 need_version=unknown
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313 shlibpath_var=LIBPATH
11315 # AIX 3 has no versioning support, so we append a major version to the name.
11316 soname_spec='${libname}${release}${shared_ext}$major'
11323 hardcode_into_libs=yes
11324 if test "$host_cpu" = ia64; then
11325 # AIX 5 supports IA64
11326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327 shlibpath_var=LD_LIBRARY_PATH
11329 # With GCC up to 2.95.x, collect2 would create an import file
11330 # for dependence libraries. The import file would start with
11331 # the line `#! .'. This would cause the generated library to
11332 # depend on `.', always an invalid library. This was fixed in
11333 # development snapshots of GCC prior to 3.0.
11335 aix4 | aix4.[01] | aix4.[01].*)
11336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11341 can_build_shared=no
11345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346 # soname into executable. Probably we can add versioning support to
11347 # collect2, so additional links can be useful in future.
11348 if test "$aix_use_runtimelinking" = yes; then
11349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350 # instead of lib<name>.a to let people know that these are not
11351 # typical AIX shared libraries.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 # We preserve .a as extension for shared libraries through AIX4.2
11355 # and later when we are not doing run time linking.
11356 library_names_spec='${libname}${release}.a $libname.a'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11359 shlibpath_var=LIBPATH
11366 # Since July 2007 AmigaOS4 officially supports .so libraries.
11367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 library_names_spec='$libname.ixlibrary $libname.a'
11372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11379 library_names_spec='${libname}${shared_ext}'
11380 dynamic_linker="$host_os ld.so"
11381 shlibpath_var=LIBRARY_PATH
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393 # the default ld.so.conf also contains /usr/contrib/lib and
11394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395 # libtool to hard-code these into programs
11398 cygwin* | mingw* | pw32* | cegcc*)
11399 version_type=windows
11404 case $GCC,$host_os in
11405 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11406 library_names_spec='$libname.dll.a'
11407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408 postinstall_cmds='base_file=`basename \${file}`~
11409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11410 dldir=$destdir/`dirname \$dlpath`~
11411 test -d \$dldir || mkdir -p \$dldir~
11412 $install_prog $dir/$dlname \$dldir/$dlname~
11413 chmod a+x \$dldir/$dlname~
11414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11418 dlpath=$dir/\$dldll~
11420 shlibpath_overrides_runpath=yes
11424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11429 # MinGW DLLs use traditional 'lib' prefix
11430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11432 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11433 # It is most probably a Windows format PATH printed by
11434 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11435 # path with ; separators, and with drive letters. We can handle the
11436 # drive letters (cygwin fileutils understands them), so leave them,
11437 # especially as we might pass files found there to a mingw objdump,
11438 # which wouldn't understand a cygwinified path. Ahh.
11439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11445 # pw32 DLLs use 'pw' prefix rather than 'lib'
11446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11455 dynamic_linker='Win32 ld.exe'
11456 # FIXME: first we should search . and the directory the executable is in
11460 darwin* | rhapsody*)
11461 dynamic_linker="$host_os dyld"
11462 version_type=darwin
11465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11466 soname_spec='${libname}${release}${major}$shared_ext'
11467 shlibpath_overrides_runpath=yes
11468 shlibpath_var=DYLD_LIBRARY_PATH
11469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11488 freebsd* | dragonfly*)
11489 # DragonFly does not have aout. When/if they implement a new
11490 # versioning mechanism, adjust this.
11491 if test -x /usr/bin/objformat; then
11492 objformat=`/usr/bin/objformat`
11495 freebsd[123]*) objformat=aout ;;
11496 *) objformat=elf ;;
11499 version_type=freebsd-$objformat
11500 case $version_type in
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11511 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=yes
11516 freebsd3.[01]* | freebsdelf3.[01]*)
11517 shlibpath_overrides_runpath=yes
11518 hardcode_into_libs=yes
11520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11522 shlibpath_overrides_runpath=no
11523 hardcode_into_libs=yes
11525 *) # from 4.6 on, and DragonFly
11526 shlibpath_overrides_runpath=yes
11527 hardcode_into_libs=yes
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 hardcode_into_libs=yes
11542 hpux9* | hpux10* | hpux11*)
11543 # Give a soname corresponding to the major version so that dld.sl refuses to
11544 # link against other versions.
11551 hardcode_into_libs=yes
11552 dynamic_linker="$host_os dld.so"
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 if test "X$HPUX_IA64_MODE" = X32; then
11558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11566 hardcode_into_libs=yes
11567 dynamic_linker="$host_os dld.sl"
11568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11577 dynamic_linker="$host_os dld.sl"
11578 shlibpath_var=SHLIB_PATH
11579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11584 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11585 postinstall_cmds='chmod 555 $lib'
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=no
11597 hardcode_into_libs=yes
11600 irix5* | irix6* | nonstopux*)
11602 nonstopux*) version_type=nonstopux ;;
11604 if test "$lt_cv_prog_gnu_ld" = yes; then
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11615 irix5* | nonstopux*)
11616 libsuff= shlibsuff=
11619 case $LD in # libtool.m4 will add one of these switches to LD
11620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11621 libsuff= shlibsuff= libmagic=32-bit;;
11622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11623 libsuff=32 shlibsuff=N32 libmagic=N32;;
11624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11626 *) libsuff= shlibsuff= libmagic=never-match;;
11630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11631 shlibpath_overrides_runpath=no
11632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11634 hardcode_into_libs=yes
11637 # No shared lib support for Linux oldld, aout, or coff.
11638 linux*oldld* | linux*aout* | linux*coff*)
11642 # This must be Linux ELF.
11643 linux* | k*bsd*-gnu)
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=no
11652 # Some binutils ld are patched to set DT_RUNPATH
11653 save_LDFLAGS=$LDFLAGS
11654 save_libdir=$libdir
11655 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11656 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (ac_try="$ac_link"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_link") 2>conftest.er1
11681 grep -v '^ *+' conftest.er1 >conftest.err
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } && {
11686 test -z "$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11688 } && test -s conftest$ac_exeext &&
11689 $as_test_x conftest$ac_exeext; then
11690 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11691 shlibpath_overrides_runpath=yes
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11702 conftest$ac_exeext conftest.$ac_ext
11703 LDFLAGS=$save_LDFLAGS
11704 libdir=$save_libdir
11706 # This implies no fast_install, which is unacceptable.
11707 # Some rework will be needed to allow for fast_install
11708 # before this can be enabled.
11709 hardcode_into_libs=yes
11711 # Append ld.so.conf contents to the search path
11712 if test -f /etc/ld.so.conf; then
11713 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11717 # We used to test for /lib/ld.so.1 and disable shared libraries on
11718 # powerpc, because MkLinux only supported shared libraries with the
11719 # GNU dynamic linker. Since this was broken with cross compilers,
11720 # most powerpc-linux boxes support dynamic linking these days and
11721 # people can always --disable-shared, the test was removed, and we
11722 # assume the GNU/Linux dynamic linker is in use.
11723 dynamic_linker='GNU/Linux ld.so'
11730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11733 dynamic_linker='NetBSD (a.out) ld.so'
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 dynamic_linker='NetBSD ld.elf_so'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 hardcode_into_libs=yes
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 shlibpath_var=LD_LIBRARY_PATH
11748 shlibpath_overrides_runpath=yes
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=no
11759 hardcode_into_libs=yes
11760 dynamic_linker='ldqnx.so'
11765 sys_lib_dlsearch_path_spec="/usr/lib"
11767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11769 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11770 *) need_version=no ;;
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11777 openbsd2.[89] | openbsd2.[89].*)
11778 shlibpath_overrides_runpath=no
11781 shlibpath_overrides_runpath=yes
11785 shlibpath_overrides_runpath=yes
11790 libname_spec='$name'
11793 library_names_spec='$libname${shared_ext} $libname.a'
11794 dynamic_linker='OS/2 ld.exe'
11795 shlibpath_var=LIBPATH
11798 osf3* | osf4* | osf5*)
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=yes
11821 hardcode_into_libs=yes
11822 # ldd complains unless libraries are executable
11823 postinstall_cmds='chmod +x $lib'
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes
11832 if test "$with_gnu_ld" = yes; then
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 case $host_vendor in
11845 shlibpath_overrides_runpath=no
11847 runpath_var=LD_RUN_PATH
11855 shlibpath_overrides_runpath=no
11856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11862 if test -d /usr/nec ;then
11864 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11865 soname_spec='$libname${shared_ext}.$major'
11866 shlibpath_var=LD_LIBRARY_PATH
11870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871 version_type=freebsd-elf
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=yes
11878 hardcode_into_libs=yes
11879 if test "$with_gnu_ld" = yes; then
11880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11889 sys_lib_dlsearch_path_spec='/usr/lib'
11893 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=no
11900 hardcode_into_libs=yes
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906 soname_spec='${libname}${release}${shared_ext}$major'
11907 shlibpath_var=LD_LIBRARY_PATH
11914 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11915 echo "${ECHO_T}$dynamic_linker" >&6; }
11916 test "$dynamic_linker" = no && can_build_shared=no
11918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11919 if test "$GCC" = yes; then
11920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11923 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11924 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11926 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11927 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12019 if test -n "$hardcode_libdir_flag_spec" ||
12020 test -n "$runpath_var" ||
12021 test "X$hardcode_automatic" = "Xyes" ; then
12023 # We can hardcode non-existent directories.
12024 if test "$hardcode_direct" != no &&
12025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12026 # have to relink, otherwise we might link with an installed library
12027 # when we should be linking with a yet-to-be-installed one
12028 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12029 test "$hardcode_minus_L" != no; then
12030 # Linking always hardcodes the temporary library directory.
12031 hardcode_action=relink
12033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12034 hardcode_action=immediate
12037 # We cannot hardcode anything, or else we can only hardcode existing
12039 hardcode_action=unsupported
12041 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12042 echo "${ECHO_T}$hardcode_action" >&6; }
12044 if test "$hardcode_action" = relink ||
12045 test "$inherit_rpath" = yes; then
12046 # Fast installation is not supported
12047 enable_fast_install=no
12048 elif test "$shlibpath_overrides_runpath" = yes ||
12049 test "$enable_shared" = no; then
12050 # Fast installation is not necessary
12051 enable_fast_install=needless
12059 if test "x$enable_dlopen" != xyes; then
12060 enable_dlopen=unknown
12061 enable_dlopen_self=unknown
12062 enable_dlopen_self_static=unknown
12069 lt_cv_dlopen="load_add_on"
12071 lt_cv_dlopen_self=yes
12074 mingw* | pw32* | cegcc*)
12075 lt_cv_dlopen="LoadLibrary"
12080 lt_cv_dlopen="dlopen"
12085 # if libdl is installed we need to link against it
12086 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 ac_check_lib_save_LIBS=$LIBS
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_link") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest$ac_exeext &&
12132 $as_test_x conftest$ac_exeext; then
12133 ac_cv_lib_dl_dlopen=yes
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 ac_cv_lib_dl_dlopen=no
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142 conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12146 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12147 if test $ac_cv_lib_dl_dlopen = yes; then
12148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12151 lt_cv_dlopen="dyld"
12153 lt_cv_dlopen_self=yes
12160 { echo "$as_me:$LINENO: checking for shl_load" >&5
12161 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12162 if test "${ac_cv_func_shl_load+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12173 #define shl_load innocuous_shl_load
12175 /* System header to define __stub macros and hopefully few prototypes,
12176 which can conflict with char shl_load (); below.
12177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178 <limits.h> exists even on freestanding compilers. */
12181 # include <limits.h>
12183 # include <assert.h>
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12195 /* The GNU C library defines this for functions which it implements
12196 to always fail with ENOSYS. Some functions are actually named
12197 something starting with __ and the normal name is an alias. */
12198 #if defined __stub_shl_load || defined __stub___shl_load
12205 return shl_load ();
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_link") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest$ac_exeext &&
12227 $as_test_x conftest$ac_exeext; then
12228 ac_cv_func_shl_load=yes
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_func_shl_load=no
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237 conftest$ac_exeext conftest.$ac_ext
12239 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12240 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12241 if test $ac_cv_func_shl_load = yes; then
12242 lt_cv_dlopen="shl_load"
12244 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12245 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12246 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 ac_check_lib_save_LIBS=$LIBS
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12268 return shl_load ();
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext &&
12290 $as_test_x conftest$ac_exeext; then
12291 ac_cv_lib_dld_shl_load=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ac_cv_lib_dld_shl_load=no
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300 conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12304 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12305 if test $ac_cv_lib_dld_shl_load = yes; then
12306 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12308 { echo "$as_me:$LINENO: checking for dlopen" >&5
12309 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12310 if test "${ac_cv_func_dlopen+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12321 #define dlopen innocuous_dlopen
12323 /* System header to define __stub macros and hopefully few prototypes,
12324 which can conflict with char dlopen (); below.
12325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326 <limits.h> exists even on freestanding compilers. */
12329 # include <limits.h>
12331 # include <assert.h>
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12343 /* The GNU C library defines this for functions which it implements
12344 to always fail with ENOSYS. Some functions are actually named
12345 something starting with __ and the normal name is an alias. */
12346 #if defined __stub_dlopen || defined __stub___dlopen
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (ac_try="$ac_link"
12360 case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_link") 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && {
12372 test -z "$ac_c_werror_flag" ||
12373 test ! -s conftest.err
12374 } && test -s conftest$ac_exeext &&
12375 $as_test_x conftest$ac_exeext; then
12376 ac_cv_func_dlopen=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_func_dlopen=no
12384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12385 conftest$ac_exeext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12388 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12389 if test $ac_cv_func_dlopen = yes; then
12390 lt_cv_dlopen="dlopen"
12392 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12393 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 ac_check_lib_save_LIBS=$LIBS
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext &&
12438 $as_test_x conftest$ac_exeext; then
12439 ac_cv_lib_dl_dlopen=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_cv_lib_dl_dlopen=no
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
12449 LIBS=$ac_check_lib_save_LIBS
12451 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12453 if test $ac_cv_lib_dl_dlopen = yes; then
12454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12456 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12457 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-lsvld $LIBS"
12463 cat >conftest.$ac_ext <<_ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12470 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_link") 2>conftest.er1
12494 grep -v '^ *+' conftest.er1 >conftest.err
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && {
12499 test -z "$ac_c_werror_flag" ||
12500 test ! -s conftest.err
12501 } && test -s conftest$ac_exeext &&
12502 $as_test_x conftest$ac_exeext; then
12503 ac_cv_lib_svld_dlopen=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_lib_svld_dlopen=no
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12515 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12517 if test $ac_cv_lib_svld_dlopen = yes; then
12518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12520 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS=$LIBS
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12544 return dld_link ();
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 ac_cv_lib_dld_dld_link=yes
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_cv_lib_dld_dld_link=no
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12581 if test $ac_cv_lib_dld_dld_link = yes; then
12582 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12603 if test "x$lt_cv_dlopen" != xno; then
12609 case $lt_cv_dlopen in
12611 save_CPPFLAGS="$CPPFLAGS"
12612 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12614 save_LDFLAGS="$LDFLAGS"
12615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12618 LIBS="$lt_cv_dlopen_libs $LIBS"
12620 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12621 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12622 if test "${lt_cv_dlopen_self+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 if test "$cross_compiling" = yes; then :
12626 lt_cv_dlopen_self=cross
12628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12629 lt_status=$lt_dlunknown
12630 cat > conftest.$ac_ext <<_LT_EOF
12631 #line 12631 "configure"
12632 #include "confdefs.h"
12641 # define LT_DLGLOBAL RTLD_GLOBAL
12644 # define LT_DLGLOBAL DL_GLOBAL
12646 # define LT_DLGLOBAL 0
12650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12651 find out it does not work in some platform. */
12652 #ifndef LT_DLLAZY_OR_NOW
12654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12657 # define LT_DLLAZY_OR_NOW DL_LAZY
12660 # define LT_DLLAZY_OR_NOW RTLD_NOW
12663 # define LT_DLLAZY_OR_NOW DL_NOW
12665 # define LT_DLLAZY_OR_NOW 0
12672 void fnord() { int i=42;}
12675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12676 int status = $lt_dlunknown;
12680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12681 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12682 /* dlclose (self); */
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12695 (./conftest; exit; ) >&5 2>/dev/null
12697 case x$lt_status in
12698 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12699 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12700 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12703 # compilation failed
12704 lt_cv_dlopen_self=no
12711 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12712 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12714 if test "x$lt_cv_dlopen_self" = xyes; then
12715 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12716 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12717 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12718 if test "${lt_cv_dlopen_self_static+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 if test "$cross_compiling" = yes; then :
12722 lt_cv_dlopen_self_static=cross
12724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12725 lt_status=$lt_dlunknown
12726 cat > conftest.$ac_ext <<_LT_EOF
12727 #line 12727 "configure"
12728 #include "confdefs.h"
12737 # define LT_DLGLOBAL RTLD_GLOBAL
12740 # define LT_DLGLOBAL DL_GLOBAL
12742 # define LT_DLGLOBAL 0
12746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12747 find out it does not work in some platform. */
12748 #ifndef LT_DLLAZY_OR_NOW
12750 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12753 # define LT_DLLAZY_OR_NOW DL_LAZY
12756 # define LT_DLLAZY_OR_NOW RTLD_NOW
12759 # define LT_DLLAZY_OR_NOW DL_NOW
12761 # define LT_DLLAZY_OR_NOW 0
12768 void fnord() { int i=42;}
12771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12772 int status = $lt_dlunknown;
12776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12777 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12778 /* dlclose (self); */
12786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787 (eval $ac_link) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12791 (./conftest; exit; ) >&5 2>/dev/null
12793 case x$lt_status in
12794 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12795 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12796 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12799 # compilation failed
12800 lt_cv_dlopen_self_static=no
12807 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12808 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12811 CPPFLAGS="$save_CPPFLAGS"
12812 LDFLAGS="$save_LDFLAGS"
12817 case $lt_cv_dlopen_self in
12818 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12819 *) enable_dlopen_self=unknown ;;
12822 case $lt_cv_dlopen_self_static in
12823 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12824 *) enable_dlopen_self_static=unknown ;;
12846 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12848 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12851 { echo "$as_me:$LINENO: result: yes" >&5
12852 echo "${ECHO_T}yes" >&6; }
12854 # FIXME - insert some real tests, host_os isn't really good enough
12857 if test -n "$STRIP" ; then
12858 striplib="$STRIP -x"
12859 old_striplib="$STRIP -S"
12860 { echo "$as_me:$LINENO: result: yes" >&5
12861 echo "${ECHO_T}yes" >&6; }
12863 { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12868 { echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6; }
12885 # Report which library types will actually be built
12886 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12887 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12888 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12889 echo "${ECHO_T}$can_build_shared" >&6; }
12891 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12892 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12893 test "$can_build_shared" = "no" && enable_shared=no
12895 # On AIX, shared libraries and static libraries use the same namespace, and
12896 # are all built from PIC.
12899 test "$enable_shared" = yes && enable_static=no
12900 if test -n "$RANLIB"; then
12901 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12902 postinstall_cmds='$RANLIB $lib'
12907 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12908 test "$enable_shared" = yes && enable_static=no
12912 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12913 echo "${ECHO_T}$enable_shared" >&6; }
12915 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12916 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12917 # Make sure either enable_shared or enable_static is yes.
12918 test "$enable_shared" = yes || enable_static=yes
12919 { echo "$as_me:$LINENO: result: $enable_static" >&5
12920 echo "${ECHO_T}$enable_static" >&6; }
12927 ac_cpp='$CPP $CPPFLAGS'
12928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12941 archive_cmds_need_lc_CXX=no
12942 allow_undefined_flag_CXX=
12943 always_export_symbols_CXX=no
12944 archive_expsym_cmds_CXX=
12945 compiler_needs_object_CXX=no
12946 export_dynamic_flag_spec_CXX=
12947 hardcode_direct_CXX=no
12948 hardcode_direct_absolute_CXX=no
12949 hardcode_libdir_flag_spec_CXX=
12950 hardcode_libdir_flag_spec_ld_CXX=
12951 hardcode_libdir_separator_CXX=
12952 hardcode_minus_L_CXX=no
12953 hardcode_shlibpath_var_CXX=unsupported
12954 hardcode_automatic_CXX=no
12955 inherit_rpath_CXX=no
12957 module_expsym_cmds_CXX=
12958 link_all_deplibs_CXX=unknown
12959 old_archive_cmds_CXX=$old_archive_cmds
12960 no_undefined_flag_CXX=
12961 whole_archive_flag_spec_CXX=
12962 enable_shared_with_static_runtimes_CXX=no
12964 # Source file extension for C++ test sources.
12967 # Object file extension for compiled C++ test sources.
12971 # No sense in running all these tests if we already determined that
12972 # the CXX compiler isn't working. Some variables (like enable_shared)
12973 # are currently assumed to apply to all compilers on this platform,
12974 # and will be corrupted by setting them based on a non-working compiler.
12975 if test "$_lt_caught_CXX_error" != yes; then
12976 # Code to be used in simple compile tests
12977 lt_simple_compile_test_code="int some_variable = 0;"
12979 # Code to be used in simple link tests
12980 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12982 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12989 # If no C compiler was specified, use CC.
12992 # If no C compiler flags were specified, use CFLAGS.
12993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12995 # Allow CC to be a program name with arguments.
12999 # save warnings/boilerplate of simple test code
13000 ac_outfile=conftest.$ac_objext
13001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13003 _lt_compiler_boilerplate=`cat conftest.err`
13006 ac_outfile=conftest.$ac_objext
13007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13009 _lt_linker_boilerplate=`cat conftest.err`
13013 # Allow CC to be a program name with arguments.
13018 lt_save_with_gnu_ld=$with_gnu_ld
13019 lt_save_path_LD=$lt_cv_path_LD
13020 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13021 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13023 $as_unset lt_cv_prog_gnu_ld
13025 if test -n "${lt_cv_path_LDCXX+set}"; then
13026 lt_cv_path_LD=$lt_cv_path_LDCXX
13028 $as_unset lt_cv_path_LD
13030 test -z "${LDCXX+set}" || LD=$LDCXX
13034 for cc_temp in $compiler""; do
13036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13042 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13045 if test -n "$compiler"; then
13046 # We don't want -fno-exception when compiling C++ code, so set the
13047 # no_builtin_flag separately
13048 if test "$GXX" = yes; then
13049 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13051 lt_prog_compiler_no_builtin_flag_CXX=
13054 if test "$GXX" = yes; then
13055 # Set up default GNU C++ configuration
13059 # Check whether --with-gnu-ld was given.
13060 if test "${with_gnu_ld+set}" = set; then
13061 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13067 if test "$GCC" = yes; then
13068 # Check if gcc -print-prog-name=ld gives a path.
13069 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13070 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13073 # gcc leaves a trailing carriage return which upsets mingw
13074 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13076 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13079 # Accept absolute paths.
13081 re_direlt='/[^/][^/]*/\.\./'
13082 # Canonicalize the pathname of ld
13083 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13084 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13085 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13087 test -z "$LD" && LD="$ac_prog"
13090 # If it fails, then pretend we aren't using GCC.
13094 # If it is relative, then search for the first ld in PATH.
13095 with_gnu_ld=unknown
13098 elif test "$with_gnu_ld" = yes; then
13099 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13100 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13102 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13103 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13105 if test "${lt_cv_path_LD+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 if test -z "$LD"; then
13109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13110 for ac_dir in $PATH; do
13112 test -z "$ac_dir" && ac_dir=.
13113 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13114 lt_cv_path_LD="$ac_dir/$ac_prog"
13115 # Check to see if the program is GNU ld. I'd rather use --version,
13116 # but apparently some variants of GNU ld only accept -v.
13117 # Break only if it was the GNU/non-GNU ld that we prefer.
13118 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13119 *GNU* | *'with BFD'*)
13120 test "$with_gnu_ld" != no && break
13123 test "$with_gnu_ld" != yes && break
13130 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13134 LD="$lt_cv_path_LD"
13135 if test -n "$LD"; then
13136 { echo "$as_me:$LINENO: result: $LD" >&5
13137 echo "${ECHO_T}$LD" >&6; }
13139 { echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6; }
13142 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13143 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13144 { (exit 1); exit 1; }; }
13145 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13146 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13147 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13151 case `$LD -v 2>&1 </dev/null` in
13152 *GNU* | *'with BFD'*)
13153 lt_cv_prog_gnu_ld=yes
13156 lt_cv_prog_gnu_ld=no
13160 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13161 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13162 with_gnu_ld=$lt_cv_prog_gnu_ld
13170 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13171 # archiving commands below assume that GNU ld is being used.
13172 if test "$with_gnu_ld" = yes; then
13173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13179 # If archive_cmds runs LD, not CC, wlarc should be empty
13180 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13181 # investigate it a little bit more. (MM)
13184 # ancient GNU ld didn't support --whole-archive et. al.
13185 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13186 $GREP 'no-whole-archive' > /dev/null; then
13187 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13189 whole_archive_flag_spec_CXX=
13195 # A generic and very simple default shared library creation
13196 # command for GNU C++ for the case where it uses the native
13197 # linker, instead of GNU ld. If possible, this setting should
13198 # overridden to take advantage of the native linker features on
13199 # the platform it is being used on.
13200 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13203 # Commands to make compiler produce verbose output that lists
13204 # what "hidden" libraries, object files and flags are used when
13205 # linking a shared library.
13206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13214 # PORTME: fill in a description of your system's C++ link characteristics
13215 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13220 # FIXME: insert proper C++ library support
13224 if test "$host_cpu" = ia64; then
13225 # On IA64, the linker does run time linking by default, so we don't
13226 # have to do anything special.
13227 aix_use_runtimelinking=no
13228 exp_sym_flag='-Bexport'
13231 aix_use_runtimelinking=no
13233 # Test if we are trying to use run time linking or normal
13234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13235 # need to do runtime linking.
13236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13237 for ld_flag in $LDFLAGS; do
13240 aix_use_runtimelinking=yes
13248 exp_sym_flag='-bexport'
13249 no_entry_flag='-bnoentry'
13252 # When large executables or shared objects are built, AIX ld can
13253 # have problems creating the table of contents. If linking a library
13254 # or program results in "error TOC overflow" add -mminimal-toc to
13255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13258 archive_cmds_CXX=''
13259 hardcode_direct_CXX=yes
13260 hardcode_direct_absolute_CXX=yes
13261 hardcode_libdir_separator_CXX=':'
13262 link_all_deplibs_CXX=yes
13263 file_list_spec_CXX='${wl}-f,'
13265 if test "$GXX" = yes; then
13266 case $host_os in aix4.[012]|aix4.[012].*)
13267 # We only want to do this on AIX 4.2 and lower, the check
13268 # below for broken collect2 doesn't work under 4.3+
13269 collect2name=`${CC} -print-prog-name=collect2`
13270 if test -f "$collect2name" &&
13271 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13273 # We have reworked collect2
13276 # We have old collect2
13277 hardcode_direct_CXX=unsupported
13278 # It fails to find uninstalled libraries when the uninstalled
13279 # path is not listed in the libpath. Setting hardcode_minus_L
13280 # to unsupported forces relinking
13281 hardcode_minus_L_CXX=yes
13282 hardcode_libdir_flag_spec_CXX='-L$libdir'
13283 hardcode_libdir_separator_CXX=
13286 shared_flag='-shared'
13287 if test "$aix_use_runtimelinking" = yes; then
13288 shared_flag="$shared_flag "'${wl}-G'
13292 if test "$host_cpu" = ia64; then
13293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13294 # chokes on -Wl,-G. The following line is correct:
13297 if test "$aix_use_runtimelinking" = yes; then
13298 shared_flag='${wl}-G'
13300 shared_flag='${wl}-bM:SRE'
13305 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13306 # It seems that -bexpall does not export symbols beginning with
13307 # underscore (_), so it is better to generate a list of symbols to
13309 always_export_symbols_CXX=yes
13310 if test "$aix_use_runtimelinking" = yes; then
13311 # Warning - without using the other runtime loading flags (-brtl),
13312 # -berok will link without error, but may produce a broken library.
13313 allow_undefined_flag_CXX='-berok'
13314 # Determine the default libpath from the value encoded in an empty
13316 cat >conftest.$ac_ext <<_ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_link") 2>conftest.er1
13340 grep -v '^ *+' conftest.er1 >conftest.err
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_cxx_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest$ac_exeext &&
13348 $as_test_x conftest$ac_exeext; then
13350 lt_aix_libpath_sed='
13351 /Import File Strings/,/^$/ {
13357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358 # Check for a 64-bit object if we didn't find anything.
13359 if test -z "$aix_libpath"; then
13360 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13370 conftest$ac_exeext conftest.$ac_ext
13371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13373 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13375 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13377 if test "$host_cpu" = ia64; then
13378 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13379 allow_undefined_flag_CXX="-z nodefs"
13380 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13382 # Determine the default libpath from the value encoded in an
13383 # empty executable.
13384 cat >conftest.$ac_ext <<_ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>conftest.er1
13408 grep -v '^ *+' conftest.er1 >conftest.err
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } && {
13413 test -z "$ac_cxx_werror_flag" ||
13414 test ! -s conftest.err
13415 } && test -s conftest$ac_exeext &&
13416 $as_test_x conftest$ac_exeext; then
13418 lt_aix_libpath_sed='
13419 /Import File Strings/,/^$/ {
13425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 # Check for a 64-bit object if we didn't find anything.
13427 if test -z "$aix_libpath"; then
13428 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13438 conftest$ac_exeext conftest.$ac_ext
13439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13441 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13442 # Warning - without using the other run time loading flags,
13443 # -berok will link without error, but may produce a broken library.
13444 no_undefined_flag_CXX=' ${wl}-bernotok'
13445 allow_undefined_flag_CXX=' ${wl}-berok'
13446 # Exported symbols can be pulled into shared objects from archives
13447 whole_archive_flag_spec_CXX='$convenience'
13448 archive_cmds_need_lc_CXX=yes
13449 # This is similar to how AIX traditionally builds its shared
13451 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13458 allow_undefined_flag_CXX=unsupported
13459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13460 # support --undefined. This deserves some investigation. FIXME
13461 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13468 case $cc_basename in
13470 # FIXME: insert proper C++ library support
13476 cygwin* | mingw* | pw32* | cegcc*)
13477 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13478 # as there is no search path for DLLs.
13479 hardcode_libdir_flag_spec_CXX='-L$libdir'
13480 allow_undefined_flag_CXX=unsupported
13481 always_export_symbols_CXX=no
13482 enable_shared_with_static_runtimes_CXX=yes
13484 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13485 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13486 # If the export-symbols file already is a .def file (1st line
13487 # is EXPORTS), use it as is; otherwise, prepend...
13488 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13489 cp $export_symbols $output_objdir/$soname.def;
13491 echo EXPORTS > $output_objdir/$soname.def;
13492 cat $export_symbols >> $output_objdir/$soname.def;
13494 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13499 darwin* | rhapsody*)
13502 archive_cmds_need_lc_CXX=no
13503 hardcode_direct_CXX=no
13504 hardcode_automatic_CXX=yes
13505 hardcode_shlibpath_var_CXX=unsupported
13506 whole_archive_flag_spec_CXX=''
13507 link_all_deplibs_CXX=yes
13508 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13509 case $cc_basename in
13510 ifort*) _lt_dar_can_shared=yes ;;
13511 *) _lt_dar_can_shared=$GCC ;;
13513 if test "$_lt_dar_can_shared" = "yes"; then
13514 output_verbose_link_cmd=echo
13515 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13516 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13517 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13518 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13519 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13520 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13521 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13531 case $cc_basename in
13533 # FIXME: insert proper C++ library support
13537 # Green Hills C++ Compiler
13538 # FIXME: insert proper C++ library support
13542 # FIXME: insert proper C++ library support
13549 # C++ shared libraries reported to be fairly broken before
13555 archive_cmds_need_lc_CXX=no
13558 freebsd* | dragonfly*)
13559 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13568 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13569 hardcode_libdir_separator_CXX=:
13570 export_dynamic_flag_spec_CXX='${wl}-E'
13571 hardcode_direct_CXX=yes
13572 hardcode_minus_L_CXX=yes # Not in the search PATH,
13573 # but as the default
13574 # location of the library.
13576 case $cc_basename in
13578 # FIXME: insert proper C++ library support
13582 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13583 # Commands to make compiler produce verbose output that lists
13584 # what "hidden" libraries, object files and flags are used when
13585 # linking a shared library.
13587 # There doesn't appear to be a way to prevent this compiler from
13588 # explicitly linking system object files so we need to strip them
13589 # from the output so that they don't get included in the library
13591 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13594 if test "$GXX" = yes; then
13595 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13597 # FIXME: insert proper C++ library support
13605 if test $with_gnu_ld = no; then
13606 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13607 hardcode_libdir_separator_CXX=:
13613 export_dynamic_flag_spec_CXX='${wl}-E'
13619 hardcode_direct_CXX=no
13620 hardcode_shlibpath_var_CXX=no
13623 hardcode_direct_CXX=yes
13624 hardcode_direct_absolute_CXX=yes
13625 hardcode_minus_L_CXX=yes # Not in the search PATH,
13626 # but as the default
13627 # location of the library.
13631 case $cc_basename in
13633 # FIXME: insert proper C++ library support
13639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13642 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13645 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648 # Commands to make compiler produce verbose output that lists
13649 # what "hidden" libraries, object files and flags are used when
13650 # linking a shared library.
13652 # There doesn't appear to be a way to prevent this compiler from
13653 # explicitly linking system object files so we need to strip them
13654 # from the output so that they don't get included in the library
13656 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13659 if test "$GXX" = yes; then
13660 if test $with_gnu_ld = no; then
13663 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13666 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13669 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13674 # FIXME: insert proper C++ library support
13682 hardcode_direct_CXX=no
13683 hardcode_shlibpath_var_CXX=no
13684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13685 export_dynamic_flag_spec_CXX='${wl}-E'
13686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13687 # Instead, shared libraries are loaded at an image base (0x10000000 by
13688 # default) and relocated if they conflict, which is a slow very memory
13689 # consuming and fragmenting process. To avoid this, we pick a random,
13690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13692 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13693 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13696 case $cc_basename in
13699 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13701 # Archives containing C++ object files must be created using
13702 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13703 # necessary to make sure instantiated templates are included
13705 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13708 if test "$GXX" = yes; then
13709 if test "$with_gnu_ld" = no; then
13710 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13715 link_all_deplibs_CXX=yes
13718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13719 hardcode_libdir_separator_CXX=:
13720 inherit_rpath_CXX=yes
13723 linux* | k*bsd*-gnu)
13724 case $cc_basename in
13726 # Kuck and Associates, Inc. (KAI) C++ Compiler
13728 # KCC will only create a shared library if the output file
13729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13730 # to its proper name (with version) after linking.
13731 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13732 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13733 # Commands to make compiler produce verbose output that lists
13734 # what "hidden" libraries, object files and flags are used when
13735 # linking a shared library.
13737 # There doesn't appear to be a way to prevent this compiler from
13738 # explicitly linking system object files so we need to strip them
13739 # from the output so that they don't get included in the library
13741 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13746 # Archives containing C++ object files must be created using
13747 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13748 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13753 # version 8.0 and above of icpc choke on multiply defined symbols
13754 # if we add $predep_objects and $postdep_objects, however 7.1 and
13755 # earlier do not add the objects themselves.
13756 case `$CC -V 2>&1` in
13758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13761 *) # Version 8.0 or newer
13764 ia64*) tmp_idyn=' -i_dynamic';;
13766 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13767 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13770 archive_cmds_need_lc_CXX=no
13771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13773 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13776 # Portland Group C++ compiler
13778 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13779 prelink_cmds_CXX='tpldir=Template.dir~
13781 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13782 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13783 old_archive_cmds_CXX='tpldir=Template.dir~
13785 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13786 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13788 archive_cmds_CXX='tpldir=Template.dir~
13790 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13791 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13792 archive_expsym_cmds_CXX='tpldir=Template.dir~
13794 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13797 *) # Version 6 will use weak symbols
13798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13799 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13803 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13805 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13810 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13812 runpath_var=LD_RUN_PATH
13813 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13814 hardcode_libdir_separator_CXX=:
13816 # Commands to make compiler produce verbose output that lists
13817 # what "hidden" libraries, object files and flags are used when
13818 # linking a shared library.
13820 # There doesn't appear to be a way to prevent this compiler from
13821 # explicitly linking system object files so we need to strip them
13822 # from the output so that they don't get included in the library
13824 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13827 # IBM XL 8.0 on PPC, with GNU ld
13828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831 if test "x$supports_anon_versioning" = xyes; then
13832 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13834 echo "local: *; };" >> $output_objdir/$libname.ver~
13835 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13839 case `$CC -V 2>&1 | sed 5q` in
13842 no_undefined_flag_CXX=' -zdefs'
13843 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13844 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13845 hardcode_libdir_flag_spec_CXX='-R$libdir'
13846 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13847 compiler_needs_object_CXX=yes
13849 # Not sure whether something based on
13850 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13852 output_verbose_link_cmd='echo'
13854 # Archives containing C++ object files must be created using
13855 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13856 # necessary to make sure instantiated templates are included
13858 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13866 # FIXME: insert proper C++ library support
13871 # FIXME: insert proper C++ library support
13876 case $cc_basename in
13878 # FIXME: insert proper C++ library support
13882 # FIXME: insert proper C++ library support
13889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13890 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13892 hardcode_libdir_flag_spec_CXX='-R$libdir'
13893 hardcode_direct_CXX=yes
13894 hardcode_shlibpath_var_CXX=no
13896 # Workaround some broken pre-1.5 toolchains
13897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13905 # C++ shared libraries are fairly broken
13910 if test -f /usr/libexec/ld.so; then
13911 hardcode_direct_CXX=yes
13912 hardcode_shlibpath_var_CXX=no
13913 hardcode_direct_absolute_CXX=yes
13914 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13917 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13918 export_dynamic_flag_spec_CXX='${wl}-E'
13919 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13921 output_verbose_link_cmd=echo
13927 osf3* | osf4* | osf5*)
13928 case $cc_basename in
13930 # Kuck and Associates, Inc. (KAI) C++ Compiler
13932 # KCC will only create a shared library if the output file
13933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13934 # to its proper name (with version) after linking.
13935 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13938 hardcode_libdir_separator_CXX=:
13940 # Archives containing C++ object files must be created using
13941 # the KAI C++ compiler.
13943 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13944 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13948 # Rational C++ 2.4.1
13949 # FIXME: insert proper C++ library support
13955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13956 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13960 allow_undefined_flag_CXX=' -expect_unresolved \*'
13961 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13962 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13963 echo "-hidden">> $lib.exp~
13964 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13970 hardcode_libdir_separator_CXX=:
13972 # Commands to make compiler produce verbose output that lists
13973 # what "hidden" libraries, object files and flags are used when
13974 # linking a shared library.
13976 # There doesn't appear to be a way to prevent this compiler from
13977 # explicitly linking system object files so we need to strip them
13978 # from the output so that they don't get included in the library
13980 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13987 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13990 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13995 hardcode_libdir_separator_CXX=:
13997 # Commands to make compiler produce verbose output that lists
13998 # what "hidden" libraries, object files and flags are used when
13999 # linking a shared library.
14000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14003 # FIXME: insert proper C++ library support
14011 # FIXME: insert proper C++ library support
14016 case $cc_basename in
14019 # FIXME: insert proper C++ library support
14024 # FIXME: insert proper C++ library support
14028 # FIXME: insert proper C++ library support
14035 case $cc_basename in
14037 # Sun C++ 4.2, 5.x and Centerline C++
14038 archive_cmds_need_lc_CXX=yes
14039 no_undefined_flag_CXX=' -zdefs'
14040 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14042 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14044 hardcode_libdir_flag_spec_CXX='-R$libdir'
14045 hardcode_shlibpath_var_CXX=no
14047 solaris2.[0-5] | solaris2.[0-5].*) ;;
14049 # The compiler driver will combine and reorder linker options,
14050 # but understands `-z linker_flag'.
14051 # Supported since Solaris 2.6 (maybe 2.5.1?)
14052 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14055 link_all_deplibs_CXX=yes
14057 output_verbose_link_cmd='echo'
14059 # Archives containing C++ object files must be created using
14060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14061 # necessary to make sure instantiated templates are included
14063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14066 # Green Hills C++ Compiler
14067 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14069 # The C++ compiler must be used to create the archive.
14070 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14073 # GNU C++ compiler with Solaris linker
14074 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14075 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14076 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14077 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14078 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14079 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14081 # Commands to make compiler produce verbose output that lists
14082 # what "hidden" libraries, object files and flags are used when
14083 # linking a shared library.
14084 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14086 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14088 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14089 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14090 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14092 # Commands to make compiler produce verbose output that lists
14093 # what "hidden" libraries, object files and flags are used when
14094 # linking a shared library.
14095 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14098 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14100 solaris2.[0-5] | solaris2.[0-5].*) ;;
14102 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14110 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14111 no_undefined_flag_CXX='${wl}-z,text'
14112 archive_cmds_need_lc_CXX=no
14113 hardcode_shlibpath_var_CXX=no
14114 runpath_var='LD_RUN_PATH'
14116 case $cc_basename in
14118 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128 sysv5* | sco3.2v5* | sco5v6*)
14129 # Note: We can NOT use -z defs as we might desire, because we do not
14130 # link with -lc, and that would cause any symbols used from libc to
14131 # always be unresolved, which means just about no library would
14132 # ever link correctly. If we're not using GNU ld we use -z text
14133 # though, which does catch some bad symbols but isn't as heavy-handed
14135 no_undefined_flag_CXX='${wl}-z,text'
14136 allow_undefined_flag_CXX='${wl}-z,nodefs'
14137 archive_cmds_need_lc_CXX=no
14138 hardcode_shlibpath_var_CXX=no
14139 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14140 hardcode_libdir_separator_CXX=':'
14141 link_all_deplibs_CXX=yes
14142 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14143 runpath_var='LD_RUN_PATH'
14145 case $cc_basename in
14147 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14151 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14158 case $cc_basename in
14160 # NonStop-UX NCC 3.20
14161 # FIXME: insert proper C++ library support
14165 # FIXME: insert proper C++ library support
14172 # FIXME: insert proper C++ library support
14177 # FIXME: insert proper C++ library support
14182 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14183 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14184 test "$ld_shlibs_CXX" = no && can_build_shared=no
14190 ## There is no encapsulation within the following macros, do not change
14191 ## the running order or otherwise move them around unless you know exactly
14192 ## what you are doing...
14193 # Dependencies to place before and after the object being linked:
14194 predep_objects_CXX=
14195 postdep_objects_CXX=
14198 compiler_lib_search_path_CXX=
14200 cat > conftest.$ac_ext <<_LT_EOF
14204 Foo (void) { a = 0; }
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; then
14215 # Parse the compiler output and extract the necessary
14216 # objects, libraries and library flags.
14218 # Sentinel used to keep track of whether or not we are before
14219 # the conftest object file.
14220 pre_test_object_deps_done=no
14222 for p in `eval "$output_verbose_link_cmd"`; do
14226 # Some compilers place space between "-{L,R}" and the path.
14227 # Remove the space.
14228 if test $p = "-L" ||
14229 test $p = "-R"; then
14236 if test "$pre_test_object_deps_done" = no; then
14239 # Internal compiler library paths should come after those
14240 # provided the user. The postdeps already come after the
14241 # user supplied libs so there is no need to process them.
14242 if test -z "$compiler_lib_search_path_CXX"; then
14243 compiler_lib_search_path_CXX="${prev}${p}"
14245 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14248 # The "-l" case would never come before the object being
14249 # linked, so don't bother handling this case.
14252 if test -z "$postdeps_CXX"; then
14253 postdeps_CXX="${prev}${p}"
14255 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14261 # This assumes that the test object file only shows up
14262 # once in the compiler output.
14263 if test "$p" = "conftest.$objext"; then
14264 pre_test_object_deps_done=yes
14268 if test "$pre_test_object_deps_done" = no; then
14269 if test -z "$predep_objects_CXX"; then
14270 predep_objects_CXX="$p"
14272 predep_objects_CXX="$predep_objects_CXX $p"
14275 if test -z "$postdep_objects_CXX"; then
14276 postdep_objects_CXX="$p"
14278 postdep_objects_CXX="$postdep_objects_CXX $p"
14283 *) ;; # Ignore the rest.
14291 echo "libtool.m4: error: problem compiling CXX test program"
14294 $RM -f confest.$objext
14296 # PORTME: override above test on systems where it is broken
14299 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14300 # hack all around it, let's just trust "g++" to DTRT.
14301 predep_objects_CXX=
14302 postdep_objects_CXX=
14307 case `$CC -V 2>&1 | sed 5q` in
14311 # The more standards-conforming stlport4 library is
14312 # incompatible with the Cstd library. Avoid specifying
14313 # it if it's in CXXFLAGS. Ignore libCrun as
14314 # -library=stlport4 depends on it.
14315 case " $CXX $CXXFLAGS " in
14316 *" -library=stlport4 "*)
14317 solaris_use_stlport4=yes
14321 if test "$solaris_use_stlport4" != yes; then
14322 postdeps_CXX='-library=Cstd -library=Crun'
14329 case $cc_basename in
14331 # The more standards-conforming stlport4 library is
14332 # incompatible with the Cstd library. Avoid specifying
14333 # it if it's in CXXFLAGS. Ignore libCrun as
14334 # -library=stlport4 depends on it.
14335 case " $CXX $CXXFLAGS " in
14336 *" -library=stlport4 "*)
14337 solaris_use_stlport4=yes
14341 # Adding this requires a known-good setup of shared libraries for
14342 # Sun compiler versions before 5.6, else PIC objects from an old
14343 # archive will be linked into the output, leading to subtle bugs.
14344 if test "$solaris_use_stlport4" != yes; then
14345 postdeps_CXX='-library=Cstd -library=Crun'
14353 case " $postdeps_CXX " in
14354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14356 compiler_lib_search_dirs_CXX=
14357 if test -n "${compiler_lib_search_path_CXX}"; then
14358 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14391 lt_prog_compiler_wl_CXX=
14392 lt_prog_compiler_pic_CXX=
14393 lt_prog_compiler_static_CXX=
14395 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14396 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14398 # C++ specific cases for pic, static, wl, etc.
14399 if test "$GXX" = yes; then
14400 lt_prog_compiler_wl_CXX='-Wl,'
14401 lt_prog_compiler_static_CXX='-static'
14405 # All AIX code is PIC.
14406 if test "$host_cpu" = ia64; then
14407 # AIX 5 now supports IA64 processor
14408 lt_prog_compiler_static_CXX='-Bstatic'
14415 # see comment about AmigaOS4 .so support
14416 lt_prog_compiler_pic_CXX='-fPIC'
14419 # FIXME: we need at least 68020 code to build shared libraries, but
14420 # adding the `-m68020' flag to GCC prevents building anything better,
14422 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14428 # PIC is the default for these OSes.
14430 mingw* | cygwin* | os2* | pw32* | cegcc*)
14431 # This hack is so that the source file can tell whether it is being
14432 # built for inclusion in a dll (and should export symbols for example).
14433 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14434 # (--disable-auto-import) libraries
14435 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14437 darwin* | rhapsody*)
14438 # PIC is the default on this platform
14439 # Common symbols not allowed in MH_DYLIB files
14440 lt_prog_compiler_pic_CXX='-fno-common'
14443 # DJGPP does not support shared libraries at all
14444 lt_prog_compiler_pic_CXX=
14447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14448 # Instead, we relocate shared libraries at runtime.
14451 if test -d /usr/nec; then
14452 lt_prog_compiler_pic_CXX=-Kconform_pic
14456 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14457 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14458 # sets the default TLS model and affects inlining.
14463 lt_prog_compiler_pic_CXX='-fPIC'
14468 # QNX uses GNU C++, but need to define -shared option too, otherwise
14469 # it will coredump.
14470 lt_prog_compiler_pic_CXX='-fPIC -shared'
14473 lt_prog_compiler_pic_CXX='-fPIC'
14479 # All AIX code is PIC.
14480 if test "$host_cpu" = ia64; then
14481 # AIX 5 now supports IA64 processor
14482 lt_prog_compiler_static_CXX='-Bstatic'
14484 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14488 case $cc_basename in
14490 # Green Hills C++ Compiler
14491 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14496 case $cc_basename in
14498 lt_prog_compiler_pic_CXX='-KPIC'
14501 # Green Hills C++ Compiler
14502 lt_prog_compiler_pic_CXX='-pic'
14508 freebsd* | dragonfly*)
14509 # FreeBSD uses GNU C++
14511 hpux9* | hpux10* | hpux11*)
14512 case $cc_basename in
14514 lt_prog_compiler_wl_CXX='-Wl,'
14515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14516 if test "$host_cpu" != ia64; then
14517 lt_prog_compiler_pic_CXX='+Z'
14521 lt_prog_compiler_wl_CXX='-Wl,'
14522 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14528 lt_prog_compiler_pic_CXX='+Z'
14537 # This is c89, which is MS Visual C++ (no shared libs)
14538 # Anyone wants to do a port?
14540 irix5* | irix6* | nonstopux*)
14541 case $cc_basename in
14543 lt_prog_compiler_wl_CXX='-Wl,'
14544 lt_prog_compiler_static_CXX='-non_shared'
14545 # CC pic flag -KPIC is the default.
14551 linux* | k*bsd*-gnu)
14552 case $cc_basename in
14555 lt_prog_compiler_wl_CXX='--backend -Wl,'
14556 lt_prog_compiler_pic_CXX='-fPIC'
14559 # old Intel C++ for x86_64 which still supported -KPIC.
14560 lt_prog_compiler_wl_CXX='-Wl,'
14561 lt_prog_compiler_pic_CXX='-KPIC'
14562 lt_prog_compiler_static_CXX='-static'
14565 # Intel C++, used to be incompatible with GCC.
14566 # ICC 10 doesn't accept -KPIC any more.
14567 lt_prog_compiler_wl_CXX='-Wl,'
14568 lt_prog_compiler_pic_CXX='-fPIC'
14569 lt_prog_compiler_static_CXX='-static'
14572 # Portland Group C++ compiler
14573 lt_prog_compiler_wl_CXX='-Wl,'
14574 lt_prog_compiler_pic_CXX='-fpic'
14575 lt_prog_compiler_static_CXX='-Bstatic'
14579 # Make sure the PIC flag is empty. It appears that all Alpha
14580 # Linux and Compaq Tru64 Unix objects are PIC.
14581 lt_prog_compiler_pic_CXX=
14582 lt_prog_compiler_static_CXX='-non_shared'
14585 # IBM XL 8.0 on PPC
14586 lt_prog_compiler_wl_CXX='-Wl,'
14587 lt_prog_compiler_pic_CXX='-qpic'
14588 lt_prog_compiler_static_CXX='-qstaticlink'
14591 case `$CC -V 2>&1 | sed 5q` in
14594 lt_prog_compiler_pic_CXX='-KPIC'
14595 lt_prog_compiler_static_CXX='-Bstatic'
14596 lt_prog_compiler_wl_CXX='-Qoption ld '
14607 case $cc_basename in
14609 lt_prog_compiler_pic_CXX='-W c,exportall'
14618 # QNX uses GNU C++, but need to define -shared option too, otherwise
14619 # it will coredump.
14620 lt_prog_compiler_pic_CXX='-fPIC -shared'
14622 osf3* | osf4* | osf5*)
14623 case $cc_basename in
14625 lt_prog_compiler_wl_CXX='--backend -Wl,'
14628 # Rational C++ 2.4.1
14629 lt_prog_compiler_pic_CXX='-pic'
14632 # Digital/Compaq C++
14633 lt_prog_compiler_wl_CXX='-Wl,'
14634 # Make sure the PIC flag is empty. It appears that all Alpha
14635 # Linux and Compaq Tru64 Unix objects are PIC.
14636 lt_prog_compiler_pic_CXX=
14637 lt_prog_compiler_static_CXX='-non_shared'
14646 case $cc_basename in
14648 # Sun C++ 4.2, 5.x and Centerline C++
14649 lt_prog_compiler_pic_CXX='-KPIC'
14650 lt_prog_compiler_static_CXX='-Bstatic'
14651 lt_prog_compiler_wl_CXX='-Qoption ld '
14654 # Green Hills C++ Compiler
14655 lt_prog_compiler_pic_CXX='-PIC'
14662 case $cc_basename in
14665 lt_prog_compiler_pic_CXX='-pic'
14666 lt_prog_compiler_static_CXX='-Bstatic'
14670 lt_prog_compiler_pic_CXX='-pic'
14676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14677 case $cc_basename in
14679 lt_prog_compiler_wl_CXX='-Wl,'
14680 lt_prog_compiler_pic_CXX='-KPIC'
14681 lt_prog_compiler_static_CXX='-Bstatic'
14686 case $cc_basename in
14688 # NonStop-UX NCC 3.20
14689 lt_prog_compiler_pic_CXX='-KPIC'
14698 lt_prog_compiler_can_build_shared_CXX=no
14704 # For platforms which do not support PIC, -DPIC is meaningless:
14706 lt_prog_compiler_pic_CXX=
14709 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14713 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14718 # Check to make sure the PIC flag actually works.
14720 if test -n "$lt_prog_compiler_pic_CXX"; then
14721 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14723 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 lt_cv_prog_compiler_pic_works_CXX=no
14727 ac_outfile=conftest.$ac_objext
14728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14729 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14730 # Insert the option either (1) after the last *FLAGS variable, or
14731 # (2) before a word containing "conftest.", or (3) at the end.
14732 # Note that $ac_compile itself does not contain backslashes and begins
14733 # with a dollar sign (not a hyphen), so the echo should work correctly.
14734 # The option is referenced via a variable to avoid confusing sed.
14735 lt_compile=`echo "$ac_compile" | $SED \
14736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14738 -e 's:$: $lt_compiler_flag:'`
14739 (eval echo "\"\$as_me:14739: $lt_compile\"" >&5)
14740 (eval "$lt_compile" 2>conftest.err)
14742 cat conftest.err >&5
14743 echo "$as_me:14743: \$? = $ac_status" >&5
14744 if (exit $ac_status) && test -s "$ac_outfile"; then
14745 # The compiler can only warn and ignore the option if not recognized
14746 # So say no if there are warnings other than the usual output.
14747 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14750 lt_cv_prog_compiler_pic_works_CXX=yes
14756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14757 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14759 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14760 case $lt_prog_compiler_pic_CXX in
14762 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14765 lt_prog_compiler_pic_CXX=
14766 lt_prog_compiler_can_build_shared_CXX=no
14774 # Check to make sure the static flag actually works.
14776 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14777 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14778 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14779 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 lt_cv_prog_compiler_static_works_CXX=no
14783 save_LDFLAGS="$LDFLAGS"
14784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14785 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14787 # The linker can only warn and ignore the option if not recognized
14788 # So say no if there are warnings
14789 if test -s conftest.err; then
14790 # Append any errors to the config.log.
14791 cat conftest.err 1>&5
14792 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14794 if diff conftest.exp conftest.er2 >/dev/null; then
14795 lt_cv_prog_compiler_static_works_CXX=yes
14798 lt_cv_prog_compiler_static_works_CXX=yes
14802 LDFLAGS="$save_LDFLAGS"
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14808 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14811 lt_prog_compiler_static_CXX=
14817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 lt_cv_prog_compiler_c_o_CXX=no
14823 $RM -r conftest 2>/dev/null
14827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14829 lt_compiler_flag="-o out/conftest2.$ac_objext"
14830 # Insert the option either (1) after the last *FLAGS variable, or
14831 # (2) before a word containing "conftest.", or (3) at the end.
14832 # Note that $ac_compile itself does not contain backslashes and begins
14833 # with a dollar sign (not a hyphen), so the echo should work correctly.
14834 lt_compile=`echo "$ac_compile" | $SED \
14835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14837 -e 's:$: $lt_compiler_flag:'`
14838 (eval echo "\"\$as_me:14838: $lt_compile\"" >&5)
14839 (eval "$lt_compile" 2>out/conftest.err)
14841 cat out/conftest.err >&5
14842 echo "$as_me:14842: \$? = $ac_status" >&5
14843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14845 # The compiler can only warn and ignore the option if not recognized
14846 # So say no if there are warnings
14847 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14850 lt_cv_prog_compiler_c_o_CXX=yes
14855 # SGI C++ compiler will create directory out/ii_files/ for
14856 # template instantiation
14857 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14858 $RM out/* && rmdir out
14864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14869 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 lt_cv_prog_compiler_c_o_CXX=no
14875 $RM -r conftest 2>/dev/null
14879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14881 lt_compiler_flag="-o out/conftest2.$ac_objext"
14882 # Insert the option either (1) after the last *FLAGS variable, or
14883 # (2) before a word containing "conftest.", or (3) at the end.
14884 # Note that $ac_compile itself does not contain backslashes and begins
14885 # with a dollar sign (not a hyphen), so the echo should work correctly.
14886 lt_compile=`echo "$ac_compile" | $SED \
14887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889 -e 's:$: $lt_compiler_flag:'`
14890 (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891 (eval "$lt_compile" 2>out/conftest.err)
14893 cat out/conftest.err >&5
14894 echo "$as_me:14894: \$? = $ac_status" >&5
14895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14897 # The compiler can only warn and ignore the option if not recognized
14898 # So say no if there are warnings
14899 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902 lt_cv_prog_compiler_c_o_CXX=yes
14907 # SGI C++ compiler will create directory out/ii_files/ for
14908 # template instantiation
14909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910 $RM out/* && rmdir out
14916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14922 hard_links="nottested"
14923 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14924 # do not overwrite the value of need_locks provided by the user
14925 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14931 ln conftest.a conftest.b 2>&5 || hard_links=no
14932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14933 { echo "$as_me:$LINENO: result: $hard_links" >&5
14934 echo "${ECHO_T}$hard_links" >&6; }
14935 if test "$hard_links" = no; then
14936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14946 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14952 # If we're using GNU nm, then we don't want the "-C" option.
14953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14954 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14955 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14957 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14961 export_symbols_cmds_CXX="$ltdll_cmds"
14963 cygwin* | mingw* | cegcc*)
14964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14970 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14972 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14973 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14974 test "$ld_shlibs_CXX" = no && can_build_shared=no
14976 with_gnu_ld_CXX=$with_gnu_ld
14984 # Do we need to explicitly link libc?
14986 case "x$archive_cmds_need_lc_CXX" in
14988 # Assume -lc should be added
14989 archive_cmds_need_lc_CXX=yes
14991 if test "$enable_shared" = yes && test "$GCC" = yes; then
14992 case $archive_cmds_CXX in
14994 # FIXME: we may have to deal with multi-command sequences.
14997 # Test whether the compiler implicitly links with -lc since on some
14998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999 # to ld, don't add -lc before -lgcc.
15000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } 2>conftest.err; then
15012 libobjs=conftest.$ac_objext
15014 wl=$lt_prog_compiler_wl_CXX
15015 pic_flag=$lt_prog_compiler_pic_CXX
15021 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15022 allow_undefined_flag_CXX=
15023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15024 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }
15029 archive_cmds_need_lc_CXX=no
15031 archive_cmds_need_lc_CXX=yes
15033 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15035 cat conftest.err 1>&5
15038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15039 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15109 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15110 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15112 library_names_spec=
15113 libname_spec='lib$name'
15117 postuninstall_cmds=
15121 shlibpath_overrides_runpath=unknown
15123 dynamic_linker="$host_os ld.so"
15124 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15125 need_lib_prefix=unknown
15126 hardcode_into_libs=no
15128 # when you set need_version to no, make sure it does not cause -set_version
15129 # flags to be left without arguments
15130 need_version=unknown
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15136 shlibpath_var=LIBPATH
15138 # AIX 3 has no versioning support, so we append a major version to the name.
15139 soname_spec='${libname}${release}${shared_ext}$major'
15146 hardcode_into_libs=yes
15147 if test "$host_cpu" = ia64; then
15148 # AIX 5 supports IA64
15149 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15150 shlibpath_var=LD_LIBRARY_PATH
15152 # With GCC up to 2.95.x, collect2 would create an import file
15153 # for dependence libraries. The import file would start with
15154 # the line `#! .'. This would cause the generated library to
15155 # depend on `.', always an invalid library. This was fixed in
15156 # development snapshots of GCC prior to 3.0.
15158 aix4 | aix4.[01] | aix4.[01].*)
15159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15161 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15164 can_build_shared=no
15168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15169 # soname into executable. Probably we can add versioning support to
15170 # collect2, so additional links can be useful in future.
15171 if test "$aix_use_runtimelinking" = yes; then
15172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15173 # instead of lib<name>.a to let people know that these are not
15174 # typical AIX shared libraries.
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 # We preserve .a as extension for shared libraries through AIX4.2
15178 # and later when we are not doing run time linking.
15179 library_names_spec='${libname}${release}.a $libname.a'
15180 soname_spec='${libname}${release}${shared_ext}$major'
15182 shlibpath_var=LIBPATH
15189 # Since July 2007 AmigaOS4 officially supports .so libraries.
15190 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 library_names_spec='$libname.ixlibrary $libname.a'
15195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15196 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15202 library_names_spec='${libname}${shared_ext}'
15203 dynamic_linker="$host_os ld.so"
15204 shlibpath_var=LIBRARY_PATH
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15216 # the default ld.so.conf also contains /usr/contrib/lib and
15217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15218 # libtool to hard-code these into programs
15221 cygwin* | mingw* | pw32* | cegcc*)
15222 version_type=windows
15227 case $GCC,$host_os in
15228 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15229 library_names_spec='$libname.dll.a'
15230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231 postinstall_cmds='base_file=`basename \${file}`~
15232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15233 dldir=$destdir/`dirname \$dlpath`~
15234 test -d \$dldir || mkdir -p \$dldir~
15235 $install_prog $dir/$dlname \$dldir/$dlname~
15236 chmod a+x \$dldir/$dlname~
15237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15241 dlpath=$dir/\$dldll~
15243 shlibpath_overrides_runpath=yes
15247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15249 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15252 # MinGW DLLs use traditional 'lib' prefix
15253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15255 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15256 # It is most probably a Windows format PATH printed by
15257 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15258 # path with ; separators, and with drive letters. We can handle the
15259 # drive letters (cygwin fileutils understands them), so leave them,
15260 # especially as we might pass files found there to a mingw objdump,
15261 # which wouldn't understand a cygwinified path. Ahh.
15262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15268 # pw32 DLLs use 'pw' prefix rather than 'lib'
15269 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15275 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15278 dynamic_linker='Win32 ld.exe'
15279 # FIXME: first we should search . and the directory the executable is in
15283 darwin* | rhapsody*)
15284 dynamic_linker="$host_os dyld"
15285 version_type=darwin
15288 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15289 soname_spec='${libname}${release}${major}$shared_ext'
15290 shlibpath_overrides_runpath=yes
15291 shlibpath_var=DYLD_LIBRARY_PATH
15292 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15302 soname_spec='${libname}${release}${shared_ext}$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15310 freebsd* | dragonfly*)
15311 # DragonFly does not have aout. When/if they implement a new
15312 # versioning mechanism, adjust this.
15313 if test -x /usr/bin/objformat; then
15314 objformat=`/usr/bin/objformat`
15317 freebsd[123]*) objformat=aout ;;
15318 *) objformat=elf ;;
15321 version_type=freebsd-$objformat
15322 case $version_type in
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15333 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=yes
15338 freebsd3.[01]* | freebsdelf3.[01]*)
15339 shlibpath_overrides_runpath=yes
15340 hardcode_into_libs=yes
15342 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15343 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15344 shlibpath_overrides_runpath=no
15345 hardcode_into_libs=yes
15347 *) # from 4.6 on, and DragonFly
15348 shlibpath_overrides_runpath=yes
15349 hardcode_into_libs=yes
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 hardcode_into_libs=yes
15364 hpux9* | hpux10* | hpux11*)
15365 # Give a soname corresponding to the major version so that dld.sl refuses to
15366 # link against other versions.
15373 hardcode_into_libs=yes
15374 dynamic_linker="$host_os dld.so"
15375 shlibpath_var=LD_LIBRARY_PATH
15376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 if test "X$HPUX_IA64_MODE" = X32; then
15380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15388 hardcode_into_libs=yes
15389 dynamic_linker="$host_os dld.sl"
15390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15399 dynamic_linker="$host_os dld.sl"
15400 shlibpath_var=SHLIB_PATH
15401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15406 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15407 postinstall_cmds='chmod 555 $lib'
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=no
15419 hardcode_into_libs=yes
15422 irix5* | irix6* | nonstopux*)
15424 nonstopux*) version_type=nonstopux ;;
15426 if test "$lt_cv_prog_gnu_ld" = yes; then
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15437 irix5* | nonstopux*)
15438 libsuff= shlibsuff=
15441 case $LD in # libtool.m4 will add one of these switches to LD
15442 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15443 libsuff= shlibsuff= libmagic=32-bit;;
15444 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15445 libsuff=32 shlibsuff=N32 libmagic=N32;;
15446 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15447 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15448 *) libsuff= shlibsuff= libmagic=never-match;;
15452 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15453 shlibpath_overrides_runpath=no
15454 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15455 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15456 hardcode_into_libs=yes
15459 # No shared lib support for Linux oldld, aout, or coff.
15460 linux*oldld* | linux*aout* | linux*coff*)
15464 # This must be Linux ELF.
15465 linux* | k*bsd*-gnu)
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 shlibpath_overrides_runpath=no
15474 # Some binutils ld are patched to set DT_RUNPATH
15475 save_LDFLAGS=$LDFLAGS
15476 save_libdir=$libdir
15477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (ac_try="$ac_link"
15496 case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_link") 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } && {
15508 test -z "$ac_cxx_werror_flag" ||
15509 test ! -s conftest.err
15510 } && test -s conftest$ac_exeext &&
15511 $as_test_x conftest$ac_exeext; then
15512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15513 shlibpath_overrides_runpath=yes
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15524 conftest$ac_exeext conftest.$ac_ext
15525 LDFLAGS=$save_LDFLAGS
15526 libdir=$save_libdir
15528 # This implies no fast_install, which is unacceptable.
15529 # Some rework will be needed to allow for fast_install
15530 # before this can be enabled.
15531 hardcode_into_libs=yes
15533 # Append ld.so.conf contents to the search path
15534 if test -f /etc/ld.so.conf; then
15535 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15536 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15539 # We used to test for /lib/ld.so.1 and disable shared libraries on
15540 # powerpc, because MkLinux only supported shared libraries with the
15541 # GNU dynamic linker. Since this was broken with cross compilers,
15542 # most powerpc-linux boxes support dynamic linking these days and
15543 # people can always --disable-shared, the test was removed, and we
15544 # assume the GNU/Linux dynamic linker is in use.
15545 dynamic_linker='GNU/Linux ld.so'
15552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15555 dynamic_linker='NetBSD (a.out) ld.so'
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 dynamic_linker='NetBSD ld.elf_so'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes
15563 hardcode_into_libs=yes
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 shlibpath_overrides_runpath=yes
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 shlibpath_var=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath=no
15581 hardcode_into_libs=yes
15582 dynamic_linker='ldqnx.so'
15587 sys_lib_dlsearch_path_spec="/usr/lib"
15589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15591 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15592 *) need_version=no ;;
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15599 openbsd2.[89] | openbsd2.[89].*)
15600 shlibpath_overrides_runpath=no
15603 shlibpath_overrides_runpath=yes
15607 shlibpath_overrides_runpath=yes
15612 libname_spec='$name'
15615 library_names_spec='$libname${shared_ext} $libname.a'
15616 dynamic_linker='OS/2 ld.exe'
15617 shlibpath_var=LIBPATH
15620 osf3* | osf4* | osf5*)
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15628 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath=yes
15643 hardcode_into_libs=yes
15644 # ldd complains unless libraries are executable
15645 postinstall_cmds='chmod +x $lib'
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes
15654 if test "$with_gnu_ld" = yes; then
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 case $host_vendor in
15667 shlibpath_overrides_runpath=no
15669 runpath_var=LD_RUN_PATH
15677 shlibpath_overrides_runpath=no
15678 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15684 if test -d /usr/nec ;then
15686 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15687 soname_spec='$libname${shared_ext}.$major'
15688 shlibpath_var=LD_LIBRARY_PATH
15692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15693 version_type=freebsd-elf
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=yes
15700 hardcode_into_libs=yes
15701 if test "$with_gnu_ld" = yes; then
15702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15704 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15711 sys_lib_dlsearch_path_spec='/usr/lib'
15715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=no
15722 hardcode_into_libs=yes
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 shlibpath_var=LD_LIBRARY_PATH
15736 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15737 echo "${ECHO_T}$dynamic_linker" >&6; }
15738 test "$dynamic_linker" = no && can_build_shared=no
15740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15741 if test "$GCC" = yes; then
15742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15746 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15749 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15787 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15789 hardcode_action_CXX=
15790 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15791 test -n "$runpath_var_CXX" ||
15792 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15794 # We can hardcode non-existent directories.
15795 if test "$hardcode_direct_CXX" != no &&
15796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15797 # have to relink, otherwise we might link with an installed library
15798 # when we should be linking with a yet-to-be-installed one
15799 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15800 test "$hardcode_minus_L_CXX" != no; then
15801 # Linking always hardcodes the temporary library directory.
15802 hardcode_action_CXX=relink
15804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15805 hardcode_action_CXX=immediate
15808 # We cannot hardcode anything, or else we can only hardcode existing
15810 hardcode_action_CXX=unsupported
15812 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15813 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15815 if test "$hardcode_action_CXX" = relink ||
15816 test "$inherit_rpath_CXX" = yes; then
15817 # Fast installation is not supported
15818 enable_fast_install=no
15819 elif test "$shlibpath_overrides_runpath" = yes ||
15820 test "$enable_shared" = no; then
15821 # Fast installation is not necessary
15822 enable_fast_install=needless
15831 fi # test -n "$compiler"
15837 with_gnu_ld=$lt_save_with_gnu_ld
15838 lt_cv_path_LDCXX=$lt_cv_path_LD
15839 lt_cv_path_LD=$lt_save_path_LD
15840 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15841 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15842 fi # test "$_lt_caught_CXX_error" != yes
15845 ac_cpp='$CPP $CPPFLAGS'
15846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15862 ac_config_commands="$ac_config_commands libtool"
15867 # Only expand once:
15872 if test x$use_libtool != xno; then
15873 DEFAULT_OBJECT_TYPE=".lo"
15874 DEFAULT_ARCHIVE_TYPE=".la"
15875 DEFAULT_SHARED_OBJECT_TYPE=".la"
15876 LIBTOOL="\$(LIBTOOL)"
15877 LIBTOOL_INSTALL_TARGET="libtool-install"
15878 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15879 LIBTOOL_CLEAN_TARGET="libtool-clean"
15880 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15882 DEFAULT_OBJECT_TYPE=".o"
15883 DEFAULT_ARCHIVE_TYPE=".a"
15884 DEFAULT_SHARED_OBJECT_TYPE=".so"
15885 LIBTOOL="# \$(LIBTOOL)"
15886 LIBTOOL_INSTALL_TARGET=""
15887 LIBTOOL_UNINSTALL_TARGET=""
15888 LIBTOOL_CLEAN_TARGET=""
15889 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15901 # Check whether --enable-includes was given.
15902 if test "${enable_includes+set}" = set; then
15903 enableval=$enable_includes;
15904 if test x$enableval = xno; then
15905 install_includes=no
15913 if test x$use_libtool != xno -a x$install_includes != no; then
15914 INCLUDE_INSTALL_TARGET="install-includes"
15915 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15917 INCLUDE_INSTALL_TARGET=""
15918 INCLUDE_UNINSTALL_TARGET=""
15920 # Turn off install of includes
15921 INCLUDE_INSTALL_TARGET=""
15922 INCLUDE_UNINSTALL_TARGET=""
15927 { echo "$as_me:$LINENO: checking host system type" >&5
15928 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15929 if test "${ac_cv_host+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 if test "x$host_alias" = x; then
15933 ac_cv_host=$ac_cv_build
15935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15936 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15937 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15938 { (exit 1); exit 1; }; }
15942 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15943 echo "${ECHO_T}$ac_cv_host" >&6; }
15944 case $ac_cv_host in
15946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15947 echo "$as_me: error: invalid value of canonical host" >&2;}
15948 { (exit 1); exit 1; }; };;
15951 ac_save_IFS=$IFS; IFS='-'
15957 # Remember, the first character of IFS is used to create $*,
15958 # except with old shells:
15961 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15965 *cygwin* ) CYGWIN=yes;;
15969 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15975 HAVE_SUN_OS_FALSE='#'
15977 HAVE_SUN_OS_TRUE='#'
15980 cat >>confdefs.h <<\_ACEOF
15981 #define HAVE_SUN_OS 1
15989 HAVE_SUN_OS_FALSE='#'
15991 HAVE_SUN_OS_TRUE='#'
15996 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16002 HAVE_OSF1_OS_FALSE='#'
16004 HAVE_OSF1_OS_TRUE='#'
16005 HAVE_OSF1_OS_FALSE=
16007 cat >>confdefs.h <<\_ACEOF
16008 #define HAVE_OSF1_OS 1
16016 HAVE_OSF1_OS_FALSE='#'
16018 HAVE_OSF1_OS_TRUE='#'
16019 HAVE_OSF1_OS_FALSE=
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16029 HAVE_AIX_OS_FALSE='#'
16031 HAVE_AIX_OS_TRUE='#'
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_AIX_OS 1
16043 HAVE_AIX_OS_FALSE='#'
16045 HAVE_AIX_OS_TRUE='#'
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16056 HAVE_HPUX_OS_FALSE='#'
16058 HAVE_HPUX_OS_TRUE='#'
16059 HAVE_HPUX_OS_FALSE=
16061 cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_HPUX_OS 1
16070 HAVE_HPUX_OS_FALSE='#'
16072 HAVE_HPUX_OS_TRUE='#'
16073 HAVE_HPUX_OS_FALSE=
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16082 HAVE_LINUX_OS_TRUE=
16083 HAVE_LINUX_OS_FALSE='#'
16085 HAVE_LINUX_OS_TRUE='#'
16086 HAVE_LINUX_OS_FALSE=
16088 cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_LINUX_OS 1
16096 HAVE_LINUX_OS_TRUE=
16097 HAVE_LINUX_OS_FALSE='#'
16099 HAVE_LINUX_OS_TRUE='#'
16100 HAVE_LINUX_OS_FALSE=
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16109 HAVE_FREEBSD_OS_TRUE=
16110 HAVE_FREEBSD_OS_FALSE='#'
16112 HAVE_FREEBSD_OS_TRUE='#'
16113 HAVE_FREEBSD_OS_FALSE=
16115 cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_FREEBSD_OS 1
16123 HAVE_FREEBSD_OS_TRUE=
16124 HAVE_FREEBSD_OS_FALSE='#'
16126 HAVE_FREEBSD_OS_TRUE='#'
16127 HAVE_FREEBSD_OS_FALSE=
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16136 HAVE_NETBSD_OS_TRUE=
16137 HAVE_NETBSD_OS_FALSE='#'
16139 HAVE_NETBSD_OS_TRUE='#'
16140 HAVE_NETBSD_OS_FALSE=
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_NETBSD_OS 1
16150 HAVE_NETBSD_OS_TRUE=
16151 HAVE_NETBSD_OS_FALSE='#'
16153 HAVE_NETBSD_OS_TRUE='#'
16154 HAVE_NETBSD_OS_FALSE=
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16163 HAVE_OPENBSD_OS_TRUE=
16164 HAVE_OPENBSD_OS_FALSE='#'
16166 HAVE_OPENBSD_OS_TRUE='#'
16167 HAVE_OPENBSD_OS_FALSE=
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_OPENBSD_OS 1
16177 HAVE_OPENBSD_OS_TRUE=
16178 HAVE_OPENBSD_OS_FALSE='#'
16180 HAVE_OPENBSD_OS_TRUE='#'
16181 HAVE_OPENBSD_OS_FALSE=
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16191 HAVE_BSDI_OS_FALSE='#'
16193 HAVE_BSDI_OS_TRUE='#'
16194 HAVE_BSDI_OS_FALSE=
16196 cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_BSDI_OS 1
16205 HAVE_BSDI_OS_FALSE='#'
16207 HAVE_BSDI_OS_TRUE='#'
16208 HAVE_BSDI_OS_FALSE=
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16218 HAVE_SGI_OS_FALSE='#'
16220 HAVE_SGI_OS_TRUE='#'
16223 cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_SGI_OS 1
16232 HAVE_SGI_OS_FALSE='#'
16234 HAVE_SGI_OS_TRUE='#'
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16245 HAVE_IRIX_OS_FALSE='#'
16247 HAVE_IRIX_OS_TRUE='#'
16248 HAVE_IRIX_OS_FALSE=
16250 cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_IRIX_OS 1
16259 HAVE_IRIX_OS_FALSE='#'
16261 HAVE_IRIX_OS_TRUE='#'
16262 HAVE_IRIX_OS_FALSE=
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16271 HAVE_DARWIN_OS_TRUE=
16272 HAVE_DARWIN_OS_FALSE='#'
16274 HAVE_DARWIN_OS_TRUE='#'
16275 HAVE_DARWIN_OS_FALSE=
16277 cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_DARWIN_OS 1
16285 HAVE_DARWIN_OS_TRUE=
16286 HAVE_DARWIN_OS_FALSE='#'
16288 HAVE_DARWIN_OS_TRUE='#'
16289 HAVE_DARWIN_OS_FALSE=
16294 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16295 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16296 if test "x$DISTNAME" != "x"
16298 echo "distname set to $DISTNAME"
16299 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16302 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16305 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16308 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16311 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16314 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16323 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16326 elif test -f /etc/SuSE-release
16329 elif test -d /etc/SuSEconfig
16332 elif test -f /etc/mandrake-release
16335 elif test -f /etc/whitebox-release
16338 elif test -f /etc/redhat-release
16341 elif test -f /etc/gentoo-release
16344 elif test -f /etc/debian_version
16347 elif test -f /etc/slackware-version
16350 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16353 elif test -f /etc/engarde-version
16356 elif test "$CYGWIN" = yes
16359 cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_CYGWIN 1
16366 { echo "$as_me:$LINENO: result: done" >&5
16367 echo "${ECHO_T}done" >&6; }
16370 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16371 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16372 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16373 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 cat >conftest.make <<\_ACEOF
16379 @echo '@@@%%%=$(MAKE)=@@@%%%'
16381 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16382 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16383 *@@@%%%=?*=@@@%%%*)
16384 eval ac_cv_prog_make_${ac_make}_set=yes;;
16386 eval ac_cv_prog_make_${ac_make}_set=no;;
16388 rm -f conftest.make
16390 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16391 { echo "$as_me:$LINENO: result: yes" >&5
16392 echo "${ECHO_T}yes" >&6; }
16395 { echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6; }
16397 SET_MAKE="MAKE=${MAKE-make}"
16403 if test -n "$ac_aux_dir"; then
16404 case "$ac_aux_dir" in
16405 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16406 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16409 if test -z "$MKINSTALLDIRS"; then
16410 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16415 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16416 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16417 # Check whether --enable-nls was given.
16418 if test "${enable_nls+set}" = set; then
16419 enableval=$enable_nls; USE_NLS=$enableval
16424 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16425 echo "${ECHO_T}$USE_NLS" >&6; }
16432 # Prepare PATH_SEPARATOR.
16433 # The user is always right.
16434 if test "${PATH_SEPARATOR+set}" != set; then
16435 echo "#! /bin/sh" >conf$$.sh
16436 echo "exit 0" >>conf$$.sh
16438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16446 # Find out how to test for executable files. Don't use a zero-byte file,
16447 # as systems may use methods other than mode bits to determine executability.
16448 cat >conf$$.file <<_ASEOF
16452 chmod +x conf$$.file
16453 if test -x conf$$.file >/dev/null 2>&1; then
16454 ac_executable_p="test -x"
16456 ac_executable_p="test -f"
16460 # Extract the first word of "msgfmt", so it can be a program name with args.
16461 set dummy msgfmt; ac_word=$2
16462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16464 if test "${ac_cv_path_MSGFMT+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16472 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16473 for ac_dir in $PATH; do
16475 test -z "$ac_dir" && ac_dir=.
16476 for ac_exec_ext in '' $ac_executable_extensions; do
16477 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16478 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16479 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16480 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16481 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16488 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16492 MSGFMT="$ac_cv_path_MSGFMT"
16493 if test "$MSGFMT" != ":"; then
16494 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16495 echo "${ECHO_T}$MSGFMT" >&6; }
16497 { echo "$as_me:$LINENO: result: no" >&5
16498 echo "${ECHO_T}no" >&6; }
16501 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16502 set dummy gmsgfmt; ac_word=$2
16503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16505 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16517 test -z "$as_dir" && as_dir=.
16518 for ac_exec_ext in '' $ac_executable_extensions; do
16519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16520 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16528 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16532 GMSGFMT=$ac_cv_path_GMSGFMT
16533 if test -n "$GMSGFMT"; then
16534 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16535 echo "${ECHO_T}$GMSGFMT" >&6; }
16537 { echo "$as_me:$LINENO: result: no" >&5
16538 echo "${ECHO_T}no" >&6; }
16544 # Prepare PATH_SEPARATOR.
16545 # The user is always right.
16546 if test "${PATH_SEPARATOR+set}" != set; then
16547 echo "#! /bin/sh" >conf$$.sh
16548 echo "exit 0" >>conf$$.sh
16550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16558 # Find out how to test for executable files. Don't use a zero-byte file,
16559 # as systems may use methods other than mode bits to determine executability.
16560 cat >conf$$.file <<_ASEOF
16564 chmod +x conf$$.file
16565 if test -x conf$$.file >/dev/null 2>&1; then
16566 ac_executable_p="test -x"
16568 ac_executable_p="test -f"
16572 # Extract the first word of "xgettext", so it can be a program name with args.
16573 set dummy xgettext; ac_word=$2
16574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16576 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 case "$XGETTEXT" in
16581 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16584 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16585 for ac_dir in $PATH; do
16587 test -z "$ac_dir" && ac_dir=.
16588 for ac_exec_ext in '' $ac_executable_extensions; do
16589 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16590 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16591 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16592 (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
16593 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16600 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16604 XGETTEXT="$ac_cv_path_XGETTEXT"
16605 if test "$XGETTEXT" != ":"; then
16606 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16607 echo "${ECHO_T}$XGETTEXT" >&6; }
16609 { echo "$as_me:$LINENO: result: no" >&5
16610 echo "${ECHO_T}no" >&6; }
16616 # Prepare PATH_SEPARATOR.
16617 # The user is always right.
16618 if test "${PATH_SEPARATOR+set}" != set; then
16619 echo "#! /bin/sh" >conf$$.sh
16620 echo "exit 0" >>conf$$.sh
16622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16630 # Find out how to test for executable files. Don't use a zero-byte file,
16631 # as systems may use methods other than mode bits to determine executability.
16632 cat >conf$$.file <<_ASEOF
16636 chmod +x conf$$.file
16637 if test -x conf$$.file >/dev/null 2>&1; then
16638 ac_executable_p="test -x"
16640 ac_executable_p="test -f"
16644 # Extract the first word of "msgmerge", so it can be a program name with args.
16645 set dummy msgmerge; ac_word=$2
16646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16648 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 case "$MSGMERGE" in
16653 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16656 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16657 for ac_dir in $PATH; do
16659 test -z "$ac_dir" && ac_dir=.
16660 for ac_exec_ext in '' $ac_executable_extensions; do
16661 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16662 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16663 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16664 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16671 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16675 MSGMERGE="$ac_cv_path_MSGMERGE"
16676 if test "$MSGMERGE" != ":"; then
16677 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16678 echo "${ECHO_T}$MSGMERGE" >&6; }
16680 { echo "$as_me:$LINENO: result: no" >&5
16681 echo "${ECHO_T}no" >&6; }
16685 if test "$GMSGFMT" != ":"; then
16686 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16687 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16690 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16691 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16692 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16697 if test "$XGETTEXT" != ":"; then
16698 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16699 (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
16702 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16703 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16709 ac_config_commands="$ac_config_commands default-1"
16713 if test "X$prefix" = "XNONE"; then
16714 acl_final_prefix="$ac_default_prefix"
16716 acl_final_prefix="$prefix"
16718 if test "X$exec_prefix" = "XNONE"; then
16719 acl_final_exec_prefix='${prefix}'
16721 acl_final_exec_prefix="$exec_prefix"
16723 acl_save_prefix="$prefix"
16724 prefix="$acl_final_prefix"
16725 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16726 prefix="$acl_save_prefix"
16729 # Check whether --with-gnu-ld was given.
16730 if test "${with_gnu_ld+set}" = set; then
16731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16736 # Prepare PATH_SEPARATOR.
16737 # The user is always right.
16738 if test "${PATH_SEPARATOR+set}" != set; then
16739 echo "#! /bin/sh" >conf$$.sh
16740 echo "exit 0" >>conf$$.sh
16742 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16750 if test "$GCC" = yes; then
16751 # Check if gcc -print-prog-name=ld gives a path.
16752 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16753 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16756 # gcc leaves a trailing carriage return which upsets mingw
16757 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16759 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16762 # Accept absolute paths.
16763 [\\/]* | [A-Za-z]:[\\/]*)
16764 re_direlt='/[^/][^/]*/\.\./'
16765 # Canonicalize the path of ld
16766 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16767 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16768 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16770 test -z "$LD" && LD="$ac_prog"
16773 # If it fails, then pretend we aren't using GCC.
16777 # If it is relative, then search for the first ld in PATH.
16778 with_gnu_ld=unknown
16781 elif test "$with_gnu_ld" = yes; then
16782 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16785 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16788 if test "${acl_cv_path_LD+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 if test -z "$LD"; then
16792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16793 for ac_dir in $PATH; do
16794 test -z "$ac_dir" && ac_dir=.
16795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16796 acl_cv_path_LD="$ac_dir/$ac_prog"
16797 # Check to see if the program is GNU ld. I'd rather use --version,
16798 # but apparently some GNU ld's only accept -v.
16799 # Break only if it was the GNU/non-GNU ld that we prefer.
16800 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16801 *GNU* | *'with BFD'*)
16802 test "$with_gnu_ld" != no && break ;;
16804 test "$with_gnu_ld" != yes && break ;;
16810 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16814 LD="$acl_cv_path_LD"
16815 if test -n "$LD"; then
16816 { echo "$as_me:$LINENO: result: $LD" >&5
16817 echo "${ECHO_T}$LD" >&6; }
16819 { echo "$as_me:$LINENO: result: no" >&5
16820 echo "${ECHO_T}no" >&6; }
16822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16824 { (exit 1); exit 1; }; }
16825 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16827 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16831 case `$LD -v 2>&1 </dev/null` in
16832 *GNU* | *'with BFD'*)
16833 acl_cv_prog_gnu_ld=yes ;;
16835 acl_cv_prog_gnu_ld=no ;;
16838 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16839 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16840 with_gnu_ld=$acl_cv_prog_gnu_ld
16845 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16846 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16847 if test "${acl_cv_rpath+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16852 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16854 rm -f ./conftest.sh
16858 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16859 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16861 libext="$acl_cv_libext"
16862 shlibext="$acl_cv_shlibext"
16863 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16864 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16865 hardcode_direct="$acl_cv_hardcode_direct"
16866 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16867 # Check whether --enable-rpath was given.
16868 if test "${enable_rpath+set}" = set; then
16869 enableval=$enable_rpath; :
16883 acl_save_prefix="$prefix"
16884 prefix="$acl_final_prefix"
16885 acl_save_exec_prefix="$exec_prefix"
16886 exec_prefix="$acl_final_exec_prefix"
16888 eval additional_includedir=\"$includedir\"
16889 eval additional_libdir=\"$libdir\"
16891 exec_prefix="$acl_save_exec_prefix"
16892 prefix="$acl_save_prefix"
16895 # Check whether --with-libiconv-prefix was given.
16896 if test "${with_libiconv_prefix+set}" = set; then
16897 withval=$with_libiconv_prefix;
16898 if test "X$withval" = "Xno"; then
16901 if test "X$withval" = "X"; then
16903 acl_save_prefix="$prefix"
16904 prefix="$acl_final_prefix"
16905 acl_save_exec_prefix="$exec_prefix"
16906 exec_prefix="$acl_final_exec_prefix"
16908 eval additional_includedir=\"$includedir\"
16909 eval additional_libdir=\"$libdir\"
16911 exec_prefix="$acl_save_exec_prefix"
16912 prefix="$acl_save_prefix"
16915 additional_includedir="$withval/include"
16916 additional_libdir="$withval/lib"
16927 names_already_handled=
16928 names_next_round='iconv '
16929 while test -n "$names_next_round"; do
16930 names_this_round="$names_next_round"
16932 for name in $names_this_round; do
16934 for n in $names_already_handled; do
16935 if test "$n" = "$name"; then
16936 already_handled=yes
16940 if test -z "$already_handled"; then
16941 names_already_handled="$names_already_handled $name"
16942 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16943 eval value=\"\$HAVE_LIB$uppername\"
16944 if test -n "$value"; then
16945 if test "$value" = yes; then
16946 eval value=\"\$LIB$uppername\"
16947 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16948 eval value=\"\$LTLIB$uppername\"
16949 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16958 if test $use_additional = yes; then
16959 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16960 found_dir="$additional_libdir"
16961 found_so="$additional_libdir/lib$name.$shlibext"
16962 if test -f "$additional_libdir/lib$name.la"; then
16963 found_la="$additional_libdir/lib$name.la"
16966 if test -f "$additional_libdir/lib$name.$libext"; then
16967 found_dir="$additional_libdir"
16968 found_a="$additional_libdir/lib$name.$libext"
16969 if test -f "$additional_libdir/lib$name.la"; then
16970 found_la="$additional_libdir/lib$name.la"
16975 if test "X$found_dir" = "X"; then
16976 for x in $LDFLAGS $LTLIBICONV; do
16978 acl_save_prefix="$prefix"
16979 prefix="$acl_final_prefix"
16980 acl_save_exec_prefix="$exec_prefix"
16981 exec_prefix="$acl_final_exec_prefix"
16983 exec_prefix="$acl_save_exec_prefix"
16984 prefix="$acl_save_prefix"
16988 dir=`echo "X$x" | sed -e 's/^X-L//'`
16989 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16991 found_so="$dir/lib$name.$shlibext"
16992 if test -f "$dir/lib$name.la"; then
16993 found_la="$dir/lib$name.la"
16996 if test -f "$dir/lib$name.$libext"; then
16998 found_a="$dir/lib$name.$libext"
16999 if test -f "$dir/lib$name.la"; then
17000 found_la="$dir/lib$name.la"
17006 if test "X$found_dir" != "X"; then
17011 if test "X$found_dir" != "X"; then
17012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17013 if test "X$found_so" != "X"; then
17014 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17018 for x in $ltrpathdirs; do
17019 if test "X$x" = "X$found_dir"; then
17024 if test -z "$haveit"; then
17025 ltrpathdirs="$ltrpathdirs $found_dir"
17027 if test "$hardcode_direct" = yes; then
17028 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17030 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17031 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17033 for x in $rpathdirs; do
17034 if test "X$x" = "X$found_dir"; then
17039 if test -z "$haveit"; then
17040 rpathdirs="$rpathdirs $found_dir"
17044 for x in $LDFLAGS $LIBICONV; do
17046 acl_save_prefix="$prefix"
17047 prefix="$acl_final_prefix"
17048 acl_save_exec_prefix="$exec_prefix"
17049 exec_prefix="$acl_final_exec_prefix"
17051 exec_prefix="$acl_save_exec_prefix"
17052 prefix="$acl_save_prefix"
17054 if test "X$x" = "X-L$found_dir"; then
17059 if test -z "$haveit"; then
17060 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17062 if test "$hardcode_minus_L" != no; then
17063 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17065 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17071 if test "X$found_a" != "X"; then
17072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17074 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17077 additional_includedir=
17078 case "$found_dir" in
17080 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17081 additional_includedir="$basedir/include"
17084 if test "X$additional_includedir" != "X"; then
17085 if test "X$additional_includedir" != "X/usr/include"; then
17087 if test "X$additional_includedir" = "X/usr/local/include"; then
17088 if test -n "$GCC"; then
17090 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17094 if test -z "$haveit"; then
17095 for x in $CPPFLAGS $INCICONV; do
17097 acl_save_prefix="$prefix"
17098 prefix="$acl_final_prefix"
17099 acl_save_exec_prefix="$exec_prefix"
17100 exec_prefix="$acl_final_exec_prefix"
17102 exec_prefix="$acl_save_exec_prefix"
17103 prefix="$acl_save_prefix"
17105 if test "X$x" = "X-I$additional_includedir"; then
17110 if test -z "$haveit"; then
17111 if test -d "$additional_includedir"; then
17112 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17118 if test -n "$found_la"; then
17119 save_libdir="$libdir"
17120 case "$found_la" in
17121 */* | *\\*) . "$found_la" ;;
17122 *) . "./$found_la" ;;
17124 libdir="$save_libdir"
17125 for dep in $dependency_libs; do
17128 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17129 if test "X$additional_libdir" != "X/usr/lib"; then
17131 if test "X$additional_libdir" = "X/usr/local/lib"; then
17132 if test -n "$GCC"; then
17134 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17138 if test -z "$haveit"; then
17140 for x in $LDFLAGS $LIBICONV; do
17142 acl_save_prefix="$prefix"
17143 prefix="$acl_final_prefix"
17144 acl_save_exec_prefix="$exec_prefix"
17145 exec_prefix="$acl_final_exec_prefix"
17147 exec_prefix="$acl_save_exec_prefix"
17148 prefix="$acl_save_prefix"
17150 if test "X$x" = "X-L$additional_libdir"; then
17155 if test -z "$haveit"; then
17156 if test -d "$additional_libdir"; then
17157 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17161 for x in $LDFLAGS $LTLIBICONV; do
17163 acl_save_prefix="$prefix"
17164 prefix="$acl_final_prefix"
17165 acl_save_exec_prefix="$exec_prefix"
17166 exec_prefix="$acl_final_exec_prefix"
17168 exec_prefix="$acl_save_exec_prefix"
17169 prefix="$acl_save_prefix"
17171 if test "X$x" = "X-L$additional_libdir"; then
17176 if test -z "$haveit"; then
17177 if test -d "$additional_libdir"; then
17178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17185 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17186 if test "$enable_rpath" != no; then
17188 for x in $rpathdirs; do
17189 if test "X$x" = "X$dir"; then
17194 if test -z "$haveit"; then
17195 rpathdirs="$rpathdirs $dir"
17198 for x in $ltrpathdirs; do
17199 if test "X$x" = "X$dir"; then
17204 if test -z "$haveit"; then
17205 ltrpathdirs="$ltrpathdirs $dir"
17210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17213 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17216 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17223 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17224 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17230 if test "X$rpathdirs" != "X"; then
17231 if test -n "$hardcode_libdir_separator"; then
17233 for found_dir in $rpathdirs; do
17234 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17236 acl_save_libdir="$libdir"
17238 eval flag=\"$hardcode_libdir_flag_spec\"
17239 libdir="$acl_save_libdir"
17240 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17242 for found_dir in $rpathdirs; do
17243 acl_save_libdir="$libdir"
17244 libdir="$found_dir"
17245 eval flag=\"$hardcode_libdir_flag_spec\"
17246 libdir="$acl_save_libdir"
17247 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17251 if test "X$ltrpathdirs" != "X"; then
17252 for found_dir in $ltrpathdirs; do
17253 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17274 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17275 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17276 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 gt_save_CPPFLAGS="$CPPFLAGS"
17280 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17281 gt_save_LIBS="$LIBS"
17282 LIBS="$LIBS -framework CoreFoundation"
17283 cat >conftest.$ac_ext <<_ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 #include <CFPreferences.h>
17293 CFPreferencesCopyAppValue(NULL, NULL)
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && {
17312 test -z "$ac_c_werror_flag" ||
17313 test ! -s conftest.err
17314 } && test -s conftest$ac_exeext &&
17315 $as_test_x conftest$ac_exeext; then
17316 gt_cv_func_CFPreferencesCopyAppValue=yes
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 gt_cv_func_CFPreferencesCopyAppValue=no
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17326 CPPFLAGS="$gt_save_CPPFLAGS"
17327 LIBS="$gt_save_LIBS"
17329 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17330 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17331 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17333 cat >>confdefs.h <<\_ACEOF
17334 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17338 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17339 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17340 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 gt_save_CPPFLAGS="$CPPFLAGS"
17344 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17345 gt_save_LIBS="$LIBS"
17346 LIBS="$LIBS -framework CoreFoundation"
17347 cat >conftest.$ac_ext <<_ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 #include <CFLocale.h>
17357 CFLocaleCopyCurrent();
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_link") 2>conftest.er1
17371 grep -v '^ *+' conftest.er1 >conftest.err
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } && {
17376 test -z "$ac_c_werror_flag" ||
17377 test ! -s conftest.err
17378 } && test -s conftest$ac_exeext &&
17379 $as_test_x conftest$ac_exeext; then
17380 gt_cv_func_CFLocaleCopyCurrent=yes
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 gt_cv_func_CFLocaleCopyCurrent=no
17388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17389 conftest$ac_exeext conftest.$ac_ext
17390 CPPFLAGS="$gt_save_CPPFLAGS"
17391 LIBS="$gt_save_LIBS"
17393 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17394 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17395 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17397 cat >>confdefs.h <<\_ACEOF
17398 #define HAVE_CFLOCALECOPYCURRENT 1
17403 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17404 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17410 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17411 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17412 # Check whether --enable-nls was given.
17413 if test "${enable_nls+set}" = set; then
17414 enableval=$enable_nls; USE_NLS=$enableval
17419 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17420 echo "${ECHO_T}$USE_NLS" >&6; }
17429 if test "$USE_NLS" = "yes"; then
17430 gt_use_preinstalled_gnugettext=no
17437 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17438 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17439 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 cat >conftest.$ac_ext <<_ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 #include <libintl.h>
17449 extern int _nl_msg_cat_cntr;
17450 extern int *_nl_domain_bindings;
17454 bindtextdomain ("", "");
17455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (ac_try="$ac_link"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_link") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } && {
17474 test -z "$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17476 } && test -s conftest$ac_exeext &&
17477 $as_test_x conftest$ac_exeext; then
17478 gt_cv_func_gnugettext1_libc=yes
17480 echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17483 gt_cv_func_gnugettext1_libc=no
17486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17487 conftest$ac_exeext conftest.$ac_ext
17489 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17492 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17498 am_save_CPPFLAGS="$CPPFLAGS"
17500 for element in $INCICONV; do
17502 for x in $CPPFLAGS; do
17504 acl_save_prefix="$prefix"
17505 prefix="$acl_final_prefix"
17506 acl_save_exec_prefix="$exec_prefix"
17507 exec_prefix="$acl_final_exec_prefix"
17509 exec_prefix="$acl_save_exec_prefix"
17510 prefix="$acl_save_prefix"
17512 if test "X$x" = "X$element"; then
17517 if test -z "$haveit"; then
17518 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17523 { echo "$as_me:$LINENO: checking for iconv" >&5
17524 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17525 if test "${am_cv_func_iconv+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 am_cv_func_iconv="no, consider installing GNU libiconv"
17531 cat >conftest.$ac_ext <<_ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17537 #include <stdlib.h>
17542 iconv_t cd = iconv_open("","");
17543 iconv(cd,NULL,NULL,NULL,NULL);
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (ac_try="$ac_link"
17551 case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_link") 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } && {
17563 test -z "$ac_c_werror_flag" ||
17564 test ! -s conftest.err
17565 } && test -s conftest$ac_exeext &&
17566 $as_test_x conftest$ac_exeext; then
17567 am_cv_func_iconv=yes
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17576 conftest$ac_exeext conftest.$ac_ext
17577 if test "$am_cv_func_iconv" != yes; then
17578 am_save_LIBS="$LIBS"
17579 LIBS="$LIBS $LIBICONV"
17580 cat >conftest.$ac_ext <<_ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 #include <stdlib.h>
17591 iconv_t cd = iconv_open("","");
17592 iconv(cd,NULL,NULL,NULL,NULL);
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_link") 2>conftest.er1
17607 grep -v '^ *+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } && {
17612 test -z "$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 } && test -s conftest$ac_exeext &&
17615 $as_test_x conftest$ac_exeext; then
17616 am_cv_lib_iconv=yes
17617 am_cv_func_iconv=yes
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17627 LIBS="$am_save_LIBS"
17631 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17632 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17633 if test "$am_cv_func_iconv" = yes; then
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_ICONV 1
17640 if test "$am_cv_lib_iconv" = yes; then
17641 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17642 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17643 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17644 echo "${ECHO_T}$LIBICONV" >&6; }
17646 CPPFLAGS="$am_save_CPPFLAGS"
17658 acl_save_prefix="$prefix"
17659 prefix="$acl_final_prefix"
17660 acl_save_exec_prefix="$exec_prefix"
17661 exec_prefix="$acl_final_exec_prefix"
17663 eval additional_includedir=\"$includedir\"
17664 eval additional_libdir=\"$libdir\"
17666 exec_prefix="$acl_save_exec_prefix"
17667 prefix="$acl_save_prefix"
17670 # Check whether --with-libintl-prefix was given.
17671 if test "${with_libintl_prefix+set}" = set; then
17672 withval=$with_libintl_prefix;
17673 if test "X$withval" = "Xno"; then
17676 if test "X$withval" = "X"; then
17678 acl_save_prefix="$prefix"
17679 prefix="$acl_final_prefix"
17680 acl_save_exec_prefix="$exec_prefix"
17681 exec_prefix="$acl_final_exec_prefix"
17683 eval additional_includedir=\"$includedir\"
17684 eval additional_libdir=\"$libdir\"
17686 exec_prefix="$acl_save_exec_prefix"
17687 prefix="$acl_save_prefix"
17690 additional_includedir="$withval/include"
17691 additional_libdir="$withval/lib"
17702 names_already_handled=
17703 names_next_round='intl '
17704 while test -n "$names_next_round"; do
17705 names_this_round="$names_next_round"
17707 for name in $names_this_round; do
17709 for n in $names_already_handled; do
17710 if test "$n" = "$name"; then
17711 already_handled=yes
17715 if test -z "$already_handled"; then
17716 names_already_handled="$names_already_handled $name"
17717 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17718 eval value=\"\$HAVE_LIB$uppername\"
17719 if test -n "$value"; then
17720 if test "$value" = yes; then
17721 eval value=\"\$LIB$uppername\"
17722 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17723 eval value=\"\$LTLIB$uppername\"
17724 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17733 if test $use_additional = yes; then
17734 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17735 found_dir="$additional_libdir"
17736 found_so="$additional_libdir/lib$name.$shlibext"
17737 if test -f "$additional_libdir/lib$name.la"; then
17738 found_la="$additional_libdir/lib$name.la"
17741 if test -f "$additional_libdir/lib$name.$libext"; then
17742 found_dir="$additional_libdir"
17743 found_a="$additional_libdir/lib$name.$libext"
17744 if test -f "$additional_libdir/lib$name.la"; then
17745 found_la="$additional_libdir/lib$name.la"
17750 if test "X$found_dir" = "X"; then
17751 for x in $LDFLAGS $LTLIBINTL; do
17753 acl_save_prefix="$prefix"
17754 prefix="$acl_final_prefix"
17755 acl_save_exec_prefix="$exec_prefix"
17756 exec_prefix="$acl_final_exec_prefix"
17758 exec_prefix="$acl_save_exec_prefix"
17759 prefix="$acl_save_prefix"
17763 dir=`echo "X$x" | sed -e 's/^X-L//'`
17764 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17766 found_so="$dir/lib$name.$shlibext"
17767 if test -f "$dir/lib$name.la"; then
17768 found_la="$dir/lib$name.la"
17771 if test -f "$dir/lib$name.$libext"; then
17773 found_a="$dir/lib$name.$libext"
17774 if test -f "$dir/lib$name.la"; then
17775 found_la="$dir/lib$name.la"
17781 if test "X$found_dir" != "X"; then
17786 if test "X$found_dir" != "X"; then
17787 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17788 if test "X$found_so" != "X"; then
17789 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17790 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17793 for x in $ltrpathdirs; do
17794 if test "X$x" = "X$found_dir"; then
17799 if test -z "$haveit"; then
17800 ltrpathdirs="$ltrpathdirs $found_dir"
17802 if test "$hardcode_direct" = yes; then
17803 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17805 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17806 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17808 for x in $rpathdirs; do
17809 if test "X$x" = "X$found_dir"; then
17814 if test -z "$haveit"; then
17815 rpathdirs="$rpathdirs $found_dir"
17819 for x in $LDFLAGS $LIBINTL; do
17821 acl_save_prefix="$prefix"
17822 prefix="$acl_final_prefix"
17823 acl_save_exec_prefix="$exec_prefix"
17824 exec_prefix="$acl_final_exec_prefix"
17826 exec_prefix="$acl_save_exec_prefix"
17827 prefix="$acl_save_prefix"
17829 if test "X$x" = "X-L$found_dir"; then
17834 if test -z "$haveit"; then
17835 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17837 if test "$hardcode_minus_L" != no; then
17838 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17840 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17846 if test "X$found_a" != "X"; then
17847 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17849 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17852 additional_includedir=
17853 case "$found_dir" in
17855 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17856 additional_includedir="$basedir/include"
17859 if test "X$additional_includedir" != "X"; then
17860 if test "X$additional_includedir" != "X/usr/include"; then
17862 if test "X$additional_includedir" = "X/usr/local/include"; then
17863 if test -n "$GCC"; then
17865 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17869 if test -z "$haveit"; then
17870 for x in $CPPFLAGS $INCINTL; do
17872 acl_save_prefix="$prefix"
17873 prefix="$acl_final_prefix"
17874 acl_save_exec_prefix="$exec_prefix"
17875 exec_prefix="$acl_final_exec_prefix"
17877 exec_prefix="$acl_save_exec_prefix"
17878 prefix="$acl_save_prefix"
17880 if test "X$x" = "X-I$additional_includedir"; then
17885 if test -z "$haveit"; then
17886 if test -d "$additional_includedir"; then
17887 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17893 if test -n "$found_la"; then
17894 save_libdir="$libdir"
17895 case "$found_la" in
17896 */* | *\\*) . "$found_la" ;;
17897 *) . "./$found_la" ;;
17899 libdir="$save_libdir"
17900 for dep in $dependency_libs; do
17903 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17904 if test "X$additional_libdir" != "X/usr/lib"; then
17906 if test "X$additional_libdir" = "X/usr/local/lib"; then
17907 if test -n "$GCC"; then
17909 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17913 if test -z "$haveit"; then
17915 for x in $LDFLAGS $LIBINTL; do
17917 acl_save_prefix="$prefix"
17918 prefix="$acl_final_prefix"
17919 acl_save_exec_prefix="$exec_prefix"
17920 exec_prefix="$acl_final_exec_prefix"
17922 exec_prefix="$acl_save_exec_prefix"
17923 prefix="$acl_save_prefix"
17925 if test "X$x" = "X-L$additional_libdir"; then
17930 if test -z "$haveit"; then
17931 if test -d "$additional_libdir"; then
17932 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17936 for x in $LDFLAGS $LTLIBINTL; do
17938 acl_save_prefix="$prefix"
17939 prefix="$acl_final_prefix"
17940 acl_save_exec_prefix="$exec_prefix"
17941 exec_prefix="$acl_final_exec_prefix"
17943 exec_prefix="$acl_save_exec_prefix"
17944 prefix="$acl_save_prefix"
17946 if test "X$x" = "X-L$additional_libdir"; then
17951 if test -z "$haveit"; then
17952 if test -d "$additional_libdir"; then
17953 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17960 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17961 if test "$enable_rpath" != no; then
17963 for x in $rpathdirs; do
17964 if test "X$x" = "X$dir"; then
17969 if test -z "$haveit"; then
17970 rpathdirs="$rpathdirs $dir"
17973 for x in $ltrpathdirs; do
17974 if test "X$x" = "X$dir"; then
17979 if test -z "$haveit"; then
17980 ltrpathdirs="$ltrpathdirs $dir"
17985 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17988 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17991 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17992 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17998 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17999 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18005 if test "X$rpathdirs" != "X"; then
18006 if test -n "$hardcode_libdir_separator"; then
18008 for found_dir in $rpathdirs; do
18009 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18011 acl_save_libdir="$libdir"
18013 eval flag=\"$hardcode_libdir_flag_spec\"
18014 libdir="$acl_save_libdir"
18015 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18017 for found_dir in $rpathdirs; do
18018 acl_save_libdir="$libdir"
18019 libdir="$found_dir"
18020 eval flag=\"$hardcode_libdir_flag_spec\"
18021 libdir="$acl_save_libdir"
18022 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18026 if test "X$ltrpathdirs" != "X"; then
18027 for found_dir in $ltrpathdirs; do
18028 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18032 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18033 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18034 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 gt_save_CPPFLAGS="$CPPFLAGS"
18038 CPPFLAGS="$CPPFLAGS $INCINTL"
18039 gt_save_LIBS="$LIBS"
18040 LIBS="$LIBS $LIBINTL"
18041 cat >conftest.$ac_ext <<_ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 #include <libintl.h>
18048 extern int _nl_msg_cat_cntr;
18053 const char *_nl_expand_alias (const char *);
18057 bindtextdomain ("", "");
18058 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18063 rm -f conftest.$ac_objext conftest$ac_exeext
18064 if { (ac_try="$ac_link"
18065 case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_link") 2>conftest.er1
18072 grep -v '^ *+' conftest.er1 >conftest.err
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } && {
18077 test -z "$ac_c_werror_flag" ||
18078 test ! -s conftest.err
18079 } && test -s conftest$ac_exeext &&
18080 $as_test_x conftest$ac_exeext; then
18081 gt_cv_func_gnugettext1_libintl=yes
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18086 gt_cv_func_gnugettext1_libintl=no
18089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18090 conftest$ac_exeext conftest.$ac_ext
18091 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18092 LIBS="$LIBS $LIBICONV"
18093 cat >conftest.$ac_ext <<_ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 #include <libintl.h>
18100 extern int _nl_msg_cat_cntr;
18105 const char *_nl_expand_alias (const char *);
18109 bindtextdomain ("", "");
18110 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_link") 2>conftest.er1
18124 grep -v '^ *+' conftest.er1 >conftest.err
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } && {
18129 test -z "$ac_c_werror_flag" ||
18130 test ! -s conftest.err
18131 } && test -s conftest$ac_exeext &&
18132 $as_test_x conftest$ac_exeext; then
18133 LIBINTL="$LIBINTL $LIBICONV"
18134 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18135 gt_cv_func_gnugettext1_libintl=yes
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18145 conftest$ac_exeext conftest.$ac_ext
18147 CPPFLAGS="$gt_save_CPPFLAGS"
18148 LIBS="$gt_save_LIBS"
18150 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18151 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18154 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18155 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18156 && test "$PACKAGE" != gettext-runtime \
18157 && test "$PACKAGE" != gettext-tools; }; then
18158 gt_use_preinstalled_gnugettext=yes
18167 if test -n "$INTL_MACOSX_LIBS"; then
18168 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18169 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18170 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18171 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18175 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18176 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18178 cat >>confdefs.h <<\_ACEOF
18179 #define ENABLE_NLS 1
18187 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18188 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18189 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18190 echo "${ECHO_T}$USE_NLS" >&6; }
18191 if test "$USE_NLS" = "yes"; then
18192 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18193 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18194 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18195 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18196 gt_source="external libintl"
18201 gt_source="included intl directory"
18203 { echo "$as_me:$LINENO: result: $gt_source" >&5
18204 echo "${ECHO_T}$gt_source" >&6; }
18207 if test "$USE_NLS" = "yes"; then
18209 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18210 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18211 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18212 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18213 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18214 echo "${ECHO_T}$LIBINTL" >&6; }
18216 for element in $INCINTL; do
18218 for x in $CPPFLAGS; do
18220 acl_save_prefix="$prefix"
18221 prefix="$acl_final_prefix"
18222 acl_save_exec_prefix="$exec_prefix"
18223 exec_prefix="$acl_final_exec_prefix"
18225 exec_prefix="$acl_save_exec_prefix"
18226 prefix="$acl_save_prefix"
18228 if test "X$x" = "X$element"; then
18233 if test -z "$haveit"; then
18234 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_GETTEXT 1
18246 cat >>confdefs.h <<\_ACEOF
18247 #define HAVE_DCGETTEXT 1
18257 INTLLIBS="$LIBINTL"
18264 if test x${prefix} = xNONE ; then
18265 if test `eval echo ${datarootdir}` = NONE/share ; then
18266 datarootdir=/usr/share
18270 if test x${prefix} = xNONE ; then
18271 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18272 sysconfdir=/etc/bacula
18275 if test `eval echo ${libdir}` = NONE/lib ; then
18279 if test `eval echo ${includedir}` = NONE/include ; then
18280 includedir=/usr/include
18285 sysconfdir=`eval echo ${sysconfdir}`
18286 datarootdir=`eval echo ${datarootdir}`
18287 libdir=`eval echo ${libdir}`
18288 includedir=`eval echo ${includedir}'
18289 localedir=`eval echo ${datarootdir}/locale`
18290 cat >>confdefs.h <<_ACEOF
18291 #define SYSCONFDIR "$sysconfdir"
18294 cat >>confdefs.h <<_ACEOF
18295 #define LOCALEDIR "$localedir"
18299 if test x${exec_prefix} = xNONE ; then
18300 exec_prefix=${prefix}
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
23945 support_static_tools=no
23946 support_static_fd=no
23947 support_static_sd=no
23948 support_static_dir=no
23949 support_static_cons=no
23951 build_client_only=no
23959 # Check whether --enable-gnome was given.
23960 if test "${enable_gnome+set}" = set; then
23961 enableval=$enable_gnome;
23962 if test x$enableval = xyes; then
23971 if test x$support_gnome = xyes; then
23972 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23974 if test $pkg = 0; then
23975 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23976 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23977 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23978 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23983 GNOME_DIR=src/gnome2-console
23984 gnome_version="Version 2.x"
23986 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23987 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23988 { (exit 1); exit 1; }; }
23993 # Check whether --enable-bat was given.
23994 if test "${enable_bat+set}" = set; then
23995 enableval=$enable_bat;
23996 if test x$enableval = xyes; then
23998 cat >>confdefs.h <<\_ACEOF
24010 if test x$support_bat = xyes; then
24011 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24013 if test $pkg = 0; then
24014 BAT_DIR=src/qt-console
24016 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24017 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24018 { (exit 1); exit 1; }; }
24028 if test x$support_bat = xyes; then
24029 { echo "$as_me:$LINENO: checking for qwt support" >&5
24030 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24032 # Check whether --with-qwt was given.
24033 if test "${with_qwt+set}" = set; then
24035 case "$with_qwt" in
24040 if test -f ${with_qwt}/include/qwt.h; then
24041 QWT_INC="${with_qwt}/include"
24042 QWT_LDFLAGS="-L${with_qwt}/lib"
24053 if test $no_qwt = no; then
24054 if test x$QWT_INC = x; then
24055 for root in /usr /usr/local; do
24056 for ver in qwt qwt5 qwt-qt4; do
24057 if test -f ${root}/include/${ver}/qwt.h; then
24058 QWT_INC="${root}/include/${ver}"
24059 if test -d ${root}/lib64/; then
24060 QWT_LDFLAGS="-L${root}/lib64"
24061 elif test -d ${root}/lib/64/; then
24062 QWT_LDFLAGS="-L${root}/64"
24064 QWT_LDFLAGS="-L${root}/lib"
24075 if test x$QWT_INC = x; then
24076 { echo "$as_me:$LINENO: result: no" >&5
24077 echo "${ECHO_T}no" >&6; }
24080 cat >>confdefs.h <<\_ACEOF
24084 { echo "$as_me:$LINENO: result: yes" >&5
24085 echo "${ECHO_T}yes" >&6; }
24095 # Check whether --enable-bwx-console was given.
24096 if test "${enable_bwx_console+set}" = set; then
24097 enableval=$enable_bwx_console;
24098 if test x$enableval = xyes; then
24099 support_wx_console=yes
24107 if test x$support_wx_console = xyes; then
24108 abc=`$WXCONFIG $WXFLAGS --cppflags`
24110 if test $pkg = 0; then
24111 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24112 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24113 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24117 WX_DIR=src/wx-console
24120 echo "wx-config program not found. bwx-console disabled."
24122 support_wx_console=no
24127 # Check whether --enable-tray-monitor was given.
24128 if test "${enable_tray_monitor+set}" = set; then
24129 enableval=$enable_tray_monitor;
24130 if test x$enableval = xyes; then
24131 support_tray_monitor=yes
24139 if test x$support_tray_monitor = xyes; then
24140 abc=`$PKGCONFIG --exists gtk+-2.0`
24142 if test $pkg = 0; then
24143 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24144 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24147 TRAY_MONITOR_DIR=src/tray-monitor
24148 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24150 if test $pkg = 0; then
24152 cat >>confdefs.h <<\_ACEOF
24153 #define HAVE_GTK_2_4 1
24161 # Check whether --enable-smartalloc was given.
24162 if test "${enable_smartalloc+set}" = set; then
24163 enableval=$enable_smartalloc;
24164 if test x$enableval = xno; then
24165 support_smartalloc=no
24172 if test x$support_smartalloc = xyes; then
24174 cat >>confdefs.h <<\_ACEOF
24175 #define SMARTALLOC 1
24180 # Check whether --enable-static-tools was given.
24181 if test "${enable_static_tools+set}" = set; then
24182 enableval=$enable_static_tools;
24183 if test x$enableval = xyes; then
24184 support_static_tools=yes
24192 if test x$support_static_tools = xyes; then
24193 TTOOL_LDFLAGS="-static"
24197 # Check whether --enable-static-fd was given.
24198 if test "${enable_static_fd+set}" = set; then
24199 enableval=$enable_static_fd;
24200 if test x$enableval = xyes; then
24201 support_static_fd=yes
24209 if test x$support_static_fd = xyes; then
24210 STATIC_FD="static-bacula-fd"
24214 # Check whether --enable-static-sd was given.
24215 if test "${enable_static_sd+set}" = set; then
24216 enableval=$enable_static_sd;
24217 if test x$enableval = xyes; then
24218 support_static_sd=yes
24226 if test x$support_static_sd = xyes; then
24227 STATIC_SD="static-bacula-sd"
24231 # Check whether --enable-static-dir was given.
24232 if test "${enable_static_dir+set}" = set; then
24233 enableval=$enable_static_dir;
24234 if test x$enableval = xyes; then
24235 support_static_dir=yes
24243 if test x$support_static_dir = xyes; then
24244 STATIC_DIR="static-bacula-dir"
24248 # Check whether --enable-static-cons was given.
24249 if test "${enable_static_cons+set}" = set; then
24250 enableval=$enable_static_cons;
24251 if test x$enableval = xyes; then
24252 support_static_cons=yes
24262 if test x$support_static_cons = xyes; then
24263 STATIC_CONS="static-bconsole"
24264 STATIC_GNOME_CONS="static-bgnome-console"
24265 STATIC_WX_CONS="static-bwx-console"
24271 # Check whether --enable-client-only was given.
24272 if test "${enable_client_only+set}" = set; then
24273 enableval=$enable_client_only;
24274 if test x$enableval = xyes; then
24275 build_client_only=yes
24283 if test x$build_client_only = xno; then
24290 # Check whether --enable-build-dird was given.
24291 if test "${enable_build_dird+set}" = set; then
24292 enableval=$enable_build_dird;
24293 if test x$enableval = xno; then
24300 if test x$build_dird = xyes; then
24301 DIRD_DIR="src/dird"
24302 DIR_TOOLS="DIRTOOLS"
24305 DIR_TOOLS="NODIRTOOLS"
24310 # Check whether --enable-build-stored was given.
24311 if test "${enable_build_stored+set}" = set; then
24312 enableval=$enable_build_stored;
24313 if test x$enableval = xno; then
24320 if test x$build_stored = xyes; then
24321 STORED_DIR="src/stored"
24327 # Check whether --enable-conio was given.
24328 if test "${enable_conio+set}" = set; then
24329 enableval=$enable_conio;
24330 if test x$enableval = xno; then
24340 # Check whether --enable-ipv6 was given.
24341 if test "${enable_ipv6+set}" = set; then
24342 enableval=$enable_ipv6;
24343 if test x$enableval = xno; then
24351 if test x$support_ipv6 = xyes; then
24352 cat >conftest.$ac_ext <<_ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h. */
24358 #include <sys/types.h>
24359 #include <sys/socket.h>
24360 #include <netinet/in.h>
24364 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24369 rm -f conftest.$ac_objext conftest$ac_exeext
24370 if { (ac_try="$ac_link"
24371 case "(($ac_try" in
24372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373 *) ac_try_echo=$ac_try;;
24375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24376 (eval "$ac_link") 2>conftest.er1
24378 grep -v '^ *+' conftest.er1 >conftest.err
24380 cat conftest.err >&5
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); } && {
24383 test -z "$ac_c_werror_flag" ||
24384 test ! -s conftest.err
24385 } && test -s conftest$ac_exeext &&
24386 $as_test_x conftest$ac_exeext; then
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24396 conftest$ac_exeext conftest.$ac_ext
24399 if test x$support_ipv6 = xyes; then
24401 cat >>confdefs.h <<\_ACEOF
24402 #define HAVE_IPV6 1
24408 if test x$support_conio = xyes; then
24409 if test "${ac_cv_header_termcap_h+set}" = set; then
24410 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24411 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24412 if test "${ac_cv_header_termcap_h+set}" = set; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24415 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24416 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24418 # Is the header compilable?
24419 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24420 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24421 cat >conftest.$ac_ext <<_ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24428 #include <termcap.h>
24430 rm -f conftest.$ac_objext
24431 if { (ac_try="$ac_compile"
24432 case "(($ac_try" in
24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434 *) ac_try_echo=$ac_try;;
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437 (eval "$ac_compile") 2>conftest.er1
24439 grep -v '^ *+' conftest.er1 >conftest.err
24441 cat conftest.err >&5
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } && {
24444 test -z "$ac_c_werror_flag" ||
24445 test ! -s conftest.err
24446 } && test -s conftest.$ac_objext; then
24447 ac_header_compiler=yes
24449 echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24452 ac_header_compiler=no
24455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24457 echo "${ECHO_T}$ac_header_compiler" >&6; }
24459 # Is the header present?
24460 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24461 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24462 cat >conftest.$ac_ext <<_ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h. */
24468 #include <termcap.h>
24470 if { (ac_try="$ac_cpp conftest.$ac_ext"
24471 case "(($ac_try" in
24472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473 *) ac_try_echo=$ac_try;;
24475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24478 grep -v '^ *+' conftest.er1 >conftest.err
24480 cat conftest.err >&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); } >/dev/null && {
24483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24484 test ! -s conftest.err
24486 ac_header_preproc=yes
24488 echo "$as_me: failed program was:" >&5
24489 sed 's/^/| /' conftest.$ac_ext >&5
24491 ac_header_preproc=no
24494 rm -f conftest.err conftest.$ac_ext
24495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24496 echo "${ECHO_T}$ac_header_preproc" >&6; }
24498 # So? What about this header?
24499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24501 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24502 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24503 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24504 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24505 ac_header_preproc=yes
24508 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24509 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24510 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24511 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24512 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24513 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24514 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24515 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24516 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24517 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24518 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24519 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24523 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24524 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24525 if test "${ac_cv_header_termcap_h+set}" = set; then
24526 echo $ECHO_N "(cached) $ECHO_C" >&6
24528 ac_cv_header_termcap_h=$ac_header_preproc
24530 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24531 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24534 if test $ac_cv_header_termcap_h = yes; then
24535 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24536 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24537 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24538 echo $ECHO_N "(cached) $ECHO_C" >&6
24540 ac_check_lib_save_LIBS=$LIBS
24541 LIBS="-ltermcap $LIBS"
24542 cat >conftest.$ac_ext <<_ACEOF
24545 cat confdefs.h >>conftest.$ac_ext
24546 cat >>conftest.$ac_ext <<_ACEOF
24547 /* end confdefs.h. */
24549 /* Override any GCC internal prototype to avoid an error.
24550 Use char because int might match the return type of a GCC
24551 builtin and then its argument prototype would still apply. */
24564 rm -f conftest.$ac_objext conftest$ac_exeext
24565 if { (ac_try="$ac_link"
24566 case "(($ac_try" in
24567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568 *) ac_try_echo=$ac_try;;
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571 (eval "$ac_link") 2>conftest.er1
24573 grep -v '^ *+' conftest.er1 >conftest.err
24575 cat conftest.err >&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); } && {
24578 test -z "$ac_c_werror_flag" ||
24579 test ! -s conftest.err
24580 } && test -s conftest$ac_exeext &&
24581 $as_test_x conftest$ac_exeext; then
24582 ac_cv_lib_termcap_tgetent=yes
24584 echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24587 ac_cv_lib_termcap_tgetent=no
24590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24591 conftest$ac_exeext conftest.$ac_ext
24592 LIBS=$ac_check_lib_save_LIBS
24594 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24595 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24596 if test $ac_cv_lib_termcap_tgetent = yes; then
24597 CONS_LIBS="-ltermcap"
24601 support_readline=no
24603 cat >>confdefs.h <<\_ACEOF
24604 #define HAVE_CONIO 1
24609 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24610 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24611 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 ac_check_lib_save_LIBS=$LIBS
24615 LIBS="-lncurses $LIBS"
24616 cat >conftest.$ac_ext <<_ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h. */
24623 /* Override any GCC internal prototype to avoid an error.
24624 Use char because int might match the return type of a GCC
24625 builtin and then its argument prototype would still apply. */
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_link") 2>conftest.er1
24647 grep -v '^ *+' conftest.er1 >conftest.err
24649 cat conftest.err >&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } && {
24652 test -z "$ac_c_werror_flag" ||
24653 test ! -s conftest.err
24654 } && test -s conftest$ac_exeext &&
24655 $as_test_x conftest$ac_exeext; then
24656 ac_cv_lib_ncurses_tgetent=yes
24658 echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24661 ac_cv_lib_ncurses_tgetent=no
24664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24665 conftest$ac_exeext conftest.$ac_ext
24666 LIBS=$ac_check_lib_save_LIBS
24668 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24669 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24670 if test $ac_cv_lib_ncurses_tgetent = yes; then
24671 CONS_LIBS="-lncurses"
24675 support_readline=no
24677 cat >>confdefs.h <<\_ACEOF
24678 #define HAVE_CONIO 1
24691 for ac_header in curses.h
24693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24698 echo $ECHO_N "(cached) $ECHO_C" >&6
24700 ac_res=`eval echo '${'$as_ac_Header'}'`
24701 { echo "$as_me:$LINENO: result: $ac_res" >&5
24702 echo "${ECHO_T}$ac_res" >&6; }
24704 # Is the header compilable?
24705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24707 cat >conftest.$ac_ext <<_ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h. */
24713 $ac_includes_default
24714 #include <$ac_header>
24716 rm -f conftest.$ac_objext
24717 if { (ac_try="$ac_compile"
24718 case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_compile") 2>conftest.er1
24725 grep -v '^ *+' conftest.er1 >conftest.err
24727 cat conftest.err >&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } && {
24730 test -z "$ac_c_werror_flag" ||
24731 test ! -s conftest.err
24732 } && test -s conftest.$ac_objext; then
24733 ac_header_compiler=yes
24735 echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24738 ac_header_compiler=no
24741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24743 echo "${ECHO_T}$ac_header_compiler" >&6; }
24745 # Is the header present?
24746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24748 cat >conftest.$ac_ext <<_ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24754 #include <$ac_header>
24756 if { (ac_try="$ac_cpp conftest.$ac_ext"
24757 case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24764 grep -v '^ *+' conftest.er1 >conftest.err
24766 cat conftest.err >&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } >/dev/null && {
24769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24770 test ! -s conftest.err
24772 ac_header_preproc=yes
24774 echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24777 ac_header_preproc=no
24780 rm -f conftest.err conftest.$ac_ext
24781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24782 echo "${ECHO_T}$ac_header_preproc" >&6; }
24784 # So? What about this header?
24785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24791 ac_header_preproc=yes
24794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24812 echo $ECHO_N "(cached) $ECHO_C" >&6
24814 eval "$as_ac_Header=\$ac_header_preproc"
24816 ac_res=`eval echo '${'$as_ac_Header'}'`
24817 { echo "$as_me:$LINENO: result: $ac_res" >&5
24818 echo "${ECHO_T}$ac_res" >&6; }
24821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24822 cat >>confdefs.h <<_ACEOF
24823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24830 { echo "$as_me:$LINENO: checking for term.h" >&5
24831 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24832 if test "${ac_cv_header_term_h+set}" = set; then
24833 echo $ECHO_N "(cached) $ECHO_C" >&6
24835 cat >conftest.$ac_ext <<_ACEOF
24838 cat confdefs.h >>conftest.$ac_ext
24839 cat >>conftest.$ac_ext <<_ACEOF
24840 /* end confdefs.h. */
24842 #include <curses.h>
24848 rm -f conftest.$ac_objext
24849 if { (ac_try="$ac_compile"
24850 case "(($ac_try" in
24851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24857 grep -v '^ *+' conftest.er1 >conftest.err
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24865 ac_cv_header_term_h=yes
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_cv_header_term_h=no
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24876 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24877 if test $ac_cv_header_term_h = yes; then
24878 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24879 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24880 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 ac_check_lib_save_LIBS=$LIBS
24884 LIBS="-lcurses $LIBS"
24885 cat >conftest.$ac_ext <<_ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24892 /* Override any GCC internal prototype to avoid an error.
24893 Use char because int might match the return type of a GCC
24894 builtin and then its argument prototype would still apply. */
24907 rm -f conftest.$ac_objext conftest$ac_exeext
24908 if { (ac_try="$ac_link"
24909 case "(($ac_try" in
24910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24911 *) ac_try_echo=$ac_try;;
24913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24914 (eval "$ac_link") 2>conftest.er1
24916 grep -v '^ *+' conftest.er1 >conftest.err
24918 cat conftest.err >&5
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); } && {
24921 test -z "$ac_c_werror_flag" ||
24922 test ! -s conftest.err
24923 } && test -s conftest$ac_exeext &&
24924 $as_test_x conftest$ac_exeext; then
24925 ac_cv_lib_curses_tgetent=yes
24927 echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24930 ac_cv_lib_curses_tgetent=no
24933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24934 conftest$ac_exeext conftest.$ac_ext
24935 LIBS=$ac_check_lib_save_LIBS
24937 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24938 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24939 if test $ac_cv_lib_curses_tgetent = yes; then
24940 CONS_LIBS="-lcurses"
24944 support_readline=no
24946 cat >>confdefs.h <<\_ACEOF
24947 #define HAVE_CONIO 1
24955 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24966 # Check whether --enable-readline was given.
24967 if test "${enable_readline+set}" = set; then
24968 enableval=$enable_readline;
24969 if test x$enableval = xno; then
24970 support_readline=no
24979 if test x$support_readline = xyes; then
24981 # Check whether --with-readline was given.
24982 if test "${with_readline+set}" = set; then
24983 withval=$with_readline;
24984 case "$with_readline" in
24989 if test -f ${with_readline}/readline.h; then
24990 CONS_INC="-I${with_readline}"
24991 CONS_LDFLAGS="-L$with_readline"
24992 elif test -f ${with_readline}/include/readline/readline.h; then
24993 CONS_INC="-I${with_readline}/include/readline"
24994 CONS_LDFLAGS="-L${with_readline}/lib"
24995 with_readline="${with_readline}/include/readline"
24997 with_readline="/usr/include/readline"
25000 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25002 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25003 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25005 echo $ECHO_N "(cached) $ECHO_C" >&6
25007 ac_res=`eval echo '${'$as_ac_Header'}'`
25008 { echo "$as_me:$LINENO: result: $ac_res" >&5
25009 echo "${ECHO_T}$ac_res" >&6; }
25011 # Is the header compilable?
25012 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25013 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25014 cat >conftest.$ac_ext <<_ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h. */
25020 $ac_includes_default
25021 #include <${with_readline}/readline.h>
25023 rm -f conftest.$ac_objext
25024 if { (ac_try="$ac_compile"
25025 case "(($ac_try" in
25026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027 *) ac_try_echo=$ac_try;;
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030 (eval "$ac_compile") 2>conftest.er1
25032 grep -v '^ *+' conftest.er1 >conftest.err
25034 cat conftest.err >&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } && {
25037 test -z "$ac_c_werror_flag" ||
25038 test ! -s conftest.err
25039 } && test -s conftest.$ac_objext; then
25040 ac_header_compiler=yes
25042 echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25045 ac_header_compiler=no
25048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25050 echo "${ECHO_T}$ac_header_compiler" >&6; }
25052 # Is the header present?
25053 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25054 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25055 cat >conftest.$ac_ext <<_ACEOF
25058 cat confdefs.h >>conftest.$ac_ext
25059 cat >>conftest.$ac_ext <<_ACEOF
25060 /* end confdefs.h. */
25061 #include <${with_readline}/readline.h>
25063 if { (ac_try="$ac_cpp conftest.$ac_ext"
25064 case "(($ac_try" in
25065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066 *) ac_try_echo=$ac_try;;
25068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25071 grep -v '^ *+' conftest.er1 >conftest.err
25073 cat conftest.err >&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); } >/dev/null && {
25076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25077 test ! -s conftest.err
25079 ac_header_preproc=yes
25081 echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25084 ac_header_preproc=no
25087 rm -f conftest.err conftest.$ac_ext
25088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25089 echo "${ECHO_T}$ac_header_preproc" >&6; }
25091 # So? What about this header?
25092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25094 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25095 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25096 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25097 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25098 ac_header_preproc=yes
25101 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25102 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25103 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25104 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25105 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25106 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25107 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25108 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25109 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25110 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25111 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25112 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25116 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25117 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25119 echo $ECHO_N "(cached) $ECHO_C" >&6
25121 eval "$as_ac_Header=\$ac_header_preproc"
25123 ac_res=`eval echo '${'$as_ac_Header'}'`
25124 { echo "$as_me:$LINENO: result: $ac_res" >&5
25125 echo "${ECHO_T}$ac_res" >&6; }
25128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25131 cat >>confdefs.h <<\_ACEOF
25132 #define HAVE_READLINE 1
25135 CONS_LIBS="-lreadline -lhistory -ltermcap"
25141 echo "readline.h not found. readline turned off ..."
25153 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25154 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25155 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25156 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25157 echo $ECHO_N "(cached) $ECHO_C" >&6
25159 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25160 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25162 # Is the header compilable?
25163 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25164 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25165 cat >conftest.$ac_ext <<_ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h. */
25171 $ac_includes_default
25172 #include </usr/include/readline/readline.h>
25174 rm -f conftest.$ac_objext
25175 if { (ac_try="$ac_compile"
25176 case "(($ac_try" in
25177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178 *) ac_try_echo=$ac_try;;
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181 (eval "$ac_compile") 2>conftest.er1
25183 grep -v '^ *+' conftest.er1 >conftest.err
25185 cat conftest.err >&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } && {
25188 test -z "$ac_c_werror_flag" ||
25189 test ! -s conftest.err
25190 } && test -s conftest.$ac_objext; then
25191 ac_header_compiler=yes
25193 echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25196 ac_header_compiler=no
25199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25201 echo "${ECHO_T}$ac_header_compiler" >&6; }
25203 # Is the header present?
25204 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25205 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25212 #include </usr/include/readline/readline.h>
25214 if { (ac_try="$ac_cpp conftest.$ac_ext"
25215 case "(($ac_try" in
25216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25222 grep -v '^ *+' conftest.er1 >conftest.err
25224 cat conftest.err >&5
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } >/dev/null && {
25227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25228 test ! -s conftest.err
25230 ac_header_preproc=yes
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 ac_header_preproc=no
25238 rm -f conftest.err conftest.$ac_ext
25239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25240 echo "${ECHO_T}$ac_header_preproc" >&6; }
25242 # So? What about this header?
25243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25245 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25246 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25247 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25248 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25249 ac_header_preproc=yes
25252 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25253 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25254 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25255 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25256 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25257 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25258 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25259 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25260 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25261 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25262 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25263 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25267 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25268 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25269 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25270 echo $ECHO_N "(cached) $ECHO_C" >&6
25272 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25274 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25275 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25278 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25281 cat >>confdefs.h <<\_ACEOF
25282 #define HAVE_READLINE 1
25286 CONS_INC="-I/usr/include/readline"
25287 CONS_LIBS="-lreadline -ltermcap"
25291 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25293 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25294 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25296 echo $ECHO_N "(cached) $ECHO_C" >&6
25298 ac_res=`eval echo '${'$as_ac_Header'}'`
25299 { echo "$as_me:$LINENO: result: $ac_res" >&5
25300 echo "${ECHO_T}$ac_res" >&6; }
25302 # Is the header compilable?
25303 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25304 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25305 cat >conftest.$ac_ext <<_ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25311 $ac_includes_default
25312 #include <${TOP_DIR}/depkgs/readline/readline.h>
25314 rm -f conftest.$ac_objext
25315 if { (ac_try="$ac_compile"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321 (eval "$ac_compile") 2>conftest.er1
25323 grep -v '^ *+' conftest.er1 >conftest.err
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest.$ac_objext; then
25331 ac_header_compiler=yes
25333 echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25336 ac_header_compiler=no
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25341 echo "${ECHO_T}$ac_header_compiler" >&6; }
25343 # Is the header present?
25344 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25345 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25346 cat >conftest.$ac_ext <<_ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h. */
25352 #include <${TOP_DIR}/depkgs/readline/readline.h>
25354 if { (ac_try="$ac_cpp conftest.$ac_ext"
25355 case "(($ac_try" in
25356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357 *) ac_try_echo=$ac_try;;
25359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25362 grep -v '^ *+' conftest.er1 >conftest.err
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } >/dev/null && {
25367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25368 test ! -s conftest.err
25370 ac_header_preproc=yes
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25375 ac_header_preproc=no
25378 rm -f conftest.err conftest.$ac_ext
25379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25380 echo "${ECHO_T}$ac_header_preproc" >&6; }
25382 # So? What about this header?
25383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25385 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25386 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25388 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25389 ac_header_preproc=yes
25392 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25393 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25394 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25395 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25396 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25397 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25398 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25399 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25400 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25402 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25403 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25407 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25408 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25410 echo $ECHO_N "(cached) $ECHO_C" >&6
25412 eval "$as_ac_Header=\$ac_header_preproc"
25414 ac_res=`eval echo '${'$as_ac_Header'}'`
25415 { echo "$as_me:$LINENO: result: $ac_res" >&5
25416 echo "${ECHO_T}$ac_res" >&6; }
25419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25422 cat >>confdefs.h <<\_ACEOF
25423 #define HAVE_READLINE 1
25427 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25428 CONS_LIBS="-lreadline -lhistory -ltermcap"
25429 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25430 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25435 echo "readline.h not found. readline turned off ..."
25462 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25463 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25464 if test "${ac_cv_header_stat_broken+set}" = set; then
25465 echo $ECHO_N "(cached) $ECHO_C" >&6
25467 cat >conftest.$ac_ext <<_ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h. */
25473 #include <sys/types.h>
25474 #include <sys/stat.h>
25476 #if defined S_ISBLK && defined S_IFDIR
25477 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25480 #if defined S_ISBLK && defined S_IFCHR
25481 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25484 #if defined S_ISLNK && defined S_IFREG
25485 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25488 #if defined S_ISSOCK && defined S_IFREG
25489 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25493 rm -f conftest.$ac_objext
25494 if { (ac_try="$ac_compile"
25495 case "(($ac_try" in
25496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497 *) ac_try_echo=$ac_try;;
25499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25500 (eval "$ac_compile") 2>conftest.er1
25502 grep -v '^ *+' conftest.er1 >conftest.err
25504 cat conftest.err >&5
25505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); } && {
25507 test -z "$ac_c_werror_flag" ||
25508 test ! -s conftest.err
25509 } && test -s conftest.$ac_objext; then
25510 ac_cv_header_stat_broken=no
25512 echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25515 ac_cv_header_stat_broken=yes
25518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25520 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25521 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25522 if test $ac_cv_header_stat_broken = yes; then
25524 cat >>confdefs.h <<\_ACEOF
25525 #define STAT_MACROS_BROKEN 1
25535 ac_header_dirent=no
25536 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25537 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25538 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25539 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25543 cat >conftest.$ac_ext <<_ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h. */
25549 #include <sys/types.h>
25561 rm -f conftest.$ac_objext
25562 if { (ac_try="$ac_compile"
25563 case "(($ac_try" in
25564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565 *) ac_try_echo=$ac_try;;
25567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25568 (eval "$ac_compile") 2>conftest.er1
25570 grep -v '^ *+' conftest.er1 >conftest.err
25572 cat conftest.err >&5
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); } && {
25575 test -z "$ac_c_werror_flag" ||
25576 test ! -s conftest.err
25577 } && test -s conftest.$ac_objext; then
25578 eval "$as_ac_Header=yes"
25580 echo "$as_me: failed program was:" >&5
25581 sed 's/^/| /' conftest.$ac_ext >&5
25583 eval "$as_ac_Header=no"
25586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25588 ac_res=`eval echo '${'$as_ac_Header'}'`
25589 { echo "$as_me:$LINENO: result: $ac_res" >&5
25590 echo "${ECHO_T}$ac_res" >&6; }
25591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25592 cat >>confdefs.h <<_ACEOF
25593 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25596 ac_header_dirent=$ac_hdr; break
25600 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25601 if test $ac_header_dirent = dirent.h; then
25602 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25603 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25604 if test "${ac_cv_search_opendir+set}" = set; then
25605 echo $ECHO_N "(cached) $ECHO_C" >&6
25607 ac_func_search_save_LIBS=$LIBS
25608 cat >conftest.$ac_ext <<_ACEOF
25611 cat confdefs.h >>conftest.$ac_ext
25612 cat >>conftest.$ac_ext <<_ACEOF
25613 /* end confdefs.h. */
25615 /* Override any GCC internal prototype to avoid an error.
25616 Use char because int might match the return type of a GCC
25617 builtin and then its argument prototype would still apply. */
25630 for ac_lib in '' dir; do
25631 if test -z "$ac_lib"; then
25632 ac_res="none required"
25635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25637 rm -f conftest.$ac_objext conftest$ac_exeext
25638 if { (ac_try="$ac_link"
25639 case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_link") 2>conftest.er1
25646 grep -v '^ *+' conftest.er1 >conftest.err
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest$ac_exeext &&
25654 $as_test_x conftest$ac_exeext; then
25655 ac_cv_search_opendir=$ac_res
25657 echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25665 if test "${ac_cv_search_opendir+set}" = set; then
25669 if test "${ac_cv_search_opendir+set}" = set; then
25672 ac_cv_search_opendir=no
25674 rm conftest.$ac_ext
25675 LIBS=$ac_func_search_save_LIBS
25677 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25678 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25679 ac_res=$ac_cv_search_opendir
25680 if test "$ac_res" != no; then
25681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25686 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25687 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25688 if test "${ac_cv_search_opendir+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25691 ac_func_search_save_LIBS=$LIBS
25692 cat >conftest.$ac_ext <<_ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h. */
25699 /* Override any GCC internal prototype to avoid an error.
25700 Use char because int might match the return type of a GCC
25701 builtin and then its argument prototype would still apply. */
25714 for ac_lib in '' x; do
25715 if test -z "$ac_lib"; then
25716 ac_res="none required"
25719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25721 rm -f conftest.$ac_objext conftest$ac_exeext
25722 if { (ac_try="$ac_link"
25723 case "(($ac_try" in
25724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725 *) ac_try_echo=$ac_try;;
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728 (eval "$ac_link") 2>conftest.er1
25730 grep -v '^ *+' conftest.er1 >conftest.err
25732 cat conftest.err >&5
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); } && {
25735 test -z "$ac_c_werror_flag" ||
25736 test ! -s conftest.err
25737 } && test -s conftest$ac_exeext &&
25738 $as_test_x conftest$ac_exeext; then
25739 ac_cv_search_opendir=$ac_res
25741 echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25749 if test "${ac_cv_search_opendir+set}" = set; then
25753 if test "${ac_cv_search_opendir+set}" = set; then
25756 ac_cv_search_opendir=no
25758 rm conftest.$ac_ext
25759 LIBS=$ac_func_search_save_LIBS
25761 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25762 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25763 ac_res=$ac_cv_search_opendir
25764 if test "$ac_res" != no; then
25765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25778 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25786 cat >conftest.$ac_ext <<_ACEOF
25789 cat confdefs.h >>conftest.$ac_ext
25790 cat >>conftest.$ac_ext <<_ACEOF
25791 /* end confdefs.h. */
25792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25794 #define $ac_func innocuous_$ac_func
25796 /* System header to define __stub macros and hopefully few prototypes,
25797 which can conflict with char $ac_func (); below.
25798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25799 <limits.h> exists even on freestanding compilers. */
25802 # include <limits.h>
25804 # include <assert.h>
25809 /* Override any GCC internal prototype to avoid an error.
25810 Use char because int might match the return type of a GCC
25811 builtin and then its argument prototype would still apply. */
25816 /* The GNU C library defines this for functions which it implements
25817 to always fail with ENOSYS. Some functions are actually named
25818 something starting with __ and the normal name is an alias. */
25819 #if defined __stub_$ac_func || defined __stub___$ac_func
25826 return $ac_func ();
25831 rm -f conftest.$ac_objext conftest$ac_exeext
25832 if { (ac_try="$ac_link"
25833 case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25838 (eval "$ac_link") 2>conftest.er1
25840 grep -v '^ *+' conftest.er1 >conftest.err
25842 cat conftest.err >&5
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); } && {
25845 test -z "$ac_c_werror_flag" ||
25846 test ! -s conftest.err
25847 } && test -s conftest$ac_exeext &&
25848 $as_test_x conftest$ac_exeext; then
25849 eval "$as_ac_var=yes"
25851 echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25854 eval "$as_ac_var=no"
25857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25858 conftest$ac_exeext conftest.$ac_ext
25860 ac_res=`eval echo '${'$as_ac_var'}'`
25861 { echo "$as_me:$LINENO: result: $ac_res" >&5
25862 echo "${ECHO_T}$ac_res" >&6; }
25863 if test `eval echo '${'$as_ac_var'}'` = yes; then
25864 cat >>confdefs.h <<_ACEOF
25865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25873 for ac_func in nanosleep nl_langinfo
25875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25879 echo $ECHO_N "(cached) $ECHO_C" >&6
25881 cat >conftest.$ac_ext <<_ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h. */
25887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25889 #define $ac_func innocuous_$ac_func
25891 /* System header to define __stub macros and hopefully few prototypes,
25892 which can conflict with char $ac_func (); below.
25893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25894 <limits.h> exists even on freestanding compilers. */
25897 # include <limits.h>
25899 # include <assert.h>
25904 /* Override any GCC internal prototype to avoid an error.
25905 Use char because int might match the return type of a GCC
25906 builtin and then its argument prototype would still apply. */
25911 /* The GNU C library defines this for functions which it implements
25912 to always fail with ENOSYS. Some functions are actually named
25913 something starting with __ and the normal name is an alias. */
25914 #if defined __stub_$ac_func || defined __stub___$ac_func
25921 return $ac_func ();
25926 rm -f conftest.$ac_objext conftest$ac_exeext
25927 if { (ac_try="$ac_link"
25928 case "(($ac_try" in
25929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25930 *) ac_try_echo=$ac_try;;
25932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25933 (eval "$ac_link") 2>conftest.er1
25935 grep -v '^ *+' conftest.er1 >conftest.err
25937 cat conftest.err >&5
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); } && {
25940 test -z "$ac_c_werror_flag" ||
25941 test ! -s conftest.err
25942 } && test -s conftest$ac_exeext &&
25943 $as_test_x conftest$ac_exeext; then
25944 eval "$as_ac_var=yes"
25946 echo "$as_me: failed program was:" >&5
25947 sed 's/^/| /' conftest.$ac_ext >&5
25949 eval "$as_ac_var=no"
25952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25953 conftest$ac_exeext conftest.$ac_ext
25955 ac_res=`eval echo '${'$as_ac_var'}'`
25956 { echo "$as_me:$LINENO: result: $ac_res" >&5
25957 echo "${ECHO_T}$ac_res" >&6; }
25958 if test `eval echo '${'$as_ac_var'}'` = yes; then
25959 cat >>confdefs.h <<_ACEOF
25960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25967 for ac_header in varargs.h
25969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25974 echo $ECHO_N "(cached) $ECHO_C" >&6
25976 ac_res=`eval echo '${'$as_ac_Header'}'`
25977 { echo "$as_me:$LINENO: result: $ac_res" >&5
25978 echo "${ECHO_T}$ac_res" >&6; }
25980 # Is the header compilable?
25981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25983 cat >conftest.$ac_ext <<_ACEOF
25986 cat confdefs.h >>conftest.$ac_ext
25987 cat >>conftest.$ac_ext <<_ACEOF
25988 /* end confdefs.h. */
25989 $ac_includes_default
25990 #include <$ac_header>
25992 rm -f conftest.$ac_objext
25993 if { (ac_try="$ac_compile"
25994 case "(($ac_try" in
25995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25996 *) ac_try_echo=$ac_try;;
25998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25999 (eval "$ac_compile") 2>conftest.er1
26001 grep -v '^ *+' conftest.er1 >conftest.err
26003 cat conftest.err >&5
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } && {
26006 test -z "$ac_c_werror_flag" ||
26007 test ! -s conftest.err
26008 } && test -s conftest.$ac_objext; then
26009 ac_header_compiler=yes
26011 echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26014 ac_header_compiler=no
26017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26019 echo "${ECHO_T}$ac_header_compiler" >&6; }
26021 # Is the header present?
26022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26024 cat >conftest.$ac_ext <<_ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h. */
26030 #include <$ac_header>
26032 if { (ac_try="$ac_cpp conftest.$ac_ext"
26033 case "(($ac_try" in
26034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26035 *) ac_try_echo=$ac_try;;
26037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26040 grep -v '^ *+' conftest.er1 >conftest.err
26042 cat conftest.err >&5
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); } >/dev/null && {
26045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26046 test ! -s conftest.err
26048 ac_header_preproc=yes
26050 echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26053 ac_header_preproc=no
26056 rm -f conftest.err conftest.$ac_ext
26057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26058 echo "${ECHO_T}$ac_header_preproc" >&6; }
26060 # So? What about this header?
26061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26067 ac_header_preproc=yes
26070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26088 echo $ECHO_N "(cached) $ECHO_C" >&6
26090 eval "$as_ac_Header=\$ac_header_preproc"
26092 ac_res=`eval echo '${'$as_ac_Header'}'`
26093 { echo "$as_me:$LINENO: result: $ac_res" >&5
26094 echo "${ECHO_T}$ac_res" >&6; }
26097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26098 cat >>confdefs.h <<_ACEOF
26099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26108 { echo "$as_me:$LINENO: checking for Python support" >&5
26109 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26111 # Check whether --with-python was given.
26112 if test "${with_python+set}" = set; then
26113 withval=$with_python;
26116 if test "$withval" != "no"; then
26117 if test "$withval" = "yes"; then
26118 for python_root in /usr /usr/local /usr/sfw; do
26119 for ver in python2.2 python2.3 python2.4 python2.5; do
26120 if test -f $python_root/include/${ver}/Python.h; then
26121 PYTHON_INCDIR=-I$python_root/include/${ver}
26122 if test -d $python_root/lib64/${ver}/config; then
26123 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26125 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26132 if test x$PYTHON_INCDIR = x; then
26133 if test -f $prefix/include/Python.h; then
26134 PYTHON_INCDIR=-I$prefix/include
26135 if test -d $prefix/lib64/config; then
26136 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26138 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26141 { echo "$as_me:$LINENO: result: no" >&5
26142 echo "${ECHO_T}no" >&6; }
26143 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26144 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26145 { (exit 1); exit 1; }; }
26149 if test -f $withval/Python.h; then
26150 PYTHON_INCDIR=-I$withval
26151 PYTHON_LIBS="-L$withval/config -lpython"
26152 elif test -f $withval/include/Python.h; then
26153 PYTHON_INCDIR=-I$withval/include
26154 if test -d $withval/lib64/config; then
26155 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26157 PYTHON_LIBS="-L$withval/lib/config -lpython"
26159 elif test -f $withval/include/python/Python.h; then
26160 PYTHON_INCDIR=-I$withval/include/python
26161 if test -d $withval/lib64/python/config; then
26162 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26164 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26167 { echo "$as_me:$LINENO: result: no" >&5
26168 echo "${ECHO_T}no" >&6; }
26169 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26170 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26171 { (exit 1); exit 1; }; }
26175 cat >>confdefs.h <<\_ACEOF
26176 #define HAVE_PYTHON 1
26179 { echo "$as_me:$LINENO: result: yes" >&5
26180 echo "${ECHO_T}yes" >&6; }
26182 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26183 echo "$as_me: checking for more Python libs" >&6;}
26184 saved_LIBS="$LIBS"; LIBS=
26185 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26186 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26187 if test "${ac_cv_search_shm_open+set}" = set; then
26188 echo $ECHO_N "(cached) $ECHO_C" >&6
26190 ac_func_search_save_LIBS=$LIBS
26191 cat >conftest.$ac_ext <<_ACEOF
26194 cat confdefs.h >>conftest.$ac_ext
26195 cat >>conftest.$ac_ext <<_ACEOF
26196 /* end confdefs.h. */
26198 /* Override any GCC internal prototype to avoid an error.
26199 Use char because int might match the return type of a GCC
26200 builtin and then its argument prototype would still apply. */
26208 return shm_open ();
26213 for ac_lib in '' rt; do
26214 if test -z "$ac_lib"; then
26215 ac_res="none required"
26218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26220 rm -f conftest.$ac_objext conftest$ac_exeext
26221 if { (ac_try="$ac_link"
26222 case "(($ac_try" in
26223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26224 *) ac_try_echo=$ac_try;;
26226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26227 (eval "$ac_link") 2>conftest.er1
26229 grep -v '^ *+' conftest.er1 >conftest.err
26231 cat conftest.err >&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); } && {
26234 test -z "$ac_c_werror_flag" ||
26235 test ! -s conftest.err
26236 } && test -s conftest$ac_exeext &&
26237 $as_test_x conftest$ac_exeext; then
26238 ac_cv_search_shm_open=$ac_res
26240 echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26248 if test "${ac_cv_search_shm_open+set}" = set; then
26252 if test "${ac_cv_search_shm_open+set}" = set; then
26255 ac_cv_search_shm_open=no
26257 rm conftest.$ac_ext
26258 LIBS=$ac_func_search_save_LIBS
26260 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26261 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26262 ac_res=$ac_cv_search_shm_open
26263 if test "$ac_res" != no; then
26264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26269 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26270 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26271 if test "${ac_cv_lib_util_openpty+set}" = set; then
26272 echo $ECHO_N "(cached) $ECHO_C" >&6
26274 ac_check_lib_save_LIBS=$LIBS
26275 LIBS="-lutil $LIBS"
26276 cat >conftest.$ac_ext <<_ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h. */
26283 /* Override any GCC internal prototype to avoid an error.
26284 Use char because int might match the return type of a GCC
26285 builtin and then its argument prototype would still apply. */
26298 rm -f conftest.$ac_objext conftest$ac_exeext
26299 if { (ac_try="$ac_link"
26300 case "(($ac_try" in
26301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302 *) ac_try_echo=$ac_try;;
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305 (eval "$ac_link") 2>conftest.er1
26307 grep -v '^ *+' conftest.er1 >conftest.err
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } && {
26312 test -z "$ac_c_werror_flag" ||
26313 test ! -s conftest.err
26314 } && test -s conftest$ac_exeext &&
26315 $as_test_x conftest$ac_exeext; then
26316 ac_cv_lib_util_openpty=yes
26318 echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26321 ac_cv_lib_util_openpty=no
26324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26325 conftest$ac_exeext conftest.$ac_ext
26326 LIBS=$ac_check_lib_save_LIBS
26328 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26329 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26330 if test $ac_cv_lib_util_openpty = yes; then
26331 cat >>confdefs.h <<_ACEOF
26332 #define HAVE_LIBUTIL 1
26335 LIBS="-lutil $LIBS"
26339 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26342 { echo "$as_me:$LINENO: result: no" >&5
26343 echo "${ECHO_T}no" >&6; }
26348 { echo "$as_me:$LINENO: result: no" >&5
26349 echo "${ECHO_T}no" >&6; }
26357 { echo "$as_me:$LINENO: checking for socket" >&5
26358 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26359 if test "${ac_cv_func_socket+set}" = set; then
26360 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 cat >conftest.$ac_ext <<_ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h. */
26368 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26370 #define socket innocuous_socket
26372 /* System header to define __stub macros and hopefully few prototypes,
26373 which can conflict with char socket (); below.
26374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26375 <limits.h> exists even on freestanding compilers. */
26378 # include <limits.h>
26380 # include <assert.h>
26385 /* Override any GCC internal prototype to avoid an error.
26386 Use char because int might match the return type of a GCC
26387 builtin and then its argument prototype would still apply. */
26392 /* The GNU C library defines this for functions which it implements
26393 to always fail with ENOSYS. Some functions are actually named
26394 something starting with __ and the normal name is an alias. */
26395 #if defined __stub_socket || defined __stub___socket
26407 rm -f conftest.$ac_objext conftest$ac_exeext
26408 if { (ac_try="$ac_link"
26409 case "(($ac_try" in
26410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26411 *) ac_try_echo=$ac_try;;
26413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26414 (eval "$ac_link") 2>conftest.er1
26416 grep -v '^ *+' conftest.er1 >conftest.err
26418 cat conftest.err >&5
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); } && {
26421 test -z "$ac_c_werror_flag" ||
26422 test ! -s conftest.err
26423 } && test -s conftest$ac_exeext &&
26424 $as_test_x conftest$ac_exeext; then
26425 ac_cv_func_socket=yes
26427 echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26430 ac_cv_func_socket=no
26433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26434 conftest$ac_exeext conftest.$ac_ext
26436 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26437 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26438 if test $ac_cv_func_socket = yes; then
26439 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26440 echo "${ECHO_T}using libc's socket" >&6; }
26443 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26444 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26445 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26448 ac_check_lib_save_LIBS=$LIBS
26449 LIBS="-lxnet $LIBS"
26450 cat >conftest.$ac_ext <<_ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26457 /* Override any GCC internal prototype to avoid an error.
26458 Use char because int might match the return type of a GCC
26459 builtin and then its argument prototype would still apply. */
26472 rm -f conftest.$ac_objext conftest$ac_exeext
26473 if { (ac_try="$ac_link"
26474 case "(($ac_try" in
26475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26476 *) ac_try_echo=$ac_try;;
26478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26479 (eval "$ac_link") 2>conftest.er1
26481 grep -v '^ *+' conftest.er1 >conftest.err
26483 cat conftest.err >&5
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } && {
26486 test -z "$ac_c_werror_flag" ||
26487 test ! -s conftest.err
26488 } && test -s conftest$ac_exeext &&
26489 $as_test_x conftest$ac_exeext; then
26490 ac_cv_lib_xnet_socket=yes
26492 echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26495 ac_cv_lib_xnet_socket=no
26498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26499 conftest$ac_exeext conftest.$ac_ext
26500 LIBS=$ac_check_lib_save_LIBS
26502 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26503 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26504 if test $ac_cv_lib_xnet_socket = yes; then
26505 cat >>confdefs.h <<_ACEOF
26506 #define HAVE_LIBXNET 1
26509 LIBS="-lxnet $LIBS"
26514 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26515 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26516 if test "${ac_cv_lib_socket_socket+set}" = set; then
26517 echo $ECHO_N "(cached) $ECHO_C" >&6
26519 ac_check_lib_save_LIBS=$LIBS
26520 LIBS="-lsocket $LIBS"
26521 cat >conftest.$ac_ext <<_ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h. */
26528 /* Override any GCC internal prototype to avoid an error.
26529 Use char because int might match the return type of a GCC
26530 builtin and then its argument prototype would still apply. */
26543 rm -f conftest.$ac_objext conftest$ac_exeext
26544 if { (ac_try="$ac_link"
26545 case "(($ac_try" in
26546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26547 *) ac_try_echo=$ac_try;;
26549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26550 (eval "$ac_link") 2>conftest.er1
26552 grep -v '^ *+' conftest.er1 >conftest.err
26554 cat conftest.err >&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); } && {
26557 test -z "$ac_c_werror_flag" ||
26558 test ! -s conftest.err
26559 } && test -s conftest$ac_exeext &&
26560 $as_test_x conftest$ac_exeext; then
26561 ac_cv_lib_socket_socket=yes
26563 echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26566 ac_cv_lib_socket_socket=no
26569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26570 conftest$ac_exeext conftest.$ac_ext
26571 LIBS=$ac_check_lib_save_LIBS
26573 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26574 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26575 if test $ac_cv_lib_socket_socket = yes; then
26576 cat >>confdefs.h <<_ACEOF
26577 #define HAVE_LIBSOCKET 1
26580 LIBS="-lsocket $LIBS"
26585 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26586 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26587 if test "${ac_cv_lib_inet_socket+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26590 ac_check_lib_save_LIBS=$LIBS
26591 LIBS="-linet $LIBS"
26592 cat >conftest.$ac_ext <<_ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26599 /* Override any GCC internal prototype to avoid an error.
26600 Use char because int might match the return type of a GCC
26601 builtin and then its argument prototype would still apply. */
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (ac_try="$ac_link"
26616 case "(($ac_try" in
26617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618 *) ac_try_echo=$ac_try;;
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621 (eval "$ac_link") 2>conftest.er1
26623 grep -v '^ *+' conftest.er1 >conftest.err
26625 cat conftest.err >&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); } && {
26628 test -z "$ac_c_werror_flag" ||
26629 test ! -s conftest.err
26630 } && test -s conftest$ac_exeext &&
26631 $as_test_x conftest$ac_exeext; then
26632 ac_cv_lib_inet_socket=yes
26634 echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26637 ac_cv_lib_inet_socket=no
26640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26641 conftest$ac_exeext conftest.$ac_ext
26642 LIBS=$ac_check_lib_save_LIBS
26644 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26645 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26646 if test $ac_cv_lib_inet_socket = yes; then
26647 cat >>confdefs.h <<_ACEOF
26648 #define HAVE_LIBINET 1
26651 LIBS="-linet $LIBS"
26661 # Check whether --with-tcp-wrappers was given.
26662 if test "${with_tcp_wrappers+set}" = set; then
26663 withval=$with_tcp_wrappers;
26664 if test "x$withval" != "xno" ; then
26666 LIBS="$saved_LIBS -lwrap"
26667 { echo "$as_me:$LINENO: checking for libwrap" >&5
26668 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26669 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26670 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26671 if test "${ac_cv_search_nanosleep+set}" = set; then
26672 echo $ECHO_N "(cached) $ECHO_C" >&6
26674 ac_func_search_save_LIBS=$LIBS
26675 cat >conftest.$ac_ext <<_ACEOF
26678 cat confdefs.h >>conftest.$ac_ext
26679 cat >>conftest.$ac_ext <<_ACEOF
26680 /* end confdefs.h. */
26682 /* Override any GCC internal prototype to avoid an error.
26683 Use char because int might match the return type of a GCC
26684 builtin and then its argument prototype would still apply. */
26692 return nanosleep ();
26697 for ac_lib in '' rt; do
26698 if test -z "$ac_lib"; then
26699 ac_res="none required"
26702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26704 rm -f conftest.$ac_objext conftest$ac_exeext
26705 if { (ac_try="$ac_link"
26706 case "(($ac_try" in
26707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26708 *) ac_try_echo=$ac_try;;
26710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26711 (eval "$ac_link") 2>conftest.er1
26713 grep -v '^ *+' conftest.er1 >conftest.err
26715 cat conftest.err >&5
26716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717 (exit $ac_status); } && {
26718 test -z "$ac_c_werror_flag" ||
26719 test ! -s conftest.err
26720 } && test -s conftest$ac_exeext &&
26721 $as_test_x conftest$ac_exeext; then
26722 ac_cv_search_nanosleep=$ac_res
26724 echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26732 if test "${ac_cv_search_nanosleep+set}" = set; then
26736 if test "${ac_cv_search_nanosleep+set}" = set; then
26739 ac_cv_search_nanosleep=no
26741 rm conftest.$ac_ext
26742 LIBS=$ac_func_search_save_LIBS
26744 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26745 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26746 ac_res=$ac_cv_search_nanosleep
26747 if test "$ac_res" != no; then
26748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26752 cat >conftest.$ac_ext <<_ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26759 #include <sys/types.h>
26761 int deny_severity = 0;
26762 int allow_severity = 0;
26763 struct request_info *req;
26775 rm -f conftest.$ac_objext conftest$ac_exeext
26776 if { (ac_try="$ac_link"
26777 case "(($ac_try" in
26778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26779 *) ac_try_echo=$ac_try;;
26781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26782 (eval "$ac_link") 2>conftest.er1
26784 grep -v '^ *+' conftest.er1 >conftest.err
26786 cat conftest.err >&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); } && {
26789 test -z "$ac_c_werror_flag" ||
26790 test ! -s conftest.err
26791 } && test -s conftest$ac_exeext &&
26792 $as_test_x conftest$ac_exeext; then
26794 { echo "$as_me:$LINENO: result: yes" >&5
26795 echo "${ECHO_T}yes" >&6; }
26797 cat >>confdefs.h <<\_ACEOF
26798 #define HAVE_LIBWRAP 1
26806 echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26810 LIBS="$saved_LIBS -lwrap -lnsl"
26811 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26819 #include <sys/types.h>
26821 int deny_severity = 0;
26822 int allow_severity = 0;
26823 struct request_info *req;
26835 rm -f conftest.$ac_objext conftest$ac_exeext
26836 if { (ac_try="$ac_link"
26837 case "(($ac_try" in
26838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26839 *) ac_try_echo=$ac_try;;
26841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26842 (eval "$ac_link") 2>conftest.er1
26844 grep -v '^ *+' conftest.er1 >conftest.err
26846 cat conftest.err >&5
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); } && {
26849 test -z "$ac_c_werror_flag" ||
26850 test ! -s conftest.err
26851 } && test -s conftest$ac_exeext &&
26852 $as_test_x conftest$ac_exeext; then
26854 { echo "$as_me:$LINENO: result: yes" >&5
26855 echo "${ECHO_T}yes" >&6; }
26857 cat >>confdefs.h <<\_ACEOF
26858 #define HAVE_LIBWRAP 1
26866 echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26870 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26871 echo "$as_me: error: *** libwrap missing" >&2;}
26872 { (exit 1); exit 1; }; }
26877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26878 conftest$ac_exeext conftest.$ac_ext
26883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26884 conftest$ac_exeext conftest.$ac_ext
26891 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26892 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26894 # Check whether --with-openssl was given.
26895 if test "${with_openssl+set}" = set; then
26896 withval=$with_openssl;
26897 with_openssl_directory=${withval}
26903 if test "x$with_openssl_directory" != "xno"; then
26904 OPENSSL_LIBS="-lssl -lcrypto"
26907 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26909 # Make sure the $with_openssl_directory also makes sense
26911 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26912 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26913 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26917 saved_LIBS="${LIBS}"
26918 saved_CFLAGS="${CFLAGS}"
26919 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26920 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26922 cat >conftest.$ac_ext <<_ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h. */
26929 #include <openssl/ssl.h>
26935 CRYPTO_set_id_callback(NULL);
26941 rm -f conftest.$ac_objext conftest$ac_exeext
26942 if { (ac_try="$ac_link"
26943 case "(($ac_try" in
26944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945 *) ac_try_echo=$ac_try;;
26947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26948 (eval "$ac_link") 2>conftest.er1
26950 grep -v '^ *+' conftest.er1 >conftest.err
26952 cat conftest.err >&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } && {
26955 test -z "$ac_c_werror_flag" ||
26956 test ! -s conftest.err
26957 } && test -s conftest$ac_exeext &&
26958 $as_test_x conftest$ac_exeext; then
26961 support_crypto="yes"
26964 echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26974 conftest$ac_exeext conftest.$ac_ext
26976 cat >conftest.$ac_ext <<_ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h. */
26983 #include <openssl/evp.h>
26995 rm -f conftest.$ac_objext conftest$ac_exeext
26996 if { (ac_try="$ac_link"
26997 case "(($ac_try" in
26998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26999 *) ac_try_echo=$ac_try;;
27001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27002 (eval "$ac_link") 2>conftest.er1
27004 grep -v '^ *+' conftest.er1 >conftest.err
27006 cat conftest.err >&5
27007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008 (exit $ac_status); } && {
27009 test -z "$ac_c_werror_flag" ||
27010 test ! -s conftest.err
27011 } && test -s conftest$ac_exeext &&
27012 $as_test_x conftest$ac_exeext; then
27014 ac_cv_openssl_sha2="yes"
27017 echo "$as_me: failed program was:" >&5
27018 sed 's/^/| /' conftest.$ac_ext >&5
27021 ac_cv_openssl_sha2="no"
27026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27027 conftest$ac_exeext conftest.$ac_ext
27029 cat >conftest.$ac_ext <<_ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h. */
27036 #include <openssl/evp.h>
27048 rm -f conftest.$ac_objext conftest$ac_exeext
27049 if { (ac_try="$ac_link"
27050 case "(($ac_try" in
27051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052 *) ac_try_echo=$ac_try;;
27054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055 (eval "$ac_link") 2>conftest.er1
27057 grep -v '^ *+' conftest.er1 >conftest.err
27059 cat conftest.err >&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); } && {
27062 test -z "$ac_c_werror_flag" ||
27063 test ! -s conftest.err
27064 } && test -s conftest$ac_exeext &&
27065 $as_test_x conftest$ac_exeext; then
27067 ac_cv_openssl_export="no"
27070 echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27074 ac_cv_openssl_export="yes"
27079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27080 conftest$ac_exeext conftest.$ac_ext
27082 LIBS="${saved_LIBS}"
27083 CFLAGS="${saved_CFLAGS}"
27085 if test "$support_tls" = "yes"; then
27087 cat >>confdefs.h <<\_ACEOF
27088 #define HAVE_OPENSSL 1
27092 cat >>confdefs.h <<\_ACEOF
27097 cat >>confdefs.h <<\_ACEOF
27098 #define HAVE_CRYPTO 1
27103 if test "$ac_cv_openssl_sha2" = "yes"; then
27105 cat >>confdefs.h <<\_ACEOF
27106 #define HAVE_SHA2 1
27111 if test "$ac_cv_openssl_export" = "yes"; then
27113 cat >>confdefs.h <<\_ACEOF
27114 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27120 support_crypto="no"
27125 { echo "$as_me:$LINENO: result: $support_tls" >&5
27126 echo "${ECHO_T}$support_tls" >&6; }
27130 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27131 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27132 if test "${ac_cv_search_dlopen+set}" = set; then
27133 echo $ECHO_N "(cached) $ECHO_C" >&6
27135 ac_func_search_save_LIBS=$LIBS
27136 cat >conftest.$ac_ext <<_ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h. */
27143 /* Override any GCC internal prototype to avoid an error.
27144 Use char because int might match the return type of a GCC
27145 builtin and then its argument prototype would still apply. */
27158 for ac_lib in '' dl; do
27159 if test -z "$ac_lib"; then
27160 ac_res="none required"
27163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27165 rm -f conftest.$ac_objext conftest$ac_exeext
27166 if { (ac_try="$ac_link"
27167 case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_link") 2>conftest.er1
27174 grep -v '^ *+' conftest.er1 >conftest.err
27176 cat conftest.err >&5
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); } && {
27179 test -z "$ac_c_werror_flag" ||
27180 test ! -s conftest.err
27181 } && test -s conftest$ac_exeext &&
27182 $as_test_x conftest$ac_exeext; then
27183 ac_cv_search_dlopen=$ac_res
27185 echo "$as_me: failed program was:" >&5
27186 sed 's/^/| /' conftest.$ac_ext >&5
27191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27193 if test "${ac_cv_search_dlopen+set}" = set; then
27197 if test "${ac_cv_search_dlopen+set}" = set; then
27200 ac_cv_search_dlopen=no
27202 rm conftest.$ac_ext
27203 LIBS=$ac_func_search_save_LIBS
27205 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27206 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27207 ac_res=$ac_cv_search_dlopen
27208 if test "$ac_res" != no; then
27209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27214 working_dir=`eval echo ${prefix}/var/bacula/working`
27216 # Check whether --with-working-dir was given.
27217 if test "${with_working_dir+set}" = set; then
27218 withval=$with_working_dir;
27219 if test "x$withval" != "xno" ; then
27220 working_dir=$withval
27231 # Check whether --with-archivedir was given.
27232 if test "${with_archivedir+set}" = set; then
27233 withval=$with_archivedir;
27234 if test "x$withval" != "xno" ; then
27235 archivedir=$withval
27244 scriptdir=`eval echo ${sysconfdir}`
27246 # Check whether --with-scriptdir was given.
27247 if test "${with_scriptdir+set}" = set; then
27248 withval=$with_scriptdir;
27249 if test "x$withval" != "xno" ; then
27259 # ------------------------------------------
27260 # Where to place plugindir (script files)
27261 # ------------------------------------------
27262 plugindir=`eval echo ${sysconfdir}`
27264 # Check whether --with-plugindir was given.
27265 if test "${with_plugindir+set}" = set; then
27266 withval=$with_plugindir;
27267 if test "x$withval" != "xno" ; then
27277 dump_email=root@localhost
27279 # Check whether --with-dump-email was given.
27280 if test "${with_dump_email+set}" = set; then
27281 withval=$with_dump_email;
27282 if test "x$withval" != "xno" ; then
27283 dump_email=$withval
27292 job_email=root@localhost
27294 # Check whether --with-job-email was given.
27295 if test "${with_job_email+set}" = set; then
27296 withval=$with_job_email;
27297 if test "x$withval" != "xno" ; then
27307 smtp_host=localhost
27309 # Check whether --with-smtp_host was given.
27310 if test "${with_smtp_host+set}" = set; then
27311 withval=$with_smtp_host;
27312 if test "x$withval" != "xno" ; then
27324 # Check whether --with-pid-dir was given.
27325 if test "${with_pid_dir+set}" = set; then
27326 withval=$with_pid_dir;
27327 if test "x$withval" != "xno" ; then
27335 cat >>confdefs.h <<_ACEOF
27336 #define _PATH_BACULA_PIDDIR "$piddir"
27341 subsysdir=/var/run/subsys
27342 if test -d /var/run/subsys; then
27343 subsysdir=/var/run/subsys
27344 elif test -d /var/lock/subsys; then
27345 subsysdir=/var/lock/subsys
27347 subsysdir=/var/run/subsys
27350 # Check whether --with-subsys-dir was given.
27351 if test "${with_subsys_dir+set}" = set; then
27352 withval=$with_subsys_dir;
27353 if test "x$withval" != "xno" ; then
27365 # Check whether --with-baseport was given.
27366 if test "${with_baseport+set}" = set; then
27367 withval=$with_baseport;
27368 if test "x$withval" != "xno" ; then
27377 dir_port=`expr $baseport`
27378 fd_port=`expr $baseport + 1`
27379 sd_port=`expr $fd_port + 1`
27387 # Check whether --with-dir-password was given.
27388 if test "${with_dir_password+set}" = set; then
27389 withval=$with_dir_password;
27390 if test "x$withval" != "xno" ; then
27391 dir_password=$withval
27398 if test "x$dir_password" = "x" ; then
27399 if test "x$OPENSSL" = "xnone" ; then
27400 key=`autoconf/randpass 33`
27402 key=`openssl rand -base64 33`
27409 # Check whether --with-fd-password was given.
27410 if test "${with_fd_password+set}" = set; then
27411 withval=$with_fd_password;
27412 if test "x$withval" != "xno" ; then
27413 fd_password=$withval
27420 if test "x$fd_password" = "x" ; then
27421 if test "x$OPENSSL" = "xnone" ; then
27422 key=`autoconf/randpass 37`
27424 key=`openssl rand -base64 33`
27431 # Check whether --with-sd-password was given.
27432 if test "${with_sd_password+set}" = set; then
27433 withval=$with_sd_password;
27434 if test "x$withval" != "xno" ; then
27435 sd_password=$withval
27442 if test "x$sd_password" = "x" ; then
27443 if test "x$OPENSSL" = "xnone" ; then
27444 key=`autoconf/randpass 41`
27446 key=`openssl rand -base64 33`
27453 # Check whether --with-mon-dir-password was given.
27454 if test "${with_mon_dir_password+set}" = set; then
27455 withval=$with_mon_dir_password;
27456 if test "x$withval" != "xno" ; then
27457 mon_dir_password=$withval
27464 if test "x$mon_dir_password" = "x" ; then
27465 if test "x$OPENSSL" = "xnone" ; then
27466 key=`autoconf/randpass 33`
27468 key=`openssl rand -base64 33`
27470 mon_dir_password=$key
27475 # Check whether --with-mon-fd-password was given.
27476 if test "${with_mon_fd_password+set}" = set; then
27477 withval=$with_mon_fd_password;
27478 if test "x$withval" != "xno" ; then
27479 mon_fd_password=$withval
27486 if test "x$mon_fd_password" = "x" ; then
27487 if test "x$OPENSSL" = "xnone" ; then
27488 key=`autoconf/randpass 37`
27490 key=`openssl rand -base64 33`
27492 mon_fd_password=$key
27497 # Check whether --with-mon-sd-password was given.
27498 if test "${with_mon_sd_password+set}" = set; then
27499 withval=$with_mon_sd_password;
27500 if test "x$withval" != "xno" ; then
27501 mon_sd_password=$withval
27508 if test "x$mon_sd_password" = "x" ; then
27509 if test "x$OPENSSL" = "xnone" ; then
27510 key=`autoconf/randpass 41`
27512 key=`openssl rand -base64 33`
27514 mon_sd_password=$key
27526 # Check whether --with-db_name was given.
27527 if test "${with_db_name+set}" = set; then
27528 withval=$with_db_name;
27529 if test "x$withval" != "x" ; then
27540 # Check whether --with-db_user was given.
27541 if test "${with_db_user+set}" = set; then
27542 withval=$with_db_user;
27543 if test "x$withval" != "x" ; then
27554 # Check whether --with-db_password was given.
27555 if test "${with_db_password+set}" = set; then
27556 withval=$with_db_password;
27557 if test "x$withval" != "x" ; then
27558 db_password=$withval
27568 # Check whether --with-db_port was given.
27569 if test "${with_db_port+set}" = set; then
27570 withval=$with_db_port;
27571 if test "x$withval" != "x" ; then
27581 # Handle users and groups for each daemon
27585 # Check whether --with-dir_user was given.
27586 if test "${with_dir_user+set}" = set; then
27587 withval=$with_dir_user;
27588 if test "x$withval" != "x" ; then
27598 # Check whether --with-dir_group was given.
27599 if test "${with_dir_group+set}" = set; then
27600 withval=$with_dir_group;
27601 if test "x$withval" != "x" ; then
27611 # Check whether --with-sd_user was given.
27612 if test "${with_sd_user+set}" = set; then
27613 withval=$with_sd_user;
27614 if test "x$withval" != "x" ; then
27624 # Check whether --with-sd_group was given.
27625 if test "${with_sd_group+set}" = set; then
27626 withval=$with_sd_group;
27627 if test "x$withval" != "x" ; then
27637 # Check whether --with-fd_user was given.
27638 if test "${with_fd_user+set}" = set; then
27639 withval=$with_fd_user;
27640 if test "x$withval" != "x" ; then
27650 # Check whether --with-fd_group was given.
27651 if test "${with_fd_group+set}" = set; then
27652 withval=$with_fd_group;
27653 if test "x$withval" != "x" ; then
27670 # Check whether --with-sbin-perm was given.
27671 if test "${with_sbin_perm+set}" = set; then
27672 withval=$with_sbin_perm;
27673 if test "x$withval" != "x" ; then
27686 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27687 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27689 # Check whether --with-postgresql was given.
27690 if test "${with_postgresql+set}" = set; then
27691 withval=$with_postgresql;
27692 if test "$withval" != "no"; then
27693 if test "$db_found" = "yes"; then
27694 { echo "$as_me:$LINENO: result: error" >&5
27695 echo "${ECHO_T}error" >&6; }
27696 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27697 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27698 { (exit 1); exit 1; }; };
27700 if test "$withval" = "yes"; then
27701 PG_CONFIG=`which pg_config`
27702 if test -n "$PG_CONFIG";then
27703 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27704 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27705 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27706 elif test -f /usr/local/include/libpq-fe.h; then
27707 POSTGRESQL_INCDIR=/usr/local/include
27708 if test -d /usr/local/lib64; then
27709 POSTGRESQL_LIBDIR=/usr/local/lib64
27711 POSTGRESQL_LIBDIR=/usr/local/lib
27713 POSTGRESQL_BINDIR=/usr/local/bin
27714 elif test -f /usr/include/libpq-fe.h; then
27715 POSTGRESQL_INCDIR=/usr/include
27716 if test -d /usr/lib64; then
27717 POSTGRESQL_LIBDIR=/usr/lib64
27719 POSTGRESQL_LIBDIR=/usr/lib
27721 POSTGRESQL_BINDIR=/usr/bin
27722 elif test -f /usr/include/pgsql/libpq-fe.h; then
27723 POSTGRESQL_INCDIR=/usr/include/pgsql
27724 if test -d /usr/lib64/pgsql; then
27725 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27727 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27729 POSTGRESQL_BINDIR=/usr/bin
27730 elif test -f /usr/include/postgresql/libpq-fe.h; then
27731 POSTGRESQL_INCDIR=/usr/include/postgresql
27732 if test -d /usr/lib64/postgresql; then
27733 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27735 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27737 POSTGRESQL_BINDIR=/usr/bin
27739 { echo "$as_me:$LINENO: result: no" >&5
27740 echo "${ECHO_T}no" >&6; }
27741 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27742 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27743 { (exit 1); exit 1; }; }
27745 elif test -f $withval/include/libpq-fe.h; then
27746 POSTGRESQL_INCDIR=$withval/include
27747 POSTGRESQL_LIBDIR=$withval/lib
27748 POSTGRESQL_BINDIR=$withval/bin
27749 elif test -f $withval/include/postgresql/libpq-fe.h; then
27750 POSTGRESQL_INCDIR=$withval/include/postgresql
27751 if test -d $withval/lib64; then
27752 POSTGRESQL_LIBDIR=$withval/lib64
27754 POSTGRESQL_LIBDIR=$withval/lib
27756 POSTGRESQL_BINDIR=$withval/bin
27758 { echo "$as_me:$LINENO: result: no" >&5
27759 echo "${ECHO_T}no" >&6; }
27760 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27761 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27762 { (exit 1); exit 1; }; }
27764 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27765 { echo "$as_me:$LINENO: checking for crypt" >&5
27766 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27767 if test "${ac_cv_func_crypt+set}" = set; then
27768 echo $ECHO_N "(cached) $ECHO_C" >&6
27770 cat >conftest.$ac_ext <<_ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h. */
27776 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27778 #define crypt innocuous_crypt
27780 /* System header to define __stub macros and hopefully few prototypes,
27781 which can conflict with char crypt (); below.
27782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27783 <limits.h> exists even on freestanding compilers. */
27786 # include <limits.h>
27788 # include <assert.h>
27793 /* Override any GCC internal prototype to avoid an error.
27794 Use char because int might match the return type of a GCC
27795 builtin and then its argument prototype would still apply. */
27800 /* The GNU C library defines this for functions which it implements
27801 to always fail with ENOSYS. Some functions are actually named
27802 something starting with __ and the normal name is an alias. */
27803 #if defined __stub_crypt || defined __stub___crypt
27815 rm -f conftest.$ac_objext conftest$ac_exeext
27816 if { (ac_try="$ac_link"
27817 case "(($ac_try" in
27818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819 *) ac_try_echo=$ac_try;;
27821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822 (eval "$ac_link") 2>conftest.er1
27824 grep -v '^ *+' conftest.er1 >conftest.err
27826 cat conftest.err >&5
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); } && {
27829 test -z "$ac_c_werror_flag" ||
27830 test ! -s conftest.err
27831 } && test -s conftest$ac_exeext &&
27832 $as_test_x conftest$ac_exeext; then
27833 ac_cv_func_crypt=yes
27835 echo "$as_me: failed program was:" >&5
27836 sed 's/^/| /' conftest.$ac_ext >&5
27838 ac_cv_func_crypt=no
27841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27842 conftest$ac_exeext conftest.$ac_ext
27844 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27845 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27846 if test $ac_cv_func_crypt = yes; then
27849 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27850 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27851 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27852 echo $ECHO_N "(cached) $ECHO_C" >&6
27854 ac_check_lib_save_LIBS=$LIBS
27855 LIBS="-lcrypt $LIBS"
27856 cat >conftest.$ac_ext <<_ACEOF
27859 cat confdefs.h >>conftest.$ac_ext
27860 cat >>conftest.$ac_ext <<_ACEOF
27861 /* end confdefs.h. */
27863 /* Override any GCC internal prototype to avoid an error.
27864 Use char because int might match the return type of a GCC
27865 builtin and then its argument prototype would still apply. */
27878 rm -f conftest.$ac_objext conftest$ac_exeext
27879 if { (ac_try="$ac_link"
27880 case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_link") 2>conftest.er1
27887 grep -v '^ *+' conftest.er1 >conftest.err
27889 cat conftest.err >&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } && {
27892 test -z "$ac_c_werror_flag" ||
27893 test ! -s conftest.err
27894 } && test -s conftest$ac_exeext &&
27895 $as_test_x conftest$ac_exeext; then
27896 ac_cv_lib_crypt_crypt=yes
27898 echo "$as_me: failed program was:" >&5
27899 sed 's/^/| /' conftest.$ac_ext >&5
27901 ac_cv_lib_crypt_crypt=no
27904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27905 conftest$ac_exeext conftest.$ac_ext
27906 LIBS=$ac_check_lib_save_LIBS
27908 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27909 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27910 if test $ac_cv_lib_crypt_crypt = yes; then
27911 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27916 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27917 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27918 SQL_BINDIR=$POSTGRESQL_BINDIR
27919 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27921 cat >>confdefs.h <<\_ACEOF
27922 #define HAVE_POSTGRESQL 1
27925 { echo "$as_me:$LINENO: result: yes" >&5
27926 echo "${ECHO_T}yes" >&6; }
27928 support_postgresql=yes
27932 { echo "$as_me:$LINENO: result: no" >&5
27933 echo "${ECHO_T}no" >&6; }
27938 { echo "$as_me:$LINENO: result: no" >&5
27939 echo "${ECHO_T}no" >&6; }
27951 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27952 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27954 # Check whether --with-mysql was given.
27955 if test "${with_mysql+set}" = set; then
27956 withval=$with_mysql;
27957 if test "$withval" != "no"; then
27958 if test "$withval" = "yes"; then
27959 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27960 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27961 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27962 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27963 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27965 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27967 MYSQL_BINDIR=/usr/local/mysql/bin
27968 elif test -f /usr/include/mysql/mysql.h; then
27969 MYSQL_INCDIR=/usr/include/mysql
27970 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27971 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27972 MYSQL_LIBDIR=/usr/lib64/mysql
27973 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27974 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27975 MYSQL_LIBDIR=/usr/lib/mysql
27977 MYSQL_LIBDIR=/usr/lib
27979 MYSQL_BINDIR=/usr/bin
27980 elif test -f /usr/include/mysql.h; then
27981 MYSQL_INCDIR=/usr/include
27982 if test -f /usr/lib64/libmysqlclient_r.a \
27983 -o -f /usr/lib64/libmysqlclient_r.so; then
27984 MYSQL_LIBDIR=/usr/lib64
27986 MYSQL_LIBDIR=/usr/lib
27988 MYSQL_BINDIR=/usr/bin
27989 elif test -f /usr/local/include/mysql/mysql.h; then
27990 MYSQL_INCDIR=/usr/local/include/mysql
27991 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27992 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27993 MYSQL_LIBDIR=/usr/local/lib64/mysql
27995 MYSQL_LIBDIR=/usr/local/lib/mysql
27997 MYSQL_BINDIR=/usr/local/bin
27998 elif test -f /usr/local/include/mysql.h; then
27999 MYSQL_INCDIR=/usr/local/include
28000 if test -f /usr/local/lib64/libmysqlclient_r.a \
28001 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28002 MYSQL_LIBDIR=/usr/local/lib64
28004 MYSQL_LIBDIR=/usr/local/lib
28006 MYSQL_BINDIR=/usr/local/bin
28008 { echo "$as_me:$LINENO: result: no" >&5
28009 echo "${ECHO_T}no" >&6; }
28010 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28011 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28012 { (exit 1); exit 1; }; }
28015 if test -f $withval/include/mysql/mysql.h; then
28016 MYSQL_INCDIR=$withval/include/mysql
28017 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28018 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28019 MYSQL_LIBDIR=$withval/lib64/mysql
28021 MYSQL_LIBDIR=$withval/lib/mysql
28023 if test -f $withval/lib/libmysqlclient_r.so; then
28024 MYSQL_LIBDIR=$withval/lib
28027 MYSQL_BINDIR=$withval/bin
28028 elif test -f $withval/include/mysql.h; then
28029 MYSQL_INCDIR=$withval/include
28030 if test -f $withval/lib64/libmysqlclient_r.a \
28031 -o -f $withval/lib64/libmysqlclient_r.so; then
28032 MYSQL_LIBDIR=$withval/lib64
28034 MYSQL_LIBDIR=$withval/lib
28036 MYSQL_BINDIR=$withval/bin
28038 { echo "$as_me:$LINENO: result: no" >&5
28039 echo "${ECHO_T}no" >&6; }
28040 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28041 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28042 { (exit 1); exit 1; }; }
28045 SQL_INCLUDE=-I$MYSQL_INCDIR
28046 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28047 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28048 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28049 cat >>confdefs.h <<\_ACEOF
28050 #define HAVE_THREAD_SAFE_MYSQL 1
28054 SQL_BINDIR=$MYSQL_BINDIR
28055 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28057 cat >>confdefs.h <<\_ACEOF
28058 #define HAVE_MYSQL 1
28061 { echo "$as_me:$LINENO: result: yes" >&5
28062 echo "${ECHO_T}yes" >&6; }
28069 { echo "$as_me:$LINENO: result: no" >&5
28070 echo "${ECHO_T}no" >&6; }
28078 # Check whether --with-embedded-mysql was given.
28079 if test "${with_embedded_mysql+set}" = set; then
28080 withval=$with_embedded_mysql;
28081 if test "$withval" != "no"; then
28082 if test "$withval" = "yes"; then
28083 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28084 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28085 if test -d /usr/local/mysql/lib64/mysql; then
28086 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28088 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28090 MYSQL_BINDIR=/usr/local/mysql/bin
28091 elif test -f /usr/include/mysql/mysql.h; then
28092 MYSQL_INCDIR=/usr/include/mysql
28093 if test -d /usr/lib64/mysql; then
28094 MYSQL_LIBDIR=/usr/lib64/mysql
28096 MYSQL_LIBDIR=/usr/lib/mysql
28098 MYSQL_BINDIR=/usr/bin
28099 elif test -f /usr/include/mysql.h; then
28100 MYSQL_INCDIR=/usr/include
28101 if test -d /usr/lib64; then
28102 MYSQL_LIBDIR=/usr/lib64
28104 MYSQL_LIBDIR=/usr/lib
28106 MYSQL_BINDIR=/usr/bin
28107 elif test -f /usr/local/include/mysql/mysql.h; then
28108 MYSQL_INCDIR=/usr/local/include/mysql
28109 if test -d /usr/local/lib64/mysql; then
28110 MYSQL_LIBDIR=/usr/local/lib64/mysql
28112 MYSQL_LIBDIR=/usr/local/lib/mysql
28114 MYSQL_BINDIR=/usr/local/bin
28115 elif test -f /usr/local/include/mysql.h; then
28116 MYSQL_INCDIR=/usr/local/include
28117 if test -d /usr/local/lib64; then
28118 MYSQL_LIBDIR=/usr/local/lib64
28120 MYSQL_LIBDIR=/usr/local/lib
28122 MYSQL_BINDIR=/usr/local/bin
28124 { echo "$as_me:$LINENO: result: no" >&5
28125 echo "${ECHO_T}no" >&6; }
28126 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28127 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28128 { (exit 1); exit 1; }; }
28131 if test -f $withval/include/mysql/mysql.h; then
28132 MYSQL_INCDIR=$withval/include/mysql
28133 if test -d $withval/lib64/mysql; then
28134 MYSQL_LIBDIR=$withval/lib64/mysql
28136 MYSQL_LIBDIR=$withval/lib/mysql
28138 MYSQL_BINDIR=$withval/bin
28139 elif test -f $withval/include/mysql.h; then
28140 MYSQL_INCDIR=$withval/include
28141 if test -d $withval/lib64; then
28142 MYSQL_LIBDIR=$withval/lib64
28144 MYSQL_LIBDIR=$withval/lib
28146 MYSQL_BINDIR=$withval/bin
28148 { echo "$as_me:$LINENO: result: no" >&5
28149 echo "${ECHO_T}no" >&6; }
28150 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28151 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28152 { (exit 1); exit 1; }; }
28155 SQL_INCLUDE=-I$MYSQL_INCDIR
28156 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28157 SQL_BINDIR=$MYSQL_BINDIR
28158 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28160 cat >>confdefs.h <<\_ACEOF
28161 #define HAVE_MYSQL 1
28164 cat >>confdefs.h <<\_ACEOF
28165 #define HAVE_EMBEDDED_MYSQL 1
28168 { echo "$as_me:$LINENO: result: yes" >&5
28169 echo "${ECHO_T}yes" >&6; }
28176 { echo "$as_me:$LINENO: result: no" >&5
28177 echo "${ECHO_T}no" >&6; }
28193 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28194 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28196 # Check whether --with-sqlite3 was given.
28197 if test "${with_sqlite3+set}" = set; then
28198 withval=$with_sqlite3;
28199 if test "$withval" != "no"; then
28200 if test "$withval" = "yes"; then
28201 if test -f /usr/local/include/sqlite3.h; then
28202 SQLITE_INCDIR=/usr/local/include
28203 if test -d /usr/local/lib64; then
28204 SQLITE_LIBDIR=/usr/local/lib64
28206 SQLITE_LIBDIR=/usr/local/lib
28208 SQLITE_BINDIR=/usr/local/bin
28209 elif test -f /usr/include/sqlite3.h; then
28210 SQLITE_INCDIR=/usr/include
28211 if test -d /usr/lib64; then
28212 SQLITE_LIBDIR=/usr/lib64
28214 SQLITE_LIBDIR=/usr/lib
28216 SQLITE_BINDIR=/usr/bin
28217 elif test -f $prefix/include/sqlite3.h; then
28218 SQLITE_INCDIR=$prefix/include
28219 if test -d $prefix/lib64; then
28220 SQLITE_LIBDIR=$prefix/lib64
28222 SQLITE_LIBDIR=$prefix/lib
28224 SQLITE_BINDIR=$prefix/bin
28226 { echo "$as_me:$LINENO: result: no" >&5
28227 echo "${ECHO_T}no" >&6; }
28228 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28229 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28230 { (exit 1); exit 1; }; }
28233 if test -f $withval/sqlite3.h; then
28234 SQLITE_INCDIR=$withval
28235 SQLITE_LIBDIR=$withval
28236 SQLITE_BINDIR=$withval
28237 elif test -f $withval/include/sqlite3.h; then
28238 SQLITE_INCDIR=$withval/include
28239 if test -d $withval/lib64; then
28240 SQLITE_LIBDIR=$withval/lib64
28242 SQLITE_LIBDIR=$withval/lib
28244 SQLITE_BINDIR=$withval/bin
28246 { echo "$as_me:$LINENO: result: no" >&5
28247 echo "${ECHO_T}no" >&6; }
28248 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28249 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28250 { (exit 1); exit 1; }; }
28253 SQL_INCLUDE=-I$SQLITE_INCDIR
28254 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28255 SQL_BINDIR=$SQLITE_BINDIR
28256 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28258 cat >>confdefs.h <<\_ACEOF
28259 #define HAVE_SQLITE3 1
28262 { echo "$as_me:$LINENO: result: yes" >&5
28263 echo "${ECHO_T}yes" >&6; }
28265 support_sqlite3=yes
28270 { echo "$as_me:$LINENO: result: no" >&5
28271 echo "${ECHO_T}no" >&6; }
28276 { echo "$as_me:$LINENO: result: no" >&5
28277 echo "${ECHO_T}no" >&6; }
28289 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28290 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28292 # Check whether --with-sqlite was given.
28293 if test "${with_sqlite+set}" = set; then
28294 withval=$with_sqlite;
28295 if test "$withval" != "no"; then
28296 if test "$withval" = "yes"; then
28297 if test -f /usr/local/include/sqlite.h; then
28298 SQLITE_INCDIR=/usr/local/include
28299 if test -d /usr/local/lib64; then
28300 SQLITE_LIBDIR=/usr/local/lib64
28302 SQLITE_LIBDIR=/usr/local/lib
28304 SQLITE_BINDIR=/usr/local/bin
28305 elif test -f /usr/include/sqlite.h; then
28306 SQLITE_INCDIR=/usr/include
28307 if test -d /usr/lib64; then
28308 SQLITE_LIBDIR=/usr/lib64
28310 SQLITE_LIBDIR=/usr/lib
28312 SQLITE_BINDIR=/usr/bin
28313 elif test -f $prefix/include/sqlite.h; then
28314 SQLITE_INCDIR=$prefix/include
28315 if test -d $prefix/lib64; then
28316 SQLITE_LIBDIR=$prefix/lib64
28318 SQLITE_LIBDIR=$prefix/lib
28320 SQLITE_BINDIR=$prefix/bin
28322 { echo "$as_me:$LINENO: result: no" >&5
28323 echo "${ECHO_T}no" >&6; }
28324 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28325 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28326 { (exit 1); exit 1; }; }
28329 if test -f $withval/sqlite.h; then
28330 SQLITE_INCDIR=$withval
28331 SQLITE_LIBDIR=$withval
28332 SQLITE_BINDIR=$withval
28333 elif test -f $withval/include/sqlite.h; then
28334 SQLITE_INCDIR=$withval/include
28335 if test -d $withval/lib64; then
28336 SQLITE_LIBDIR=$withval/lib64
28338 SQLITE_LIBDIR=$withval/lib
28340 SQLITE_BINDIR=$withval/bin
28342 { echo "$as_me:$LINENO: result: no" >&5
28343 echo "${ECHO_T}no" >&6; }
28344 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28345 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28346 { (exit 1); exit 1; }; }
28349 SQL_INCLUDE=-I$SQLITE_INCDIR
28350 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28351 SQL_BINDIR=$SQLITE_BINDIR
28352 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28354 cat >>confdefs.h <<\_ACEOF
28355 #define HAVE_SQLITE 1
28358 { echo "$as_me:$LINENO: result: yes" >&5
28359 echo "${ECHO_T}yes" >&6; }
28366 { echo "$as_me:$LINENO: result: no" >&5
28367 echo "${ECHO_T}no" >&6; }
28372 { echo "$as_me:$LINENO: result: no" >&5
28373 echo "${ECHO_T}no" >&6; }
28385 { echo "$as_me:$LINENO: checking for DBI support" >&5
28386 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28388 # Check whether --with-dbi was given.
28389 if test "${with_dbi+set}" = set; then
28391 if test "$withval" != "no"; then
28392 if test "$withval" = "yes"; then
28393 if test -f /usr/local/include/dbi/dbi.h; then
28394 DBI_INCDIR=/usr/local/dbi/include
28395 if test -d /usr/local/lib64; then
28396 DBI_LIBDIR=/usr/local/lib64
28398 DBI_LIBDIR=/usr/local/lib
28400 DBI_BINDIR=/usr/local/bin
28401 elif test -f /usr/include/dbi/dbi.h; then
28402 DBI_INCDIR=/usr/include
28403 if test -d /usr/lib64; then
28404 DBI_LIBDIR=/usr/lib64
28406 DBI_LIBDIR=/usr/lib
28408 DBI_BINDIR=/usr/bin
28409 elif test -f $prefix/include/dbi/dbi.h; then
28410 DBI_INCDIR=$prefix/include
28411 if test -d $prefix/lib64; then
28412 DBI_LIBDIR=$prefix/lib64
28414 DBI_LIBDIR=$prefix/lib
28416 DBI_BINDIR=$prefix/bin
28418 { echo "$as_me:$LINENO: result: no" >&5
28419 echo "${ECHO_T}no" >&6; }
28420 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28421 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28422 { (exit 1); exit 1; }; }
28424 if test -d /usr/local/lib/dbd; then
28425 DRIVERDIR=/usr/local/lib/dbd
28426 if test -d /usr/local/lib64/dbd; then
28427 DRIVERDIR=/usr/local/lib64/dbd
28429 DRIVERDIR=/usr/local/lib/dbd
28431 elif test -d /usr/lib/dbd; then
28432 DRIVERDIR=/usr/lib/dbd
28433 if test -d /usr/lib64/dbd; then
28434 DRIVERDIR=/usr/lib64/dbd
28436 DRIVERDIR=/usr/lib/dbd
28438 elif test -d $prefix/lib/dbd; then
28439 if test -d $prefix/lib64/dbd; then
28440 DRIVERDIR=$prefix/lib64/dbd
28442 DRIVERDIR=$prefix/lib/dbd
28445 { echo "$as_me:$LINENO: result: no" >&5
28446 echo "${ECHO_T}no" >&6; }
28447 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28448 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28449 { (exit 1); exit 1; }; }
28452 if test -f $withval/dbi.h; then
28453 DBI_INCDIR=$withval
28454 DBI_LIBDIR=$withval
28455 DBI_BINDIR=$withval
28456 elif test -f $withval/include/dbi/dbi.h; then
28457 DBI_INCDIR=$withval/include
28458 if test -d $withval/lib64; then
28459 DBI_LIBDIR=$withval/lib64
28461 DBI_LIBDIR=$withval/lib
28463 DBI_BINDIR=$withval/bin
28465 { echo "$as_me:$LINENO: result: no" >&5
28466 echo "${ECHO_T}no" >&6; }
28467 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28468 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28469 { (exit 1); exit 1; }; }
28471 if test -d $withval/dbd; then
28472 DRIVERDIR=$withval/dbd
28473 elif test -d $withval/lib/; then
28474 if test -d $withval/lib64/dbd; then
28475 DRIVERDIR=$withval/lib64/dbd
28477 DRIVERDIR=$withval/lib/dbd
28480 { echo "$as_me:$LINENO: result: no" >&5
28481 echo "${ECHO_T}no" >&6; }
28482 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28483 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28484 { (exit 1); exit 1; }; }
28487 SQL_INCLUDE=-I$DBI_INCDIR
28488 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28489 SQL_BINDIR=$DBI_BINDIR
28490 SQL_LIB=$DBI_LIBDIR/libdbi.a
28491 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28494 cat >>confdefs.h <<\_ACEOF
28498 { echo "$as_me:$LINENO: result: yes" >&5
28499 echo "${ECHO_T}yes" >&6; }
28507 { echo "$as_me:$LINENO: result: no" >&5
28508 echo "${ECHO_T}no" >&6; }
28513 { echo "$as_me:$LINENO: result: no" >&5
28514 echo "${ECHO_T}no" >&6; }
28529 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28530 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28532 # Check whether --with-dbi-driver was given.
28533 if test "${with_dbi_driver+set}" = set; then
28534 withval=$with_dbi_driver;
28535 if test "$withval" != "no"; then
28539 if test -f /usr/local/mysql/bin/mysql; then
28540 SQL_BINDIR=/usr/local/mysql/bin
28541 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28542 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28543 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28545 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28547 elif test -f /usr/bin/mysql; then
28548 SQL_BINDIR=/usr/bin
28549 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28550 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28551 SQL_LIBDIR=/usr/lib64/mysql
28552 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28553 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28554 SQL_LIBDIR=/usr/lib/mysql
28556 SQL_LIBDIR=/usr/lib
28558 elif test -f /usr/local/bin/mysql; then
28559 SQL_BINDIR=/usr/local/bin
28560 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28561 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28562 SQL_LIBDIR=/usr/local/lib64/mysql
28563 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28564 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28565 SQL_LIBDIR=/usr/local/lib/mysql
28567 SQL_LIBDIR=/usr/local/lib
28569 elif test -f $withval/bin/mysql; then
28570 SQL_BINDIR=$withval/bin
28571 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28572 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28573 SQL_LIBDIR=$withval/lib64/mysql
28574 elif test -f $withval/lib64/libmysqlclient_r.a \
28575 -o -f $withval/lib64/libmysqlclient_r.so; then
28576 SQL_LIBDIR=$withval/lib64
28577 elif test -f $withval/lib/libmysqlclient_r.a \
28578 -o -f $withval/lib/libmysqlclient_r.so; then
28579 SQL_LIBDIR=$withval/lib/
28581 SQL_LIBDIR=$withval/lib/mysql
28584 { echo "$as_me:$LINENO: result: no" >&5
28585 echo "${ECHO_T}no" >&6; }
28586 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28587 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28588 { (exit 1); exit 1; }; }
28590 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28593 db_prog="postgresql"
28594 PG_CONFIG=`which pg_config`
28595 if test -n "$PG_CONFIG"; then
28596 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28597 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28598 elif test -f /usr/local/bin/psql; then
28599 SQL_BINDIR=/usr/local/bin
28600 if test -d /usr/local/lib64; then
28601 SQL_LIBDIR=/usr/local/lib64
28603 SQL_LIBDIR=/usr/local/lib
28605 elif test -f /usr/bin/psql; then
28606 SQL_BINDIR=/usr/local/bin
28607 if test -d /usr/lib64/postgresql; then
28608 SQL_LIBDIR=/usr/lib64/postgresql
28609 elif test -d /usr/lib/postgresql; then
28610 SQL_LIBDIR=/usr/lib/postgresql
28611 elif test -d /usr/lib64; then
28612 SQL_LIBDIR=/usr/lib64
28614 SQL_LIBDIR=/usr/lib
28616 elif test -f $withval/bin/psql; then
28617 SQL_BINDIR=$withval/bin
28618 if test -d $withval/lib64; then
28619 SQL_LIBDIR=$withval/lib64
28621 SQL_LIBDIR=$withval/lib
28624 { echo "$as_me:$LINENO: result: no" >&5
28625 echo "${ECHO_T}no" >&6; }
28626 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28627 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28628 { (exit 1); exit 1; }; }
28630 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28634 if test -f /usr/local/bin/sqlite; then
28635 SQL_BINDIR=/usr/local/bin
28636 if test -d /usr/local/lib64; then
28637 SQL_LIBDIR=/usr/local/lib64
28639 SQL_LIBDIR=/usr/local/lib
28641 elif test -f /usr/bin/sqlite; then
28642 SQL_BINDIR=/usr/bin
28643 if test -d /usr/lib64; then
28644 SQL_LIBDIR=/usr/lib64
28646 SQL_LIBDIR=/usr/lib
28648 elif test -f $withval/bin/sqlite; then
28649 SQL_BINDIR=$withval/bin
28650 if test -d $withval/lib64; then
28651 SQL_LIBDIR=$withval/lib64
28653 SQL_LIBDIR=$withval/lib
28656 { echo "$as_me:$LINENO: result: no" >&5
28657 echo "${ECHO_T}no" >&6; }
28658 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28659 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28660 { (exit 1); exit 1; }; }
28662 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28666 if test -f /usr/local/bin/sqlite3; then
28667 SQL_BINDIR=/usr/local/bin
28668 if test -d /usr/local/lib64; then
28669 SQL_LIBDIR=/usr/local/lib64
28671 SQL_LIBDIR=/usr/local/lib
28673 elif test -f /usr/bin/sqlite3; then
28674 SQL_BINDIR=/usr/bin
28675 if test -d /usr/lib64; then
28676 SQL_LIBDIR=/usr/lib64
28678 SQL_LIBDIR=/usr/lib
28680 elif test -f $withval/bin/sqlite3; then
28681 SQL_BINDIR=$withval/bin
28682 if test -d $withval/lib64; then
28683 SQL_LIBDIR=$withval/lib64
28685 SQL_LIBDIR=$withval/lib
28688 { echo "$as_me:$LINENO: result: no" >&5
28689 echo "${ECHO_T}no" >&6; }
28690 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28691 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28692 { (exit 1); exit 1; }; }
28694 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28697 { echo "$as_me:$LINENO: result: no" >&5
28698 echo "${ECHO_T}no" >&6; }
28699 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28700 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28701 { (exit 1); exit 1; }; }
28705 { echo "$as_me:$LINENO: result: yes" >&5
28706 echo "${ECHO_T}yes" >&6; }
28709 { echo "$as_me:$LINENO: result: no" >&5
28710 echo "${ECHO_T}no" >&6; }
28715 { echo "$as_me:$LINENO: result: no" >&5
28716 echo "${ECHO_T}no" >&6; }
28729 support_batch_insert=no
28730 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28732 if test $pkg = 0; then
28733 support_batch_insert=yes
28734 # Check whether --enable-batch-insert was given.
28735 if test "${enable_batch_insert+set}" = set; then
28736 enableval=$enable_batch_insert;
28737 if test x$enableval = xno; then
28738 support_batch_insert=no
28740 support_batch_insert=yes
28748 if test x$DB_TYPE = xpostgresql; then
28749 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28751 if test $pkg != 0; then
28752 support_batch_insert=no
28756 if test x$DB_TYPE = xdbi; then
28760 if test $DB_PROG = postgresql; then
28761 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28765 if test $DB_PROG = mysql; then
28766 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28770 if test $DB_PROG = sqlite3; then
28771 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28775 if test $pkg = 0; then
28776 # Check whether --enable-batch-insert was given.
28777 if test "${enable_batch_insert+set}" = set; then
28778 enableval=$enable_batch_insert;
28779 if test x$enableval = xno; then
28780 support_batch_insert=no
28782 support_batch_insert=yes
28795 if test $support_batch_insert = yes ; then
28797 cat >>confdefs.h <<\_ACEOF
28798 #define HAVE_BATCH_FILE_INSERT 1
28803 cat >>confdefs.h <<\_ACEOF
28804 #define PROTOTYPES 1
28808 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28809 if test -z "$CCOPTS"; then
28810 CCOPTS='-g -O2 -Wall'
28817 largefile_support="no"
28819 # Check whether --enable-largefile was given.
28820 if test "${enable_largefile+set}" = set; then
28821 enableval=$enable_largefile;
28824 if test "$enable_largefile" != no; then
28825 if test -n "$ac_tool_prefix"; then
28826 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28827 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28830 if test "${ac_cv_prog_GETCONF+set}" = set; then
28831 echo $ECHO_N "(cached) $ECHO_C" >&6
28833 if test -n "$GETCONF"; then
28834 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28837 for as_dir in $PATH
28840 test -z "$as_dir" && as_dir=.
28841 for ac_exec_ext in '' $ac_executable_extensions; do
28842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28843 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28853 GETCONF=$ac_cv_prog_GETCONF
28854 if test -n "$GETCONF"; then
28855 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28856 echo "${ECHO_T}$GETCONF" >&6; }
28858 { echo "$as_me:$LINENO: result: no" >&5
28859 echo "${ECHO_T}no" >&6; }
28864 if test -z "$ac_cv_prog_GETCONF"; then
28865 ac_ct_GETCONF=$GETCONF
28866 # Extract the first word of "getconf", so it can be a program name with args.
28867 set dummy getconf; ac_word=$2
28868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28870 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28871 echo $ECHO_N "(cached) $ECHO_C" >&6
28873 if test -n "$ac_ct_GETCONF"; then
28874 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28877 for as_dir in $PATH
28880 test -z "$as_dir" && as_dir=.
28881 for ac_exec_ext in '' $ac_executable_extensions; do
28882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28883 ac_cv_prog_ac_ct_GETCONF="getconf"
28884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28893 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28894 if test -n "$ac_ct_GETCONF"; then
28895 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28896 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28898 { echo "$as_me:$LINENO: result: no" >&5
28899 echo "${ECHO_T}no" >&6; }
28902 if test "x$ac_ct_GETCONF" = x; then
28905 case $cross_compiling:$ac_tool_warned in
28907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28908 whose name does not start with the host triplet. If you think this
28909 configuration is useful to you, please write to autoconf@gnu.org." >&5
28910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28911 whose name does not start with the host triplet. If you think this
28912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28913 ac_tool_warned=yes ;;
28915 GETCONF=$ac_ct_GETCONF
28918 GETCONF="$ac_cv_prog_GETCONF"
28921 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28922 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28923 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28924 echo $ECHO_N "(cached) $ECHO_C" >&6
28926 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28927 ac_cv_sys_largefile_CFLAGS=no
28929 # IRIX 6.2 and later require cc -n32.
28930 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28931 if test "$GCC" != yes; then
28932 ac_cv_sys_largefile_CFLAGS=-n32
28935 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28936 cat >conftest.$ac_ext <<_ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h. */
28951 rm -f conftest.$ac_objext conftest$ac_exeext
28952 if { (ac_try="$ac_link"
28953 case "(($ac_try" in
28954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28955 *) ac_try_echo=$ac_try;;
28957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28958 (eval "$ac_link") 2>conftest.er1
28960 grep -v '^ *+' conftest.er1 >conftest.err
28962 cat conftest.err >&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); } && {
28965 test -z "$ac_c_werror_flag" ||
28966 test ! -s conftest.err
28967 } && test -s conftest$ac_exeext &&
28968 $as_test_x conftest$ac_exeext; then
28971 echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28974 ac_cv_sys_largefile_CFLAGS=no
28977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28978 conftest$ac_exeext conftest.$ac_ext
28983 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28984 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28985 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28986 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28987 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28988 echo $ECHO_N "(cached) $ECHO_C" >&6
28990 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28991 ac_cv_sys_largefile_LDFLAGS=no
28995 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28996 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28997 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28998 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28999 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29000 echo $ECHO_N "(cached) $ECHO_C" >&6
29002 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29003 ac_cv_sys_largefile_LIBS=no
29007 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29008 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29010 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29013 -D_FILE_OFFSET_BITS=*) ;;
29014 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29015 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29020 case "$CPPFLAGS" in
29021 '') CPPFLAGS="$ac_flag" ;;
29022 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29030 '') CFLAGS="$ac_flag" ;;
29031 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29036 case "$ac_cv_sys_largefile_LDFLAGS" in
29040 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29041 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29044 case "$ac_cv_sys_largefile_LIBS" in
29048 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29049 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29052 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29053 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29054 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29057 ac_cv_sys_file_offset_bits=no
29058 ac_cv_sys_file_offset_bits=64
29059 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29061 -D_FILE_OFFSET_BITS)
29062 ac_cv_sys_file_offset_bits=1 ;;
29063 -D_FILE_OFFSET_BITS=*)
29064 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29069 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29070 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29071 if test "$ac_cv_sys_file_offset_bits" != no; then
29073 cat >>confdefs.h <<_ACEOF
29074 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29078 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29079 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29080 if test "${ac_cv_sys_largefile_source+set}" = set; then
29081 echo $ECHO_N "(cached) $ECHO_C" >&6
29083 ac_cv_sys_largefile_source=no
29084 ac_cv_sys_largefile_source=1
29085 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29087 -D_LARGEFILE_SOURCE)
29088 ac_cv_sys_largefile_source=1 ;;
29089 -D_LARGEFILE_SOURCE=*)
29090 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29095 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29096 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29097 if test "$ac_cv_sys_largefile_source" != no; then
29099 cat >>confdefs.h <<_ACEOF
29100 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29104 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29105 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29106 if test "${ac_cv_sys_large_files+set}" = set; then
29107 echo $ECHO_N "(cached) $ECHO_C" >&6
29109 ac_cv_sys_large_files=no
29110 ac_cv_sys_large_files=1
29111 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29114 ac_cv_sys_large_files=1 ;;
29116 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29121 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29122 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29123 if test "$ac_cv_sys_large_files" != no; then
29125 cat >>confdefs.h <<_ACEOF
29126 #define _LARGE_FILES $ac_cv_sys_large_files
29133 { echo "$as_me:$LINENO: checking for X" >&5
29134 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29137 # Check whether --with-x was given.
29138 if test "${with_x+set}" = set; then
29142 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29143 if test "x$with_x" = xno; then
29144 # The user explicitly disabled X.
29147 case $x_includes,$x_libraries in #(
29148 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29149 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29150 { (exit 1); exit 1; }; };; #(
29151 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29152 echo $ECHO_N "(cached) $ECHO_C" >&6
29154 # One or both of the vars are not set, and there is no cached value.
29155 ac_x_includes=no ac_x_libraries=no
29156 rm -f -r conftest.dir
29157 if mkdir conftest.dir; then
29159 cat >Imakefile <<'_ACEOF'
29161 @echo incroot='${INCROOT}'
29163 @echo usrlibdir='${USRLIBDIR}'
29165 @echo libdir='${LIBDIR}'
29167 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29168 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29169 for ac_var in incroot usrlibdir libdir; do
29170 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29172 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29173 for ac_extension in a so sl; do
29174 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29175 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29176 ac_im_usrlibdir=$ac_im_libdir; break
29179 # Screen out bogus values from the imake configuration. They are
29180 # bogus both because they are the default anyway, and because
29181 # using them would break gcc on systems where it needs fixed includes.
29182 case $ac_im_incroot in
29183 /usr/include) ac_x_includes= ;;
29184 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29186 case $ac_im_usrlibdir in
29187 /usr/lib | /lib) ;;
29188 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29192 rm -f -r conftest.dir
29195 # Standard set of common directories for X headers.
29196 # Check X11 before X11Rn because it is often a symlink to the current release.
29208 /usr/local/X11/include
29209 /usr/local/X11R6/include
29210 /usr/local/X11R5/include
29211 /usr/local/X11R4/include
29213 /usr/local/include/X11
29214 /usr/local/include/X11R6
29215 /usr/local/include/X11R5
29216 /usr/local/include/X11R4
29220 /usr/XFree86/include/X11
29224 /usr/unsupported/include
29225 /usr/athena/include
29226 /usr/local/x11r5/include
29227 /usr/lpp/Xamples/include
29229 /usr/openwin/include
29230 /usr/openwin/share/include'
29232 if test "$ac_x_includes" = no; then
29233 # Guess where to find include files, by looking for Xlib.h.
29234 # First, try using that file with no special directory specified.
29235 cat >conftest.$ac_ext <<_ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h. */
29241 #include <X11/Xlib.h>
29243 if { (ac_try="$ac_cpp conftest.$ac_ext"
29244 case "(($ac_try" in
29245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246 *) ac_try_echo=$ac_try;;
29248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29251 grep -v '^ *+' conftest.er1 >conftest.err
29253 cat conftest.err >&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); } >/dev/null && {
29256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29257 test ! -s conftest.err
29259 # We can compile using X headers with no special include directory.
29262 echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29265 for ac_dir in $ac_x_header_dirs; do
29266 if test -r "$ac_dir/X11/Xlib.h"; then
29267 ac_x_includes=$ac_dir
29273 rm -f conftest.err conftest.$ac_ext
29274 fi # $ac_x_includes = no
29276 if test "$ac_x_libraries" = no; then
29277 # Check for the libraries.
29278 # See if we find them without any special options.
29279 # Don't add to $LIBS permanently.
29282 cat >conftest.$ac_ext <<_ACEOF
29285 cat confdefs.h >>conftest.$ac_ext
29286 cat >>conftest.$ac_ext <<_ACEOF
29287 /* end confdefs.h. */
29288 #include <X11/Xlib.h>
29297 rm -f conftest.$ac_objext conftest$ac_exeext
29298 if { (ac_try="$ac_link"
29299 case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_link") 2>conftest.er1
29306 grep -v '^ *+' conftest.er1 >conftest.err
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } && {
29311 test -z "$ac_c_werror_flag" ||
29312 test ! -s conftest.err
29313 } && test -s conftest$ac_exeext &&
29314 $as_test_x conftest$ac_exeext; then
29316 # We can link X programs with no special library path.
29319 echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29325 # Don't even attempt the hair of trying to link an X program!
29326 for ac_extension in a so sl; do
29327 if test -r "$ac_dir/libX11.$ac_extension"; then
29328 ac_x_libraries=$ac_dir
29335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29336 conftest$ac_exeext conftest.$ac_ext
29337 fi # $ac_x_libraries = no
29339 case $ac_x_includes,$ac_x_libraries in #(
29340 no,* | *,no | *\'*)
29341 # Didn't find X, or a directory has "'" in its name.
29342 ac_cv_have_x="have_x=no";; #(
29344 # Record where we found X for the cache.
29345 ac_cv_have_x="have_x=yes\
29346 ac_x_includes='$ac_x_includes'\
29347 ac_x_libraries='$ac_x_libraries'"
29353 eval "$ac_cv_have_x"
29356 if test "$have_x" != yes; then
29357 { echo "$as_me:$LINENO: result: $have_x" >&5
29358 echo "${ECHO_T}$have_x" >&6; }
29361 # If each of the values was on the command line, it overrides each guess.
29362 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29363 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29364 # Update the cache value to reflect the command line values.
29365 ac_cv_have_x="have_x=yes\
29366 ac_x_includes='$x_includes'\
29367 ac_x_libraries='$x_libraries'"
29368 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29369 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29372 if test "$no_x" = yes; then
29373 # Not all programs may use this symbol, but it does not hurt to define it.
29375 cat >>confdefs.h <<\_ACEOF
29376 #define X_DISPLAY_MISSING 1
29379 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29381 if test -n "$x_includes"; then
29382 X_CFLAGS="$X_CFLAGS -I$x_includes"
29385 # It would also be nice to do this for all -L options, not just this one.
29386 if test -n "$x_libraries"; then
29387 X_LIBS="$X_LIBS -L$x_libraries"
29388 # For Solaris; some versions of Sun CC require a space after -R and
29389 # others require no space. Words are not sufficient . . . .
29390 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29391 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29392 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29393 ac_xsave_c_werror_flag=$ac_c_werror_flag
29394 ac_c_werror_flag=yes
29395 cat >conftest.$ac_ext <<_ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h. */
29410 rm -f conftest.$ac_objext conftest$ac_exeext
29411 if { (ac_try="$ac_link"
29412 case "(($ac_try" in
29413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414 *) ac_try_echo=$ac_try;;
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417 (eval "$ac_link") 2>conftest.er1
29419 grep -v '^ *+' conftest.er1 >conftest.err
29421 cat conftest.err >&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); } && {
29424 test -z "$ac_c_werror_flag" ||
29425 test ! -s conftest.err
29426 } && test -s conftest$ac_exeext &&
29427 $as_test_x conftest$ac_exeext; then
29428 { echo "$as_me:$LINENO: result: no" >&5
29429 echo "${ECHO_T}no" >&6; }
29430 X_LIBS="$X_LIBS -R$x_libraries"
29432 echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29435 LIBS="$ac_xsave_LIBS -R $x_libraries"
29436 cat >conftest.$ac_ext <<_ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h. */
29451 rm -f conftest.$ac_objext conftest$ac_exeext
29452 if { (ac_try="$ac_link"
29453 case "(($ac_try" in
29454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455 *) ac_try_echo=$ac_try;;
29457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458 (eval "$ac_link") 2>conftest.er1
29460 grep -v '^ *+' conftest.er1 >conftest.err
29462 cat conftest.err >&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } && {
29465 test -z "$ac_c_werror_flag" ||
29466 test ! -s conftest.err
29467 } && test -s conftest$ac_exeext &&
29468 $as_test_x conftest$ac_exeext; then
29469 { echo "$as_me:$LINENO: result: yes" >&5
29470 echo "${ECHO_T}yes" >&6; }
29471 X_LIBS="$X_LIBS -R $x_libraries"
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29476 { echo "$as_me:$LINENO: result: neither works" >&5
29477 echo "${ECHO_T}neither works" >&6; }
29480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29481 conftest$ac_exeext conftest.$ac_ext
29484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29485 conftest$ac_exeext conftest.$ac_ext
29486 ac_c_werror_flag=$ac_xsave_c_werror_flag
29487 LIBS=$ac_xsave_LIBS
29490 # Check for system-dependent libraries X programs must link with.
29491 # Do this before checking for the system-independent R6 libraries
29492 # (-lICE), since we may need -lsocket or whatever for X linking.
29494 if test "$ISC" = yes; then
29495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29497 # Martyn Johnson says this is needed for Ultrix, if the X
29498 # libraries were built with DECnet support. And Karl Berry says
29499 # the Alpha needs dnet_stub (dnet does not exist).
29500 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29501 cat >conftest.$ac_ext <<_ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h. */
29508 /* Override any GCC internal prototype to avoid an error.
29509 Use char because int might match the return type of a GCC
29510 builtin and then its argument prototype would still apply. */
29514 char XOpenDisplay ();
29518 return XOpenDisplay ();
29523 rm -f conftest.$ac_objext conftest$ac_exeext
29524 if { (ac_try="$ac_link"
29525 case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_link") 2>conftest.er1
29532 grep -v '^ *+' conftest.er1 >conftest.err
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } && {
29537 test -z "$ac_c_werror_flag" ||
29538 test ! -s conftest.err
29539 } && test -s conftest$ac_exeext &&
29540 $as_test_x conftest$ac_exeext; then
29543 echo "$as_me: failed program was:" >&5
29544 sed 's/^/| /' conftest.$ac_ext >&5
29546 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29547 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29548 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29549 echo $ECHO_N "(cached) $ECHO_C" >&6
29551 ac_check_lib_save_LIBS=$LIBS
29552 LIBS="-ldnet $LIBS"
29553 cat >conftest.$ac_ext <<_ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h. */
29560 /* Override any GCC internal prototype to avoid an error.
29561 Use char because int might match the return type of a GCC
29562 builtin and then its argument prototype would still apply. */
29570 return dnet_ntoa ();
29575 rm -f conftest.$ac_objext conftest$ac_exeext
29576 if { (ac_try="$ac_link"
29577 case "(($ac_try" in
29578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29579 *) ac_try_echo=$ac_try;;
29581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29582 (eval "$ac_link") 2>conftest.er1
29584 grep -v '^ *+' conftest.er1 >conftest.err
29586 cat conftest.err >&5
29587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29588 (exit $ac_status); } && {
29589 test -z "$ac_c_werror_flag" ||
29590 test ! -s conftest.err
29591 } && test -s conftest$ac_exeext &&
29592 $as_test_x conftest$ac_exeext; then
29593 ac_cv_lib_dnet_dnet_ntoa=yes
29595 echo "$as_me: failed program was:" >&5
29596 sed 's/^/| /' conftest.$ac_ext >&5
29598 ac_cv_lib_dnet_dnet_ntoa=no
29601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29602 conftest$ac_exeext conftest.$ac_ext
29603 LIBS=$ac_check_lib_save_LIBS
29605 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29606 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29607 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29608 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29611 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29612 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29613 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29614 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29617 ac_check_lib_save_LIBS=$LIBS
29618 LIBS="-ldnet_stub $LIBS"
29619 cat >conftest.$ac_ext <<_ACEOF
29622 cat confdefs.h >>conftest.$ac_ext
29623 cat >>conftest.$ac_ext <<_ACEOF
29624 /* end confdefs.h. */
29626 /* Override any GCC internal prototype to avoid an error.
29627 Use char because int might match the return type of a GCC
29628 builtin and then its argument prototype would still apply. */
29636 return dnet_ntoa ();
29641 rm -f conftest.$ac_objext conftest$ac_exeext
29642 if { (ac_try="$ac_link"
29643 case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_link") 2>conftest.er1
29650 grep -v '^ *+' conftest.er1 >conftest.err
29652 cat conftest.err >&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } && {
29655 test -z "$ac_c_werror_flag" ||
29656 test ! -s conftest.err
29657 } && test -s conftest$ac_exeext &&
29658 $as_test_x conftest$ac_exeext; then
29659 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29661 echo "$as_me: failed program was:" >&5
29662 sed 's/^/| /' conftest.$ac_ext >&5
29664 ac_cv_lib_dnet_stub_dnet_ntoa=no
29667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29668 conftest$ac_exeext conftest.$ac_ext
29669 LIBS=$ac_check_lib_save_LIBS
29671 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29672 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29673 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29674 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29681 conftest$ac_exeext conftest.$ac_ext
29682 LIBS="$ac_xsave_LIBS"
29684 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29685 # to get the SysV transport functions.
29686 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29688 # The nsl library prevents programs from opening the X display
29689 # on Irix 5.2, according to T.E. Dickey.
29690 # The functions gethostbyname, getservbyname, and inet_addr are
29691 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29692 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29693 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29694 if test "${ac_cv_func_gethostbyname+set}" = set; then
29695 echo $ECHO_N "(cached) $ECHO_C" >&6
29697 cat >conftest.$ac_ext <<_ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h. */
29703 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29705 #define gethostbyname innocuous_gethostbyname
29707 /* System header to define __stub macros and hopefully few prototypes,
29708 which can conflict with char gethostbyname (); below.
29709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29710 <limits.h> exists even on freestanding compilers. */
29713 # include <limits.h>
29715 # include <assert.h>
29718 #undef gethostbyname
29720 /* Override any GCC internal prototype to avoid an error.
29721 Use char because int might match the return type of a GCC
29722 builtin and then its argument prototype would still apply. */
29726 char gethostbyname ();
29727 /* The GNU C library defines this for functions which it implements
29728 to always fail with ENOSYS. Some functions are actually named
29729 something starting with __ and the normal name is an alias. */
29730 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29737 return gethostbyname ();
29742 rm -f conftest.$ac_objext conftest$ac_exeext
29743 if { (ac_try="$ac_link"
29744 case "(($ac_try" in
29745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29746 *) ac_try_echo=$ac_try;;
29748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29749 (eval "$ac_link") 2>conftest.er1
29751 grep -v '^ *+' conftest.er1 >conftest.err
29753 cat conftest.err >&5
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); } && {
29756 test -z "$ac_c_werror_flag" ||
29757 test ! -s conftest.err
29758 } && test -s conftest$ac_exeext &&
29759 $as_test_x conftest$ac_exeext; then
29760 ac_cv_func_gethostbyname=yes
29762 echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29765 ac_cv_func_gethostbyname=no
29768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29769 conftest$ac_exeext conftest.$ac_ext
29771 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29772 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29774 if test $ac_cv_func_gethostbyname = no; then
29775 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29776 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29777 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29778 echo $ECHO_N "(cached) $ECHO_C" >&6
29780 ac_check_lib_save_LIBS=$LIBS
29782 cat >conftest.$ac_ext <<_ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h. */
29789 /* Override any GCC internal prototype to avoid an error.
29790 Use char because int might match the return type of a GCC
29791 builtin and then its argument prototype would still apply. */
29795 char gethostbyname ();
29799 return gethostbyname ();
29804 rm -f conftest.$ac_objext conftest$ac_exeext
29805 if { (ac_try="$ac_link"
29806 case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_link") 2>conftest.er1
29813 grep -v '^ *+' conftest.er1 >conftest.err
29815 cat conftest.err >&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && {
29818 test -z "$ac_c_werror_flag" ||
29819 test ! -s conftest.err
29820 } && test -s conftest$ac_exeext &&
29821 $as_test_x conftest$ac_exeext; then
29822 ac_cv_lib_nsl_gethostbyname=yes
29824 echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.$ac_ext >&5
29827 ac_cv_lib_nsl_gethostbyname=no
29830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29831 conftest$ac_exeext conftest.$ac_ext
29832 LIBS=$ac_check_lib_save_LIBS
29834 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29835 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29836 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29837 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29840 if test $ac_cv_lib_nsl_gethostbyname = no; then
29841 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29842 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29843 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29844 echo $ECHO_N "(cached) $ECHO_C" >&6
29846 ac_check_lib_save_LIBS=$LIBS
29848 cat >conftest.$ac_ext <<_ACEOF
29851 cat confdefs.h >>conftest.$ac_ext
29852 cat >>conftest.$ac_ext <<_ACEOF
29853 /* end confdefs.h. */
29855 /* Override any GCC internal prototype to avoid an error.
29856 Use char because int might match the return type of a GCC
29857 builtin and then its argument prototype would still apply. */
29861 char gethostbyname ();
29865 return gethostbyname ();
29870 rm -f conftest.$ac_objext conftest$ac_exeext
29871 if { (ac_try="$ac_link"
29872 case "(($ac_try" in
29873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874 *) ac_try_echo=$ac_try;;
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877 (eval "$ac_link") 2>conftest.er1
29879 grep -v '^ *+' conftest.er1 >conftest.err
29881 cat conftest.err >&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } && {
29884 test -z "$ac_c_werror_flag" ||
29885 test ! -s conftest.err
29886 } && test -s conftest$ac_exeext &&
29887 $as_test_x conftest$ac_exeext; then
29888 ac_cv_lib_bsd_gethostbyname=yes
29890 echo "$as_me: failed program was:" >&5
29891 sed 's/^/| /' conftest.$ac_ext >&5
29893 ac_cv_lib_bsd_gethostbyname=no
29896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29897 conftest$ac_exeext conftest.$ac_ext
29898 LIBS=$ac_check_lib_save_LIBS
29900 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29901 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29902 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29909 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29910 # socket/setsockopt and other routines are undefined under SCO ODT
29911 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29912 # on later versions), says Simon Leinen: it contains gethostby*
29913 # variants that don't use the name server (or something). -lsocket
29914 # must be given before -lnsl if both are needed. We assume that
29915 # if connect needs -lnsl, so does gethostbyname.
29916 { echo "$as_me:$LINENO: checking for connect" >&5
29917 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29918 if test "${ac_cv_func_connect+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29921 cat >conftest.$ac_ext <<_ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h. */
29927 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29929 #define connect innocuous_connect
29931 /* System header to define __stub macros and hopefully few prototypes,
29932 which can conflict with char connect (); below.
29933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29934 <limits.h> exists even on freestanding compilers. */
29937 # include <limits.h>
29939 # include <assert.h>
29944 /* Override any GCC internal prototype to avoid an error.
29945 Use char because int might match the return type of a GCC
29946 builtin and then its argument prototype would still apply. */
29951 /* The GNU C library defines this for functions which it implements
29952 to always fail with ENOSYS. Some functions are actually named
29953 something starting with __ and the normal name is an alias. */
29954 #if defined __stub_connect || defined __stub___connect
29966 rm -f conftest.$ac_objext conftest$ac_exeext
29967 if { (ac_try="$ac_link"
29968 case "(($ac_try" in
29969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970 *) ac_try_echo=$ac_try;;
29972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973 (eval "$ac_link") 2>conftest.er1
29975 grep -v '^ *+' conftest.er1 >conftest.err
29977 cat conftest.err >&5
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); } && {
29980 test -z "$ac_c_werror_flag" ||
29981 test ! -s conftest.err
29982 } && test -s conftest$ac_exeext &&
29983 $as_test_x conftest$ac_exeext; then
29984 ac_cv_func_connect=yes
29986 echo "$as_me: failed program was:" >&5
29987 sed 's/^/| /' conftest.$ac_ext >&5
29989 ac_cv_func_connect=no
29992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29993 conftest$ac_exeext conftest.$ac_ext
29995 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29996 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29998 if test $ac_cv_func_connect = no; then
29999 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30000 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30001 if test "${ac_cv_lib_socket_connect+set}" = set; then
30002 echo $ECHO_N "(cached) $ECHO_C" >&6
30004 ac_check_lib_save_LIBS=$LIBS
30005 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30006 cat >conftest.$ac_ext <<_ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h. */
30013 /* Override any GCC internal prototype to avoid an error.
30014 Use char because int might match the return type of a GCC
30015 builtin and then its argument prototype would still apply. */
30028 rm -f conftest.$ac_objext conftest$ac_exeext
30029 if { (ac_try="$ac_link"
30030 case "(($ac_try" in
30031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032 *) ac_try_echo=$ac_try;;
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035 (eval "$ac_link") 2>conftest.er1
30037 grep -v '^ *+' conftest.er1 >conftest.err
30039 cat conftest.err >&5
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); } && {
30042 test -z "$ac_c_werror_flag" ||
30043 test ! -s conftest.err
30044 } && test -s conftest$ac_exeext &&
30045 $as_test_x conftest$ac_exeext; then
30046 ac_cv_lib_socket_connect=yes
30048 echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30051 ac_cv_lib_socket_connect=no
30054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30055 conftest$ac_exeext conftest.$ac_ext
30056 LIBS=$ac_check_lib_save_LIBS
30058 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30059 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30060 if test $ac_cv_lib_socket_connect = yes; then
30061 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30066 # Guillermo Gomez says -lposix is necessary on A/UX.
30067 { echo "$as_me:$LINENO: checking for remove" >&5
30068 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30069 if test "${ac_cv_func_remove+set}" = set; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30072 cat >conftest.$ac_ext <<_ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h. */
30078 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30080 #define remove innocuous_remove
30082 /* System header to define __stub macros and hopefully few prototypes,
30083 which can conflict with char remove (); below.
30084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30085 <limits.h> exists even on freestanding compilers. */
30088 # include <limits.h>
30090 # include <assert.h>
30095 /* Override any GCC internal prototype to avoid an error.
30096 Use char because int might match the return type of a GCC
30097 builtin and then its argument prototype would still apply. */
30102 /* The GNU C library defines this for functions which it implements
30103 to always fail with ENOSYS. Some functions are actually named
30104 something starting with __ and the normal name is an alias. */
30105 #if defined __stub_remove || defined __stub___remove
30117 rm -f conftest.$ac_objext conftest$ac_exeext
30118 if { (ac_try="$ac_link"
30119 case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124 (eval "$ac_link") 2>conftest.er1
30126 grep -v '^ *+' conftest.er1 >conftest.err
30128 cat conftest.err >&5
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); } && {
30131 test -z "$ac_c_werror_flag" ||
30132 test ! -s conftest.err
30133 } && test -s conftest$ac_exeext &&
30134 $as_test_x conftest$ac_exeext; then
30135 ac_cv_func_remove=yes
30137 echo "$as_me: failed program was:" >&5
30138 sed 's/^/| /' conftest.$ac_ext >&5
30140 ac_cv_func_remove=no
30143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30144 conftest$ac_exeext conftest.$ac_ext
30146 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30147 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30149 if test $ac_cv_func_remove = no; then
30150 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30151 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30152 if test "${ac_cv_lib_posix_remove+set}" = set; then
30153 echo $ECHO_N "(cached) $ECHO_C" >&6
30155 ac_check_lib_save_LIBS=$LIBS
30156 LIBS="-lposix $LIBS"
30157 cat >conftest.$ac_ext <<_ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h. */
30164 /* Override any GCC internal prototype to avoid an error.
30165 Use char because int might match the return type of a GCC
30166 builtin and then its argument prototype would still apply. */
30179 rm -f conftest.$ac_objext conftest$ac_exeext
30180 if { (ac_try="$ac_link"
30181 case "(($ac_try" in
30182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183 *) ac_try_echo=$ac_try;;
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186 (eval "$ac_link") 2>conftest.er1
30188 grep -v '^ *+' conftest.er1 >conftest.err
30190 cat conftest.err >&5
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); } && {
30193 test -z "$ac_c_werror_flag" ||
30194 test ! -s conftest.err
30195 } && test -s conftest$ac_exeext &&
30196 $as_test_x conftest$ac_exeext; then
30197 ac_cv_lib_posix_remove=yes
30199 echo "$as_me: failed program was:" >&5
30200 sed 's/^/| /' conftest.$ac_ext >&5
30202 ac_cv_lib_posix_remove=no
30205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30206 conftest$ac_exeext conftest.$ac_ext
30207 LIBS=$ac_check_lib_save_LIBS
30209 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30210 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30211 if test $ac_cv_lib_posix_remove = yes; then
30212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30217 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30218 { echo "$as_me:$LINENO: checking for shmat" >&5
30219 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30220 if test "${ac_cv_func_shmat+set}" = set; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30223 cat >conftest.$ac_ext <<_ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h. */
30229 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30231 #define shmat innocuous_shmat
30233 /* System header to define __stub macros and hopefully few prototypes,
30234 which can conflict with char shmat (); below.
30235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30236 <limits.h> exists even on freestanding compilers. */
30239 # include <limits.h>
30241 # include <assert.h>
30246 /* Override any GCC internal prototype to avoid an error.
30247 Use char because int might match the return type of a GCC
30248 builtin and then its argument prototype would still apply. */
30253 /* The GNU C library defines this for functions which it implements
30254 to always fail with ENOSYS. Some functions are actually named
30255 something starting with __ and the normal name is an alias. */
30256 #if defined __stub_shmat || defined __stub___shmat
30268 rm -f conftest.$ac_objext conftest$ac_exeext
30269 if { (ac_try="$ac_link"
30270 case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275 (eval "$ac_link") 2>conftest.er1
30277 grep -v '^ *+' conftest.er1 >conftest.err
30279 cat conftest.err >&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } && {
30282 test -z "$ac_c_werror_flag" ||
30283 test ! -s conftest.err
30284 } && test -s conftest$ac_exeext &&
30285 $as_test_x conftest$ac_exeext; then
30286 ac_cv_func_shmat=yes
30288 echo "$as_me: failed program was:" >&5
30289 sed 's/^/| /' conftest.$ac_ext >&5
30291 ac_cv_func_shmat=no
30294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30295 conftest$ac_exeext conftest.$ac_ext
30297 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30298 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30300 if test $ac_cv_func_shmat = no; then
30301 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30302 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30303 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30304 echo $ECHO_N "(cached) $ECHO_C" >&6
30306 ac_check_lib_save_LIBS=$LIBS
30308 cat >conftest.$ac_ext <<_ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h. */
30315 /* Override any GCC internal prototype to avoid an error.
30316 Use char because int might match the return type of a GCC
30317 builtin and then its argument prototype would still apply. */
30330 rm -f conftest.$ac_objext conftest$ac_exeext
30331 if { (ac_try="$ac_link"
30332 case "(($ac_try" in
30333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334 *) ac_try_echo=$ac_try;;
30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337 (eval "$ac_link") 2>conftest.er1
30339 grep -v '^ *+' conftest.er1 >conftest.err
30341 cat conftest.err >&5
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } && {
30344 test -z "$ac_c_werror_flag" ||
30345 test ! -s conftest.err
30346 } && test -s conftest$ac_exeext &&
30347 $as_test_x conftest$ac_exeext; then
30348 ac_cv_lib_ipc_shmat=yes
30350 echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30353 ac_cv_lib_ipc_shmat=no
30356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30357 conftest$ac_exeext conftest.$ac_ext
30358 LIBS=$ac_check_lib_save_LIBS
30360 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30361 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30362 if test $ac_cv_lib_ipc_shmat = yes; then
30363 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30369 # Check for libraries that X11R6 Xt/Xaw programs need.
30370 ac_save_LDFLAGS=$LDFLAGS
30371 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30372 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30373 # check for ICE first), but we must link in the order -lSM -lICE or
30374 # we get undefined symbols. So assume we have SM if we have ICE.
30375 # These have to be linked with before -lX11, unlike the other
30376 # libraries we check for below, so use a different variable.
30377 # John Interrante, Karl Berry
30378 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30379 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30380 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30381 echo $ECHO_N "(cached) $ECHO_C" >&6
30383 ac_check_lib_save_LIBS=$LIBS
30384 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30385 cat >conftest.$ac_ext <<_ACEOF
30388 cat confdefs.h >>conftest.$ac_ext
30389 cat >>conftest.$ac_ext <<_ACEOF
30390 /* end confdefs.h. */
30392 /* Override any GCC internal prototype to avoid an error.
30393 Use char because int might match the return type of a GCC
30394 builtin and then its argument prototype would still apply. */
30398 char IceConnectionNumber ();
30402 return IceConnectionNumber ();
30407 rm -f conftest.$ac_objext conftest$ac_exeext
30408 if { (ac_try="$ac_link"
30409 case "(($ac_try" in
30410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411 *) ac_try_echo=$ac_try;;
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414 (eval "$ac_link") 2>conftest.er1
30416 grep -v '^ *+' conftest.er1 >conftest.err
30418 cat conftest.err >&5
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); } && {
30421 test -z "$ac_c_werror_flag" ||
30422 test ! -s conftest.err
30423 } && test -s conftest$ac_exeext &&
30424 $as_test_x conftest$ac_exeext; then
30425 ac_cv_lib_ICE_IceConnectionNumber=yes
30427 echo "$as_me: failed program was:" >&5
30428 sed 's/^/| /' conftest.$ac_ext >&5
30430 ac_cv_lib_ICE_IceConnectionNumber=no
30433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30434 conftest$ac_exeext conftest.$ac_ext
30435 LIBS=$ac_check_lib_save_LIBS
30437 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30438 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30439 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30440 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30443 LDFLAGS=$ac_save_LDFLAGS
30511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
30518 ac_res=`eval echo '${'$as_ac_Header'}'`
30519 { echo "$as_me:$LINENO: result: $ac_res" >&5
30520 echo "${ECHO_T}$ac_res" >&6; }
30522 # Is the header compilable?
30523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30525 cat >conftest.$ac_ext <<_ACEOF
30528 cat confdefs.h >>conftest.$ac_ext
30529 cat >>conftest.$ac_ext <<_ACEOF
30530 /* end confdefs.h. */
30531 $ac_includes_default
30532 #include <$ac_header>
30534 rm -f conftest.$ac_objext
30535 if { (ac_try="$ac_compile"
30536 case "(($ac_try" in
30537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538 *) ac_try_echo=$ac_try;;
30540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541 (eval "$ac_compile") 2>conftest.er1
30543 grep -v '^ *+' conftest.er1 >conftest.err
30545 cat conftest.err >&5
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); } && {
30548 test -z "$ac_c_werror_flag" ||
30549 test ! -s conftest.err
30550 } && test -s conftest.$ac_objext; then
30551 ac_header_compiler=yes
30553 echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30556 ac_header_compiler=no
30559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30561 echo "${ECHO_T}$ac_header_compiler" >&6; }
30563 # Is the header present?
30564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30566 cat >conftest.$ac_ext <<_ACEOF
30569 cat confdefs.h >>conftest.$ac_ext
30570 cat >>conftest.$ac_ext <<_ACEOF
30571 /* end confdefs.h. */
30572 #include <$ac_header>
30574 if { (ac_try="$ac_cpp conftest.$ac_ext"
30575 case "(($ac_try" in
30576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30577 *) ac_try_echo=$ac_try;;
30579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30582 grep -v '^ *+' conftest.er1 >conftest.err
30584 cat conftest.err >&5
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); } >/dev/null && {
30587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30588 test ! -s conftest.err
30590 ac_header_preproc=yes
30592 echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30595 ac_header_preproc=no
30598 rm -f conftest.err conftest.$ac_ext
30599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30600 echo "${ECHO_T}$ac_header_preproc" >&6; }
30602 # So? What about this header?
30603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30609 ac_header_preproc=yes
30612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30630 echo $ECHO_N "(cached) $ECHO_C" >&6
30632 eval "$as_ac_Header=\$ac_header_preproc"
30634 ac_res=`eval echo '${'$as_ac_Header'}'`
30635 { echo "$as_me:$LINENO: result: $ac_res" >&5
30636 echo "${ECHO_T}$ac_res" >&6; }
30639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30640 cat >>confdefs.h <<_ACEOF
30641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30648 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30649 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30650 if test "${ac_cv_header_stdc+set}" = set; then
30651 echo $ECHO_N "(cached) $ECHO_C" >&6
30653 cat >conftest.$ac_ext <<_ACEOF
30656 cat confdefs.h >>conftest.$ac_ext
30657 cat >>conftest.$ac_ext <<_ACEOF
30658 /* end confdefs.h. */
30659 #include <stdlib.h>
30660 #include <stdarg.h>
30661 #include <string.h>
30672 rm -f conftest.$ac_objext
30673 if { (ac_try="$ac_compile"
30674 case "(($ac_try" in
30675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30676 *) ac_try_echo=$ac_try;;
30678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30679 (eval "$ac_compile") 2>conftest.er1
30681 grep -v '^ *+' conftest.er1 >conftest.err
30683 cat conftest.err >&5
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); } && {
30686 test -z "$ac_c_werror_flag" ||
30687 test ! -s conftest.err
30688 } && test -s conftest.$ac_objext; then
30689 ac_cv_header_stdc=yes
30691 echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30694 ac_cv_header_stdc=no
30697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30699 if test $ac_cv_header_stdc = yes; then
30700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30701 cat >conftest.$ac_ext <<_ACEOF
30704 cat confdefs.h >>conftest.$ac_ext
30705 cat >>conftest.$ac_ext <<_ACEOF
30706 /* end confdefs.h. */
30707 #include <string.h>
30710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30711 $EGREP "memchr" >/dev/null 2>&1; then
30714 ac_cv_header_stdc=no
30720 if test $ac_cv_header_stdc = yes; then
30721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30722 cat >conftest.$ac_ext <<_ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30728 #include <stdlib.h>
30731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30732 $EGREP "free" >/dev/null 2>&1; then
30735 ac_cv_header_stdc=no
30741 if test $ac_cv_header_stdc = yes; then
30742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30743 if test "$cross_compiling" = yes; then
30746 cat >conftest.$ac_ext <<_ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h. */
30753 #include <stdlib.h>
30754 #if ((' ' & 0x0FF) == 0x020)
30755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30758 # define ISLOWER(c) \
30759 (('a' <= (c) && (c) <= 'i') \
30760 || ('j' <= (c) && (c) <= 'r') \
30761 || ('s' <= (c) && (c) <= 'z'))
30762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30770 for (i = 0; i < 256; i++)
30771 if (XOR (islower (i), ISLOWER (i))
30772 || toupper (i) != TOUPPER (i))
30777 rm -f conftest$ac_exeext
30778 if { (ac_try="$ac_link"
30779 case "(($ac_try" in
30780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781 *) ac_try_echo=$ac_try;;
30783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784 (eval "$ac_link") 2>&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30788 { (case "(($ac_try" in
30789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30790 *) ac_try_echo=$ac_try;;
30792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30793 (eval "$ac_try") 2>&5
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; }; then
30799 echo "$as_me: program exited with status $ac_status" >&5
30800 echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30803 ( exit $ac_status )
30804 ac_cv_header_stdc=no
30806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30812 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30813 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30814 if test $ac_cv_header_stdc = yes; then
30816 cat >>confdefs.h <<\_ACEOF
30817 #define STDC_HEADERS 1
30822 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30823 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30824 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30825 echo $ECHO_N "(cached) $ECHO_C" >&6
30827 cat >conftest.$ac_ext <<_ACEOF
30830 cat confdefs.h >>conftest.$ac_ext
30831 cat >>conftest.$ac_ext <<_ACEOF
30832 /* end confdefs.h. */
30833 #include <sys/types.h>
30837 return makedev(0, 0);
30842 rm -f conftest.$ac_objext conftest$ac_exeext
30843 if { (ac_try="$ac_link"
30844 case "(($ac_try" in
30845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30846 *) ac_try_echo=$ac_try;;
30848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30849 (eval "$ac_link") 2>conftest.er1
30851 grep -v '^ *+' conftest.er1 >conftest.err
30853 cat conftest.err >&5
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); } && {
30856 test -z "$ac_c_werror_flag" ||
30857 test ! -s conftest.err
30858 } && test -s conftest$ac_exeext &&
30859 $as_test_x conftest$ac_exeext; then
30860 ac_cv_header_sys_types_h_makedev=yes
30862 echo "$as_me: failed program was:" >&5
30863 sed 's/^/| /' conftest.$ac_ext >&5
30865 ac_cv_header_sys_types_h_makedev=no
30868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30869 conftest$ac_exeext conftest.$ac_ext
30872 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30873 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30875 if test $ac_cv_header_sys_types_h_makedev = no; then
30876 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30877 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30878 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30879 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30880 echo $ECHO_N "(cached) $ECHO_C" >&6
30882 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30883 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30885 # Is the header compilable?
30886 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30887 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30888 cat >conftest.$ac_ext <<_ACEOF
30891 cat confdefs.h >>conftest.$ac_ext
30892 cat >>conftest.$ac_ext <<_ACEOF
30893 /* end confdefs.h. */
30894 $ac_includes_default
30895 #include <sys/mkdev.h>
30897 rm -f conftest.$ac_objext
30898 if { (ac_try="$ac_compile"
30899 case "(($ac_try" in
30900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901 *) ac_try_echo=$ac_try;;
30903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904 (eval "$ac_compile") 2>conftest.er1
30906 grep -v '^ *+' conftest.er1 >conftest.err
30908 cat conftest.err >&5
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); } && {
30911 test -z "$ac_c_werror_flag" ||
30912 test ! -s conftest.err
30913 } && test -s conftest.$ac_objext; then
30914 ac_header_compiler=yes
30916 echo "$as_me: failed program was:" >&5
30917 sed 's/^/| /' conftest.$ac_ext >&5
30919 ac_header_compiler=no
30922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30924 echo "${ECHO_T}$ac_header_compiler" >&6; }
30926 # Is the header present?
30927 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30928 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30929 cat >conftest.$ac_ext <<_ACEOF
30932 cat confdefs.h >>conftest.$ac_ext
30933 cat >>conftest.$ac_ext <<_ACEOF
30934 /* end confdefs.h. */
30935 #include <sys/mkdev.h>
30937 if { (ac_try="$ac_cpp conftest.$ac_ext"
30938 case "(($ac_try" in
30939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30940 *) ac_try_echo=$ac_try;;
30942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30945 grep -v '^ *+' conftest.er1 >conftest.err
30947 cat conftest.err >&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); } >/dev/null && {
30950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30951 test ! -s conftest.err
30953 ac_header_preproc=yes
30955 echo "$as_me: failed program was:" >&5
30956 sed 's/^/| /' conftest.$ac_ext >&5
30958 ac_header_preproc=no
30961 rm -f conftest.err conftest.$ac_ext
30962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30963 echo "${ECHO_T}$ac_header_preproc" >&6; }
30965 # So? What about this header?
30966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30968 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30969 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30971 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30972 ac_header_preproc=yes
30975 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30976 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30977 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
30978 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
30979 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30980 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30981 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
30982 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30983 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30984 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30985 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30986 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30990 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30991 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30992 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30993 echo $ECHO_N "(cached) $ECHO_C" >&6
30995 ac_cv_header_sys_mkdev_h=$ac_header_preproc
30997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30998 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31001 if test $ac_cv_header_sys_mkdev_h = yes; then
31003 cat >>confdefs.h <<\_ACEOF
31004 #define MAJOR_IN_MKDEV 1
31011 if test $ac_cv_header_sys_mkdev_h = no; then
31012 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31013 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31014 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31015 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31016 echo $ECHO_N "(cached) $ECHO_C" >&6
31018 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31019 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31021 # Is the header compilable?
31022 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31023 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31024 cat >conftest.$ac_ext <<_ACEOF
31027 cat confdefs.h >>conftest.$ac_ext
31028 cat >>conftest.$ac_ext <<_ACEOF
31029 /* end confdefs.h. */
31030 $ac_includes_default
31031 #include <sys/sysmacros.h>
31033 rm -f conftest.$ac_objext
31034 if { (ac_try="$ac_compile"
31035 case "(($ac_try" in
31036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037 *) ac_try_echo=$ac_try;;
31039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040 (eval "$ac_compile") 2>conftest.er1
31042 grep -v '^ *+' conftest.er1 >conftest.err
31044 cat conftest.err >&5
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); } && {
31047 test -z "$ac_c_werror_flag" ||
31048 test ! -s conftest.err
31049 } && test -s conftest.$ac_objext; then
31050 ac_header_compiler=yes
31052 echo "$as_me: failed program was:" >&5
31053 sed 's/^/| /' conftest.$ac_ext >&5
31055 ac_header_compiler=no
31058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31060 echo "${ECHO_T}$ac_header_compiler" >&6; }
31062 # Is the header present?
31063 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31064 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31065 cat >conftest.$ac_ext <<_ACEOF
31068 cat confdefs.h >>conftest.$ac_ext
31069 cat >>conftest.$ac_ext <<_ACEOF
31070 /* end confdefs.h. */
31071 #include <sys/sysmacros.h>
31073 if { (ac_try="$ac_cpp conftest.$ac_ext"
31074 case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31081 grep -v '^ *+' conftest.er1 >conftest.err
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } >/dev/null && {
31086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31087 test ! -s conftest.err
31089 ac_header_preproc=yes
31091 echo "$as_me: failed program was:" >&5
31092 sed 's/^/| /' conftest.$ac_ext >&5
31094 ac_header_preproc=no
31097 rm -f conftest.err conftest.$ac_ext
31098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31099 echo "${ECHO_T}$ac_header_preproc" >&6; }
31101 # So? What about this header?
31102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31105 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31106 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31107 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31108 ac_header_preproc=yes
31111 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31112 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31113 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31114 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31116 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31118 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31120 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31122 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31126 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31127 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31128 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31129 echo $ECHO_N "(cached) $ECHO_C" >&6
31131 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31133 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31134 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31137 if test $ac_cv_header_sys_sysmacros_h = yes; then
31139 cat >>confdefs.h <<\_ACEOF
31140 #define MAJOR_IN_SYSMACROS 1
31154 ac_header_dirent=no
31155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31156 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31157 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31158 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31160 echo $ECHO_N "(cached) $ECHO_C" >&6
31162 cat >conftest.$ac_ext <<_ACEOF
31165 cat confdefs.h >>conftest.$ac_ext
31166 cat >>conftest.$ac_ext <<_ACEOF
31167 /* end confdefs.h. */
31168 #include <sys/types.h>
31180 rm -f conftest.$ac_objext
31181 if { (ac_try="$ac_compile"
31182 case "(($ac_try" in
31183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184 *) ac_try_echo=$ac_try;;
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187 (eval "$ac_compile") 2>conftest.er1
31189 grep -v '^ *+' conftest.er1 >conftest.err
31191 cat conftest.err >&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); } && {
31194 test -z "$ac_c_werror_flag" ||
31195 test ! -s conftest.err
31196 } && test -s conftest.$ac_objext; then
31197 eval "$as_ac_Header=yes"
31199 echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31202 eval "$as_ac_Header=no"
31205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31207 ac_res=`eval echo '${'$as_ac_Header'}'`
31208 { echo "$as_me:$LINENO: result: $ac_res" >&5
31209 echo "${ECHO_T}$ac_res" >&6; }
31210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31211 cat >>confdefs.h <<_ACEOF
31212 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31215 ac_header_dirent=$ac_hdr; break
31219 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31220 if test $ac_header_dirent = dirent.h; then
31221 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31223 if test "${ac_cv_search_opendir+set}" = set; then
31224 echo $ECHO_N "(cached) $ECHO_C" >&6
31226 ac_func_search_save_LIBS=$LIBS
31227 cat >conftest.$ac_ext <<_ACEOF
31230 cat confdefs.h >>conftest.$ac_ext
31231 cat >>conftest.$ac_ext <<_ACEOF
31232 /* end confdefs.h. */
31234 /* Override any GCC internal prototype to avoid an error.
31235 Use char because int might match the return type of a GCC
31236 builtin and then its argument prototype would still apply. */
31249 for ac_lib in '' dir; do
31250 if test -z "$ac_lib"; then
31251 ac_res="none required"
31254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31256 rm -f conftest.$ac_objext conftest$ac_exeext
31257 if { (ac_try="$ac_link"
31258 case "(($ac_try" in
31259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260 *) ac_try_echo=$ac_try;;
31262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263 (eval "$ac_link") 2>conftest.er1
31265 grep -v '^ *+' conftest.er1 >conftest.err
31267 cat conftest.err >&5
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); } && {
31270 test -z "$ac_c_werror_flag" ||
31271 test ! -s conftest.err
31272 } && test -s conftest$ac_exeext &&
31273 $as_test_x conftest$ac_exeext; then
31274 ac_cv_search_opendir=$ac_res
31276 echo "$as_me: failed program was:" >&5
31277 sed 's/^/| /' conftest.$ac_ext >&5
31282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31284 if test "${ac_cv_search_opendir+set}" = set; then
31288 if test "${ac_cv_search_opendir+set}" = set; then
31291 ac_cv_search_opendir=no
31293 rm conftest.$ac_ext
31294 LIBS=$ac_func_search_save_LIBS
31296 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31297 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31298 ac_res=$ac_cv_search_opendir
31299 if test "$ac_res" != no; then
31300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31305 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31306 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31307 if test "${ac_cv_search_opendir+set}" = set; then
31308 echo $ECHO_N "(cached) $ECHO_C" >&6
31310 ac_func_search_save_LIBS=$LIBS
31311 cat >conftest.$ac_ext <<_ACEOF
31314 cat confdefs.h >>conftest.$ac_ext
31315 cat >>conftest.$ac_ext <<_ACEOF
31316 /* end confdefs.h. */
31318 /* Override any GCC internal prototype to avoid an error.
31319 Use char because int might match the return type of a GCC
31320 builtin and then its argument prototype would still apply. */
31333 for ac_lib in '' x; do
31334 if test -z "$ac_lib"; then
31335 ac_res="none required"
31338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31340 rm -f conftest.$ac_objext conftest$ac_exeext
31341 if { (ac_try="$ac_link"
31342 case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_link") 2>conftest.er1
31349 grep -v '^ *+' conftest.er1 >conftest.err
31351 cat conftest.err >&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } && {
31354 test -z "$ac_c_werror_flag" ||
31355 test ! -s conftest.err
31356 } && test -s conftest$ac_exeext &&
31357 $as_test_x conftest$ac_exeext; then
31358 ac_cv_search_opendir=$ac_res
31360 echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31368 if test "${ac_cv_search_opendir+set}" = set; then
31372 if test "${ac_cv_search_opendir+set}" = set; then
31375 ac_cv_search_opendir=no
31377 rm conftest.$ac_ext
31378 LIBS=$ac_func_search_save_LIBS
31380 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31381 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31382 ac_res=$ac_cv_search_opendir
31383 if test "$ac_res" != no; then
31384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31390 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31391 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31392 if test "${ac_cv_header_stat_broken+set}" = set; then
31393 echo $ECHO_N "(cached) $ECHO_C" >&6
31395 cat >conftest.$ac_ext <<_ACEOF
31398 cat confdefs.h >>conftest.$ac_ext
31399 cat >>conftest.$ac_ext <<_ACEOF
31400 /* end confdefs.h. */
31401 #include <sys/types.h>
31402 #include <sys/stat.h>
31404 #if defined S_ISBLK && defined S_IFDIR
31405 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31408 #if defined S_ISBLK && defined S_IFCHR
31409 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31412 #if defined S_ISLNK && defined S_IFREG
31413 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31416 #if defined S_ISSOCK && defined S_IFREG
31417 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31421 rm -f conftest.$ac_objext
31422 if { (ac_try="$ac_compile"
31423 case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_compile") 2>conftest.er1
31430 grep -v '^ *+' conftest.er1 >conftest.err
31432 cat conftest.err >&5
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); } && {
31435 test -z "$ac_c_werror_flag" ||
31436 test ! -s conftest.err
31437 } && test -s conftest.$ac_objext; then
31438 ac_cv_header_stat_broken=no
31440 echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31443 ac_cv_header_stat_broken=yes
31446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31448 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31449 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31450 if test $ac_cv_header_stat_broken = yes; then
31452 cat >>confdefs.h <<\_ACEOF
31453 #define STAT_MACROS_BROKEN 1
31458 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31459 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31460 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31461 echo $ECHO_N "(cached) $ECHO_C" >&6
31463 cat >conftest.$ac_ext <<_ACEOF
31466 cat confdefs.h >>conftest.$ac_ext
31467 cat >>conftest.$ac_ext <<_ACEOF
31468 /* end confdefs.h. */
31469 #include <sys/types.h>
31470 #include <sys/wait.h>
31471 #ifndef WEXITSTATUS
31472 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31475 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31483 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31488 rm -f conftest.$ac_objext
31489 if { (ac_try="$ac_compile"
31490 case "(($ac_try" in
31491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31492 *) ac_try_echo=$ac_try;;
31494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31495 (eval "$ac_compile") 2>conftest.er1
31497 grep -v '^ *+' conftest.er1 >conftest.err
31499 cat conftest.err >&5
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); } && {
31502 test -z "$ac_c_werror_flag" ||
31503 test ! -s conftest.err
31504 } && test -s conftest.$ac_objext; then
31505 ac_cv_header_sys_wait_h=yes
31507 echo "$as_me: failed program was:" >&5
31508 sed 's/^/| /' conftest.$ac_ext >&5
31510 ac_cv_header_sys_wait_h=no
31513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31515 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31516 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31517 if test $ac_cv_header_sys_wait_h = yes; then
31519 cat >>confdefs.h <<\_ACEOF
31520 #define HAVE_SYS_WAIT_H 1
31525 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31526 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31527 if test "${ac_cv_header_time+set}" = set; then
31528 echo $ECHO_N "(cached) $ECHO_C" >&6
31530 cat >conftest.$ac_ext <<_ACEOF
31533 cat confdefs.h >>conftest.$ac_ext
31534 cat >>conftest.$ac_ext <<_ACEOF
31535 /* end confdefs.h. */
31536 #include <sys/types.h>
31537 #include <sys/time.h>
31543 if ((struct tm *) 0)
31549 rm -f conftest.$ac_objext
31550 if { (ac_try="$ac_compile"
31551 case "(($ac_try" in
31552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553 *) ac_try_echo=$ac_try;;
31555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31556 (eval "$ac_compile") 2>conftest.er1
31558 grep -v '^ *+' conftest.er1 >conftest.err
31560 cat conftest.err >&5
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); } && {
31563 test -z "$ac_c_werror_flag" ||
31564 test ! -s conftest.err
31565 } && test -s conftest.$ac_objext; then
31566 ac_cv_header_time=yes
31568 echo "$as_me: failed program was:" >&5
31569 sed 's/^/| /' conftest.$ac_ext >&5
31571 ac_cv_header_time=no
31574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31576 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31577 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31578 if test $ac_cv_header_time = yes; then
31580 cat >>confdefs.h <<\_ACEOF
31581 #define TIME_WITH_SYS_TIME 1
31586 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31587 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31588 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31589 echo $ECHO_N "(cached) $ECHO_C" >&6
31591 cat >conftest.$ac_ext <<_ACEOF
31594 cat confdefs.h >>conftest.$ac_ext
31595 cat >>conftest.$ac_ext <<_ACEOF
31596 /* end confdefs.h. */
31597 $ac_includes_default
31601 static struct stat ac_aggr;
31602 if (ac_aggr.st_blksize)
31608 rm -f conftest.$ac_objext
31609 if { (ac_try="$ac_compile"
31610 case "(($ac_try" in
31611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31612 *) ac_try_echo=$ac_try;;
31614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31615 (eval "$ac_compile") 2>conftest.er1
31617 grep -v '^ *+' conftest.er1 >conftest.err
31619 cat conftest.err >&5
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); } && {
31622 test -z "$ac_c_werror_flag" ||
31623 test ! -s conftest.err
31624 } && test -s conftest.$ac_objext; then
31625 ac_cv_member_struct_stat_st_blksize=yes
31627 echo "$as_me: failed program was:" >&5
31628 sed 's/^/| /' conftest.$ac_ext >&5
31630 cat >conftest.$ac_ext <<_ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h. */
31636 $ac_includes_default
31640 static struct stat ac_aggr;
31641 if (sizeof ac_aggr.st_blksize)
31647 rm -f conftest.$ac_objext
31648 if { (ac_try="$ac_compile"
31649 case "(($ac_try" in
31650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651 *) ac_try_echo=$ac_try;;
31653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654 (eval "$ac_compile") 2>conftest.er1
31656 grep -v '^ *+' conftest.er1 >conftest.err
31658 cat conftest.err >&5
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); } && {
31661 test -z "$ac_c_werror_flag" ||
31662 test ! -s conftest.err
31663 } && test -s conftest.$ac_objext; then
31664 ac_cv_member_struct_stat_st_blksize=yes
31666 echo "$as_me: failed program was:" >&5
31667 sed 's/^/| /' conftest.$ac_ext >&5
31669 ac_cv_member_struct_stat_st_blksize=no
31672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31677 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31678 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31679 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31681 cat >>confdefs.h <<_ACEOF
31682 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31686 cat >>confdefs.h <<\_ACEOF
31687 #define HAVE_ST_BLKSIZE 1
31693 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31694 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31695 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31698 cat >conftest.$ac_ext <<_ACEOF
31701 cat confdefs.h >>conftest.$ac_ext
31702 cat >>conftest.$ac_ext <<_ACEOF
31703 /* end confdefs.h. */
31704 $ac_includes_default
31708 static struct stat ac_aggr;
31709 if (ac_aggr.st_blocks)
31715 rm -f conftest.$ac_objext
31716 if { (ac_try="$ac_compile"
31717 case "(($ac_try" in
31718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719 *) ac_try_echo=$ac_try;;
31721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722 (eval "$ac_compile") 2>conftest.er1
31724 grep -v '^ *+' conftest.er1 >conftest.err
31726 cat conftest.err >&5
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); } && {
31729 test -z "$ac_c_werror_flag" ||
31730 test ! -s conftest.err
31731 } && test -s conftest.$ac_objext; then
31732 ac_cv_member_struct_stat_st_blocks=yes
31734 echo "$as_me: failed program was:" >&5
31735 sed 's/^/| /' conftest.$ac_ext >&5
31737 cat >conftest.$ac_ext <<_ACEOF
31740 cat confdefs.h >>conftest.$ac_ext
31741 cat >>conftest.$ac_ext <<_ACEOF
31742 /* end confdefs.h. */
31743 $ac_includes_default
31747 static struct stat ac_aggr;
31748 if (sizeof ac_aggr.st_blocks)
31754 rm -f conftest.$ac_objext
31755 if { (ac_try="$ac_compile"
31756 case "(($ac_try" in
31757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31758 *) ac_try_echo=$ac_try;;
31760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31761 (eval "$ac_compile") 2>conftest.er1
31763 grep -v '^ *+' conftest.er1 >conftest.err
31765 cat conftest.err >&5
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); } && {
31768 test -z "$ac_c_werror_flag" ||
31769 test ! -s conftest.err
31770 } && test -s conftest.$ac_objext; then
31771 ac_cv_member_struct_stat_st_blocks=yes
31773 echo "$as_me: failed program was:" >&5
31774 sed 's/^/| /' conftest.$ac_ext >&5
31776 ac_cv_member_struct_stat_st_blocks=no
31779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31784 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31785 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31786 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31788 cat >>confdefs.h <<_ACEOF
31789 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31793 cat >>confdefs.h <<\_ACEOF
31794 #define HAVE_ST_BLOCKS 1
31798 case " $LIBOBJS " in
31799 *" fileblocks.$ac_objext "* ) ;;
31800 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31807 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31808 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31809 if test "${ac_cv_struct_tm+set}" = set; then
31810 echo $ECHO_N "(cached) $ECHO_C" >&6
31812 cat >conftest.$ac_ext <<_ACEOF
31815 cat confdefs.h >>conftest.$ac_ext
31816 cat >>conftest.$ac_ext <<_ACEOF
31817 /* end confdefs.h. */
31818 #include <sys/types.h>
31825 int *p = &tm.tm_sec;
31831 rm -f conftest.$ac_objext
31832 if { (ac_try="$ac_compile"
31833 case "(($ac_try" in
31834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835 *) ac_try_echo=$ac_try;;
31837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838 (eval "$ac_compile") 2>conftest.er1
31840 grep -v '^ *+' conftest.er1 >conftest.err
31842 cat conftest.err >&5
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); } && {
31845 test -z "$ac_c_werror_flag" ||
31846 test ! -s conftest.err
31847 } && test -s conftest.$ac_objext; then
31848 ac_cv_struct_tm=time.h
31850 echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31853 ac_cv_struct_tm=sys/time.h
31856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31858 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31859 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31860 if test $ac_cv_struct_tm = sys/time.h; then
31862 cat >>confdefs.h <<\_ACEOF
31863 #define TM_IN_SYS_TIME 1
31868 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31869 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31870 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31871 echo $ECHO_N "(cached) $ECHO_C" >&6
31873 cat >conftest.$ac_ext <<_ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h. */
31879 #include <sys/types.h>
31880 #include <$ac_cv_struct_tm>
31886 static struct tm ac_aggr;
31887 if (ac_aggr.tm_zone)
31893 rm -f conftest.$ac_objext
31894 if { (ac_try="$ac_compile"
31895 case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900 (eval "$ac_compile") 2>conftest.er1
31902 grep -v '^ *+' conftest.er1 >conftest.err
31904 cat conftest.err >&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } && {
31907 test -z "$ac_c_werror_flag" ||
31908 test ! -s conftest.err
31909 } && test -s conftest.$ac_objext; then
31910 ac_cv_member_struct_tm_tm_zone=yes
31912 echo "$as_me: failed program was:" >&5
31913 sed 's/^/| /' conftest.$ac_ext >&5
31915 cat >conftest.$ac_ext <<_ACEOF
31918 cat confdefs.h >>conftest.$ac_ext
31919 cat >>conftest.$ac_ext <<_ACEOF
31920 /* end confdefs.h. */
31921 #include <sys/types.h>
31922 #include <$ac_cv_struct_tm>
31928 static struct tm ac_aggr;
31929 if (sizeof ac_aggr.tm_zone)
31935 rm -f conftest.$ac_objext
31936 if { (ac_try="$ac_compile"
31937 case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_compile") 2>conftest.er1
31944 grep -v '^ *+' conftest.er1 >conftest.err
31946 cat conftest.err >&5
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); } && {
31949 test -z "$ac_c_werror_flag" ||
31950 test ! -s conftest.err
31951 } && test -s conftest.$ac_objext; then
31952 ac_cv_member_struct_tm_tm_zone=yes
31954 echo "$as_me: failed program was:" >&5
31955 sed 's/^/| /' conftest.$ac_ext >&5
31957 ac_cv_member_struct_tm_tm_zone=no
31960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31965 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31966 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31967 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31969 cat >>confdefs.h <<_ACEOF
31970 #define HAVE_STRUCT_TM_TM_ZONE 1
31976 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31978 cat >>confdefs.h <<\_ACEOF
31979 #define HAVE_TM_ZONE 1
31983 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31984 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31985 if test "${ac_cv_have_decl_tzname+set}" = set; then
31986 echo $ECHO_N "(cached) $ECHO_C" >&6
31988 cat >conftest.$ac_ext <<_ACEOF
31991 cat confdefs.h >>conftest.$ac_ext
31992 cat >>conftest.$ac_ext <<_ACEOF
31993 /* end confdefs.h. */
32007 rm -f conftest.$ac_objext
32008 if { (ac_try="$ac_compile"
32009 case "(($ac_try" in
32010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32011 *) ac_try_echo=$ac_try;;
32013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32014 (eval "$ac_compile") 2>conftest.er1
32016 grep -v '^ *+' conftest.er1 >conftest.err
32018 cat conftest.err >&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); } && {
32021 test -z "$ac_c_werror_flag" ||
32022 test ! -s conftest.err
32023 } && test -s conftest.$ac_objext; then
32024 ac_cv_have_decl_tzname=yes
32026 echo "$as_me: failed program was:" >&5
32027 sed 's/^/| /' conftest.$ac_ext >&5
32029 ac_cv_have_decl_tzname=no
32032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32034 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32035 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32036 if test $ac_cv_have_decl_tzname = yes; then
32038 cat >>confdefs.h <<_ACEOF
32039 #define HAVE_DECL_TZNAME 1
32044 cat >>confdefs.h <<_ACEOF
32045 #define HAVE_DECL_TZNAME 0
32052 { echo "$as_me:$LINENO: checking for tzname" >&5
32053 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32054 if test "${ac_cv_var_tzname+set}" = set; then
32055 echo $ECHO_N "(cached) $ECHO_C" >&6
32057 cat >conftest.$ac_ext <<_ACEOF
32060 cat confdefs.h >>conftest.$ac_ext
32061 cat >>conftest.$ac_ext <<_ACEOF
32062 /* end confdefs.h. */
32064 #if !HAVE_DECL_TZNAME
32065 extern char *tzname[];
32071 return tzname[0][0];
32076 rm -f conftest.$ac_objext conftest$ac_exeext
32077 if { (ac_try="$ac_link"
32078 case "(($ac_try" in
32079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080 *) ac_try_echo=$ac_try;;
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083 (eval "$ac_link") 2>conftest.er1
32085 grep -v '^ *+' conftest.er1 >conftest.err
32087 cat conftest.err >&5
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); } && {
32090 test -z "$ac_c_werror_flag" ||
32091 test ! -s conftest.err
32092 } && test -s conftest$ac_exeext &&
32093 $as_test_x conftest$ac_exeext; then
32094 ac_cv_var_tzname=yes
32096 echo "$as_me: failed program was:" >&5
32097 sed 's/^/| /' conftest.$ac_ext >&5
32099 ac_cv_var_tzname=no
32102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32103 conftest$ac_exeext conftest.$ac_ext
32105 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32106 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32107 if test $ac_cv_var_tzname = yes; then
32109 cat >>confdefs.h <<\_ACEOF
32110 #define HAVE_TZNAME 1
32117 { echo "$as_me:$LINENO: checking for utime.h" >&5
32118 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32119 if test "${ba_cv_header_utime_h+set}" = set; then
32120 echo $ECHO_N "(cached) $ECHO_C" >&6
32123 cat >conftest.$ac_ext <<_ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h. */
32130 #include <sys/types.h>
32143 rm -f conftest.$ac_objext
32144 if { (ac_try="$ac_compile"
32145 case "(($ac_try" in
32146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147 *) ac_try_echo=$ac_try;;
32149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150 (eval "$ac_compile") 2>conftest.er1
32152 grep -v '^ *+' conftest.er1 >conftest.err
32154 cat conftest.err >&5
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); } && {
32157 test -z "$ac_c_werror_flag" ||
32158 test ! -s conftest.err
32159 } && test -s conftest.$ac_objext; then
32161 ba_cv_header_utime_h=yes
32164 echo "$as_me: failed program was:" >&5
32165 sed 's/^/| /' conftest.$ac_ext >&5
32168 ba_cv_header_utime_h=no
32173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32177 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32178 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32179 test $ba_cv_header_utime_h = yes &&
32180 cat >>confdefs.h <<\_ACEOF
32181 #define HAVE_UTIME_H 1
32185 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32186 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32187 if test "${ba_cv_header_socklen_t+set}" = set; then
32188 echo $ECHO_N "(cached) $ECHO_C" >&6
32191 cat >conftest.$ac_ext <<_ACEOF
32194 cat confdefs.h >>conftest.$ac_ext
32195 cat >>conftest.$ac_ext <<_ACEOF
32196 /* end confdefs.h. */
32198 #include <sys/types.h>
32199 #include <sys/socket.h>
32211 rm -f conftest.$ac_objext
32212 if { (ac_try="$ac_compile"
32213 case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_compile") 2>conftest.er1
32220 grep -v '^ *+' conftest.er1 >conftest.err
32222 cat conftest.err >&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); } && {
32225 test -z "$ac_c_werror_flag" ||
32226 test ! -s conftest.err
32227 } && test -s conftest.$ac_objext; then
32229 ba_cv_header_socklen_t=yes
32232 echo "$as_me: failed program was:" >&5
32233 sed 's/^/| /' conftest.$ac_ext >&5
32236 ba_cv_header_socklen_t=no
32241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32245 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32246 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32247 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32248 #define HAVE_SOCKLEN_T 1
32252 { echo "$as_me:$LINENO: checking for bigendian" >&5
32253 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32254 if test "${ba_cv_bigendian+set}" = set; then
32255 echo $ECHO_N "(cached) $ECHO_C" >&6
32258 if test "$cross_compiling" = yes; then
32264 cat >conftest.$ac_ext <<_ACEOF
32267 cat confdefs.h >>conftest.$ac_ext
32268 cat >>conftest.$ac_ext <<_ACEOF
32269 /* end confdefs.h. */
32271 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32274 rm -f conftest$ac_exeext
32275 if { (ac_try="$ac_link"
32276 case "(($ac_try" in
32277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32278 *) ac_try_echo=$ac_try;;
32280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32281 (eval "$ac_link") 2>&5
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32285 { (case "(($ac_try" in
32286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32287 *) ac_try_echo=$ac_try;;
32289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32290 (eval "$ac_try") 2>&5
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; }; then
32295 ba_cv_bigendian=yes
32298 echo "$as_me: program exited with status $ac_status" >&5
32299 echo "$as_me: failed program was:" >&5
32300 sed 's/^/| /' conftest.$ac_ext >&5
32302 ( exit $ac_status )
32307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32314 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32315 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32316 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32317 #define HAVE_BIGENDIAN 1
32322 ac_cpp='$CXXCPP $CPPFLAGS'
32323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32327 { echo "$as_me:$LINENO: checking for typeof" >&5
32328 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32329 if test "${ba_cv_have_typeof+set}" = set; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32333 if test "$cross_compiling" = yes; then
32335 ba_cv_have_typeof=no
32339 cat >conftest.$ac_ext <<_ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h. */
32346 main(){char *a = 0; a = (typeof a)a;}
32349 rm -f conftest$ac_exeext
32350 if { (ac_try="$ac_link"
32351 case "(($ac_try" in
32352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353 *) ac_try_echo=$ac_try;;
32355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356 (eval "$ac_link") 2>&5
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32360 { (case "(($ac_try" in
32361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362 *) ac_try_echo=$ac_try;;
32364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365 (eval "$ac_try") 2>&5
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; }; then
32370 ba_cv_have_typeof=yes
32373 echo "$as_me: program exited with status $ac_status" >&5
32374 echo "$as_me: failed program was:" >&5
32375 sed 's/^/| /' conftest.$ac_ext >&5
32377 ( exit $ac_status )
32379 ba_cv_have_typeof=no
32382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32389 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32390 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32391 test $ba_cv_have_typeof = yes &&
32392 cat >>confdefs.h <<\_ACEOF
32393 #define HAVE_TYPEOF 1
32397 ac_cpp='$CPP $CPPFLAGS'
32398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32403 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32404 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32405 if test "${ac_cv_c_const+set}" = set; then
32406 echo $ECHO_N "(cached) $ECHO_C" >&6
32408 cat >conftest.$ac_ext <<_ACEOF
32411 cat confdefs.h >>conftest.$ac_ext
32412 cat >>conftest.$ac_ext <<_ACEOF
32413 /* end confdefs.h. */
32418 /* FIXME: Include the comments suggested by Paul. */
32419 #ifndef __cplusplus
32420 /* Ultrix mips cc rejects this. */
32421 typedef int charset[2];
32423 /* SunOS 4.1.1 cc rejects this. */
32424 char const *const *pcpcc;
32426 /* NEC SVR4.0.2 mips cc rejects this. */
32427 struct point {int x, y;};
32428 static struct point const zero = {0,0};
32429 /* AIX XL C 1.02.0.0 rejects this.
32430 It does not let you subtract one const X* pointer from another in
32431 an arm of an if-expression whose if-part is not a constant
32433 const char *g = "string";
32434 pcpcc = &g + (g ? g-g : 0);
32435 /* HPUX 7.0 cc rejects these. */
32437 ppc = (char**) pcpcc;
32438 pcpcc = (char const *const *) ppc;
32439 { /* SCO 3.2v4 cc rejects this. */
32441 char const *s = 0 ? (char *) 0 : (char const *) 0;
32446 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32447 int x[] = {25, 17};
32448 const int *foo = &x[0];
32451 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32452 typedef const int *iptr;
32456 { /* AIX XL C 1.02.0.0 rejects this saying
32457 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32458 struct s { int j; const int *ap[3]; };
32459 struct s *b; b->j = 5;
32461 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32462 const int foo = 10;
32463 if (!foo) return 0;
32465 return !cs[0] && !zero.x;
32472 rm -f conftest.$ac_objext
32473 if { (ac_try="$ac_compile"
32474 case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_compile") 2>conftest.er1
32481 grep -v '^ *+' conftest.er1 >conftest.err
32483 cat conftest.err >&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); } && {
32486 test -z "$ac_c_werror_flag" ||
32487 test ! -s conftest.err
32488 } && test -s conftest.$ac_objext; then
32491 echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32499 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32500 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32501 if test $ac_cv_c_const = no; then
32503 cat >>confdefs.h <<\_ACEOF
32510 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32511 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32513 # The order of these tests is important.
32514 cat >conftest.$ac_ext <<_ACEOF
32517 cat confdefs.h >>conftest.$ac_ext
32518 cat >>conftest.$ac_ext <<_ACEOF
32519 /* end confdefs.h. */
32521 #include <sys/statvfs.h>
32522 #include <sys/fstyp.h>
32525 if { (ac_try="$ac_cpp conftest.$ac_ext"
32526 case "(($ac_try" in
32527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32528 *) ac_try_echo=$ac_try;;
32530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32533 grep -v '^ *+' conftest.er1 >conftest.err
32535 cat conftest.err >&5
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } >/dev/null && {
32538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32539 test ! -s conftest.err
32541 cat >>confdefs.h <<\_ACEOF
32542 #define FSTYPE_STATVFS 1
32547 echo "$as_me: failed program was:" >&5
32548 sed 's/^/| /' conftest.$ac_ext >&5
32553 rm -f conftest.err conftest.$ac_ext
32554 if test $fstype = no; then
32555 cat >conftest.$ac_ext <<_ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h. */
32562 #include <sys/statfs.h>
32563 #include <sys/fstyp.h>
32566 if { (ac_try="$ac_cpp conftest.$ac_ext"
32567 case "(($ac_try" in
32568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32569 *) ac_try_echo=$ac_try;;
32571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32574 grep -v '^ *+' conftest.er1 >conftest.err
32576 cat conftest.err >&5
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); } >/dev/null && {
32579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32580 test ! -s conftest.err
32582 cat >>confdefs.h <<\_ACEOF
32583 #define FSTYPE_USG_STATFS 1
32588 echo "$as_me: failed program was:" >&5
32589 sed 's/^/| /' conftest.$ac_ext >&5
32594 rm -f conftest.err conftest.$ac_ext
32596 if test $fstype = no; then
32597 cat >conftest.$ac_ext <<_ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h. */
32604 #include <sys/statfs.h>
32605 #include <sys/vmount.h>
32608 if { (ac_try="$ac_cpp conftest.$ac_ext"
32609 case "(($ac_try" in
32610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611 *) ac_try_echo=$ac_try;;
32613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32616 grep -v '^ *+' conftest.er1 >conftest.err
32618 cat conftest.err >&5
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); } >/dev/null && {
32621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32622 test ! -s conftest.err
32624 cat >>confdefs.h <<\_ACEOF
32625 #define FSTYPE_AIX_STATFS 1
32630 echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32636 rm -f conftest.err conftest.$ac_ext
32638 if test $fstype = no; then
32639 cat >conftest.$ac_ext <<_ACEOF
32642 cat confdefs.h >>conftest.$ac_ext
32643 cat >>conftest.$ac_ext <<_ACEOF
32644 /* end confdefs.h. */
32646 #include <mntent.h>
32649 if { (ac_try="$ac_cpp conftest.$ac_ext"
32650 case "(($ac_try" in
32651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652 *) ac_try_echo=$ac_try;;
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32657 grep -v '^ *+' conftest.er1 >conftest.err
32659 cat conftest.err >&5
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); } >/dev/null && {
32662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32663 test ! -s conftest.err
32665 cat >>confdefs.h <<\_ACEOF
32666 #define FSTYPE_MNTENT 1
32671 echo "$as_me: failed program was:" >&5
32672 sed 's/^/| /' conftest.$ac_ext >&5
32677 rm -f conftest.err conftest.$ac_ext
32679 if test $fstype = no; then
32680 cat >conftest.$ac_ext <<_ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h. */
32686 #include <sys/mount.h>
32689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32690 $EGREP "f_type;" >/dev/null 2>&1; then
32691 cat >>confdefs.h <<\_ACEOF
32692 #define FSTYPE_STATFS 1
32699 if test $fstype = no; then
32700 cat >conftest.$ac_ext <<_ACEOF
32703 cat confdefs.h >>conftest.$ac_ext
32704 cat >>conftest.$ac_ext <<_ACEOF
32705 /* end confdefs.h. */
32707 #include <sys/mount.h>
32708 #include <sys/fs_types.h>
32711 if { (ac_try="$ac_cpp conftest.$ac_ext"
32712 case "(($ac_try" in
32713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714 *) ac_try_echo=$ac_try;;
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32719 grep -v '^ *+' conftest.er1 >conftest.err
32721 cat conftest.err >&5
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); } >/dev/null && {
32724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32725 test ! -s conftest.err
32727 cat >>confdefs.h <<\_ACEOF
32728 #define FSTYPE_GETMNT 1
32733 echo "$as_me: failed program was:" >&5
32734 sed 's/^/| /' conftest.$ac_ext >&5
32739 rm -f conftest.err conftest.$ac_ext
32741 { echo "$as_me:$LINENO: result: $fstype" >&5
32742 echo "${ECHO_T}$fstype" >&6; }
32744 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32745 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32746 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32747 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32748 echo $ECHO_N "(cached) $ECHO_C" >&6
32750 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32751 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32753 # Is the header compilable?
32754 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32755 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32756 cat >conftest.$ac_ext <<_ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h. */
32762 $ac_includes_default
32763 #include <sys/statvfs.h>
32765 rm -f conftest.$ac_objext
32766 if { (ac_try="$ac_compile"
32767 case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_compile") 2>conftest.er1
32774 grep -v '^ *+' conftest.er1 >conftest.err
32776 cat conftest.err >&5
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); } && {
32779 test -z "$ac_c_werror_flag" ||
32780 test ! -s conftest.err
32781 } && test -s conftest.$ac_objext; then
32782 ac_header_compiler=yes
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32787 ac_header_compiler=no
32790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32792 echo "${ECHO_T}$ac_header_compiler" >&6; }
32794 # Is the header present?
32795 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32796 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32797 cat >conftest.$ac_ext <<_ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h. */
32803 #include <sys/statvfs.h>
32805 if { (ac_try="$ac_cpp conftest.$ac_ext"
32806 case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32813 grep -v '^ *+' conftest.er1 >conftest.err
32815 cat conftest.err >&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); } >/dev/null && {
32818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32819 test ! -s conftest.err
32821 ac_header_preproc=yes
32823 echo "$as_me: failed program was:" >&5
32824 sed 's/^/| /' conftest.$ac_ext >&5
32826 ac_header_preproc=no
32829 rm -f conftest.err conftest.$ac_ext
32830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32831 echo "${ECHO_T}$ac_header_preproc" >&6; }
32833 # So? What about this header?
32834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32836 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32837 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32838 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32839 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32840 ac_header_preproc=yes
32843 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32844 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32845 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32846 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32847 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32848 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32849 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32850 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32851 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32852 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32853 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32854 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32858 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32859 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32860 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32861 echo $ECHO_N "(cached) $ECHO_C" >&6
32863 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32865 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32866 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32869 if test $ac_cv_header_sys_statvfs_h = yes; then
32871 cat >>confdefs.h <<\_ACEOF
32872 #define HAVE_SYS_STATVFS_H 1
32879 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32880 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32881 if test "${ac_cv_type_signal+set}" = set; then
32882 echo $ECHO_N "(cached) $ECHO_C" >&6
32884 cat >conftest.$ac_ext <<_ACEOF
32887 cat confdefs.h >>conftest.$ac_ext
32888 cat >>conftest.$ac_ext <<_ACEOF
32889 /* end confdefs.h. */
32890 #include <sys/types.h>
32891 #include <signal.h>
32896 return *(signal (0, 0)) (0) == 1;
32901 rm -f conftest.$ac_objext
32902 if { (ac_try="$ac_compile"
32903 case "(($ac_try" in
32904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32905 *) ac_try_echo=$ac_try;;
32907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32908 (eval "$ac_compile") 2>conftest.er1
32910 grep -v '^ *+' conftest.er1 >conftest.err
32912 cat conftest.err >&5
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); } && {
32915 test -z "$ac_c_werror_flag" ||
32916 test ! -s conftest.err
32917 } && test -s conftest.$ac_objext; then
32918 ac_cv_type_signal=int
32920 echo "$as_me: failed program was:" >&5
32921 sed 's/^/| /' conftest.$ac_ext >&5
32923 ac_cv_type_signal=void
32926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32928 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32929 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32931 cat >>confdefs.h <<_ACEOF
32932 #define RETSIGTYPE $ac_cv_type_signal
32937 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32938 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32939 if test "${bash_cv_signal_vintage+set}" = set; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32943 cat >conftest.$ac_ext <<_ACEOF
32946 cat confdefs.h >>conftest.$ac_ext
32947 cat >>conftest.$ac_ext <<_ACEOF
32948 /* end confdefs.h. */
32949 #include <signal.h>
32955 struct sigaction sa;
32956 sigemptyset(&ss); sigsuspend(&ss);
32957 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32958 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32964 rm -f conftest.$ac_objext conftest$ac_exeext
32965 if { (ac_try="$ac_link"
32966 case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971 (eval "$ac_link") 2>conftest.er1
32973 grep -v '^ *+' conftest.er1 >conftest.err
32975 cat conftest.err >&5
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); } && {
32978 test -z "$ac_c_werror_flag" ||
32979 test ! -s conftest.err
32980 } && test -s conftest$ac_exeext &&
32981 $as_test_x conftest$ac_exeext; then
32982 bash_cv_signal_vintage="posix"
32984 echo "$as_me: failed program was:" >&5
32985 sed 's/^/| /' conftest.$ac_ext >&5
32988 cat >conftest.$ac_ext <<_ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h. */
32994 #include <signal.h>
32999 int mask = sigmask(SIGINT);
33000 sigsetmask(mask); sigblock(mask); sigpause(mask);
33006 rm -f conftest.$ac_objext conftest$ac_exeext
33007 if { (ac_try="$ac_link"
33008 case "(($ac_try" in
33009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010 *) ac_try_echo=$ac_try;;
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013 (eval "$ac_link") 2>conftest.er1
33015 grep -v '^ *+' conftest.er1 >conftest.err
33017 cat conftest.err >&5
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); } && {
33020 test -z "$ac_c_werror_flag" ||
33021 test ! -s conftest.err
33022 } && test -s conftest$ac_exeext &&
33023 $as_test_x conftest$ac_exeext; then
33024 bash_cv_signal_vintage="4.2bsd"
33026 echo "$as_me: failed program was:" >&5
33027 sed 's/^/| /' conftest.$ac_ext >&5
33030 cat >conftest.$ac_ext <<_ACEOF
33033 cat confdefs.h >>conftest.$ac_ext
33034 cat >>conftest.$ac_ext <<_ACEOF
33035 /* end confdefs.h. */
33037 #include <signal.h>
33038 RETSIGTYPE foo() { }
33043 int mask = sigmask(SIGINT);
33044 sigset(SIGINT, foo); sigrelse(SIGINT);
33045 sighold(SIGINT); sigpause(SIGINT);
33051 rm -f conftest.$ac_objext conftest$ac_exeext
33052 if { (ac_try="$ac_link"
33053 case "(($ac_try" in
33054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055 *) ac_try_echo=$ac_try;;
33057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058 (eval "$ac_link") 2>conftest.er1
33060 grep -v '^ *+' conftest.er1 >conftest.err
33062 cat conftest.err >&5
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); } && {
33065 test -z "$ac_c_werror_flag" ||
33066 test ! -s conftest.err
33067 } && test -s conftest$ac_exeext &&
33068 $as_test_x conftest$ac_exeext; then
33069 bash_cv_signal_vintage="svr3"
33071 echo "$as_me: failed program was:" >&5
33072 sed 's/^/| /' conftest.$ac_ext >&5
33074 bash_cv_signal_vintage="v7"
33078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33079 conftest$ac_exeext conftest.$ac_ext
33083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33084 conftest$ac_exeext conftest.$ac_ext
33088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33089 conftest$ac_exeext conftest.$ac_ext
33093 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33094 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33095 if test "$bash_cv_signal_vintage" = "posix"; then
33096 cat >>confdefs.h <<\_ACEOF
33097 #define HAVE_POSIX_SIGNALS 1
33100 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33101 cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_BSD_SIGNALS 1
33105 elif test "$bash_cv_signal_vintage" = "svr3"; then
33106 cat >>confdefs.h <<\_ACEOF
33107 #define HAVE_USG_SIGHOLD 1
33112 { echo "$as_me:$LINENO: checking for mode_t" >&5
33113 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33114 if test "${ac_cv_type_mode_t+set}" = set; then
33115 echo $ECHO_N "(cached) $ECHO_C" >&6
33117 cat >conftest.$ac_ext <<_ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33123 $ac_includes_default
33124 typedef mode_t ac__type_new_;
33128 if ((ac__type_new_ *) 0)
33130 if (sizeof (ac__type_new_))
33136 rm -f conftest.$ac_objext
33137 if { (ac_try="$ac_compile"
33138 case "(($ac_try" in
33139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33140 *) ac_try_echo=$ac_try;;
33142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33143 (eval "$ac_compile") 2>conftest.er1
33145 grep -v '^ *+' conftest.er1 >conftest.err
33147 cat conftest.err >&5
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); } && {
33150 test -z "$ac_c_werror_flag" ||
33151 test ! -s conftest.err
33152 } && test -s conftest.$ac_objext; then
33153 ac_cv_type_mode_t=yes
33155 echo "$as_me: failed program was:" >&5
33156 sed 's/^/| /' conftest.$ac_ext >&5
33158 ac_cv_type_mode_t=no
33161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33163 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33164 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33165 if test $ac_cv_type_mode_t = yes; then
33169 cat >>confdefs.h <<_ACEOF
33175 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33176 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33177 if test "${ac_cv_type_uid_t+set}" = set; then
33178 echo $ECHO_N "(cached) $ECHO_C" >&6
33180 cat >conftest.$ac_ext <<_ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h. */
33186 #include <sys/types.h>
33189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33190 $EGREP "uid_t" >/dev/null 2>&1; then
33191 ac_cv_type_uid_t=yes
33193 ac_cv_type_uid_t=no
33198 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33199 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33200 if test $ac_cv_type_uid_t = no; then
33202 cat >>confdefs.h <<\_ACEOF
33207 cat >>confdefs.h <<\_ACEOF
33213 { echo "$as_me:$LINENO: checking for size_t" >&5
33214 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33215 if test "${ac_cv_type_size_t+set}" = set; then
33216 echo $ECHO_N "(cached) $ECHO_C" >&6
33218 cat >conftest.$ac_ext <<_ACEOF
33221 cat confdefs.h >>conftest.$ac_ext
33222 cat >>conftest.$ac_ext <<_ACEOF
33223 /* end confdefs.h. */
33224 $ac_includes_default
33225 typedef size_t ac__type_new_;
33229 if ((ac__type_new_ *) 0)
33231 if (sizeof (ac__type_new_))
33237 rm -f conftest.$ac_objext
33238 if { (ac_try="$ac_compile"
33239 case "(($ac_try" in
33240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241 *) ac_try_echo=$ac_try;;
33243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244 (eval "$ac_compile") 2>conftest.er1
33246 grep -v '^ *+' conftest.er1 >conftest.err
33248 cat conftest.err >&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); } && {
33251 test -z "$ac_c_werror_flag" ||
33252 test ! -s conftest.err
33253 } && test -s conftest.$ac_objext; then
33254 ac_cv_type_size_t=yes
33256 echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33259 ac_cv_type_size_t=no
33262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33264 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33265 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33266 if test $ac_cv_type_size_t = yes; then
33270 cat >>confdefs.h <<_ACEOF
33271 #define size_t unsigned int
33276 { echo "$as_me:$LINENO: checking for pid_t" >&5
33277 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33278 if test "${ac_cv_type_pid_t+set}" = set; then
33279 echo $ECHO_N "(cached) $ECHO_C" >&6
33281 cat >conftest.$ac_ext <<_ACEOF
33284 cat confdefs.h >>conftest.$ac_ext
33285 cat >>conftest.$ac_ext <<_ACEOF
33286 /* end confdefs.h. */
33287 $ac_includes_default
33288 typedef pid_t ac__type_new_;
33292 if ((ac__type_new_ *) 0)
33294 if (sizeof (ac__type_new_))
33300 rm -f conftest.$ac_objext
33301 if { (ac_try="$ac_compile"
33302 case "(($ac_try" in
33303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33304 *) ac_try_echo=$ac_try;;
33306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33307 (eval "$ac_compile") 2>conftest.er1
33309 grep -v '^ *+' conftest.er1 >conftest.err
33311 cat conftest.err >&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } && {
33314 test -z "$ac_c_werror_flag" ||
33315 test ! -s conftest.err
33316 } && test -s conftest.$ac_objext; then
33317 ac_cv_type_pid_t=yes
33319 echo "$as_me: failed program was:" >&5
33320 sed 's/^/| /' conftest.$ac_ext >&5
33322 ac_cv_type_pid_t=no
33325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33327 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33328 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33329 if test $ac_cv_type_pid_t = yes; then
33333 cat >>confdefs.h <<_ACEOF
33339 { echo "$as_me:$LINENO: checking for off_t" >&5
33340 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33341 if test "${ac_cv_type_off_t+set}" = set; then
33342 echo $ECHO_N "(cached) $ECHO_C" >&6
33344 cat >conftest.$ac_ext <<_ACEOF
33347 cat confdefs.h >>conftest.$ac_ext
33348 cat >>conftest.$ac_ext <<_ACEOF
33349 /* end confdefs.h. */
33350 $ac_includes_default
33351 typedef off_t ac__type_new_;
33355 if ((ac__type_new_ *) 0)
33357 if (sizeof (ac__type_new_))
33363 rm -f conftest.$ac_objext
33364 if { (ac_try="$ac_compile"
33365 case "(($ac_try" in
33366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367 *) ac_try_echo=$ac_try;;
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370 (eval "$ac_compile") 2>conftest.er1
33372 grep -v '^ *+' conftest.er1 >conftest.err
33374 cat conftest.err >&5
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); } && {
33377 test -z "$ac_c_werror_flag" ||
33378 test ! -s conftest.err
33379 } && test -s conftest.$ac_objext; then
33380 ac_cv_type_off_t=yes
33382 echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.$ac_ext >&5
33385 ac_cv_type_off_t=no
33388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33390 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33391 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33392 if test $ac_cv_type_off_t = yes; then
33396 cat >>confdefs.h <<_ACEOF
33397 #define off_t long int
33402 { echo "$as_me:$LINENO: checking for ino_t" >&5
33403 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33404 if test "${ac_cv_type_ino_t+set}" = set; then
33405 echo $ECHO_N "(cached) $ECHO_C" >&6
33407 cat >conftest.$ac_ext <<_ACEOF
33410 cat confdefs.h >>conftest.$ac_ext
33411 cat >>conftest.$ac_ext <<_ACEOF
33412 /* end confdefs.h. */
33413 $ac_includes_default
33414 typedef ino_t ac__type_new_;
33418 if ((ac__type_new_ *) 0)
33420 if (sizeof (ac__type_new_))
33426 rm -f conftest.$ac_objext
33427 if { (ac_try="$ac_compile"
33428 case "(($ac_try" in
33429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33430 *) ac_try_echo=$ac_try;;
33432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33433 (eval "$ac_compile") 2>conftest.er1
33435 grep -v '^ *+' conftest.er1 >conftest.err
33437 cat conftest.err >&5
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); } && {
33440 test -z "$ac_c_werror_flag" ||
33441 test ! -s conftest.err
33442 } && test -s conftest.$ac_objext; then
33443 ac_cv_type_ino_t=yes
33445 echo "$as_me: failed program was:" >&5
33446 sed 's/^/| /' conftest.$ac_ext >&5
33448 ac_cv_type_ino_t=no
33451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33453 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33454 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33455 if test $ac_cv_type_ino_t = yes; then
33459 cat >>confdefs.h <<_ACEOF
33460 #define ino_t unsigned long
33465 { echo "$as_me:$LINENO: checking for dev_t" >&5
33466 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33467 if test "${ac_cv_type_dev_t+set}" = set; then
33468 echo $ECHO_N "(cached) $ECHO_C" >&6
33470 cat >conftest.$ac_ext <<_ACEOF
33473 cat confdefs.h >>conftest.$ac_ext
33474 cat >>conftest.$ac_ext <<_ACEOF
33475 /* end confdefs.h. */
33476 $ac_includes_default
33477 typedef dev_t ac__type_new_;
33481 if ((ac__type_new_ *) 0)
33483 if (sizeof (ac__type_new_))
33489 rm -f conftest.$ac_objext
33490 if { (ac_try="$ac_compile"
33491 case "(($ac_try" in
33492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33493 *) ac_try_echo=$ac_try;;
33495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33496 (eval "$ac_compile") 2>conftest.er1
33498 grep -v '^ *+' conftest.er1 >conftest.err
33500 cat conftest.err >&5
33501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); } && {
33503 test -z "$ac_c_werror_flag" ||
33504 test ! -s conftest.err
33505 } && test -s conftest.$ac_objext; then
33506 ac_cv_type_dev_t=yes
33508 echo "$as_me: failed program was:" >&5
33509 sed 's/^/| /' conftest.$ac_ext >&5
33511 ac_cv_type_dev_t=no
33514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33516 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33517 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33518 if test $ac_cv_type_dev_t = yes; then
33522 cat >>confdefs.h <<_ACEOF
33523 #define dev_t unsigned long
33528 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33529 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33530 if test "${ac_cv_type_daddr_t+set}" = set; then
33531 echo $ECHO_N "(cached) $ECHO_C" >&6
33533 cat >conftest.$ac_ext <<_ACEOF
33536 cat confdefs.h >>conftest.$ac_ext
33537 cat >>conftest.$ac_ext <<_ACEOF
33538 /* end confdefs.h. */
33539 $ac_includes_default
33540 typedef daddr_t ac__type_new_;
33544 if ((ac__type_new_ *) 0)
33546 if (sizeof (ac__type_new_))
33552 rm -f conftest.$ac_objext
33553 if { (ac_try="$ac_compile"
33554 case "(($ac_try" in
33555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33556 *) ac_try_echo=$ac_try;;
33558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33559 (eval "$ac_compile") 2>conftest.er1
33561 grep -v '^ *+' conftest.er1 >conftest.err
33563 cat conftest.err >&5
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); } && {
33566 test -z "$ac_c_werror_flag" ||
33567 test ! -s conftest.err
33568 } && test -s conftest.$ac_objext; then
33569 ac_cv_type_daddr_t=yes
33571 echo "$as_me: failed program was:" >&5
33572 sed 's/^/| /' conftest.$ac_ext >&5
33574 ac_cv_type_daddr_t=no
33577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33579 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33580 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33581 if test $ac_cv_type_daddr_t = yes; then
33585 cat >>confdefs.h <<_ACEOF
33586 #define daddr_t long
33591 { echo "$as_me:$LINENO: checking for major_t" >&5
33592 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33593 if test "${ac_cv_type_major_t+set}" = set; then
33594 echo $ECHO_N "(cached) $ECHO_C" >&6
33596 cat >conftest.$ac_ext <<_ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h. */
33602 $ac_includes_default
33603 typedef major_t ac__type_new_;
33607 if ((ac__type_new_ *) 0)
33609 if (sizeof (ac__type_new_))
33615 rm -f conftest.$ac_objext
33616 if { (ac_try="$ac_compile"
33617 case "(($ac_try" in
33618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33619 *) ac_try_echo=$ac_try;;
33621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33622 (eval "$ac_compile") 2>conftest.er1
33624 grep -v '^ *+' conftest.er1 >conftest.err
33626 cat conftest.err >&5
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); } && {
33629 test -z "$ac_c_werror_flag" ||
33630 test ! -s conftest.err
33631 } && test -s conftest.$ac_objext; then
33632 ac_cv_type_major_t=yes
33634 echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33637 ac_cv_type_major_t=no
33640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33642 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33643 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33644 if test $ac_cv_type_major_t = yes; then
33648 cat >>confdefs.h <<_ACEOF
33649 #define major_t int
33654 { echo "$as_me:$LINENO: checking for minor_t" >&5
33655 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33656 if test "${ac_cv_type_minor_t+set}" = set; then
33657 echo $ECHO_N "(cached) $ECHO_C" >&6
33659 cat >conftest.$ac_ext <<_ACEOF
33662 cat confdefs.h >>conftest.$ac_ext
33663 cat >>conftest.$ac_ext <<_ACEOF
33664 /* end confdefs.h. */
33665 $ac_includes_default
33666 typedef minor_t ac__type_new_;
33670 if ((ac__type_new_ *) 0)
33672 if (sizeof (ac__type_new_))
33678 rm -f conftest.$ac_objext
33679 if { (ac_try="$ac_compile"
33680 case "(($ac_try" in
33681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33682 *) ac_try_echo=$ac_try;;
33684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33685 (eval "$ac_compile") 2>conftest.er1
33687 grep -v '^ *+' conftest.er1 >conftest.err
33689 cat conftest.err >&5
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); } && {
33692 test -z "$ac_c_werror_flag" ||
33693 test ! -s conftest.err
33694 } && test -s conftest.$ac_objext; then
33695 ac_cv_type_minor_t=yes
33697 echo "$as_me: failed program was:" >&5
33698 sed 's/^/| /' conftest.$ac_ext >&5
33700 ac_cv_type_minor_t=no
33703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33705 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33706 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33707 if test $ac_cv_type_minor_t = yes; then
33711 cat >>confdefs.h <<_ACEOF
33712 #define minor_t int
33717 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33718 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33719 if test "${ac_cv_type_ssize_t+set}" = set; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
33722 cat >conftest.$ac_ext <<_ACEOF
33725 cat confdefs.h >>conftest.$ac_ext
33726 cat >>conftest.$ac_ext <<_ACEOF
33727 /* end confdefs.h. */
33728 $ac_includes_default
33729 typedef ssize_t ac__type_new_;
33733 if ((ac__type_new_ *) 0)
33735 if (sizeof (ac__type_new_))
33741 rm -f conftest.$ac_objext
33742 if { (ac_try="$ac_compile"
33743 case "(($ac_try" in
33744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745 *) ac_try_echo=$ac_try;;
33747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748 (eval "$ac_compile") 2>conftest.er1
33750 grep -v '^ *+' conftest.er1 >conftest.err
33752 cat conftest.err >&5
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); } && {
33755 test -z "$ac_c_werror_flag" ||
33756 test ! -s conftest.err
33757 } && test -s conftest.$ac_objext; then
33758 ac_cv_type_ssize_t=yes
33760 echo "$as_me: failed program was:" >&5
33761 sed 's/^/| /' conftest.$ac_ext >&5
33763 ac_cv_type_ssize_t=no
33766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33768 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33769 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33770 if test $ac_cv_type_ssize_t = yes; then
33774 cat >>confdefs.h <<_ACEOF
33775 #define ssize_t int
33780 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33781 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33782 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33783 echo $ECHO_N "(cached) $ECHO_C" >&6
33785 cat >conftest.$ac_ext <<_ACEOF
33788 cat confdefs.h >>conftest.$ac_ext
33789 cat >>conftest.$ac_ext <<_ACEOF
33790 /* end confdefs.h. */
33791 $ac_includes_default
33795 static struct stat ac_aggr;
33796 if (ac_aggr.st_blocks)
33802 rm -f conftest.$ac_objext
33803 if { (ac_try="$ac_compile"
33804 case "(($ac_try" in
33805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806 *) ac_try_echo=$ac_try;;
33808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809 (eval "$ac_compile") 2>conftest.er1
33811 grep -v '^ *+' conftest.er1 >conftest.err
33813 cat conftest.err >&5
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); } && {
33816 test -z "$ac_c_werror_flag" ||
33817 test ! -s conftest.err
33818 } && test -s conftest.$ac_objext; then
33819 ac_cv_member_struct_stat_st_blocks=yes
33821 echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33824 cat >conftest.$ac_ext <<_ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h. */
33830 $ac_includes_default
33834 static struct stat ac_aggr;
33835 if (sizeof ac_aggr.st_blocks)
33841 rm -f conftest.$ac_objext
33842 if { (ac_try="$ac_compile"
33843 case "(($ac_try" in
33844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33845 *) ac_try_echo=$ac_try;;
33847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33848 (eval "$ac_compile") 2>conftest.er1
33850 grep -v '^ *+' conftest.er1 >conftest.err
33852 cat conftest.err >&5
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); } && {
33855 test -z "$ac_c_werror_flag" ||
33856 test ! -s conftest.err
33857 } && test -s conftest.$ac_objext; then
33858 ac_cv_member_struct_stat_st_blocks=yes
33860 echo "$as_me: failed program was:" >&5
33861 sed 's/^/| /' conftest.$ac_ext >&5
33863 ac_cv_member_struct_stat_st_blocks=no
33866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33872 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33873 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33875 cat >>confdefs.h <<_ACEOF
33876 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33880 cat >>confdefs.h <<\_ACEOF
33881 #define HAVE_ST_BLOCKS 1
33885 case " $LIBOBJS " in
33886 *" fileblocks.$ac_objext "* ) ;;
33887 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33894 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33895 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33896 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33897 echo $ECHO_N "(cached) $ECHO_C" >&6
33899 cat >conftest.$ac_ext <<_ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h. */
33905 $ac_includes_default
33909 static struct stat ac_aggr;
33910 if (ac_aggr.st_rdev)
33916 rm -f conftest.$ac_objext
33917 if { (ac_try="$ac_compile"
33918 case "(($ac_try" in
33919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920 *) ac_try_echo=$ac_try;;
33922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923 (eval "$ac_compile") 2>conftest.er1
33925 grep -v '^ *+' conftest.er1 >conftest.err
33927 cat conftest.err >&5
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); } && {
33930 test -z "$ac_c_werror_flag" ||
33931 test ! -s conftest.err
33932 } && test -s conftest.$ac_objext; then
33933 ac_cv_member_struct_stat_st_rdev=yes
33935 echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33938 cat >conftest.$ac_ext <<_ACEOF
33941 cat confdefs.h >>conftest.$ac_ext
33942 cat >>conftest.$ac_ext <<_ACEOF
33943 /* end confdefs.h. */
33944 $ac_includes_default
33948 static struct stat ac_aggr;
33949 if (sizeof ac_aggr.st_rdev)
33955 rm -f conftest.$ac_objext
33956 if { (ac_try="$ac_compile"
33957 case "(($ac_try" in
33958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33959 *) ac_try_echo=$ac_try;;
33961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33962 (eval "$ac_compile") 2>conftest.er1
33964 grep -v '^ *+' conftest.er1 >conftest.err
33966 cat conftest.err >&5
33967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968 (exit $ac_status); } && {
33969 test -z "$ac_c_werror_flag" ||
33970 test ! -s conftest.err
33971 } && test -s conftest.$ac_objext; then
33972 ac_cv_member_struct_stat_st_rdev=yes
33974 echo "$as_me: failed program was:" >&5
33975 sed 's/^/| /' conftest.$ac_ext >&5
33977 ac_cv_member_struct_stat_st_rdev=no
33980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33985 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33986 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33987 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33989 cat >>confdefs.h <<_ACEOF
33990 #define HAVE_STRUCT_STAT_ST_RDEV 1
33994 cat >>confdefs.h <<\_ACEOF
33995 #define HAVE_ST_RDEV 1
34001 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34003 if test "${ac_cv_struct_tm+set}" = set; then
34004 echo $ECHO_N "(cached) $ECHO_C" >&6
34006 cat >conftest.$ac_ext <<_ACEOF
34009 cat confdefs.h >>conftest.$ac_ext
34010 cat >>conftest.$ac_ext <<_ACEOF
34011 /* end confdefs.h. */
34012 #include <sys/types.h>
34019 int *p = &tm.tm_sec;
34025 rm -f conftest.$ac_objext
34026 if { (ac_try="$ac_compile"
34027 case "(($ac_try" in
34028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029 *) ac_try_echo=$ac_try;;
34031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032 (eval "$ac_compile") 2>conftest.er1
34034 grep -v '^ *+' conftest.er1 >conftest.err
34036 cat conftest.err >&5
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); } && {
34039 test -z "$ac_c_werror_flag" ||
34040 test ! -s conftest.err
34041 } && test -s conftest.$ac_objext; then
34042 ac_cv_struct_tm=time.h
34044 echo "$as_me: failed program was:" >&5
34045 sed 's/^/| /' conftest.$ac_ext >&5
34047 ac_cv_struct_tm=sys/time.h
34050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34052 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34053 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34054 if test $ac_cv_struct_tm = sys/time.h; then
34056 cat >>confdefs.h <<\_ACEOF
34057 #define TM_IN_SYS_TIME 1
34062 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34063 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34064 if test "${ac_cv_c_const+set}" = set; then
34065 echo $ECHO_N "(cached) $ECHO_C" >&6
34067 cat >conftest.$ac_ext <<_ACEOF
34070 cat confdefs.h >>conftest.$ac_ext
34071 cat >>conftest.$ac_ext <<_ACEOF
34072 /* end confdefs.h. */
34077 /* FIXME: Include the comments suggested by Paul. */
34078 #ifndef __cplusplus
34079 /* Ultrix mips cc rejects this. */
34080 typedef int charset[2];
34082 /* SunOS 4.1.1 cc rejects this. */
34083 char const *const *pcpcc;
34085 /* NEC SVR4.0.2 mips cc rejects this. */
34086 struct point {int x, y;};
34087 static struct point const zero = {0,0};
34088 /* AIX XL C 1.02.0.0 rejects this.
34089 It does not let you subtract one const X* pointer from another in
34090 an arm of an if-expression whose if-part is not a constant
34092 const char *g = "string";
34093 pcpcc = &g + (g ? g-g : 0);
34094 /* HPUX 7.0 cc rejects these. */
34096 ppc = (char**) pcpcc;
34097 pcpcc = (char const *const *) ppc;
34098 { /* SCO 3.2v4 cc rejects this. */
34100 char const *s = 0 ? (char *) 0 : (char const *) 0;
34105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34106 int x[] = {25, 17};
34107 const int *foo = &x[0];
34110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34111 typedef const int *iptr;
34115 { /* AIX XL C 1.02.0.0 rejects this saying
34116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34117 struct s { int j; const int *ap[3]; };
34118 struct s *b; b->j = 5;
34120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34121 const int foo = 10;
34122 if (!foo) return 0;
34124 return !cs[0] && !zero.x;
34131 rm -f conftest.$ac_objext
34132 if { (ac_try="$ac_compile"
34133 case "(($ac_try" in
34134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34135 *) ac_try_echo=$ac_try;;
34137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34138 (eval "$ac_compile") 2>conftest.er1
34140 grep -v '^ *+' conftest.er1 >conftest.err
34142 cat conftest.err >&5
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); } && {
34145 test -z "$ac_c_werror_flag" ||
34146 test ! -s conftest.err
34147 } && test -s conftest.$ac_objext; then
34150 echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34158 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34159 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34160 if test $ac_cv_c_const = no; then
34162 cat >>confdefs.h <<\_ACEOF
34169 { echo "$as_me:$LINENO: checking for char" >&5
34170 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34171 if test "${ac_cv_type_char+set}" = set; then
34172 echo $ECHO_N "(cached) $ECHO_C" >&6
34174 cat >conftest.$ac_ext <<_ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h. */
34180 $ac_includes_default
34181 typedef char ac__type_new_;
34185 if ((ac__type_new_ *) 0)
34187 if (sizeof (ac__type_new_))
34193 rm -f conftest.$ac_objext
34194 if { (ac_try="$ac_compile"
34195 case "(($ac_try" in
34196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197 *) ac_try_echo=$ac_try;;
34199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200 (eval "$ac_compile") 2>conftest.er1
34202 grep -v '^ *+' conftest.er1 >conftest.err
34204 cat conftest.err >&5
34205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206 (exit $ac_status); } && {
34207 test -z "$ac_c_werror_flag" ||
34208 test ! -s conftest.err
34209 } && test -s conftest.$ac_objext; then
34210 ac_cv_type_char=yes
34212 echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34220 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34221 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34223 # The cast to long int works around a bug in the HP C Compiler
34224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34226 # This bug is HP SR number 8606223364.
34227 { echo "$as_me:$LINENO: checking size of char" >&5
34228 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34229 if test "${ac_cv_sizeof_char+set}" = set; then
34230 echo $ECHO_N "(cached) $ECHO_C" >&6
34232 if test "$cross_compiling" = yes; then
34233 # Depending upon the size, compute the lo and hi bounds.
34234 cat >conftest.$ac_ext <<_ACEOF
34237 cat confdefs.h >>conftest.$ac_ext
34238 cat >>conftest.$ac_ext <<_ACEOF
34239 /* end confdefs.h. */
34240 $ac_includes_default
34241 typedef char ac__type_sizeof_;
34245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34252 rm -f conftest.$ac_objext
34253 if { (ac_try="$ac_compile"
34254 case "(($ac_try" in
34255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34256 *) ac_try_echo=$ac_try;;
34258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34259 (eval "$ac_compile") 2>conftest.er1
34261 grep -v '^ *+' conftest.er1 >conftest.err
34263 cat conftest.err >&5
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); } && {
34266 test -z "$ac_c_werror_flag" ||
34267 test ! -s conftest.err
34268 } && test -s conftest.$ac_objext; then
34271 cat >conftest.$ac_ext <<_ACEOF
34274 cat confdefs.h >>conftest.$ac_ext
34275 cat >>conftest.$ac_ext <<_ACEOF
34276 /* end confdefs.h. */
34277 $ac_includes_default
34278 typedef char ac__type_sizeof_;
34282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34289 rm -f conftest.$ac_objext
34290 if { (ac_try="$ac_compile"
34291 case "(($ac_try" in
34292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34293 *) ac_try_echo=$ac_try;;
34295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34296 (eval "$ac_compile") 2>conftest.er1
34298 grep -v '^ *+' conftest.er1 >conftest.err
34300 cat conftest.err >&5
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); } && {
34303 test -z "$ac_c_werror_flag" ||
34304 test ! -s conftest.err
34305 } && test -s conftest.$ac_objext; then
34306 ac_hi=$ac_mid; break
34308 echo "$as_me: failed program was:" >&5
34309 sed 's/^/| /' conftest.$ac_ext >&5
34311 ac_lo=`expr $ac_mid + 1`
34312 if test $ac_lo -le $ac_mid; then
34316 ac_mid=`expr 2 '*' $ac_mid + 1`
34319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34322 echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34325 cat >conftest.$ac_ext <<_ACEOF
34328 cat confdefs.h >>conftest.$ac_ext
34329 cat >>conftest.$ac_ext <<_ACEOF
34330 /* end confdefs.h. */
34331 $ac_includes_default
34332 typedef char ac__type_sizeof_;
34336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34343 rm -f conftest.$ac_objext
34344 if { (ac_try="$ac_compile"
34345 case "(($ac_try" in
34346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34347 *) ac_try_echo=$ac_try;;
34349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34350 (eval "$ac_compile") 2>conftest.er1
34352 grep -v '^ *+' conftest.er1 >conftest.err
34354 cat conftest.err >&5
34355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356 (exit $ac_status); } && {
34357 test -z "$ac_c_werror_flag" ||
34358 test ! -s conftest.err
34359 } && test -s conftest.$ac_objext; then
34362 cat >conftest.$ac_ext <<_ACEOF
34365 cat confdefs.h >>conftest.$ac_ext
34366 cat >>conftest.$ac_ext <<_ACEOF
34367 /* end confdefs.h. */
34368 $ac_includes_default
34369 typedef char ac__type_sizeof_;
34373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34380 rm -f conftest.$ac_objext
34381 if { (ac_try="$ac_compile"
34382 case "(($ac_try" in
34383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34384 *) ac_try_echo=$ac_try;;
34386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34387 (eval "$ac_compile") 2>conftest.er1
34389 grep -v '^ *+' conftest.er1 >conftest.err
34391 cat conftest.err >&5
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); } && {
34394 test -z "$ac_c_werror_flag" ||
34395 test ! -s conftest.err
34396 } && test -s conftest.$ac_objext; then
34397 ac_lo=$ac_mid; break
34399 echo "$as_me: failed program was:" >&5
34400 sed 's/^/| /' conftest.$ac_ext >&5
34402 ac_hi=`expr '(' $ac_mid ')' - 1`
34403 if test $ac_mid -le $ac_hi; then
34407 ac_mid=`expr 2 '*' $ac_mid`
34410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34413 echo "$as_me: failed program was:" >&5
34414 sed 's/^/| /' conftest.$ac_ext >&5
34419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34423 # Binary search between lo and hi bounds.
34424 while test "x$ac_lo" != "x$ac_hi"; do
34425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34426 cat >conftest.$ac_ext <<_ACEOF
34429 cat confdefs.h >>conftest.$ac_ext
34430 cat >>conftest.$ac_ext <<_ACEOF
34431 /* end confdefs.h. */
34432 $ac_includes_default
34433 typedef char ac__type_sizeof_;
34437 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34444 rm -f conftest.$ac_objext
34445 if { (ac_try="$ac_compile"
34446 case "(($ac_try" in
34447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34448 *) ac_try_echo=$ac_try;;
34450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34451 (eval "$ac_compile") 2>conftest.er1
34453 grep -v '^ *+' conftest.er1 >conftest.err
34455 cat conftest.err >&5
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); } && {
34458 test -z "$ac_c_werror_flag" ||
34459 test ! -s conftest.err
34460 } && test -s conftest.$ac_objext; then
34463 echo "$as_me: failed program was:" >&5
34464 sed 's/^/| /' conftest.$ac_ext >&5
34466 ac_lo=`expr '(' $ac_mid ')' + 1`
34469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34472 ?*) ac_cv_sizeof_char=$ac_lo;;
34473 '') if test "$ac_cv_type_char" = yes; then
34474 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34475 See \`config.log' for more details." >&5
34476 echo "$as_me: error: cannot compute sizeof (char)
34477 See \`config.log' for more details." >&2;}
34478 { (exit 77); exit 77; }; }
34480 ac_cv_sizeof_char=0
34484 cat >conftest.$ac_ext <<_ACEOF
34487 cat confdefs.h >>conftest.$ac_ext
34488 cat >>conftest.$ac_ext <<_ACEOF
34489 /* end confdefs.h. */
34490 $ac_includes_default
34491 typedef char ac__type_sizeof_;
34492 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34493 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34495 #include <stdlib.h>
34500 FILE *f = fopen ("conftest.val", "w");
34503 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34505 long int i = longval ();
34506 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34508 fprintf (f, "%ld\n", i);
34512 unsigned long int i = ulongval ();
34513 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34515 fprintf (f, "%lu\n", i);
34517 return ferror (f) || fclose (f) != 0;
34523 rm -f conftest$ac_exeext
34524 if { (ac_try="$ac_link"
34525 case "(($ac_try" in
34526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527 *) ac_try_echo=$ac_try;;
34529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34530 (eval "$ac_link") 2>&5
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34534 { (case "(($ac_try" in
34535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34536 *) ac_try_echo=$ac_try;;
34538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34539 (eval "$ac_try") 2>&5
34541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542 (exit $ac_status); }; }; then
34543 ac_cv_sizeof_char=`cat conftest.val`
34545 echo "$as_me: program exited with status $ac_status" >&5
34546 echo "$as_me: failed program was:" >&5
34547 sed 's/^/| /' conftest.$ac_ext >&5
34549 ( exit $ac_status )
34550 if test "$ac_cv_type_char" = yes; then
34551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34552 See \`config.log' for more details." >&5
34553 echo "$as_me: error: cannot compute sizeof (char)
34554 See \`config.log' for more details." >&2;}
34555 { (exit 77); exit 77; }; }
34557 ac_cv_sizeof_char=0
34560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34564 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34565 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34569 cat >>confdefs.h <<_ACEOF
34570 #define SIZEOF_CHAR $ac_cv_sizeof_char
34574 { echo "$as_me:$LINENO: checking for short int" >&5
34575 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34576 if test "${ac_cv_type_short_int+set}" = set; then
34577 echo $ECHO_N "(cached) $ECHO_C" >&6
34579 cat >conftest.$ac_ext <<_ACEOF
34582 cat confdefs.h >>conftest.$ac_ext
34583 cat >>conftest.$ac_ext <<_ACEOF
34584 /* end confdefs.h. */
34585 $ac_includes_default
34586 typedef short int ac__type_new_;
34590 if ((ac__type_new_ *) 0)
34592 if (sizeof (ac__type_new_))
34598 rm -f conftest.$ac_objext
34599 if { (ac_try="$ac_compile"
34600 case "(($ac_try" in
34601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602 *) ac_try_echo=$ac_try;;
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605 (eval "$ac_compile") 2>conftest.er1
34607 grep -v '^ *+' conftest.er1 >conftest.err
34609 cat conftest.err >&5
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } && {
34612 test -z "$ac_c_werror_flag" ||
34613 test ! -s conftest.err
34614 } && test -s conftest.$ac_objext; then
34615 ac_cv_type_short_int=yes
34617 echo "$as_me: failed program was:" >&5
34618 sed 's/^/| /' conftest.$ac_ext >&5
34620 ac_cv_type_short_int=no
34623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34625 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34626 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34628 # The cast to long int works around a bug in the HP C Compiler
34629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34631 # This bug is HP SR number 8606223364.
34632 { echo "$as_me:$LINENO: checking size of short int" >&5
34633 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34634 if test "${ac_cv_sizeof_short_int+set}" = set; then
34635 echo $ECHO_N "(cached) $ECHO_C" >&6
34637 if test "$cross_compiling" = yes; then
34638 # Depending upon the size, compute the lo and hi bounds.
34639 cat >conftest.$ac_ext <<_ACEOF
34642 cat confdefs.h >>conftest.$ac_ext
34643 cat >>conftest.$ac_ext <<_ACEOF
34644 /* end confdefs.h. */
34645 $ac_includes_default
34646 typedef short int ac__type_sizeof_;
34650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34657 rm -f conftest.$ac_objext
34658 if { (ac_try="$ac_compile"
34659 case "(($ac_try" in
34660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34661 *) ac_try_echo=$ac_try;;
34663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34664 (eval "$ac_compile") 2>conftest.er1
34666 grep -v '^ *+' conftest.er1 >conftest.err
34668 cat conftest.err >&5
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); } && {
34671 test -z "$ac_c_werror_flag" ||
34672 test ! -s conftest.err
34673 } && test -s conftest.$ac_objext; then
34676 cat >conftest.$ac_ext <<_ACEOF
34679 cat confdefs.h >>conftest.$ac_ext
34680 cat >>conftest.$ac_ext <<_ACEOF
34681 /* end confdefs.h. */
34682 $ac_includes_default
34683 typedef short int ac__type_sizeof_;
34687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34694 rm -f conftest.$ac_objext
34695 if { (ac_try="$ac_compile"
34696 case "(($ac_try" in
34697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698 *) ac_try_echo=$ac_try;;
34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701 (eval "$ac_compile") 2>conftest.er1
34703 grep -v '^ *+' conftest.er1 >conftest.err
34705 cat conftest.err >&5
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); } && {
34708 test -z "$ac_c_werror_flag" ||
34709 test ! -s conftest.err
34710 } && test -s conftest.$ac_objext; then
34711 ac_hi=$ac_mid; break
34713 echo "$as_me: failed program was:" >&5
34714 sed 's/^/| /' conftest.$ac_ext >&5
34716 ac_lo=`expr $ac_mid + 1`
34717 if test $ac_lo -le $ac_mid; then
34721 ac_mid=`expr 2 '*' $ac_mid + 1`
34724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34727 echo "$as_me: failed program was:" >&5
34728 sed 's/^/| /' conftest.$ac_ext >&5
34730 cat >conftest.$ac_ext <<_ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h. */
34736 $ac_includes_default
34737 typedef short int ac__type_sizeof_;
34741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34748 rm -f conftest.$ac_objext
34749 if { (ac_try="$ac_compile"
34750 case "(($ac_try" in
34751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752 *) ac_try_echo=$ac_try;;
34754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755 (eval "$ac_compile") 2>conftest.er1
34757 grep -v '^ *+' conftest.er1 >conftest.err
34759 cat conftest.err >&5
34760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761 (exit $ac_status); } && {
34762 test -z "$ac_c_werror_flag" ||
34763 test ! -s conftest.err
34764 } && test -s conftest.$ac_objext; then
34767 cat >conftest.$ac_ext <<_ACEOF
34770 cat confdefs.h >>conftest.$ac_ext
34771 cat >>conftest.$ac_ext <<_ACEOF
34772 /* end confdefs.h. */
34773 $ac_includes_default
34774 typedef short int ac__type_sizeof_;
34778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34785 rm -f conftest.$ac_objext
34786 if { (ac_try="$ac_compile"
34787 case "(($ac_try" in
34788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34789 *) ac_try_echo=$ac_try;;
34791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34792 (eval "$ac_compile") 2>conftest.er1
34794 grep -v '^ *+' conftest.er1 >conftest.err
34796 cat conftest.err >&5
34797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798 (exit $ac_status); } && {
34799 test -z "$ac_c_werror_flag" ||
34800 test ! -s conftest.err
34801 } && test -s conftest.$ac_objext; then
34802 ac_lo=$ac_mid; break
34804 echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34807 ac_hi=`expr '(' $ac_mid ')' - 1`
34808 if test $ac_mid -le $ac_hi; then
34812 ac_mid=`expr 2 '*' $ac_mid`
34815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34818 echo "$as_me: failed program was:" >&5
34819 sed 's/^/| /' conftest.$ac_ext >&5
34824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34828 # Binary search between lo and hi bounds.
34829 while test "x$ac_lo" != "x$ac_hi"; do
34830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34831 cat >conftest.$ac_ext <<_ACEOF
34834 cat confdefs.h >>conftest.$ac_ext
34835 cat >>conftest.$ac_ext <<_ACEOF
34836 /* end confdefs.h. */
34837 $ac_includes_default
34838 typedef short int ac__type_sizeof_;
34842 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34849 rm -f conftest.$ac_objext
34850 if { (ac_try="$ac_compile"
34851 case "(($ac_try" in
34852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34853 *) ac_try_echo=$ac_try;;
34855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34856 (eval "$ac_compile") 2>conftest.er1
34858 grep -v '^ *+' conftest.er1 >conftest.err
34860 cat conftest.err >&5
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); } && {
34863 test -z "$ac_c_werror_flag" ||
34864 test ! -s conftest.err
34865 } && test -s conftest.$ac_objext; then
34868 echo "$as_me: failed program was:" >&5
34869 sed 's/^/| /' conftest.$ac_ext >&5
34871 ac_lo=`expr '(' $ac_mid ')' + 1`
34874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34877 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34878 '') if test "$ac_cv_type_short_int" = yes; then
34879 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34880 See \`config.log' for more details." >&5
34881 echo "$as_me: error: cannot compute sizeof (short int)
34882 See \`config.log' for more details." >&2;}
34883 { (exit 77); exit 77; }; }
34885 ac_cv_sizeof_short_int=0
34889 cat >conftest.$ac_ext <<_ACEOF
34892 cat confdefs.h >>conftest.$ac_ext
34893 cat >>conftest.$ac_ext <<_ACEOF
34894 /* end confdefs.h. */
34895 $ac_includes_default
34896 typedef short int ac__type_sizeof_;
34897 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34898 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34900 #include <stdlib.h>
34905 FILE *f = fopen ("conftest.val", "w");
34908 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34910 long int i = longval ();
34911 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34913 fprintf (f, "%ld\n", i);
34917 unsigned long int i = ulongval ();
34918 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34920 fprintf (f, "%lu\n", i);
34922 return ferror (f) || fclose (f) != 0;
34928 rm -f conftest$ac_exeext
34929 if { (ac_try="$ac_link"
34930 case "(($ac_try" in
34931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34932 *) ac_try_echo=$ac_try;;
34934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34935 (eval "$ac_link") 2>&5
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34939 { (case "(($ac_try" in
34940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34941 *) ac_try_echo=$ac_try;;
34943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34944 (eval "$ac_try") 2>&5
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); }; }; then
34948 ac_cv_sizeof_short_int=`cat conftest.val`
34950 echo "$as_me: program exited with status $ac_status" >&5
34951 echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34954 ( exit $ac_status )
34955 if test "$ac_cv_type_short_int" = yes; then
34956 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34957 See \`config.log' for more details." >&5
34958 echo "$as_me: error: cannot compute sizeof (short int)
34959 See \`config.log' for more details." >&2;}
34960 { (exit 77); exit 77; }; }
34962 ac_cv_sizeof_short_int=0
34965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34969 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34970 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34974 cat >>confdefs.h <<_ACEOF
34975 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34979 { echo "$as_me:$LINENO: checking for int" >&5
34980 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34981 if test "${ac_cv_type_int+set}" = set; then
34982 echo $ECHO_N "(cached) $ECHO_C" >&6
34984 cat >conftest.$ac_ext <<_ACEOF
34987 cat confdefs.h >>conftest.$ac_ext
34988 cat >>conftest.$ac_ext <<_ACEOF
34989 /* end confdefs.h. */
34990 $ac_includes_default
34991 typedef int ac__type_new_;
34995 if ((ac__type_new_ *) 0)
34997 if (sizeof (ac__type_new_))
35003 rm -f conftest.$ac_objext
35004 if { (ac_try="$ac_compile"
35005 case "(($ac_try" in
35006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35007 *) ac_try_echo=$ac_try;;
35009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35010 (eval "$ac_compile") 2>conftest.er1
35012 grep -v '^ *+' conftest.er1 >conftest.err
35014 cat conftest.err >&5
35015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016 (exit $ac_status); } && {
35017 test -z "$ac_c_werror_flag" ||
35018 test ! -s conftest.err
35019 } && test -s conftest.$ac_objext; then
35022 echo "$as_me: failed program was:" >&5
35023 sed 's/^/| /' conftest.$ac_ext >&5
35028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35030 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35031 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35033 # The cast to long int works around a bug in the HP C Compiler
35034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35036 # This bug is HP SR number 8606223364.
35037 { echo "$as_me:$LINENO: checking size of int" >&5
35038 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35039 if test "${ac_cv_sizeof_int+set}" = set; then
35040 echo $ECHO_N "(cached) $ECHO_C" >&6
35042 if test "$cross_compiling" = yes; then
35043 # Depending upon the size, compute the lo and hi bounds.
35044 cat >conftest.$ac_ext <<_ACEOF
35047 cat confdefs.h >>conftest.$ac_ext
35048 cat >>conftest.$ac_ext <<_ACEOF
35049 /* end confdefs.h. */
35050 $ac_includes_default
35051 typedef int ac__type_sizeof_;
35055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35062 rm -f conftest.$ac_objext
35063 if { (ac_try="$ac_compile"
35064 case "(($ac_try" in
35065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35066 *) ac_try_echo=$ac_try;;
35068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35069 (eval "$ac_compile") 2>conftest.er1
35071 grep -v '^ *+' conftest.er1 >conftest.err
35073 cat conftest.err >&5
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); } && {
35076 test -z "$ac_c_werror_flag" ||
35077 test ! -s conftest.err
35078 } && test -s conftest.$ac_objext; then
35081 cat >conftest.$ac_ext <<_ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h. */
35087 $ac_includes_default
35088 typedef int ac__type_sizeof_;
35092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35099 rm -f conftest.$ac_objext
35100 if { (ac_try="$ac_compile"
35101 case "(($ac_try" in
35102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35103 *) ac_try_echo=$ac_try;;
35105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35106 (eval "$ac_compile") 2>conftest.er1
35108 grep -v '^ *+' conftest.er1 >conftest.err
35110 cat conftest.err >&5
35111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112 (exit $ac_status); } && {
35113 test -z "$ac_c_werror_flag" ||
35114 test ! -s conftest.err
35115 } && test -s conftest.$ac_objext; then
35116 ac_hi=$ac_mid; break
35118 echo "$as_me: failed program was:" >&5
35119 sed 's/^/| /' conftest.$ac_ext >&5
35121 ac_lo=`expr $ac_mid + 1`
35122 if test $ac_lo -le $ac_mid; then
35126 ac_mid=`expr 2 '*' $ac_mid + 1`
35129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35132 echo "$as_me: failed program was:" >&5
35133 sed 's/^/| /' conftest.$ac_ext >&5
35135 cat >conftest.$ac_ext <<_ACEOF
35138 cat confdefs.h >>conftest.$ac_ext
35139 cat >>conftest.$ac_ext <<_ACEOF
35140 /* end confdefs.h. */
35141 $ac_includes_default
35142 typedef int ac__type_sizeof_;
35146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35153 rm -f conftest.$ac_objext
35154 if { (ac_try="$ac_compile"
35155 case "(($ac_try" in
35156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35157 *) ac_try_echo=$ac_try;;
35159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35160 (eval "$ac_compile") 2>conftest.er1
35162 grep -v '^ *+' conftest.er1 >conftest.err
35164 cat conftest.err >&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } && {
35167 test -z "$ac_c_werror_flag" ||
35168 test ! -s conftest.err
35169 } && test -s conftest.$ac_objext; then
35172 cat >conftest.$ac_ext <<_ACEOF
35175 cat confdefs.h >>conftest.$ac_ext
35176 cat >>conftest.$ac_ext <<_ACEOF
35177 /* end confdefs.h. */
35178 $ac_includes_default
35179 typedef int ac__type_sizeof_;
35183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35190 rm -f conftest.$ac_objext
35191 if { (ac_try="$ac_compile"
35192 case "(($ac_try" in
35193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35194 *) ac_try_echo=$ac_try;;
35196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35197 (eval "$ac_compile") 2>conftest.er1
35199 grep -v '^ *+' conftest.er1 >conftest.err
35201 cat conftest.err >&5
35202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203 (exit $ac_status); } && {
35204 test -z "$ac_c_werror_flag" ||
35205 test ! -s conftest.err
35206 } && test -s conftest.$ac_objext; then
35207 ac_lo=$ac_mid; break
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35212 ac_hi=`expr '(' $ac_mid ')' - 1`
35213 if test $ac_mid -le $ac_hi; then
35217 ac_mid=`expr 2 '*' $ac_mid`
35220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35223 echo "$as_me: failed program was:" >&5
35224 sed 's/^/| /' conftest.$ac_ext >&5
35229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35233 # Binary search between lo and hi bounds.
35234 while test "x$ac_lo" != "x$ac_hi"; do
35235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35236 cat >conftest.$ac_ext <<_ACEOF
35239 cat confdefs.h >>conftest.$ac_ext
35240 cat >>conftest.$ac_ext <<_ACEOF
35241 /* end confdefs.h. */
35242 $ac_includes_default
35243 typedef int ac__type_sizeof_;
35247 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35254 rm -f conftest.$ac_objext
35255 if { (ac_try="$ac_compile"
35256 case "(($ac_try" in
35257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35258 *) ac_try_echo=$ac_try;;
35260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35261 (eval "$ac_compile") 2>conftest.er1
35263 grep -v '^ *+' conftest.er1 >conftest.err
35265 cat conftest.err >&5
35266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267 (exit $ac_status); } && {
35268 test -z "$ac_c_werror_flag" ||
35269 test ! -s conftest.err
35270 } && test -s conftest.$ac_objext; then
35273 echo "$as_me: failed program was:" >&5
35274 sed 's/^/| /' conftest.$ac_ext >&5
35276 ac_lo=`expr '(' $ac_mid ')' + 1`
35279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35282 ?*) ac_cv_sizeof_int=$ac_lo;;
35283 '') if test "$ac_cv_type_int" = yes; then
35284 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35285 See \`config.log' for more details." >&5
35286 echo "$as_me: error: cannot compute sizeof (int)
35287 See \`config.log' for more details." >&2;}
35288 { (exit 77); exit 77; }; }
35294 cat >conftest.$ac_ext <<_ACEOF
35297 cat confdefs.h >>conftest.$ac_ext
35298 cat >>conftest.$ac_ext <<_ACEOF
35299 /* end confdefs.h. */
35300 $ac_includes_default
35301 typedef int ac__type_sizeof_;
35302 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35303 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35305 #include <stdlib.h>
35310 FILE *f = fopen ("conftest.val", "w");
35313 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35315 long int i = longval ();
35316 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35318 fprintf (f, "%ld\n", i);
35322 unsigned long int i = ulongval ();
35323 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35325 fprintf (f, "%lu\n", i);
35327 return ferror (f) || fclose (f) != 0;
35333 rm -f conftest$ac_exeext
35334 if { (ac_try="$ac_link"
35335 case "(($ac_try" in
35336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35337 *) ac_try_echo=$ac_try;;
35339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35340 (eval "$ac_link") 2>&5
35342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35344 { (case "(($ac_try" in
35345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35346 *) ac_try_echo=$ac_try;;
35348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35349 (eval "$ac_try") 2>&5
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); }; }; then
35353 ac_cv_sizeof_int=`cat conftest.val`
35355 echo "$as_me: program exited with status $ac_status" >&5
35356 echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35359 ( exit $ac_status )
35360 if test "$ac_cv_type_int" = yes; then
35361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35362 See \`config.log' for more details." >&5
35363 echo "$as_me: error: cannot compute sizeof (int)
35364 See \`config.log' for more details." >&2;}
35365 { (exit 77); exit 77; }; }
35370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35374 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35375 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35379 cat >>confdefs.h <<_ACEOF
35380 #define SIZEOF_INT $ac_cv_sizeof_int
35384 { echo "$as_me:$LINENO: checking for long int" >&5
35385 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35386 if test "${ac_cv_type_long_int+set}" = set; then
35387 echo $ECHO_N "(cached) $ECHO_C" >&6
35389 cat >conftest.$ac_ext <<_ACEOF
35392 cat confdefs.h >>conftest.$ac_ext
35393 cat >>conftest.$ac_ext <<_ACEOF
35394 /* end confdefs.h. */
35395 $ac_includes_default
35396 typedef long int ac__type_new_;
35400 if ((ac__type_new_ *) 0)
35402 if (sizeof (ac__type_new_))
35408 rm -f conftest.$ac_objext
35409 if { (ac_try="$ac_compile"
35410 case "(($ac_try" in
35411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35412 *) ac_try_echo=$ac_try;;
35414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35415 (eval "$ac_compile") 2>conftest.er1
35417 grep -v '^ *+' conftest.er1 >conftest.err
35419 cat conftest.err >&5
35420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421 (exit $ac_status); } && {
35422 test -z "$ac_c_werror_flag" ||
35423 test ! -s conftest.err
35424 } && test -s conftest.$ac_objext; then
35425 ac_cv_type_long_int=yes
35427 echo "$as_me: failed program was:" >&5
35428 sed 's/^/| /' conftest.$ac_ext >&5
35430 ac_cv_type_long_int=no
35433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35435 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35436 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35438 # The cast to long int works around a bug in the HP C Compiler
35439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35441 # This bug is HP SR number 8606223364.
35442 { echo "$as_me:$LINENO: checking size of long int" >&5
35443 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35444 if test "${ac_cv_sizeof_long_int+set}" = set; then
35445 echo $ECHO_N "(cached) $ECHO_C" >&6
35447 if test "$cross_compiling" = yes; then
35448 # Depending upon the size, compute the lo and hi bounds.
35449 cat >conftest.$ac_ext <<_ACEOF
35452 cat confdefs.h >>conftest.$ac_ext
35453 cat >>conftest.$ac_ext <<_ACEOF
35454 /* end confdefs.h. */
35455 $ac_includes_default
35456 typedef long int ac__type_sizeof_;
35460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35467 rm -f conftest.$ac_objext
35468 if { (ac_try="$ac_compile"
35469 case "(($ac_try" in
35470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35471 *) ac_try_echo=$ac_try;;
35473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35474 (eval "$ac_compile") 2>conftest.er1
35476 grep -v '^ *+' conftest.er1 >conftest.err
35478 cat conftest.err >&5
35479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480 (exit $ac_status); } && {
35481 test -z "$ac_c_werror_flag" ||
35482 test ! -s conftest.err
35483 } && test -s conftest.$ac_objext; then
35486 cat >conftest.$ac_ext <<_ACEOF
35489 cat confdefs.h >>conftest.$ac_ext
35490 cat >>conftest.$ac_ext <<_ACEOF
35491 /* end confdefs.h. */
35492 $ac_includes_default
35493 typedef long int ac__type_sizeof_;
35497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35504 rm -f conftest.$ac_objext
35505 if { (ac_try="$ac_compile"
35506 case "(($ac_try" in
35507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35508 *) ac_try_echo=$ac_try;;
35510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35511 (eval "$ac_compile") 2>conftest.er1
35513 grep -v '^ *+' conftest.er1 >conftest.err
35515 cat conftest.err >&5
35516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517 (exit $ac_status); } && {
35518 test -z "$ac_c_werror_flag" ||
35519 test ! -s conftest.err
35520 } && test -s conftest.$ac_objext; then
35521 ac_hi=$ac_mid; break
35523 echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35526 ac_lo=`expr $ac_mid + 1`
35527 if test $ac_lo -le $ac_mid; then
35531 ac_mid=`expr 2 '*' $ac_mid + 1`
35534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35537 echo "$as_me: failed program was:" >&5
35538 sed 's/^/| /' conftest.$ac_ext >&5
35540 cat >conftest.$ac_ext <<_ACEOF
35543 cat confdefs.h >>conftest.$ac_ext
35544 cat >>conftest.$ac_ext <<_ACEOF
35545 /* end confdefs.h. */
35546 $ac_includes_default
35547 typedef long int ac__type_sizeof_;
35551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35558 rm -f conftest.$ac_objext
35559 if { (ac_try="$ac_compile"
35560 case "(($ac_try" in
35561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35562 *) ac_try_echo=$ac_try;;
35564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35565 (eval "$ac_compile") 2>conftest.er1
35567 grep -v '^ *+' conftest.er1 >conftest.err
35569 cat conftest.err >&5
35570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35571 (exit $ac_status); } && {
35572 test -z "$ac_c_werror_flag" ||
35573 test ! -s conftest.err
35574 } && test -s conftest.$ac_objext; then
35577 cat >conftest.$ac_ext <<_ACEOF
35580 cat confdefs.h >>conftest.$ac_ext
35581 cat >>conftest.$ac_ext <<_ACEOF
35582 /* end confdefs.h. */
35583 $ac_includes_default
35584 typedef long int ac__type_sizeof_;
35588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35595 rm -f conftest.$ac_objext
35596 if { (ac_try="$ac_compile"
35597 case "(($ac_try" in
35598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35599 *) ac_try_echo=$ac_try;;
35601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35602 (eval "$ac_compile") 2>conftest.er1
35604 grep -v '^ *+' conftest.er1 >conftest.err
35606 cat conftest.err >&5
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); } && {
35609 test -z "$ac_c_werror_flag" ||
35610 test ! -s conftest.err
35611 } && test -s conftest.$ac_objext; then
35612 ac_lo=$ac_mid; break
35614 echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35617 ac_hi=`expr '(' $ac_mid ')' - 1`
35618 if test $ac_mid -le $ac_hi; then
35622 ac_mid=`expr 2 '*' $ac_mid`
35625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35628 echo "$as_me: failed program was:" >&5
35629 sed 's/^/| /' conftest.$ac_ext >&5
35634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35638 # Binary search between lo and hi bounds.
35639 while test "x$ac_lo" != "x$ac_hi"; do
35640 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35641 cat >conftest.$ac_ext <<_ACEOF
35644 cat confdefs.h >>conftest.$ac_ext
35645 cat >>conftest.$ac_ext <<_ACEOF
35646 /* end confdefs.h. */
35647 $ac_includes_default
35648 typedef long int ac__type_sizeof_;
35652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35659 rm -f conftest.$ac_objext
35660 if { (ac_try="$ac_compile"
35661 case "(($ac_try" in
35662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35663 *) ac_try_echo=$ac_try;;
35665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35666 (eval "$ac_compile") 2>conftest.er1
35668 grep -v '^ *+' conftest.er1 >conftest.err
35670 cat conftest.err >&5
35671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672 (exit $ac_status); } && {
35673 test -z "$ac_c_werror_flag" ||
35674 test ! -s conftest.err
35675 } && test -s conftest.$ac_objext; then
35678 echo "$as_me: failed program was:" >&5
35679 sed 's/^/| /' conftest.$ac_ext >&5
35681 ac_lo=`expr '(' $ac_mid ')' + 1`
35684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35687 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35688 '') if test "$ac_cv_type_long_int" = yes; then
35689 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35690 See \`config.log' for more details." >&5
35691 echo "$as_me: error: cannot compute sizeof (long int)
35692 See \`config.log' for more details." >&2;}
35693 { (exit 77); exit 77; }; }
35695 ac_cv_sizeof_long_int=0
35699 cat >conftest.$ac_ext <<_ACEOF
35702 cat confdefs.h >>conftest.$ac_ext
35703 cat >>conftest.$ac_ext <<_ACEOF
35704 /* end confdefs.h. */
35705 $ac_includes_default
35706 typedef long int ac__type_sizeof_;
35707 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35708 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35710 #include <stdlib.h>
35715 FILE *f = fopen ("conftest.val", "w");
35718 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35720 long int i = longval ();
35721 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35723 fprintf (f, "%ld\n", i);
35727 unsigned long int i = ulongval ();
35728 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35730 fprintf (f, "%lu\n", i);
35732 return ferror (f) || fclose (f) != 0;
35738 rm -f conftest$ac_exeext
35739 if { (ac_try="$ac_link"
35740 case "(($ac_try" in
35741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35742 *) ac_try_echo=$ac_try;;
35744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35745 (eval "$ac_link") 2>&5
35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35749 { (case "(($ac_try" in
35750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35751 *) ac_try_echo=$ac_try;;
35753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35754 (eval "$ac_try") 2>&5
35756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757 (exit $ac_status); }; }; then
35758 ac_cv_sizeof_long_int=`cat conftest.val`
35760 echo "$as_me: program exited with status $ac_status" >&5
35761 echo "$as_me: failed program was:" >&5
35762 sed 's/^/| /' conftest.$ac_ext >&5
35764 ( exit $ac_status )
35765 if test "$ac_cv_type_long_int" = yes; then
35766 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35767 See \`config.log' for more details." >&5
35768 echo "$as_me: error: cannot compute sizeof (long int)
35769 See \`config.log' for more details." >&2;}
35770 { (exit 77); exit 77; }; }
35772 ac_cv_sizeof_long_int=0
35775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35779 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35780 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35784 cat >>confdefs.h <<_ACEOF
35785 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35789 { echo "$as_me:$LINENO: checking for long long int" >&5
35790 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35791 if test "${ac_cv_type_long_long_int+set}" = set; then
35792 echo $ECHO_N "(cached) $ECHO_C" >&6
35794 cat >conftest.$ac_ext <<_ACEOF
35797 cat confdefs.h >>conftest.$ac_ext
35798 cat >>conftest.$ac_ext <<_ACEOF
35799 /* end confdefs.h. */
35800 $ac_includes_default
35801 typedef long long int ac__type_new_;
35805 if ((ac__type_new_ *) 0)
35807 if (sizeof (ac__type_new_))
35813 rm -f conftest.$ac_objext
35814 if { (ac_try="$ac_compile"
35815 case "(($ac_try" in
35816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35817 *) ac_try_echo=$ac_try;;
35819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35820 (eval "$ac_compile") 2>conftest.er1
35822 grep -v '^ *+' conftest.er1 >conftest.err
35824 cat conftest.err >&5
35825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826 (exit $ac_status); } && {
35827 test -z "$ac_c_werror_flag" ||
35828 test ! -s conftest.err
35829 } && test -s conftest.$ac_objext; then
35830 ac_cv_type_long_long_int=yes
35832 echo "$as_me: failed program was:" >&5
35833 sed 's/^/| /' conftest.$ac_ext >&5
35835 ac_cv_type_long_long_int=no
35838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35840 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35841 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35843 # The cast to long int works around a bug in the HP C Compiler
35844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35846 # This bug is HP SR number 8606223364.
35847 { echo "$as_me:$LINENO: checking size of long long int" >&5
35848 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35849 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35850 echo $ECHO_N "(cached) $ECHO_C" >&6
35852 if test "$cross_compiling" = yes; then
35853 # Depending upon the size, compute the lo and hi bounds.
35854 cat >conftest.$ac_ext <<_ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h. */
35860 $ac_includes_default
35861 typedef long long int ac__type_sizeof_;
35865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35872 rm -f conftest.$ac_objext
35873 if { (ac_try="$ac_compile"
35874 case "(($ac_try" in
35875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35876 *) ac_try_echo=$ac_try;;
35878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35879 (eval "$ac_compile") 2>conftest.er1
35881 grep -v '^ *+' conftest.er1 >conftest.err
35883 cat conftest.err >&5
35884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); } && {
35886 test -z "$ac_c_werror_flag" ||
35887 test ! -s conftest.err
35888 } && test -s conftest.$ac_objext; then
35891 cat >conftest.$ac_ext <<_ACEOF
35894 cat confdefs.h >>conftest.$ac_ext
35895 cat >>conftest.$ac_ext <<_ACEOF
35896 /* end confdefs.h. */
35897 $ac_includes_default
35898 typedef long long int ac__type_sizeof_;
35902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35909 rm -f conftest.$ac_objext
35910 if { (ac_try="$ac_compile"
35911 case "(($ac_try" in
35912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35913 *) ac_try_echo=$ac_try;;
35915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35916 (eval "$ac_compile") 2>conftest.er1
35918 grep -v '^ *+' conftest.er1 >conftest.err
35920 cat conftest.err >&5
35921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35922 (exit $ac_status); } && {
35923 test -z "$ac_c_werror_flag" ||
35924 test ! -s conftest.err
35925 } && test -s conftest.$ac_objext; then
35926 ac_hi=$ac_mid; break
35928 echo "$as_me: failed program was:" >&5
35929 sed 's/^/| /' conftest.$ac_ext >&5
35931 ac_lo=`expr $ac_mid + 1`
35932 if test $ac_lo -le $ac_mid; then
35936 ac_mid=`expr 2 '*' $ac_mid + 1`
35939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35942 echo "$as_me: failed program was:" >&5
35943 sed 's/^/| /' conftest.$ac_ext >&5
35945 cat >conftest.$ac_ext <<_ACEOF
35948 cat confdefs.h >>conftest.$ac_ext
35949 cat >>conftest.$ac_ext <<_ACEOF
35950 /* end confdefs.h. */
35951 $ac_includes_default
35952 typedef long long int ac__type_sizeof_;
35956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35963 rm -f conftest.$ac_objext
35964 if { (ac_try="$ac_compile"
35965 case "(($ac_try" in
35966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35967 *) ac_try_echo=$ac_try;;
35969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35970 (eval "$ac_compile") 2>conftest.er1
35972 grep -v '^ *+' conftest.er1 >conftest.err
35974 cat conftest.err >&5
35975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976 (exit $ac_status); } && {
35977 test -z "$ac_c_werror_flag" ||
35978 test ! -s conftest.err
35979 } && test -s conftest.$ac_objext; then
35982 cat >conftest.$ac_ext <<_ACEOF
35985 cat confdefs.h >>conftest.$ac_ext
35986 cat >>conftest.$ac_ext <<_ACEOF
35987 /* end confdefs.h. */
35988 $ac_includes_default
35989 typedef long long int ac__type_sizeof_;
35993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36000 rm -f conftest.$ac_objext
36001 if { (ac_try="$ac_compile"
36002 case "(($ac_try" in
36003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36004 *) ac_try_echo=$ac_try;;
36006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36007 (eval "$ac_compile") 2>conftest.er1
36009 grep -v '^ *+' conftest.er1 >conftest.err
36011 cat conftest.err >&5
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); } && {
36014 test -z "$ac_c_werror_flag" ||
36015 test ! -s conftest.err
36016 } && test -s conftest.$ac_objext; then
36017 ac_lo=$ac_mid; break
36019 echo "$as_me: failed program was:" >&5
36020 sed 's/^/| /' conftest.$ac_ext >&5
36022 ac_hi=`expr '(' $ac_mid ')' - 1`
36023 if test $ac_mid -le $ac_hi; then
36027 ac_mid=`expr 2 '*' $ac_mid`
36030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36033 echo "$as_me: failed program was:" >&5
36034 sed 's/^/| /' conftest.$ac_ext >&5
36039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36043 # Binary search between lo and hi bounds.
36044 while test "x$ac_lo" != "x$ac_hi"; do
36045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36046 cat >conftest.$ac_ext <<_ACEOF
36049 cat confdefs.h >>conftest.$ac_ext
36050 cat >>conftest.$ac_ext <<_ACEOF
36051 /* end confdefs.h. */
36052 $ac_includes_default
36053 typedef long long int ac__type_sizeof_;
36057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36064 rm -f conftest.$ac_objext
36065 if { (ac_try="$ac_compile"
36066 case "(($ac_try" in
36067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36068 *) ac_try_echo=$ac_try;;
36070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36071 (eval "$ac_compile") 2>conftest.er1
36073 grep -v '^ *+' conftest.er1 >conftest.err
36075 cat conftest.err >&5
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); } && {
36078 test -z "$ac_c_werror_flag" ||
36079 test ! -s conftest.err
36080 } && test -s conftest.$ac_objext; then
36083 echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36086 ac_lo=`expr '(' $ac_mid ')' + 1`
36089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36092 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36093 '') if test "$ac_cv_type_long_long_int" = yes; then
36094 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36095 See \`config.log' for more details." >&5
36096 echo "$as_me: error: cannot compute sizeof (long long int)
36097 See \`config.log' for more details." >&2;}
36098 { (exit 77); exit 77; }; }
36100 ac_cv_sizeof_long_long_int=0
36104 cat >conftest.$ac_ext <<_ACEOF
36107 cat confdefs.h >>conftest.$ac_ext
36108 cat >>conftest.$ac_ext <<_ACEOF
36109 /* end confdefs.h. */
36110 $ac_includes_default
36111 typedef long long int ac__type_sizeof_;
36112 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36113 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36115 #include <stdlib.h>
36120 FILE *f = fopen ("conftest.val", "w");
36123 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36125 long int i = longval ();
36126 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36128 fprintf (f, "%ld\n", i);
36132 unsigned long int i = ulongval ();
36133 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36135 fprintf (f, "%lu\n", i);
36137 return ferror (f) || fclose (f) != 0;
36143 rm -f conftest$ac_exeext
36144 if { (ac_try="$ac_link"
36145 case "(($ac_try" in
36146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36147 *) ac_try_echo=$ac_try;;
36149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36150 (eval "$ac_link") 2>&5
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36154 { (case "(($ac_try" in
36155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36156 *) ac_try_echo=$ac_try;;
36158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36159 (eval "$ac_try") 2>&5
36161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162 (exit $ac_status); }; }; then
36163 ac_cv_sizeof_long_long_int=`cat conftest.val`
36165 echo "$as_me: program exited with status $ac_status" >&5
36166 echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36169 ( exit $ac_status )
36170 if test "$ac_cv_type_long_long_int" = yes; then
36171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36172 See \`config.log' for more details." >&5
36173 echo "$as_me: error: cannot compute sizeof (long long int)
36174 See \`config.log' for more details." >&2;}
36175 { (exit 77); exit 77; }; }
36177 ac_cv_sizeof_long_long_int=0
36180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36184 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36185 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36189 cat >>confdefs.h <<_ACEOF
36190 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36194 { echo "$as_me:$LINENO: checking for int *" >&5
36195 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36196 if test "${ac_cv_type_int_p+set}" = set; then
36197 echo $ECHO_N "(cached) $ECHO_C" >&6
36199 cat >conftest.$ac_ext <<_ACEOF
36202 cat confdefs.h >>conftest.$ac_ext
36203 cat >>conftest.$ac_ext <<_ACEOF
36204 /* end confdefs.h. */
36205 $ac_includes_default
36206 typedef int * ac__type_new_;
36210 if ((ac__type_new_ *) 0)
36212 if (sizeof (ac__type_new_))
36218 rm -f conftest.$ac_objext
36219 if { (ac_try="$ac_compile"
36220 case "(($ac_try" in
36221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36222 *) ac_try_echo=$ac_try;;
36224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36225 (eval "$ac_compile") 2>conftest.er1
36227 grep -v '^ *+' conftest.er1 >conftest.err
36229 cat conftest.err >&5
36230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36231 (exit $ac_status); } && {
36232 test -z "$ac_c_werror_flag" ||
36233 test ! -s conftest.err
36234 } && test -s conftest.$ac_objext; then
36235 ac_cv_type_int_p=yes
36237 echo "$as_me: failed program was:" >&5
36238 sed 's/^/| /' conftest.$ac_ext >&5
36240 ac_cv_type_int_p=no
36243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36245 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36246 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36248 # The cast to long int works around a bug in the HP C Compiler
36249 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36250 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36251 # This bug is HP SR number 8606223364.
36252 { echo "$as_me:$LINENO: checking size of int *" >&5
36253 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36254 if test "${ac_cv_sizeof_int_p+set}" = set; then
36255 echo $ECHO_N "(cached) $ECHO_C" >&6
36257 if test "$cross_compiling" = yes; then
36258 # Depending upon the size, compute the lo and hi bounds.
36259 cat >conftest.$ac_ext <<_ACEOF
36262 cat confdefs.h >>conftest.$ac_ext
36263 cat >>conftest.$ac_ext <<_ACEOF
36264 /* end confdefs.h. */
36265 $ac_includes_default
36266 typedef int * ac__type_sizeof_;
36270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36277 rm -f conftest.$ac_objext
36278 if { (ac_try="$ac_compile"
36279 case "(($ac_try" in
36280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36281 *) ac_try_echo=$ac_try;;
36283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36284 (eval "$ac_compile") 2>conftest.er1
36286 grep -v '^ *+' conftest.er1 >conftest.err
36288 cat conftest.err >&5
36289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); } && {
36291 test -z "$ac_c_werror_flag" ||
36292 test ! -s conftest.err
36293 } && test -s conftest.$ac_objext; then
36296 cat >conftest.$ac_ext <<_ACEOF
36299 cat confdefs.h >>conftest.$ac_ext
36300 cat >>conftest.$ac_ext <<_ACEOF
36301 /* end confdefs.h. */
36302 $ac_includes_default
36303 typedef int * ac__type_sizeof_;
36307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36314 rm -f conftest.$ac_objext
36315 if { (ac_try="$ac_compile"
36316 case "(($ac_try" in
36317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36318 *) ac_try_echo=$ac_try;;
36320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36321 (eval "$ac_compile") 2>conftest.er1
36323 grep -v '^ *+' conftest.er1 >conftest.err
36325 cat conftest.err >&5
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); } && {
36328 test -z "$ac_c_werror_flag" ||
36329 test ! -s conftest.err
36330 } && test -s conftest.$ac_objext; then
36331 ac_hi=$ac_mid; break
36333 echo "$as_me: failed program was:" >&5
36334 sed 's/^/| /' conftest.$ac_ext >&5
36336 ac_lo=`expr $ac_mid + 1`
36337 if test $ac_lo -le $ac_mid; then
36341 ac_mid=`expr 2 '*' $ac_mid + 1`
36344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36347 echo "$as_me: failed program was:" >&5
36348 sed 's/^/| /' conftest.$ac_ext >&5
36350 cat >conftest.$ac_ext <<_ACEOF
36353 cat confdefs.h >>conftest.$ac_ext
36354 cat >>conftest.$ac_ext <<_ACEOF
36355 /* end confdefs.h. */
36356 $ac_includes_default
36357 typedef int * ac__type_sizeof_;
36361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36368 rm -f conftest.$ac_objext
36369 if { (ac_try="$ac_compile"
36370 case "(($ac_try" in
36371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36372 *) ac_try_echo=$ac_try;;
36374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36375 (eval "$ac_compile") 2>conftest.er1
36377 grep -v '^ *+' conftest.er1 >conftest.err
36379 cat conftest.err >&5
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); } && {
36382 test -z "$ac_c_werror_flag" ||
36383 test ! -s conftest.err
36384 } && test -s conftest.$ac_objext; then
36387 cat >conftest.$ac_ext <<_ACEOF
36390 cat confdefs.h >>conftest.$ac_ext
36391 cat >>conftest.$ac_ext <<_ACEOF
36392 /* end confdefs.h. */
36393 $ac_includes_default
36394 typedef int * ac__type_sizeof_;
36398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36405 rm -f conftest.$ac_objext
36406 if { (ac_try="$ac_compile"
36407 case "(($ac_try" in
36408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36409 *) ac_try_echo=$ac_try;;
36411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36412 (eval "$ac_compile") 2>conftest.er1
36414 grep -v '^ *+' conftest.er1 >conftest.err
36416 cat conftest.err >&5
36417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418 (exit $ac_status); } && {
36419 test -z "$ac_c_werror_flag" ||
36420 test ! -s conftest.err
36421 } && test -s conftest.$ac_objext; then
36422 ac_lo=$ac_mid; break
36424 echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36427 ac_hi=`expr '(' $ac_mid ')' - 1`
36428 if test $ac_mid -le $ac_hi; then
36432 ac_mid=`expr 2 '*' $ac_mid`
36435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36438 echo "$as_me: failed program was:" >&5
36439 sed 's/^/| /' conftest.$ac_ext >&5
36444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36448 # Binary search between lo and hi bounds.
36449 while test "x$ac_lo" != "x$ac_hi"; do
36450 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36451 cat >conftest.$ac_ext <<_ACEOF
36454 cat confdefs.h >>conftest.$ac_ext
36455 cat >>conftest.$ac_ext <<_ACEOF
36456 /* end confdefs.h. */
36457 $ac_includes_default
36458 typedef int * ac__type_sizeof_;
36462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36469 rm -f conftest.$ac_objext
36470 if { (ac_try="$ac_compile"
36471 case "(($ac_try" in
36472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36473 *) ac_try_echo=$ac_try;;
36475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36476 (eval "$ac_compile") 2>conftest.er1
36478 grep -v '^ *+' conftest.er1 >conftest.err
36480 cat conftest.err >&5
36481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482 (exit $ac_status); } && {
36483 test -z "$ac_c_werror_flag" ||
36484 test ! -s conftest.err
36485 } && test -s conftest.$ac_objext; then
36488 echo "$as_me: failed program was:" >&5
36489 sed 's/^/| /' conftest.$ac_ext >&5
36491 ac_lo=`expr '(' $ac_mid ')' + 1`
36494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36497 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36498 '') if test "$ac_cv_type_int_p" = yes; then
36499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36500 See \`config.log' for more details." >&5
36501 echo "$as_me: error: cannot compute sizeof (int *)
36502 See \`config.log' for more details." >&2;}
36503 { (exit 77); exit 77; }; }
36505 ac_cv_sizeof_int_p=0
36509 cat >conftest.$ac_ext <<_ACEOF
36512 cat confdefs.h >>conftest.$ac_ext
36513 cat >>conftest.$ac_ext <<_ACEOF
36514 /* end confdefs.h. */
36515 $ac_includes_default
36516 typedef int * ac__type_sizeof_;
36517 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36518 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36520 #include <stdlib.h>
36525 FILE *f = fopen ("conftest.val", "w");
36528 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36530 long int i = longval ();
36531 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36533 fprintf (f, "%ld\n", i);
36537 unsigned long int i = ulongval ();
36538 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36540 fprintf (f, "%lu\n", i);
36542 return ferror (f) || fclose (f) != 0;
36548 rm -f conftest$ac_exeext
36549 if { (ac_try="$ac_link"
36550 case "(($ac_try" in
36551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36552 *) ac_try_echo=$ac_try;;
36554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36555 (eval "$ac_link") 2>&5
36557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36559 { (case "(($ac_try" in
36560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36561 *) ac_try_echo=$ac_try;;
36563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36564 (eval "$ac_try") 2>&5
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); }; }; then
36568 ac_cv_sizeof_int_p=`cat conftest.val`
36570 echo "$as_me: program exited with status $ac_status" >&5
36571 echo "$as_me: failed program was:" >&5
36572 sed 's/^/| /' conftest.$ac_ext >&5
36574 ( exit $ac_status )
36575 if test "$ac_cv_type_int_p" = yes; then
36576 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36577 See \`config.log' for more details." >&5
36578 echo "$as_me: error: cannot compute sizeof (int *)
36579 See \`config.log' for more details." >&2;}
36580 { (exit 77); exit 77; }; }
36582 ac_cv_sizeof_int_p=0
36585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36589 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36590 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36594 cat >>confdefs.h <<_ACEOF
36595 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36600 { echo "$as_me:$LINENO: checking for u_int type" >&5
36601 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36602 if test "${ac_cv_have_u_int+set}" = set; then
36603 echo $ECHO_N "(cached) $ECHO_C" >&6
36606 cat >conftest.$ac_ext <<_ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h. */
36613 #include <sys/types.h>
36625 rm -f conftest.$ac_objext
36626 if { (ac_try="$ac_compile"
36627 case "(($ac_try" in
36628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36629 *) ac_try_echo=$ac_try;;
36631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36632 (eval "$ac_compile") 2>conftest.er1
36634 grep -v '^ *+' conftest.er1 >conftest.err
36636 cat conftest.err >&5
36637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638 (exit $ac_status); } && {
36639 test -z "$ac_c_werror_flag" ||
36640 test ! -s conftest.err
36641 } && test -s conftest.$ac_objext; then
36643 ac_cv_have_u_int="yes"
36646 echo "$as_me: failed program was:" >&5
36647 sed 's/^/| /' conftest.$ac_ext >&5
36650 ac_cv_have_u_int="no"
36655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36659 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36660 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36661 if test "x$ac_cv_have_u_int" = "xyes" ; then
36662 cat >>confdefs.h <<\_ACEOF
36663 #define HAVE_U_INT 1
36669 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36670 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36671 if test "${ac_cv_have_intmax_t+set}" = set; then
36672 echo $ECHO_N "(cached) $ECHO_C" >&6
36675 cat >conftest.$ac_ext <<_ACEOF
36678 cat confdefs.h >>conftest.$ac_ext
36679 cat >>conftest.$ac_ext <<_ACEOF
36680 /* end confdefs.h. */
36682 #include <sys/types.h>
36694 rm -f conftest.$ac_objext
36695 if { (ac_try="$ac_compile"
36696 case "(($ac_try" in
36697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36698 *) ac_try_echo=$ac_try;;
36700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36701 (eval "$ac_compile") 2>conftest.er1
36703 grep -v '^ *+' conftest.er1 >conftest.err
36705 cat conftest.err >&5
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); } && {
36708 test -z "$ac_c_werror_flag" ||
36709 test ! -s conftest.err
36710 } && test -s conftest.$ac_objext; then
36712 ac_cv_have_intmax_t="yes"
36715 echo "$as_me: failed program was:" >&5
36716 sed 's/^/| /' conftest.$ac_ext >&5
36719 cat >conftest.$ac_ext <<_ACEOF
36722 cat confdefs.h >>conftest.$ac_ext
36723 cat >>conftest.$ac_ext <<_ACEOF
36724 /* end confdefs.h. */
36726 #include <stdint.h>
36738 rm -f conftest.$ac_objext
36739 if { (ac_try="$ac_compile"
36740 case "(($ac_try" in
36741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36742 *) ac_try_echo=$ac_try;;
36744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36745 (eval "$ac_compile") 2>conftest.er1
36747 grep -v '^ *+' conftest.er1 >conftest.err
36749 cat conftest.err >&5
36750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36751 (exit $ac_status); } && {
36752 test -z "$ac_c_werror_flag" ||
36753 test ! -s conftest.err
36754 } && test -s conftest.$ac_objext; then
36756 ac_cv_have_intmax_t="yes"
36759 echo "$as_me: failed program was:" >&5
36760 sed 's/^/| /' conftest.$ac_ext >&5
36763 ac_cv_have_intmax_t="no"
36768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36777 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36778 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36779 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36780 cat >>confdefs.h <<\_ACEOF
36781 #define HAVE_INTMAX_T 1
36787 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36788 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36789 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36790 echo $ECHO_N "(cached) $ECHO_C" >&6
36793 cat >conftest.$ac_ext <<_ACEOF
36796 cat confdefs.h >>conftest.$ac_ext
36797 cat >>conftest.$ac_ext <<_ACEOF
36798 /* end confdefs.h. */
36800 #include <sys/types.h>
36806 u_intmax_t a; a = 1;
36812 rm -f conftest.$ac_objext
36813 if { (ac_try="$ac_compile"
36814 case "(($ac_try" in
36815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36816 *) ac_try_echo=$ac_try;;
36818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36819 (eval "$ac_compile") 2>conftest.er1
36821 grep -v '^ *+' conftest.er1 >conftest.err
36823 cat conftest.err >&5
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); } && {
36826 test -z "$ac_c_werror_flag" ||
36827 test ! -s conftest.err
36828 } && test -s conftest.$ac_objext; then
36830 ac_cv_have_u_intmax_t="yes"
36833 echo "$as_me: failed program was:" >&5
36834 sed 's/^/| /' conftest.$ac_ext >&5
36837 cat >conftest.$ac_ext <<_ACEOF
36840 cat confdefs.h >>conftest.$ac_ext
36841 cat >>conftest.$ac_ext <<_ACEOF
36842 /* end confdefs.h. */
36844 #include <stdint.h>
36850 u_intmax_t a; a = 1;
36856 rm -f conftest.$ac_objext
36857 if { (ac_try="$ac_compile"
36858 case "(($ac_try" in
36859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36860 *) ac_try_echo=$ac_try;;
36862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36863 (eval "$ac_compile") 2>conftest.er1
36865 grep -v '^ *+' conftest.er1 >conftest.err
36867 cat conftest.err >&5
36868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); } && {
36870 test -z "$ac_c_werror_flag" ||
36871 test ! -s conftest.err
36872 } && test -s conftest.$ac_objext; then
36874 ac_cv_have_u_intmax_t="yes"
36877 echo "$as_me: failed program was:" >&5
36878 sed 's/^/| /' conftest.$ac_ext >&5
36881 ac_cv_have_u_intmax_t="no"
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36895 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36896 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36897 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36898 cat >>confdefs.h <<\_ACEOF
36899 #define HAVE_U_INTMAX_T 1
36905 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36906 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36907 if test "${ac_cv_have_intxx_t+set}" = set; then
36908 echo $ECHO_N "(cached) $ECHO_C" >&6
36911 cat >conftest.$ac_ext <<_ACEOF
36914 cat confdefs.h >>conftest.$ac_ext
36915 cat >>conftest.$ac_ext <<_ACEOF
36916 /* end confdefs.h. */
36918 #include <sys/types.h>
36924 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36930 rm -f conftest.$ac_objext
36931 if { (ac_try="$ac_compile"
36932 case "(($ac_try" in
36933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36934 *) ac_try_echo=$ac_try;;
36936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36937 (eval "$ac_compile") 2>conftest.er1
36939 grep -v '^ *+' conftest.er1 >conftest.err
36941 cat conftest.err >&5
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); } && {
36944 test -z "$ac_c_werror_flag" ||
36945 test ! -s conftest.err
36946 } && test -s conftest.$ac_objext; then
36948 ac_cv_have_intxx_t="yes"
36951 echo "$as_me: failed program was:" >&5
36952 sed 's/^/| /' conftest.$ac_ext >&5
36955 ac_cv_have_intxx_t="no"
36960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36964 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36965 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36966 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36967 cat >>confdefs.h <<\_ACEOF
36968 #define HAVE_INTXX_T 1
36974 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36975 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36976 if test "${ac_cv_have_int64_t+set}" = set; then
36977 echo $ECHO_N "(cached) $ECHO_C" >&6
36980 cat >conftest.$ac_ext <<_ACEOF
36983 cat confdefs.h >>conftest.$ac_ext
36984 cat >>conftest.$ac_ext <<_ACEOF
36985 /* end confdefs.h. */
36987 #include <sys/types.h>
36999 rm -f conftest.$ac_objext
37000 if { (ac_try="$ac_compile"
37001 case "(($ac_try" in
37002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37003 *) ac_try_echo=$ac_try;;
37005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37006 (eval "$ac_compile") 2>conftest.er1
37008 grep -v '^ *+' conftest.er1 >conftest.err
37010 cat conftest.err >&5
37011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012 (exit $ac_status); } && {
37013 test -z "$ac_c_werror_flag" ||
37014 test ! -s conftest.err
37015 } && test -s conftest.$ac_objext; then
37017 ac_cv_have_int64_t="yes"
37020 echo "$as_me: failed program was:" >&5
37021 sed 's/^/| /' conftest.$ac_ext >&5
37024 ac_cv_have_int64_t="no"
37029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37033 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37034 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37035 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37036 cat >>confdefs.h <<\_ACEOF
37037 #define HAVE_INT64_T 1
37043 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37044 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37045 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37046 echo $ECHO_N "(cached) $ECHO_C" >&6
37049 cat >conftest.$ac_ext <<_ACEOF
37052 cat confdefs.h >>conftest.$ac_ext
37053 cat >>conftest.$ac_ext <<_ACEOF
37054 /* end confdefs.h. */
37056 #include <sys/types.h>
37062 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37068 rm -f conftest.$ac_objext
37069 if { (ac_try="$ac_compile"
37070 case "(($ac_try" in
37071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072 *) ac_try_echo=$ac_try;;
37074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37075 (eval "$ac_compile") 2>conftest.er1
37077 grep -v '^ *+' conftest.er1 >conftest.err
37079 cat conftest.err >&5
37080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); } && {
37082 test -z "$ac_c_werror_flag" ||
37083 test ! -s conftest.err
37084 } && test -s conftest.$ac_objext; then
37086 ac_cv_have_u_intxx_t="yes"
37089 echo "$as_me: failed program was:" >&5
37090 sed 's/^/| /' conftest.$ac_ext >&5
37093 ac_cv_have_u_intxx_t="no"
37098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37102 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37103 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37104 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37105 cat >>confdefs.h <<\_ACEOF
37106 #define HAVE_U_INTXX_T 1
37112 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37113 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37114 if test "${ac_cv_have_u_int64_t+set}" = set; then
37115 echo $ECHO_N "(cached) $ECHO_C" >&6
37118 cat >conftest.$ac_ext <<_ACEOF
37121 cat confdefs.h >>conftest.$ac_ext
37122 cat >>conftest.$ac_ext <<_ACEOF
37123 /* end confdefs.h. */
37125 #include <sys/types.h>
37131 u_int64_t a; a = 1;
37137 rm -f conftest.$ac_objext
37138 if { (ac_try="$ac_compile"
37139 case "(($ac_try" in
37140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37141 *) ac_try_echo=$ac_try;;
37143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37144 (eval "$ac_compile") 2>conftest.er1
37146 grep -v '^ *+' conftest.er1 >conftest.err
37148 cat conftest.err >&5
37149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150 (exit $ac_status); } && {
37151 test -z "$ac_c_werror_flag" ||
37152 test ! -s conftest.err
37153 } && test -s conftest.$ac_objext; then
37155 ac_cv_have_u_int64_t="yes"
37158 echo "$as_me: failed program was:" >&5
37159 sed 's/^/| /' conftest.$ac_ext >&5
37162 ac_cv_have_u_int64_t="no"
37167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37171 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37172 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37173 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37174 cat >>confdefs.h <<\_ACEOF
37175 #define HAVE_U_INT64_T 1
37181 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37182 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37184 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37185 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37186 cat >conftest.$ac_ext <<_ACEOF
37189 cat confdefs.h >>conftest.$ac_ext
37190 cat >>conftest.$ac_ext <<_ACEOF
37191 /* end confdefs.h. */
37193 #include <sys/bitypes.h>
37199 int8_t a; int16_t b; int32_t c;
37200 u_int8_t e; u_int16_t f; u_int32_t g;
37201 a = b = c = e = f = g = 1;
37207 rm -f conftest.$ac_objext
37208 if { (ac_try="$ac_compile"
37209 case "(($ac_try" in
37210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37211 *) ac_try_echo=$ac_try;;
37213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37214 (eval "$ac_compile") 2>conftest.er1
37216 grep -v '^ *+' conftest.er1 >conftest.err
37218 cat conftest.err >&5
37219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220 (exit $ac_status); } && {
37221 test -z "$ac_c_werror_flag" ||
37222 test ! -s conftest.err
37223 } && test -s conftest.$ac_objext; then
37225 cat >>confdefs.h <<\_ACEOF
37226 #define HAVE_U_INTXX_T 1
37229 cat >>confdefs.h <<\_ACEOF
37230 #define HAVE_INTXX_T 1
37233 cat >>confdefs.h <<\_ACEOF
37234 #define HAVE_SYS_BITYPES_H 1
37237 { echo "$as_me:$LINENO: result: yes" >&5
37238 echo "${ECHO_T}yes" >&6; }
37241 echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37245 { echo "$as_me:$LINENO: result: no" >&5
37246 echo "${ECHO_T}no" >&6; }
37251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37254 if test -z "$have_u_intxx_t" ; then
37255 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37256 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37257 if test "${ac_cv_have_uintxx_t+set}" = set; then
37258 echo $ECHO_N "(cached) $ECHO_C" >&6
37261 cat >conftest.$ac_ext <<_ACEOF
37264 cat confdefs.h >>conftest.$ac_ext
37265 cat >>conftest.$ac_ext <<_ACEOF
37266 /* end confdefs.h. */
37268 #include <sys/types.h>
37274 uint8_t a; uint16_t b;
37275 uint32_t c; a = b = c = 1;
37281 rm -f conftest.$ac_objext
37282 if { (ac_try="$ac_compile"
37283 case "(($ac_try" in
37284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37285 *) ac_try_echo=$ac_try;;
37287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37288 (eval "$ac_compile") 2>conftest.er1
37290 grep -v '^ *+' conftest.er1 >conftest.err
37292 cat conftest.err >&5
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); } && {
37295 test -z "$ac_c_werror_flag" ||
37296 test ! -s conftest.err
37297 } && test -s conftest.$ac_objext; then
37299 ac_cv_have_uintxx_t="yes"
37302 echo "$as_me: failed program was:" >&5
37303 sed 's/^/| /' conftest.$ac_ext >&5
37306 ac_cv_have_uintxx_t="no"
37311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37315 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37316 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37317 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37318 cat >>confdefs.h <<\_ACEOF
37319 #define HAVE_UINTXX_T 1
37325 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37326 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37328 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37329 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37330 cat >conftest.$ac_ext <<_ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h. */
37337 #include <sys/bitypes.h>
37343 int64_t a; u_int64_t b;
37350 rm -f conftest.$ac_objext
37351 if { (ac_try="$ac_compile"
37352 case "(($ac_try" in
37353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37354 *) ac_try_echo=$ac_try;;
37356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37357 (eval "$ac_compile") 2>conftest.er1
37359 grep -v '^ *+' conftest.er1 >conftest.err
37361 cat conftest.err >&5
37362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37363 (exit $ac_status); } && {
37364 test -z "$ac_c_werror_flag" ||
37365 test ! -s conftest.err
37366 } && test -s conftest.$ac_objext; then
37368 cat >>confdefs.h <<\_ACEOF
37369 #define HAVE_U_INT64_T 1
37372 cat >>confdefs.h <<\_ACEOF
37373 #define HAVE_INT64_T 1
37376 { echo "$as_me:$LINENO: result: yes" >&5
37377 echo "${ECHO_T}yes" >&6; }
37380 echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37384 { echo "$as_me:$LINENO: result: no" >&5
37385 echo "${ECHO_T}no" >&6; }
37390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37393 if (test -z "$have_uintxx_t" && \
37394 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37396 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37397 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37398 cat >conftest.$ac_ext <<_ACEOF
37401 cat confdefs.h >>conftest.$ac_ext
37402 cat >>conftest.$ac_ext <<_ACEOF
37403 /* end confdefs.h. */
37405 #include <sys/bitypes.h>
37411 uint8_t a; uint16_t b;
37412 uint32_t c; a = b = c = 1;
37418 rm -f conftest.$ac_objext
37419 if { (ac_try="$ac_compile"
37420 case "(($ac_try" in
37421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37422 *) ac_try_echo=$ac_try;;
37424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37425 (eval "$ac_compile") 2>conftest.er1
37427 grep -v '^ *+' conftest.er1 >conftest.err
37429 cat conftest.err >&5
37430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431 (exit $ac_status); } && {
37432 test -z "$ac_c_werror_flag" ||
37433 test ! -s conftest.err
37434 } && test -s conftest.$ac_objext; then
37436 cat >>confdefs.h <<\_ACEOF
37437 #define HAVE_UINTXX_T 1
37440 { echo "$as_me:$LINENO: result: yes" >&5
37441 echo "${ECHO_T}yes" >&6; }
37444 echo "$as_me: failed program was:" >&5
37445 sed 's/^/| /' conftest.$ac_ext >&5
37448 { echo "$as_me:$LINENO: result: no" >&5
37449 echo "${ECHO_T}no" >&6; }
37454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37490 echo $ECHO_N "(cached) $ECHO_C" >&6
37492 cat >conftest.$ac_ext <<_ACEOF
37495 cat confdefs.h >>conftest.$ac_ext
37496 cat >>conftest.$ac_ext <<_ACEOF
37497 /* end confdefs.h. */
37498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37500 #define $ac_func innocuous_$ac_func
37502 /* System header to define __stub macros and hopefully few prototypes,
37503 which can conflict with char $ac_func (); below.
37504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37505 <limits.h> exists even on freestanding compilers. */
37508 # include <limits.h>
37510 # include <assert.h>
37515 /* Override any GCC internal prototype to avoid an error.
37516 Use char because int might match the return type of a GCC
37517 builtin and then its argument prototype would still apply. */
37522 /* The GNU C library defines this for functions which it implements
37523 to always fail with ENOSYS. Some functions are actually named
37524 something starting with __ and the normal name is an alias. */
37525 #if defined __stub_$ac_func || defined __stub___$ac_func
37532 return $ac_func ();
37537 rm -f conftest.$ac_objext conftest$ac_exeext
37538 if { (ac_try="$ac_link"
37539 case "(($ac_try" in
37540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37541 *) ac_try_echo=$ac_try;;
37543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37544 (eval "$ac_link") 2>conftest.er1
37546 grep -v '^ *+' conftest.er1 >conftest.err
37548 cat conftest.err >&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); } && {
37551 test -z "$ac_c_werror_flag" ||
37552 test ! -s conftest.err
37553 } && test -s conftest$ac_exeext &&
37554 $as_test_x conftest$ac_exeext; then
37555 eval "$as_ac_var=yes"
37557 echo "$as_me: failed program was:" >&5
37558 sed 's/^/| /' conftest.$ac_ext >&5
37560 eval "$as_ac_var=no"
37563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37564 conftest$ac_exeext conftest.$ac_ext
37566 ac_res=`eval echo '${'$as_ac_var'}'`
37567 { echo "$as_me:$LINENO: result: $ac_res" >&5
37568 echo "${ECHO_T}$ac_res" >&6; }
37569 if test `eval echo '${'$as_ac_var'}'` = yes; then
37570 cat >>confdefs.h <<_ACEOF
37571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37575 echo 'configure: cannot find needed function.'; exit 1
37582 for ac_func in fchdir
37584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37588 echo $ECHO_N "(cached) $ECHO_C" >&6
37590 cat >conftest.$ac_ext <<_ACEOF
37593 cat confdefs.h >>conftest.$ac_ext
37594 cat >>conftest.$ac_ext <<_ACEOF
37595 /* end confdefs.h. */
37596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37598 #define $ac_func innocuous_$ac_func
37600 /* System header to define __stub macros and hopefully few prototypes,
37601 which can conflict with char $ac_func (); below.
37602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37603 <limits.h> exists even on freestanding compilers. */
37606 # include <limits.h>
37608 # include <assert.h>
37613 /* Override any GCC internal prototype to avoid an error.
37614 Use char because int might match the return type of a GCC
37615 builtin and then its argument prototype would still apply. */
37620 /* The GNU C library defines this for functions which it implements
37621 to always fail with ENOSYS. Some functions are actually named
37622 something starting with __ and the normal name is an alias. */
37623 #if defined __stub_$ac_func || defined __stub___$ac_func
37630 return $ac_func ();
37635 rm -f conftest.$ac_objext conftest$ac_exeext
37636 if { (ac_try="$ac_link"
37637 case "(($ac_try" in
37638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37639 *) ac_try_echo=$ac_try;;
37641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37642 (eval "$ac_link") 2>conftest.er1
37644 grep -v '^ *+' conftest.er1 >conftest.err
37646 cat conftest.err >&5
37647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648 (exit $ac_status); } && {
37649 test -z "$ac_c_werror_flag" ||
37650 test ! -s conftest.err
37651 } && test -s conftest$ac_exeext &&
37652 $as_test_x conftest$ac_exeext; then
37653 eval "$as_ac_var=yes"
37655 echo "$as_me: failed program was:" >&5
37656 sed 's/^/| /' conftest.$ac_ext >&5
37658 eval "$as_ac_var=no"
37661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37662 conftest$ac_exeext conftest.$ac_ext
37664 ac_res=`eval echo '${'$as_ac_var'}'`
37665 { echo "$as_me:$LINENO: result: $ac_res" >&5
37666 echo "${ECHO_T}$ac_res" >&6; }
37667 if test `eval echo '${'$as_ac_var'}'` = yes; then
37668 cat >>confdefs.h <<_ACEOF
37669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37671 cat >>confdefs.h <<\_ACEOF
37672 #define HAVE_FCHDIR 1
37679 for ac_func in strtoll
37681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37685 echo $ECHO_N "(cached) $ECHO_C" >&6
37687 cat >conftest.$ac_ext <<_ACEOF
37690 cat confdefs.h >>conftest.$ac_ext
37691 cat >>conftest.$ac_ext <<_ACEOF
37692 /* end confdefs.h. */
37693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37695 #define $ac_func innocuous_$ac_func
37697 /* System header to define __stub macros and hopefully few prototypes,
37698 which can conflict with char $ac_func (); below.
37699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37700 <limits.h> exists even on freestanding compilers. */
37703 # include <limits.h>
37705 # include <assert.h>
37710 /* Override any GCC internal prototype to avoid an error.
37711 Use char because int might match the return type of a GCC
37712 builtin and then its argument prototype would still apply. */
37717 /* The GNU C library defines this for functions which it implements
37718 to always fail with ENOSYS. Some functions are actually named
37719 something starting with __ and the normal name is an alias. */
37720 #if defined __stub_$ac_func || defined __stub___$ac_func
37727 return $ac_func ();
37732 rm -f conftest.$ac_objext conftest$ac_exeext
37733 if { (ac_try="$ac_link"
37734 case "(($ac_try" in
37735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37736 *) ac_try_echo=$ac_try;;
37738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37739 (eval "$ac_link") 2>conftest.er1
37741 grep -v '^ *+' conftest.er1 >conftest.err
37743 cat conftest.err >&5
37744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745 (exit $ac_status); } && {
37746 test -z "$ac_c_werror_flag" ||
37747 test ! -s conftest.err
37748 } && test -s conftest$ac_exeext &&
37749 $as_test_x conftest$ac_exeext; then
37750 eval "$as_ac_var=yes"
37752 echo "$as_me: failed program was:" >&5
37753 sed 's/^/| /' conftest.$ac_ext >&5
37755 eval "$as_ac_var=no"
37758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37759 conftest$ac_exeext conftest.$ac_ext
37761 ac_res=`eval echo '${'$as_ac_var'}'`
37762 { echo "$as_me:$LINENO: result: $ac_res" >&5
37763 echo "${ECHO_T}$ac_res" >&6; }
37764 if test `eval echo '${'$as_ac_var'}'` = yes; then
37765 cat >>confdefs.h <<_ACEOF
37766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37768 cat >>confdefs.h <<\_ACEOF
37769 #define HAVE_STRTOLL 1
37776 for ac_func in posix_fadvise
37778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37782 echo $ECHO_N "(cached) $ECHO_C" >&6
37784 cat >conftest.$ac_ext <<_ACEOF
37787 cat confdefs.h >>conftest.$ac_ext
37788 cat >>conftest.$ac_ext <<_ACEOF
37789 /* end confdefs.h. */
37790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37792 #define $ac_func innocuous_$ac_func
37794 /* System header to define __stub macros and hopefully few prototypes,
37795 which can conflict with char $ac_func (); below.
37796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37797 <limits.h> exists even on freestanding compilers. */
37800 # include <limits.h>
37802 # include <assert.h>
37807 /* Override any GCC internal prototype to avoid an error.
37808 Use char because int might match the return type of a GCC
37809 builtin and then its argument prototype would still apply. */
37814 /* The GNU C library defines this for functions which it implements
37815 to always fail with ENOSYS. Some functions are actually named
37816 something starting with __ and the normal name is an alias. */
37817 #if defined __stub_$ac_func || defined __stub___$ac_func
37824 return $ac_func ();
37829 rm -f conftest.$ac_objext conftest$ac_exeext
37830 if { (ac_try="$ac_link"
37831 case "(($ac_try" in
37832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37833 *) ac_try_echo=$ac_try;;
37835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37836 (eval "$ac_link") 2>conftest.er1
37838 grep -v '^ *+' conftest.er1 >conftest.err
37840 cat conftest.err >&5
37841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37842 (exit $ac_status); } && {
37843 test -z "$ac_c_werror_flag" ||
37844 test ! -s conftest.err
37845 } && test -s conftest$ac_exeext &&
37846 $as_test_x conftest$ac_exeext; then
37847 eval "$as_ac_var=yes"
37849 echo "$as_me: failed program was:" >&5
37850 sed 's/^/| /' conftest.$ac_ext >&5
37852 eval "$as_ac_var=no"
37855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37856 conftest$ac_exeext conftest.$ac_ext
37858 ac_res=`eval echo '${'$as_ac_var'}'`
37859 { echo "$as_me:$LINENO: result: $ac_res" >&5
37860 echo "${ECHO_T}$ac_res" >&6; }
37861 if test `eval echo '${'$as_ac_var'}'` = yes; then
37862 cat >>confdefs.h <<_ACEOF
37863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37870 for ac_func in fdatasync
37872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37876 echo $ECHO_N "(cached) $ECHO_C" >&6
37878 cat >conftest.$ac_ext <<_ACEOF
37881 cat confdefs.h >>conftest.$ac_ext
37882 cat >>conftest.$ac_ext <<_ACEOF
37883 /* end confdefs.h. */
37884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37886 #define $ac_func innocuous_$ac_func
37888 /* System header to define __stub macros and hopefully few prototypes,
37889 which can conflict with char $ac_func (); below.
37890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37891 <limits.h> exists even on freestanding compilers. */
37894 # include <limits.h>
37896 # include <assert.h>
37901 /* Override any GCC internal prototype to avoid an error.
37902 Use char because int might match the return type of a GCC
37903 builtin and then its argument prototype would still apply. */
37908 /* The GNU C library defines this for functions which it implements
37909 to always fail with ENOSYS. Some functions are actually named
37910 something starting with __ and the normal name is an alias. */
37911 #if defined __stub_$ac_func || defined __stub___$ac_func
37918 return $ac_func ();
37923 rm -f conftest.$ac_objext conftest$ac_exeext
37924 if { (ac_try="$ac_link"
37925 case "(($ac_try" in
37926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37927 *) ac_try_echo=$ac_try;;
37929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37930 (eval "$ac_link") 2>conftest.er1
37932 grep -v '^ *+' conftest.er1 >conftest.err
37934 cat conftest.err >&5
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); } && {
37937 test -z "$ac_c_werror_flag" ||
37938 test ! -s conftest.err
37939 } && test -s conftest$ac_exeext &&
37940 $as_test_x conftest$ac_exeext; then
37941 eval "$as_ac_var=yes"
37943 echo "$as_me: failed program was:" >&5
37944 sed 's/^/| /' conftest.$ac_ext >&5
37946 eval "$as_ac_var=no"
37949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37950 conftest$ac_exeext conftest.$ac_ext
37952 ac_res=`eval echo '${'$as_ac_var'}'`
37953 { echo "$as_me:$LINENO: result: $ac_res" >&5
37954 echo "${ECHO_T}$ac_res" >&6; }
37955 if test `eval echo '${'$as_ac_var'}'` = yes; then
37956 cat >>confdefs.h <<_ACEOF
37957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37965 for ac_func in chflags
37967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37971 echo $ECHO_N "(cached) $ECHO_C" >&6
37973 cat >conftest.$ac_ext <<_ACEOF
37976 cat confdefs.h >>conftest.$ac_ext
37977 cat >>conftest.$ac_ext <<_ACEOF
37978 /* end confdefs.h. */
37979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37981 #define $ac_func innocuous_$ac_func
37983 /* System header to define __stub macros and hopefully few prototypes,
37984 which can conflict with char $ac_func (); below.
37985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37986 <limits.h> exists even on freestanding compilers. */
37989 # include <limits.h>
37991 # include <assert.h>
37996 /* Override any GCC internal prototype to avoid an error.
37997 Use char because int might match the return type of a GCC
37998 builtin and then its argument prototype would still apply. */
38003 /* The GNU C library defines this for functions which it implements
38004 to always fail with ENOSYS. Some functions are actually named
38005 something starting with __ and the normal name is an alias. */
38006 #if defined __stub_$ac_func || defined __stub___$ac_func
38013 return $ac_func ();
38018 rm -f conftest.$ac_objext conftest$ac_exeext
38019 if { (ac_try="$ac_link"
38020 case "(($ac_try" in
38021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38022 *) ac_try_echo=$ac_try;;
38024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38025 (eval "$ac_link") 2>conftest.er1
38027 grep -v '^ *+' conftest.er1 >conftest.err
38029 cat conftest.err >&5
38030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38031 (exit $ac_status); } && {
38032 test -z "$ac_c_werror_flag" ||
38033 test ! -s conftest.err
38034 } && test -s conftest$ac_exeext &&
38035 $as_test_x conftest$ac_exeext; then
38036 eval "$as_ac_var=yes"
38038 echo "$as_me: failed program was:" >&5
38039 sed 's/^/| /' conftest.$ac_ext >&5
38041 eval "$as_ac_var=no"
38044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38045 conftest$ac_exeext conftest.$ac_ext
38047 ac_res=`eval echo '${'$as_ac_var'}'`
38048 { echo "$as_me:$LINENO: result: $ac_res" >&5
38049 echo "${ECHO_T}$ac_res" >&6; }
38050 if test `eval echo '${'$as_ac_var'}'` = yes; then
38051 cat >>confdefs.h <<_ACEOF
38052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38063 for ac_func in snprintf vsnprintf gethostid fseeko
38065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38069 echo $ECHO_N "(cached) $ECHO_C" >&6
38071 cat >conftest.$ac_ext <<_ACEOF
38074 cat confdefs.h >>conftest.$ac_ext
38075 cat >>conftest.$ac_ext <<_ACEOF
38076 /* end confdefs.h. */
38077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38079 #define $ac_func innocuous_$ac_func
38081 /* System header to define __stub macros and hopefully few prototypes,
38082 which can conflict with char $ac_func (); below.
38083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38084 <limits.h> exists even on freestanding compilers. */
38087 # include <limits.h>
38089 # include <assert.h>
38094 /* Override any GCC internal prototype to avoid an error.
38095 Use char because int might match the return type of a GCC
38096 builtin and then its argument prototype would still apply. */
38101 /* The GNU C library defines this for functions which it implements
38102 to always fail with ENOSYS. Some functions are actually named
38103 something starting with __ and the normal name is an alias. */
38104 #if defined __stub_$ac_func || defined __stub___$ac_func
38111 return $ac_func ();
38116 rm -f conftest.$ac_objext conftest$ac_exeext
38117 if { (ac_try="$ac_link"
38118 case "(($ac_try" in
38119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38120 *) ac_try_echo=$ac_try;;
38122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38123 (eval "$ac_link") 2>conftest.er1
38125 grep -v '^ *+' conftest.er1 >conftest.err
38127 cat conftest.err >&5
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); } && {
38130 test -z "$ac_c_werror_flag" ||
38131 test ! -s conftest.err
38132 } && test -s conftest$ac_exeext &&
38133 $as_test_x conftest$ac_exeext; then
38134 eval "$as_ac_var=yes"
38136 echo "$as_me: failed program was:" >&5
38137 sed 's/^/| /' conftest.$ac_ext >&5
38139 eval "$as_ac_var=no"
38142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38143 conftest$ac_exeext conftest.$ac_ext
38145 ac_res=`eval echo '${'$as_ac_var'}'`
38146 { echo "$as_me:$LINENO: result: $ac_res" >&5
38147 echo "${ECHO_T}$ac_res" >&6; }
38148 if test `eval echo '${'$as_ac_var'}'` = yes; then
38149 cat >>confdefs.h <<_ACEOF
38150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38157 { echo "$as_me:$LINENO: checking for va_copy" >&5
38158 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38159 if test "${ba_cv_va_copy+set}" = set; then
38160 echo $ECHO_N "(cached) $ECHO_C" >&6
38163 cat >conftest.$ac_ext <<_ACEOF
38166 cat confdefs.h >>conftest.$ac_ext
38167 cat >>conftest.$ac_ext <<_ACEOF
38168 /* end confdefs.h. */
38170 #include <stdarg.h>
38171 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38172 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38178 call_use_va_copy(1,2,3)
38184 rm -f conftest.$ac_objext conftest$ac_exeext
38185 if { (ac_try="$ac_link"
38186 case "(($ac_try" in
38187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38188 *) ac_try_echo=$ac_try;;
38190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38191 (eval "$ac_link") 2>conftest.er1
38193 grep -v '^ *+' conftest.er1 >conftest.err
38195 cat conftest.err >&5
38196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197 (exit $ac_status); } && {
38198 test -z "$ac_c_werror_flag" ||
38199 test ! -s conftest.err
38200 } && test -s conftest$ac_exeext &&
38201 $as_test_x conftest$ac_exeext; then
38206 echo "$as_me: failed program was:" >&5
38207 sed 's/^/| /' conftest.$ac_ext >&5
38215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38216 conftest$ac_exeext conftest.$ac_ext
38220 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38221 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38222 test $ba_cv_va_copy = yes &&
38223 cat >>confdefs.h <<\_ACEOF
38224 #define HAVE_VA_COPY 1
38232 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38238 echo $ECHO_N "(cached) $ECHO_C" >&6
38240 cat >conftest.$ac_ext <<_ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h. */
38246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38248 #define $ac_func innocuous_$ac_func
38250 /* System header to define __stub macros and hopefully few prototypes,
38251 which can conflict with char $ac_func (); below.
38252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38253 <limits.h> exists even on freestanding compilers. */
38256 # include <limits.h>
38258 # include <assert.h>
38263 /* Override any GCC internal prototype to avoid an error.
38264 Use char because int might match the return type of a GCC
38265 builtin and then its argument prototype would still apply. */
38270 /* The GNU C library defines this for functions which it implements
38271 to always fail with ENOSYS. Some functions are actually named
38272 something starting with __ and the normal name is an alias. */
38273 #if defined __stub_$ac_func || defined __stub___$ac_func
38280 return $ac_func ();
38285 rm -f conftest.$ac_objext conftest$ac_exeext
38286 if { (ac_try="$ac_link"
38287 case "(($ac_try" in
38288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38289 *) ac_try_echo=$ac_try;;
38291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38292 (eval "$ac_link") 2>conftest.er1
38294 grep -v '^ *+' conftest.er1 >conftest.err
38296 cat conftest.err >&5
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); } && {
38299 test -z "$ac_c_werror_flag" ||
38300 test ! -s conftest.err
38301 } && test -s conftest$ac_exeext &&
38302 $as_test_x conftest$ac_exeext; then
38303 eval "$as_ac_var=yes"
38305 echo "$as_me: failed program was:" >&5
38306 sed 's/^/| /' conftest.$ac_ext >&5
38308 eval "$as_ac_var=no"
38311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38312 conftest$ac_exeext conftest.$ac_ext
38314 ac_res=`eval echo '${'$as_ac_var'}'`
38315 { echo "$as_me:$LINENO: result: $ac_res" >&5
38316 echo "${ECHO_T}$ac_res" >&6; }
38317 if test `eval echo '${'$as_ac_var'}'` = yes; then
38318 cat >>confdefs.h <<_ACEOF
38319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38326 # If resolver functions are not in libc check for -lnsl or -lresolv.
38327 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38328 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38329 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38330 echo $ECHO_N "(cached) $ECHO_C" >&6
38332 cat >conftest.$ac_ext <<_ACEOF
38335 cat confdefs.h >>conftest.$ac_ext
38336 cat >>conftest.$ac_ext <<_ACEOF
38337 /* end confdefs.h. */
38338 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38340 #define gethostbyname_r innocuous_gethostbyname_r
38342 /* System header to define __stub macros and hopefully few prototypes,
38343 which can conflict with char gethostbyname_r (); below.
38344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38345 <limits.h> exists even on freestanding compilers. */
38348 # include <limits.h>
38350 # include <assert.h>
38353 #undef gethostbyname_r
38355 /* Override any GCC internal prototype to avoid an error.
38356 Use char because int might match the return type of a GCC
38357 builtin and then its argument prototype would still apply. */
38361 char gethostbyname_r ();
38362 /* The GNU C library defines this for functions which it implements
38363 to always fail with ENOSYS. Some functions are actually named
38364 something starting with __ and the normal name is an alias. */
38365 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38372 return gethostbyname_r ();
38377 rm -f conftest.$ac_objext conftest$ac_exeext
38378 if { (ac_try="$ac_link"
38379 case "(($ac_try" in
38380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38381 *) ac_try_echo=$ac_try;;
38383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38384 (eval "$ac_link") 2>conftest.er1
38386 grep -v '^ *+' conftest.er1 >conftest.err
38388 cat conftest.err >&5
38389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38390 (exit $ac_status); } && {
38391 test -z "$ac_c_werror_flag" ||
38392 test ! -s conftest.err
38393 } && test -s conftest$ac_exeext &&
38394 $as_test_x conftest$ac_exeext; then
38395 ac_cv_func_gethostbyname_r=yes
38397 echo "$as_me: failed program was:" >&5
38398 sed 's/^/| /' conftest.$ac_ext >&5
38400 ac_cv_func_gethostbyname_r=no
38403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38404 conftest$ac_exeext conftest.$ac_ext
38406 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38407 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38408 if test $ac_cv_func_gethostbyname_r = yes; then
38409 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38410 echo "${ECHO_T}using libc's resolver" >&6; }
38413 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38414 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38415 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38416 echo $ECHO_N "(cached) $ECHO_C" >&6
38418 ac_check_lib_save_LIBS=$LIBS
38420 cat >conftest.$ac_ext <<_ACEOF
38423 cat confdefs.h >>conftest.$ac_ext
38424 cat >>conftest.$ac_ext <<_ACEOF
38425 /* end confdefs.h. */
38427 /* Override any GCC internal prototype to avoid an error.
38428 Use char because int might match the return type of a GCC
38429 builtin and then its argument prototype would still apply. */
38433 char gethostbyname_r ();
38437 return gethostbyname_r ();
38442 rm -f conftest.$ac_objext conftest$ac_exeext
38443 if { (ac_try="$ac_link"
38444 case "(($ac_try" in
38445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38446 *) ac_try_echo=$ac_try;;
38448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38449 (eval "$ac_link") 2>conftest.er1
38451 grep -v '^ *+' conftest.er1 >conftest.err
38453 cat conftest.err >&5
38454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455 (exit $ac_status); } && {
38456 test -z "$ac_c_werror_flag" ||
38457 test ! -s conftest.err
38458 } && test -s conftest$ac_exeext &&
38459 $as_test_x conftest$ac_exeext; then
38460 ac_cv_lib_nsl_gethostbyname_r=yes
38462 echo "$as_me: failed program was:" >&5
38463 sed 's/^/| /' conftest.$ac_ext >&5
38465 ac_cv_lib_nsl_gethostbyname_r=no
38468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38469 conftest$ac_exeext conftest.$ac_ext
38470 LIBS=$ac_check_lib_save_LIBS
38472 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38473 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38474 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38475 cat >>confdefs.h <<_ACEOF
38476 #define HAVE_LIBNSL 1
38484 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38485 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38486 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38487 echo $ECHO_N "(cached) $ECHO_C" >&6
38489 ac_check_lib_save_LIBS=$LIBS
38490 LIBS="-lresolv $LIBS"
38491 cat >conftest.$ac_ext <<_ACEOF
38494 cat confdefs.h >>conftest.$ac_ext
38495 cat >>conftest.$ac_ext <<_ACEOF
38496 /* end confdefs.h. */
38498 /* Override any GCC internal prototype to avoid an error.
38499 Use char because int might match the return type of a GCC
38500 builtin and then its argument prototype would still apply. */
38504 char gethostbyname_r ();
38508 return gethostbyname_r ();
38513 rm -f conftest.$ac_objext conftest$ac_exeext
38514 if { (ac_try="$ac_link"
38515 case "(($ac_try" in
38516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38517 *) ac_try_echo=$ac_try;;
38519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38520 (eval "$ac_link") 2>conftest.er1
38522 grep -v '^ *+' conftest.er1 >conftest.err
38524 cat conftest.err >&5
38525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38526 (exit $ac_status); } && {
38527 test -z "$ac_c_werror_flag" ||
38528 test ! -s conftest.err
38529 } && test -s conftest$ac_exeext &&
38530 $as_test_x conftest$ac_exeext; then
38531 ac_cv_lib_resolv_gethostbyname_r=yes
38533 echo "$as_me: failed program was:" >&5
38534 sed 's/^/| /' conftest.$ac_ext >&5
38536 ac_cv_lib_resolv_gethostbyname_r=no
38539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38540 conftest$ac_exeext conftest.$ac_ext
38541 LIBS=$ac_check_lib_save_LIBS
38543 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38544 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38545 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38546 cat >>confdefs.h <<_ACEOF
38547 #define HAVE_LIBRESOLV 1
38550 LIBS="-lresolv $LIBS"
38558 for ac_func in inet_pton
38560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38564 echo $ECHO_N "(cached) $ECHO_C" >&6
38566 cat >conftest.$ac_ext <<_ACEOF
38569 cat confdefs.h >>conftest.$ac_ext
38570 cat >>conftest.$ac_ext <<_ACEOF
38571 /* end confdefs.h. */
38572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38574 #define $ac_func innocuous_$ac_func
38576 /* System header to define __stub macros and hopefully few prototypes,
38577 which can conflict with char $ac_func (); below.
38578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38579 <limits.h> exists even on freestanding compilers. */
38582 # include <limits.h>
38584 # include <assert.h>
38589 /* Override any GCC internal prototype to avoid an error.
38590 Use char because int might match the return type of a GCC
38591 builtin and then its argument prototype would still apply. */
38596 /* The GNU C library defines this for functions which it implements
38597 to always fail with ENOSYS. Some functions are actually named
38598 something starting with __ and the normal name is an alias. */
38599 #if defined __stub_$ac_func || defined __stub___$ac_func
38606 return $ac_func ();
38611 rm -f conftest.$ac_objext conftest$ac_exeext
38612 if { (ac_try="$ac_link"
38613 case "(($ac_try" in
38614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38615 *) ac_try_echo=$ac_try;;
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618 (eval "$ac_link") 2>conftest.er1
38620 grep -v '^ *+' conftest.er1 >conftest.err
38622 cat conftest.err >&5
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); } && {
38625 test -z "$ac_c_werror_flag" ||
38626 test ! -s conftest.err
38627 } && test -s conftest$ac_exeext &&
38628 $as_test_x conftest$ac_exeext; then
38629 eval "$as_ac_var=yes"
38631 echo "$as_me: failed program was:" >&5
38632 sed 's/^/| /' conftest.$ac_ext >&5
38634 eval "$as_ac_var=no"
38637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38638 conftest$ac_exeext conftest.$ac_ext
38640 ac_res=`eval echo '${'$as_ac_var'}'`
38641 { echo "$as_me:$LINENO: result: $ac_res" >&5
38642 echo "${ECHO_T}$ac_res" >&6; }
38643 if test `eval echo '${'$as_ac_var'}'` = yes; then
38644 cat >>confdefs.h <<_ACEOF
38645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38647 cat >>confdefs.h <<\_ACEOF
38648 #define HAVE_INET_PTON 1
38655 for ac_func in inet_ntop
38657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38661 echo $ECHO_N "(cached) $ECHO_C" >&6
38663 cat >conftest.$ac_ext <<_ACEOF
38666 cat confdefs.h >>conftest.$ac_ext
38667 cat >>conftest.$ac_ext <<_ACEOF
38668 /* end confdefs.h. */
38669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38671 #define $ac_func innocuous_$ac_func
38673 /* System header to define __stub macros and hopefully few prototypes,
38674 which can conflict with char $ac_func (); below.
38675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38676 <limits.h> exists even on freestanding compilers. */
38679 # include <limits.h>
38681 # include <assert.h>
38686 /* Override any GCC internal prototype to avoid an error.
38687 Use char because int might match the return type of a GCC
38688 builtin and then its argument prototype would still apply. */
38693 /* The GNU C library defines this for functions which it implements
38694 to always fail with ENOSYS. Some functions are actually named
38695 something starting with __ and the normal name is an alias. */
38696 #if defined __stub_$ac_func || defined __stub___$ac_func
38703 return $ac_func ();
38708 rm -f conftest.$ac_objext conftest$ac_exeext
38709 if { (ac_try="$ac_link"
38710 case "(($ac_try" in
38711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38712 *) ac_try_echo=$ac_try;;
38714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38715 (eval "$ac_link") 2>conftest.er1
38717 grep -v '^ *+' conftest.er1 >conftest.err
38719 cat conftest.err >&5
38720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38721 (exit $ac_status); } && {
38722 test -z "$ac_c_werror_flag" ||
38723 test ! -s conftest.err
38724 } && test -s conftest$ac_exeext &&
38725 $as_test_x conftest$ac_exeext; then
38726 eval "$as_ac_var=yes"
38728 echo "$as_me: failed program was:" >&5
38729 sed 's/^/| /' conftest.$ac_ext >&5
38731 eval "$as_ac_var=no"
38734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38735 conftest$ac_exeext conftest.$ac_ext
38737 ac_res=`eval echo '${'$as_ac_var'}'`
38738 { echo "$as_me:$LINENO: result: $ac_res" >&5
38739 echo "${ECHO_T}$ac_res" >&6; }
38740 if test `eval echo '${'$as_ac_var'}'` = yes; then
38741 cat >>confdefs.h <<_ACEOF
38742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38744 cat >>confdefs.h <<\_ACEOF
38745 #define HAVE_INET_NTOP 1
38752 for ac_func in gethostbyname2
38754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38758 echo $ECHO_N "(cached) $ECHO_C" >&6
38760 cat >conftest.$ac_ext <<_ACEOF
38763 cat confdefs.h >>conftest.$ac_ext
38764 cat >>conftest.$ac_ext <<_ACEOF
38765 /* end confdefs.h. */
38766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38768 #define $ac_func innocuous_$ac_func
38770 /* System header to define __stub macros and hopefully few prototypes,
38771 which can conflict with char $ac_func (); below.
38772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38773 <limits.h> exists even on freestanding compilers. */
38776 # include <limits.h>
38778 # include <assert.h>
38783 /* Override any GCC internal prototype to avoid an error.
38784 Use char because int might match the return type of a GCC
38785 builtin and then its argument prototype would still apply. */
38790 /* The GNU C library defines this for functions which it implements
38791 to always fail with ENOSYS. Some functions are actually named
38792 something starting with __ and the normal name is an alias. */
38793 #if defined __stub_$ac_func || defined __stub___$ac_func
38800 return $ac_func ();
38805 rm -f conftest.$ac_objext conftest$ac_exeext
38806 if { (ac_try="$ac_link"
38807 case "(($ac_try" in
38808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38809 *) ac_try_echo=$ac_try;;
38811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38812 (eval "$ac_link") 2>conftest.er1
38814 grep -v '^ *+' conftest.er1 >conftest.err
38816 cat conftest.err >&5
38817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818 (exit $ac_status); } && {
38819 test -z "$ac_c_werror_flag" ||
38820 test ! -s conftest.err
38821 } && test -s conftest$ac_exeext &&
38822 $as_test_x conftest$ac_exeext; then
38823 eval "$as_ac_var=yes"
38825 echo "$as_me: failed program was:" >&5
38826 sed 's/^/| /' conftest.$ac_ext >&5
38828 eval "$as_ac_var=no"
38831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38832 conftest$ac_exeext conftest.$ac_ext
38834 ac_res=`eval echo '${'$as_ac_var'}'`
38835 { echo "$as_me:$LINENO: result: $ac_res" >&5
38836 echo "${ECHO_T}$ac_res" >&6; }
38837 if test `eval echo '${'$as_ac_var'}'` = yes; then
38838 cat >>confdefs.h <<_ACEOF
38839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38841 cat >>confdefs.h <<\_ACEOF
38842 #define HAVE_GETHOSTBYNAME2 1
38849 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38850 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38851 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38852 echo $ECHO_N "(cached) $ECHO_C" >&6
38855 cat >conftest.$ac_ext <<_ACEOF
38858 cat confdefs.h >>conftest.$ac_ext
38859 cat >>conftest.$ac_ext <<_ACEOF
38860 /* end confdefs.h. */
38862 #include <sys/socket.h>
38868 struct sockaddr s; s.sa_len;
38874 rm -f conftest.$ac_objext
38875 if { (ac_try="$ac_compile"
38876 case "(($ac_try" in
38877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38878 *) ac_try_echo=$ac_try;;
38880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38881 (eval "$ac_compile") 2>conftest.er1
38883 grep -v '^ *+' conftest.er1 >conftest.err
38885 cat conftest.err >&5
38886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38887 (exit $ac_status); } && {
38888 test -z "$ac_c_werror_flag" ||
38889 test ! -s conftest.err
38890 } && test -s conftest.$ac_objext; then
38892 ac_cv_struct_sockaddr_sa_len=yes
38895 echo "$as_me: failed program was:" >&5
38896 sed 's/^/| /' conftest.$ac_ext >&5
38898 ac_cv_struct_sockaddr_sa_len=no
38903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38907 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38908 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38910 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38912 cat >>confdefs.h <<\_ACEOF
38913 #define HAVE_SA_LEN 1
38919 for ac_func in strftime
38921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38925 echo $ECHO_N "(cached) $ECHO_C" >&6
38927 cat >conftest.$ac_ext <<_ACEOF
38930 cat confdefs.h >>conftest.$ac_ext
38931 cat >>conftest.$ac_ext <<_ACEOF
38932 /* end confdefs.h. */
38933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38935 #define $ac_func innocuous_$ac_func
38937 /* System header to define __stub macros and hopefully few prototypes,
38938 which can conflict with char $ac_func (); below.
38939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38940 <limits.h> exists even on freestanding compilers. */
38943 # include <limits.h>
38945 # include <assert.h>
38950 /* Override any GCC internal prototype to avoid an error.
38951 Use char because int might match the return type of a GCC
38952 builtin and then its argument prototype would still apply. */
38957 /* The GNU C library defines this for functions which it implements
38958 to always fail with ENOSYS. Some functions are actually named
38959 something starting with __ and the normal name is an alias. */
38960 #if defined __stub_$ac_func || defined __stub___$ac_func
38967 return $ac_func ();
38972 rm -f conftest.$ac_objext conftest$ac_exeext
38973 if { (ac_try="$ac_link"
38974 case "(($ac_try" in
38975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38976 *) ac_try_echo=$ac_try;;
38978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38979 (eval "$ac_link") 2>conftest.er1
38981 grep -v '^ *+' conftest.er1 >conftest.err
38983 cat conftest.err >&5
38984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38985 (exit $ac_status); } && {
38986 test -z "$ac_c_werror_flag" ||
38987 test ! -s conftest.err
38988 } && test -s conftest$ac_exeext &&
38989 $as_test_x conftest$ac_exeext; then
38990 eval "$as_ac_var=yes"
38992 echo "$as_me: failed program was:" >&5
38993 sed 's/^/| /' conftest.$ac_ext >&5
38995 eval "$as_ac_var=no"
38998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38999 conftest$ac_exeext conftest.$ac_ext
39001 ac_res=`eval echo '${'$as_ac_var'}'`
39002 { echo "$as_me:$LINENO: result: $ac_res" >&5
39003 echo "${ECHO_T}$ac_res" >&6; }
39004 if test `eval echo '${'$as_ac_var'}'` = yes; then
39005 cat >>confdefs.h <<_ACEOF
39006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39010 # strftime is in -lintl on SCO UNIX.
39011 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39012 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39013 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39014 echo $ECHO_N "(cached) $ECHO_C" >&6
39016 ac_check_lib_save_LIBS=$LIBS
39017 LIBS="-lintl $LIBS"
39018 cat >conftest.$ac_ext <<_ACEOF
39021 cat confdefs.h >>conftest.$ac_ext
39022 cat >>conftest.$ac_ext <<_ACEOF
39023 /* end confdefs.h. */
39025 /* Override any GCC internal prototype to avoid an error.
39026 Use char because int might match the return type of a GCC
39027 builtin and then its argument prototype would still apply. */
39035 return strftime ();
39040 rm -f conftest.$ac_objext conftest$ac_exeext
39041 if { (ac_try="$ac_link"
39042 case "(($ac_try" in
39043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39044 *) ac_try_echo=$ac_try;;
39046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39047 (eval "$ac_link") 2>conftest.er1
39049 grep -v '^ *+' conftest.er1 >conftest.err
39051 cat conftest.err >&5
39052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39053 (exit $ac_status); } && {
39054 test -z "$ac_c_werror_flag" ||
39055 test ! -s conftest.err
39056 } && test -s conftest$ac_exeext &&
39057 $as_test_x conftest$ac_exeext; then
39058 ac_cv_lib_intl_strftime=yes
39060 echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39063 ac_cv_lib_intl_strftime=no
39066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39067 conftest$ac_exeext conftest.$ac_ext
39068 LIBS=$ac_check_lib_save_LIBS
39070 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39071 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39072 if test $ac_cv_lib_intl_strftime = yes; then
39073 cat >>confdefs.h <<\_ACEOF
39074 #define HAVE_STRFTIME 1
39077 LIBS="-lintl $LIBS"
39084 for ac_func in vprintf
39086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39090 echo $ECHO_N "(cached) $ECHO_C" >&6
39092 cat >conftest.$ac_ext <<_ACEOF
39095 cat confdefs.h >>conftest.$ac_ext
39096 cat >>conftest.$ac_ext <<_ACEOF
39097 /* end confdefs.h. */
39098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39100 #define $ac_func innocuous_$ac_func
39102 /* System header to define __stub macros and hopefully few prototypes,
39103 which can conflict with char $ac_func (); below.
39104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39105 <limits.h> exists even on freestanding compilers. */
39108 # include <limits.h>
39110 # include <assert.h>
39115 /* Override any GCC internal prototype to avoid an error.
39116 Use char because int might match the return type of a GCC
39117 builtin and then its argument prototype would still apply. */
39122 /* The GNU C library defines this for functions which it implements
39123 to always fail with ENOSYS. Some functions are actually named
39124 something starting with __ and the normal name is an alias. */
39125 #if defined __stub_$ac_func || defined __stub___$ac_func
39132 return $ac_func ();
39137 rm -f conftest.$ac_objext conftest$ac_exeext
39138 if { (ac_try="$ac_link"
39139 case "(($ac_try" in
39140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39141 *) ac_try_echo=$ac_try;;
39143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39144 (eval "$ac_link") 2>conftest.er1
39146 grep -v '^ *+' conftest.er1 >conftest.err
39148 cat conftest.err >&5
39149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 (exit $ac_status); } && {
39151 test -z "$ac_c_werror_flag" ||
39152 test ! -s conftest.err
39153 } && test -s conftest$ac_exeext &&
39154 $as_test_x conftest$ac_exeext; then
39155 eval "$as_ac_var=yes"
39157 echo "$as_me: failed program was:" >&5
39158 sed 's/^/| /' conftest.$ac_ext >&5
39160 eval "$as_ac_var=no"
39163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39164 conftest$ac_exeext conftest.$ac_ext
39166 ac_res=`eval echo '${'$as_ac_var'}'`
39167 { echo "$as_me:$LINENO: result: $ac_res" >&5
39168 echo "${ECHO_T}$ac_res" >&6; }
39169 if test `eval echo '${'$as_ac_var'}'` = yes; then
39170 cat >>confdefs.h <<_ACEOF
39171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39174 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39175 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39176 if test "${ac_cv_func__doprnt+set}" = set; then
39177 echo $ECHO_N "(cached) $ECHO_C" >&6
39179 cat >conftest.$ac_ext <<_ACEOF
39182 cat confdefs.h >>conftest.$ac_ext
39183 cat >>conftest.$ac_ext <<_ACEOF
39184 /* end confdefs.h. */
39185 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39187 #define _doprnt innocuous__doprnt
39189 /* System header to define __stub macros and hopefully few prototypes,
39190 which can conflict with char _doprnt (); below.
39191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39192 <limits.h> exists even on freestanding compilers. */
39195 # include <limits.h>
39197 # include <assert.h>
39202 /* Override any GCC internal prototype to avoid an error.
39203 Use char because int might match the return type of a GCC
39204 builtin and then its argument prototype would still apply. */
39209 /* The GNU C library defines this for functions which it implements
39210 to always fail with ENOSYS. Some functions are actually named
39211 something starting with __ and the normal name is an alias. */
39212 #if defined __stub__doprnt || defined __stub____doprnt
39224 rm -f conftest.$ac_objext conftest$ac_exeext
39225 if { (ac_try="$ac_link"
39226 case "(($ac_try" in
39227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39228 *) ac_try_echo=$ac_try;;
39230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39231 (eval "$ac_link") 2>conftest.er1
39233 grep -v '^ *+' conftest.er1 >conftest.err
39235 cat conftest.err >&5
39236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39237 (exit $ac_status); } && {
39238 test -z "$ac_c_werror_flag" ||
39239 test ! -s conftest.err
39240 } && test -s conftest$ac_exeext &&
39241 $as_test_x conftest$ac_exeext; then
39242 ac_cv_func__doprnt=yes
39244 echo "$as_me: failed program was:" >&5
39245 sed 's/^/| /' conftest.$ac_ext >&5
39247 ac_cv_func__doprnt=no
39250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39251 conftest$ac_exeext conftest.$ac_ext
39253 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39254 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39255 if test $ac_cv_func__doprnt = yes; then
39257 cat >>confdefs.h <<\_ACEOF
39258 #define HAVE_DOPRNT 1
39267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39268 # for constant arguments. Useless!
39269 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39271 if test "${ac_cv_working_alloca_h+set}" = set; then
39272 echo $ECHO_N "(cached) $ECHO_C" >&6
39274 cat >conftest.$ac_ext <<_ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h. */
39280 #include <alloca.h>
39284 char *p = (char *) alloca (2 * sizeof (int));
39290 rm -f conftest.$ac_objext conftest$ac_exeext
39291 if { (ac_try="$ac_link"
39292 case "(($ac_try" in
39293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39294 *) ac_try_echo=$ac_try;;
39296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39297 (eval "$ac_link") 2>conftest.er1
39299 grep -v '^ *+' conftest.er1 >conftest.err
39301 cat conftest.err >&5
39302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39303 (exit $ac_status); } && {
39304 test -z "$ac_c_werror_flag" ||
39305 test ! -s conftest.err
39306 } && test -s conftest$ac_exeext &&
39307 $as_test_x conftest$ac_exeext; then
39308 ac_cv_working_alloca_h=yes
39310 echo "$as_me: failed program was:" >&5
39311 sed 's/^/| /' conftest.$ac_ext >&5
39313 ac_cv_working_alloca_h=no
39316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39317 conftest$ac_exeext conftest.$ac_ext
39319 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39320 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39321 if test $ac_cv_working_alloca_h = yes; then
39323 cat >>confdefs.h <<\_ACEOF
39324 #define HAVE_ALLOCA_H 1
39329 { echo "$as_me:$LINENO: checking for alloca" >&5
39330 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39331 if test "${ac_cv_func_alloca_works+set}" = set; then
39332 echo $ECHO_N "(cached) $ECHO_C" >&6
39334 cat >conftest.$ac_ext <<_ACEOF
39337 cat confdefs.h >>conftest.$ac_ext
39338 cat >>conftest.$ac_ext <<_ACEOF
39339 /* end confdefs.h. */
39341 # define alloca __builtin_alloca
39344 # include <malloc.h>
39345 # define alloca _alloca
39347 # ifdef HAVE_ALLOCA_H
39348 # include <alloca.h>
39353 # ifndef alloca /* predefined by HP cc +Olibcalls */
39364 char *p = (char *) alloca (1);
39370 rm -f conftest.$ac_objext conftest$ac_exeext
39371 if { (ac_try="$ac_link"
39372 case "(($ac_try" in
39373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39374 *) ac_try_echo=$ac_try;;
39376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39377 (eval "$ac_link") 2>conftest.er1
39379 grep -v '^ *+' conftest.er1 >conftest.err
39381 cat conftest.err >&5
39382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383 (exit $ac_status); } && {
39384 test -z "$ac_c_werror_flag" ||
39385 test ! -s conftest.err
39386 } && test -s conftest$ac_exeext &&
39387 $as_test_x conftest$ac_exeext; then
39388 ac_cv_func_alloca_works=yes
39390 echo "$as_me: failed program was:" >&5
39391 sed 's/^/| /' conftest.$ac_ext >&5
39393 ac_cv_func_alloca_works=no
39396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39397 conftest$ac_exeext conftest.$ac_ext
39399 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39400 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39402 if test $ac_cv_func_alloca_works = yes; then
39404 cat >>confdefs.h <<\_ACEOF
39405 #define HAVE_ALLOCA 1
39409 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39410 # that cause trouble. Some versions do not even contain alloca or
39411 # contain a buggy version. If you still want to use their alloca,
39412 # use ar to extract alloca.o from them instead of compiling alloca.c.
39414 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39416 cat >>confdefs.h <<\_ACEOF
39421 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39422 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39423 if test "${ac_cv_os_cray+set}" = set; then
39424 echo $ECHO_N "(cached) $ECHO_C" >&6
39426 cat >conftest.$ac_ext <<_ACEOF
39429 cat confdefs.h >>conftest.$ac_ext
39430 cat >>conftest.$ac_ext <<_ACEOF
39431 /* end confdefs.h. */
39432 #if defined CRAY && ! defined CRAY2
39439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39440 $EGREP "webecray" >/dev/null 2>&1; then
39448 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39449 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39450 if test $ac_cv_os_cray = yes; then
39451 for ac_func in _getb67 GETB67 getb67; do
39452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39456 echo $ECHO_N "(cached) $ECHO_C" >&6
39458 cat >conftest.$ac_ext <<_ACEOF
39461 cat confdefs.h >>conftest.$ac_ext
39462 cat >>conftest.$ac_ext <<_ACEOF
39463 /* end confdefs.h. */
39464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39466 #define $ac_func innocuous_$ac_func
39468 /* System header to define __stub macros and hopefully few prototypes,
39469 which can conflict with char $ac_func (); below.
39470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39471 <limits.h> exists even on freestanding compilers. */
39474 # include <limits.h>
39476 # include <assert.h>
39481 /* Override any GCC internal prototype to avoid an error.
39482 Use char because int might match the return type of a GCC
39483 builtin and then its argument prototype would still apply. */
39488 /* The GNU C library defines this for functions which it implements
39489 to always fail with ENOSYS. Some functions are actually named
39490 something starting with __ and the normal name is an alias. */
39491 #if defined __stub_$ac_func || defined __stub___$ac_func
39498 return $ac_func ();
39503 rm -f conftest.$ac_objext conftest$ac_exeext
39504 if { (ac_try="$ac_link"
39505 case "(($ac_try" in
39506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39507 *) ac_try_echo=$ac_try;;
39509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39510 (eval "$ac_link") 2>conftest.er1
39512 grep -v '^ *+' conftest.er1 >conftest.err
39514 cat conftest.err >&5
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); } && {
39517 test -z "$ac_c_werror_flag" ||
39518 test ! -s conftest.err
39519 } && test -s conftest$ac_exeext &&
39520 $as_test_x conftest$ac_exeext; then
39521 eval "$as_ac_var=yes"
39523 echo "$as_me: failed program was:" >&5
39524 sed 's/^/| /' conftest.$ac_ext >&5
39526 eval "$as_ac_var=no"
39529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39530 conftest$ac_exeext conftest.$ac_ext
39532 ac_res=`eval echo '${'$as_ac_var'}'`
39533 { echo "$as_me:$LINENO: result: $ac_res" >&5
39534 echo "${ECHO_T}$ac_res" >&6; }
39535 if test `eval echo '${'$as_ac_var'}'` = yes; then
39537 cat >>confdefs.h <<_ACEOF
39538 #define CRAY_STACKSEG_END $ac_func
39547 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39548 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39549 if test "${ac_cv_c_stack_direction+set}" = set; then
39550 echo $ECHO_N "(cached) $ECHO_C" >&6
39552 if test "$cross_compiling" = yes; then
39553 ac_cv_c_stack_direction=0
39555 cat >conftest.$ac_ext <<_ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h. */
39561 $ac_includes_default
39563 find_stack_direction ()
39565 static char *addr = 0;
39570 return find_stack_direction ();
39573 return (&dummy > addr) ? 1 : -1;
39579 return find_stack_direction () < 0;
39582 rm -f conftest$ac_exeext
39583 if { (ac_try="$ac_link"
39584 case "(($ac_try" in
39585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39586 *) ac_try_echo=$ac_try;;
39588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39589 (eval "$ac_link") 2>&5
39591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39593 { (case "(($ac_try" in
39594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39595 *) ac_try_echo=$ac_try;;
39597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39598 (eval "$ac_try") 2>&5
39600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601 (exit $ac_status); }; }; then
39602 ac_cv_c_stack_direction=1
39604 echo "$as_me: program exited with status $ac_status" >&5
39605 echo "$as_me: failed program was:" >&5
39606 sed 's/^/| /' conftest.$ac_ext >&5
39608 ( exit $ac_status )
39609 ac_cv_c_stack_direction=-1
39611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39616 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39617 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39619 cat >>confdefs.h <<_ACEOF
39620 #define STACK_DIRECTION $ac_cv_c_stack_direction
39626 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39627 # -lseq on Dynix/PTX, -lgen on Unixware.
39628 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39629 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39630 if test "${ac_cv_search_getmntent+set}" = set; then
39631 echo $ECHO_N "(cached) $ECHO_C" >&6
39633 ac_func_search_save_LIBS=$LIBS
39634 cat >conftest.$ac_ext <<_ACEOF
39637 cat confdefs.h >>conftest.$ac_ext
39638 cat >>conftest.$ac_ext <<_ACEOF
39639 /* end confdefs.h. */
39641 /* Override any GCC internal prototype to avoid an error.
39642 Use char because int might match the return type of a GCC
39643 builtin and then its argument prototype would still apply. */
39651 return getmntent ();
39656 for ac_lib in '' sun seq gen; do
39657 if test -z "$ac_lib"; then
39658 ac_res="none required"
39661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39663 rm -f conftest.$ac_objext conftest$ac_exeext
39664 if { (ac_try="$ac_link"
39665 case "(($ac_try" in
39666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39667 *) ac_try_echo=$ac_try;;
39669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39670 (eval "$ac_link") 2>conftest.er1
39672 grep -v '^ *+' conftest.er1 >conftest.err
39674 cat conftest.err >&5
39675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676 (exit $ac_status); } && {
39677 test -z "$ac_c_werror_flag" ||
39678 test ! -s conftest.err
39679 } && test -s conftest$ac_exeext &&
39680 $as_test_x conftest$ac_exeext; then
39681 ac_cv_search_getmntent=$ac_res
39683 echo "$as_me: failed program was:" >&5
39684 sed 's/^/| /' conftest.$ac_ext >&5
39689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39691 if test "${ac_cv_search_getmntent+set}" = set; then
39695 if test "${ac_cv_search_getmntent+set}" = set; then
39698 ac_cv_search_getmntent=no
39700 rm conftest.$ac_ext
39701 LIBS=$ac_func_search_save_LIBS
39703 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39704 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39705 ac_res=$ac_cv_search_getmntent
39706 if test "$ac_res" != no; then
39707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39708 ac_cv_func_getmntent=yes
39710 cat >>confdefs.h <<\_ACEOF
39711 #define HAVE_GETMNTENT 1
39715 ac_cv_func_getmntent=no
39719 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39720 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39721 if test "${ac_cv_func_closedir_void+set}" = set; then
39722 echo $ECHO_N "(cached) $ECHO_C" >&6
39724 if test "$cross_compiling" = yes; then
39725 ac_cv_func_closedir_void=yes
39727 cat >conftest.$ac_ext <<_ACEOF
39730 cat confdefs.h >>conftest.$ac_ext
39731 cat >>conftest.$ac_ext <<_ACEOF
39732 /* end confdefs.h. */
39733 $ac_includes_default
39734 #include <$ac_header_dirent>
39735 #ifndef __cplusplus
39742 return closedir (opendir (".")) != 0;
39747 rm -f conftest$ac_exeext
39748 if { (ac_try="$ac_link"
39749 case "(($ac_try" in
39750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39751 *) ac_try_echo=$ac_try;;
39753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39754 (eval "$ac_link") 2>&5
39756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39758 { (case "(($ac_try" in
39759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39760 *) ac_try_echo=$ac_try;;
39762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39763 (eval "$ac_try") 2>&5
39765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766 (exit $ac_status); }; }; then
39767 ac_cv_func_closedir_void=no
39769 echo "$as_me: program exited with status $ac_status" >&5
39770 echo "$as_me: failed program was:" >&5
39771 sed 's/^/| /' conftest.$ac_ext >&5
39773 ( exit $ac_status )
39774 ac_cv_func_closedir_void=yes
39776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39781 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39782 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39783 if test $ac_cv_func_closedir_void = yes; then
39785 cat >>confdefs.h <<\_ACEOF
39786 #define CLOSEDIR_VOID 1
39791 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39792 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39793 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39794 echo $ECHO_N "(cached) $ECHO_C" >&6
39796 if test "$cross_compiling" = yes; then
39797 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39798 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39799 { (exit 1); exit 1; }; }
39801 cat >conftest.$ac_ext <<_ACEOF
39804 cat confdefs.h >>conftest.$ac_ext
39805 cat >>conftest.$ac_ext <<_ACEOF
39806 /* end confdefs.h. */
39807 $ac_includes_default
39811 /* If this system has a BSD-style setpgrp which takes arguments,
39812 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39813 exit successfully. */
39814 return setpgrp (1,1) != -1;
39819 rm -f conftest$ac_exeext
39820 if { (ac_try="$ac_link"
39821 case "(($ac_try" in
39822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39823 *) ac_try_echo=$ac_try;;
39825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39826 (eval "$ac_link") 2>&5
39828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39830 { (case "(($ac_try" in
39831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39832 *) ac_try_echo=$ac_try;;
39834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39835 (eval "$ac_try") 2>&5
39837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); }; }; then
39839 ac_cv_func_setpgrp_void=no
39841 echo "$as_me: program exited with status $ac_status" >&5
39842 echo "$as_me: failed program was:" >&5
39843 sed 's/^/| /' conftest.$ac_ext >&5
39845 ( exit $ac_status )
39846 ac_cv_func_setpgrp_void=yes
39848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39853 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39854 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39855 if test $ac_cv_func_setpgrp_void = yes; then
39857 cat >>confdefs.h <<\_ACEOF
39858 #define SETPGRP_VOID 1
39862 # AC_FUNC_FNMATCH dnl use local version
39864 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39865 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39866 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39867 echo $ECHO_N "(cached) $ECHO_C" >&6
39869 ac_check_lib_save_LIBS=$LIBS
39870 LIBS="-lintl $LIBS"
39871 cat >conftest.$ac_ext <<_ACEOF
39874 cat confdefs.h >>conftest.$ac_ext
39875 cat >>conftest.$ac_ext <<_ACEOF
39876 /* end confdefs.h. */
39878 /* Override any GCC internal prototype to avoid an error.
39879 Use char because int might match the return type of a GCC
39880 builtin and then its argument prototype would still apply. */
39893 rm -f conftest.$ac_objext conftest$ac_exeext
39894 if { (ac_try="$ac_link"
39895 case "(($ac_try" in
39896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39897 *) ac_try_echo=$ac_try;;
39899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39900 (eval "$ac_link") 2>conftest.er1
39902 grep -v '^ *+' conftest.er1 >conftest.err
39904 cat conftest.err >&5
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); } && {
39907 test -z "$ac_c_werror_flag" ||
39908 test ! -s conftest.err
39909 } && test -s conftest$ac_exeext &&
39910 $as_test_x conftest$ac_exeext; then
39911 ac_cv_lib_intl_gettext=yes
39913 echo "$as_me: failed program was:" >&5
39914 sed 's/^/| /' conftest.$ac_ext >&5
39916 ac_cv_lib_intl_gettext=no
39919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39920 conftest$ac_exeext conftest.$ac_ext
39921 LIBS=$ac_check_lib_save_LIBS
39923 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39924 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39925 if test $ac_cv_lib_intl_gettext = yes; then
39926 LIBS="$LIBS -lintl"
39931 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39932 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39933 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39934 echo $ECHO_N "(cached) $ECHO_C" >&6
39936 ac_check_lib_save_LIBS=$LIBS
39938 cat >conftest.$ac_ext <<_ACEOF
39941 cat confdefs.h >>conftest.$ac_ext
39942 cat >>conftest.$ac_ext <<_ACEOF
39943 /* end confdefs.h. */
39945 /* Override any GCC internal prototype to avoid an error.
39946 Use char because int might match the return type of a GCC
39947 builtin and then its argument prototype would still apply. */
39955 return getpwnam ();
39960 rm -f conftest.$ac_objext conftest$ac_exeext
39961 if { (ac_try="$ac_link"
39962 case "(($ac_try" in
39963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39964 *) ac_try_echo=$ac_try;;
39966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39967 (eval "$ac_link") 2>conftest.er1
39969 grep -v '^ *+' conftest.er1 >conftest.err
39971 cat conftest.err >&5
39972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973 (exit $ac_status); } && {
39974 test -z "$ac_c_werror_flag" ||
39975 test ! -s conftest.err
39976 } && test -s conftest$ac_exeext &&
39977 $as_test_x conftest$ac_exeext; then
39978 ac_cv_lib_sun_getpwnam=yes
39980 echo "$as_me: failed program was:" >&5
39981 sed 's/^/| /' conftest.$ac_ext >&5
39983 ac_cv_lib_sun_getpwnam=no
39986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39987 conftest$ac_exeext conftest.$ac_ext
39988 LIBS=$ac_check_lib_save_LIBS
39990 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39991 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39992 if test $ac_cv_lib_sun_getpwnam = yes; then
39993 cat >>confdefs.h <<_ACEOF
39994 #define HAVE_LIBSUN 1
40003 for ac_header in zlib.h
40005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40010 echo $ECHO_N "(cached) $ECHO_C" >&6
40012 ac_res=`eval echo '${'$as_ac_Header'}'`
40013 { echo "$as_me:$LINENO: result: $ac_res" >&5
40014 echo "${ECHO_T}$ac_res" >&6; }
40016 # Is the header compilable?
40017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40019 cat >conftest.$ac_ext <<_ACEOF
40022 cat confdefs.h >>conftest.$ac_ext
40023 cat >>conftest.$ac_ext <<_ACEOF
40024 /* end confdefs.h. */
40025 $ac_includes_default
40026 #include <$ac_header>
40028 rm -f conftest.$ac_objext
40029 if { (ac_try="$ac_compile"
40030 case "(($ac_try" in
40031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40032 *) ac_try_echo=$ac_try;;
40034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40035 (eval "$ac_compile") 2>conftest.er1
40037 grep -v '^ *+' conftest.er1 >conftest.err
40039 cat conftest.err >&5
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); } && {
40042 test -z "$ac_c_werror_flag" ||
40043 test ! -s conftest.err
40044 } && test -s conftest.$ac_objext; then
40045 ac_header_compiler=yes
40047 echo "$as_me: failed program was:" >&5
40048 sed 's/^/| /' conftest.$ac_ext >&5
40050 ac_header_compiler=no
40053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40055 echo "${ECHO_T}$ac_header_compiler" >&6; }
40057 # Is the header present?
40058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40060 cat >conftest.$ac_ext <<_ACEOF
40063 cat confdefs.h >>conftest.$ac_ext
40064 cat >>conftest.$ac_ext <<_ACEOF
40065 /* end confdefs.h. */
40066 #include <$ac_header>
40068 if { (ac_try="$ac_cpp conftest.$ac_ext"
40069 case "(($ac_try" in
40070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40071 *) ac_try_echo=$ac_try;;
40073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40076 grep -v '^ *+' conftest.er1 >conftest.err
40078 cat conftest.err >&5
40079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); } >/dev/null && {
40081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40082 test ! -s conftest.err
40084 ac_header_preproc=yes
40086 echo "$as_me: failed program was:" >&5
40087 sed 's/^/| /' conftest.$ac_ext >&5
40089 ac_header_preproc=no
40092 rm -f conftest.err conftest.$ac_ext
40093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40094 echo "${ECHO_T}$ac_header_preproc" >&6; }
40096 # So? What about this header?
40097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40103 ac_header_preproc=yes
40106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40124 echo $ECHO_N "(cached) $ECHO_C" >&6
40126 eval "$as_ac_Header=\$ac_header_preproc"
40128 ac_res=`eval echo '${'$as_ac_Header'}'`
40129 { echo "$as_me:$LINENO: result: $ac_res" >&5
40130 echo "${ECHO_T}$ac_res" >&6; }
40133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40134 cat >>confdefs.h <<_ACEOF
40135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40142 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40143 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40144 if test "${ac_cv_lib_z_deflate+set}" = set; then
40145 echo $ECHO_N "(cached) $ECHO_C" >&6
40147 ac_check_lib_save_LIBS=$LIBS
40149 cat >conftest.$ac_ext <<_ACEOF
40152 cat confdefs.h >>conftest.$ac_ext
40153 cat >>conftest.$ac_ext <<_ACEOF
40154 /* end confdefs.h. */
40156 /* Override any GCC internal prototype to avoid an error.
40157 Use char because int might match the return type of a GCC
40158 builtin and then its argument prototype would still apply. */
40171 rm -f conftest.$ac_objext conftest$ac_exeext
40172 if { (ac_try="$ac_link"
40173 case "(($ac_try" in
40174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40175 *) ac_try_echo=$ac_try;;
40177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40178 (eval "$ac_link") 2>conftest.er1
40180 grep -v '^ *+' conftest.er1 >conftest.err
40182 cat conftest.err >&5
40183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184 (exit $ac_status); } && {
40185 test -z "$ac_c_werror_flag" ||
40186 test ! -s conftest.err
40187 } && test -s conftest$ac_exeext &&
40188 $as_test_x conftest$ac_exeext; then
40189 ac_cv_lib_z_deflate=yes
40191 echo "$as_me: failed program was:" >&5
40192 sed 's/^/| /' conftest.$ac_ext >&5
40194 ac_cv_lib_z_deflate=no
40197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40198 conftest$ac_exeext conftest.$ac_ext
40199 LIBS=$ac_check_lib_save_LIBS
40201 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40202 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40203 if test $ac_cv_lib_z_deflate = yes; then
40208 if test x$FDLIBS = x-lz; then
40209 cat >>confdefs.h <<\_ACEOF
40210 #define HAVE_LIBZ 1
40217 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40218 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40219 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40220 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40221 echo $ECHO_N "(cached) $ECHO_C" >&6
40223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40224 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40226 # Is the header compilable?
40227 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40228 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40229 cat >conftest.$ac_ext <<_ACEOF
40232 cat confdefs.h >>conftest.$ac_ext
40233 cat >>conftest.$ac_ext <<_ACEOF
40234 /* end confdefs.h. */
40235 $ac_includes_default
40236 #include <sys/acl.h>
40238 rm -f conftest.$ac_objext
40239 if { (ac_try="$ac_compile"
40240 case "(($ac_try" in
40241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40242 *) ac_try_echo=$ac_try;;
40244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40245 (eval "$ac_compile") 2>conftest.er1
40247 grep -v '^ *+' conftest.er1 >conftest.err
40249 cat conftest.err >&5
40250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40251 (exit $ac_status); } && {
40252 test -z "$ac_c_werror_flag" ||
40253 test ! -s conftest.err
40254 } && test -s conftest.$ac_objext; then
40255 ac_header_compiler=yes
40257 echo "$as_me: failed program was:" >&5
40258 sed 's/^/| /' conftest.$ac_ext >&5
40260 ac_header_compiler=no
40263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40265 echo "${ECHO_T}$ac_header_compiler" >&6; }
40267 # Is the header present?
40268 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40269 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40270 cat >conftest.$ac_ext <<_ACEOF
40273 cat confdefs.h >>conftest.$ac_ext
40274 cat >>conftest.$ac_ext <<_ACEOF
40275 /* end confdefs.h. */
40276 #include <sys/acl.h>
40278 if { (ac_try="$ac_cpp conftest.$ac_ext"
40279 case "(($ac_try" in
40280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40281 *) ac_try_echo=$ac_try;;
40283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40286 grep -v '^ *+' conftest.er1 >conftest.err
40288 cat conftest.err >&5
40289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290 (exit $ac_status); } >/dev/null && {
40291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40292 test ! -s conftest.err
40294 ac_header_preproc=yes
40296 echo "$as_me: failed program was:" >&5
40297 sed 's/^/| /' conftest.$ac_ext >&5
40299 ac_header_preproc=no
40302 rm -f conftest.err conftest.$ac_ext
40303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40304 echo "${ECHO_T}$ac_header_preproc" >&6; }
40306 # So? What about this header?
40307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40309 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40310 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40311 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40312 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40313 ac_header_preproc=yes
40316 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40317 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40318 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40319 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40320 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40321 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40322 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40323 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40324 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40325 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40326 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40327 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40331 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40332 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40333 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40334 echo $ECHO_N "(cached) $ECHO_C" >&6
40336 ac_cv_header_sys_acl_h=$ac_header_preproc
40338 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40339 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40344 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40345 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40346 if test "${ac_cv_func_acl_get_file+set}" = set; then
40347 echo $ECHO_N "(cached) $ECHO_C" >&6
40349 cat >conftest.$ac_ext <<_ACEOF
40352 cat confdefs.h >>conftest.$ac_ext
40353 cat >>conftest.$ac_ext <<_ACEOF
40354 /* end confdefs.h. */
40355 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40357 #define acl_get_file innocuous_acl_get_file
40359 /* System header to define __stub macros and hopefully few prototypes,
40360 which can conflict with char acl_get_file (); below.
40361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40362 <limits.h> exists even on freestanding compilers. */
40365 # include <limits.h>
40367 # include <assert.h>
40370 #undef acl_get_file
40372 /* Override any GCC internal prototype to avoid an error.
40373 Use char because int might match the return type of a GCC
40374 builtin and then its argument prototype would still apply. */
40378 char acl_get_file ();
40379 /* The GNU C library defines this for functions which it implements
40380 to always fail with ENOSYS. Some functions are actually named
40381 something starting with __ and the normal name is an alias. */
40382 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40389 return acl_get_file ();
40394 rm -f conftest.$ac_objext conftest$ac_exeext
40395 if { (ac_try="$ac_link"
40396 case "(($ac_try" in
40397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40398 *) ac_try_echo=$ac_try;;
40400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40401 (eval "$ac_link") 2>conftest.er1
40403 grep -v '^ *+' conftest.er1 >conftest.err
40405 cat conftest.err >&5
40406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40407 (exit $ac_status); } && {
40408 test -z "$ac_c_werror_flag" ||
40409 test ! -s conftest.err
40410 } && test -s conftest$ac_exeext &&
40411 $as_test_x conftest$ac_exeext; then
40412 ac_cv_func_acl_get_file=yes
40414 echo "$as_me: failed program was:" >&5
40415 sed 's/^/| /' conftest.$ac_ext >&5
40417 ac_cv_func_acl_get_file=no
40420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40421 conftest$ac_exeext conftest.$ac_ext
40423 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40424 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40425 if test $ac_cv_func_acl_get_file = yes; then
40429 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40430 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40431 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40432 echo $ECHO_N "(cached) $ECHO_C" >&6
40434 ac_check_lib_save_LIBS=$LIBS
40436 cat >conftest.$ac_ext <<_ACEOF
40439 cat confdefs.h >>conftest.$ac_ext
40440 cat >>conftest.$ac_ext <<_ACEOF
40441 /* end confdefs.h. */
40443 /* Override any GCC internal prototype to avoid an error.
40444 Use char because int might match the return type of a GCC
40445 builtin and then its argument prototype would still apply. */
40449 char acl_get_file ();
40453 return acl_get_file ();
40458 rm -f conftest.$ac_objext conftest$ac_exeext
40459 if { (ac_try="$ac_link"
40460 case "(($ac_try" in
40461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40462 *) ac_try_echo=$ac_try;;
40464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40465 (eval "$ac_link") 2>conftest.er1
40467 grep -v '^ *+' conftest.er1 >conftest.err
40469 cat conftest.err >&5
40470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471 (exit $ac_status); } && {
40472 test -z "$ac_c_werror_flag" ||
40473 test ! -s conftest.err
40474 } && test -s conftest$ac_exeext &&
40475 $as_test_x conftest$ac_exeext; then
40476 ac_cv_lib_acl_acl_get_file=yes
40478 echo "$as_me: failed program was:" >&5
40479 sed 's/^/| /' conftest.$ac_ext >&5
40481 ac_cv_lib_acl_acl_get_file=no
40484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40485 conftest$ac_exeext conftest.$ac_ext
40486 LIBS=$ac_check_lib_save_LIBS
40488 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40489 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40490 if test $ac_cv_lib_acl_acl_get_file = yes; then
40493 FDLIBS="-lacl $FDLIBS"
40497 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40498 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40499 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40500 echo $ECHO_N "(cached) $ECHO_C" >&6
40502 ac_check_lib_save_LIBS=$LIBS
40504 cat >conftest.$ac_ext <<_ACEOF
40507 cat confdefs.h >>conftest.$ac_ext
40508 cat >>conftest.$ac_ext <<_ACEOF
40509 /* end confdefs.h. */
40511 /* Override any GCC internal prototype to avoid an error.
40512 Use char because int might match the return type of a GCC
40513 builtin and then its argument prototype would still apply. */
40521 return acltotext ();
40526 rm -f conftest.$ac_objext conftest$ac_exeext
40527 if { (ac_try="$ac_link"
40528 case "(($ac_try" in
40529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40530 *) ac_try_echo=$ac_try;;
40532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40533 (eval "$ac_link") 2>conftest.er1
40535 grep -v '^ *+' conftest.er1 >conftest.err
40537 cat conftest.err >&5
40538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539 (exit $ac_status); } && {
40540 test -z "$ac_c_werror_flag" ||
40541 test ! -s conftest.err
40542 } && test -s conftest$ac_exeext &&
40543 $as_test_x conftest$ac_exeext; then
40544 ac_cv_lib_sec_acltotext=yes
40546 echo "$as_me: failed program was:" >&5
40547 sed 's/^/| /' conftest.$ac_ext >&5
40549 ac_cv_lib_sec_acltotext=no
40552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40553 conftest$ac_exeext conftest.$ac_ext
40554 LIBS=$ac_check_lib_save_LIBS
40556 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40557 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40558 if test $ac_cv_lib_sec_acltotext = yes; then
40561 FDLIBS="-lsec $FDLIBS"
40574 if test $have_acl = yes; then
40575 cat >>confdefs.h <<\_ACEOF
40582 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40583 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40584 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40585 echo $ECHO_N "(cached) $ECHO_C" >&6
40587 ac_check_lib_save_LIBS=$LIBS
40588 LIBS="-lpthread $LIBS"
40589 cat >conftest.$ac_ext <<_ACEOF
40592 cat confdefs.h >>conftest.$ac_ext
40593 cat >>conftest.$ac_ext <<_ACEOF
40594 /* end confdefs.h. */
40596 /* Override any GCC internal prototype to avoid an error.
40597 Use char because int might match the return type of a GCC
40598 builtin and then its argument prototype would still apply. */
40602 char pthread_create ();
40606 return pthread_create ();
40611 rm -f conftest.$ac_objext conftest$ac_exeext
40612 if { (ac_try="$ac_link"
40613 case "(($ac_try" in
40614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40615 *) ac_try_echo=$ac_try;;
40617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40618 (eval "$ac_link") 2>conftest.er1
40620 grep -v '^ *+' conftest.er1 >conftest.err
40622 cat conftest.err >&5
40623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40624 (exit $ac_status); } && {
40625 test -z "$ac_c_werror_flag" ||
40626 test ! -s conftest.err
40627 } && test -s conftest$ac_exeext &&
40628 $as_test_x conftest$ac_exeext; then
40629 ac_cv_lib_pthread_pthread_create=yes
40631 echo "$as_me: failed program was:" >&5
40632 sed 's/^/| /' conftest.$ac_ext >&5
40634 ac_cv_lib_pthread_pthread_create=no
40637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40638 conftest$ac_exeext conftest.$ac_ext
40639 LIBS=$ac_check_lib_save_LIBS
40641 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40642 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40643 if test $ac_cv_lib_pthread_pthread_create = yes; then
40644 PTHREAD_LIB="-lpthread"
40647 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40648 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40649 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40650 echo $ECHO_N "(cached) $ECHO_C" >&6
40652 ac_check_lib_save_LIBS=$LIBS
40653 LIBS="-lpthreads $LIBS"
40654 cat >conftest.$ac_ext <<_ACEOF
40657 cat confdefs.h >>conftest.$ac_ext
40658 cat >>conftest.$ac_ext <<_ACEOF
40659 /* end confdefs.h. */
40661 /* Override any GCC internal prototype to avoid an error.
40662 Use char because int might match the return type of a GCC
40663 builtin and then its argument prototype would still apply. */
40667 char pthread_create ();
40671 return pthread_create ();
40676 rm -f conftest.$ac_objext conftest$ac_exeext
40677 if { (ac_try="$ac_link"
40678 case "(($ac_try" in
40679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40680 *) ac_try_echo=$ac_try;;
40682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40683 (eval "$ac_link") 2>conftest.er1
40685 grep -v '^ *+' conftest.er1 >conftest.err
40687 cat conftest.err >&5
40688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689 (exit $ac_status); } && {
40690 test -z "$ac_c_werror_flag" ||
40691 test ! -s conftest.err
40692 } && test -s conftest$ac_exeext &&
40693 $as_test_x conftest$ac_exeext; then
40694 ac_cv_lib_pthreads_pthread_create=yes
40696 echo "$as_me: failed program was:" >&5
40697 sed 's/^/| /' conftest.$ac_ext >&5
40699 ac_cv_lib_pthreads_pthread_create=no
40702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40703 conftest$ac_exeext conftest.$ac_ext
40704 LIBS=$ac_check_lib_save_LIBS
40706 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40707 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40708 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40709 PTHREAD_LIB="-lpthreads"
40712 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40713 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40714 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40715 echo $ECHO_N "(cached) $ECHO_C" >&6
40717 ac_check_lib_save_LIBS=$LIBS
40719 cat >conftest.$ac_ext <<_ACEOF
40722 cat confdefs.h >>conftest.$ac_ext
40723 cat >>conftest.$ac_ext <<_ACEOF
40724 /* end confdefs.h. */
40726 /* Override any GCC internal prototype to avoid an error.
40727 Use char because int might match the return type of a GCC
40728 builtin and then its argument prototype would still apply. */
40732 char pthread_create ();
40736 return pthread_create ();
40741 rm -f conftest.$ac_objext conftest$ac_exeext
40742 if { (ac_try="$ac_link"
40743 case "(($ac_try" in
40744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40745 *) ac_try_echo=$ac_try;;
40747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40748 (eval "$ac_link") 2>conftest.er1
40750 grep -v '^ *+' conftest.er1 >conftest.err
40752 cat conftest.err >&5
40753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40754 (exit $ac_status); } && {
40755 test -z "$ac_c_werror_flag" ||
40756 test ! -s conftest.err
40757 } && test -s conftest$ac_exeext &&
40758 $as_test_x conftest$ac_exeext; then
40759 ac_cv_lib_c_r_pthread_create=yes
40761 echo "$as_me: failed program was:" >&5
40762 sed 's/^/| /' conftest.$ac_ext >&5
40764 ac_cv_lib_c_r_pthread_create=no
40767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40768 conftest$ac_exeext conftest.$ac_ext
40769 LIBS=$ac_check_lib_save_LIBS
40771 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40772 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40773 if test $ac_cv_lib_c_r_pthread_create = yes; then
40774 PTHREAD_LIB="-lc_r"
40777 { echo "$as_me:$LINENO: checking for pthread_create" >&5
40778 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40779 if test "${ac_cv_func_pthread_create+set}" = set; then
40780 echo $ECHO_N "(cached) $ECHO_C" >&6
40782 cat >conftest.$ac_ext <<_ACEOF
40785 cat confdefs.h >>conftest.$ac_ext
40786 cat >>conftest.$ac_ext <<_ACEOF
40787 /* end confdefs.h. */
40788 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40790 #define pthread_create innocuous_pthread_create
40792 /* System header to define __stub macros and hopefully few prototypes,
40793 which can conflict with char pthread_create (); below.
40794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40795 <limits.h> exists even on freestanding compilers. */
40798 # include <limits.h>
40800 # include <assert.h>
40803 #undef pthread_create
40805 /* Override any GCC internal prototype to avoid an error.
40806 Use char because int might match the return type of a GCC
40807 builtin and then its argument prototype would still apply. */
40811 char pthread_create ();
40812 /* The GNU C library defines this for functions which it implements
40813 to always fail with ENOSYS. Some functions are actually named
40814 something starting with __ and the normal name is an alias. */
40815 #if defined __stub_pthread_create || defined __stub___pthread_create
40822 return pthread_create ();
40827 rm -f conftest.$ac_objext conftest$ac_exeext
40828 if { (ac_try="$ac_link"
40829 case "(($ac_try" in
40830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40831 *) ac_try_echo=$ac_try;;
40833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40834 (eval "$ac_link") 2>conftest.er1
40836 grep -v '^ *+' conftest.er1 >conftest.err
40838 cat conftest.err >&5
40839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840 (exit $ac_status); } && {
40841 test -z "$ac_c_werror_flag" ||
40842 test ! -s conftest.err
40843 } && test -s conftest$ac_exeext &&
40844 $as_test_x conftest$ac_exeext; then
40845 ac_cv_func_pthread_create=yes
40847 echo "$as_me: failed program was:" >&5
40848 sed 's/^/| /' conftest.$ac_ext >&5
40850 ac_cv_func_pthread_create=no
40853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40854 conftest$ac_exeext conftest.$ac_ext
40856 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40857 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40873 cat >>confdefs.h <<\_ACEOF
40878 CFLAGS=${CFLAGS--O}
40880 if test x$have_gcc = xyes ; then
40881 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40882 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40884 LDFLAGS=${LDFLAGS--O}
40885 DB_LIBS="${SQL_LFLAGS}"
40886 CPPFLAGS="$CPPFLAGS"
40913 PFILES="platforms/Makefile"
40917 hostname=`uname -n | cut -d '.' -f 1`
40918 if test x${hostname} = x ; then
40919 hostname="localhost"
40921 case "$DISTNAME" in
40924 PSCMD="ps -e -o pid,comm"
40925 PFILES="${PFILES} \
40926 platforms/aix/Makefile"
40927 TAPEDRIVE="/dev/rmt0.1"
40931 PTHREAD_LIB="-lpthread -lexc"
40932 if test "${CC}" = "gcc" ; then
40939 TAPEDRIVE="/dev/nrmt0"
40942 DISTVER=`uname -a |awk '{print $3}'`
40943 TAPEDRIVE="/dev/nrmt0"
40944 PTHREAD_LIB="-pthread"
40945 CFLAGS="${CFLAGS} -pthread"
40946 PSCMD="ps -ax -o pid,command"
40949 PFILES="${PFILES} \
40950 platforms/bsdi/Makefile \
40951 platforms/bsdi/bacula-fd \
40952 platforms/bsdi/bacula-sd \
40953 platforms/bsdi/bacula-dir"
40954 largefile_support="yes"
40957 DISTVER=`uname -a |awk '{print $3}'`
40958 TAPEDRIVE="/dev/nrst0"
40960 WCFLAGS="-mwindows"
40961 WLDFLAGS="-mwindows"
40965 TAPEDRIVE="/dev/nst0"
40966 PSCMD="ps -e -o pid,command"
40968 PFILES="${PFILES} \
40969 platforms/darwin/Makefile"
40972 ping -c 1 $hostname 2>&1 1>/dev/null
40973 if test ! $? = 0; then
40974 hostname="localhost"
40976 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40979 DISTVER=`cat /etc/debian_version`
40980 if test -f /etc/lsb-release ; then
40982 if test "x$DISTRIB_ID" != "x" ; then
40983 DISTNAME=$DISTRIB_ID
40985 if test "x$DISTRIB_RELEASE" != "x" ; then
40986 DISTVER=$DISTRIB_RELEASE
40989 if test "$DISTNAME" = "Ubuntu" ; then
40992 TAPEDRIVE="/dev/nst0"
40993 PSCMD="ps -e -o pid,command"
40994 if test "$DISTNAME" = "ubuntu" ; then
40995 PFILES="${PFILES} \
40996 platforms/ubuntu/Makefile \
40997 platforms/ubuntu/bacula-fd \
40998 platforms/ubuntu/bacula-sd \
40999 platforms/ubuntu/bacula-dir"
41001 PFILES="${PFILES} \
41002 platforms/debian/Makefile \
41003 platforms/debian/bacula-fd \
41004 platforms/debian/bacula-sd \
41005 platforms/debian/bacula-dir"
41009 ping -c 1 $hostname 2>&1 1>/dev/null
41010 if test ! $? = 0; then
41011 hostname="localhost"
41013 DISTVER=`uname -a |awk '{print $3}'`
41014 VER=`echo $DISTVER | cut -c 1`
41015 if test x$VER = x4 ; then
41016 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41017 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41021 TAPEDRIVE="/dev/nrsa0"
41022 PSCMD="ps -ax -o pid,command"
41023 PFILES="${PFILES} \
41024 platforms/freebsd/Makefile \
41025 platforms/freebsd/bacula-fd \
41026 platforms/freebsd/bacula-sd \
41027 platforms/freebsd/bacula-dir"
41028 largefile_support="yes"
41031 PSCMD="UNIX95=1; ps -e -o pid,comm"
41032 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41034 TAPEDRIVE="/dev/rmt/0hnb"
41035 PTHREAD_LIB="-lpthread"
41036 cat >>confdefs.h <<\_ACEOF
41037 #define _INCLUDE_LONGLONG 1
41043 TAPEDRIVE="/dev/rmt/0cbn"
41044 PSCMD="ps -e -o pid,comm"
41045 PFILES="${PFILES} \
41046 platforms/irix/Makefile \
41047 platforms/irix/bacula-fd \
41048 platforms/irix/bacula-sd \
41049 platforms/irix/bacula-dir"
41052 DISTVER=`uname -a |awk '{print $3}'`
41055 TAPEDRIVE="/dev/nrst0"
41056 PSCMD="ps -ax -o pid,command"
41057 PTHREAD_LIB="-pthread"
41058 CFLAGS="${CFLAGS} -pthread"
41061 DISTVER=`uname -a |awk '{print $3}'`
41064 TAPEDRIVE="/dev/nrst0"
41065 PSCMD="ps -ax -o pid,command"
41066 PTHREAD_LIB="-pthread"
41067 CFLAGS="${CFLAGS} -pthread"
41068 PFILES="${PFILES} \
41069 platforms/openbsd/Makefile \
41070 platforms/openbsd/bacula-fd \
41071 platforms/openbsd/bacula-sd \
41072 platforms/openbsd/bacula-dir"
41075 ping -c 1 $hostname 2>&1 1>/dev/null
41076 if test ! $? = 0; then
41077 hostname="localhost"
41079 if test -f /etc/whitebox-release ; then
41080 f=/etc/whitebox-release
41082 f=/etc/redhat-release
41084 if test `cat $f | grep release |\
41085 cut -f 3 -d ' '`x = "Enterprise"x ; then
41086 DISTVER="Enterprise "`cat $f | grep release |\
41089 DISTVER=`cat /etc/redhat-release | grep release |\
41092 TAPEDRIVE="/dev/nst0"
41093 PSCMD="ps -e -o pid,command"
41094 PFILES="${PFILES} \
41095 platforms/redhat/Makefile \
41096 platforms/redhat/bacula-fd \
41097 platforms/redhat/bacula-sd \
41098 platforms/redhat/bacula-dir \
41099 platforms/redhat/bacula.spec \
41103 ping -c 1 $hostname 2>&1 1>/dev/null
41104 if test ! $? = 0; then
41105 hostname="localhost"
41107 DISTVER=`cat /etc/mandrake-release | grep release |\
41109 TAPEDRIVE="/dev/nst0"
41110 PSCMD="ps -e -o pid,command"
41111 PFILES="${PFILES} \
41112 platforms/mandrake/Makefile \
41113 platforms/mandrake/bacula-fd \
41114 platforms/mandrake/bacula-sd \
41115 platforms/mandrake/bacula-dir \
41116 platforms/mandrake/bacula.spec \
41120 ping -c 1 $hostname 2>&1 1>/dev/null
41121 if test ! $? = 0; then
41122 hostname="localhost"
41124 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41125 TAPEDRIVE="/dev/nst0"
41126 PSCMD="ps -e -o pid,command"
41127 PFILES="${PFILES} \
41128 platforms/gentoo/Makefile \
41129 platforms/gentoo/bacula-init \
41130 platforms/gentoo/bacula-fd \
41131 platforms/gentoo/bacula-sd \
41132 platforms/gentoo/bacula-dir"
41135 ping -c 1 $hostname 2>&1 1>/dev/null
41136 if test ! $? = 0; then
41137 hostname="localhost"
41139 DISTVER=`cat /etc/slackware-version`
41140 TAPEDRIVE="/dev/nst0"
41141 PSCMD="ps -e -o pid,command"
41142 PFILES="${PFILES} \
41143 platforms/slackware/Makefile \
41144 platforms/slackware/rc.bacula-fd \
41145 platforms/slackware/rc.bacula-sd \
41146 platforms/slackware/rc.bacula-dir\
41147 platforms/slackware/functions.bacula"
41151 TAPEDRIVE="/dev/rmt/0cbn"
41152 PSCMD="ps -e -o pid,comm"
41153 PFILES="${PFILES} \
41154 platforms/solaris/Makefile \
41155 platforms/solaris/bacula-fd \
41156 platforms/solaris/bacula-sd \
41157 platforms/solaris/bacula-dir"
41158 if test x$DISTVER = x5.6 ; then
41159 cat >>confdefs.h <<\_ACEOF
41160 #define HAVE_OLD_SOCKOPT 1
41164 LIBS="$LIBS -lresolv"
41167 ping -c 1 $hostname 2>&1 1>/dev/null
41168 if test ! $? = 0; then
41169 hostname="localhost"
41171 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41173 TAPEDRIVE="/dev/nst0"
41174 PSCMD="ps -e -o pid,command"
41175 PFILES="${PFILES} \
41176 platforms/suse/Makefile \
41177 platforms/suse/bacula-fd \
41178 platforms/suse/bacula-sd \
41179 platforms/suse/bacula-dir \
41180 platforms/suse/bacula \
41181 platforms/suse/bacula.spec"
41184 ping -c 1 $hostname 2>&1 1>/dev/null
41185 if test ! $? = 0; then
41186 hostname="localhost"
41190 TAPEDRIVE="/dev/nst0"
41191 PSCMD="ps -e -o pid,command"
41192 PFILES="${PFILES} \
41193 platforms/suse/Makefile \
41194 platforms/suse/bacula-fd \
41195 platforms/suse/bacula-sd \
41196 platforms/suse/bacula-dir"
41200 TAPEDRIVE="/dev/nst0"
41203 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41209 LIBS="$PTHREAD_LIB $LIBS"
41211 cat >>confdefs.h <<_ACEOF
41215 cat >>confdefs.h <<_ACEOF
41226 MCOMMON=./autoconf/Make.common
41229 if test "x${subsysdir}" = "x${sbindir}" ; then
41232 echo "You have set both --sbindir and --with-subsys-dir"
41233 echo " equal to: ${subsysdir} "
41234 echo "This is not permitted. Please reconfigure."
41236 echo "Aborting configuration ..."
41242 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"
41244 ac_config_commands="$ac_config_commands default"
41246 cat >confcache <<\_ACEOF
41247 # This file is a shell script that caches the results of configure
41248 # tests run on this system so they can be shared between configure
41249 # scripts and configure runs, see configure's option --config-cache.
41250 # It is not useful on other systems. If it contains results you don't
41251 # want to keep, you may remove or edit it.
41253 # config.status only pays attention to the cache file if you give it
41254 # the --recheck option to rerun configure.
41256 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41258 # following values.
41262 # The following way of writing the cache mishandles newlines in values,
41263 # but we know of no workaround that is simple, portable, and efficient.
41264 # So, we kill variables containing newlines.
41265 # Ultrix sh set writes to stderr and can't be redirected directly,
41266 # and sets the high bit in the cache file unless we assign to the vars.
41268 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41269 eval ac_val=\$$ac_var
41273 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41274 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41277 _ | IFS | as_nl) ;; #(
41278 *) $as_unset $ac_var ;;
41284 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41285 *${as_nl}ac_space=\ *)
41286 # `set' does not quote correctly, so add quotes (double-quote
41287 # substitution turns \\\\ into \\, and sed turns \\ into \).
41290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41293 # `set' quotes correctly as required by POSIX, so do not add quotes.
41294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41303 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41305 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41307 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41308 if test -w "$cache_file"; then
41309 test "x$cache_file" != "x/dev/null" &&
41310 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41311 echo "$as_me: updating cache $cache_file" >&6;}
41312 cat confcache >$cache_file
41314 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41315 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41321 # Let make expand exec_prefix.
41322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41324 DEFS=-DHAVE_CONFIG_H
41328 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41329 # 1. Remove the extension, and $U if already installed.
41330 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41331 ac_i=`echo "$ac_i" | sed "$ac_script"`
41332 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41333 # will be set to the directory where LIBOBJS objects are built.
41334 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41335 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41337 LIBOBJS=$ac_libobjs
41339 LTLIBOBJS=$ac_ltlibobjs
41343 : ${CONFIG_STATUS=./config.status}
41344 ac_clean_files_save=$ac_clean_files
41345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41346 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41347 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41348 cat >$CONFIG_STATUS <<_ACEOF
41350 # Generated by $as_me.
41351 # Run this file to recreate the current configuration.
41352 # Compiler output produced by configure, useful for debugging
41353 # configure, is in config.log if it exists.
41356 ac_cs_recheck=false
41358 SHELL=\${CONFIG_SHELL-$SHELL}
41361 cat >>$CONFIG_STATUS <<\_ACEOF
41362 ## --------------------- ##
41363 ## M4sh Initialization. ##
41364 ## --------------------- ##
41366 # Be more Bourne compatible
41367 DUALCASE=1; export DUALCASE # for MKS sh
41368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41371 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41372 # is contrary to our usage. Disable this feature.
41373 alias -g '${1+"$@"}'='"$@"'
41374 setopt NO_GLOB_SUBST
41376 case `(set -o) 2>/dev/null` in
41377 *posix*) set -o posix ;;
41386 # Avoid depending upon Character Ranges.
41387 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41388 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41389 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41390 as_cr_digits='0123456789'
41391 as_cr_alnum=$as_cr_Letters$as_cr_digits
41393 # The user is always right.
41394 if test "${PATH_SEPARATOR+set}" != set; then
41395 echo "#! /bin/sh" >conf$$.sh
41396 echo "exit 0" >>conf$$.sh
41398 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41406 # Support unset when possible.
41407 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41415 # We need space, tab and new line, in precisely that order. Quoting is
41416 # there to prevent editors from complaining about space-tab.
41417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41418 # splitting by setting IFS to empty value.)
41423 # Find who we are. Look in the path if we contain no directory separator.
41425 *[\\/]* ) as_myself=$0 ;;
41426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41427 for as_dir in $PATH
41430 test -z "$as_dir" && as_dir=.
41431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41437 # We did not find ourselves, most probably we were run as `sh COMMAND'
41438 # in which case we are not to be found in the path.
41439 if test "x$as_myself" = x; then
41442 if test ! -f "$as_myself"; then
41443 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41444 { (exit 1); exit 1; }
41447 # Work around bugs in pre-3.0 UWIN ksh.
41448 for as_var in ENV MAIL MAILPATH
41449 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41457 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41458 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41459 LC_TELEPHONE LC_TIME
41461 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41462 eval $as_var=C; export $as_var
41464 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41468 # Required to use basename.
41469 if expr a : '\(a\)' >/dev/null 2>&1 &&
41470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41477 as_basename=basename
41483 # Name of the executable.
41484 as_me=`$as_basename -- "$0" ||
41485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41486 X"$0" : 'X\(//\)$' \| \
41487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41489 sed '/^.*\/\([^/][^/]*\)\/*$/{
41508 as_lineno_1=$LINENO
41509 as_lineno_2=$LINENO
41510 test "x$as_lineno_1" != "x$as_lineno_2" &&
41511 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41513 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41514 # uniformly replaced by the line number. The first 'sed' inserts a
41515 # line-number line after each line using $LINENO; the second 'sed'
41516 # does the real work. The second script uses 'N' to pair each
41517 # line-number line with the line containing $LINENO, and appends
41518 # trailing '-' during substitution so that $LINENO is not a special
41519 # case at line end.
41520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41521 # scripts with optimization help from Paolo Bonzini. Blame Lee
41522 # E. McMahon (1931-1989) for sed's syntax. :-)
41534 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41537 ' >$as_me.lineno &&
41538 chmod +x "$as_me.lineno" ||
41539 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41540 { (exit 1); exit 1; }; }
41542 # Don't try to exec as it changes $[0], causing all sort of problems
41543 # (the dirname of $[0] is not the place where we might find the
41544 # original and so on. Autoconf is especially sensitive to this).
41545 . "./$as_me.lineno"
41546 # Exit status is that of the last command.
41551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41557 ECHO_C= ECHO_N= ECHO_T=
41558 case `echo -n x` in
41560 case `echo 'x\c'` in
41561 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41568 if expr a : '\(a\)' >/dev/null 2>&1 &&
41569 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41575 rm -f conf$$ conf$$.exe conf$$.file
41576 if test -d conf$$.dir; then
41577 rm -f conf$$.dir/conf$$.file
41583 if ln -s conf$$.file conf$$ 2>/dev/null; then
41585 # ... but there are two gotchas:
41586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41588 # In both cases, we have to default to `cp -p'.
41589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41591 elif ln conf$$.file conf$$ 2>/dev/null; then
41596 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41597 rmdir conf$$.dir 2>/dev/null
41599 if mkdir -p . 2>/dev/null; then
41602 test -d ./-p && rmdir ./-p
41606 if test -x / >/dev/null 2>&1; then
41607 as_test_x='test -x'
41609 if ls -dL / >/dev/null 2>&1; then
41616 if test -d "$1"; then
41622 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41623 ???[sx]*):;;*)false;;esac;fi
41627 as_executable_p=$as_test_x
41629 # Sed expression to map a string onto a valid CPP name.
41630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41632 # Sed expression to map a string onto a valid variable name.
41633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41638 # Save the log message, to keep $[0] and so on meaningful, and to
41639 # report actual input values of CONFIG_FILES etc. instead of their
41640 # values after options handling.
41642 This file was extended by $as_me, which was
41643 generated by GNU Autoconf 2.61. Invocation command line was
41645 CONFIG_FILES = $CONFIG_FILES
41646 CONFIG_HEADERS = $CONFIG_HEADERS
41647 CONFIG_LINKS = $CONFIG_LINKS
41648 CONFIG_COMMANDS = $CONFIG_COMMANDS
41651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41656 cat >>$CONFIG_STATUS <<_ACEOF
41657 # Files that config.status was made for.
41658 config_files="$ac_config_files"
41659 config_headers="$ac_config_headers"
41660 config_commands="$ac_config_commands"
41664 cat >>$CONFIG_STATUS <<\_ACEOF
41666 \`$as_me' instantiates files from templates according to the
41667 current configuration.
41669 Usage: $0 [OPTIONS] [FILE]...
41671 -h, --help print this help, then exit
41672 -V, --version print version number and configuration settings, then exit
41673 -q, --quiet do not print progress messages
41674 -d, --debug don't remove temporary files
41675 --recheck update $as_me by reconfiguring in the same conditions
41676 --file=FILE[:TEMPLATE]
41677 instantiate the configuration file FILE
41678 --header=FILE[:TEMPLATE]
41679 instantiate the configuration header FILE
41681 Configuration files:
41684 Configuration headers:
41687 Configuration commands:
41690 Report bugs to <bug-autoconf@gnu.org>."
41693 cat >>$CONFIG_STATUS <<_ACEOF
41696 configured by $0, generated by GNU Autoconf 2.61,
41697 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41699 Copyright (C) 2006 Free Software Foundation, Inc.
41700 This config.status script is free software; the Free Software Foundation
41701 gives unlimited permission to copy, distribute and modify it."
41708 cat >>$CONFIG_STATUS <<\_ACEOF
41709 # If no file are specified by the user, then we need to provide default
41710 # value. By we need to know if files were specified by the user.
41716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41717 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41728 # Handling of the options.
41729 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41731 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41732 echo "$ac_cs_version"; exit ;;
41733 --debug | --debu | --deb | --de | --d | -d )
41735 --file | --fil | --fi | --f )
41737 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41738 ac_need_defaults=false;;
41739 --header | --heade | --head | --hea )
41741 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41742 ac_need_defaults=false;;
41744 # Conflict between --help and --header
41745 { echo "$as_me: error: ambiguous option: $1
41746 Try \`$0 --help' for more information." >&2
41747 { (exit 1); exit 1; }; };;
41748 --help | --hel | -h )
41749 echo "$ac_cs_usage"; exit ;;
41750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41751 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41754 # This is an error.
41755 -*) { echo "$as_me: error: unrecognized option: $1
41756 Try \`$0 --help' for more information." >&2
41757 { (exit 1); exit 1; }; } ;;
41759 *) ac_config_targets="$ac_config_targets $1"
41760 ac_need_defaults=false ;;
41766 ac_configure_extra_args=
41768 if $ac_cs_silent; then
41770 ac_configure_extra_args="$ac_configure_extra_args --silent"
41774 cat >>$CONFIG_STATUS <<_ACEOF
41775 if \$ac_cs_recheck; then
41776 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41777 CONFIG_SHELL=$SHELL
41778 export CONFIG_SHELL
41779 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41783 cat >>$CONFIG_STATUS <<\_ACEOF
41787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41788 ## Running $as_me. ##
41794 cat >>$CONFIG_STATUS <<_ACEOF
41800 # The HP-UX ksh and POSIX shell print the target directory to stdout
41801 # if CDPATH is set.
41802 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41804 sed_quote_subst='$sed_quote_subst'
41805 double_quote_subst='$double_quote_subst'
41806 delay_variable_subst='$delay_variable_subst'
41807 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41808 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41809 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41810 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41811 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41812 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41813 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41814 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41815 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41816 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41817 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41818 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41819 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41820 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41821 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41822 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41823 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41824 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41825 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41826 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41827 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41828 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41829 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41831 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41832 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41833 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41834 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41835 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41836 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41837 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41838 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41839 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41840 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41841 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41842 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41843 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41844 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41845 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41846 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41847 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41848 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41849 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41850 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41851 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"`'
41852 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"`'
41853 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41854 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41855 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41856 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41857 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41858 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41859 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41860 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41861 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41862 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41863 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41864 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41865 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41866 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41867 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41868 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41869 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41870 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41871 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41872 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41873 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41874 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41875 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41876 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41877 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41878 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41879 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41880 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41881 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41882 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41883 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41884 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41885 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41886 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41887 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41888 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41889 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41890 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41891 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41892 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41893 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41894 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41895 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41896 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41897 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41898 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41899 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41900 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41901 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41902 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41903 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41904 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41905 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41906 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41907 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41908 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41909 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41910 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41911 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41912 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41913 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41914 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41915 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41916 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41917 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41918 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41919 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41920 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41921 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41922 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41923 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41924 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41925 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41926 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41927 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41928 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41929 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41930 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41931 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41959 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41961 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41962 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41963 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41964 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41965 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41966 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41967 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41968 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41969 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41970 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41971 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41972 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41973 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41974 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41975 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41976 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41977 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41980 LTCFLAGS='$LTCFLAGS'
41981 compiler='$compiler_DEFAULT'
41983 # Quote evaled strings.
41995 deplibs_check_method \
42004 lt_cv_sys_global_symbol_pipe \
42005 lt_cv_sys_global_symbol_to_cdecl \
42006 lt_cv_sys_global_symbol_to_c_name_address \
42007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42010 lt_prog_compiler_no_builtin_flag \
42011 lt_prog_compiler_wl \
42012 lt_prog_compiler_pic \
42013 lt_prog_compiler_static \
42014 lt_cv_prog_compiler_c_o \
42022 export_dynamic_flag_spec \
42023 whole_archive_flag_spec \
42024 compiler_needs_object \
42026 allow_undefined_flag \
42027 no_undefined_flag \
42028 hardcode_libdir_flag_spec \
42029 hardcode_libdir_flag_spec_ld \
42030 hardcode_libdir_separator \
42035 variables_saved_for_relink \
42037 library_names_spec \
42042 compiler_lib_search_dirs \
42047 compiler_lib_search_path \
42050 lt_prog_compiler_no_builtin_flag_CXX \
42051 lt_prog_compiler_wl_CXX \
42052 lt_prog_compiler_pic_CXX \
42053 lt_prog_compiler_static_CXX \
42054 lt_cv_prog_compiler_c_o_CXX \
42055 export_dynamic_flag_spec_CXX \
42056 whole_archive_flag_spec_CXX \
42057 compiler_needs_object_CXX \
42059 allow_undefined_flag_CXX \
42060 no_undefined_flag_CXX \
42061 hardcode_libdir_flag_spec_CXX \
42062 hardcode_libdir_flag_spec_ld_CXX \
42063 hardcode_libdir_separator_CXX \
42064 fix_srcfile_path_CXX \
42065 exclude_expsyms_CXX \
42066 include_expsyms_CXX \
42067 file_list_spec_CXX \
42068 compiler_lib_search_dirs_CXX \
42069 predep_objects_CXX \
42070 postdep_objects_CXX \
42073 compiler_lib_search_path_CXX; do
42074 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42075 *[\\\\\\\`\\"\\\$]*)
42076 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42079 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42084 # Double-quote double-evaled strings.
42085 for var in reload_cmds \
42086 old_postinstall_cmds \
42087 old_postuninstall_cmds \
42089 extract_expsyms_cmds \
42090 old_archive_from_new_cmds \
42091 old_archive_from_expsyms_cmds \
42093 archive_expsym_cmds \
42095 module_expsym_cmds \
42096 export_symbols_cmds \
42099 postuninstall_cmds \
42101 sys_lib_search_path_spec \
42102 sys_lib_dlsearch_path_spec \
42103 old_archive_cmds_CXX \
42104 old_archive_from_new_cmds_CXX \
42105 old_archive_from_expsyms_cmds_CXX \
42107 archive_expsym_cmds_CXX \
42109 module_expsym_cmds_CXX \
42110 export_symbols_cmds_CXX \
42111 prelink_cmds_CXX; do
42112 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42113 *[\\\\\\\`\\"\\\$]*)
42114 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42117 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42122 # Fix-up fallback echo if it was mangled by the above quoting rules.
42124 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42128 ac_aux_dir='$ac_aux_dir'
42129 xsi_shell='$xsi_shell'
42130 lt_shell_append='$lt_shell_append'
42132 # See if we are running on zsh, and set the options which allow our
42133 # commands through without removal of \ escapes INIT.
42134 if test -n "\${ZSH_VERSION+set}" ; then
42135 setopt NO_GLOB_SUBST
42141 TIMESTAMP='$TIMESTAMP'
42149 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42150 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42152 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42153 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42154 LINGUAS="${LINGUAS-%UNSET%}"
42159 cat >>$CONFIG_STATUS <<\_ACEOF
42161 # Handling of arguments.
42162 for ac_config_target in $ac_config_targets
42164 case $ac_config_target in
42165 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42166 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42167 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42168 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42169 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42170 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42171 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42172 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42173 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42174 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42175 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42176 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42177 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42178 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42179 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42180 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42181 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42182 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42183 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42184 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42185 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42186 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42187 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42188 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42189 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42190 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42191 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42192 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42193 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42194 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42195 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42196 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42197 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42198 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42199 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42200 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42201 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42202 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42203 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42204 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42205 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42206 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42207 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42208 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42209 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42210 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42211 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42212 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42213 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42214 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42215 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42216 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42217 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42218 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42219 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42220 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42221 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42222 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42223 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42224 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42225 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42226 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42227 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42228 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42229 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42230 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42231 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42232 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42233 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42234 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42235 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42236 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42237 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42238 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42239 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42240 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42241 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42242 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42243 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42244 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42245 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42246 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42247 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42248 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42249 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42250 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42251 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42252 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42253 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42254 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42255 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42256 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42257 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42258 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42259 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42260 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42261 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42262 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42263 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42264 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42265 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42266 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42267 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42268 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42269 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42270 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42271 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42272 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42273 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42274 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42275 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42276 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42277 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42279 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42280 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42281 { (exit 1); exit 1; }; };;
42286 # If the user did not use the arguments to specify the items to instantiate,
42287 # then the envvar interface is used. Set only those that are not.
42288 # We use the long form for the default assignment because of an extremely
42289 # bizarre bug on SunOS 4.1.3.
42290 if $ac_need_defaults; then
42291 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42292 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42293 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42296 # Have a temporary directory for convenience. Make it in the build tree
42297 # simply because there is no reason against having it here, and in addition,
42298 # creating and moving files from /tmp can sometimes cause problems.
42299 # Hook for its removal unless debugging.
42300 # Note that there is a small window in which the directory will not be cleaned:
42301 # after its creation but before its name has been assigned to `$tmp'.
42305 trap 'exit_status=$?
42306 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42308 trap '{ (exit 1); exit 1; }' 1 2 13 15
42310 # Create a (secure) tmp directory for tmp files.
42313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42314 test -n "$tmp" && test -d "$tmp"
42317 tmp=./conf$$-$RANDOM
42318 (umask 077 && mkdir "$tmp")
42321 echo "$me: cannot create a temporary directory in ." >&2
42322 { (exit 1); exit 1; }
42326 # Set up the sed scripts for CONFIG_FILES section.
42329 # No need to generate the scripts if there are no CONFIG_FILES.
42330 # This happens for instance when ./config.status config.h
42331 if test -n "$CONFIG_FILES"; then
42335 # Create sed commands to just substitute file output variables.
42337 # Remaining file output variables are in a fragment that also has non-file
42343 for ac_last_try in false false false false false :; do
42344 cat >conf$$subs.sed <<_ACEOF
42345 SHELL!$SHELL$ac_delim
42346 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42347 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42348 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42349 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42350 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42351 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42352 exec_prefix!$exec_prefix$ac_delim
42353 prefix!$prefix$ac_delim
42354 program_transform_name!$program_transform_name$ac_delim
42355 bindir!$bindir$ac_delim
42356 sbindir!$sbindir$ac_delim
42357 libexecdir!$libexecdir$ac_delim
42358 datarootdir!$datarootdir$ac_delim
42359 datadir!$datadir$ac_delim
42360 sysconfdir!$sysconfdir$ac_delim
42361 sharedstatedir!$sharedstatedir$ac_delim
42362 localstatedir!$localstatedir$ac_delim
42363 includedir!$includedir$ac_delim
42364 oldincludedir!$oldincludedir$ac_delim
42365 docdir!$docdir$ac_delim
42366 infodir!$infodir$ac_delim
42367 htmldir!$htmldir$ac_delim
42368 dvidir!$dvidir$ac_delim
42369 pdfdir!$pdfdir$ac_delim
42370 psdir!$psdir$ac_delim
42371 libdir!$libdir$ac_delim
42372 localedir!$localedir$ac_delim
42373 mandir!$mandir$ac_delim
42374 DEFS!$DEFS$ac_delim
42375 ECHO_C!$ECHO_C$ac_delim
42376 ECHO_N!$ECHO_N$ac_delim
42377 ECHO_T!$ECHO_T$ac_delim
42378 LIBS!$LIBS$ac_delim
42379 build_alias!$build_alias$ac_delim
42380 host_alias!$host_alias$ac_delim
42381 target_alias!$target_alias$ac_delim
42382 BUILD_DIR!$BUILD_DIR$ac_delim
42383 TOP_DIR!$TOP_DIR$ac_delim
42384 TRUEPRG!$TRUEPRG$ac_delim
42385 FALSEPRG!$FALSEPRG$ac_delim
42386 VERSION!$VERSION$ac_delim
42387 DATE!$DATE$ac_delim
42388 LSMDATE!$LSMDATE$ac_delim
42389 BACULA!$BACULA$ac_delim
42390 post_host!$post_host$ac_delim
42392 CFLAGS!$CFLAGS$ac_delim
42393 LDFLAGS!$LDFLAGS$ac_delim
42394 CPPFLAGS!$CPPFLAGS$ac_delim
42395 ac_ct_CC!$ac_ct_CC$ac_delim
42396 EXEEXT!$EXEEXT$ac_delim
42397 OBJEXT!$OBJEXT$ac_delim
42399 CXXFLAGS!$CXXFLAGS$ac_delim
42400 ac_ct_CXX!$ac_ct_CXX$ac_delim
42402 GREP!$GREP$ac_delim
42403 EGREP!$EGREP$ac_delim
42404 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42405 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42406 INSTALL_DATA!$INSTALL_DATA$ac_delim
42408 REMOVE!$REMOVE$ac_delim
42411 ECHO!$ECHO$ac_delim
42415 OPENSSL!$OPENSSL$ac_delim
42418 MKISOFS!$MKISOFS$ac_delim
42419 PYTHON!$PYTHON$ac_delim
42420 GROWISOFS!$GROWISOFS$ac_delim
42421 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42422 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42423 PKGCONFIG!$PKGCONFIG$ac_delim
42424 QMAKE!$QMAKE$ac_delim
42425 QMAKEQT4!$QMAKEQT4$ac_delim
42426 WXCONFIG!$WXCONFIG$ac_delim
42427 WXFLAGS!$WXFLAGS$ac_delim
42428 CDRECORD!$CDRECORD$ac_delim
42429 PIDOF!$PIDOF$ac_delim
42431 ARFLAGS!$ARFLAGS$ac_delim
42432 MAKE_SHELL!$MAKE_SHELL$ac_delim
42433 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42434 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42435 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42436 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42437 LIBTOOL!$LIBTOOL$ac_delim
42438 build!$build$ac_delim
42441 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42443 elif $ac_last_try; then
42444 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42445 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42446 { (exit 1); exit 1; }; }
42448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42452 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42453 if test -n "$ac_eof"; then
42454 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42455 ac_eof=`expr $ac_eof + 1`
42458 cat >>$CONFIG_STATUS <<_ACEOF
42459 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42461 /^[ ]*@MCOMMON@[ ]*$/{
42467 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42468 s/^/s,@/; s/!/@,|#_!!_#|/
42471 s/'"$ac_delim"'$/,g/; t
42473 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42474 ' >>$CONFIG_STATUS <conf$$subs.sed
42475 rm -f conf$$subs.sed
42476 cat >>$CONFIG_STATUS <<_ACEOF
42482 for ac_last_try in false false false false false :; do
42483 cat >conf$$subs.sed <<_ACEOF
42484 build_cpu!$build_cpu$ac_delim
42485 build_vendor!$build_vendor$ac_delim
42486 build_os!$build_os$ac_delim
42487 host!$host$ac_delim
42488 host_cpu!$host_cpu$ac_delim
42489 host_vendor!$host_vendor$ac_delim
42490 host_os!$host_os$ac_delim
42491 FGREP!$FGREP$ac_delim
42493 DUMPBIN!$DUMPBIN$ac_delim
42494 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42496 LN_S!$LN_S$ac_delim
42497 OBJDUMP!$OBJDUMP$ac_delim
42498 STRIP!$STRIP$ac_delim
42499 RANLIB!$RANLIB$ac_delim
42500 lt_ECHO!$lt_ECHO$ac_delim
42501 DSYMUTIL!$DSYMUTIL$ac_delim
42502 NMEDIT!$NMEDIT$ac_delim
42503 LIPO!$LIPO$ac_delim
42504 OTOOL!$OTOOL$ac_delim
42505 OTOOL64!$OTOOL64$ac_delim
42506 CXXCPP!$CXXCPP$ac_delim
42507 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42508 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42509 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42510 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42511 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42512 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42513 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42514 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42515 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42516 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42517 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42518 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42519 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42520 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42521 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42522 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42523 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42524 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42525 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42526 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42527 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42528 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42529 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42530 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42531 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42532 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42533 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42534 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42535 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42536 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42537 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42538 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42539 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42540 SET_MAKE!$SET_MAKE$ac_delim
42541 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42542 USE_NLS!$USE_NLS$ac_delim
42543 MSGFMT!$MSGFMT$ac_delim
42544 GMSGFMT!$GMSGFMT$ac_delim
42545 XGETTEXT!$XGETTEXT$ac_delim
42546 MSGMERGE!$MSGMERGE$ac_delim
42547 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42548 LIBICONV!$LIBICONV$ac_delim
42549 LTLIBICONV!$LTLIBICONV$ac_delim
42550 INTLLIBS!$INTLLIBS$ac_delim
42551 LIBINTL!$LIBINTL$ac_delim
42552 LTLIBINTL!$LTLIBINTL$ac_delim
42553 POSUB!$POSUB$ac_delim
42554 GLIBC2!$GLIBC2$ac_delim
42555 ALLOCA!$ALLOCA$ac_delim
42556 GLIBC21!$GLIBC21$ac_delim
42557 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42558 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42559 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42560 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42561 INTLBISON!$INTLBISON$ac_delim
42562 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42563 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42564 CATOBJEXT!$CATOBJEXT$ac_delim
42565 DATADIRNAME!$DATADIRNAME$ac_delim
42566 INSTOBJEXT!$INSTOBJEXT$ac_delim
42567 GENCAT!$GENCAT$ac_delim
42568 INTLOBJS!$INTLOBJS$ac_delim
42569 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42570 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42571 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42572 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42573 GNOME_LIBS!$GNOME_LIBS$ac_delim
42574 GNOME_DIR!$GNOME_DIR$ac_delim
42575 BAT_DIR!$BAT_DIR$ac_delim
42576 QWT_INC!$QWT_INC$ac_delim
42577 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42578 QWT_LIB!$QWT_LIB$ac_delim
42580 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42585 elif $ac_last_try; then
42586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42587 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42588 { (exit 1); exit 1; }; }
42590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42594 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42595 if test -n "$ac_eof"; then
42596 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42597 ac_eof=`expr $ac_eof + 1`
42600 cat >>$CONFIG_STATUS <<_ACEOF
42601 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42605 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42606 s/^/s,@/; s/!/@,|#_!!_#|/
42609 s/'"$ac_delim"'$/,g/; t
42611 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42612 ' >>$CONFIG_STATUS <conf$$subs.sed
42613 rm -f conf$$subs.sed
42614 cat >>$CONFIG_STATUS <<_ACEOF
42620 for ac_last_try in false false false false false :; do
42621 cat >conf$$subs.sed <<_ACEOF
42622 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42623 WX_DIR!$WX_DIR$ac_delim
42624 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42625 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42626 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42627 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42628 STATIC_FD!$STATIC_FD$ac_delim
42629 STATIC_SD!$STATIC_SD$ac_delim
42630 STATIC_DIR!$STATIC_DIR$ac_delim
42631 STATIC_CONS!$STATIC_CONS$ac_delim
42632 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42633 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42634 ALL_DIRS!$ALL_DIRS$ac_delim
42635 DIRD_DIR!$DIRD_DIR$ac_delim
42636 DIR_TOOLS!$DIR_TOOLS$ac_delim
42637 STORED_DIR!$STORED_DIR$ac_delim
42638 CONS_INC!$CONS_INC$ac_delim
42639 CONS_OBJ!$CONS_OBJ$ac_delim
42640 CONS_SRC!$CONS_SRC$ac_delim
42641 CONS_LIBS!$CONS_LIBS$ac_delim
42642 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42643 READLINE_SRC!$READLINE_SRC$ac_delim
42644 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42645 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42646 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42647 OPENSSL_INC!$OPENSSL_INC$ac_delim
42648 working_dir!$working_dir$ac_delim
42649 archivedir!$archivedir$ac_delim
42650 scriptdir!$scriptdir$ac_delim
42651 plugindir!$plugindir$ac_delim
42652 dump_email!$dump_email$ac_delim
42653 job_email!$job_email$ac_delim
42654 smtp_host!$smtp_host$ac_delim
42655 piddir!$piddir$ac_delim
42656 subsysdir!$subsysdir$ac_delim
42657 baseport!$baseport$ac_delim
42658 dir_port!$dir_port$ac_delim
42659 fd_port!$fd_port$ac_delim
42660 sd_port!$sd_port$ac_delim
42661 dir_password!$dir_password$ac_delim
42662 fd_password!$fd_password$ac_delim
42663 sd_password!$sd_password$ac_delim
42664 mon_dir_password!$mon_dir_password$ac_delim
42665 mon_fd_password!$mon_fd_password$ac_delim
42666 mon_sd_password!$mon_sd_password$ac_delim
42667 db_name!$db_name$ac_delim
42668 db_user!$db_user$ac_delim
42669 db_password!$db_password$ac_delim
42670 db_port!$db_port$ac_delim
42671 dir_user!$dir_user$ac_delim
42672 dir_group!$dir_group$ac_delim
42673 sd_user!$sd_user$ac_delim
42674 sd_group!$sd_group$ac_delim
42675 fd_user!$fd_user$ac_delim
42676 fd_group!$fd_group$ac_delim
42677 SBINPERM!$SBINPERM$ac_delim
42678 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42679 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42680 SQL_BINDIR!$SQL_BINDIR$ac_delim
42681 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42682 uncomment_dbi!$uncomment_dbi$ac_delim
42683 DB_PROG!$DB_PROG$ac_delim
42684 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42685 cats!$cats$ac_delim
42686 DB_TYPE!$DB_TYPE$ac_delim
42687 GETCONF!$GETCONF$ac_delim
42688 XMKMF!$XMKMF$ac_delim
42689 X_CFLAGS!$X_CFLAGS$ac_delim
42690 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42691 X_LIBS!$X_LIBS$ac_delim
42692 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42693 LIBOBJS!$LIBOBJS$ac_delim
42694 FDLIBS!$FDLIBS$ac_delim
42695 DEBUG!$DEBUG$ac_delim
42696 DINCLUDE!$DINCLUDE$ac_delim
42697 DLIB!$DLIB$ac_delim
42698 DB_LIBS!$DB_LIBS$ac_delim
42699 WCFLAGS!$WCFLAGS$ac_delim
42700 WLDFLAGS!$WLDFLAGS$ac_delim
42701 WRAPLIBS!$WRAPLIBS$ac_delim
42702 OBJLIST!$OBJLIST$ac_delim
42703 hostname!$hostname$ac_delim
42704 TAPEDRIVE!$TAPEDRIVE$ac_delim
42705 PSCMD!$PSCMD$ac_delim
42706 WIN32!$WIN32$ac_delim
42707 MACOSX!$MACOSX$ac_delim
42708 DISTNAME!$DISTNAME$ac_delim
42709 DISTVER!$DISTVER$ac_delim
42710 LTLIBOBJS!$LTLIBOBJS$ac_delim
42713 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42715 elif $ac_last_try; then
42716 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42717 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42718 { (exit 1); exit 1; }; }
42720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42724 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42725 if test -n "$ac_eof"; then
42726 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42727 ac_eof=`expr $ac_eof + 1`
42730 cat >>$CONFIG_STATUS <<_ACEOF
42731 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42732 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42735 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42736 s/^/s,@/; s/!/@,|#_!!_#|/
42739 s/'"$ac_delim"'$/,g/; t
42741 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42742 ' >>$CONFIG_STATUS <conf$$subs.sed
42743 rm -f conf$$subs.sed
42744 cat >>$CONFIG_STATUS <<_ACEOF
42751 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42752 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42753 # trailing colons and then remove the whole line if VPATH becomes empty
42754 # (actually we leave an empty line to preserve line numbers).
42755 if test "x$srcdir" = x.; then
42756 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42757 s/:*\$(srcdir):*/:/
42758 s/:*\${srcdir}:*/:/
42760 s/^\([^=]*=[ ]*\):*/\1/
42766 cat >>$CONFIG_STATUS <<\_ACEOF
42767 fi # test -n "$CONFIG_FILES"
42770 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
42773 :[FHLC]) ac_mode=$ac_tag; continue;;
42775 case $ac_mode$ac_tag in
42777 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42778 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42779 { (exit 1); exit 1; }; };;
42780 :[FH]-) ac_tag=-:-;;
42781 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42798 -) ac_f="$tmp/stdin";;
42799 *) # Look for the file first in the build tree, then in the source tree
42800 # (if the path is not absolute). The absolute path cannot be DOS-style,
42801 # because $ac_f cannot contain `:'.
42805 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42807 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42808 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42809 { (exit 1); exit 1; }; };;
42811 ac_file_inputs="$ac_file_inputs $ac_f"
42814 # Let's still pretend it is `configure' which instantiates (i.e., don't
42815 # use $as_me), people would be surprised to read:
42816 # /* config.h. Generated by config.status. */
42817 configure_input="Generated from "`IFS=:
42818 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42819 if test x"$ac_file" != x-; then
42820 configure_input="$ac_file. $configure_input"
42821 { echo "$as_me:$LINENO: creating $ac_file" >&5
42822 echo "$as_me: creating $ac_file" >&6;}
42826 *:-:* | *:-) cat >"$tmp/stdin";;
42831 ac_dir=`$as_dirname -- "$ac_file" ||
42832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42833 X"$ac_file" : 'X\(//\)[^/]' \| \
42834 X"$ac_file" : 'X\(//\)$' \| \
42835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42841 /^X\(\/\/\)[^/].*/{
42856 -*) as_dir=./$as_dir;;
42858 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42862 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42863 *) as_qdir=$as_dir;;
42865 as_dirs="'$as_qdir' $as_dirs"
42866 as_dir=`$as_dirname -- "$as_dir" ||
42867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42868 X"$as_dir" : 'X\(//\)[^/]' \| \
42869 X"$as_dir" : 'X\(//\)$' \| \
42870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42876 /^X\(\/\/\)[^/].*/{
42889 test -d "$as_dir" && break
42891 test -z "$as_dirs" || eval "mkdir $as_dirs"
42892 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42893 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42894 { (exit 1); exit 1; }; }; }
42898 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42901 # A ".." for each directory in $ac_dir_suffix.
42902 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42903 case $ac_top_builddir_sub in
42904 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42905 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42908 ac_abs_top_builddir=$ac_pwd
42909 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42910 # for backward compatibility:
42911 ac_top_builddir=$ac_top_build_prefix
42914 .) # We are building in place.
42916 ac_top_srcdir=$ac_top_builddir_sub
42917 ac_abs_top_srcdir=$ac_pwd ;;
42918 [\\/]* | ?:[\\/]* ) # Absolute name.
42919 ac_srcdir=$srcdir$ac_dir_suffix;
42920 ac_top_srcdir=$srcdir
42921 ac_abs_top_srcdir=$srcdir ;;
42922 *) # Relative name.
42923 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42924 ac_top_srcdir=$ac_top_build_prefix$srcdir
42925 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42927 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42937 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42938 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42942 cat >>$CONFIG_STATUS <<\_ACEOF
42943 # If the template does not know about datarootdir, expand it.
42944 # FIXME: This hack should be removed a few years after 2.60.
42945 ac_datarootdir_hack=; ac_datarootdir_seen=
42947 case `sed -n '/datarootdir/ {
42956 ' $ac_file_inputs` in
42957 *datarootdir*) ac_datarootdir_seen=yes;;
42958 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42959 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42960 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42962 cat >>$CONFIG_STATUS <<_ACEOF
42963 ac_datarootdir_hack='
42964 s&@datadir@&$datadir&g
42965 s&@docdir@&$docdir&g
42966 s&@infodir@&$infodir&g
42967 s&@localedir@&$localedir&g
42968 s&@mandir@&$mandir&g
42969 s&\\\${datarootdir}&$datarootdir&g' ;;
42973 # Neutralize VPATH when `$srcdir' = `.'.
42974 # Shell code in configure.ac might set extrasub.
42975 # FIXME: do we really want to maintain this feature?
42976 cat >>$CONFIG_STATUS <<_ACEOF
42980 cat >>$CONFIG_STATUS <<\_ACEOF
42982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42983 s&@configure_input@&$configure_input&;t t
42984 s&@top_builddir@&$ac_top_builddir_sub&;t t
42985 s&@srcdir@&$ac_srcdir&;t t
42986 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42987 s&@top_srcdir@&$ac_top_srcdir&;t t
42988 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42989 s&@builddir@&$ac_builddir&;t t
42990 s&@abs_builddir@&$ac_abs_builddir&;t t
42991 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42992 s&@INSTALL@&$ac_INSTALL&;t t
42993 $ac_datarootdir_hack
42994 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42996 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42997 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42998 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42999 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43000 which seems to be undefined. Please make sure it is defined." >&5
43001 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43002 which seems to be undefined. Please make sure it is defined." >&2;}
43006 -) cat "$tmp/out"; rm -f "$tmp/out";;
43007 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43016 # Transform confdefs.h into a sed script `conftest.defines', that
43017 # substitutes the proper values into config.h.in to produce config.h.
43018 rm -f conftest.defines conftest.tail
43019 # First, append a space to every undef/define line, to ease matching.
43020 echo 's/$/ /' >conftest.defines
43021 # Then, protect against being on the right side of a sed subst, or in
43022 # an unquoted here document, in config.status. If some macros were
43023 # called several times there might be several #defines for the same
43024 # symbol, which is useless. But do not sort them, since the last
43025 # AC_DEFINE must be honored.
43026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43027 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43028 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43029 # PARAMS is the parameter list in the macro definition--in most cases, it's
43030 # just an empty string.
43031 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43032 ac_dB='\\)[ (].*,\\1define\\2'
43040 s/^[ ]*#[ ]*define[ ][ ]*//
43045 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43046 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43047 ' >>conftest.defines
43049 # Remove the space that was appended to ease matching.
43050 # Then replace #undef with comments. This is necessary, for
43051 # example, in the case of _POSIX_SOURCE, which is predefined and required
43052 # on some systems where configure will not decide to define it.
43053 # (The regexp can be short, since the line contains either #define or #undef.)
43055 s,^[ #]*u.*,/* & */,' >>conftest.defines
43057 # Break up conftest.defines:
43058 ac_max_sed_lines=50
43060 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43061 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43062 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43064 ac_in='$ac_file_inputs'
43065 ac_out='"$tmp/out1"'
43066 ac_nxt='"$tmp/out2"'
43070 # Write a here document:
43071 cat >>$CONFIG_STATUS <<_ACEOF
43072 # First, check the format of the line:
43073 cat >"\$tmp/defines.sed" <<\\CEOF
43074 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43075 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43079 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43081 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43082 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43083 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43084 grep . conftest.tail >/dev/null || break
43085 rm -f conftest.defines
43086 mv conftest.tail conftest.defines
43088 rm -f conftest.defines conftest.tail
43090 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43091 cat >>$CONFIG_STATUS <<\_ACEOF
43092 if test x"$ac_file" != x-; then
43093 echo "/* $configure_input */" >"$tmp/config.h"
43094 cat "$ac_result" >>"$tmp/config.h"
43095 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43096 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43097 echo "$as_me: $ac_file is unchanged" >&6;}
43100 mv "$tmp/config.h" $ac_file
43103 echo "/* $configure_input */"
43109 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43110 echo "$as_me: executing $ac_file commands" >&6;}
43115 case $ac_file$ac_mode in
43118 # See if we are running on zsh, and set the options which allow our
43119 # commands through without removal of \ escapes.
43120 if test -n "${ZSH_VERSION+set}" ; then
43121 setopt NO_GLOB_SUBST
43124 cfgfile="${ofile}T"
43125 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43128 cat <<_LT_EOF >> "$cfgfile"
43131 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43132 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43134 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43136 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43137 # 2006, 2007, 2008 Free Software Foundation, Inc.
43138 # Written by Gordon Matzigkeit, 1996
43140 # This file is part of GNU Libtool.
43142 # GNU Libtool is free software; you can redistribute it and/or
43143 # modify it under the terms of the GNU General Public License as
43144 # published by the Free Software Foundation; either version 2 of
43145 # the License, or (at your option) any later version.
43147 # As a special exception to the GNU General Public License,
43148 # if you distribute this file as part of a program or library that
43149 # is built using GNU Libtool, you may include this file under the
43150 # same distribution terms that you use for the rest of that program.
43152 # GNU Libtool is distributed in the hope that it will be useful,
43153 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43154 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43155 # GNU General Public License for more details.
43157 # You should have received a copy of the GNU General Public License
43158 # along with GNU Libtool; see the file COPYING. If not, a copy
43159 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43160 # obtained by writing to the Free Software Foundation, Inc.,
43161 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43164 # The names of the tagged configurations supported by this script.
43165 available_tags="CXX "
43167 # ### BEGIN LIBTOOL CONFIG
43169 # Which release of libtool.m4 was used?
43170 macro_version=$macro_version
43171 macro_revision=$macro_revision
43173 # Whether or not to build shared libraries.
43174 build_libtool_libs=$enable_shared
43176 # Whether or not to build static libraries.
43177 build_old_libs=$enable_static
43179 # What type of objects to build.
43182 # Whether or not to optimize for fast installation.
43183 fast_install=$enable_fast_install
43186 host_alias=$host_alias
43190 # The build system.
43191 build_alias=$build_alias
43195 # A sed program that does not truncate output.
43198 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43199 Xsed="\$SED -e 1s/^X//"
43201 # A grep program that handles long lines.
43207 # A literal string matcher.
43210 # A BSD- or MS-compatible name lister.
43213 # Whether we need soft or hard links.
43216 # What is the maximum length of a command?
43217 max_cmd_len=$max_cmd_len
43219 # Object file suffix (normally "o").
43222 # Executable file suffix (normally "").
43225 # whether the shell understands "unset".
43228 # turn spaces into newlines.
43231 # turn newlines into spaces.
43234 # How to create reloadable object files.
43235 reload_flag=$lt_reload_flag
43236 reload_cmds=$lt_reload_cmds
43238 # An object symbol dumper.
43239 OBJDUMP=$lt_OBJDUMP
43241 # Method to check whether dependent libraries are shared objects.
43242 deplibs_check_method=$lt_deplibs_check_method
43244 # Command to use when deplibs_check_method == "file_magic".
43245 file_magic_cmd=$lt_file_magic_cmd
43249 AR_FLAGS=$lt_AR_FLAGS
43251 # A symbol stripping program.
43254 # Commands used to install an old-style archive.
43256 old_postinstall_cmds=$lt_old_postinstall_cmds
43257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43262 # LTCC compiler flags.
43263 LTCFLAGS=$lt_CFLAGS
43265 # Take the output of nm and produce a listing of raw symbols and C names.
43266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43268 # Transform the output of nm in a proper C declaration.
43269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43271 # Transform the output of nm in a C name address pair.
43272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43274 # Transform the output of nm in a C name address pair when lib prefix is needed.
43275 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43277 # The name of the directory that contains temporary libtool files.
43280 # Shell to use when invoking shell scripts.
43283 # An echo program that does not interpret backslashes.
43286 # Used to examine libraries when file_magic_cmd begins with "file".
43287 MAGIC_CMD=$MAGIC_CMD
43289 # Must we lock files when doing compilation?
43290 need_locks=$lt_need_locks
43292 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43293 DSYMUTIL=$lt_DSYMUTIL
43295 # Tool to change global to local symbols on Mac OS X.
43298 # Tool to manipulate fat objects and archives on Mac OS X.
43301 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43304 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43305 OTOOL64=$lt_OTOOL64
43307 # Old archive suffix (normally "a").
43310 # Shared library suffix (normally ".so").
43311 shrext_cmds=$lt_shrext_cmds
43313 # The commands to extract the exported symbol list from a shared archive.
43314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43316 # Variables whose values should be saved in libtool wrapper scripts and
43317 # restored at link time.
43318 variables_saved_for_relink=$lt_variables_saved_for_relink
43320 # Do we need the "lib" prefix for modules?
43321 need_lib_prefix=$need_lib_prefix
43323 # Do we need a version for libraries?
43324 need_version=$need_version
43326 # Library versioning type.
43327 version_type=$version_type
43329 # Shared library runtime path variable.
43330 runpath_var=$runpath_var
43332 # Shared library path variable.
43333 shlibpath_var=$shlibpath_var
43335 # Is shlibpath searched before the hard-coded library search path?
43336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43338 # Format of library name prefix.
43339 libname_spec=$lt_libname_spec
43341 # List of archive names. First name is the real one, the rest are links.
43342 # The last name is the one that the linker finds with -lNAME
43343 library_names_spec=$lt_library_names_spec
43345 # The coded name of the library, if different from the real name.
43346 soname_spec=$lt_soname_spec
43348 # Command to use after installation of a shared archive.
43349 postinstall_cmds=$lt_postinstall_cmds
43351 # Command to use after uninstallation of a shared archive.
43352 postuninstall_cmds=$lt_postuninstall_cmds
43354 # Commands used to finish a libtool library installation in a directory.
43355 finish_cmds=$lt_finish_cmds
43357 # As "finish_cmds", except a single script fragment to be evaled but
43359 finish_eval=$lt_finish_eval
43361 # Whether we should hardcode library paths into libraries.
43362 hardcode_into_libs=$hardcode_into_libs
43364 # Compile-time system search path for libraries.
43365 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43367 # Run-time system search path for libraries.
43368 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43370 # Whether dlopen is supported.
43371 dlopen_support=$enable_dlopen
43373 # Whether dlopen of programs is supported.
43374 dlopen_self=$enable_dlopen_self
43376 # Whether dlopen of statically linked programs is supported.
43377 dlopen_self_static=$enable_dlopen_self_static
43379 # Commands to strip libraries.
43380 old_striplib=$lt_old_striplib
43381 striplib=$lt_striplib
43384 # The linker used to build libraries.
43387 # Commands used to build an old-style archive.
43388 old_archive_cmds=$lt_old_archive_cmds
43390 # A language specific compiler.
43393 # Is the compiler the GNU compiler?
43396 # Compiler flag to turn off builtin functions.
43397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43399 # How to pass a linker flag through the compiler.
43400 wl=$lt_lt_prog_compiler_wl
43402 # Additional compiler flags for building library objects.
43403 pic_flag=$lt_lt_prog_compiler_pic
43405 # Compiler flag to prevent dynamic linking.
43406 link_static_flag=$lt_lt_prog_compiler_static
43408 # Does compiler simultaneously support -c and -o options?
43409 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43411 # Whether or not to add -lc for building shared libraries.
43412 build_libtool_need_lc=$archive_cmds_need_lc
43414 # Whether or not to disallow shared libs when runtime libs are static.
43415 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43417 # Compiler flag to allow reflexive dlopens.
43418 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43420 # Compiler flag to generate shared objects directly from archives.
43421 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43423 # Whether the compiler copes with passing no objects directly.
43424 compiler_needs_object=$lt_compiler_needs_object
43426 # Create an old-style archive from a shared archive.
43427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43429 # Create a temporary old-style archive to link instead of a shared archive.
43430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43432 # Commands used to build a shared archive.
43433 archive_cmds=$lt_archive_cmds
43434 archive_expsym_cmds=$lt_archive_expsym_cmds
43436 # Commands used to build a loadable module if different from building
43437 # a shared archive.
43438 module_cmds=$lt_module_cmds
43439 module_expsym_cmds=$lt_module_expsym_cmds
43441 # Whether we are building with GNU ld or not.
43442 with_gnu_ld=$lt_with_gnu_ld
43444 # Flag that allows shared libraries with undefined symbols to be built.
43445 allow_undefined_flag=$lt_allow_undefined_flag
43447 # Flag that enforces no undefined symbols.
43448 no_undefined_flag=$lt_no_undefined_flag
43450 # Flag to hardcode \$libdir into a binary during linking.
43451 # This must work even if \$libdir does not exist
43452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43454 # If ld is used when linking, flag to hardcode \$libdir into a binary
43455 # during linking. This must work even if \$libdir does not exist.
43456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43458 # Whether we need a single "-rpath" flag with a separated argument.
43459 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43461 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43462 # DIR into the resulting binary.
43463 hardcode_direct=$hardcode_direct
43465 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43466 # DIR into the resulting binary and the resulting library dependency is
43467 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43468 # library is relocated.
43469 hardcode_direct_absolute=$hardcode_direct_absolute
43471 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43472 # into the resulting binary.
43473 hardcode_minus_L=$hardcode_minus_L
43475 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43476 # into the resulting binary.
43477 hardcode_shlibpath_var=$hardcode_shlibpath_var
43479 # Set to "yes" if building a shared library automatically hardcodes DIR
43480 # into the library and all subsequent libraries and executables linked
43482 hardcode_automatic=$hardcode_automatic
43484 # Set to yes if linker adds runtime paths of dependent libraries
43485 # to runtime path list.
43486 inherit_rpath=$inherit_rpath
43488 # Whether libtool must link a program against all its dependency libraries.
43489 link_all_deplibs=$link_all_deplibs
43491 # Fix the shell variable \$srcfile for the compiler.
43492 fix_srcfile_path=$lt_fix_srcfile_path
43494 # Set to "yes" if exported symbols are required.
43495 always_export_symbols=$always_export_symbols
43497 # The commands to list exported symbols.
43498 export_symbols_cmds=$lt_export_symbols_cmds
43500 # Symbols that should not be listed in the preloaded symbols.
43501 exclude_expsyms=$lt_exclude_expsyms
43503 # Symbols that must always be exported.
43504 include_expsyms=$lt_include_expsyms
43506 # Commands necessary for linking programs (against libraries) with templates.
43507 prelink_cmds=$lt_prelink_cmds
43509 # Specify filename containing input files.
43510 file_list_spec=$lt_file_list_spec
43512 # How to hardcode a shared library path into an executable.
43513 hardcode_action=$hardcode_action
43515 # The directories searched by this compiler when creating a shared library.
43516 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43518 # Dependencies to place before and after the objects being linked to
43519 # create a shared library.
43520 predep_objects=$lt_predep_objects
43521 postdep_objects=$lt_postdep_objects
43522 predeps=$lt_predeps
43523 postdeps=$lt_postdeps
43525 # The library search path used internally by the compiler when linking
43526 # a shared library.
43527 compiler_lib_search_path=$lt_compiler_lib_search_path
43529 # ### END LIBTOOL CONFIG
43535 cat <<\_LT_EOF >> "$cfgfile"
43536 # AIX sometimes has problems with the GCC collect2 program. For some
43537 # reason, if we set the COLLECT_NAMES environment variable, the problems
43538 # vanish in a puff of smoke.
43539 if test "X${COLLECT_NAMES+set}" != Xset; then
43541 export COLLECT_NAMES
43548 ltmain="$ac_aux_dir/ltmain.sh"
43551 # We use sed instead of cat because bash on DJGPP gets confused if
43552 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43553 # text mode, it properly converts lines to CR/LF. This bash problem
43554 # is reportedly fixed, but why not run on old versions too?
43555 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43556 || (rm -f "$cfgfile"; exit 1)
43560 cat << \_LT_EOF >> "$cfgfile"
43562 # func_dirname file append nondir_replacement
43563 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43564 # otherwise set result to NONDIR_REPLACEMENT.
43568 */*) func_dirname_result="${1%/*}${2}" ;;
43569 * ) func_dirname_result="${3}" ;;
43573 # func_basename file
43576 func_basename_result="${1##*/}"
43579 # func_dirname_and_basename file append nondir_replacement
43580 # perform func_basename and func_dirname in a single function
43582 # dirname: Compute the dirname of FILE. If nonempty,
43583 # add APPEND to the result, otherwise set result
43584 # to NONDIR_REPLACEMENT.
43585 # value returned in "$func_dirname_result"
43586 # basename: Compute filename of FILE.
43587 # value retuned in "$func_basename_result"
43588 # Implementation must be kept synchronized with func_dirname
43589 # and func_basename. For efficiency, we do not delegate to
43590 # those functions but instead duplicate the functionality here.
43591 func_dirname_and_basename ()
43594 */*) func_dirname_result="${1%/*}${2}" ;;
43595 * ) func_dirname_result="${3}" ;;
43597 func_basename_result="${1##*/}"
43600 # func_stripname prefix suffix name
43601 # strip PREFIX and SUFFIX off of NAME.
43602 # PREFIX and SUFFIX must not contain globbing or regex special
43603 # characters, hashes, percent signs, but SUFFIX may contain a leading
43604 # dot (in which case that matches only a dot).
43607 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43608 # positional parameters, so assign one to ordinary parameter first.
43609 func_stripname_result=${3}
43610 func_stripname_result=${func_stripname_result#"${1}"}
43611 func_stripname_result=${func_stripname_result%"${2}"}
43617 func_opt_split_opt=${1%%=*}
43618 func_opt_split_arg=${1#*=}
43625 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43626 *) func_lo2o_result=${1} ;;
43630 # func_xform libobj-or-source
43633 func_xform_result=${1%.*}.lo
43636 # func_arith arithmetic-term...
43639 func_arith_result=$(( $* ))
43643 # STRING may not start with a hyphen.
43646 func_len_result=${#1}
43651 *) # Bourne compatible functions.
43652 cat << \_LT_EOF >> "$cfgfile"
43654 # func_dirname file append nondir_replacement
43655 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43656 # otherwise set result to NONDIR_REPLACEMENT.
43659 # Extract subdirectory from the argument.
43660 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43661 if test "X$func_dirname_result" = "X${1}"; then
43662 func_dirname_result="${3}"
43664 func_dirname_result="$func_dirname_result${2}"
43668 # func_basename file
43671 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43675 # func_stripname prefix suffix name
43676 # strip PREFIX and SUFFIX off of NAME.
43677 # PREFIX and SUFFIX must not contain globbing or regex special
43678 # characters, hashes, percent signs, but SUFFIX may contain a leading
43679 # dot (in which case that matches only a dot).
43680 # func_strip_suffix prefix name
43684 .*) func_stripname_result=`$ECHO "X${3}" \
43685 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43686 *) func_stripname_result=`$ECHO "X${3}" \
43687 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43692 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43693 my_sed_long_arg='1s/^-[^=]*=//'
43698 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43699 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43705 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43708 # func_xform libobj-or-source
43711 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43714 # func_arith arithmetic-term...
43717 func_arith_result=`expr "$@"`
43721 # STRING may not start with a hyphen.
43724 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43730 case $lt_shell_append in
43732 cat << \_LT_EOF >> "$cfgfile"
43734 # func_append var value
43735 # Append VALUE to the end of shell variable VAR.
43743 cat << \_LT_EOF >> "$cfgfile"
43745 # func_append var value
43746 # Append VALUE to the end of shell variable VAR.
43757 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43758 || (rm -f "$cfgfile"; exit 1)
43760 mv -f "$cfgfile" "$ofile" ||
43761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43765 cat <<_LT_EOF >> "$ofile"
43767 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43769 # The linker used to build libraries.
43772 # Commands used to build an old-style archive.
43773 old_archive_cmds=$lt_old_archive_cmds_CXX
43775 # A language specific compiler.
43776 CC=$lt_compiler_CXX
43778 # Is the compiler the GNU compiler?
43781 # Compiler flag to turn off builtin functions.
43782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43784 # How to pass a linker flag through the compiler.
43785 wl=$lt_lt_prog_compiler_wl_CXX
43787 # Additional compiler flags for building library objects.
43788 pic_flag=$lt_lt_prog_compiler_pic_CXX
43790 # Compiler flag to prevent dynamic linking.
43791 link_static_flag=$lt_lt_prog_compiler_static_CXX
43793 # Does compiler simultaneously support -c and -o options?
43794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43796 # Whether or not to add -lc for building shared libraries.
43797 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43799 # Whether or not to disallow shared libs when runtime libs are static.
43800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43802 # Compiler flag to allow reflexive dlopens.
43803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43805 # Compiler flag to generate shared objects directly from archives.
43806 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43808 # Whether the compiler copes with passing no objects directly.
43809 compiler_needs_object=$lt_compiler_needs_object_CXX
43811 # Create an old-style archive from a shared archive.
43812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43814 # Create a temporary old-style archive to link instead of a shared archive.
43815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43817 # Commands used to build a shared archive.
43818 archive_cmds=$lt_archive_cmds_CXX
43819 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43821 # Commands used to build a loadable module if different from building
43822 # a shared archive.
43823 module_cmds=$lt_module_cmds_CXX
43824 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43826 # Whether we are building with GNU ld or not.
43827 with_gnu_ld=$lt_with_gnu_ld_CXX
43829 # Flag that allows shared libraries with undefined symbols to be built.
43830 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43832 # Flag that enforces no undefined symbols.
43833 no_undefined_flag=$lt_no_undefined_flag_CXX
43835 # Flag to hardcode \$libdir into a binary during linking.
43836 # This must work even if \$libdir does not exist
43837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43839 # If ld is used when linking, flag to hardcode \$libdir into a binary
43840 # during linking. This must work even if \$libdir does not exist.
43841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43843 # Whether we need a single "-rpath" flag with a separated argument.
43844 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43847 # DIR into the resulting binary.
43848 hardcode_direct=$hardcode_direct_CXX
43850 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43851 # DIR into the resulting binary and the resulting library dependency is
43852 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43853 # library is relocated.
43854 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43856 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43857 # into the resulting binary.
43858 hardcode_minus_L=$hardcode_minus_L_CXX
43860 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43861 # into the resulting binary.
43862 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43864 # Set to "yes" if building a shared library automatically hardcodes DIR
43865 # into the library and all subsequent libraries and executables linked
43867 hardcode_automatic=$hardcode_automatic_CXX
43869 # Set to yes if linker adds runtime paths of dependent libraries
43870 # to runtime path list.
43871 inherit_rpath=$inherit_rpath_CXX
43873 # Whether libtool must link a program against all its dependency libraries.
43874 link_all_deplibs=$link_all_deplibs_CXX
43876 # Fix the shell variable \$srcfile for the compiler.
43877 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43879 # Set to "yes" if exported symbols are required.
43880 always_export_symbols=$always_export_symbols_CXX
43882 # The commands to list exported symbols.
43883 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43885 # Symbols that should not be listed in the preloaded symbols.
43886 exclude_expsyms=$lt_exclude_expsyms_CXX
43888 # Symbols that must always be exported.
43889 include_expsyms=$lt_include_expsyms_CXX
43891 # Commands necessary for linking programs (against libraries) with templates.
43892 prelink_cmds=$lt_prelink_cmds_CXX
43894 # Specify filename containing input files.
43895 file_list_spec=$lt_file_list_spec_CXX
43897 # How to hardcode a shared library path into an executable.
43898 hardcode_action=$hardcode_action_CXX
43900 # The directories searched by this compiler when creating a shared library.
43901 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43903 # Dependencies to place before and after the objects being linked to
43904 # create a shared library.
43905 predep_objects=$lt_predep_objects_CXX
43906 postdep_objects=$lt_postdep_objects_CXX
43907 predeps=$lt_predeps_CXX
43908 postdeps=$lt_postdeps_CXX
43910 # The library search path used internally by the compiler when linking
43911 # a shared library.
43912 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43914 # ### END LIBTOOL TAG CONFIG: CXX
43919 for ac_file in $CONFIG_FILES; do
43920 # Support "outfile[:infile[:infile...]]"
43922 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43924 # PO directories have a Makefile.in generated from Makefile.in.in.
43925 case "$ac_file" in */Makefile.in)
43926 # Adjust a relative srcdir.
43927 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43928 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43929 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43930 # In autoconf-2.13 it is called $ac_given_srcdir.
43931 # In autoconf-2.50 it is called $srcdir.
43932 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43933 case "$ac_given_srcdir" in
43934 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43935 /*) top_srcdir="$ac_given_srcdir" ;;
43936 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
43938 # Treat a directory as a PO directory if and only if it has a
43939 # POTFILES.in file. This allows packages to have multiple PO
43940 # directories under different names or in different locations.
43941 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43942 rm -f "$ac_dir/POTFILES"
43943 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43944 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43945 POMAKEFILEDEPS="POTFILES.in"
43946 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43947 # on $ac_dir but don't depend on user-specified configuration
43949 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43950 # The LINGUAS file contains the set of available languages.
43951 if test -n "$OBSOLETE_ALL_LINGUAS"; then
43952 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43954 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43955 # Hide the ALL_LINGUAS assigment from automake.
43956 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43957 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43959 # The set of available languages was given in configure.in.
43960 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43963 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43964 # Compute UPDATEPOFILES
43965 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43966 # Compute DUMMYPOFILES
43967 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43969 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43970 case "$ac_given_srcdir" in
43972 *) srcdirpre='$(srcdir)/' ;;
43978 for lang in $ALL_LINGUAS; do
43979 POFILES="$POFILES $srcdirpre$lang.po"
43980 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43981 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43982 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43984 # CATALOGS depends on both $ac_dir and the user's LINGUAS
43985 # environment variable.
43987 if test -n "$ALL_LINGUAS"; then
43988 for presentlang in $ALL_LINGUAS; do
43990 if test "%UNSET%" != "$LINGUAS"; then
43991 desiredlanguages="$LINGUAS"
43993 desiredlanguages="$ALL_LINGUAS"
43995 for desiredlang in $desiredlanguages; do
43996 # Use the presentlang catalog if desiredlang is
43997 # a. equal to presentlang, or
43998 # b. a variant of presentlang (because in this case,
43999 # presentlang can be used as a fallback for messages
44000 # which are not translated in the desiredlang catalog).
44001 case "$desiredlang" in
44002 "$presentlang"*) useit=yes;;
44005 if test $useit = yes; then
44006 INST_LINGUAS="$INST_LINGUAS $presentlang"
44011 if test -n "$INST_LINGUAS"; then
44012 for lang in $INST_LINGUAS; do
44013 CATALOGS="$CATALOGS $lang.gmo"
44016 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44017 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"
44018 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44019 if test -f "$f"; then
44021 *.orig | *.bak | *~) ;;
44022 *) cat "$f" >> "$ac_dir/Makefile" ;;
44037 { (exit 0); exit 0; }
44039 chmod +x $CONFIG_STATUS
44040 ac_clean_files=$ac_clean_files_save
44043 # configure is writing to config.log, and then calls config.status.
44044 # config.status does its own redirection, appending to config.log.
44045 # Unfortunately, on DOS this fails, as config.log is still kept open
44046 # by configure, so config.status won't be able to write to it; its
44047 # output is simply discarded. So we exec the FD to /dev/null,
44048 # effectively closing config.log, so it can be properly (re)opened and
44049 # appended to by config.status. When coming back to configure, we
44050 # need to make the FD available again.
44051 if test "$no_create" != yes; then
44053 ac_config_status_args=
44054 test "$silent" = yes &&
44055 ac_config_status_args="$ac_config_status_args --quiet"
44057 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44059 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44060 # would make configure fail if this is the last instruction.
44061 $ac_cs_success || { (exit 1); exit 1; }
44065 if test "${support_bat}" = "yes" ; then
44066 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44067 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44073 if test "x$QMAKEQT4" != "xnone"; then
44078 chmod 755 install_conf_file build-depkgs-qt-console
44079 echo "Creating bat Makefile"
44085 if test X"$GCC" = "Xyes" ; then
44086 echo "Doing make of dependencies"
44087 ${MAKE:-make} depend
44091 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44092 chmod 755 dvd-handler dvd-simulator
44093 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44097 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44098 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44102 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44103 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44105 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44106 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44108 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44109 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44111 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44112 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44114 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44115 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44117 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44118 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44120 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44121 chmod 755 $c/sqlite
44124 chmod 755 src/win32/build-depkgs-mingw32
44126 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44127 largefile_support="yes"
44130 if test X"$GCC" = "Xyes" ; then
44131 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44132 if test "x${CCVERSION}" = "x" ; then
44133 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44135 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44136 if test x"${CXXVERSION}" = x ; then
44137 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44141 if test "x${db_type}" = "xInternal" ; then
44144 echo "You have not specified either --enable-client-only or one of the"
44145 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44146 echo " This is not permitted. Please reconfigure."
44148 echo "Aborting the configuration ..."
44155 Configuration on `date`:
44157 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44158 Bacula version: ${BACULA} ${VERSION} (${DATE})
44159 Source code location: ${srcdir}
44160 Install binaries: ${sbindir}
44161 Install libraries: ${libdir}
44162 Install config files: ${sysconfdir}
44163 Scripts directory: ${scriptdir}
44164 Archive directory: ${archivedir}
44165 Working directory: ${working_dir}
44166 PID directory: ${piddir}
44167 Subsys directory: ${subsysdir}
44168 Man directory: ${mandir}
44169 Data directory: ${datarootdir}
44170 C Compiler: ${CC} ${CCVERSION}
44171 C++ Compiler: ${CXX} ${CXXVERSION}
44172 Compiler flags: ${WCFLAGS} ${CFLAGS}
44173 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44175 Statically Linked Tools: ${support_static_tools}
44176 Statically Linked FD: ${support_static_fd}
44177 Statically Linked SD: ${support_static_sd}
44178 Statically Linked DIR: ${support_static_dir}
44179 Statically Linked CONS: ${support_static_cons}
44180 Database type: ${db_type}
44181 Database port: ${db_port}
44182 Database lib: ${DB_LIBS}
44183 Database name: ${db_name}
44184 Database user: ${db_user}
44186 Job Output Email: ${job_email}
44187 Traceback Email: ${dump_email}
44188 SMTP Host Address: ${smtp_host}
44190 Director Port: ${dir_port}
44191 File daemon Port: ${fd_port}
44192 Storage daemon Port: ${sd_port}
44194 Director User: ${dir_user}
44195 Director Group: ${dir_group}
44196 Storage Daemon User: ${sd_user}
44197 Storage DaemonGroup: ${sd_group}
44198 File Daemon User: ${fd_user}
44199 File Daemon Group: ${fd_group}
44201 SQL binaries Directory ${SQL_BINDIR}
44203 Large file support: $largefile_support
44204 Bacula conio support: ${got_conio} ${CONS_LIBS}
44205 readline support: ${got_readline} ${PRTREADLINE_SRC}
44206 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44207 TLS support: ${support_tls}
44208 Encryption support: ${support_crypto}
44209 ZLIB support: ${have_zlib}
44210 enable-smartalloc: ${support_smartalloc}
44211 bat support: ${support_bat} ${QWT_LDFLAGS}
44212 enable-gnome: ${support_gnome} ${gnome_version}
44213 enable-bwx-console: ${support_wx_console} ${wx_version}
44214 enable-tray-monitor: ${support_tray_monitor}
44215 client-only: ${build_client_only}
44216 build-dird: ${build_dird}
44217 build-stored: ${build_stored}
44218 ACL support: ${have_acl}
44219 Python support: ${support_python} ${PYTHON_LIBS}
44220 Batch insert enabled: ${support_batch_insert}